elioria-sst-x
    Preparing search index...

    Class SupabaseTrainingCertificateRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findActiveByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      • today: Date

        The today value.

      Returns Promise<TrainingCertificate[]>

      The function result.

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

      Behavior: Async; accepts collaboratorId and tenantId and today; returns a value; invokes today.toISOString().split.

    • Generated

      Returns the result of findByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingCertificate[]>

      The function result.

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

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

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingCertificate[]>

      The function result.

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

      Behavior: Async; accepts tenantId; returns a value; invokes this.db .select() .from(trainingCertificates) .where(eq(trai.

    • Generated

      Returns the result of findExpiring.

      Parameters

      • tenantId: string

        The tenantId value.

      • daysAhead: number

        The daysAhead value.

      Returns Promise<TrainingCertificate[]>

      The function result.

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

      Behavior: Async; accepts tenantId and daysAhead; returns a value; invokes futureDate.setDate.