@opencrvs/toolkit 1.8.0-rc.f876361 → 1.8.0-rc.f89fbcb

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 (45) hide show
  1. package/dist/commons/api/router.d.ts +8398 -831
  2. package/dist/commons/conditionals/conditionals.d.ts +26 -11
  3. package/dist/commons/conditionals/validate.d.ts +18 -17
  4. package/dist/commons/events/ActionConfig.d.ts +120018 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +2581 -554
  6. package/dist/commons/events/ActionInput.d.ts +2674 -499
  7. package/dist/commons/events/ActionType.d.ts +9 -3
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1255 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +31 -0
  10. package/dist/commons/events/Conditional.d.ts +21 -5
  11. package/dist/commons/events/Constants.d.ts +3 -0
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +3730 -0
  13. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  14. package/dist/commons/events/Draft.d.ts +172 -46
  15. package/dist/commons/events/EventConfig.d.ts +57845 -1354
  16. package/dist/commons/events/EventDocument.d.ts +1635 -391
  17. package/dist/commons/events/EventIndex.d.ts +2007 -27
  18. package/dist/commons/events/EventMetadata.d.ts +343 -45
  19. package/dist/commons/events/FieldConfig.d.ts +5780 -1066
  20. package/dist/commons/events/FieldType.d.ts +6 -3
  21. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  22. package/dist/commons/events/FieldValue.d.ts +49 -8
  23. package/dist/commons/events/FormConfig.d.ts +50248 -514
  24. package/dist/commons/events/PageConfig.d.ts +12472 -234
  25. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  26. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  27. package/dist/commons/events/User.d.ts +31 -2
  28. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  29. package/dist/commons/events/WorkqueueConfig.d.ts +7300 -20
  30. package/dist/commons/events/defineConfig.d.ts +9289 -58
  31. package/dist/commons/events/event.d.ts +54 -0
  32. package/dist/commons/events/field.d.ts +94 -0
  33. package/dist/commons/events/index.d.ts +8 -0
  34. package/dist/commons/events/scopes.d.ts +44 -0
  35. package/dist/commons/events/serializer.d.ts +2 -0
  36. package/dist/commons/events/test.utils.d.ts +157 -157
  37. package/dist/commons/events/transactions.d.ts +1 -1
  38. package/dist/commons/events/utils.d.ts +13799 -78
  39. package/dist/commons/events/utils.test.d.ts +2 -0
  40. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  41. package/dist/conditionals/index.js +208 -185
  42. package/dist/events/index.js +4843 -2050
  43. package/dist/scopes/index.d.ts +161 -1
  44. package/dist/scopes/index.js +202 -1
  45. package/package.json +4 -3
@@ -117,6 +117,35 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
117
117
  street?: string | null | undefined;
118
118
  zipCode?: string | null | undefined;
119
119
  }>;
120
+ export declare const NameFieldValue: z.ZodObject<{
121
+ firstname: z.ZodString;
122
+ surname: z.ZodString;
123
+ middlename: z.ZodOptional<z.ZodString>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ firstname: string;
126
+ surname: string;
127
+ middlename?: string | undefined;
128
+ }, {
129
+ firstname: string;
130
+ surname: string;
131
+ middlename?: string | undefined;
132
+ }>;
133
+ export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
134
+ firstname: z.ZodString;
135
+ surname: z.ZodString;
136
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ firstname: string;
139
+ surname: string;
140
+ middlename?: string | null | undefined;
141
+ }, {
142
+ firstname: string;
143
+ surname: string;
144
+ middlename?: string | null | undefined;
145
+ }>, z.ZodNull]>, z.ZodUndefined]>;
146
+ export type NameFieldValue = z.infer<typeof NameFieldValue>;
147
+ export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
148
+ export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
120
149
  export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
121
150
  country: z.ZodString;
122
151
  addressType: z.ZodLiteral<"DOMESTIC">;
@@ -140,6 +169,7 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
140
169
  urbanOrRural: "RURAL";
141
170
  village?: string | null | undefined;
142
171
  }>;
172
+ export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
143
173
  export declare const GenericAddressValue: z.ZodObject<{
144
174
  country: z.ZodString;
145
175
  addressType: z.ZodLiteral<"INTERNATIONAL">;
@@ -289,6 +319,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
289
319
  addressLine3?: string | null | undefined;
290
320
  postcodeOrZip?: string | null | undefined;
291
321
  }>;
322
+ export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
292
323
  export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
293
324
  country: z.ZodString;
294
325
  addressType: z.ZodLiteral<"DOMESTIC">;
@@ -1,15 +1,15 @@
1
1
  import { JSONSchema } from '../conditionals/conditionals';
2
2
  import { z } from 'zod';
3
- export declare function Conditional(): z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
3
+ export declare const Conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
4
4
  /**
5
5
  * By default, when conditionals are undefined, action is visible and enabled to everyone.
6
6
  */
7
7
  export declare const ConditionalType: {
8
- /** When 'SHOW' conditional is defined, the action is shown to the user only if the condition is met */
9
8
  readonly SHOW: "SHOW";
10
- /** If 'ENABLE' conditional is defined, the action is enabled only if the condition is met */
11
9
  readonly ENABLE: "ENABLE";
10
+ readonly DISPLAY_ON_REVIEW: "DISPLAY_ON_REVIEW";
12
11
  };
12
+ export type ConditionalType = (typeof ConditionalType)[keyof typeof ConditionalType];
13
13
  export declare const ShowConditional: z.ZodObject<{
14
14
  type: z.ZodLiteral<"SHOW">;
15
15
  conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
@@ -31,9 +31,25 @@ export declare const EnableConditional: z.ZodObject<{
31
31
  conditional: JSONSchema;
32
32
  }>;
33
33
  /** @knipignore */
34
- export type AllActionConditionalFields = typeof ShowConditional | typeof EnableConditional;
34
+ export type ActionConditionalType = typeof ShowConditional | typeof EnableConditional;
35
35
  /** @knipignore */
36
36
  export type InferredActionConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional>;
37
- export declare const ActionConditional: z.ZodDiscriminatedUnion<"type", AllActionConditionalFields[]>;
37
+ export declare const ActionConditional: z.ZodDiscriminatedUnion<"type", ActionConditionalType[]>;
38
38
  export type ActionConditional = InferredActionConditional;
39
+ export declare const DisplayOnReviewConditional: z.ZodObject<{
40
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
41
+ conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "DISPLAY_ON_REVIEW";
44
+ conditional: JSONSchema;
45
+ }, {
46
+ type: "DISPLAY_ON_REVIEW";
47
+ conditional: JSONSchema;
48
+ }>;
49
+ /** @knipignore */
50
+ export type FieldConditionalType = typeof ShowConditional | typeof EnableConditional | typeof DisplayOnReviewConditional;
51
+ /** @knipignore */
52
+ export type InferredFieldConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional> | z.infer<typeof DisplayOnReviewConditional>;
53
+ export declare const FieldConditional: z.ZodDiscriminatedUnion<"type", FieldConditionalType[]>;
54
+ export type FieldConditional = z.infer<typeof FieldConditional>;
39
55
  //# sourceMappingURL=Conditional.d.ts.map
@@ -0,0 +1,3 @@
1
+ export declare const TENNIS_CLUB_MEMBERSHIP = "tennis-club-membership";
2
+ export declare const BIRTH_EVENT = "v2-birth";
3
+ //# sourceMappingURL=Constants.d.ts.map