@opencrvs/toolkit 1.9.13-rc.fc5374d → 2.0.0-rc.e0918cb

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 (130) hide show
  1. package/build.sh +13 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/application-config/index.d.ts +2 -0
  4. package/dist/application-config/index.d.ts.map +1 -0
  5. package/dist/application-config/index.js +2128 -0
  6. package/dist/cli.d.ts +2 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +3633 -0
  9. package/dist/commons/api/router.d.ts +3438 -2300
  10. package/dist/commons/application-config/index.d.ts +84 -0
  11. package/dist/commons/conditionals/conditionals.d.ts +27 -3
  12. package/dist/commons/conditionals/validate.d.ts +13 -3
  13. package/dist/commons/events/ActionConfig.d.ts +415 -1555
  14. package/dist/commons/events/ActionDocument.d.ts +888 -1941
  15. package/dist/commons/events/ActionInput.d.ts +277 -1073
  16. package/dist/commons/events/ActionType.d.ts +91 -11
  17. package/dist/commons/events/AdvancedSearchConfig.d.ts +294 -1496
  18. package/dist/commons/events/AuditLog.d.ts +405 -0
  19. package/dist/commons/events/CompositeFieldValue.d.ts +30 -190
  20. package/dist/commons/events/Conditional.d.ts +26 -38
  21. package/dist/commons/events/Constants.d.ts +1 -1
  22. package/dist/commons/events/CountryConfigQueryInput.d.ts +1592 -4471
  23. package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
  24. package/dist/commons/events/Draft.d.ts +72 -107
  25. package/dist/commons/events/DynamicFieldValue.d.ts +12 -78
  26. package/dist/commons/events/EventConfig.d.ts +37 -2420
  27. package/dist/commons/events/EventConfigInput.d.ts +0 -3
  28. package/dist/commons/events/EventDocument.d.ts +354 -1366
  29. package/dist/commons/events/EventIndex.d.ts +212 -1010
  30. package/dist/commons/events/EventInput.d.ts +3 -8
  31. package/dist/commons/events/EventMetadata.d.ts +130 -357
  32. package/dist/commons/events/FieldConfig.d.ts +2892 -12892
  33. package/dist/commons/events/FieldType.d.ts +26 -4
  34. package/dist/commons/events/FieldTypeMapping.d.ts +314 -906
  35. package/dist/commons/events/FieldValue.d.ts +149 -527
  36. package/dist/commons/events/FileUtils.d.ts +2 -2
  37. package/dist/commons/events/Flag.d.ts +67 -0
  38. package/dist/commons/events/FormConfig.d.ts +54 -721
  39. package/dist/commons/events/PageConfig.d.ts +58 -320
  40. package/dist/commons/events/PlainDate.d.ts +1 -1
  41. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  42. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  43. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  44. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  45. package/dist/commons/events/WorkqueueConfig.d.ts +2208 -7553
  46. package/dist/commons/events/deduplication.d.ts +3 -3
  47. package/dist/commons/events/defineConfig.d.ts +2 -247
  48. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  49. package/dist/commons/events/index.d.ts +3 -0
  50. package/dist/commons/events/locations.d.ts +57 -20
  51. package/dist/commons/events/scopes.d.ts +36 -35
  52. package/dist/commons/events/state/availableActions.d.ts +7 -2
  53. package/dist/commons/events/state/flags.d.ts +21 -3
  54. package/dist/commons/events/state/index.d.ts +30 -27
  55. package/dist/commons/events/state/utils.d.ts +190 -172
  56. package/dist/commons/events/test.utils.d.ts +52 -11
  57. package/dist/commons/events/transactions.d.ts +1 -1
  58. package/dist/commons/events/utils.d.ts +373 -273
  59. package/dist/commons/notification/UserNotifications.d.ts +61 -637
  60. package/dist/conditionals/index.d.ts.map +1 -1
  61. package/dist/conditionals/index.js +302 -14
  62. package/dist/events/deduplication.d.ts +3 -3
  63. package/dist/events/index.js +2860 -2115
  64. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  65. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  66. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
  67. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
  68. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  69. package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
  70. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  71. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  72. package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
  73. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  74. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  75. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  76. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  77. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  78. package/dist/migrations/v2.0/create-events-index.js +326 -0
  79. package/dist/migrations/v2.0/index.d.ts +7 -0
  80. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  81. package/dist/migrations/v2.0/index.js +3572 -0
  82. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  83. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  84. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  85. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  86. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  87. package/dist/migrations/v2.0/migrate-scopes.js +282 -0
  88. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  89. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  90. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  91. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  92. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  93. package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
  94. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  95. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  96. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  97. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  98. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  99. package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
  100. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  101. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  102. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  103. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  104. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  105. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  106. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  107. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  108. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  109. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  110. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  111. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  112. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  113. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  114. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  115. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  116. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  117. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  118. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  119. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  120. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
  121. package/dist/notification/index.d.ts.map +1 -1
  122. package/dist/notification/index.js +2076 -1767
  123. package/dist/scopes/index.d.ts +640 -353
  124. package/dist/scopes/index.d.ts.map +1 -1
  125. package/dist/scopes/index.js +340 -300
  126. package/opencrvs-toolkit-2.0.0-rc.e0918cb.tgz +0 -0
  127. package/package.json +18 -8
  128. package/tsconfig.json +12 -2
  129. package/tsconfig.tsbuildinfo +1 -1
  130. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
@@ -1,1609 +1,469 @@
1
- import { z } from 'zod';
2
- import { TranslationConfig } from './TranslationConfig';
1
+ import * as z from 'zod/v4';
3
2
  import { FieldConfig } from './FieldConfig';
4
3
  export declare const DeclarationReviewConfig: z.ZodObject<{
5
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6
- id: string;
7
- description: string;
8
- defaultMessage: string;
9
- }>;
10
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
11
- }, "strip", z.ZodTypeAny, {
12
- title: TranslationConfig;
13
- fields: FieldConfig[];
14
- }, {
15
- title: {
16
- id: string;
17
- description: string;
18
- defaultMessage: string;
19
- };
20
- fields: import("./FieldConfig").FieldConfigInput[];
21
- }>;
22
- export type ReviewPageConfig = z.infer<typeof DeclarationReviewConfig>;
4
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
5
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
6
+ }, z.core.$strip>;
23
7
  export declare const ActionConfigBase: z.ZodObject<{
24
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
25
- id: string;
26
- description: string;
27
- defaultMessage: string;
28
- }>;
29
- }, "strip", z.ZodTypeAny, {
30
- label: TranslationConfig;
31
- }, {
32
- label: {
33
- id: string;
34
- description: string;
35
- defaultMessage: string;
36
- };
37
- }>;
38
- export declare const DeclarationActionBase: z.ZodObject<z.objectUtil.extendShape<{
39
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
40
- id: string;
41
- description: string;
42
- defaultMessage: string;
43
- }>;
44
- }, {
45
- review: z.ZodObject<{
46
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
47
- id: string;
48
- description: string;
49
- defaultMessage: string;
8
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
9
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
11
+ readonly INCOMPLETE: "incomplete";
12
+ readonly REJECTED: "rejected";
13
+ readonly CORRECTION_REQUESTED: "correction-requested";
14
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
15
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
16
+ }>]>, z.ZodString]>;
17
+ operation: z.ZodEnum<{
18
+ add: "add";
19
+ remove: "remove";
50
20
  }>;
51
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
52
- }, "strip", z.ZodTypeAny, {
53
- title: TranslationConfig;
54
- fields: FieldConfig[];
55
- }, {
56
- title: {
57
- id: string;
58
- description: string;
59
- defaultMessage: string;
60
- };
61
- fields: import("./FieldConfig").FieldConfigInput[];
62
- }>;
63
- deduplication: z.ZodOptional<z.ZodObject<{
64
- id: z.ZodString;
65
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
66
- id: string;
67
- description: string;
68
- defaultMessage: string;
21
+ conditional: z.ZodOptional<z.ZodAny>;
22
+ }, z.core.$strip>>>>;
23
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
24
+ icon: z.ZodOptional<z.ZodString>;
25
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
26
+ type: z.ZodLiteral<"SHOW">;
27
+ conditional: z.ZodAny;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ type: z.ZodLiteral<"ENABLE">;
30
+ conditional: z.ZodAny;
31
+ }, z.core.$strip>], "type">>>;
32
+ }, z.core.$strip>;
33
+ declare const CustomActionConfig: z.ZodObject<{
34
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
35
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
36
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
37
+ readonly INCOMPLETE: "incomplete";
38
+ readonly REJECTED: "rejected";
39
+ readonly CORRECTION_REQUESTED: "correction-requested";
40
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
41
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
42
+ }>]>, z.ZodString]>;
43
+ operation: z.ZodEnum<{
44
+ add: "add";
45
+ remove: "remove";
69
46
  }>;
