elioria-sst-x
    Preparing search index...

    Class SupabaseEpiSignatureRepository

    Implements

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

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: CreateEpiSignatureData

        The data value.

      Returns Promise<EpiSignature>

      The function result.

      Objective: In module packages/db/src/repositories/epi-signature.repository.ts, run create.

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

    • Generated

      Returns the result of findBySheetId.

      Parameters

      • sheetId: string

        The sheetId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiSignature[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-signature.repository.ts, retrieve data through findBySheetId.

      Behavior: Async; accepts sheetId and tenantId; returns a value; invokes this.db .select() .from(epiSignatures) .where(and(eq(epiSign.

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: EpiSignatureStatus

        The status value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/epi-signature.repository.ts, change data through updateStatus.

      Behavior: Async; accepts id and tenantId and status; returns a value; invokes this.db .update(epiSignatures) .set(payload) .where.