elioria-sst-x
    Preparing search index...

    Class SupabaseApiIdempotencyRepository

    Implements

    Index
    db: PostgresJsDatabase<packages/db/src/schema> & {}

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: Omit<ApiIdempotencyRecord, "id" | "createdAt">

        The data value.

      Returns Promise<ApiIdempotencyRecord>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, run create.

      Behavior: Async; accepts data; returns a value; invokes this.db.insert(apiIdempotencyRecords).values({ tenantId: dat.

    • Generated

      Updates data through deleteExpired.

      Returns Promise<number>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, change data through deleteExpired.

      Behavior: Async; returns a value; invokes this.db.delete(apiIdempotencyRecords) .where(and( lte(apiIde.

    • Generated

      Returns the result of findByKey.

      Parameters

      • tenantId: string

        The tenantId value.

      • route: string

        The route value.

      • key: string

        The key value.

      Returns Promise<ApiIdempotencyRecord | null>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, retrieve data through findByKey.

      Behavior: Async; accepts tenantId and route and key; returns a value; invokes this.db.select().from(apiIdempotencyRecords) .where(and( eq(.

    • Generated

      Executes markCompleted.

      Parameters

      • id: string

        The id value.

      • responseStatus: number

        The responseStatus value.

      • responseBody: unknown

        The responseBody value.

      • OptionalresourceId: string

        The resourceId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, run markCompleted.

      Behavior: Async; accepts id and responseStatus and responseBody and resourceId; returns a value; invokes this.db.update(apiIdempotencyRecords).set({ operationStatus:.

    • Generated

      Executes markFailed.

      Parameters

      • id: string

        The id value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, run markFailed.

      Behavior: Async; accepts id; returns a value; invokes this.db.update(apiIdempotencyRecords).set({ operationStatus:.