@opencrvs/toolkit 1.9.2-rc.c76ff3e → 1.9.2-rc.f1d7235
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/commons/api/router.d.ts +504 -51
- package/dist/commons/events/ActionConfig.d.ts +1807 -13
- package/dist/commons/events/AdvancedSearchConfig.d.ts +11 -0
- package/dist/commons/events/EventConfig.d.ts +1191 -8
- package/dist/commons/events/EventIndex.d.ts +1 -0
- package/dist/commons/events/EventMetadata.d.ts +3 -1
- package/dist/commons/events/FieldConfig.d.ts +80 -0
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +8 -1
- package/dist/commons/events/FieldValue.d.ts +2 -1
- package/dist/commons/events/Flag.d.ts +7 -1
- package/dist/commons/events/FormConfig.d.ts +234 -0
- package/dist/commons/events/PageConfig.d.ts +156 -0
- package/dist/commons/events/TemplateConfig.d.ts +3 -3
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +5 -2
- package/dist/commons/events/WorkqueueConfig.d.ts +10 -5
- package/dist/commons/events/defineConfig.d.ts +455 -3
- package/dist/commons/events/event.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +6 -0
- package/dist/commons/events/utils.d.ts +896 -3
- package/dist/events/index.js +346 -246
- package/dist/notification/index.js +286 -244
- package/dist/scopes/index.d.ts +26 -0
- package/dist/scopes/index.js +6 -0
- package/package.json +1 -1
|
@@ -28,9 +28,14 @@ export declare const DEFAULT_DATE_OF_EVENT_PROPERTY = "createdAt";
|
|
|
28
28
|
export declare function resolveDateOfEvent(eventMetadata: {
|
|
29
29
|
createdAt: string;
|
|
30
30
|
}, declaration: EventState, config: EventConfig): string | undefined;
|
|
31
|
+
export declare const DEFAULT_PLACE_OF_EVENT_PROPERTY = "createdAtLocation";
|
|
32
|
+
export declare function resolvePlaceOfEvent(eventMetadata: {
|
|
33
|
+
createdAtLocation?: UUID | undefined | null;
|
|
34
|
+
}, declaration: EventState, config: EventConfig): UUID | undefined | null;
|
|
31
35
|
export declare function extractPotentialDuplicatesFromActions(actions: Action[]): PotentialDuplicate[];
|
|
32
36
|
/**
|
|
33
37
|
* NOTE: This function should not run field validations. It should return the state based on the actions, without considering context (users, roles, permissions, etc).
|
|
38
|
+
createdAtLocation: CreatedAtLocation
|
|
34
39
|
*
|
|
35
40
|
* If you update this function, please ensure @EventIndex type is updated accordingly.
|
|
36
41
|
* In most cases, you won't need to add new parameters to this function. Discuss with the team before doing so.
|
|
@@ -96,6 +101,7 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
96
101
|
flags: string[];
|
|
97
102
|
declaration: Record<string, import("..").FieldValue>;
|
|
98
103
|
dateOfEvent?: string | null | undefined;
|
|
104
|
+
placeOfEvent?: (string & import("zod/v4").$brand<"UUID">) | null | undefined;
|
|
99
105
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
100
106
|
createdAtLocation?: (string & import("zod/v4").$brand<"UUID">) | null | undefined;
|
|
101
107
|
createdBySignature?: string | null | undefined;
|