elioria-sst-x
    Preparing search index...

    Class SupabaseGheEpiSuggestionRepository

    Implements

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

    The db value.

    • Generated

      Updates data through createMany.

      Parameters

      • data: CreateGheEpiSuggestionData[]

        The data value.

      Returns Promise<GheEpiSuggestion[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-suggestion.repository.ts, change data through createMany.

      Behavior: Async; accepts data; returns a value; invokes data.map.

    • Generated

      Updates data through deletePendingByGhe.

      Parameters

      • gheId: string

        The gheId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<number>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-suggestion.repository.ts, change data through deletePendingByGhe.

      Behavior: Async; accepts gheId and tenantId; returns a value; invokes this.db .delete(gheEpiSuggestions) .where( and( eq(gheEpiSug.

    • Generated

      Returns the result of findActiveByGheAndRule.

      Parameters

      • gheId: string

        The gheId value.

      • ruleId: string

        The ruleId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiSuggestion | null>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-suggestion.repository.ts, retrieve data through findActiveByGheAndRule.

      Behavior: Async; accepts gheId and ruleId and tenantId; returns a value; invokes this.db .select() .from(gheEpiSuggestions) .where( and( eq(g.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiSuggestion | null>

      The function result.

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

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

    • Generated

      Returns the result of findPendingByGheAndRule.

      Parameters

      • gheId: string

        The gheId value.

      • ruleId: string

        The ruleId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiSuggestion | null>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-suggestion.repository.ts, retrieve data through findPendingByGheAndRule.

      Behavior: Async; accepts gheId and ruleId and tenantId; returns a value; invokes this.db .select() .from(gheEpiSuggestions) .where( and( eq(g.

    • Generated

      Returns the result of listByGhe.

      Parameters

      • gheId: string

        The gheId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<GheEpiSuggestion[]>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-suggestion.repository.ts, retrieve data through listByGhe.

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

    • Generated

      Updates data through updateEpiCatalogId.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • epiCatalogId: string

        The epiCatalogId value.

      Returns Promise<GheEpiSuggestion | null>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-suggestion.repository.ts, change data through updateEpiCatalogId.

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

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: GheEpiSuggestionStatus

        The status value.

      • OptionalreviewedBy: string

        The reviewedBy value.

      • OptionalrejectionReason: string

        The rejectionReason value.

      • OptionalconvertedRequirementId: string

        The convertedRequirementId value.

      Returns Promise<GheEpiSuggestion | null>

      The function result.

      Objective: In module packages/db/src/repositories/ghe-epi-suggestion.repository.ts, change data through updateStatus.

      Behavior: Async; accepts id and tenantId and status and reviewedBy and rejectionReason and convertedRequirementId; returns a value; invokes this.db .update(gheEpiSuggestions) .set(payload) .where(and(.