@opencrvs/toolkit 1.8.0-rc.fd754eb → 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 (33) hide show
  1. package/dist/commons/api/router.d.ts +4205 -7695
  2. package/dist/commons/conditionals/conditionals.d.ts +6 -9
  3. package/dist/commons/conditionals/validate.d.ts +6 -4
  4. package/dist/commons/events/ActionConfig.d.ts +1680 -90025
  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 +25 -369
  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 +1344 -42812
  11. package/dist/commons/events/EventDocument.d.ts +156 -337
  12. package/dist/commons/events/EventIndex.d.ts +13 -1346
  13. package/dist/commons/events/EventInput.d.ts +0 -13
  14. package/dist/commons/events/EventMetadata.d.ts +11 -273
  15. package/dist/commons/events/FieldConfig.d.ts +724 -3733
  16. package/dist/commons/events/FieldType.d.ts +3 -3
  17. package/dist/commons/events/FieldTypeMapping.d.ts +4 -11
  18. package/dist/commons/events/FieldValue.d.ts +4 -7
  19. package/dist/commons/events/FormConfig.d.ts +441 -40419
  20. package/dist/commons/events/PageConfig.d.ts +194 -10068
  21. package/dist/commons/events/SummaryConfig.d.ts +39 -95
  22. package/dist/commons/events/User.d.ts +0 -5
  23. package/dist/commons/events/WorkqueueConfig.d.ts +19 -1135
  24. package/dist/commons/events/defineConfig.d.ts +35 -6966
  25. package/dist/commons/events/index.d.ts +0 -3
  26. package/dist/commons/events/test.utils.d.ts +44 -7
  27. package/dist/commons/events/utils.d.ts +67 -3550
  28. package/dist/conditionals/index.js +33 -36
  29. package/dist/events/index.js +977 -1672
  30. package/package.json +2 -3
  31. package/dist/commons/events/event.d.ts +0 -27
  32. package/dist/commons/events/field.d.ts +0 -68
  33. package/dist/commons/events/scopes.d.ts +0 -26
@@ -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
@@ -6,10 +6,5 @@ export type User = {
6
6
  family: string;
7
7
  }[];
8
8
  role: string;
9
- /**
10
- * The filename of the user's signature stored in MinIO, ex: 'a552f64a-31c4-4e78-b44f-292c3179e2ef.png'.
11
- * This is used to retrieve the signature file from storage.
12
- */
13
- signatureFilename?: string;
14
9
  };
15
10
  //# sourceMappingURL=User.d.ts.map