70
- query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
71
- }, "strip", z.ZodTypeAny, {
72
- id: string;
73
- query: import("./DeduplicationConfig").ClauseOutput;
74
- label: TranslationConfig;
75
- }, {
76
- id: string;
77
- query: import("./DeduplicationConfig").ClauseInput;
78
- label: {
79
- id: string;
80
- description: string;
81
- defaultMessage: string;
82
- };
83
- }>>;
84
- }>, "strip", z.ZodTypeAny, {
85
- label: TranslationConfig;
86
- review: {
87
- title: TranslationConfig;
88
- fields: FieldConfig[];
89
- };
90
- deduplication?: {
91
- id: string;
92
- query: import("./DeduplicationConfig").ClauseOutput;
93
- label: TranslationConfig;
94
- } | undefined;
95
- }, {
96
- label: {
97
- id: string;
98
- description: string;
99
- defaultMessage: string;
100
- };
101
- review: {
102
- title: {
103
- id: string;
104
- description: string;
105
- defaultMessage: string;
106
- };
107
- fields: import("./FieldConfig").FieldConfigInput[];
108
- };
109
- deduplication?: {
110
- id: string;
111
- query: import("./DeduplicationConfig").ClauseInput;
112
- label: {
113
- id: string;
114
- description: string;
115
- defaultMessage: string;
116
- };
117
- } | undefined;
118
- }>;
119
- declare const ReadActionConfig: z.ZodObject<z.objectUtil.extendShape<{
120
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
121
- id: string;
122
- description: string;
123
- defaultMessage: string;
124
- }>;
125
- }, {
126
- type: z.ZodLiteral<"READ">;
127
- review: z.ZodObject<{
128
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
129
- id: string;
130
- description: string;
131
- defaultMessage: string;
47
+ conditional: z.ZodOptional<z.ZodAny>;
48
+ }, z.core.$strip>>>>;
49
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
50
+ icon: z.ZodOptional<z.ZodString>;
51
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ type: z.ZodLiteral<"SHOW">;
53
+ conditional: z.ZodAny;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ type: z.ZodLiteral<"ENABLE">;
56
+ conditional: z.ZodAny;
57
+ }, z.core.$strip>], "type">>>;
58
+ type: z.ZodLiteral<"CUSTOM">;
59
+ customActionType: z.ZodString;
60
+ form: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
61
+ auditHistoryLabel: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
62
+ }, z.core.$strip>;
63
+ export type CustomActionConfig = z.infer<typeof CustomActionConfig>;
64
+ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
65
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
66
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
68
+ readonly INCOMPLETE: "incomplete";
69
+ readonly REJECTED: "rejected";
70
+ readonly CORRECTION_REQUESTED: "correction-requested";
71
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
72
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
73
+ }>]>, z.ZodString]>;
74
+ operation: z.ZodEnum<{
75
+ add: "add";
76
+ remove: "remove";
132
77
  }>;
133
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
134
- }, "strip", z.ZodTypeAny, {
135
- title: TranslationConfig;
136
- fields: FieldConfig[];
137
- }, {
138
- title: {
139
- id: string;
140
- description: string;
141
- defaultMessage: string;
142
- };
143
- fields: import("./FieldConfig").FieldConfigInput[];
144
- }>;
145
- }>, "strip", z.ZodTypeAny, {
146
- type: "READ";
147
- label: TranslationConfig;
148
- review: {
149
- title: TranslationConfig;
150
- fields: FieldConfig[];
151
- };
152
- }, {
153
- type: "READ";
154
- label: {
155
- id: string;
156
- description: string;
157
- defaultMessage: string;
158
- };
159
- review: {
160
- title: {
161
- id: string;
162
- description: string;
163
- defaultMessage: string;
164
- };
165
- fields: import("./FieldConfig").FieldConfigInput[];
166
- };
167
- }>;
168
- declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
169
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
170
- id: string;
171
- description: string;
172
- defaultMessage: string;
173
- }>;
174
- }, {
78
+ conditional: z.ZodOptional<z.ZodAny>;
79
+ }, z.core.$strip>>>>;
80
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
81
+ icon: z.ZodOptional<z.ZodString>;
82
+ type: z.ZodLiteral<"READ">;
175
83
  review: z.ZodObject<{
176
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
177
- id: string;
178
- description: string;
179
- defaultMessage: string;
84
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
85
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
86
+ }, z.core.$strip>;
87
+ conditionals: z.ZodOptional<z.ZodNever>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
90
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
91
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
92
+ readonly INCOMPLETE: "incomplete";
93
+ readonly REJECTED: "rejected";
94
+ readonly CORRECTION_REQUESTED: "correction-requested";
95
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
96
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
97
+ }>]>, z.ZodString]>;
98
+ operation: z.ZodEnum<{
99
+ add: "add";
100
+ remove: "remove";
180
101
  }>;
181
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
182
- }, "strip", z.ZodTypeAny, {
183
- title: TranslationConfig;
184
- fields: FieldConfig[];
185
- }, {
186
- title: {
187
- id: string;
188
- description: string;
189
- defaultMessage: string;
190
- };
191
- fields: import("./FieldConfig").FieldConfigInput[];
192
- }>;
102
+ conditional: z.ZodOptional<z.ZodAny>;
103
+ }, z.core.$strip>>>>;
104
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
105
+ icon: z.ZodOptional<z.ZodString>;
106
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
107
+ type: z.ZodLiteral<"SHOW">;
108
+ conditional: z.ZodAny;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ type: z.ZodLiteral<"ENABLE">;
111
+ conditional: z.ZodAny;
112
+ }, z.core.$strip>], "type">>>;
193
113
  deduplication: z.ZodOptional<z.ZodObject<{
194
114
  id: z.ZodString;
195
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
196
- id: string;
197
- description: string;
198
- defaultMessage: string;
199
- }>;
200
- query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
201
- }, "strip", z.ZodTypeAny, {
202
- id: string;
203
- query: import("./DeduplicationConfig").ClauseOutput;
204
- label: TranslationConfig;
205
- }, {
206
- id: string;
207
- query: import("./DeduplicationConfig").ClauseInput;
208
- label: {
209
- id: string;
210
- description: string;
211
- defaultMessage: string;
212
- };
213
- }>>;
214
- }>, {
115
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
116
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
117
+ }, z.core.$strip>>;
215
118
  type: z.ZodLiteral<"DECLARE">;
