@opencrvs/toolkit 1.8.1-rc.8c25e85 → 1.8.1-rc.a372970

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 (42) hide show
  1. package/dist/commons/api/router.d.ts +5078 -5910
  2. package/dist/commons/conditionals/conditionals.d.ts +13 -9
  3. package/dist/commons/conditionals/validate.d.ts +6 -15
  4. package/dist/commons/events/ActionConfig.d.ts +1718 -119315
  5. package/dist/commons/events/ActionDocument.d.ts +1325 -4879
  6. package/dist/commons/events/ActionInput.d.ts +1025 -3205
  7. package/dist/commons/events/ActionType.d.ts +1 -10
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +22 -1282
  9. package/dist/commons/events/CompositeFieldValue.d.ts +9 -40
  10. package/dist/commons/events/Draft.d.ts +97 -288
  11. package/dist/commons/events/EventConfig.d.ts +1359 -54365
  12. package/dist/commons/events/EventDocument.d.ts +833 -2720
  13. package/dist/commons/events/EventIndex.d.ts +29 -2228
  14. package/dist/commons/events/EventMetadata.d.ts +47 -347
  15. package/dist/commons/events/FieldConfig.d.ts +1250 -6746
  16. package/dist/commons/events/FieldType.d.ts +3 -8
  17. package/dist/commons/events/FieldTypeMapping.d.ts +73 -161
  18. package/dist/commons/events/FieldValue.d.ts +20 -91
  19. package/dist/commons/events/FormConfig.d.ts +533 -55781
  20. package/dist/commons/events/PageConfig.d.ts +208 -13824
  21. package/dist/commons/events/SummaryConfig.d.ts +42 -93
  22. package/dist/commons/events/User.d.ts +2 -34
  23. package/dist/commons/events/WorkqueueConfig.d.ts +20 -8116
  24. package/dist/commons/events/defineConfig.d.ts +99 -8551
  25. package/dist/commons/events/index.d.ts +0 -8
  26. package/dist/commons/events/test.utils.d.ts +90 -206
  27. package/dist/commons/events/transactions.d.ts +1 -1
  28. package/dist/commons/events/utils.d.ts +94 -15442
  29. package/dist/conditionals/index.js +56 -66
  30. package/dist/events/index.js +1835 -4707
  31. package/dist/scopes/index.d.ts +7 -184
  32. package/dist/scopes/index.js +40 -140
  33. package/package.json +3 -4
  34. package/dist/commons/events/Constants.d.ts +0 -3
  35. package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -4132
  36. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
  37. package/dist/commons/events/WorkqueueColumnConfig.d.ts +0 -53
  38. package/dist/commons/events/event.d.ts +0 -46
  39. package/dist/commons/events/field.d.ts +0 -94
  40. package/dist/commons/events/scopes.d.ts +0 -45
  41. package/dist/commons/events/serializer.d.ts +0 -2
  42. 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
- label?: TranslationConfig | undefined;
88
- conditionals?: {
89
- type: "SHOW";
90
- conditional: import(".").JSONSchema;
91
- }[] | 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
- label?: {
56
+ id: string;
57
+ value: {
96
58
  id: string;
97
59
  description: string;
98
60
  defaultMessage: string;
99
- } | undefined;
100
- conditionals?: {
101
- type: "SHOW";
102
- conditional: import(".").JSONSchema;
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
- label?: TranslationConfig | undefined;
114
- conditionals?: {
115
- type: "SHOW";
116
- conditional: import(".").JSONSchema;
117
- }[] | 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
- label?: {
86
+ title: {
87
+ id: string;
88
+ label: {
133
89
  id: string;
134
90
  description: string;
135
91
  defaultMessage: string;
136
- } | undefined;
137
- conditionals?: {
138
- type: "SHOW";
139
- conditional: import(".").JSONSchema;
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,33 +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
- avatar: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
19
- signature: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
20
- }, "strip", z.ZodTypeAny, {
21
- id: string;
22
- name: {
23
- use: string;
24
- given: string[];
25
- family: string;
26
- }[];
27
- role: string;
28
- signature?: string | undefined;
29
- avatar?: string | undefined;
30
- }, {
1
+ export type User = {
31
2
  id: string;
32
3
  name: {
33
4
  use: string;
@@ -35,8 +6,5 @@ export declare const User: z.ZodObject<{
35
6
  family: string;
36
7
  }[];
37
8
  role: string;
38
- signature?: string | undefined;
39
- avatar?: string | undefined;
40
- }>;
41
- export type User = z.infer<typeof User>;
9
+ };
42
10
  //# sourceMappingURL=User.d.ts.map