elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionProgramRepository

    Implements

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

    The db value.

    • Generated

      Executes delete.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<boolean>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-program.repository.ts, run delete.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionProgram | null>

      The function result.

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

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

    • Generated

      Returns the result of findByStatus.

      Parameters

      • tenantId: string

        The tenantId value.

      • status: InspectionProgramStatus

        The status value.

      Returns Promise<InspectionProgram[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-program.repository.ts, retrieve data through findByStatus.

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

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionProgram[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-program.repository.ts, retrieve data through findByTenant.

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

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: InspectionProgramStatus

        The status value.

      Returns Promise<InspectionProgram | null>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-program.repository.ts, change data through updateStatus.

      Behavior: Async; accepts id and tenantId and status; returns a value; invokes this.db.update(inspectionPrograms).set({ status }) .where(an.