elioria-sst-x
    Preparing search index...

    Class SupabasePersonInvolvedRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByIncident.

      Parameters

      • incidentId: string

        The incidentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<PersonInvolved[]>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, retrieve data through findByIncident.

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

    • Generated

      Executes remove.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, run remove.

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: Partial<Omit<PersonInvolved, "id" | "tenantId" | "incidentId" | "createdAt">>

        The data value.

      Returns Promise<PersonInvolved>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, run update.

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db .update(personsInvolved) .set(data as Record<string,; may throw.

      When the function cannot complete normally.