216
- }>, "strip", z.ZodTypeAny, {
217
- type: "DECLARE";
218
- label: TranslationConfig;
219
- review: {
220
- title: TranslationConfig;
221
- fields: FieldConfig[];
222
- };
223
- deduplication?: {
224
- id: string;
225
- query: import("./DeduplicationConfig").ClauseOutput;
226
- label: TranslationConfig;
227
- } | undefined;
228
- }, {
229
- type: "DECLARE";
230
- label: {
231
- id: string;
232
- description: string;
233
- defaultMessage: string;
234
- };
235
- review: {
236
- title: {
237
- id: string;
238
- description: string;
239
- defaultMessage: string;
240
- };
241
- fields: import("./FieldConfig").FieldConfigInput[];
242
- };
243
- deduplication?: {
244
- id: string;
245
- query: import("./DeduplicationConfig").ClauseInput;
246
- label: {
247
- id: string;
248
- description: string;
249
- defaultMessage: string;
250
- };
251
- } | undefined;
252
- }>;
253
- declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
254
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
255
- id: string;
256
- description: string;
257
- defaultMessage: string;
258
- }>;
259
- }, {
260
119
  review: z.ZodObject<{
261
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
262
- id: string;
263
- description: string;
264
- defaultMessage: string;
265
- }>;
266
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
267
- }, "strip", z.ZodTypeAny, {
268
- title: TranslationConfig;
269
- fields: FieldConfig[];
270
- }, {
271
- title: {
272
- id: string;
273
- description: string;
274
- defaultMessage: string;
275
- };
276
- fields: import("./FieldConfig").FieldConfigInput[];
277
- }>;
278
- deduplication: z.ZodOptional<z.ZodObject<{
279
- id: z.ZodString;
280
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
281
- id: string;
282
- description: string;
283
- defaultMessage: string;
120
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
121
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
122
+ }, z.core.$strip>;
123
+ dialogCopy: z.ZodOptional<z.ZodObject<{
124
+ notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
125
+ declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
126
+ register: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
127
+ }, z.core.$strip>>;
128
+ }, z.core.$strip>, z.ZodObject<{
129
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
130
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
131
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
132
+ readonly INCOMPLETE: "incomplete";
133
+ readonly REJECTED: "rejected";
134
+ readonly CORRECTION_REQUESTED: "correction-requested";
135
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
136
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
137
+ }>]>, z.ZodString]>;
138
+ operation: z.ZodEnum<{
139
+ add: "add";
140
+ remove: "remove";
284
141
  }>;
285
- query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
286
- }, "strip", z.ZodTypeAny, {
287
- id: string;
288
- query: import("./DeduplicationConfig").ClauseOutput;
289
- label: TranslationConfig;
290
- }, {
291
- id: string;
292
- query: import("./DeduplicationConfig").ClauseInput;
293
- label: {
294
- id: string;
295
- description: string;
296
- defaultMessage: string;
297
- };
298
- }>>;
299
- }>, {
300
- type: z.ZodLiteral<"VALIDATE">;
301
- }>, "strip", z.ZodTypeAny, {
302
- type: "VALIDATE";
303
- label: TranslationConfig;
304
- review: {
305
- title: TranslationConfig;
306
- fields: FieldConfig[];
307
- };
308
- deduplication?: {
309
- id: string;
310
- query: import("./DeduplicationConfig").ClauseOutput;
311
- label: TranslationConfig;
312
- } | undefined;
313
- }, {
314
- type: "VALIDATE";
315
- label: {
316
- id: string;
317
- description: string;
318
- defaultMessage: string;
319
- };
320
- review: {
321
- title: {
322
- id: string;
323
- description: string;
324
- defaultMessage: string;
325
- };
326
- fields: import("./FieldConfig").FieldConfigInput[];
327
- };
328
- deduplication?: {
329
- id: string;
330
- query: import("./DeduplicationConfig").ClauseInput;
331
- label: {
332
- id: string;
333
- description: string;
334
- defaultMessage: string;
335
- };
336
- } | undefined;
337
- }>;
338
- declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
339
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
340
- id: string;
341
- description: string;
342
- defaultMessage: string;
343
- }>;
344
- }, {
345
- review: z.ZodObject<{
346
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
347
- id: string;
348
- description: string;
349
- defaultMessage: string;
142
+ conditional: z.ZodOptional<z.ZodAny>;
143
+ }, z.core.$strip>>>>;
144
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
145
+ icon: z.ZodOptional<z.ZodString>;
146
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
147
+ type: z.ZodLiteral<"SHOW">;
148
+ conditional: z.ZodAny;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ type: z.ZodLiteral<"ENABLE">;
151
+ conditional: z.ZodAny;
152
+ }, z.core.$strip>], "type">>>;
153
+ type: z.ZodLiteral<"REJECT">;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
156
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
157
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
158
+ readonly INCOMPLETE: "incomplete";
159
+ readonly REJECTED: "rejected";
160
+ readonly CORRECTION_REQUESTED: "correction-requested";
161
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
162
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
163
+ }>]>, z.ZodString]>;
164
+ operation: z.ZodEnum<{
165
+ add: "add";
166
+ remove: "remove";
350
167
  }>;
351
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
352
- }, "strip", z.ZodTypeAny, {
353
- title: TranslationConfig;
354
- fields: FieldConfig[];
355
- }, {
356
- title: {
357
- id: string;
358
- description: string;
359
- defaultMessage: string;
360
- };
361
- fields: import("./FieldConfig").FieldConfigInput[];
362
- }>;
168
+ conditional: z.ZodOptional<z.ZodAny>;
169
+ }, z.core.$strip>>>>;
170
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
171
+ icon: z.ZodOptional<z.ZodString>;
172
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
173
+ type: z.ZodLiteral<"SHOW">;
174
+ conditional: z.ZodAny;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ type: z.ZodLiteral<"ENABLE">;
177
+ conditional: z.ZodAny;
178
+ }, z.core.$strip>], "type">>>;
363
179
  deduplication: z.ZodOptional<z.ZodObject<{
364
180
  id: z.ZodString;
365
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
366
- id: string;
367
- description: string;
368
- defaultMessage: string;
369
- }>;
370
- query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
371
- }, "strip", z.ZodTypeAny, {
372
- id: string;
373
- query: import("./DeduplicationConfig").ClauseOutput;
374
- label: TranslationConfig;
375
- }, {
376
- id: string;
377
- query: import("./DeduplicationConfig").ClauseInput;
378
- label: {
379
- id: string;
380
- description: string;
381
- defaultMessage: string;
382
- };
383
- }>>;
384
- }>, {
181
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
182
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
183
+ }, z.core.$strip>>;
385
184
  type: z.ZodLiteral<"REGISTER">;
386
- }>, "strip", z.ZodTypeAny, {
387
- type: "REGISTER";
388
- label: TranslationConfig;
389
- review: {
390
- title: TranslationConfig;
391
- fields: FieldConfig[];
392
- };
393
- deduplication?: {
394
- id: string;
395
- query: import("./DeduplicationConfig").ClauseOutput;
396
- label: TranslationConfig;
397
- } | undefined;
398
- }, {
399
- type: "REGISTER";
400
- label: {
401
- id: string;
402
- description: string;
403
- defaultMessage: string;
404
- };
405
- review: {
406
- title: {
407
- id: string;
408
- description: string;
409
- defaultMessage: string;
410
- };
411
- fields: import("./FieldConfig").FieldConfigInput[];
412
- };
413
- deduplication?: {
414
- id: string;
415
- query: import("./DeduplicationConfig").ClauseInput;
416
- label: {
417
- id: string;
418
- description: string;
419
- defaultMessage: string;
420
- };
421
- } | undefined;
422
- }>;
423
- declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
424
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
425
- id: string;
426
- description: string;
427
- defaultMessage: string;
428
- }>;
429
- }, {
430
- type: z.ZodLiteral<"REJECT">;
431
- }>, "strip", z.ZodTypeAny, {
432
- type: "REJECT";
433
- label: TranslationConfig;
434
- }, {
435
- type: "REJECT";
436
- label: {
437
- id: string;
438
- description: string;
439
- defaultMessage: string;
440
- };
441
- }>;
442
- declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
443
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
444
- id: string;
445
- description: string;
446
- defaultMessage: string;
447
- }>;
448
- }, {
449
- type: z.ZodLiteral<"ARCHIVE">;
450
- }>, "strip", z.ZodTypeAny, {
451
- type: "ARCHIVE";
452
- label: TranslationConfig;
453
- }, {
454
- type: "ARCHIVE";
455
- label: {
456
- id: string;
457
- description: string;
458
- defaultMessage: string;
459
- };
460
- }>;
461
- declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
462
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
463
- id: string;
464
- description: string;
465
- defaultMessage: string;
466
- }>;
467
- }, {
468
- type: z.ZodLiteral<"DELETE">;
469
- }>, "strip", z.ZodTypeAny, {
470
- type: "DELETE";
471
- label: TranslationConfig;
472
- }, {
473
- type: "DELETE";
474
- label: {
475
- id: string;
476
- description: string;
477
- defaultMessage: string;
478
- };
479
- }>;
480
- declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape<{
481
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
482
- id: string;
483
- description: string;
484
- defaultMessage: string;
485
- }>;
486
- }, {
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
187
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
189
+ readonly INCOMPLETE: "incomplete";
190
+ readonly REJECTED: "rejected";
191
+ readonly CORRECTION_REQUESTED: "correction-requested";
192
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
193
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
194
+ }>]>, z.ZodString]>;
195
+ operation: z.ZodEnum<{
196
+ add: "add";
197
+ remove: "remove";
198
+ }>;
199
+ conditional: z.ZodOptional<z.ZodAny>;
200
+ }, z.core.$strip>>>>;
201
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
202
+ icon: z.ZodOptional<z.ZodString>;
203
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
204
+ type: z.ZodLiteral<"SHOW">;
205
+ conditional: z.ZodAny;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ type: z.ZodLiteral<"ENABLE">;
208
+ conditional: z.ZodAny;
209
+ }, z.core.$strip>], "type">>>;
487
210
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
488
211
  printForm: z.ZodObject<{
489
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
490
- id: string;
491
- description: string;
492
- defaultMessage: string;
493
- }>;
494
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
212
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
213
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
495
214
  id: z.ZodString;
