@opencrvs/toolkit 1.9.13-rc.5aa4cfc → 1.9.13-rc.5e5c908

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.
@@ -88,6 +88,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
88
88
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, z.ZodTypeDef, import("./FieldValue").FieldUpdateValue>>>;
89
89
  originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
90
90
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
91
+ keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
92
+ keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
91
93
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
92
94
  }, {
93
95
  type: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DUPLICATE_DETECTED", "REJECT", "MARK_AS_DUPLICATE", "MARK_AS_NOT_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
@@ -102,6 +104,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
102
104
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | undefined;
103
105
  originalActionId?: (string & z.BRAND<"UUID">) | undefined;
104
106
  keepAssignment?: boolean | undefined;
107
+ keepAssignmentIfAccepted?: boolean | undefined;
108
+ keepAssignmentIfRejected?: boolean | undefined;
105
109
  }, {
106
110
  type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
107
111
  status: "Rejected" | "Requested" | "Accepted";
@@ -112,6 +116,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
112
116
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | undefined;
113
117
  originalActionId?: string | undefined;
114
118
  keepAssignment?: boolean | undefined;
119
+ keepAssignmentIfAccepted?: boolean | undefined;
120
+ keepAssignmentIfRejected?: boolean | undefined;
115
121
  }>;
116
122
  export type Draft = z.infer<typeof Draft>;
117
123
  export type DraftInput = z.infer<typeof DraftInput>;
