@opencrvs/toolkit 2.1.0-rc.d04f6c3 → 2.1.0-rc.d078d1a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/application-config/index.js +200 -189
- package/dist/commons/api/router.d.ts +3350 -3246
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +259 -2102
- package/dist/commons/conditionals/validate.d.ts +10 -1
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +111 -117
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +519 -507
- package/dist/commons/events/AuditLog.d.ts +79 -42
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +8 -5
- package/dist/commons/events/EventDocument.d.ts +46 -46
- package/dist/commons/events/EventIndex.d.ts +48 -71
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +346 -336
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +91 -91
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +57 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +817 -814
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +14 -2
- package/dist/commons/events/field.d.ts +78 -895
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +103 -6
- package/dist/commons/events/mocks.test.utils.d.ts +18 -4
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +40 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +303 -55
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +8 -14
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +3463 -3297
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +1709 -1039
- package/dist/scopes/index.d.ts +371 -146
- package/dist/scopes/index.js +304 -55
- package/opencrvs-toolkit-2.1.0-rc.d078d1a.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.d04f6c3.tgz +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NonSearchableEventMetadataTimeFieldIdInput, AdvancedSearchConfig } from '../event-config/event-configuration';
|
|
2
2
|
import { ActionType } from './ActionType';
|
|
3
3
|
import { EventFieldIdInput } from './AdvancedSearchConfig';
|
|
4
|
+
import { EventStatus } from './EventMetadata';
|
|
5
|
+
import { Flag } from './Flag';
|
|
4
6
|
import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig';
|
|
5
7
|
/**
|
|
6
8
|
* Creates a function that acts like a callable + static method container.
|
|
@@ -20,6 +22,8 @@ declare const event: typeof eventFn & {
|
|
|
20
22
|
* @param action - The action type to check for.
|
|
21
23
|
*/
|
|
22
24
|
hasAction: (action: ActionType) => {
|
|
25
|
+
$id: string;
|
|
26
|
+
__nominal__type: 'JSONSchema';
|
|
23
27
|
/**
|
|
24
28
|
* Creates a conditional that checks if the event contains a specific action type
|
|
25
29
|
* with a minimum count of occurrences.
|
|
@@ -71,10 +75,18 @@ declare const event: typeof eventFn & {
|
|
|
71
75
|
*/
|
|
72
76
|
maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema;
|
|
73
77
|
};
|
|
74
|
-
$id: string;
|
|
75
|
-
__nominal__type: "JSONSchema";
|
|
76
78
|
};
|
|
77
79
|
field(field: WorkqueueColumnKeys): WorkqueueColumnValue;
|
|
80
|
+
/**
|
|
81
|
+
* Checks if the event currently has the given status.
|
|
82
|
+
* @param eventStatus - The status to check for.
|
|
83
|
+
*/
|
|
84
|
+
hasStatus: (eventStatus: EventStatus) => import("../conditionals/conditionals").JSONSchema;
|
|
85
|
+
/**
|
|
86
|
+
* Checks if the event currently carries the given flag.
|
|
87
|
+
* @param flagValue - The flag to check for.
|
|
88
|
+
*/
|
|
89
|
+
hasFlag: (flagValue: Flag) => import("../conditionals/conditionals").JSONSchema;
|
|
78
90
|
};
|
|
79
91
|
export { event };
|
|
80
92
|
//# sourceMappingURL=event.d.ts.map
|