496
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
497
- id: string;
498
- description: string;
499
- defaultMessage: string;
500
- }>;
215
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
501
216
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
502
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
503
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
504
- }, {
217
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
218
+ conditional: z.ZodOptional<z.ZodAny>;
505
219
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
506
- }>, "strip", z.ZodTypeAny, {
507
- type: "FORM";
508
- id: string;
509
- title: TranslationConfig;
510
- fields: FieldConfig[];
511
- requireCompletionToContinue: boolean;
512
- conditional?: import(".").JSONSchema | undefined;
513
- }, {
514
- id: string;
515
- title: {
516
- id: string;
517
- description: string;
518
- defaultMessage: string;
519
- };
520
- fields: import("./FieldConfig").FieldConfigInput[];
521
- type?: "FORM" | undefined;
522
- conditional?: import(".").JSONSchema | undefined;
523
- requireCompletionToContinue?: boolean | undefined;
524
- }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
220
+ }, z.core.$strip>, z.ZodObject<{
525
221
  id: z.ZodString;
526
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
527
- id: string;
528
- description: string;
529
- defaultMessage: string;
530
- }>;
222
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
531
223
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
532
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
533
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
534
- }, {
535
- type: z.ZodDefault<z.ZodLiteral<"FORM">>;
536
- }>, {
224
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
225
+ conditional: z.ZodOptional<z.ZodAny>;
537
226
  type: z.ZodLiteral<"VERIFICATION">;
538
227
  actions: z.ZodObject<{
539
228
  verify: z.ZodObject<{
540
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
541
- id: string;
542
- description: string;
543
- defaultMessage: string;
544
- }>;
545
- }, "strip", z.ZodTypeAny, {
546
- label: TranslationConfig;
547
- }, {
548
- label: {
549
- id: string;
550
- description: string;
551
- defaultMessage: string;
552
- };
553
- }>;
229
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
230
+ }, z.core.$strip>;
554
231
  cancel: z.ZodObject<{
555
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
556
- id: string;
557
- description: string;
558
- defaultMessage: string;
559
- }>;
232
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
560
233
  confirmation: z.ZodObject<{
561
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
562
- id: string;
563
- description: string;
564
- defaultMessage: string;
565
- }>;
566
- body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
567
- id: string;
568
- description: string;
569
- defaultMessage: string;
570
- }>;
571
- }, "strip", z.ZodTypeAny, {
572
- title: TranslationConfig;
573
- body: TranslationConfig;
574
- }, {
575
- title: {
576
- id: string;
577
- description: string;
578
- defaultMessage: string;
579
- };
580
- body: {
581
- id: string;
582
- description: string;
583
- defaultMessage: string;
584
- };
585
- }>;
586
- }, "strip", z.ZodTypeAny, {
587
- label: TranslationConfig;
588
- confirmation: {
589
- title: TranslationConfig;
590
- body: TranslationConfig;
591
- };
592
- }, {
593
- label: {
594
- id: string;
595
- description: string;
596
- defaultMessage: string;
597
- };
598
- confirmation: {
599
- title: {
600
- id: string;
601
- description: string;
602
- defaultMessage: string;
603
- };
604
- body: {
605
- id: string;
606
- description: string;
607
- defaultMessage: string;
608
- };
609
- };
610
- }>;
611
- }, "strip", z.ZodTypeAny, {
612
- cancel: {
613
- label: TranslationConfig;
614
- confirmation: {
615
- title: TranslationConfig;
616
- body: TranslationConfig;
617
- };
618
- };
619
- verify: {
620
- label: TranslationConfig;
621
- };
622
- }, {
623
- cancel: {
624
- label: {
625
- id: string;
626
- description: string;
627
- defaultMessage: string;
628
- };
629
- confirmation: {
630
- title: {
631
- id: string;
632
- description: string;
633
- defaultMessage: string;
634
- };
635
- body: {
636
- id: string;
637
- description: string;
638
- defaultMessage: string;
639
- };
640
- };
641
- };
642
- verify: {
643
- label: {
644
- id: string;
645
- description: string;
646
- defaultMessage: string;
647
- };
648
- };
649
- }>;
650
- }>, "strip", z.ZodTypeAny, {
651
- type: "VERIFICATION";
652
- id: string;
653
- title: TranslationConfig;
654
- actions: {
655
- cancel: {
656
- label: TranslationConfig;
657
- confirmation: {
658
- title: TranslationConfig;
659
- body: TranslationConfig;
660
- };
661
- };
662
- verify: {
663
- label: TranslationConfig;
664
- };
665
- };
666
- fields: FieldConfig[];
667
- requireCompletionToContinue: boolean;
668
- conditional?: import(".").JSONSchema | undefined;
669
- }, {
670
- type: "VERIFICATION";
671
- id: string;
672
- title: {
673
- id: string;
674
- description: string;
675
- defaultMessage: string;
676
- };
677
- actions: {
678
- cancel: {
679
- label: {
680
- id: string;
681
- description: string;
682
- defaultMessage: string;
683
- };
684
- confirmation: {
685
- title: {
686
- id: string;
687
- description: string;
688
- defaultMessage: string;
689
- };
690
- body: {
691
- id: string;
692
- description: string;
693
- defaultMessage: string;
694
- };
695
- };
696
- };
697
- verify: {
698
- label: {
699
- id: string;
700
- description: string;
701
- defaultMessage: string;
702
- };
703
- };
704
- };
705
- fields: import("./FieldConfig").FieldConfigInput[];
706
- conditional?: import(".").JSONSchema | undefined;
707
- requireCompletionToContinue?: boolean | undefined;
708
- }>)[]>, "many">;
709
- }, "strip", z.ZodTypeAny, {
710
- label: TranslationConfig;
711
- pages: ({
712
- type: "FORM";
713
- id: string;
714
- title: TranslationConfig;
715
- fields: FieldConfig[];
716
- requireCompletionToContinue: boolean;
717
- conditional?: import(".").JSONSchema | undefined;
718
- } | {
719
- type: "VERIFICATION";
720
- id: string;
721
- title: TranslationConfig;
722
- actions: {
723
- cancel: {
724
- label: TranslationConfig;
725
- confirmation: {
726
- title: TranslationConfig;
727
- body: TranslationConfig;
728
- };
729
- };
730
- verify: {
731
- label: TranslationConfig;
732
- };
733
- };
734
- fields: FieldConfig[];
735
- requireCompletionToContinue: boolean;
736
- conditional?: import(".").JSONSchema | undefined;
737
- })[];
738
- }, {
739
- label: {
740
- id: string;
741
- description: string;
742
- defaultMessage: string;
743
- };
744
- pages: ({
745
- id: string;
746
- title: {
747
- id: string;
748
- description: string;
749
- defaultMessage: string;
750
- };
751
- fields: import("./FieldConfig").FieldConfigInput[];
752
- type?: "FORM" | undefined;
753
- conditional?: import(".").JSONSchema | undefined;
754
- requireCompletionToContinue?: boolean | undefined;
755
- } | {
756
- type: "VERIFICATION";
757
- id: string;
758
- title: {
759
- id: string;
760
- description: string;
761
- defaultMessage: string;
762
- };
763
- actions: {
764
- cancel: {
765
- label: {
766
- id: string;
767
- description: string;
768
- defaultMessage: string;
769
- };
770
- confirmation: {
771
- title: {
772
- id: string;
773
- description: string;
774
- defaultMessage: string;
775
- };
776
- body: {
777
- id: string;
778
- description: string;
779
- defaultMessage: string;
780
- };
781
- };
782
- };
783
- verify: {
784
- label: {
785
- id: string;
786
- description: string;
787
- defaultMessage: string;
788
- };
789
- };
790
- };
791
- fields: import("./FieldConfig").FieldConfigInput[];
792
- conditional?: import(".").JSONSchema | undefined;
793
- requireCompletionToContinue?: boolean | undefined;
794
- })[];
795
- }>;
796
- }>, "strip", z.ZodTypeAny, {
797
- type: "PRINT_CERTIFICATE";
798
- label: TranslationConfig;
799
- printForm: {
800
- label: TranslationConfig;
801
- pages: ({
802
- type: "FORM";
803
- id: string;
804
- title: TranslationConfig;
805
- fields: FieldConfig[];
806
- requireCompletionToContinue: boolean;
807
- conditional?: import(".").JSONSchema | undefined;
808
- } | {
809
- type: "VERIFICATION";
810
- id: string;
811
- title: TranslationConfig;
812
- actions: {
813
- cancel: {
814
- label: TranslationConfig;
815
- confirmation: {
816
- title: TranslationConfig;
817
- body: TranslationConfig;
818
- };
819
- };
820
- verify: {
821
- label: TranslationConfig;
822
- };
823
- };
824
- fields: FieldConfig[];
825
- requireCompletionToContinue: boolean;
826
- conditional?: import(".").JSONSchema | undefined;
827
- })[];
828
- };
829
- }, {
830
- type: "PRINT_CERTIFICATE";
831
- label: {
832
- id: string;
833
- description: string;
834
- defaultMessage: string;
835
- };
836
- printForm: {
837
- label: {
838
- id: string;
839
- description: string;
840
- defaultMessage: string;
841
- };
842
- pages: ({
843
- id: string;
844
- title: {
845
- id: string;
846
- description: string;
847
- defaultMessage: string;
848
- };
849
- fields: import("./FieldConfig").FieldConfigInput[];
850
- type?: "FORM" | undefined;
851
- conditional?: import(".").JSONSchema | undefined;
852
- requireCompletionToContinue?: boolean | undefined;
853
- } | {
854
- type: "VERIFICATION";
855
- id: string;
856
- title: {
857
- id: string;
858
- description: string;
859
- defaultMessage: string;
860
- };
861
- actions: {
862
- cancel: {
863
- label: {
864
- id: string;
865
- description: string;
866
- defaultMessage: string;
867
- };
868
- confirmation: {
869
- title: {
870
- id: string;
871
- description: string;
872
- defaultMessage: string;
873
- };
874
- body: {
875
- id: string;
876
- description: string;
877
- defaultMessage: string;
878
- };
879
- };
880
- };
881
- verify: {
882
- label: {
883
- id: string;
884
- description: string;
885
- defaultMessage: string;
886
- };
887
- };
888
- };
889
- fields: import("./FieldConfig").FieldConfigInput[];
890
- conditional?: import(".").JSONSchema | undefined;
891
- requireCompletionToContinue?: boolean | undefined;
892
- })[];
893
- };
894
- }>;
895
- declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
896
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
897
- id: string;
898
- description: string;
899
- defaultMessage: string;
900
- }>;
901
- }, {
234
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
235
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
236
+ }, z.core.$strip>;
237
+ }, z.core.$strip>;
238
+ }, z.core.$strip>;
239
+ }, z.core.$strip>], "type">>;
240
+ }, z.core.$strip>;
241
+ }, z.core.$strip>, z.ZodObject<{
242
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
243
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
244
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
245
+ readonly INCOMPLETE: "incomplete";
246
+ readonly REJECTED: "rejected";
247
+ readonly CORRECTION_REQUESTED: "correction-requested";
248
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
249
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
250
+ }>]>, z.ZodString]>;
251
+ operation: z.ZodEnum<{
252
+ add: "add";
253
+ remove: "remove";
254
+ }>;
255
+ conditional: z.ZodOptional<z.ZodAny>;
256
+ }, z.core.$strip>>>>;
257
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
258
+ icon: z.ZodOptional<z.ZodString>;
259
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
260
+ type: z.ZodLiteral<"SHOW">;
261
+ conditional: z.ZodAny;
262
+ }, z.core.$strip>, z.ZodObject<{
263
+ type: z.ZodLiteral<"ENABLE">;
264
+ conditional: z.ZodAny;
265
+ }, z.core.$strip>], "type">>>;
902
266
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
903
267
  correctionForm: z.ZodObject<{
904
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
905
- id: string;
906
- description: string;
907
- defaultMessage: string;
908
- }>;
909
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
268
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
269
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
910
270
  id: z.ZodString;
