@opencrvs/toolkit 1.8.0-rc.fd8a78f → 1.8.0-rc.fd936ab

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 (41) hide show
  1. package/dist/commons/api/router.d.ts +447 -14227
  2. package/dist/commons/conditionals/conditionals.d.ts +6 -14
  3. package/dist/commons/conditionals/validate.d.ts +6 -10
  4. package/dist/commons/events/ActionConfig.d.ts +1726 -117415
  5. package/dist/commons/events/ActionDocument.d.ts +383 -2305
  6. package/dist/commons/events/ActionInput.d.ts +303 -1583
  7. package/dist/commons/events/ActionType.d.ts +0 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +22 -1029
  9. package/dist/commons/events/CompositeFieldValue.d.ts +0 -31
  10. package/dist/commons/events/Draft.d.ts +29 -143
  11. package/dist/commons/events/EventConfig.d.ts +1361 -56376
  12. package/dist/commons/events/EventDocument.d.ts +264 -1428
  13. package/dist/commons/events/EventIndex.d.ts +25 -1590
  14. package/dist/commons/events/EventMetadata.d.ts +43 -299
  15. package/dist/commons/events/FieldConfig.d.ts +1060 -5458
  16. package/dist/commons/events/FieldType.d.ts +3 -6
  17. package/dist/commons/events/FieldTypeMapping.d.ts +54 -103
  18. package/dist/commons/events/FieldValue.d.ts +8 -49
  19. package/dist/commons/events/FormConfig.d.ts +524 -49166
  20. package/dist/commons/events/PageConfig.d.ts +208 -12210
  21. package/dist/commons/events/SummaryConfig.d.ts +42 -93
  22. package/dist/commons/events/User.d.ts +2 -31
  23. package/dist/commons/events/WorkqueueConfig.d.ts +20 -4803
  24. package/dist/commons/events/defineConfig.d.ts +75 -9010
  25. package/dist/commons/events/index.d.ts +0 -8
  26. package/dist/commons/events/test.utils.d.ts +78 -147
  27. package/dist/commons/events/utils.d.ts +68 -13352
  28. package/dist/conditionals/index.js +36 -76
  29. package/dist/events/index.js +1504 -3807
  30. package/dist/scopes/index.d.ts +6 -94
  31. package/dist/scopes/index.js +21 -42
  32. package/package.json +2 -3
  33. package/dist/commons/events/Constants.d.ts +0 -3
  34. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -2982
  35. package/dist/commons/events/CreatedAtLocation.d.ts +0 -3
  36. package/dist/commons/events/WorkqueueColumnConfig.d.ts +0 -53
  37. package/dist/commons/events/event.d.ts +0 -54
  38. package/dist/commons/events/field.d.ts +0 -77
  39. package/dist/commons/events/scopes.d.ts +0 -45
  40. package/dist/commons/events/serializer.d.ts +0 -2
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +0 -3
@@ -1,149 +1,102 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
3
  export declare const SummaryConfig: z.ZodObject<{
4
- fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
5
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6
- id: string;
7
- description: string;
8
- defaultMessage: string;
9
- }>>;
10
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
11
- type: z.ZodLiteral<"SHOW">;
12
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
13
- }, "strip", z.ZodTypeAny, {
14
- type: "SHOW";
15
- conditional: import(".").JSONSchema;
16
- }, {
17
- type: "SHOW";
18
- conditional: import(".").JSONSchema;
19
- }>, "many">>>;
20
- }, {
4
+ title: z.ZodObject<{
21
5
  id: z.ZodString;
22
- value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
23
7
  id: string;
24
8
  description: string;
25
9
  defaultMessage: string;
26
10
  }>;
27
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
11
+ emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
28
12
  id: string;
29
13
  description: string;
30
14
  defaultMessage: string;
31
- }>;
32
- }>, "strip", z.ZodTypeAny, {
15
+ }>>;
16
+ }, "strip", z.ZodTypeAny, {
33
17
  id: string;
34
- value: TranslationConfig;
35
18
  label: TranslationConfig;
36
- conditionals?: {
37
- type: "SHOW";
38
- conditional: import(".").JSONSchema;
39
- }[] | undefined;
40
19
  emptyValueMessage?: TranslationConfig | undefined;
41
20
  }, {
42
21
  id: string;
43
- value: {
44
- id: string;
45
- description: string;
46
- defaultMessage: string;
47
- };
48
22
  label: {
49
23
  id: string;
50
24
  description: string;
51
25
  defaultMessage: string;
52
26
  };
53
- conditionals?: {
54
- type: "SHOW";
55
- conditional: import(".").JSONSchema;
56
- }[] | undefined;
57
27
  emptyValueMessage?: {
58
28
  id: string;
59
29
  description: string;
60
30
  defaultMessage: string;
61
31
  } | undefined;
62
- }>, z.ZodObject<z.objectUtil.extendShape<{
63
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
32
+ }>;
33
+ fields: z.ZodArray<z.ZodObject<{
34
+ id: z.ZodString;
35
+ value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
64
36
  id: string;
65
37
  description: string;
66
38
  defaultMessage: string;
67
- }>>;
68
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
69
- type: z.ZodLiteral<"SHOW">;
70
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
71
- }, "strip", z.ZodTypeAny, {
72
- type: "SHOW";
73
- conditional: import(".").JSONSchema;
74
- }, {
75
- type: "SHOW";
76
- conditional: import(".").JSONSchema;
77
- }>, "many">>>;
78
- }, {
79
- fieldId: z.ZodString;
80
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
39
+ }>;
40
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
41
+ id: string;
42
+ description: string;
43
+ defaultMessage: string;
44
+ }>;
45
+ emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
81
46
  id: string;
