elioria-sst-x
    Preparing search index...

    Class SupabaseS2210SubmissionRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findActiveByIncident.

      Parameters

      • incidentId: string

        The incidentId value.

      • tenantId: string

        The tenantId value.

      • communicationType: S2210CommunicationType

        The communicationType value.

      Returns Promise<S2210Submission | null>

      The function result.

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

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<S2210Submission | null>

      The function result.

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

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

    • Generated

      Returns the result of findByIncident.

      Parameters

      • incidentId: string

        The incidentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<S2210Submission[]>

      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(s2210Submissions) .where(and(eq(s2210S.

    • Generated

      Returns the result of findLatestByIncident.

      Parameters

      • incidentId: string

        The incidentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<S2210Submission | null>

      The function result.

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

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

    • Generated

      Executes update.

      Parameters

      Returns Promise<S2210Submission>

      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(s2210Submissions) .set(data as Record<string,; may throw.

      When the function cannot complete normally.