elioria-sst-x
    Preparing search index...

    Class SupabaseEpiHygienizationRepository

    Implements

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

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: CreateEpiHygienizationData

        The data value.

      Returns Promise<EpiHygienization>

      The function result.

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

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

    • Generated

      Returns the result of findBySheetId.

      Parameters

      • sheetId: string

        The sheetId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiHygienization[]>

      The function result.

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

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

    • Generated

      Returns the result of findOverdue.

      Parameters

      • tenantId: string

        The tenantId value.

      • now: Date

        The now value.

      Returns Promise<EpiHygienization[]>

      The function result.

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

      Behavior: Async; accepts tenantId and now; returns a value; invokes this.db .select() .from(epiHygienization) .where( and( eq(ep.

    • Generated

      Returns the result of findOverdueByCompany.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      • now: Date

        The now value.

      Returns Promise<EpiHygienization[]>

      The function result.

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

      Behavior: Async; accepts tenantId and companyId and now; returns a value; invokes this.db .select({ id: epiHygienization.id, tenantId: epiHygi.