@opencrvs/toolkit 2.0.0 → 2.1.0-rc.0066f38
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.
- package/README.md +15 -0
- package/build.sh +5 -4
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +29 -6
- package/dist/cli.js +3186 -4921
- package/dist/commons/api/router.d.ts +623 -20
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/events/ActionConfig.d.ts +237 -2
- package/dist/commons/events/ActionDocument.d.ts +44 -0
- package/dist/commons/events/ActionInput.d.ts +26 -0
- package/dist/commons/events/ActionType.d.ts +6 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -0
- package/dist/commons/events/AuditLog.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +42 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventConfig.d.ts +2 -0
- package/dist/commons/events/EventDocument.d.ts +22 -0
- package/dist/commons/events/EventIndex.d.ts +25 -0
- package/dist/commons/events/EventMetadata.d.ts +26 -0
- package/dist/commons/events/FieldConfig.d.ts +15 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +44 -2
- package/dist/commons/events/locations.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -0
- package/dist/commons/events/state/index.d.ts +8 -0
- package/dist/commons/events/state/utils.d.ts +9 -0
- package/dist/commons/events/test.utils.d.ts +9 -1
- package/dist/commons/events/utils.d.ts +23 -1
- package/dist/conditionals/index.js +12 -5
- package/dist/environment/custom-types.d.ts +33 -0
- package/dist/environment/custom-types.d.ts.map +1 -0
- package/dist/environment/custom-types.js +12 -0
- package/dist/environment/derived-variables.d.ts +134 -0
- package/dist/environment/derived-variables.d.ts.map +1 -0
- package/dist/environment/derived-variables.js +169 -0
- package/dist/environment/editor-questions.d.ts +4 -0
- package/dist/environment/editor-questions.d.ts.map +1 -0
- package/dist/environment/editor-questions.js +67 -0
- package/dist/environment/git.d.ts +5 -0
- package/dist/environment/git.d.ts.map +1 -0
- package/dist/environment/git.js +38 -0
- package/dist/environment/github.d.ts +26 -0
- package/dist/environment/github.d.ts.map +1 -0
- package/dist/environment/github.js +247 -0
- package/dist/environment/index.d.ts +5 -0
- package/dist/environment/index.d.ts.map +1 -0
- package/dist/environment/index.js +71 -0
- package/dist/environment/logger.d.ts +15 -0
- package/dist/environment/logger.d.ts.map +1 -0
- package/dist/environment/logger.js +25 -0
- package/dist/environment/manage-users.d.ts +11 -0
- package/dist/environment/manage-users.d.ts.map +1 -0
- package/dist/environment/manage-users.js +497 -0
- package/dist/environment/questions-helper.d.ts +15 -0
- package/dist/environment/questions-helper.d.ts.map +1 -0
- package/dist/environment/questions-helper.js +70 -0
- package/dist/environment/questions.d.ts +199 -0
- package/dist/environment/questions.d.ts.map +1 -0
- package/dist/environment/questions.js +412 -0
- package/dist/environment/setup-environment.d.ts +2 -0
- package/dist/environment/setup-environment.d.ts.map +1 -0
- package/dist/environment/setup-environment.js +794 -0
- package/dist/environment/ssh-keygen.d.ts +5 -0
- package/dist/environment/ssh-keygen.d.ts.map +1 -0
- package/dist/environment/ssh-keygen.js +21 -0
- package/dist/environment/swarm-to-k8s.d.ts +2 -0
- package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
- package/dist/environment/swarm-to-k8s.js +173 -0
- package/dist/environment/templates.d.ts +27 -0
- package/dist/environment/templates.d.ts.map +1 -0
- package/dist/environment/templates.js +163 -0
- package/dist/environment/update-workflows.d.ts +2 -0
- package/dist/environment/update-workflows.d.ts.map +1 -0
- package/dist/environment/update-workflows.js +169 -0
- package/dist/environment/users.d.ts +2 -0
- package/dist/environment/users.d.ts.map +1 -0
- package/dist/environment/users.js +112 -0
- package/dist/environment/utils.d.ts +18 -0
- package/dist/environment/utils.d.ts.map +1 -0
- package/dist/environment/utils.js +100 -0
- package/dist/events/index.js +272 -39
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
- package/dist/migrations/v2.0/index.js +88 -5139
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
- package/dist/migrations/v2.1/index.d.ts +6 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -0
- package/dist/migrations/v2.1/index.js +218 -0
- package/dist/notification/index.js +197 -28
- package/dist/scopes/index.d.ts +96 -2
- package/dist/scopes/index.js +12 -5
- package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
- package/dist/templates/charts-values/dependencies/values.yaml +83 -0
- package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
- package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
- package/dist/templates/charts-values/traefik/values.yaml +115 -0
- package/dist/templates/inventory/inventory.template.yml +100 -0
- package/dist/templates/inventory/production.example.yml +77 -0
- package/dist/templates/inventory/qa.example.yml +48 -0
- package/opencrvs-toolkit-2.1.0-rc.0066f38.tgz +0 -0
- package/package.json +15 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0.tgz +0 -0
|
@@ -93,17 +93,17 @@ export declare const user: typeof userSerializer & {
|
|
|
93
93
|
};
|
|
94
94
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
95
95
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
96
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
97
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
96
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
97
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
101
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
102
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
101
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
102
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
103
103
|
}) => {
|
|
104
104
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
105
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
106
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
105
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
106
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -85,6 +85,85 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
85
85
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
86
86
|
}, z.core.$strip>;
|
|
87
87
|
conditionals: z.ZodOptional<z.ZodNever>;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
90
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
91
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
92
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"SHOW">;
|
|
94
|
+
conditional: z.ZodAny;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
97
|
+
conditional: z.ZodAny;
|
|
98
|
+
}, z.core.$strip>], "type">>>;
|
|
99
|
+
type: z.ZodLiteral<"ASSIGN">;
|
|
100
|
+
flags: z.ZodOptional<z.ZodNever>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
103
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
104
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
105
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
106
|
+
type: z.ZodLiteral<"SHOW">;
|
|
107
|
+
conditional: z.ZodAny;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
110
|
+
conditional: z.ZodAny;
|
|
111
|
+
}, z.core.$strip>], "type">>>;
|
|
112
|
+
type: z.ZodLiteral<"UNASSIGN">;
|
|
113
|
+
flags: z.ZodOptional<z.ZodNever>;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
116
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
118
|
+
readonly INCOMPLETE: "incomplete";
|
|
119
|
+
readonly REJECTED: "rejected";
|
|
120
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
121
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
122
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
123
|
+
}>]>, z.ZodString]>;
|
|
124
|
+
operation: z.ZodEnum<{
|
|
125
|
+
add: "add";
|
|
126
|
+
remove: "remove";
|
|
127
|
+
}>;
|
|
128
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
129
|
+
}, z.core.$strip>>>>;
|
|
130
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
131
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
132
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"SHOW">;
|
|
134
|
+
conditional: z.ZodAny;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
137
|
+
conditional: z.ZodAny;
|
|
138
|
+
}, z.core.$strip>], "type">>>;
|
|
139
|
+
type: z.ZodLiteral<"DELETE">;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
142
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
144
|
+
readonly INCOMPLETE: "incomplete";
|
|
145
|
+
readonly REJECTED: "rejected";
|
|
146
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
147
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
148
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
149
|
+
}>]>, z.ZodString]>;
|
|
150
|
+
operation: z.ZodEnum<{
|
|
151
|
+
add: "add";
|
|
152
|
+
remove: "remove";
|
|
153
|
+
}>;
|
|
154
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
155
|
+
}, z.core.$strip>>>>;
|
|
156
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
157
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
158
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
159
|
+
type: z.ZodLiteral<"SHOW">;
|
|
160
|
+
conditional: z.ZodAny;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
163
|
+
conditional: z.ZodAny;
|
|
164
|
+
}, z.core.$strip>], "type">>>;
|
|
165
|
+
type: z.ZodLiteral<"NOTIFY">;
|
|
166
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
88
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
168
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
90
169
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -120,11 +199,84 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
120
199
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
121
200
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
122
201
|
}, z.core.$strip>;
|
|
202
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
123
203
|
dialogCopy: z.ZodOptional<z.ZodObject<{
|
|
124
204
|
notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
125
205
|
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
126
206
|
register: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
127
207
|
}, z.core.$strip>>;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
210
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
211
|
+
readonly INCOMPLETE: "incomplete";
|
|
212
|
+
readonly REJECTED: "rejected";
|
|
213
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
214
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
215
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
216
|
+
}>]>, z.ZodString]>;
|
|
217
|
+
operation: z.ZodEnum<{
|
|
218
|
+
add: "add";
|
|
219
|
+
remove: "remove";
|
|
220
|
+
}>;
|
|
221
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
222
|
+
}, z.core.$strip>>>>;
|
|
223
|
+
type: z.ZodLiteral<"DUPLICATE_DETECTED">;
|
|
224
|
+
label: z.ZodOptional<z.ZodNever>;
|
|
225
|
+
supportingCopy: z.ZodOptional<z.ZodNever>;
|
|
226
|
+
icon: z.ZodOptional<z.ZodNever>;
|
|
227
|
+
conditionals: z.ZodOptional<z.ZodNever>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
230
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
231
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
232
|
+
readonly INCOMPLETE: "incomplete";
|
|
233
|
+
readonly REJECTED: "rejected";
|
|
234
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
235
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
236
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
237
|
+
}>]>, z.ZodString]>;
|
|
238
|
+
operation: z.ZodEnum<{
|
|
239
|
+
add: "add";
|
|
240
|
+
remove: "remove";
|
|
241
|
+
}>;
|
|
242
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
243
|
+
}, z.core.$strip>>>>;
|
|
244
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
245
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
246
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
247
|
+
type: z.ZodLiteral<"SHOW">;
|
|
248
|
+
conditional: z.ZodAny;
|
|
249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
251
|
+
conditional: z.ZodAny;
|
|
252
|
+
}, z.core.$strip>], "type">>>;
|
|
253
|
+
type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
|
|
254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
255
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
256
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
257
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
258
|
+
readonly INCOMPLETE: "incomplete";
|
|
259
|
+
readonly REJECTED: "rejected";
|
|
260
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
261
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
262
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
263
|
+
}>]>, z.ZodString]>;
|
|
264
|
+
operation: z.ZodEnum<{
|
|
265
|
+
add: "add";
|
|
266
|
+
remove: "remove";
|
|
267
|
+
}>;
|
|
268
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
269
|
+
}, z.core.$strip>>>>;
|
|
270
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
271
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
272
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
273
|
+
type: z.ZodLiteral<"SHOW">;
|
|
274
|
+
conditional: z.ZodAny;
|
|
275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
277
|
+
conditional: z.ZodAny;
|
|
278
|
+
}, z.core.$strip>], "type">>>;
|
|
279
|
+
type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
|
|
128
280
|
}, z.core.$strip>, z.ZodObject<{
|
|
129
281
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
130
282
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -151,6 +303,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
151
303
|
conditional: z.ZodAny;
|
|
152
304
|
}, z.core.$strip>], "type">>>;
|
|
153
305
|
type: z.ZodLiteral<"REJECT">;
|
|
306
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
154
307
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
308
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
156
309
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -182,6 +335,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
335
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
183
336
|
}, z.core.$strip>>;
|
|
184
337
|
type: z.ZodLiteral<"REGISTER">;
|
|
338
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
185
339
|
}, z.core.$strip>, z.ZodObject<{
|
|
186
340
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
187
341
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -294,6 +448,58 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
294
448
|
}, z.core.$strip>;
|
|
295
449
|
}, z.core.$strip>], "type">>;
|
|
296
450
|
}, z.core.$strip>;
|
|
451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
452
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
453
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
455
|
+
readonly INCOMPLETE: "incomplete";
|
|
456
|
+
readonly REJECTED: "rejected";
|
|
457
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
458
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
459
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
460
|
+
}>]>, z.ZodString]>;
|
|
461
|
+
operation: z.ZodEnum<{
|
|
462
|
+
add: "add";
|
|
463
|
+
remove: "remove";
|
|
464
|
+
}>;
|
|
465
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
466
|
+
}, z.core.$strip>>>>;
|
|
467
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
468
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
469
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
470
|
+
type: z.ZodLiteral<"SHOW">;
|
|
471
|
+
conditional: z.ZodAny;
|
|
472
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
473
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
474
|
+
conditional: z.ZodAny;
|
|
475
|
+
}, z.core.$strip>], "type">>>;
|
|
476
|
+
type: z.ZodLiteral<"APPROVE_CORRECTION">;
|
|
477
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
478
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
479
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
480
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
481
|
+
readonly INCOMPLETE: "incomplete";
|
|
482
|
+
readonly REJECTED: "rejected";
|
|
483
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
484
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
485
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
486
|
+
}>]>, z.ZodString]>;
|
|
487
|
+
operation: z.ZodEnum<{
|
|
488
|
+
add: "add";
|
|
489
|
+
remove: "remove";
|
|
490
|
+
}>;
|
|
491
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
492
|
+
}, z.core.$strip>>>>;
|
|
493
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
494
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
495
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
496
|
+
type: z.ZodLiteral<"SHOW">;
|
|
497
|
+
conditional: z.ZodAny;
|
|
498
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
499
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
500
|
+
conditional: z.ZodAny;
|
|
501
|
+
}, z.core.$strip>], "type">>>;
|
|
502
|
+
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
|
297
503
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
504
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
299
505
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -351,6 +557,33 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
351
557
|
conditional: z.ZodAny;
|
|
352
558
|
}, z.core.$strip>], "type">>>;
|
|
353
559
|
type: z.ZodLiteral<"ARCHIVE">;
|
|
560
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
563
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
564
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
565
|
+
readonly INCOMPLETE: "incomplete";
|
|
566
|
+
readonly REJECTED: "rejected";
|
|
567
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
568
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
569
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
570
|
+
}>]>, z.ZodString]>;
|
|
571
|
+
operation: z.ZodEnum<{
|
|
572
|
+
add: "add";
|
|
573
|
+
remove: "remove";
|
|
574
|
+
}>;
|
|
575
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
576
|
+
}, z.core.$strip>>>>;
|
|
577
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
578
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
579
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
580
|
+
type: z.ZodLiteral<"SHOW">;
|
|
581
|
+
conditional: z.ZodAny;
|
|
582
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
583
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
584
|
+
conditional: z.ZodAny;
|
|
585
|
+
}, z.core.$strip>], "type">>>;
|
|
586
|
+
type: z.ZodLiteral<"UNARCHIVE">;
|
|
354
587
|
}, z.core.$strip>, z.ZodObject<{
|
|
355
588
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
356
589
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -388,8 +621,8 @@ export declare const actionConfigTypes: Set<ActionConfigTypes>;
|
|
|
388
621
|
*
|
|
389
622
|
* These are not the same as the broader workflow `action.type` values.
|
|
390
623
|
* `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
|
|
624
|
+
* in the country configuration (e.g. NOTIFY, DECLARE, VALIDATE, CUSTOM), and
|
|
625
|
+
* excludes workflow-only types such as CREATE.
|
|
393
626
|
*/
|
|
394
627
|
export type ActionConfigTypes = ActionConfig['type'];
|
|
395
628
|
export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -427,6 +660,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
427
660
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
428
661
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
429
662
|
}, z.core.$strip>;
|
|
663
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
430
664
|
dialogCopy: z.ZodOptional<z.ZodObject<{
|
|
431
665
|
notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
432
666
|
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
@@ -463,6 +697,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
463
697
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
464
698
|
}, z.core.$strip>>;
|
|
465
699
|
type: z.ZodLiteral<"REGISTER">;
|
|
700
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
466
701
|
}, z.core.$strip>], "type">;
|
|
467
702
|
export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
|
|
468
703
|
export {};
|
|
@@ -388,6 +388,27 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
388
388
|
content: z.ZodObject<{
|
|
389
389
|
reason: z.ZodString;
|
|
390
390
|
}, z.core.$strip>;
|
|
391
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
392
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
393
|
+
transactionId: z.ZodString;
|
|
394
|
+
createdByUserType: z.ZodEnum<{
|
|
395
|
+
user: "user";
|
|
396
|
+
system: "system";
|
|
397
|
+
}>;
|
|
398
|
+
createdAt: z.ZodString;
|
|
399
|
+
createdBy: z.ZodString;
|
|
400
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
401
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
402
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
403
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
|
|
404
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
|
|
405
|
+
status: z.ZodEnum<{
|
|
406
|
+
Requested: "Requested";
|
|
407
|
+
Accepted: "Accepted";
|
|
408
|
+
Rejected: "Rejected";
|
|
409
|
+
}>;
|
|
410
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
411
|
+
type: z.ZodLiteral<"UNARCHIVE">;
|
|
391
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
392
413
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
393
414
|
transactionId: z.ZodString;
|
|
@@ -680,6 +701,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<{
|
|
|
680
701
|
EDIT: "EDIT";
|
|
681
702
|
REJECT: "REJECT";
|
|
682
703
|
ARCHIVE: "ARCHIVE";
|
|
704
|
+
UNARCHIVE: "UNARCHIVE";
|
|
683
705
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
684
706
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
685
707
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -829,6 +851,27 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
829
851
|
content: z.ZodObject<{
|
|
830
852
|
reason: z.ZodString;
|
|
831
853
|
}, z.core.$strip>;
|
|
854
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
855
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
856
|
+
transactionId: z.ZodString;
|
|
857
|
+
createdByUserType: z.ZodEnum<{
|
|
858
|
+
user: "user";
|
|
859
|
+
system: "system";
|
|
860
|
+
}>;
|
|
861
|
+
createdAt: z.ZodString;
|
|
862
|
+
createdBy: z.ZodString;
|
|
863
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
864
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
865
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
866
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
|
|
867
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
|
|
868
|
+
status: z.ZodEnum<{
|
|
869
|
+
Requested: "Requested";
|
|
870
|
+
Accepted: "Accepted";
|
|
871
|
+
Rejected: "Rejected";
|
|
872
|
+
}>;
|
|
873
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
874
|
+
type: z.ZodLiteral<"UNARCHIVE">;
|
|
832
875
|
}, z.core.$strip>, z.ZodObject<{
|
|
833
876
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
834
877
|
transactionId: z.ZodString;
|
|
@@ -1119,6 +1162,7 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1119
1162
|
EDIT: "EDIT";
|
|
1120
1163
|
REJECT: "REJECT";
|
|
1121
1164
|
ARCHIVE: "ARCHIVE";
|
|
1165
|
+
UNARCHIVE: "UNARCHIVE";
|
|
1122
1166
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
1123
1167
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
1124
1168
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -171,6 +171,20 @@ export declare const ArchiveActionInput: z.ZodObject<{
|
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
}, z.core.$strip>;
|
|
173
173
|
export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
|
|
174
|
+
export declare const UnarchiveActionInput: z.ZodObject<{
|
|
175
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
176
|
+
transactionId: z.ZodString;
|
|
177
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
178
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
179
|
+
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
180
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
184
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
185
|
+
type: z.ZodDefault<z.ZodLiteral<"UNARCHIVE">>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export type UnarchiveActionInput = z.infer<typeof UnarchiveActionInput>;
|
|
174
188
|
export declare const AssignActionInput: z.ZodObject<{
|
|
175
189
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
176
190
|
transactionId: z.ZodString;
|
|
@@ -416,6 +430,18 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
416
430
|
content: z.ZodObject<{
|
|
417
431
|
reason: z.ZodString;
|
|
418
432
|
}, z.core.$strip>;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
435
|
+
transactionId: z.ZodString;
|
|
436
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
437
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
438
|
+
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
439
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
440
|
+
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
+
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
+
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
443
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
444
|
+
type: z.ZodDefault<z.ZodLiteral<"UNARCHIVE">>;
|
|
419
445
|
}, z.core.$strip>, z.ZodObject<{
|
|
420
446
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
421
447
|
transactionId: z.ZodString;
|
|
@@ -14,6 +14,7 @@ export declare const ActionType: {
|
|
|
14
14
|
readonly MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
15
15
|
readonly MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
16
16
|
readonly ARCHIVE: "ARCHIVE";
|
|
17
|
+
readonly UNARCHIVE: "UNARCHIVE";
|
|
17
18
|
readonly PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
18
19
|
readonly REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
19
20
|
readonly REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -24,7 +25,7 @@ export declare const ActionType: {
|
|
|
24
25
|
readonly CUSTOM: "CUSTOM";
|
|
25
26
|
};
|
|
26
27
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
27
|
-
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "EDIT", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION", "CUSTOM"];
|
|
28
|
+
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "EDIT", "REGISTER", "REJECT", "ARCHIVE", "UNARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION", "CUSTOM"];
|
|
28
29
|
/** Testing building types from enums as an alternative */
|
|
29
30
|
export declare const ActionTypes: z.ZodEnum<{
|
|
30
31
|
CUSTOM: "CUSTOM";
|
|
@@ -39,6 +40,7 @@ export declare const ActionTypes: z.ZodEnum<{
|
|
|
39
40
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
40
41
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
41
42
|
ARCHIVE: "ARCHIVE";
|
|
43
|
+
UNARCHIVE: "UNARCHIVE";
|
|
42
44
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
43
45
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
44
46
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -83,6 +85,7 @@ export declare const annotationActions: z.ZodEnum<{
|
|
|
83
85
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
84
86
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
85
87
|
ARCHIVE: "ARCHIVE";
|
|
88
|
+
UNARCHIVE: "UNARCHIVE";
|
|
86
89
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
87
90
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
88
91
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -105,6 +108,7 @@ export declare const writeActions: z.ZodEnum<{
|
|
|
105
108
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
106
109
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
107
110
|
ARCHIVE: "ARCHIVE";
|
|
111
|
+
UNARCHIVE: "UNARCHIVE";
|
|
108
112
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
109
113
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
110
114
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
@@ -119,6 +123,7 @@ export declare const WorkqueueActionType: z.ZodEnum<{
|
|
|
119
123
|
REJECT: "REJECT";
|
|
120
124
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
121
125
|
ARCHIVE: "ARCHIVE";
|
|
126
|
+
UNARCHIVE: "UNARCHIVE";
|
|
122
127
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
123
128
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
124
129
|
READ: "READ";
|
|
@@ -106,6 +106,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
106
106
|
"record.edit": "record.edit";
|
|
107
107
|
"record.reject": "record.reject";
|
|
108
108
|
"record.archive": "record.archive";
|
|
109
|
+
"record.unarchive": "record.unarchive";
|
|
109
110
|
"record.review-duplicates": "record.review-duplicates";
|
|
110
111
|
"record.register": "record.register";
|
|
111
112
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -139,6 +140,8 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
139
140
|
role: "role";
|
|
140
141
|
event: "event";
|
|
141
142
|
placeOfEvent: "placeOfEvent";
|
|
143
|
+
notifiedIn: "notifiedIn";
|
|
144
|
+
notifiedBy: "notifiedBy";
|
|
142
145
|
declaredIn: "declaredIn";
|
|
143
146
|
declaredBy: "declaredBy";
|
|
144
147
|
registeredIn: "registeredIn";
|
|
@@ -283,6 +286,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
283
286
|
"record.edit": "record.edit";
|
|
284
287
|
"record.reject": "record.reject";
|
|
285
288
|
"record.archive": "record.archive";
|
|
289
|
+
"record.unarchive": "record.unarchive";
|
|
286
290
|
"record.review-duplicates": "record.review-duplicates";
|
|
287
291
|
"record.register": "record.register";
|
|
288
292
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -316,6 +320,8 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
316
320
|
role: "role";
|
|
317
321
|
event: "event";
|
|
318
322
|
placeOfEvent: "placeOfEvent";
|
|
323
|
+
notifiedIn: "notifiedIn";
|
|
324
|
+
notifiedBy: "notifiedBy";
|
|
319
325
|
declaredIn: "declaredIn";
|
|
320
326
|
declaredBy: "declaredBy";
|
|
321
327
|
registeredIn: "registeredIn";
|
|
@@ -436,6 +442,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
436
442
|
"record.edit": "record.edit";
|
|
437
443
|
"record.reject": "record.reject";
|
|
438
444
|
"record.archive": "record.archive";
|
|
445
|
+
"record.unarchive": "record.unarchive";
|
|
439
446
|
"record.review-duplicates": "record.review-duplicates";
|
|
440
447
|
"record.register": "record.register";
|
|
441
448
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -469,6 +476,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
469
476
|
role: "role";
|
|
470
477
|
event: "event";
|
|
471
478
|
placeOfEvent: "placeOfEvent";
|
|
479
|
+
notifiedIn: "notifiedIn";
|
|
480
|
+
notifiedBy: "notifiedBy";
|
|
472
481
|
declaredIn: "declaredIn";
|
|
473
482
|
declaredBy: "declaredBy";
|
|
474
483
|
registeredIn: "registeredIn";
|
|
@@ -581,6 +590,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
581
590
|
"record.edit": "record.edit";
|
|
582
591
|
"record.reject": "record.reject";
|
|
583
592
|
"record.archive": "record.archive";
|
|
593
|
+
"record.unarchive": "record.unarchive";
|
|
584
594
|
"record.review-duplicates": "record.review-duplicates";
|
|
585
595
|
"record.register": "record.register";
|
|
586
596
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -614,6 +624,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
614
624
|
role: "role";
|
|
615
625
|
event: "event";
|
|
616
626
|
placeOfEvent: "placeOfEvent";
|
|
627
|
+
notifiedIn: "notifiedIn";
|
|
628
|
+
notifiedBy: "notifiedBy";
|
|
617
629
|
declaredIn: "declaredIn";
|
|
618
630
|
declaredBy: "declaredBy";
|
|
619
631
|
registeredIn: "registeredIn";
|
|
@@ -737,6 +749,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
737
749
|
"record.edit": "record.edit";
|
|
738
750
|
"record.reject": "record.reject";
|
|
739
751
|
"record.archive": "record.archive";
|
|
752
|
+
"record.unarchive": "record.unarchive";
|
|
740
753
|
"record.review-duplicates": "record.review-duplicates";
|
|
741
754
|
"record.register": "record.register";
|
|
742
755
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -770,6 +783,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
770
783
|
role: "role";
|
|
771
784
|
event: "event";
|
|
772
785
|
placeOfEvent: "placeOfEvent";
|
|
786
|
+
notifiedIn: "notifiedIn";
|
|
787
|
+
notifiedBy: "notifiedBy";
|
|
773
788
|
declaredIn: "declaredIn";
|
|
774
789
|
declaredBy: "declaredBy";
|
|
775
790
|
registeredIn: "registeredIn";
|
|
@@ -882,6 +897,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
882
897
|
"record.edit": "record.edit";
|
|
883
898
|
"record.reject": "record.reject";
|
|
884
899
|
"record.archive": "record.archive";
|
|
900
|
+
"record.unarchive": "record.unarchive";
|
|
885
901
|
"record.review-duplicates": "record.review-duplicates";
|
|
886
902
|
"record.register": "record.register";
|
|
887
903
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -915,6 +931,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
915
931
|
role: "role";
|
|
916
932
|
event: "event";
|
|
917
933
|
placeOfEvent: "placeOfEvent";
|
|
934
|
+
notifiedIn: "notifiedIn";
|
|
935
|
+
notifiedBy: "notifiedBy";
|
|
918
936
|
declaredIn: "declaredIn";
|
|
919
937
|
declaredBy: "declaredBy";
|
|
920
938
|
registeredIn: "registeredIn";
|
|
@@ -18,6 +18,7 @@ declare const EventActionEntrySchema: z.ZodObject<{
|
|
|
18
18
|
"event.actions.unassign.request": "event.actions.unassign.request";
|
|
19
19
|
"event.actions.read.request": "event.actions.read.request";
|
|
20
20
|
"event.actions.archive.request": "event.actions.archive.request";
|
|
21
|
+
"event.actions.unarchive.request": "event.actions.unarchive.request";
|
|
21
22
|
"event.actions.reinstate.request": "event.actions.reinstate.request";
|
|
22
23
|
"event.actions.print_certificate.request": "event.actions.print_certificate.request";
|
|
23
24
|
"event.actions.correction.request.request": "event.actions.correction.request.request";
|
|
@@ -153,6 +154,7 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
153
154
|
"event.actions.unassign.request": "event.actions.unassign.request";
|
|
154
155
|
"event.actions.read.request": "event.actions.read.request";
|
|
155
156
|
"event.actions.archive.request": "event.actions.archive.request";
|
|
157
|
+
"event.actions.unarchive.request": "event.actions.unarchive.request";
|
|
156
158
|
"event.actions.reinstate.request": "event.actions.reinstate.request";
|
|
157
159
|
"event.actions.print_certificate.request": "event.actions.print_certificate.request";
|
|
158
160
|
"event.actions.correction.request.request": "event.actions.correction.request.request";
|