911
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
912
- id: string;
913
- description: string;
914
- defaultMessage: string;
915
- }>;
271
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
916
272
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
917
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
918
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
919
- }, {
273
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
274
+ conditional: z.ZodOptional<z.ZodAny>;
920
275
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
921
- }>, "strip", z.ZodTypeAny, {
922
- type: "FORM";
923
- id: string;
924
- title: TranslationConfig;
925
- fields: FieldConfig[];
926
- requireCompletionToContinue: boolean;
927
- conditional?: import(".").JSONSchema | undefined;
928
- }, {
929
- id: string;
930
- title: {
931
- id: string;
932
- description: string;
933
- defaultMessage: string;
934
- };
935
- fields: import("./FieldConfig").FieldConfigInput[];
936
- type?: "FORM" | undefined;
937
- conditional?: import(".").JSONSchema | undefined;
938
- requireCompletionToContinue?: boolean | undefined;
939
- }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
276
+ }, z.core.$strip>, z.ZodObject<{
940
277
  id: z.ZodString;
941
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
942
- id: string;
943
- description: string;
944
- defaultMessage: string;
945
- }>;
278
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
946
279
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
947
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
948
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
949
- }, {
950
- type: z.ZodDefault<z.ZodLiteral<"FORM">>;
951
- }>, {
280
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
281
+ conditional: z.ZodOptional<z.ZodAny>;
952
282
  type: z.ZodLiteral<"VERIFICATION">;
953
283
  actions: z.ZodObject<{
954
284
  verify: z.ZodObject<{
955
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
956
- id: string;
957
- description: string;
958
- defaultMessage: string;
959
- }>;
960
- }, "strip", z.ZodTypeAny, {
961
- label: TranslationConfig;
962
- }, {
963
- label: {
964
- id: string;
965
- description: string;
966
- defaultMessage: string;
967
- };
968
- }>;
285
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
286
+ }, z.core.$strip>;
969
287
  cancel: z.ZodObject<{
970
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
971
- id: string;
972
- description: string;
973
- defaultMessage: string;
974
- }>;
288
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
975
289
  confirmation: z.ZodObject<{
976
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
977
- id: string;
978
- description: string;
979
- defaultMessage: string;
980
- }>;
981
- body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
982
- id: string;
983
- description: string;
984
- defaultMessage: string;
985
- }>;
986
- }, "strip", z.ZodTypeAny, {
987
- title: TranslationConfig;
988
- body: TranslationConfig;
989
- }, {
990
- title: {
991
- id: string;
992
- description: string;
993
- defaultMessage: string;
994
- };
995
- body: {
996
- id: string;
997
- description: string;
998
- defaultMessage: string;
999
- };
1000
- }>;
1001
- }, "strip", z.ZodTypeAny, {
1002
- label: TranslationConfig;
1003
- confirmation: {
1004
- title: TranslationConfig;
1005
- body: TranslationConfig;
1006
- };
1007
- }, {
1008
- label: {
1009
- id: string;
1010
- description: string;
1011
- defaultMessage: string;
1012
- };
1013
- confirmation: {
1014
- title: {
1015
- id: string;
1016
- description: string;
1017
- defaultMessage: string;
1018
- };
1019
- body: {
1020
- id: string;
1021
- description: string;
1022
- defaultMessage: string;
1023
- };
1024
- };
1025
- }>;
1026
- }, "strip", z.ZodTypeAny, {
1027
- cancel: {
1028
- label: TranslationConfig;
1029
- confirmation: {
1030
- title: TranslationConfig;
1031
- body: TranslationConfig;
1032
- };
1033
- };
1034
- verify: {
1035
- label: TranslationConfig;
1036
- };
1037
- }, {
1038
- cancel: {
1039
- label: {
1040
- id: string;
1041
- description: string;
1042
- defaultMessage: string;
1043
- };
1044
- confirmation: {
1045
- title: {
1046
- id: string;
1047
- description: string;
1048
- defaultMessage: string;
1049
- };
1050
- body: {
1051
- id: string;
1052
- description: string;
1053
- defaultMessage: string;
1054
- };
1055
- };
1056
- };
1057
- verify: {
1058
- label: {
1059
- id: string;
1060
- description: string;
1061
- defaultMessage: string;
1062
- };
1063
- };
1064
- }>;
1065
- }>, "strip", z.ZodTypeAny, {
1066
- type: "VERIFICATION";
1067
- id: string;
1068
- title: TranslationConfig;
1069
- actions: {
1070
- cancel: {
1071
- label: TranslationConfig;
1072
- confirmation: {
1073
- title: TranslationConfig;
1074
- body: TranslationConfig;
1075
- };
1076
- };
1077
- verify: {
1078
- label: TranslationConfig;
1079
- };
1080
- };
1081
- fields: FieldConfig[];
1082
- requireCompletionToContinue: boolean;
1083
- conditional?: import(".").JSONSchema | undefined;
1084
- }, {
1085
- type: "VERIFICATION";
1086
- id: string;
1087
- title: {
1088
- id: string;
1089
- description: string;
1090
- defaultMessage: string;
1091
- };
1092
- actions: {
1093
- cancel: {
1094
- label: {
1095
- id: string;
1096
- description: string;
1097
- defaultMessage: string;
1098
- };
1099
- confirmation: {
1100
- title: {
1101
- id: string;
1102
- description: string;
1103
- defaultMessage: string;
1104
- };
1105
- body: {
1106
- id: string;
1107
- description: string;
1108
- defaultMessage: string;
1109
- };
1110
- };
1111
- };
1112
- verify: {
1113
- label: {
1114
- id: string;
1115
- description: string;
1116
- defaultMessage: string;
1117
- };
1118
- };
1119
- };
1120
- fields: import("./FieldConfig").FieldConfigInput[];
1121
- conditional?: import(".").JSONSchema | undefined;
1122
- requireCompletionToContinue?: boolean | undefined;
1123
- }>)[]>, "many">;
1124
- }, "strip", z.ZodTypeAny, {
1125
- label: TranslationConfig;
1126
- pages: ({
1127
- type: "FORM";
1128
- id: string;
1129
- title: TranslationConfig;
1130
- fields: FieldConfig[];
1131
- requireCompletionToContinue: boolean;
1132
- conditional?: import(".").JSONSchema | undefined;
1133
- } | {
1134
- type: "VERIFICATION";
1135
- id: string;
1136
- title: TranslationConfig;
1137
- actions: {
1138
- cancel: {
1139
- label: TranslationConfig;
1140
- confirmation: {
1141
- title: TranslationConfig;
1142
- body: TranslationConfig;
1143
- };
1144
- };
1145
- verify: {
1146
- label: TranslationConfig;
1147
- };
1148
- };
1149
- fields: FieldConfig[];
1150
- requireCompletionToContinue: boolean;
1151
- conditional?: import(".").JSONSchema | undefined;
1152
- })[];
1153
- }, {
1154
- label: {
1155
- id: string;
1156
- description: string;
1157
- defaultMessage: string;
1158
- };
1159
- pages: ({
1160
- id: string;
1161
- title: {
1162
- id: string;
1163
- description: string;
1164
- defaultMessage: string;
1165
- };
1166
- fields: import("./FieldConfig").FieldConfigInput[];
1167
- type?: "FORM" | undefined;
1168
- conditional?: import(".").JSONSchema | undefined;
1169
- requireCompletionToContinue?: boolean | undefined;
1170
- } | {
1171
- type: "VERIFICATION";
1172
- id: string;
1173
- title: {
1174
- id: string;
1175
- description: string;
1176
- defaultMessage: string;
1177
- };
1178
- actions: {
1179
- cancel: {
1180
- label: {
1181
- id: string;
1182
- description: string;
1183
- defaultMessage: string;
1184
- };
1185
- confirmation: {
1186
- title: {
1187
- id: string;
1188
- description: string;
1189
- defaultMessage: string;
1190
- };
1191
- body: {
1192
- id: string;
1193
- description: string;
1194
- defaultMessage: string;
1195
- };
1196
- };
1197
- };
1198
- verify: {
1199
- label: {
1200
- id: string;
1201
- description: string;
1202
- defaultMessage: string;
1203
- };
1204
- };
1205
- };
1206
- fields: import("./FieldConfig").FieldConfigInput[];
1207
- conditional?: import(".").JSONSchema | undefined;
1208
- requireCompletionToContinue?: boolean | undefined;
1209
- })[];
1210
- }>;
1211
- }>, "strip", z.ZodTypeAny, {
1212
- type: "REQUEST_CORRECTION";
1213
- label: TranslationConfig;
1214
- correctionForm: {
1215
- label: TranslationConfig;
1216
- pages: ({
1217
- type: "FORM";
1218
- id: string;
1219
- title: TranslationConfig;
1220
- fields: FieldConfig[];
1221
- requireCompletionToContinue: boolean;
1222
- conditional?: import(".").JSONSchema | undefined;
1223
- } | {
1224
- type: "VERIFICATION";
1225
- id: string;
1226
- title: TranslationConfig;
1227
- actions: {
1228
- cancel: {
1229
- label: TranslationConfig;
1230
- confirmation: {
1231
- title: TranslationConfig;
1232
- body: TranslationConfig;
1233
- };
1234
- };
1235
- verify: {
1236
- label: TranslationConfig;
1237
- };
1238
- };
1239
- fields: FieldConfig[];
1240
- requireCompletionToContinue: boolean;
1241
- conditional?: import(".").JSONSchema | undefined;
1242
- })[];
1243
- };
1244
- }, {
1245
- type: "REQUEST_CORRECTION";
1246
- label: {
1247
- id: string;
1248
- description: string;
1249
- defaultMessage: string;
1250
- };
1251
- correctionForm: {
1252
- label: {
1253
- id: string;
1254
- description: string;
1255
- defaultMessage: string;
1256
- };
1257
- pages: ({
1258
- id: string;
1259
- title: {
1260
- id: string;
1261
- description: string;
1262
- defaultMessage: string;
1263
- };
1264
- fields: import("./FieldConfig").FieldConfigInput[];
1265
- type?: "FORM" | undefined;
1266
- conditional?: import(".").JSONSchema | undefined;
1267
- requireCompletionToContinue?: boolean | undefined;
1268
- } | {
1269
- type: "VERIFICATION";
1270
- id: string;
1271
- title: {
1272
- id: string;
1273
- description: string;
1274
- defaultMessage: string;
1275
- };
1276
- actions: {
1277
- cancel: {
1278
- label: {
1279
- id: string;
1280
- description: string;
1281
- defaultMessage: string;
1282
- };
1283
- confirmation: {
1284
- title: {
1285
- id: string;
1286
- description: string;
1287
- defaultMessage: string;
1288
- };
1289
- body: {
1290
- id: string;
1291
- description: string;
1292
- defaultMessage: string;
1293
- };
1294
- };
1295
- };
1296
- verify: {
1297
- label: {
1298
- id: string;
1299
- description: string;
1300
- defaultMessage: string;
1301
- };
1302
- };
1303
- };
1304
- fields: import("./FieldConfig").FieldConfigInput[];
1305
- conditional?: import(".").JSONSchema | undefined;
1306
- requireCompletionToContinue?: boolean | undefined;
1307
- })[];
1308
- };
1309
- }>;
1310
- declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1311
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1312
- id: string;
1313
- description: string;
1314
- defaultMessage: string;
1315
- }>;
1316
- }, {
1317
- type: z.ZodLiteral<"REJECT_CORRECTION">;
1318
- }>, "strip", z.ZodTypeAny, {
1319
- type: "REJECT_CORRECTION";
1320
- label: TranslationConfig;
1321
- }, {
1322
- type: "REJECT_CORRECTION";
1323
- label: {
1324
- id: string;
1325
- description: string;
1326
- defaultMessage: string;
1327
- };
1328
- }>;
1329
- declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1330
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1331
- id: string;
1332
- description: string;
1333
- defaultMessage: string;
1334
- }>;
1335
- }, {
1336
- type: z.ZodLiteral<"APPROVE_CORRECTION">;
1337
- }>, "strip", z.ZodTypeAny, {
1338
- type: "APPROVE_CORRECTION";
1339
- label: TranslationConfig;
1340
- }, {
1341
- type: "APPROVE_CORRECTION";
1342
- label: {
1343
- id: string;
1344
- description: string;
1345
- defaultMessage: string;
1346
- };
1347
- }>;
1348
- /** @knipignore */
1349
- export type AllActionConfigFields = typeof ReadActionConfig | typeof DeclareConfig | typeof ValidateConfig | typeof RejectDeclarationConfig | typeof ArchiveConfig | typeof RegisterConfig | typeof DeleteConfig | typeof PrintCertificateActionConfig | typeof RequestCorrectionConfig | typeof RejectCorrectionConfig | typeof ApproveCorrectionConfig;
1350
- /** @knipignore */
1351
- export type InferredActionConfig = z.infer<typeof ReadActionConfig> | z.infer<typeof DeclareConfig> | z.infer<typeof ValidateConfig> | z.infer<typeof RejectDeclarationConfig> | z.infer<typeof ArchiveConfig> | z.infer<typeof RegisterConfig> | z.infer<typeof DeleteConfig> | z.infer<typeof PrintCertificateActionConfig> | z.infer<typeof RequestCorrectionConfig> | z.infer<typeof RejectCorrectionConfig> | z.infer<typeof ApproveCorrectionConfig>;
1352
- export declare const ActionConfig: z.ZodDiscriminatedUnion<"type", AllActionConfigFields[]>;
1353
- export type ActionConfig = InferredActionConfig;
1354
- export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1355
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1356
- id: string;
1357
- description: string;
1358
- defaultMessage: string;
1359
- }>;
1360
- }, {
1361
- review: z.ZodObject<{
1362
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1363
- id: string;
1364
- description: string;
1365
- defaultMessage: string;
290
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
291
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
292
+ }, z.core.$strip>;
293
+ }, z.core.$strip>;
294
+ }, z.core.$strip>;
295
+ }, z.core.$strip>], "type">>;
296
+ }, z.core.$strip>;
297
+ }, z.core.$strip>, z.ZodObject<{
298
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
299
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
300
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
301
+ readonly INCOMPLETE: "incomplete";
302
+ readonly REJECTED: "rejected";
303
+ readonly CORRECTION_REQUESTED: "correction-requested";
304
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
305
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
306
+ }>]>, z.ZodString]>;
307
+ operation: z.ZodEnum<{
308
+ add: "add";
309
+ remove: "remove";
1366
310
  }>;
