@opencrvs/toolkit 1.8.0-rc.f7a451a → 1.8.0-rc.f7bcb31

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 (38) hide show
  1. package/dist/commons/api/router.d.ts +4206 -8342
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -11
  3. package/dist/commons/conditionals/validate.d.ts +6 -4
  4. package/dist/commons/events/ActionConfig.d.ts +1727 -97087
  5. package/dist/commons/events/ActionDocument.d.ts +211 -542
  6. package/dist/commons/events/ActionInput.d.ts +240 -248
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +22 -957
  8. package/dist/commons/events/CompositeFieldValue.d.ts +0 -3
  9. package/dist/commons/events/Draft.d.ts +20 -33
  10. package/dist/commons/events/EventConfig.d.ts +1350 -46327
  11. package/dist/commons/events/EventDocument.d.ts +156 -324
  12. package/dist/commons/events/EventIndex.d.ts +13 -1821
  13. package/dist/commons/events/EventMetadata.d.ts +11 -277
  14. package/dist/commons/events/FieldConfig.d.ts +754 -4280
  15. package/dist/commons/events/FieldType.d.ts +3 -3
  16. package/dist/commons/events/FieldTypeMapping.d.ts +4 -11
  17. package/dist/commons/events/FieldValue.d.ts +4 -7
  18. package/dist/commons/events/FormConfig.d.ts +441 -43593
  19. package/dist/commons/events/PageConfig.d.ts +208 -10864
  20. package/dist/commons/events/SummaryConfig.d.ts +39 -95
  21. package/dist/commons/events/User.d.ts +2 -31
  22. package/dist/commons/events/WorkqueueConfig.d.ts +20 -5341
  23. package/dist/commons/events/defineConfig.d.ts +35 -7218
  24. package/dist/commons/events/index.d.ts +0 -6
  25. package/dist/commons/events/test.utils.d.ts +46 -10
  26. package/dist/commons/events/utils.d.ts +67 -3665
  27. package/dist/conditionals/index.js +35 -55
  28. package/dist/events/index.js +1075 -2461
  29. package/dist/scopes/index.d.ts +4 -91
  30. package/dist/scopes/index.js +21 -39
  31. package/package.json +2 -3
  32. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -3008
  33. package/dist/commons/events/WorkqueueColumnConfig.d.ts +0 -42
  34. package/dist/commons/events/event.d.ts +0 -54
  35. package/dist/commons/events/field.d.ts +0 -82
  36. package/dist/commons/events/scopes.d.ts +0 -45
  37. package/dist/commons/events/serializer.d.ts +0 -2
  38. package/dist/commons/events/workqueueDefaultColumns.d.ts +0 -3
@@ -1,29 +1,8 @@
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, {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- }>;
27
6
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
28
7
  id: string;
29
8
  description: string;
@@ -34,121 +13,90 @@ export declare const SummaryConfig: z.ZodObject<{
34
13
  description: string;
35
14
  defaultMessage: string;
36
15
  }>>;
