elioria-sst-x
    Preparing search index...

    Class SupabaseExternalTrainingRepository

    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<ExternalTraining[]>

      The function result.

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

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

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<ExternalTraining[]>

      The function result.

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

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

    • Generated

      Updates data through updateValidation.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: ExternalTrainingStatus

        The status value.

      • validatedBy: string

        The validatedBy value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/external-training.repository.ts, change data through updateValidation.

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