1367
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
1368
- }, "strip", z.ZodTypeAny, {
1369
- title: TranslationConfig;
1370
- fields: FieldConfig[];
1371
- }, {
1372
- title: {
1373
- id: string;
1374
- description: string;
1375
- defaultMessage: string;
1376
- };
1377
- fields: import("./FieldConfig").FieldConfigInput[];
1378
- }>;
1379
- deduplication: z.ZodOptional<z.ZodObject<{
1380
- id: z.ZodString;
1381
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1382
- id: string;
1383
- description: string;
1384
- defaultMessage: string;
311
+ conditional: z.ZodOptional<z.ZodAny>;
312
+ }, z.core.$strip>>>>;
313
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
314
+ icon: z.ZodOptional<z.ZodString>;
315
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
316
+ type: z.ZodLiteral<"SHOW">;
317
+ conditional: z.ZodAny;
318
+ }, z.core.$strip>, z.ZodObject<{
319
+ type: z.ZodLiteral<"ENABLE">;
320
+ conditional: z.ZodAny;
321
+ }, z.core.$strip>], "type">>>;
322
+ type: z.ZodLiteral<"EDIT">;
323
+ dialogCopy: z.ZodObject<{
324
+ notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
325
+ declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
326
+ register: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
327
+ }, z.core.$strip>;
328
+ }, z.core.$strip>, z.ZodObject<{
329
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
330
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
331
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
332
+ readonly INCOMPLETE: "incomplete";
333
+ readonly REJECTED: "rejected";
334
+ readonly CORRECTION_REQUESTED: "correction-requested";
335
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
336
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
337
+ }>]>, z.ZodString]>;
338
+ operation: z.ZodEnum<{
339
+ add: "add";
340
+ remove: "remove";
1385
341
  }>;