37
- }>, "strip", z.ZodTypeAny, {
16
+ }, "strip", z.ZodTypeAny, {
38
17
  id: string;
39
- value: TranslationConfig;
40
18
  label: TranslationConfig;
41
- conditionals?: {
42
- type: "SHOW";
43
- conditional: import(".").JSONSchema;
44
- }[] | undefined;
45
19
  emptyValueMessage?: TranslationConfig | undefined;
46
20
  }, {
47
21
  id: string;
48
- value: {
49
- id: string;
50
- description: string;
51
- defaultMessage: string;
52
- };
53
22
  label: {
54
23
  id: string;
55
24
  description: string;
56
25
  defaultMessage: string;
57
26
  };
58
- conditionals?: {
59
- type: "SHOW";
60
- conditional: import(".").JSONSchema;
61
- }[] | undefined;
62
27
  emptyValueMessage?: {
63
28
  id: string;
64
29
  description: string;
65
30
  defaultMessage: string;
66
31
  } | undefined;
67
- }>, z.ZodObject<z.objectUtil.extendShape<{
68
- 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, {
69
36
  id: string;
70
37
  description: string;
71
38
  defaultMessage: string;
72
- }>>;
73
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
74
- type: z.ZodLiteral<"SHOW">;
75
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
76
- }, "strip", z.ZodTypeAny, {
77
- type: "SHOW";
78
- conditional: import(".").JSONSchema;
79
- }, {
80
- type: "SHOW";
81
- conditional: import(".").JSONSchema;
82
- }>, "many">>>;
83
- }, {
84
- fieldId: z.ZodString;
85
- 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, {
86
46
  id: string;
87
47
  description: string;
88
48
  defaultMessage: string;
89
49
  }>>;
90
- }>, "strip", z.ZodTypeAny, {
91
- fieldId: string;
92
- conditionals?: {
93
- type: "SHOW";
94
- conditional: import(".").JSONSchema;
95
- }[] | undefined;
96
- label?: TranslationConfig | undefined;
50
+ }, "strip", z.ZodTypeAny, {
51
+ id: string;
52
+ value: TranslationConfig;
53
+ label: TranslationConfig;
97
54
  emptyValueMessage?: TranslationConfig | undefined;
98
55
  }, {
99
- fieldId: string;
100
- conditionals?: {
101
- type: "SHOW";
102
- conditional: import(".").JSONSchema;
103
- }[] | undefined;
104
- label?: {
56
+ id: string;
57
+ value: {
105
58
  id: string;
106
59
  description: string;
107
60
  defaultMessage: string;
108
- } | undefined;
61
+ };
62
+ label: {
63
+ id: string;
64
+ description: string;
65
+ defaultMessage: string;
66
+ };
109
67
  emptyValueMessage?: {
110
68
  id: string;
111
69
  description: string;
112
70
  defaultMessage: string;
113
71
  } | undefined;
114
- }>]>, "many">;
72
+ }>, "many">;
115
73
  }, "strip", z.ZodTypeAny, {
116
- fields: ({
117
- fieldId: string;
118
- conditionals?: {
119
- type: "SHOW";
120
- conditional: import(".").JSONSchema;
121
- }[] | undefined;
122
- label?: TranslationConfig | undefined;
74
+ title: {
75
+ id: string;
76
+ label: TranslationConfig;
123
77
  emptyValueMessage?: TranslationConfig | undefined;
124
- } | {
78
+ };
79
+ fields: {
125
80
  id: string;
126
81
  value: TranslationConfig;
127
82
  label: TranslationConfig;
128
- conditionals?: {
129
- type: "SHOW";
130
- conditional: import(".").JSONSchema;
131
- }[] | undefined;
132
83
  emptyValueMessage?: TranslationConfig | undefined;
133
- })[];
84
+ }[];
134
85
  }, {
135
- fields: ({
136
- fieldId: string;
137
- conditionals?: {
138
- type: "SHOW";
139
- conditional: import(".").JSONSchema;
140
- }[] | undefined;
141
- label?: {
86
+ title: {
87
+ id: string;
88
+ label: {
142
89
  id: string;
143
90
  description: string;
144
91
  defaultMessage: string;
145
- } | undefined;
92
+ };
146
93
  emptyValueMessage?: {
147
94
  id: string;
148
95
  description: string;
149
96
  defaultMessage: string;
150
97
  } | undefined;
151
- } | {
98
+ };
99
+ fields: {
152
100
  id: string;
153
101
  value: {
154
102
  id: string;
@@ -160,16 +108,12 @@ export declare const SummaryConfig: z.ZodObject<{
160
108
  description: string;
161
109
  defaultMessage: string;
162
110
  };
163
- conditionals?: {
164
- type: "SHOW";
165
- conditional: import(".").JSONSchema;
166
- }[] | undefined;
167
111
  emptyValueMessage?: {
168
112
  id: string;
169
113
  description: string;
170
114
  defaultMessage: string;
171
115
  } | undefined;
172
- })[];
116
+ }[];
173
117
  }>;
174
118
  export type SummaryConfig = z.infer<typeof SummaryConfig>;
175
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