elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionComplianceAssessmentRepository

    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<InspectionComplianceAssessment | null>

      The function result.

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

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

    • Generated

      Returns the result of findByInspection.

      Parameters

      • inspectionId: string

        The inspectionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionComplianceAssessment[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-compliance-assessment.repository.ts, retrieve data through findByInspection.

      Behavior: Async; accepts inspectionId and tenantId; returns a value; invokes this.db.select().from(inspectionComplianceAssessments) .wher.

    • Generated

      Returns the result of findByNrRequirement.

      Parameters

      • nrRequirementId: string

        The nrRequirementId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionComplianceAssessment[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-compliance-assessment.repository.ts, retrieve data through findByNrRequirement.

      Behavior: Async; accepts nrRequirementId and tenantId; returns a value; invokes this.db.select().from(inspectionComplianceAssessments) .wher.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionComplianceAssessment[]>

      The function result.

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

      Behavior: Async; accepts tenantId; returns a value; invokes this.db.select().from(inspectionComplianceAssessments) .wher.

    • Generated

      Returns the result of getComplianceScoreByNr.

      Parameters

      • tenantId: string

        The tenantId value.

      • Optionalfilter: HierarchyFilter

        The filter value.

      Returns Promise<NrComplianceScore[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-compliance-assessment.repository.ts, retrieve data through getComplianceScoreByNr.

      Behavior: Async; accepts tenantId and filter; returns a value; invokes this.db .select({ nrNumber: inspectionNrRequirements.nrNumbe.