82
47
  description: string;
83
48
  defaultMessage: string;
84
49
  }>>;
85
- }>, "strip", z.ZodTypeAny, {
86
- fieldId: string;
87
- conditionals?: {
88
- type: "SHOW";
89
- conditional: import(".").JSONSchema;
90
- }[] | undefined;
91
- label?: TranslationConfig | undefined;
50
+ }, "strip", z.ZodTypeAny, {
51
+ id: string;
52
+ value: TranslationConfig;
53
+ label: TranslationConfig;
92
54
  emptyValueMessage?: TranslationConfig | undefined;
93
55
  }, {
94
- fieldId: string;
95
- conditionals?: {
96
- type: "SHOW";
97
- conditional: import(".").JSONSchema;
98
- }[] | undefined;
99
- label?: {
56
+ id: string;
57
+ value: {
100
58
  id: string;
101
59
  description: string;
102
60
  defaultMessage: string;
103
- } | undefined;
61
+ };
62
+ label: {
63
+ id: string;
64
+ description: string;
65
+ defaultMessage: string;
66
+ };
104
67
  emptyValueMessage?: {
105
68
  id: string;
106
69
  description: string;
107
70
  defaultMessage: string;
108
71
  } | undefined;
109
- }>]>, "many">;
72
+ }>, "many">;
110
73
  }, "strip", z.ZodTypeAny, {
111
- fields: ({
112
- fieldId: string;
113
- conditionals?: {
114
- type: "SHOW";
115
- conditional: import(".").JSONSchema;
116
- }[] | undefined;
117
- label?: TranslationConfig | undefined;
74
+ title: {
75
+ id: string;
76
+ label: TranslationConfig;
118
77
  emptyValueMessage?: TranslationConfig | undefined;
119
- } | {
78
+ };
79
+ fields: {
120
80
  id: string;
121
81
  value: TranslationConfig;
122
82
  label: TranslationConfig;
123
- conditionals?: {
124
- type: "SHOW";
125
- conditional: import(".").JSONSchema;
126
- }[] | undefined;
127
83
  emptyValueMessage?: TranslationConfig | undefined;
128
- })[];
84
+ }[];
129
85
  }, {
130
- fields: ({
131
- fieldId: string;
132
- conditionals?: {
133
- type: "SHOW";
134
- conditional: import(".").JSONSchema;
135
- }[] | undefined;
136
- label?: {
86
+ title: {
87
+ id: string;
88
+ label: {
137
89
  id: string;
138
90
  description: string;
139
91
  defaultMessage: string;
140
- } | undefined;
92
+ };
141
93
  emptyValueMessage?: {
142
94
  id: string;
143
95
  description: string;
144
96
  defaultMessage: string;
145
97
  } | undefined;
146
- } | {
98
+ };
99
+ fields: {
147
100
  id: string;
148
101
  value: {
149
102
  id: string;
@@ -155,16 +108,12 @@ export declare const SummaryConfig: z.ZodObject<{
155
108
  description: string;
156
109
  defaultMessage: string;
157
110
  };
158
- conditionals?: {
159
- type: "SHOW";
160
- conditional: import(".").JSONSchema;
161
- }[] | undefined;
162
111
  emptyValueMessage?: {
163
112
  id: string;
164
113
  description: string;
165
114
  defaultMessage: string;
166
115
  } | undefined;
167
- })[];
116
+ }[];
168
117
  }>;
169
118
  export type SummaryConfig = z.infer<typeof SummaryConfig>;
170
119
  //# sourceMappingURL=SummaryConfig.d.ts.map
@@ -1,31 +1,4 @@
1
- import { z } from 'zod';
2
- export declare const User: z.ZodObject<{
3
- id: z.ZodString;
4
- name: z.ZodArray<z.ZodObject<{
5
- use: z.ZodString;
6
- given: z.ZodArray<z.ZodString, "many">;
7
- family: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- use: string;
10
- given: string[];
11
- family: string;
12
- }, {
13
- use: string;
14
- given: string[];
15
- family: string;
16
- }>, "many">;
17
- role: z.ZodString;
18
- signatureFilename: z.ZodOptional<z.ZodString>;
19
- }, "strip", z.ZodTypeAny, {
20
- id: string;
21
- name: {
22
- use: string;
23
- given: string[];
24
- family: string;
25
- }[];
26
- role: string;
27
- signatureFilename?: string | undefined;
28
- }, {
1
+ export type User = {
29
2
  id: string;
30
3
  name: {
31
4
  use: string;
@@ -33,7 +6,5 @@ export declare const User: z.ZodObject<{
33
6
  family: string;
34
7
  }[];
35
8
  role: string;
36
- signatureFilename?: string | undefined;
37
- }>;
38
- export type User = z.infer<typeof User>;
9
+ };
39
10
  //# sourceMappingURL=User.d.ts.map