@opencrvs/toolkit 1.8.0-rc.fef85f2 → 1.8.0-rc.ff0b26c

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 (32) hide show
  1. package/dist/commons/api/router.d.ts +10585 -4200
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +97080 -1720
  4. package/dist/commons/events/ActionDocument.d.ts +542 -211
  5. package/dist/commons/events/ActionInput.d.ts +248 -240
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  7. package/dist/commons/events/Draft.d.ts +33 -20
  8. package/dist/commons/events/EventConfig.d.ts +46237 -1398
  9. package/dist/commons/events/EventDocument.d.ts +337 -159
  10. package/dist/commons/events/EventIndex.d.ts +1735 -16
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +274 -14
  13. package/dist/commons/events/FieldConfig.d.ts +4229 -744
  14. package/dist/commons/events/FieldType.d.ts +3 -3
  15. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  16. package/dist/commons/events/FieldValue.d.ts +7 -4
  17. package/dist/commons/events/FormConfig.d.ts +43591 -439
  18. package/dist/commons/events/PageConfig.d.ts +10860 -204
  19. package/dist/commons/events/SummaryConfig.d.ts +17 -47
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
  21. package/dist/commons/events/defineConfig.d.ts +7199 -27
  22. package/dist/commons/events/event.d.ts +54 -0
  23. package/dist/commons/events/field.d.ts +82 -0
  24. package/dist/commons/events/index.d.ts +2 -0
  25. package/dist/commons/events/scopes.d.ts +21 -1
  26. package/dist/commons/events/test.utils.d.ts +10 -47
  27. package/dist/commons/events/utils.d.ts +3665 -67
  28. package/dist/conditionals/index.js +36 -33
  29. package/dist/events/index.js +1771 -966
  30. package/dist/scopes/index.d.ts +158 -1
  31. package/dist/scopes/index.js +152 -1
  32. package/package.json +3 -2
@@ -1,35 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
3
  export declare const SummaryConfig: z.ZodObject<{
4
- title: z.ZodObject<{
5
- id: z.ZodString;
6
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
7
- id: string;
8
- description: string;
9
- defaultMessage: string;
10
- }>;
11
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
12
- id: string;
13
- description: string;
14
- defaultMessage: string;
15
- }>>;
16
- }, "strip", z.ZodTypeAny, {
17
- id: string;
18
- label: TranslationConfig;
19
- emptyValueMessage?: TranslationConfig | undefined;
20
- }, {
21
- id: string;
22
- label: {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- };
27
- emptyValueMessage?: {
28
- id: string;
29
- description: string;
30
- defaultMessage: string;
31
- } | undefined;
32
- }>;
33
4
  fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
34
5
  emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
35
6
  id: string;
@@ -111,12 +82,18 @@ export declare const SummaryConfig: z.ZodObject<{
111
82
  }>, "many">>>;
112
83
  }, {
113
84
  fieldId: z.ZodString;
85
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
86
+ id: string;
87
+ description: string;
88
+ defaultMessage: string;
89
+ }>>;
114
90
  }>, "strip", z.ZodTypeAny, {
115
91
  fieldId: string;
116
92
  conditionals?: {
117
93
  type: "SHOW";
118
94
  conditional: import(".").JSONSchema;
119
95
  }[] | undefined;
96
+ label?: TranslationConfig | undefined;
120
97
  emptyValueMessage?: TranslationConfig | undefined;
121
98
  }, {
122
99
  fieldId: string;
@@ -124,6 +101,11 @@ export declare const SummaryConfig: z.ZodObject<{
124
101
  type: "SHOW";
125
102
  conditional: import(".").JSONSchema;
126
103
  }[] | undefined;
104
+ label?: {
105
+ id: string;
106
+ description: string;
107
+ defaultMessage: string;
108
+ } | undefined;
127
109
  emptyValueMessage?: {
128
110
  id: string;
129
111
  description: string;
@@ -131,17 +113,13 @@ export declare const SummaryConfig: z.ZodObject<{
131
113
  } | undefined;
132
114
  }>]>, "many">;
133
115
  }, "strip", z.ZodTypeAny, {
134
- title: {
135
- id: string;
136
- label: TranslationConfig;
137
- emptyValueMessage?: TranslationConfig | undefined;
138
- };
139
116
  fields: ({
140
117
  fieldId: string;
141
118
  conditionals?: {
142
119
  type: "SHOW";
143
120
  conditional: import(".").JSONSchema;
144
121
  }[] | undefined;
122
+ label?: TranslationConfig | undefined;
145
123
  emptyValueMessage?: TranslationConfig | undefined;
146
124
  } | {
147
125
  id: string;
@@ -154,25 +132,17 @@ export declare const SummaryConfig: z.ZodObject<{
154
132
  emptyValueMessage?: TranslationConfig | undefined;
155
133
  })[];
156
134
  }, {
157
- title: {
158
- id: string;
159
- label: {
160
- id: string;
161
- description: string;
162
- defaultMessage: string;
163
- };
164
- emptyValueMessage?: {
165
- id: string;
166
- description: string;
167
- defaultMessage: string;
168
- } | undefined;
169
- };
170
135
  fields: ({
171
136
  fieldId: string;
172
137
  conditionals?: {
173
138
  type: "SHOW";
174
139
  conditional: import(".").JSONSchema;
175
140
  }[] | undefined;
141
+ label?: {
142
+ id: string;
143
+ description: string;
144
+ defaultMessage: string;
145
+ } | undefined;
176
146
  emptyValueMessage?: {
177
147
  id: string;
178
148
  description: string;