elioria-sst-x
    Preparing search index...

    Class SupabaseEpiIndividualNeedRepository

    Implements

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

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: CreateEpiIndividualNeedData

        The data value.

      Returns Promise<EpiIndividualNeed>

      The function result.

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

      Behavior: Async; accepts data; returns a value; invokes this.db.insert(epiIndividualNeeds).values(data).returning.

    • Generated

      Executes deactivate.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      • actorId: string

        The actorId value.

      Returns Promise<EpiIndividualNeed | null>

      The function result.

      Objective: In module packages/db/src/repositories/epi-individual-need.repository.ts, run deactivate.

      Behavior: Async; accepts id and tenantId and companyId and actorId; returns a value; invokes this.db.update(epiIndividualNeeds).set({ active: false, deac.

    • Generated

      Returns the result of findActiveByCollaboratorIds.

      Parameters

      • collaboratorIds: string[]

        The collaboratorIds value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<EpiIndividualNeed[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-individual-need.repository.ts, retrieve data through findActiveByCollaboratorIds.

      Behavior: Async; accepts collaboratorIds and tenantId and companyId; returns a value; invokes (await this.db.select().from(epiIndividualNeeds).where(and(i.

    • Generated

      Returns the result of findByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      • activeOnly: boolean = false

        The activeOnly value.

      Returns Promise<EpiIndividualNeed[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-individual-need.repository.ts, retrieve data through findByCollaborator.

      Behavior: Async; accepts collaboratorId and tenantId and companyId and activeOnly; returns a value; invokes eq.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiIndividualNeed | null>

      The function result.

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

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