elioria-sst-x
    Preparing search index...

    Class SupabaseTrainingObligationRuleRepository

    Implements

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

    The db value.

    • Generated

      Executes delete.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/training-obligation-rule.repository.ts, run delete.

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db .delete(trainingObligationRules) .where.

    • Generated

      Returns the result of findByOrigin.

      Parameters

      • tenantId: string

        The tenantId value.

      • origin: ObligationOrigin

        The origin value.

      • OptionaloriginEntityId: string

        The originEntityId value.

      Returns Promise<TrainingObligationRule[]>

      The function result.

      Objective: In module packages/db/src/repositories/training-obligation-rule.repository.ts, retrieve data through findByOrigin.

      Behavior: Async; accepts tenantId and origin and originEntityId; returns a value; invokes eq.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingObligationRule[]>

      The function result.

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

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

    • Generated

      Returns the result of findByTraining.

      Parameters

      • tenantId: string

        The tenantId value.

      • catalogId: string

        The catalogId value.

      Returns Promise<TrainingObligationRule[]>

      The function result.

      Objective: In module packages/db/src/repositories/training-obligation-rule.repository.ts, retrieve data through findByTraining.

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