@opencrvs/toolkit 1.8.0-rc.f8f3eb3 → 1.8.0-rc.f966df9

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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +11293 -10479
  3. package/dist/commons/conditionals/conditionals.d.ts +31 -5
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +39 -17
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +89415 -2021
  8. package/dist/commons/events/ActionDocument.d.ts +9820 -313
  9. package/dist/commons/events/ActionInput.d.ts +5365 -584
  10. package/dist/commons/events/ActionType.d.ts +27 -12
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
  12. package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
  13. package/dist/commons/events/Conditional.d.ts +21 -5
  14. package/dist/commons/events/Draft.d.ts +367 -54
  15. package/dist/commons/events/EventConfig.d.ts +42573 -1784
  16. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  17. package/dist/commons/events/EventDocument.d.ts +3526 -429
  18. package/dist/commons/events/EventIndex.d.ts +1462 -10
  19. package/dist/commons/events/EventInput.d.ts +13 -0
  20. package/dist/commons/events/EventMetadata.d.ts +274 -8
  21. package/dist/commons/events/FieldConfig.d.ts +4262 -800
  22. package/dist/commons/events/FieldType.d.ts +7 -2
  23. package/dist/commons/events/FieldTypeMapping.d.ts +164 -6
  24. package/dist/commons/events/FieldValue.d.ts +82 -5
  25. package/dist/commons/events/FormConfig.d.ts +40636 -73
  26. package/dist/commons/events/PageConfig.d.ts +10209 -0
  27. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  28. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  29. package/dist/commons/events/User.d.ts +5 -0
  30. package/dist/commons/events/WorkqueueConfig.d.ts +1257 -19
  31. package/dist/commons/events/defineConfig.d.ts +7030 -230
  32. package/dist/commons/events/event.d.ts +27 -0
  33. package/dist/commons/events/field.d.ts +68 -0
  34. package/dist/commons/events/index.d.ts +6 -1
  35. package/dist/commons/events/scopes.d.ts +45 -0
  36. package/dist/commons/events/test.utils.d.ts +128 -238
  37. package/dist/commons/events/utils.d.ts +3679 -69
  38. package/dist/commons/events/utils.test.d.ts +2 -0
  39. package/dist/conditionals/index.js +196 -108
  40. package/dist/events/index.js +2871 -1388
  41. package/dist/scopes/index.d.ts +137 -1
  42. package/dist/scopes/index.js +147 -0
  43. package/package.json +3 -2
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  export declare const SCOPES: {
2
3
  readonly NATLSYSADMIN: "natlsysadmin";
3
4
  readonly BYPASSRATELIMIT: "bypassratelimit";
@@ -83,6 +84,141 @@ export declare const SCOPES: {
83
84
  readonly CONFIG_UPDATE_ALL: "config.update:all";
84
85
  readonly USER_DATA_SEEDING: "user.data-seeding";
85
86
  };
86
- export type Scope = (typeof SCOPES)[keyof typeof SCOPES];
87
+ declare const LiteralScopes: z.ZodUnion<[z.ZodLiteral<"natlsysadmin">, z.ZodLiteral<"bypassratelimit">, z.ZodLiteral<"declare">, z.ZodLiteral<"register">, z.ZodLiteral<"validate">, z.ZodLiteral<"demo">, z.ZodLiteral<"certify">, z.ZodLiteral<"performance">, z.ZodLiteral<"sysadmin">, z.ZodLiteral<"teams">, z.ZodLiteral<"config">, z.ZodLiteral<"webhook">, z.ZodLiteral<"nationalId">, z.ZodLiteral<"notification-api">, z.ZodLiteral<"recordsearch">, z.ZodLiteral<"record.declare-birth">, z.ZodLiteral<"record.declare-birth:my-jurisdiction">, z.ZodLiteral<"record.declare-death">, z.ZodLiteral<"record.declare-death:my-jurisdiction">, z.ZodLiteral<"record.declare-marriage">, z.ZodLiteral<"record.declare-marriage:my-jurisdiction">, z.ZodLiteral<"record.declaration-submit-incomplete">, z.ZodLiteral<"record.declaration-submit-for-review">, z.ZodLiteral<"record.unassign-others">, z.ZodLiteral<"record.declaration-submit-for-approval">, z.ZodLiteral<"record.declaration-submit-for-updates">, z.ZodLiteral<"record.declaration-edit">, z.ZodLiteral<"record.review-duplicates">, z.ZodLiteral<"record.declaration-archive">, z.ZodLiteral<"record.declaration-reinstate">, z.ZodLiteral<"record.register">, z.ZodLiteral<"record.export-records">, z.ZodLiteral<"record.declaration-print">, z.ZodLiteral<"record.declaration-print-supporting-documents">, z.ZodLiteral<"record.registration-print">, z.ZodLiteral<"record.registration-print&issue-certified-copies">, z.ZodLiteral<"record.registration-print-certified-copies">, z.ZodLiteral<"record.registration-bulk-print-certified-copies">, z.ZodLiteral<"record.registration-verify-certified-copies">, z.ZodLiteral<"record.registration-request-correction">, z.ZodLiteral<"record.registration-correct">, z.ZodLiteral<"record.registration-request-revocation">, z.ZodLiteral<"record.registration-revoke">, z.ZodLiteral<"record.registration-request-reinstatement">, z.ZodLiteral<"record.registration-reinstate">, z.ZodLiteral<"record.confirm-registration">, z.ZodLiteral<"record.reject-registration">, z.ZodLiteral<"search.birth:my-jurisdiction">, z.ZodLiteral<"search.birth">, z.ZodLiteral<"search.death:my-jurisdiction">, z.ZodLiteral<"search.death">, z.ZodLiteral<"search.marriage:my-jurisdiction">, z.ZodLiteral<"search.marriage">, z.ZodLiteral<"record.read">, z.ZodLiteral<"record.read-audit">, z.ZodLiteral<"record.read-comments">, z.ZodLiteral<"record.create-comments">, z.ZodLiteral<"profile.update">, z.ZodLiteral<"profile.electronic-signature">, z.ZodLiteral<"performance.read">, z.ZodLiteral<"performance.read-dashboards">, z.ZodLiteral<"performance.vital-statistics-export">, z.ZodLiteral<"organisation.read-locations:all">, z.ZodLiteral<"organisation.read-locations:my-office">, z.ZodLiteral<"organisation.read-locations:my-jurisdiction">, z.ZodLiteral<"user.read:all">, z.ZodLiteral<"user.read:my-office">, z.ZodLiteral<"user.read:my-jurisdiction">, z.ZodLiteral<"user.read:only-my-audit">, z.ZodLiteral<"user.create:all">, z.ZodLiteral<"user.create:my-jurisdiction">, z.ZodLiteral<"user.update:all">, z.ZodLiteral<"user.update:my-jurisdiction">, z.ZodLiteral<"config.update:all">, z.ZodLiteral<"user.data-seeding">]>;
88
+ declare const ConfigurableScopes: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
89
+ type: z.ZodLiteral<"user.create">;
90
+ options: z.ZodObject<{
91
+ role: z.ZodArray<z.ZodString, "many">;
92
+ }, "strip", z.ZodTypeAny, {
93
+ role: string[];
94
+ }, {
95
+ role: string[];
96
+ }>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "user.create";
99
+ options: {
100
+ role: string[];
101
+ };
102
+ }, {
103
+ type: "user.create";
104
+ options: {
105
+ role: string[];
106
+ };
107
+ }>, z.ZodObject<{
108
+ type: z.ZodLiteral<"user.edit">;
109
+ options: z.ZodObject<{
110
+ role: z.ZodArray<z.ZodString, "many">;
111
+ }, "strip", z.ZodTypeAny, {
112
+ role: string[];
113
+ }, {
114
+ role: string[];
115
+ }>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ type: "user.edit";
118
+ options: {
119
+ role: string[];
120
+ };
121
+ }, {
122
+ type: "user.edit";
123
+ options: {
124
+ role: string[];
125
+ };
126
+ }>, z.ZodObject<{
127
+ type: z.ZodLiteral<"workqueue">;
128
+ options: z.ZodObject<{
129
+ id: z.ZodArray<z.ZodString, "many">;
130
+ }, "strip", z.ZodTypeAny, {
131
+ id: string[];
132
+ }, {
133
+ id: string[];
134
+ }>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: "workqueue";
137
+ options: {
138
+ id: string[];
139
+ };
140
+ }, {
141
+ type: "workqueue";
142
+ options: {
143
+ id: string[];
144
+ };
145
+ }>, z.ZodObject<{
146
+ type: z.ZodLiteral<"notify.event">;
147
+ options: z.ZodObject<{
148
+ event: z.ZodArray<z.ZodString, "many">;
149
+ }, "strip", z.ZodTypeAny, {
150
+ event: string[];
151
+ }, {
152
+ event: string[];
153
+ }>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "notify.event";
156
+ options: {
157
+ event: string[];
158
+ };
159
+ }, {
160
+ type: "notify.event";
161
+ options: {
162
+ event: string[];
163
+ };
164
+ }>]>;
165
+ export type ConfigurableScopeType = ConfigurableScopes['type'];
166
+ export type ConfigurableScopes = z.infer<typeof ConfigurableScopes>;
167
+ export declare function findScope<T extends ConfigurableScopeType>(scopes: string[], scopeType: T): Extract<{
168
+ type: "user.create";
169
+ options: {
170
+ role: string[];
171
+ };
172
+ }, {
173
+ type: T;
174
+ }> | Extract<{
175
+ type: "user.edit";
176
+ options: {
177
+ role: string[];
178
+ };
179
+ }, {
180
+ type: T;
181
+ }> | Extract<{
182
+ type: "workqueue";
183
+ options: {
184
+ id: string[];
185
+ };
186
+ }, {
187
+ type: T;
188
+ }> | Extract<{
189
+ type: "notify.event";
190
+ options: {
191
+ event: string[];
192
+ };
193
+ }, {
194
+ type: T;
195
+ }> | undefined;
196
+ export declare function parseScope(scope: string): {
197
+ type: "user.create";
198
+ options: {
199
+ role: string[];
200
+ };
201
+ } | {
202
+ type: "user.edit";
203
+ options: {
204
+ role: string[];
205
+ };
206
+ } | {
207
+ type: "workqueue";
208
+ options: {
209
+ id: string[];
210
+ };
211
+ } | {
212
+ type: "notify.event";
213
+ options: {
214
+ event: string[];
215
+ };
216
+ } | {
217
+ type: "natlsysadmin" | "bypassratelimit" | "declare" | "register" | "validate" | "demo" | "certify" | "performance" | "sysadmin" | "teams" | "config" | "webhook" | "nationalId" | "notification-api" | "recordsearch" | "record.declare-birth" | "record.declare-birth:my-jurisdiction" | "record.declare-death" | "record.declare-death:my-jurisdiction" | "record.declare-marriage" | "record.declare-marriage:my-jurisdiction" | "record.declaration-submit-incomplete" | "record.declaration-submit-for-review" | "record.unassign-others" | "record.declaration-submit-for-approval" | "record.declaration-submit-for-updates" | "record.declaration-edit" | "record.review-duplicates" | "record.declaration-archive" | "record.declaration-reinstate" | "record.register" | "record.export-records" | "record.declaration-print" | "record.declaration-print-supporting-documents" | "record.registration-print" | "record.registration-print&issue-certified-copies" | "record.registration-print-certified-copies" | "record.registration-bulk-print-certified-copies" | "record.registration-verify-certified-copies" | "record.registration-request-correction" | "record.registration-correct" | "record.registration-request-revocation" | "record.registration-revoke" | "record.registration-request-reinstatement" | "record.registration-reinstate" | "record.confirm-registration" | "record.reject-registration" | "search.birth:my-jurisdiction" | "search.birth" | "search.death:my-jurisdiction" | "search.death" | "search.marriage:my-jurisdiction" | "search.marriage" | "record.read" | "record.read-audit" | "record.read-comments" | "record.create-comments" | "profile.update" | "profile.electronic-signature" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "organisation.read-locations:all" | "organisation.read-locations:my-office" | "organisation.read-locations:my-jurisdiction" | "user.read:all" | "user.read:my-office" | "user.read:my-jurisdiction" | "user.read:only-my-audit" | "user.create:all" | "user.create:my-jurisdiction" | "user.update:all" | "user.update:my-jurisdiction" | "config.update:all" | "user.data-seeding";
218
+ } | undefined;
87
219
  export declare const scopes: Scope[];