@@ -2784,7 +2784,6 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
2784
2784
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2785
2785
  }, {
2786
2786
  type: z.ZodLiteral<"PARAGRAPH">;
2787
- defaultValue: z.ZodOptional<z.ZodString>;
2788
2787
  configuration: z.ZodDefault<z.ZodObject<{
2789
2788
  styles: z.ZodOptional<z.ZodObject<{
2790
2789
  fontVariant: z.ZodOptional<z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>>;
@@ -2854,7 +2853,6 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
2854
2853
  hideLabel?: boolean | undefined;
2855
2854
  uncorrectable?: boolean | undefined;
2856
2855
  analytics?: boolean | undefined;
2857
- defaultValue?: string | undefined;
2858
2856
  }, {
2859
2857
  type: "PARAGRAPH";
2860
2858
  id: string;
@@ -2916,7 +2914,6 @@ declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
2916
2914
  hideLabel?: boolean | undefined;
2917
2915
  uncorrectable?: boolean | undefined;
2918
2916
  analytics?: boolean | undefined;
2919
- defaultValue?: string | undefined;
2920
2917
  configuration?: {
2921
2918
  styles?: {
2922
2919
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
@@ -3020,7 +3017,6 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
3020
3017
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3021
3018
  }, {
3022
3019
  type: z.ZodLiteral<"PAGE_HEADER">;
3023
- defaultValue: z.ZodOptional<z.ZodString>;
3024
3020
  }>, "strip", z.ZodTypeAny, {
3025
3021
  type: "PAGE_HEADER";
3026
3022
  id: string;
@@ -3062,7 +3058,6 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
3062
3058
  hideLabel?: boolean | undefined;
3063
3059
  uncorrectable?: boolean | undefined;
3064
3060
  analytics?: boolean | undefined;
3065
- defaultValue?: string | undefined;
3066
3061
  }, {
3067
3062
  type: "PAGE_HEADER";
3068
3063
  id: string;
@@ -3124,7 +3119,6 @@ declare const PageHeader: z.ZodObject<z.objectUtil.extendShape<{
3124
3119
  hideLabel?: boolean | undefined;
3125
3120
  uncorrectable?: boolean | undefined;
3126
3121
  analytics?: boolean | undefined;
3127
- defaultValue?: string | undefined;
3128
3122
  }>;
3129
3123
  export type PageHeader = z.infer<typeof PageHeader>;
3130
3124
  declare const File: z.ZodObject<z.objectUtil.extendShape<{
@@ -4175,7 +4169,6 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
4175
4169
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4176
4170
  }, {
4177
4171
  type: z.ZodLiteral<"BULLET_LIST">;
4178
- defaultValue: z.ZodOptional<z.ZodString>;
4179
4172
  items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
4180
4173
  id: string;
4181
4174
  description: string;
@@ -4245,7 +4238,6 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
4245
4238
  hideLabel?: boolean | undefined;
4246
4239
  uncorrectable?: boolean | undefined;
4247
4240
  analytics?: boolean | undefined;
4248
- defaultValue?: string | undefined;
4249
4241
  }, {
4250
4242
  type: "BULLET_LIST";
4251
4243
  id: string;
@@ -4312,7 +4304,6 @@ declare const BulletList: z.ZodObject<z.objectUtil.extendShape<{
4312
4304
  hideLabel?: boolean | undefined;
4313
4305
  uncorrectable?: boolean | undefined;
4314
4306
  analytics?: boolean | undefined;
4315
- defaultValue?: string | undefined;
4316
4307
  configuration?: {
4317
4308
  styles?: {
4318
4309
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
@@ -94,176 +94,7 @@ export declare function findActiveDraftForEvent(event: EventDocument, draft: Dra
94
94
  export declare function createEmptyDraft(eventId: UUID, draftId: UUID, actionType: Exclude<ActionType, 'DELETE'>): Draft;
95
95
  export declare function isVerificationPage(page: PageConfig): page is VerificationPageConfig;
96
96
  export declare function getVisibleVerificationPageIds(pages: PageConfig[], annotation: ActionUpdate, context: ValidatorContext): string[];
97
- export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, declaration: EventState, annotation: ActionUpdate, context: ValidatorContext): Partial<{
98
- [x: string]: string | number | boolean | {
99
- type: string;
100
- path: string;
101
- originalFilename: string;
102
- } | {
103
- firstname: string;
104
- surname: string;
105
- middlename?: string | undefined;
106
- } | {
107
- firstname?: string | null | undefined;
108
- surname?: string | null | undefined;
109
- middlename?: string | null | undefined;
110
- } | {
111
- country: string;
112
- addressType: "DOMESTIC";
113
- administrativeArea: string;
114
- streetLevelDetails?: Record<string, string> | undefined;
115
- } | {
116
- country: string;
117
- addressType: "INTERNATIONAL";
118
- streetLevelDetails?: Record<string, string> | undefined;
119
- } | {
120
- addressType: "DOMESTIC";
121
- country?: string | null | undefined;
122
- streetLevelDetails?: Record<string, string | null> | null | undefined;
123
- administrativeArea?: string | null | undefined;
124
- } | {
125
- addressType: "INTERNATIONAL";
126
- country?: string | null | undefined;
127
- streetLevelDetails?: Record<string, string | null> | null | undefined;
128
- } | {
129
- type: string;
130
- option: string;
131
- path: string;
132
- originalFilename: string;
133
- }[] | {
134
- loading: boolean;
135
- data?: any;
136
- error?: {
137
- message: string;
138
- statusCode: number;
139
- } | null | undefined;
140
- } | {
141
- data?: any;
142
- error?: {
143
- message: string;
144
- statusCode: number;
145
- } | null | undefined;
146
- loading?: boolean | null | undefined;
147
- } | {
148
- data: Record<string, string>;
149
- } | {
150
- data: Record<string, string>;
151
- } | {
152
- data?: any;
153
- } | {
154
- numericValue: number;
155
- unit: string;
156
- } | {
157
- numericValue?: number | undefined;
158
- unit?: string | undefined;
159
- } | (string & import("zod").BRAND<"PlainDate">) | {
160
- age: number;
161
- asOfDateRef: string;
162
- } | {
163
- start: string & import("zod").BRAND<"PlainDate">;
164
- end: string & import("zod").BRAND<"PlainDate">;
165
- } | Record<string, string | number | boolean | {
166
- type: string;
167
- path: string;
168
- originalFilename: string;
169
- } | {
170
- firstname: string;
171
- surname: string;
172
- middlename?: string | undefined;
173
- } | {
174
- firstname?: string | null | undefined;
175
- surname?: string | null | undefined;
176
- middlename?: string | null | undefined;
177
- } | {
178
- country: string;
179
- addressType: "DOMESTIC";
180
- administrativeArea: string;
181
- streetLevelDetails?: Record<string, string> | undefined;
182
- } | {
183
- country: string;
184
- addressType: "INTERNATIONAL";
185
- streetLevelDetails?: Record<string, string> | undefined;
186
- } | {
187
- type: string;
188
- option: string;
189
- path: string;
190
- originalFilename: string;
191
- }[] | {
192
- loading: boolean;
193
- data?: any;
194
- error?: {
195
- message: string;
196
- statusCode: number;
197
- } | null | undefined;
198
- } | {
199
- data: Record<string, string>;
200
- } | {
201
- data?: any;
202
- } | {
203
- numericValue: number;
204
- unit: string;
205
- } | {
206
- numericValue?: number | undefined;
207
- unit?: string | undefined;
208
- } | (string & import("zod").BRAND<"PlainDate">) | {
209
- age: number;
210
- asOfDateRef: string;
211
- } | {
212
- start: string & import("zod").BRAND<"PlainDate">;
213
- end: string & import("zod").BRAND<"PlainDate">;
214
- } | null | undefined> | {
215
- data: Record<string, string | number | boolean | {
216
- type: string;
217
- path: string;
218
- originalFilename: string;
219
- } | {
220
- firstname: string;
221
- surname: string;
222
- middlename?: string | undefined;
223
- } | {
224
- firstname?: string | null | undefined;
225
- surname?: string | null | undefined;
226
- middlename?: string | null | undefined;
227
- } | {
228
- country: string;
229
- addressType: "DOMESTIC";
230
- administrativeArea: string;
231
- streetLevelDetails?: Record<string, string> | undefined;
232
- } | {
233
- country: string;
234
- addressType: "INTERNATIONAL";
235
- streetLevelDetails?: Record<string, string> | undefined;
236
- } | {
237
- type: string;
238
- option: string;
239
- path: string;
240
- originalFilename: string;
241
- }[] | {
242
- loading: boolean;
243
- data?: any;
244
- error?: {
245
- message: string;
246
- statusCode: number;
247
- } | null | undefined;
248
- } | {
249
- data: Record<string, string>;
250
- } | {
251
- data?: any;
252
- } | {
253
- numericValue: number;
254
- unit: string;
255
- } | {
256
- numericValue?: number | undefined;
257
- unit?: string | undefined;
258
- } | (string & import("zod").BRAND<"PlainDate">) | {
259
- age: number;
260
- asOfDateRef: string;
261
- } | {
262
- start: string & import("zod").BRAND<"PlainDate">;
263
- end: string & import("zod").BRAND<"PlainDate">;
264
- } | null | undefined>;
265
- } | null | undefined;
266
- }>;
97
+ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, declaration: EventState, annotation: ActionUpdate, context: ValidatorContext): Partial<Record<string, import("./FieldValue").FieldUpdateValue>>;
267
98
  /**
268
99
  * Merges two documents together.
269
100
  *
@@ -629,7 +460,7 @@ export declare function timePeriodToDateRange(value: SelectDateRangeValue): {
629
460
  };
630
461
  export declare function mergeDrafts(currentDraft: Draft, incomingDraft: Draft): Draft;
631
462
  export declare function getPendingAction(actions: Action[]): ActionDocument;
632
- export declare function getCompleteActionAnnotation(annotation: ActionUpdate, event: EventDocument, action: ActionDocument): ActionUpdate;
463
+ export declare function getCompleteActionAnnotation(event: EventDocument, action: ActionDocument): ActionUpdate;
633
464
  export declare function getCompleteActionDeclaration<T extends EventState | ActionUpdate>(declaration: T, event: EventDocument, action: ActionDocument): T;
634
465
  export declare function getAcceptedActions(event: EventDocument): ActionDocument[];
635
466
  export declare function aggregateActionDeclarations(event: EventDocument): EventState;
@@ -2154,12 +2154,10 @@ var ParagraphConfiguration = import_zod17.z.object({
2154
2154
  }).default({});
2155
2155
  var Paragraph = BaseField.extend({
2156
2156
  type: import_zod17.z.literal(FieldType.PARAGRAPH),
2157
- defaultValue: NonEmptyTextValue.optional(),
2158
2157
  configuration: ParagraphConfiguration
2159
2158
  }).describe("A read-only HTML <p> paragraph");
2160
2159
  var PageHeader = BaseField.extend({
2161
- type: import_zod17.z.literal(FieldType.PAGE_HEADER),
2162
- defaultValue: NonEmptyTextValue.optional()
2160
+ type: import_zod17.z.literal(FieldType.PAGE_HEADER)
2163
2161
  }).describe("A read-only header component for form pages");
2164
2162
  var File = BaseField.extend({
2165
2163
  type: import_zod17.z.literal(FieldType.FILE),
@@ -2209,7 +2207,6 @@ var RadioGroup = BaseField.extend({
2209
2207
  }).describe("Grouped radio options");
2210
2208
  var BulletList = BaseField.extend({
2211
2209
  type: import_zod17.z.literal(FieldType.BULLET_LIST),
2212
- defaultValue: TextValue.optional(),
2213
2210
  items: import_zod17.z.array(TranslationConfig).describe("A list of items"),
2214
2211
  configuration: import_zod17.z.object({
2215
2212
  styles: import_zod17.z.object({
@@ -3419,6 +3416,9 @@ ajv.addKeyword({
3419
3416
  return locations.some((location) => location.id === locationIdInput);
3420
3417
  }
3421
3418
  });
3419
+ function mergeWithBaseFormState(values, context) {
3420
+ return { ...context.baseFormState, ...values };
3421
+ }
3422
3422
  function validate(schema, data) {
3423
3423
  const validator = ajv.getSchema(schema.$id) || ajv.compile(schema);
3424
3424
  if ("$form" in data) {
@@ -3461,7 +3461,7 @@ function isOnline() {
3461
3461
  }
3462
3462
  function isConditionMet(conditional, values, context) {
3463
3463
  return validate(conditional, {
3464
- $form: values,
3464
+ $form: mergeWithBaseFormState(values, context),
3465
3465
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3466
3466
  $online: isOnline(),
3467
3467
  $user: context.user,
@@ -3488,7 +3488,7 @@ function isFieldConditionMet(field3, form, conditionalType, context) {
3488
3488
  return true;
3489
3489
  }
3490
3490
  const validConditionals = getConditionalActionsForField(field3, {
3491
- $form: form,
3491
+ $form: mergeWithBaseFormState(form, context),
3492
3492
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3493
3493
  $online: isOnline(),
3494
3494
  $user: context.user,
@@ -3641,7 +3641,7 @@ function runFieldValidations({
3641
3641
  return [];
3642
3642
  }
3643
3643
  const conditionalParameters = {
3644
- $form: form,
3644
+ $form: mergeWithBaseFormState(form, context),
3645
3645
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3646
3646
  /**
3647
3647
  * In real use cases, there can be hundreds of thousands of locations.
@@ -3873,7 +3873,7 @@ function omitHiddenPaginatedFields(formConfig, values, validatorContext, include
3873
3873
  const visibleFields = formConfig.pages.filter((p) => isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
3874
3874
  const hiddenFields = formConfig.pages.filter((p) => !isPageVisible(p, values, validatorContext)).flatMap((p) => p.fields);
3875
3875
  const valuesExceptHiddenPage = (0, import_lodash.omitBy)(values, (_2, fieldId) => {
3876
- return hiddenFields.some((f) => f.id === fieldId);
3876
+ return hiddenFields.some((f) => f.id === fieldId) && !visibleFields.some((f) => f.id === fieldId);
3877
3877
  });
3878
3878
  return omitHiddenFields(
3879
3879
  visibleFields,
@@ -3920,11 +3920,10 @@ function getVisibleVerificationPageIds(pages, annotation, context) {
3920
3920
  }
3921
3921
  function omitHiddenAnnotationFields(actionConfig, declaration, annotation, context) {
3922
3922
  const annotationFields = getActionAnnotationFields(actionConfig);
3923
- return omitHiddenFields(
3924
- annotationFields,
3925
- { ...declaration, ...annotation },
3926
- context
3927
- );
3923
+ return omitHiddenFields(annotationFields, annotation, {
3924
+ ...context,
3925
+ baseFormState: declaration
3926
+ });
3928
3927
  }
3929
3928
  function deepMerge(currentDocument, actionDocument) {
3930
3929
  const currentDocumentClone = (0, import_lodash.cloneDeep)(currentDocument);
@@ -4098,20 +4097,16 @@ function getPendingAction(actions) {
4098
4097
  }
4099
4098
  return pendingActions[0];
4100
4099
  }
4101
- function getCompleteActionAnnotation(annotation, event2, action) {
4100
+ function getCompleteActionAnnotation(event2, action) {
4102
4101
  if (action.originalActionId) {
4103
4102
  const originalAction = event2.actions.find(
4104
4103
  ({ id }) => id === action.originalActionId
4105
4104
  );
4106
- if (originalAction?.status !== ActionStatus.Requested) {
4107
- return annotation;
4105
+ if (originalAction?.status === ActionStatus.Requested) {
4106
+ return deepMerge(originalAction.annotation ?? {}, action.annotation ?? {});
4108
4107
  }
4109
- return deepMerge(
4110
- deepMerge(annotation, originalAction.annotation ?? {}),
4111
- action.annotation ?? {}
4112
- );
4113
4108
  }
4114
- return deepMerge(annotation, action.annotation ?? {});
4109
+ return action.annotation ?? {};
4115
4110
  }
4116
4111
  function getCompleteActionDeclaration(declaration, event2, action) {
4117
4112
  if (action.originalActionId) {
@@ -4131,7 +4126,7 @@ function getAcceptedActions(event2) {
4131
4126
  return event2.actions.filter(isAcceptedAction).map((action) => ({
4132
4127
  ...action,
4133
4128
  declaration: getCompleteActionDeclaration({}, event2, action),
4134
- annotation: getCompleteActionAnnotation({}, event2, action)
4129
+ annotation: getCompleteActionAnnotation(event2, action)
4135
4130
  }));
4136
4131
  }
4137
4132
  var EXCLUDED_ACTIONS = [
@@ -5307,6 +5302,8 @@ var BaseActionInput = import_zod34.z.object({
5307
5302
  originalActionId: UUID.optional(),
5308
5303
  // should not be part of base action.
5309
5304
  keepAssignment: import_zod34.z.boolean().optional(),
5305
+ keepAssignmentIfAccepted: import_zod34.z.boolean().optional(),
5306
+ keepAssignmentIfRejected: import_zod34.z.boolean().optional(),
5310
5307
  // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
5311
5308
  createdAtLocation: CreatedAtLocation.describe(
5312
5309
  "A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
@@ -5877,7 +5874,7 @@ function getActionAnnotation({
5877
5874
  const action = (0, import_lodash3.findLast)(activeActions, (a) => a.type === actionType);
5878
5875
  const actionWithCompleteAnnotation = action && {
5879
5876
  ...action,
5880
- annotation: getCompleteActionAnnotation({}, event2, action)
5877
+ annotation: getCompleteActionAnnotation(event2, action)
5881
5878
  };
5882
5879
  const matchingDraft = draft?.action.type === actionType ? draft : void 0;
5883
5880
  const sortedActions = (0, import_lodash3.orderBy)(
@@ -1660,12 +1660,10 @@ var ParagraphConfiguration = import_zod17.z.object({
1660
1660
  }).default({});
1661
1661
  var Paragraph = BaseField.extend({
1662
1662
  type: import_zod17.z.literal(FieldType.PARAGRAPH),
1663
- defaultValue: NonEmptyTextValue.optional(),
1664
1663
  configuration: ParagraphConfiguration
1665
1664
  }).describe("A read-only HTML <p> paragraph");
1666
1665
  var PageHeader = BaseField.extend({
1667
- type: import_zod17.z.literal(FieldType.PAGE_HEADER),
1668
- defaultValue: NonEmptyTextValue.optional()
1666
+ type: import_zod17.z.literal(FieldType.PAGE_HEADER)
1669
1667
  }).describe("A read-only header component for form pages");
1670
1668
  var File = BaseField.extend({
1671
1669
  type: import_zod17.z.literal(FieldType.FILE),
@@ -1715,7 +1713,6 @@ var RadioGroup = BaseField.extend({
1715
1713
  }).describe("Grouped radio options");
1716
1714
  var BulletList = BaseField.extend({
1717
1715
  type: import_zod17.z.literal(FieldType.BULLET_LIST),
1718
- defaultValue: TextValue.optional(),
1719
1716
  items: import_zod17.z.array(TranslationConfig).describe("A list of items"),
1720
1717
  configuration: import_zod17.z.object({
1721
1718
  styles: import_zod17.z.object({
@@ -3804,6 +3801,8 @@ var BaseActionInput = import_zod34.z.object({
3804
3801
  originalActionId: UUID.optional(),
3805
3802
  // should not be part of base action.
3806
3803
  keepAssignment: import_zod34.z.boolean().optional(),
3804
+ keepAssignmentIfAccepted: import_zod34.z.boolean().optional(),
3805
+ keepAssignmentIfRejected: import_zod34.z.boolean().optional(),
3807
3806
  // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
3808
3807
  createdAtLocation: CreatedAtLocation.describe(
3809
3808
  "A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.13-rc.5aa4cfc",
3
+ "version": "1.9.13-rc.5e5c908",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {
@@ -17,21 +17,21 @@
17
17
  "build:all": "lerna run build --include-dependencies --scope @opencrvs/toolkit && ./build.sh"
18
18
  },
19
19
  "dependencies": {
20
- "uuid": "^9.0.0",
20
+ "@trpc/client": "11.4.3",
21
+ "@trpc/server": "11.4.3",
21
22
  "ajv": "^8.17.1",
22
23
  "ajv-formats": "^3.0.1",
23
24
  "object-hash": "^3.0.0",
24
25
  "superjson": "1.9.0-0",
25
- "@trpc/client": "11.4.3",
26
- "@trpc/server": "11.4.3",
26
+ "uuid": "^9.0.0",
27
27
  "zod-openapi": "^4.2.4"
28
28
  },
29
29
  "devDependencies": {
30
+ "@opencrvs/events": "^1.9.0",
31
+ "@types/object-hash": "^3.0.6",
30
32
  "@types/uuid": "^9.0.3",
31
33
  "esbuild": "^0.24.0",
32
- "typescript": "^5.6.3",
33
- "@opencrvs/events": "^1.9.0",
34
- "@types/object-hash": "^3.0.6"
34
+ "typescript": "^5.6.3"
35
35
  },
36
36
  "moduleNameMapper": {
37
37
  "@opencrvs/commons/events": "@opencrvs/commons/build/dist/common/events/index.js",