elioria-sst-x
    Preparing search index...

    Implements

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

    The db value.

    • Generated

      Executes countByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<number>

      The function result.

      Objective: In module packages/db/src/repositories/epi-sheet.repository.ts, run countByTenant.

      Behavior: Async; accepts tenantId; returns a value; invokes this.db .select({ count: sql<number>count(*) }) .from(epiI.

    • Generated

      Returns the result of findActiveByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiSheet[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-sheet.repository.ts, retrieve data through findActiveByCollaborator.

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

    • Generated

      Returns the result of findByCollaborator.

      Parameters

      • collaboratorId: string

        The collaboratorId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiSheet[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-sheet.repository.ts, retrieve data through findByCollaborator.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiSheet | null>

      The function result.

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

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

    • Generated

      Returns the result of findManyByCollaboratorIds.

      Parameters

      • collaboratorIds: string[]

        The collaboratorIds value.

      • tenantId: string

        The tenantId value.

      Returns Promise<EpiSheet[]>

      The function result.

      Objective: In module packages/db/src/repositories/epi-sheet.repository.ts, retrieve data through findManyByCollaboratorIds.

      Behavior: Async; accepts collaboratorIds and tenantId; returns a value; invokes this.db .select() .from(epiIndividualSheets) .where( and( in.

    • Generated

      Updates data through updateItemStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: string

        The status value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/epi-sheet.repository.ts, change data through updateItemStatus.

      Behavior: Async; accepts id and tenantId and status; returns a value; invokes this.db .update(epiIndividualSheets) .set({ itemStatus: stat.

    • Generated

      Updates data through updateReturn.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • returnedAt: Date

        The returnedAt value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/epi-sheet.repository.ts, change data through updateReturn.

      Behavior: Async; accepts id and tenantId and returnedAt; returns a value; invokes this.db .update(epiIndividualSheets) .set({ returnedAt }) .w.