elioria-sst-x
    Preparing search index...

    Class SupabaseCipaMandateRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findActiveExpiringSoon.

      Parameters

      • daysThreshold: number

        The daysThreshold value.

      Returns Promise<CipaMandate[]>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, retrieve data through findActiveExpiringSoon.

      Behavior: Async; accepts daysThreshold; returns a value; invokes new Date().toISOString().split.

    • Generated

      Returns the result of findByCompany.

      Parameters

      • companyId: string

        The companyId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaMandate[]>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, retrieve data through findByCompany.

      Behavior: Async; accepts companyId and tenantId; returns a value; invokes this.db.select().from(cipaMandates).where(and(eq(cipaMandate.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaMandate | null>

      The function result.

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

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

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaMandate[]>

      The function result.

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

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

    • Generated

      Returns the result of findByUnit.

      Parameters

      • unitId: string

        The unitId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaMandate[]>

      The function result.

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

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: Partial<{ isActive: boolean }>

        The data value.

      Returns Promise<CipaMandate | null>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, run update.

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db.update(cipaMandates).set(payload).where(and(eq(cipaM.