elioria-sst-x
    Preparing search index...

    Class SupabaseEpiPurchaseRequestEventRepository

    Implements

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

    The db value.

    • Generated

      Executes create.

      Parameters

      • data: CreateEpiPurchaseRequestEventData

        The data value.

      Returns Promise<EpiPurchaseRequestEvent>

      The function result.

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

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

    • Generated

      Returns the result of findByRequestId.

      Parameters

      • requestId: string

        The requestId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiPurchaseRequestEvent[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-purchase-request.repository.ts, retrieve data through findByRequestId.

      Behavior: Async; accepts requestId and tenantId; returns a value; invokes this.db .select() .from(epiPurchaseRequestEvents) .where( an.