220
+ export type ParsedScopes = NonNullable<ReturnType<typeof parseScope>>;
221
+ export type RawScopes = z.infer<typeof LiteralScopes> | (string & {});
222
+ export type Scope = RawScopes;
223
+ export {};
88
224
  //# sourceMappingURL=scopes.d.ts.map
@@ -21,11 +21,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var scopes_exports = {};
22
22
  __export(scopes_exports, {
23
23
  SCOPES: () => SCOPES,
24
+ findScope: () => findScope,
25
+ parseScope: () => parseScope,
24
26
  scopes: () => scopes
25
27
  });
26
28
  module.exports = __toCommonJS(scopes_exports);
27
29
 
28
30
  // ../commons/src/scopes.ts
31
+ var import_zod = require("zod");
29
32
  var SCOPES = {
30
33
  // TODO v1.8 legacy scopes
31
34
  NATLSYSADMIN: "natlsysadmin",
@@ -136,4 +139,148 @@ var SCOPES = {
136
139
  // data seeding
137
140
  USER_DATA_SEEDING: "user.data-seeding"
138
141
  };
142
+ var LiteralScopes = import_zod.z.union([
143
+ import_zod.z.literal(SCOPES.NATLSYSADMIN),
144
+ import_zod.z.literal(SCOPES.BYPASSRATELIMIT),
145
+ import_zod.z.literal(SCOPES.DECLARE),
146
+ import_zod.z.literal(SCOPES.REGISTER),
147
+ import_zod.z.literal(SCOPES.VALIDATE),
148
+ import_zod.z.literal(SCOPES.DEMO),
149
+ import_zod.z.literal(SCOPES.CERTIFY),
150
+ import_zod.z.literal(SCOPES.PERFORMANCE),
151
+ import_zod.z.literal(SCOPES.SYSADMIN),
152
+ import_zod.z.literal(SCOPES.TEAMS),
153
+ import_zod.z.literal(SCOPES.CONFIG),
154
+ import_zod.z.literal(SCOPES.WEBHOOK),
155
+ import_zod.z.literal(SCOPES.NATIONALID),
156
+ import_zod.z.literal(SCOPES.NOTIFICATION_API),
157
+ import_zod.z.literal(SCOPES.RECORDSEARCH),
158
+ import_zod.z.literal(SCOPES.RECORD_DECLARE_BIRTH),
159
+ import_zod.z.literal(SCOPES.RECORD_DECLARE_BIRTH_MY_JURISDICTION),
160
+ import_zod.z.literal(SCOPES.RECORD_DECLARE_DEATH),
161
+ import_zod.z.literal(SCOPES.RECORD_DECLARE_DEATH_MY_JURISDICTION),
162
+ import_zod.z.literal(SCOPES.RECORD_DECLARE_MARRIAGE),
163
+ import_zod.z.literal(SCOPES.RECORD_DECLARE_MARRIAGE_MY_JURISDICTION),
164
+ import_zod.z.literal(SCOPES.RECORD_SUBMIT_INCOMPLETE),
165
+ import_zod.z.literal(SCOPES.RECORD_SUBMIT_FOR_REVIEW),
166
+ import_zod.z.literal(SCOPES.RECORD_UNASSIGN_OTHERS),
167
+ import_zod.z.literal(SCOPES.RECORD_SUBMIT_FOR_APPROVAL),
168
+ import_zod.z.literal(SCOPES.RECORD_SUBMIT_FOR_UPDATES),
169
+ import_zod.z.literal(SCOPES.RECORD_DECLARATION_EDIT),
170
+ import_zod.z.literal(SCOPES.RECORD_REVIEW_DUPLICATES),
171
+ import_zod.z.literal(SCOPES.RECORD_DECLARATION_ARCHIVE),
172
+ import_zod.z.literal(SCOPES.RECORD_DECLARATION_REINSTATE),
173
+ import_zod.z.literal(SCOPES.RECORD_REGISTER),
174
+ import_zod.z.literal(SCOPES.RECORD_EXPORT_RECORDS),
175
+ import_zod.z.literal(SCOPES.RECORD_DECLARATION_PRINT),
176
+ import_zod.z.literal(SCOPES.RECORD_PRINT_RECORDS_SUPPORTING_DOCUMENTS),
177
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_PRINT),
178
+ import_zod.z.literal(SCOPES.RECORD_PRINT_ISSUE_CERTIFIED_COPIES),
179
+ import_zod.z.literal(SCOPES.RECORD_PRINT_CERTIFIED_COPIES),
180
+ import_zod.z.literal(SCOPES.RECORD_BULK_PRINT_CERTIFIED_COPIES),
181
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_VERIFY_CERTIFIED_COPIES),
182
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_REQUEST_CORRECTION),
183
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_CORRECT),
184
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_REQUEST_REVOCATION),
185
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_REVOKE),
186
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_REQUEST_REINSTATEMENT),
187
+ import_zod.z.literal(SCOPES.RECORD_REGISTRATION_REINSTATE),
188
+ import_zod.z.literal(SCOPES.RECORD_CONFIRM_REGISTRATION),
189
+ import_zod.z.literal(SCOPES.RECORD_REJECT_REGISTRATION),
190
+ import_zod.z.literal(SCOPES.SEARCH_BIRTH_MY_JURISDICTION),
191
+ import_zod.z.literal(SCOPES.SEARCH_BIRTH),
192
+ import_zod.z.literal(SCOPES.SEARCH_DEATH_MY_JURISDICTION),
193
+ import_zod.z.literal(SCOPES.SEARCH_DEATH),
194
+ import_zod.z.literal(SCOPES.SEARCH_MARRIAGE_MY_JURISDICTION),
195
+ import_zod.z.literal(SCOPES.SEARCH_MARRIAGE),
196
+ import_zod.z.literal(SCOPES.RECORD_READ),
197
+ import_zod.z.literal(SCOPES.RECORD_READ_AUDIT),
198
+ import_zod.z.literal(SCOPES.RECORD_READ_COMMENTS),
199
+ import_zod.z.literal(SCOPES.RECORD_CREATE_COMMENTS),
200
+ import_zod.z.literal(SCOPES.PROFILE_UPDATE),
201
+ import_zod.z.literal(SCOPES.PROFILE_ELECTRONIC_SIGNATURE),
202
+ import_zod.z.literal(SCOPES.PERFORMANCE_READ),
203
+ import_zod.z.literal(SCOPES.PERFORMANCE_READ_DASHBOARDS),
204
+ import_zod.z.literal(SCOPES.PERFORMANCE_EXPORT_VITAL_STATISTICS),
205
+ import_zod.z.literal(SCOPES.ORGANISATION_READ_LOCATIONS),
206
+ import_zod.z.literal(SCOPES.ORGANISATION_READ_LOCATIONS_MY_OFFICE),
207
+ import_zod.z.literal(SCOPES.ORGANISATION_READ_LOCATIONS_MY_JURISDICTION),
208
+ import_zod.z.literal(SCOPES.USER_READ),
209
+ import_zod.z.literal(SCOPES.USER_READ_MY_OFFICE),
210
+ import_zod.z.literal(SCOPES.USER_READ_MY_JURISDICTION),
211
+ import_zod.z.literal(SCOPES.USER_READ_ONLY_MY_AUDIT),
212
+ import_zod.z.literal(SCOPES.USER_CREATE),
213
+ import_zod.z.literal(SCOPES.USER_CREATE_MY_JURISDICTION),
214
+ import_zod.z.literal(SCOPES.USER_UPDATE),
215
+ import_zod.z.literal(SCOPES.USER_UPDATE_MY_JURISDICTION),
216
+ import_zod.z.literal(SCOPES.CONFIG_UPDATE_ALL),
217
+ import_zod.z.literal(SCOPES.USER_DATA_SEEDING)
218
+ ]);
219
+ var rawConfigurableScopeRegex = /^([a-zA-Z\.]+)\[((?:\w+=[\w-]+(?:\|[\w-]+)*)(:?,[\w-]+=[\w-]+(?:\|[\w-]+)*)*)\]$/;
220
+ var rawConfigurableScope = import_zod.z.string().regex(rawConfigurableScopeRegex);
221
+ var CreateUserScope = import_zod.z.object({
222
+ type: import_zod.z.literal("user.create"),
223
+ options: import_zod.z.object({
224
+ role: import_zod.z.array(import_zod.z.string())
225
+ })
226
+ });
227
+ var EditUserScope = import_zod.z.object({
228
+ type: import_zod.z.literal("user.edit"),
229
+ options: import_zod.z.object({
230
+ role: import_zod.z.array(import_zod.z.string())
231
+ })
232
+ });
233
+ var WorkqueueScope = import_zod.z.object({
234
+ type: import_zod.z.literal("workqueue"),
235
+ options: import_zod.z.object({
236
+ id: import_zod.z.array(import_zod.z.string())
237
+ })
238
+ });
239
+ var NotifyEventScope = import_zod.z.object({
240
+ type: import_zod.z.literal("notify.event"),
241
+ options: import_zod.z.object({
242
+ event: import_zod.z.array(import_zod.z.string())
243
+ })
244
+ });
245
+ var ConfigurableScopes = import_zod.z.discriminatedUnion("type", [
246
+ CreateUserScope,
247
+ EditUserScope,
248
+ WorkqueueScope,
249
+ NotifyEventScope
250
+ ]);
251
+ function findScope(scopes2, scopeType) {
252
+ return scopes2.map((rawScope) => parseScope(rawScope)).find(
253
+ (parsedScope) => parsedScope?.type === scopeType
254
+ );
255
+ }
256
+ function parseScope(scope) {
257
+ const maybeLiteralScope = LiteralScopes.safeParse(scope);
258
+ if (maybeLiteralScope.success) {
259
+ return {
260
+ type: maybeLiteralScope.data
261
+ };
262
+ }
263
+ const maybeConfigurableScope = rawConfigurableScope.safeParse(scope);
264
+ if (maybeConfigurableScope.success) {
265
+ const rawScope = maybeConfigurableScope.data;
266
+ const [, type, rawOptions] = rawScope.match(rawConfigurableScopeRegex) ?? [];
267
+ const options = rawOptions.split(",").reduce(
268
+ (acc, option) => {
269
+ const [key, value] = option.split("=");
270
+ acc[key] = value.split("|");
271
+ return acc;
272
+ },
273
+ {}
274
+ );
275
+ const parsedScope = {
276
+ type,
277
+ options
278
+ };
279
+ const result = ConfigurableScopes.safeParse(parsedScope);
280
+ if (result.success) {
281
+ return result.data;
282
+ }
283
+ }
284
+ return void 0;
285
+ }
139
286
  var scopes = Object.values(SCOPES);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.8.0-rc.f8f3eb3",
3
+ "version": "1.8.0-rc.f966df9",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {
@@ -20,7 +20,8 @@
20
20
  "ajv-formats": "^3.0.1",
21
21
  "superjson": "1.9.0-0",
22
22
  "@trpc/client": "^11.0.0-rc.648",
23
- "@trpc/server": "^11.0.0-rc.532"
23
+ "@trpc/server": "^11.0.0-rc.532",
24
+ "zod-openapi": "^4.2.4"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@types/uuid": "^9.0.3",