@opencrvs/toolkit 2.0.0-rc.bd975e4 → 2.0.0-rc.bdb99da
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.
|
@@ -22,6 +22,7 @@ export * from './FieldValue';
|
|
|
22
22
|
export * from './FormConfig';
|
|
23
23
|
export * from './CompositeFieldValue';
|
|
24
24
|
export * from './state';
|
|
25
|
+
export * from './state/flags';
|
|
25
26
|
export * from './utils';
|
|
26
27
|
export * from './defineConfig';
|
|
27
28
|
export * from './DeduplicationConfig';
|
|
@@ -3,6 +3,7 @@ import { Flag, CustomFlag } from '../Flag';
|
|
|
3
3
|
import { EventConfig } from '../EventConfig';
|
|
4
4
|
import { EventDocument } from '../EventDocument';
|
|
5
5
|
export declare function findPendingCorrectionAction(writeActions: Action[]): RequestedCorrectionAction | undefined;
|
|
6
|
+
export declare function isPotentialDuplicate(actions: Action[]): boolean;
|
|
6
7
|
/**
|
|
7
8
|
* This function resolves custom flags for an event based on its actions.
|
|
8
9
|
* Flags are not stored to the event state or any database directly, instead they are always computed/evaluated from the event actions.
|
package/dist/events/index.js
CHANGED
|
@@ -282,6 +282,7 @@ __export(events_exports, {
|
|
|
282
282
|
findActiveDraftForEvent: () => findActiveDraftForEvent,
|
|
283
283
|
findAllFields: () => findAllFields,
|
|
284
284
|
findLastAssignmentAction: () => findLastAssignmentAction,
|
|
285
|
+
findPendingCorrectionAction: () => findPendingCorrectionAction,
|
|
285
286
|
findRecordActionPages: () => findRecordActionPages,
|
|
286
287
|
flag: () => flag,
|
|
287
288
|
flattenFieldReference: () => flattenFieldReference,
|
|
@@ -323,6 +324,7 @@ __export(events_exports, {
|
|
|
323
324
|
getDeclarationFields: () => getDeclarationFields,
|
|
324
325
|
getDeclarationPages: () => getDeclarationPages,
|
|
325
326
|
getEventConfigById: () => getEventConfigById,
|
|
327
|
+
getEventFlags: () => getEventFlags,
|
|
326
328
|
getFilePathsFromEvent: () => getFilePathsFromEvent,
|
|
327
329
|
getLocationHierarchy: () => getLocationHierarchy,
|
|
328
330
|
getMixedPath: () => getMixedPath,
|
|
@@ -385,6 +387,7 @@ __export(events_exports, {
|
|
|
385
387
|
isPageVisible: () => isPageVisible,
|
|
386
388
|
isParagraphFieldType: () => isParagraphFieldType,
|
|
387
389
|
isPhoneFieldType: () => isPhoneFieldType,
|
|
390
|
+
isPotentialDuplicate: () => isPotentialDuplicate,
|
|
388
391
|
isPrintButtonFieldType: () => isPrintButtonFieldType,
|
|
389
392
|
isQrReaderFieldType: () => isQrReaderFieldType,
|
|
390
393
|
isQueryParamReaderFieldType: () => isQueryParamReaderFieldType,
|
|
@@ -418,6 +421,7 @@ __export(events_exports, {
|
|
|
418
421
|
plainDateToLocalDate: () => plainDateToLocalDate,
|
|
419
422
|
precompileActionSchemas: () => precompileActionSchemas,
|
|
420
423
|
resolveDateOfEvent: () => resolveDateOfEvent,
|
|
424
|
+
resolveEventCustomFlags: () => resolveEventCustomFlags,
|
|
421
425
|
resolvePlaceOfEvent: () => resolvePlaceOfEvent,
|
|
422
426
|
runFieldValidations: () => runFieldValidations,
|
|
423
427
|
runStructuralValidations: () => runStructuralValidations,
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|