elioria-sst-x
    Preparing search index...

    Class SupabaseTrainingRetrainingRequestRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingRetrainingRequest[]>

      The function result.

      Objective: In module packages/db/src/repositories/training-retraining-request.repository.ts, retrieve data through findByCollaborator.

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

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingRetrainingRequest[]>

      The function result.

      Objective: In module packages/db/src/repositories/training-retraining-request.repository.ts, retrieve data through findByTenant.

      Behavior: Async; accepts tenantId; returns a value; invokes this.db .select() .from(trainingRetrainingRequests) .where(e.

    • Generated

      Returns the result of findPending.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingRetrainingRequest[]>

      The function result.

      Objective: In module packages/db/src/repositories/training-retraining-request.repository.ts, retrieve data through findPending.

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

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: RetrainingStatus

        The status value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/training-retraining-request.repository.ts, change data through updateStatus.

      Behavior: Async; accepts id and tenantId and status; returns a value; invokes this.db .update(trainingRetrainingRequests) .set({ status }).