elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionTemplateVersionRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionTemplateVersion | null>

      The function result.

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

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

    • Generated

      Returns the result of findByTemplate.

      Parameters

      • templateId: string

        The templateId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionTemplateVersion[]>

      The function result.

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

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

    • Generated

      Returns the result of findLatest.

      Parameters

      • templateId: string

        The templateId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionTemplateVersion | null>

      The function result.

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

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