elioria-sst-x
    Preparing search index...

    Implements

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

    The db value.

    • Generated

      Returns the result of findByCollaboratorAcrossMandate.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • companyId: string

        The companyId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaMember[]>

      The function result.

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

      Behavior: Async; accepts collaboratorId and companyId and tenantId; returns a value; invokes this.db.select({ member: cipaMembers }).from(cipaMembers) .i.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaMember | 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(cipaMembers).where(and(eq(cipaMembers..

    • Generated

      Returns the result of findByMandate.

      Parameters

      • mandateId: string

        The mandateId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaMember[]>

      The function result.

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

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: Partial<{ endDate: string; isActive: boolean; role: CipaMemberRole }>

        The data value.

      Returns Promise<CipaMember | 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(cipaMembers).set(payload).where(and(eq(cipaMe.