-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
598 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export type CategoryGroup = | ||
| 'beneficiaryGroup' | ||
| 'contributionStatus' | ||
| 'contributionType' | ||
| 'customLocation' | ||
| 'earmarkingType' | ||
| 'emergencyType' | ||
| 'flowStatus' | ||
| 'flowType' | ||
| 'genderMarker' | ||
| 'inactiveReason' | ||
| 'keywords' | ||
| 'method' | ||
| 'organizationLevel' | ||
| 'organizationType' | ||
| 'pendingStatus' | ||
| 'planCosting' | ||
| 'planIndicated' | ||
| 'planType' | ||
| 'projectGrouping1' | ||
| 'projectGrouping2' | ||
| 'projectPriority' | ||
| 'regions' | ||
| 'reportChannel' | ||
| 'responseType' | ||
| 'sectorIASC' | ||
| 'subsetOfPlan'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/domain-services/flows/strategy/flowID-search-strategy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { type Database } from '@unocha/hpc-api-core/src/db'; | ||
import { type FlowId } from '@unocha/hpc-api-core/src/db/models/flow'; | ||
import { type FlowCategoryFilters } from '../graphql/args'; | ||
|
||
export interface FlowIdSearchStrategyResponse { | ||
flowIDs: FlowId[]; | ||
} | ||
|
||
export interface FlowIDSearchStrategy { | ||
search( | ||
models: Database, | ||
flowObjectsConditions: Map<string, Map<string, number[]>>, | ||
flowCategoryConditions: FlowCategoryFilters | ||
): Promise<FlowIdSearchStrategyResponse>; | ||
|
||
generateWhereClause(flowIds: FlowId[], conditions: any): any; | ||
} |
Oops, something went wrong.