1386
- query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
1387
- }, "strip", z.ZodTypeAny, {
1388
- id: string;
1389
- query: import("./DeduplicationConfig").ClauseOutput;
1390
- label: TranslationConfig;
1391
- }, {
1392
- id: string;
1393
- query: import("./DeduplicationConfig").ClauseInput;
1394
- label: {
1395
- id: string;
1396
- description: string;
1397
- defaultMessage: string;
1398
- };
1399
- }>>;
1400
- }>, {
1401
- type: z.ZodLiteral<"DECLARE">;
1402
- }>, "strip", z.ZodTypeAny, {
1403
- type: "DECLARE";
1404
- label: TranslationConfig;
1405
- review: {
1406
- title: TranslationConfig;
1407
- fields: FieldConfig[];
1408
- };
1409
- deduplication?: {
1410
- id: string;
1411
- query: import("./DeduplicationConfig").ClauseOutput;
1412
- label: TranslationConfig;
1413
- } | undefined;
1414
- }, {
1415
- type: "DECLARE";
1416
- label: {
1417
- id: string;
1418
- description: string;
1419
- defaultMessage: string;
1420
- };
1421
- review: {
1422
- title: {
1423
- id: string;
1424
- description: string;
1425
- defaultMessage: string;
1426
- };
1427
- fields: import("./FieldConfig").FieldConfigInput[];
1428
- };
1429
- deduplication?: {
1430
- id: string;
1431
- query: import("./DeduplicationConfig").ClauseInput;
1432
- label: {
1433
- id: string;
1434
- description: string;
1435
- defaultMessage: string;
1436
- };
1437
- } | undefined;
1438
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1439
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1440
- id: string;
1441
- description: string;
1442
- defaultMessage: string;
1443
- }>;
1444
- }, {
1445
- review: z.ZodObject<{
1446
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1447
- id: string;
1448
- description: string;
1449
- defaultMessage: string;
342
+ conditional: z.ZodOptional<z.ZodAny>;
343
+ }, z.core.$strip>>>>;
344
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
345
+ icon: z.ZodOptional<z.ZodString>;
346
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
347
+ type: z.ZodLiteral<"SHOW">;
348
+ conditional: z.ZodAny;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ type: z.ZodLiteral<"ENABLE">;
351
+ conditional: z.ZodAny;
352
+ }, z.core.$strip>], "type">>>;
353
+ type: z.ZodLiteral<"ARCHIVE">;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
356
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
357
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
358
+ readonly INCOMPLETE: "incomplete";
359
+ readonly REJECTED: "rejected";
360
+ readonly CORRECTION_REQUESTED: "correction-requested";
361
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
362
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
363
+ }>]>, z.ZodString]>;
364
+ operation: z.ZodEnum<{
365
+ add: "add";
366
+ remove: "remove";
367
+ }>;
368
+ conditional: z.ZodOptional<z.ZodAny>;
369
+ }, z.core.$strip>>>>;
370
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
371
+ icon: z.ZodOptional<z.ZodString>;
372
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ type: z.ZodLiteral<"SHOW">;
374
+ conditional: z.ZodAny;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ type: z.ZodLiteral<"ENABLE">;
377
+ conditional: z.ZodAny;
378
+ }, z.core.$strip>], "type">>>;
379
+ type: z.ZodLiteral<"CUSTOM">;
380
+ customActionType: z.ZodString;
381
+ form: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
382
+ auditHistoryLabel: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
383
+ }, z.core.$strip>], "type">;
384
+ export type ActionConfig = z.infer<typeof ActionConfig>;
385
+ export declare const actionConfigTypes: Set<ActionConfigTypes>;
386
+ /**
387
+ * Action types that come specifically from the country configuration.
388
+ *
389
+ * These are not the same as the broader workflow `action.type` values.
390
+ * `ActionConfigTypes` includes only the action kinds that can be defined
391
+ * in the country configuration (e.g. DECLARE, VALIDATE, CUSTOM), and
392
+ * excludes workflow-only types such as CREATE or NOTIFY.
393
+ */
394
+ export type ActionConfigTypes = ActionConfig['type'];
395
+ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
396
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
397
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
398
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
399
+ readonly INCOMPLETE: "incomplete";
400
+ readonly REJECTED: "rejected";
401
+ readonly CORRECTION_REQUESTED: "correction-requested";
402
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
403
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
404
+ }>]>, z.ZodString]>;
405
+ operation: z.ZodEnum<{
406
+ add: "add";
407
+ remove: "remove";
1450
408
  }>;
