elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionAssetRepository

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

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionAsset | null>

      The function result.

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

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

    • Generated

      Returns the result of findByQrCode.

      Parameters

      • qrCodeData: string

        The qrCodeData value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionAsset | null>

      The function result.

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

      Behavior: Async; accepts qrCodeData and tenantId; returns a value; invokes this.db.select().from(inspectionAssets) .where(and(eq(inspec.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionAsset[]>

      The function result.

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

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

    • Generated

      Returns the result of findByUnit.

      Parameters

      • unitId: string

        The unitId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionAsset[]>

      The function result.

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

      Behavior: Async; accepts unitId and tenantId; returns a value; invokes this.db.select().from(inspectionAssets) .where(and(eq(inspec.