elioria-sst-x
    Preparing search index...

    Class SupabaseEpiDeliveryConfirmationRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByTokenHash.

      Parameters

      • tokenHash: string

        The tokenHash value.

      Returns Promise<EpiDeliveryConfirmationWithItems | null>

      The function result.

      Objective: In module packages/db/src/repositories/epi-delivery-confirmation.repository.ts, retrieve data through findByTokenHash.

      Behavior: Async; accepts tokenHash; returns a value; invokes this.db .select() .from(epiDeliveryConfirmations) .where(eq(.

    • Generated

      Returns the result of findConfirmationById.

      Parameters

      • tenantId: string

        The tenantId value.

      • confirmationId: string

        The confirmationId value.

      Returns Promise<EpiDeliveryConfirmationWithItems | null>

      The function result.

      Objective: In module packages/db/src/repositories/epi-delivery-confirmation.repository.ts, retrieve data through findConfirmationById.

      Behavior: Async; accepts tenantId and confirmationId; returns a value; invokes this.db .select() .from(epiDeliveryConfirmations) .where( an.

    • Generated

      Checks whether hasActiveConfirmationForSheet is satisfied.

      Parameters

      • tenantId: string

        The tenantId value.

      • sheetId: string

        The sheetId value.

      Returns Promise<boolean>

      The function result.

      Objective: In module packages/db/src/repositories/epi-delivery-confirmation.repository.ts, evaluate hasActiveConfirmationForSheet.

      Behavior: Async; accepts tenantId and sheetId; returns a value; invokes this.db .select({ id: epiDeliveryConfirmationItems.id }) .fr.