elioria-sst-x
    Preparing search index...

    Class SupabaseCipaEnquadramentoDocumentRepository

    Implements

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

    The db value.

    • Generated

      Executes countByCodePrefix.

      Parameters

      • codePrefix: string

        The codePrefix value.

      • tenantId: string

        The tenantId value.

      Returns Promise<number>

      The function result.

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

      Behavior: Async; accepts codePrefix and tenantId; returns a value; invokes this.db.select({ count: sql<number>count(*)::int }) .from(.

    • Generated

      Returns the result of findByCode.

      Parameters

      • code: string

        The code value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaEnquadramentoDocument | null>

      The function result.

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

      Behavior: Async; accepts code and tenantId; returns a value; invokes this.db.select().from(cipaEnquadramentoDocuments) .where(and.

    • Generated

      Returns the result of findByCompany.

      Parameters

      • companyId: string

        The companyId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaEnquadramentoDocument[]>

      The function result.

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

      Behavior: Async; accepts companyId and tenantId; returns a value; invokes this.db.select().from(cipaEnquadramentoDocuments) .where(and.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaEnquadramentoDocument | null>

      The function result.

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

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db.select().from(cipaEnquadramentoDocuments) .where.

    • Generated

      Returns the result of findByUnit.

      Parameters

      • unitId: string

        The unitId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaEnquadramentoDocument[]>

      The function result.

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

      Behavior: Async; accepts unitId and tenantId; returns a value; invokes this.db.select().from(cipaEnquadramentoDocuments) .where(and.

    • Generated

      Returns the result of findLatestByUnit.

      Parameters

      • unitId: string

        The unitId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaEnquadramentoDocument | null>

      The function result.

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

      Behavior: Async; accepts unitId and tenantId; returns a value; invokes this.db.select().from(cipaEnquadramentoDocuments) .where(and.