elioria-sst-x
    Preparing search index...

    Class SupabaseGheEpiRequirementRepository

    Implements

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

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: CreateGheEpiRequirementData

        The data value.

      Returns Promise<GheEpiRequirement>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, run create.

      Behavior: Async; accepts data; returns a value; invokes this.db .insert(gheEpiRequirements) .values({ tenantId: data.

    • 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/ghe-epi-requirement.repository.ts, run delete.

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

    • Generated

      Returns the result of findActiveByCompany.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<GheEpiRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, retrieve data through findActiveByCompany.

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

    • Generated

      Returns the result of findActiveByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, retrieve data through findActiveByTenant.

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

    • Generated

      Returns the result of findByCompany.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<GheEpiRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, retrieve data through findByCompany.

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

    • Generated

      Returns the result of findByGhe.

      Parameters

      • gheId: string

        The gheId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, retrieve data through findByGhe.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiRequirement | null>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, retrieve data through findById.

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

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, retrieve data through findByTenant.

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

    • Generated

      Returns the result of findManyByGheIds.

      Parameters

      • gheIds: string[]

        The gheIds value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiRequirement[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, retrieve data through findManyByGheIds.

      Behavior: Async; accepts gheIds and tenantId; returns a value; invokes this.db .select() .from(gheEpiRequirements) .where( and( inA.

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: UpdateGheEpiRequirementData

        The data value.

      Returns Promise<GheEpiRequirement>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-requirement.repository.ts, run update.

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db .update(gheEpiRequirements) .set(payload) .where(and.