elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionTemplateSectionRepository

    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-template-section.repository.ts, run delete.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionTemplateSection | null>

      The function result.

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

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

    • Generated

      Returns the result of findByTemplate.

      Parameters

      • templateId: string

        The templateId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionTemplateSection[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-template-section.repository.ts, retrieve data through findByTemplate.

      Behavior: Async; accepts templateId and tenantId; returns a value; invokes this.db .select() .from(inspectionTemplateSections) .where(a.

    • Generated

      Executes reorder.

      Parameters

      • templateId: string

        The templateId value.

      • tenantId: string

        The tenantId value.

      • sectionIds: string[]

        The sectionIds value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-template-section.repository.ts, run reorder.

      Behavior: Async; accepts templateId and tenantId and sectionIds; returns a value; invokes this.db .update(inspectionTemplateSections) .set({ orderInde.