@opencrvs/toolkit 1.9.6-rc.9d5857c → 1.9.6-rc.9e4e1dc

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.
Files changed (58) hide show
  1. package/dist/commons/api/router.d.ts +29384 -2317
  2. package/dist/commons/conditionals/conditionals.d.ts +10 -1
  3. package/dist/commons/conditionals/validate.d.ts +11 -4
  4. package/dist/commons/events/ActionConfig.d.ts +24973 -1552
  5. package/dist/commons/events/ActionDocument.d.ts +803 -1856
  6. package/dist/commons/events/ActionInput.d.ts +277 -1073
  7. package/dist/commons/events/ActionType.d.ts +86 -9
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +228 -1238
  9. package/dist/commons/events/CompositeFieldValue.d.ts +29 -190
  10. package/dist/commons/events/Conditional.d.ts +26 -38
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +1195 -4223
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +15 -150
  15. package/dist/commons/events/Draft.d.ts +70 -105
  16. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  17. package/dist/commons/events/EventConfig.d.ts +19932 -2120
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +320 -1332
  20. package/dist/commons/events/EventIndex.d.ts +193 -980
  21. package/dist/commons/events/EventInput.d.ts +2 -8
  22. package/dist/commons/events/EventMetadata.d.ts +106 -347
  23. package/dist/commons/events/FieldConfig.d.ts +4522 -12301
  24. package/dist/commons/events/FieldType.d.ts +20 -4
  25. package/dist/commons/events/FieldTypeMapping.d.ts +193 -897
  26. package/dist/commons/events/FieldValue.d.ts +87 -396
  27. package/dist/commons/events/Flag.d.ts +67 -0
  28. package/dist/commons/events/FormConfig.d.ts +13980 -721
  29. package/dist/commons/events/PageConfig.d.ts +9340 -319
  30. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  31. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  32. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  33. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  34. package/dist/commons/events/WorkqueueConfig.d.ts +1867 -7176
  35. package/dist/commons/events/deduplication.d.ts +3 -3
  36. package/dist/commons/events/defineConfig.d.ts +26563 -147
  37. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  38. package/dist/commons/events/index.d.ts +1 -0
  39. package/dist/commons/events/locations.d.ts +26 -19
  40. package/dist/commons/events/scopes.d.ts +5 -4
  41. package/dist/commons/events/state/availableActions.d.ts +0 -2
  42. package/dist/commons/events/state/flags.d.ts +21 -3
  43. package/dist/commons/events/state/index.d.ts +23 -19
  44. package/dist/commons/events/state/utils.d.ts +130 -112
  45. package/dist/commons/events/test.utils.d.ts +17 -8
  46. package/dist/commons/events/transactions.d.ts +1 -1
  47. package/dist/commons/events/utils.d.ts +53164 -367
  48. package/dist/commons/notification/UserNotifications.d.ts +55 -636
  49. package/dist/conditionals/index.d.ts.map +1 -1
  50. package/dist/conditionals/index.js +45 -11
  51. package/dist/events/deduplication.d.ts +3 -3
  52. package/dist/events/index.js +1985 -1706
  53. package/dist/notification/index.d.ts.map +1 -1
  54. package/dist/notification/index.js +1650 -1566
  55. package/dist/scopes/index.d.ts +193 -129
  56. package/dist/scopes/index.d.ts.map +1 -1
  57. package/dist/scopes/index.js +141 -95
  58. package/package.json +5 -5
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,17 +17,28 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // src/scopes/index.ts
21
31
  var scopes_exports = {};
