@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.
@@ -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;