1451
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
1452
- }, "strip", z.ZodTypeAny, {
1453
- title: TranslationConfig;
1454
- fields: FieldConfig[];
1455
- }, {
1456
- title: {
1457
- id: string;
1458
- description: string;
1459
- defaultMessage: string;
1460
- };
1461
- fields: import("./FieldConfig").FieldConfigInput[];
1462
- }>;
409
+ conditional: z.ZodOptional<z.ZodAny>;
410
+ }, z.core.$strip>>>>;
411
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
412
+ icon: z.ZodOptional<z.ZodString>;
413
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
414
+ type: z.ZodLiteral<"SHOW">;
415
+ conditional: z.ZodAny;
416
+ }, z.core.$strip>, z.ZodObject<{
417
+ type: z.ZodLiteral<"ENABLE">;
418
+ conditional: z.ZodAny;
419
+ }, z.core.$strip>], "type">>>;
1463
420
  deduplication: z.ZodOptional<z.ZodObject<{
1464
421
  id: z.ZodString;
1465
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1466
- id: string;
1467
- description: string;
1468
- defaultMessage: string;
1469
- }>;
1470
- query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
1471
- }, "strip", z.ZodTypeAny, {
1472
- id: string;
1473
- query: import("./DeduplicationConfig").ClauseOutput;
1474
- label: TranslationConfig;
1475
- }, {
1476
- id: string;
1477
- query: import("./DeduplicationConfig").ClauseInput;
1478
- label: {
1479
- id: string;
1480
- description: string;
1481
- defaultMessage: string;
1482
- };
1483
- }>>;
1484
- }>, {
1485
- type: z.ZodLiteral<"VALIDATE">;
1486
- }>, "strip", z.ZodTypeAny, {
1487
- type: "VALIDATE";
1488
- label: TranslationConfig;
1489
- review: {
1490
- title: TranslationConfig;
1491
- fields: FieldConfig[];
1492
- };
1493
- deduplication?: {
1494
- id: string;
1495
- query: import("./DeduplicationConfig").ClauseOutput;
1496
- label: TranslationConfig;
1497
- } | undefined;
1498
- }, {
1499
- type: "VALIDATE";
1500
- label: {
1501
- id: string;
1502
- description: string;
1503
- defaultMessage: string;
1504
- };
1505
- review: {
1506
- title: {
1507
- id: string;
1508
- description: string;
1509
- defaultMessage: string;
1510
- };
1511
- fields: import("./FieldConfig").FieldConfigInput[];
1512
- };
1513
- deduplication?: {
1514
- id: string;
1515
- query: import("./DeduplicationConfig").ClauseInput;
1516
- label: {
1517
- id: string;
1518
- description: string;
1519
- defaultMessage: string;
1520
- };
1521
- } | undefined;
1522
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1523
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1524
- id: string;
1525
- description: string;
1526
- defaultMessage: string;
1527
- }>;
1528
- }, {
422
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
423
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
424
+ }, z.core.$strip>>;
425
+ type: z.ZodLiteral<"DECLARE">;
1529
426
  review: z.ZodObject<{
1530
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1531
- id: string;
1532
- description: string;
1533
- defaultMessage: string;
427
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
428
+ fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
429
+ }, z.core.$strip>;
430
+ dialogCopy: z.ZodOptional<z.ZodObject<{
431
+ notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
432
+ declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
433
+ register: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
434
+ }, z.core.$strip>>;
435
+ }, z.core.$strip>, z.ZodObject<{
436
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
437
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
438
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
439
+ readonly INCOMPLETE: "incomplete";
440
+ readonly REJECTED: "rejected";
441
+ readonly CORRECTION_REQUESTED: "correction-requested";
442
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
443
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
444
+ }>]>, z.ZodString]>;
445
+ operation: z.ZodEnum<{
446
+ add: "add";
447
+ remove: "remove";
1534
448
  }>;
1535
- fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
1536
- }, "strip", z.ZodTypeAny, {
1537
- title: TranslationConfig;
1538
- fields: FieldConfig[];
1539
- }, {
1540
- title: {
1541
- id: string;
1542
- description: string;
1543
- defaultMessage: string;
1544
- };
1545
- fields: import("./FieldConfig").FieldConfigInput[];
1546
- }>;
449
+ conditional: z.ZodOptional<z.ZodAny>;
450
+ }, z.core.$strip>>>>;
451
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
452
+ icon: z.ZodOptional<z.ZodString>;
453
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
454
+ type: z.ZodLiteral<"SHOW">;
455
+ conditional: z.ZodAny;
456
+ }, z.core.$strip>, z.ZodObject<{
457
+ type: z.ZodLiteral<"ENABLE">;
458
+ conditional: z.ZodAny;
459
+ }, z.core.$strip>], "type">>>;
1547
460
  deduplication: z.ZodOptional<z.ZodObject<{
1548
461
  id: z.ZodString;
1549
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1550
- id: string;
1551
- description: string;
1552
- defaultMessage: string;
1553
- }>;
1554
- query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
1555
- }, "strip", z.ZodTypeAny, {
1556
- id: string;
1557
- query: import("./DeduplicationConfig").ClauseOutput;
1558
- label: TranslationConfig;
1559
- }, {
1560
- id: string;
1561
- query: import("./DeduplicationConfig").ClauseInput;
1562
- label: {
1563
- id: string;
1564
- description: string;
1565
- defaultMessage: string;
1566
- };
1567
- }>>;
1568
- }>, {
462
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
463
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
464
+ }, z.core.$strip>>;
1569
465
  type: z.ZodLiteral<"REGISTER">;
1570
- }>, "strip", z.ZodTypeAny, {
1571
- type: "REGISTER";
1572
- label: TranslationConfig;
1573
- review: {
1574
- title: TranslationConfig;
1575
- fields: FieldConfig[];
1576
- };
1577
- deduplication?: {
1578
- id: string;
1579
- query: import("./DeduplicationConfig").ClauseOutput;
1580
- label: TranslationConfig;
1581
- } | undefined;
1582
- }, {
1583
- type: "REGISTER";
1584
- label: {
1585
- id: string;
1586
- description: string;
1587
- defaultMessage: string;
1588
- };
1589
- review: {
1590
- title: {
1591
- id: string;
1592
- description: string;
1593
- defaultMessage: string;
1594
- };
1595
- fields: import("./FieldConfig").FieldConfigInput[];
1596
- };
1597
- deduplication?: {
1598
- id: string;
1599
- query: import("./DeduplicationConfig").ClauseInput;
1600
- label: {
1601
- id: string;
1602
- description: string;
1603
- defaultMessage: string;
1604
- };
1605
- } | undefined;
1606
- }>]>;
466
+ }, z.core.$strip>], "type">;
1607
467
  export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
1608
468
  export {};
1609
469
  //# sourceMappingURL=ActionConfig.d.ts.map