22
32
  __export(scopes_exports, {
23
33
  ActionScopes: () => ActionScopes,
34
+ ConfigurableActionScopes: () => ConfigurableActionScopes,
35
+ CustomActionScope: () => CustomActionScope,
36
+ DashboardScope: () => DashboardScope,
24
37
  RecordScope: () => RecordScope,
25
38
  RecordScopeType: () => RecordScopeType,
26
39
  SCOPES: () => SCOPES,
27
- SearchScopes: () => SearchScopes,
28
40
  findScope: () => findScope,
41
+ findScopes: () => findScopes,
29
42
  getAuthorizedEventsFromScopes: () => getAuthorizedEventsFromScopes,
30
43
  parseConfigurableScope: () => parseConfigurableScope,
31
44
  parseLiteralScope: () => parseLiteralScope,
@@ -33,9 +46,10 @@ __export(scopes_exports, {
33
46
  stringifyScope: () => stringifyScope
34
47
  });
35
48
  module.exports = __toCommonJS(scopes_exports);
49
+ var z2 = __toESM(require("zod/v4"));
36
50
 
37
51
  // ../commons/src/scopes.ts
38
- var import_zod = require("zod");
52
+ var z = __toESM(require("zod/v4"));
39
53
  var SCOPES = {
40
54
  // TODO v1.8 legacy scopes
41
55
  BYPASSRATELIMIT: "bypassratelimit",
@@ -114,91 +128,91 @@ var SCOPES = {
114
128
  // data seeding
115
129
  USER_DATA_SEEDING: "user.data-seeding"
116
130
  };
117
- var LegacyScopes = import_zod.z.union([
118
- import_zod.z.literal(SCOPES.BYPASSRATELIMIT),
119
- import_zod.z.literal(SCOPES.REGISTER),
120
- import_zod.z.literal(SCOPES.DEMO),
121
- import_zod.z.literal(SCOPES.CONFIG)
131
+ var LegacyScopes = z.union([
132
+ z.literal(SCOPES.BYPASSRATELIMIT),
133
+ z.literal(SCOPES.REGISTER),
134
+ z.literal(SCOPES.DEMO),
135
+ z.literal(SCOPES.CONFIG)
122
136
  ]);
123
- var IntegrationScopes = import_zod.z.union([
124
- import_zod.z.literal(SCOPES.WEBHOOK),
125
- import_zod.z.literal(SCOPES.NATIONALID),
126
- import_zod.z.literal(SCOPES.NOTIFICATION_API),
127
- import_zod.z.literal(SCOPES.RECORDSEARCH)
137
+ var IntegrationScopes = z.union([
138
+ z.literal(SCOPES.WEBHOOK),
139
+ z.literal(SCOPES.NATIONALID),
140
+ z.literal(SCOPES.NOTIFICATION_API),
141
+ z.literal(SCOPES.RECORDSEARCH)
128
142
  ]);
129
- var InternalOperationsScopes = import_zod.z.union([
130
- import_zod.z.literal(SCOPES.RECORD_REINDEX),
131
- import_zod.z.literal(SCOPES.RECORD_IMPORT)
143
+ var InternalOperationsScopes = z.union([
144
+ z.literal(SCOPES.RECORD_REINDEX),
145
+ z.literal(SCOPES.RECORD_IMPORT)
132
146
  ]);
133
- var DeclareScopes = import_zod.z.union([
134
- import_zod.z.literal(SCOPES.RECORD_DECLARE_BIRTH),
135
- import_zod.z.literal(SCOPES.RECORD_DECLARE_BIRTH_MY_JURISDICTION),
136
- import_zod.z.literal(SCOPES.RECORD_DECLARE_DEATH),
137
- import_zod.z.literal(SCOPES.RECORD_DECLARE_DEATH_MY_JURISDICTION),
138
- import_zod.z.literal(SCOPES.RECORD_DECLARE_MARRIAGE),
139
- import_zod.z.literal(SCOPES.RECORD_DECLARE_MARRIAGE_MY_JURISDICTION),
140
- import_zod.z.literal(SCOPES.RECORD_SUBMIT_INCOMPLETE),
141
- import_zod.z.literal(SCOPES.RECORD_SUBMIT_FOR_REVIEW)
147
+ var DeclareScopes = z.union([
148
+ z.literal(SCOPES.RECORD_DECLARE_BIRTH),
149
+ z.literal(SCOPES.RECORD_DECLARE_BIRTH_MY_JURISDICTION),
150
+ z.literal(SCOPES.RECORD_DECLARE_DEATH),
151
+ z.literal(SCOPES.RECORD_DECLARE_DEATH_MY_JURISDICTION),
152
+ z.literal(SCOPES.RECORD_DECLARE_MARRIAGE),
153
+ z.literal(SCOPES.RECORD_DECLARE_MARRIAGE_MY_JURISDICTION),
154
+ z.literal(SCOPES.RECORD_SUBMIT_INCOMPLETE),
155
+ z.literal(SCOPES.RECORD_SUBMIT_FOR_REVIEW)
142
156
  ]);
143
- var UnassignScope = import_zod.z.literal(SCOPES.RECORD_UNASSIGN_OTHERS);
144
- var ValidateScopes = import_zod.z.union([
145
- import_zod.z.literal(SCOPES.RECORD_SUBMIT_FOR_APPROVAL),
146
- import_zod.z.literal(SCOPES.RECORD_SUBMIT_FOR_UPDATES),
147
- import_zod.z.literal(SCOPES.RECORD_DECLARATION_EDIT),
148
- import_zod.z.literal(SCOPES.RECORD_REVIEW_DUPLICATES),
149
- import_zod.z.literal(SCOPES.RECORD_DECLARATION_ARCHIVE),
150
- import_zod.z.literal(SCOPES.RECORD_DECLARATION_REINSTATE)
157
+ var UnassignScope = z.literal(SCOPES.RECORD_UNASSIGN_OTHERS);
158
+ var ValidateScopes = z.union([
159
+ z.literal(SCOPES.RECORD_SUBMIT_FOR_APPROVAL),
160
+ z.literal(SCOPES.RECORD_SUBMIT_FOR_UPDATES),
161
+ z.literal(SCOPES.RECORD_DECLARATION_EDIT),
162
+ z.literal(SCOPES.RECORD_REVIEW_DUPLICATES),
163
+ z.literal(SCOPES.RECORD_DECLARATION_ARCHIVE),
164
+ z.literal(SCOPES.RECORD_DECLARATION_REINSTATE)
151
165
  ]);
152
- var RegisterScope = import_zod.z.literal(SCOPES.RECORD_REGISTER);
153
- var CorrectionScopes = import_zod.z.union([
154
- import_zod.z.literal(SCOPES.RECORD_REGISTRATION_REQUEST_CORRECTION),
155
- import_zod.z.literal(SCOPES.RECORD_REGISTRATION_CORRECT),
156
- import_zod.z.literal(SCOPES.RECORD_CONFIRM_REGISTRATION),
157
- import_zod.z.literal(SCOPES.RECORD_REJECT_REGISTRATION)
166
+ var RegisterScope = z.literal(SCOPES.RECORD_REGISTER);
167
+ var CorrectionScopes = z.union([
168
+ z.literal(SCOPES.RECORD_REGISTRATION_REQUEST_CORRECTION),
169
+ z.literal(SCOPES.RECORD_REGISTRATION_CORRECT),
170
+ z.literal(SCOPES.RECORD_CONFIRM_REGISTRATION),
171
+ z.literal(SCOPES.RECORD_REJECT_REGISTRATION)
158
172
  ]);
159
- var SearchScopes = import_zod.z.union([
160
- import_zod.z.literal(SCOPES.SEARCH_BIRTH_MY_JURISDICTION),
161
- import_zod.z.literal(SCOPES.SEARCH_BIRTH),
162
- import_zod.z.literal(SCOPES.SEARCH_DEATH_MY_JURISDICTION),
163
- import_zod.z.literal(SCOPES.SEARCH_DEATH),
164
- import_zod.z.literal(SCOPES.SEARCH_MARRIAGE_MY_JURISDICTION),
165
- import_zod.z.literal(SCOPES.SEARCH_MARRIAGE)
173
+ var SearchScopes = z.union([
174
+ z.literal(SCOPES.SEARCH_BIRTH_MY_JURISDICTION),
175
+ z.literal(SCOPES.SEARCH_BIRTH),
176
+ z.literal(SCOPES.SEARCH_DEATH_MY_JURISDICTION),
177
+ z.literal(SCOPES.SEARCH_DEATH),
178
+ z.literal(SCOPES.SEARCH_MARRIAGE_MY_JURISDICTION),
179
+ z.literal(SCOPES.SEARCH_MARRIAGE)
166
180
  ]);
167
- var AuditScopes = import_zod.z.literal(SCOPES.RECORD_READ);
168
- var PerformanceScopes = import_zod.z.union([
169
- import_zod.z.literal(SCOPES.PERFORMANCE_READ),
170
- import_zod.z.literal(SCOPES.PERFORMANCE_READ_DASHBOARDS),
171
- import_zod.z.literal(SCOPES.PERFORMANCE_EXPORT_VITAL_STATISTICS)
181
+ var AuditScopes = z.literal(SCOPES.RECORD_READ);
182
+ var PerformanceScopes = z.union([
183
+ z.literal(SCOPES.PERFORMANCE_READ),
184
+ z.literal(SCOPES.PERFORMANCE_READ_DASHBOARDS),
185
+ z.literal(SCOPES.PERFORMANCE_EXPORT_VITAL_STATISTICS)
172
186
  ]);
173
- var OrganisationScopes = import_zod.z.union([
174
- import_zod.z.literal(SCOPES.ORGANISATION_READ_LOCATIONS),
175
- import_zod.z.literal(SCOPES.ORGANISATION_READ_LOCATIONS_MY_OFFICE),
176
- import_zod.z.literal(SCOPES.ORGANISATION_READ_LOCATIONS_MY_JURISDICTION)
187
+ var OrganisationScopes = z.union([
188
+ z.literal(SCOPES.ORGANISATION_READ_LOCATIONS),
189
+ z.literal(SCOPES.ORGANISATION_READ_LOCATIONS_MY_OFFICE),
190
+ z.literal(SCOPES.ORGANISATION_READ_LOCATIONS_MY_JURISDICTION)
177
191
  ]);
178
- var UserScopes = import_zod.z.union([
179
- import_zod.z.literal(SCOPES.USER_READ),
180
- import_zod.z.literal(SCOPES.USER_READ_MY_OFFICE),
181
- import_zod.z.literal(SCOPES.USER_READ_MY_JURISDICTION),
182
- import_zod.z.literal(SCOPES.USER_READ_ONLY_MY_AUDIT),
183
- import_zod.z.literal(SCOPES.USER_CREATE),
184
- import_zod.z.literal(SCOPES.USER_CREATE_MY_JURISDICTION),
185
- import_zod.z.literal(SCOPES.USER_UPDATE),
186
- import_zod.z.literal(SCOPES.USER_UPDATE_MY_JURISDICTION)
192
+ var UserScopes = z.union([
193
+ z.literal(SCOPES.USER_READ),
194
+ z.literal(SCOPES.USER_READ_MY_OFFICE),
195
+ z.literal(SCOPES.USER_READ_MY_JURISDICTION),
196
+ z.literal(SCOPES.USER_READ_ONLY_MY_AUDIT),
197
+ z.literal(SCOPES.USER_CREATE),
198
+ z.literal(SCOPES.USER_CREATE_MY_JURISDICTION),
199
+ z.literal(SCOPES.USER_UPDATE),
200
+ z.literal(SCOPES.USER_UPDATE_MY_JURISDICTION)
187
201
  ]);
188
- var ConfigScope = import_zod.z.literal(SCOPES.CONFIG_UPDATE_ALL);
189
- var DataSeedingScope = import_zod.z.literal(SCOPES.USER_DATA_SEEDING);
190
- var LiteralScopes = import_zod.z.union([
202
+ var ConfigScope = z.literal(SCOPES.CONFIG_UPDATE_ALL);
203
+ var DataSeedingScope = z.literal(SCOPES.USER_DATA_SEEDING);
204
+ var LiteralScopes = z.union([
191
205
  LegacyScopes,
192
206
  IntegrationScopes,
193
207
  UnassignScope,
194
208
  DeclareScopes,
195
209
  ValidateScopes,
196
210
  RegisterScope,
197
- import_zod.z.literal(SCOPES.RECORD_PRINT_ISSUE_CERTIFIED_COPIES),
211
+ z.literal(SCOPES.RECORD_PRINT_ISSUE_CERTIFIED_COPIES),
198
212
  CorrectionScopes,
199
213
  SearchScopes,
200
214
  AuditScopes,
201
- import_zod.z.literal(SCOPES.PROFILE_ELECTRONIC_SIGNATURE),
215
+ z.literal(SCOPES.PROFILE_ELECTRONIC_SIGNATURE),
202
216
  PerformanceScopes,
203
217
  OrganisationScopes,
204
218
  UserScopes,
@@ -207,38 +221,44 @@ var LiteralScopes = import_zod.z.union([
207
221
  InternalOperationsScopes
208
222
  ]);
209
223
  var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)\[((?:\w+=[\w.-]+(?:\|[\w.-]+)*)(?:,[\w]+=[\w.-]+(?:\|[\w.-]+)*)*)\]$/;
210
- var rawConfigurableScope = import_zod.z.string().regex(rawConfigurableScopeRegex);
211
- var CreateUserScope = import_zod.z.object({
212
- type: import_zod.z.literal("user.create"),
213
- options: import_zod.z.object({
214
- role: import_zod.z.array(import_zod.z.string())
224
+ var rawConfigurableScope = z.string().regex(rawConfigurableScopeRegex);
225
+ var CreateUserScope = z.object({
226
+ type: z.literal("user.create"),
227
+ options: z.object({
228
+ role: z.array(z.string())
215
229
  })
216
230
  });
217
- var EditUserScope = import_zod.z.object({
218
- type: import_zod.z.literal("user.edit"),
219
- options: import_zod.z.object({
220
- role: import_zod.z.array(import_zod.z.string())
231
+ var EditUserScope = z.object({
232
+ type: z.literal("user.edit"),
233
+ options: z.object({
234
+ role: z.array(z.string())
221
235
  })
222
236
  });
223
- var WorkqueueScope = import_zod.z.object({
224
- type: import_zod.z.literal("workqueue"),
225
- options: import_zod.z.object({
226
- id: import_zod.z.array(import_zod.z.string())
237
+ var WorkqueueScope = z.object({
238
+ type: z.literal("workqueue"),
239
+ options: z.object({
240
+ id: z.array(z.string())
227
241
  })
228
242
  });
229
- var SearchScope = import_zod.z.object({
230
- type: import_zod.z.literal("search"),
231
- options: import_zod.z.object({
232
- event: import_zod.z.array(import_zod.z.string()).length(1),
233
- access: import_zod.z.array(import_zod.z.enum(["my-jurisdiction", "all"])).length(1)
243
+ var SearchScope = z.object({
244
+ type: z.literal("search"),
245
+ options: z.object({
246
+ event: z.array(z.string()).length(1),
247
+ access: z.array(z.enum(["my-jurisdiction", "all"])).length(1)
234
248
  })
235
249
  });
236
- var RecordScopeType = import_zod.z.enum([
250
+ var DashboardScope = z.object({
251
+ type: z.literal("dashboard.view"),
252
+ options: z.object({
253
+ id: z.array(z.string())
254
+ })
255
+ });
256
+ var RecordScopeType = z.enum([
237
257
  "record.create",
238
258
  "record.read",
239
259
  "record.declare",
240
260
  "record.notify",
241
- "record.declared.validate",
261
+ "record.declared.edit",
242
262
  "record.declared.reject",
243
263
  "record.declared.archive",
244
264
  "record.declared.review-duplicates",
@@ -248,20 +268,34 @@ var RecordScopeType = import_zod.z.enum([
248
268
  "record.registered.correct",
249
269
  "record.unassign-others"
250
270
  ]);
251
- var RecordScope = import_zod.z.object({
271
+ var RecordScope = z.object({
252
272
  type: RecordScopeType,
253
- options: import_zod.z.object({
254
- event: import_zod.z.array(import_zod.z.string()).describe("Event type, e.g. birth, death")
273
+ options: z.object({
274
+ event: z.array(z.string()).describe("Event type, e.g. birth, death")
255
275
  })
256
276
  }).describe(
257
277
  "Scopes used to check user's permission to perform actions on a record."
258
278
  );
259
- var ConfigurableRawScopes = import_zod.z.discriminatedUnion("type", [
279
+ var CustomActionScope = z.object({
280
+ type: z.literal("record.custom-action"),
281
+ options: z.object({
282
+ event: z.array(z.string()).describe("Allowed event type, e.g. birth, death"),
283
+ customActionType: z.array(z.string()).describe("Allowed custom action types")
284
+ })
285
+ });
286
+ var ConfigurableRawScopes = z.discriminatedUnion("type", [
260
287
  SearchScope,
261
288
  CreateUserScope,
262
289
  EditUserScope,
263
290
  WorkqueueScope,
264
- RecordScope
291
+ DashboardScope,
292
+ RecordScope,
293
+ CustomActionScope
294
+ ]);
295
+ var ConfigurableActionScopes = z.discriminatedUnion("type", [
296
+ // @TODO - Record scope holds non-action scopes as well e.g., `record.read`
297
+ RecordScope,
298
+ CustomActionScope
265
299
  ]);
266
300
  function flattenAndMergeScopes(scopes2) {
267
301
  if (scopes2.length === 0) return null;
@@ -287,6 +321,15 @@ function findScope(scopes2, scopeType) {
287
321
  (scope) => scope?.type === scopeType
288
322
  );
289
323
  }
324
+ function findScopes(scopes2, scopeType) {
325
+ const parsedScopes = scopes2.map(parseConfigurableScope);
326
+ const searchScopes = parsedScopes.filter((scope) => scope?.type === "search");
327
+ const otherScopes = parsedScopes.filter((scope) => scope?.type !== "search");
328
+ const mergedSearchScope = flattenAndMergeScopes(searchScopes);
329
+ return [...otherScopes, mergedSearchScope].filter(
330
+ (scope) => scope?.type === scopeType
331
+ );
332
+ }
290
333
  function getScopeOptions(rawOptions) {
291
334
  return rawOptions.split(",").reduce((acc, option) => {
292
335
  const [key, value] = option.split("=");
@@ -331,10 +374,13 @@ function getAuthorizedEventsFromScopes(scopes2) {
331
374
  }).filter((event) => event !== void 0).filter((event, index, self) => self.indexOf(event) === index);
332
375
  }
333
376
  var scopes = Object.values(SCOPES);
334
- var ActionScopes = import_zod.z.union([
377
+ var ActionScopes = z.union([
335
378
  DeclareScopes,
336
379
  ValidateScopes,
337
380
  RegisterScope,
338
- import_zod.z.literal(SCOPES.RECORD_PRINT_ISSUE_CERTIFIED_COPIES),
381
+ z.literal(SCOPES.RECORD_PRINT_ISSUE_CERTIFIED_COPIES),
339
382
  CorrectionScopes
340
383
  ]);
384
+
385
+ // src/scopes/index.ts
386
+ z2.globalRegistry.clear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.6-rc.9d5857c",
3
+ "version": "1.9.6-rc.9e4e1dc",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {
@@ -17,14 +17,14 @@
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",
27
- "zod-openapi": "^4.2.4"
26
+ "uuid": "^9.0.0",
27
+ "zod-openapi": "^5.4.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/uuid": "^9.0.3",