elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionComparativeRepository

    Implements

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

    The db value.

    • Generated

      Executes compareByAsset.

      Parameters

      • tenantId: string

        The tenantId value.

      • startDate: string

        The startDate value.

      • endDate: string

        The endDate value.

      • Optionalfilter: HierarchyFilter

        The filter value.

      Returns Promise<ComparativeAnalyticsResult[]>

      The function result.

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

      Behavior: Async; accepts tenantId and startDate and endDate and filter; returns a value; invokes this.db .select({ entityId: inspectionAssets.id, entityName:.

    • Generated

      Executes compareByPeriod.

      Parameters

      • tenantId: string

        The tenantId value.

      • unitId: string | null

        The unitId value.

      • periodType: "monthly" | "quarterly"

        The periodType value.

      • Optionalfilter: HierarchyFilter

        The filter value.

      Returns Promise<ComparativeAnalyticsResult[]>

      The function result.

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

      Behavior: Async; accepts tenantId and unitId and periodType and filter; returns a value; invokes eq.

    • Generated

      Executes compareByUnit.

      Parameters

      • tenantId: string

        The tenantId value.

      • startDate: string

        The startDate value.

      • endDate: string

        The endDate value.

      • Optionalfilter: HierarchyFilter

        The filter value.

      Returns Promise<ComparativeAnalyticsResult[]>

      The function result.

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

      Behavior: Async; accepts tenantId and startDate and endDate and filter; returns a value; invokes this.db .select({ entityId: units.id, entityName: sql<string.