@opencrvs/toolkit 2.1.2 → 2.2.0-rc.19ec10b
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/build.sh +9 -14
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +57 -14
- package/dist/authentication/index.d.ts +2 -1
- package/dist/authentication/index.js +34 -14
- package/dist/cli.js +1491 -2020
- package/dist/commons/api/router.d.ts +1564 -248
- package/dist/commons/application-config/index.d.ts +3 -3
- package/dist/commons/conditionals/conditionals.d.ts +58 -7
- package/dist/commons/conditionals/index.d.ts +1 -0
- package/dist/commons/conditionals/validate.d.ts +6 -1
- package/dist/commons/events/ActionConfig.d.ts +146 -20
- package/dist/commons/events/ActionDocument.d.ts +89 -0
- package/dist/commons/events/ActionInput.d.ts +56 -4
- package/dist/commons/events/ActionStatus.d.ts +2 -2
- package/dist/commons/events/ActionType.d.ts +13 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +15 -0
- package/dist/commons/events/AuditLog.d.ts +4 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +5 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +192 -18
- package/dist/commons/events/Draft.d.ts +36 -1
- package/dist/commons/events/EventConfig.d.ts +473 -6
- package/dist/commons/events/EventDocument.d.ts +90 -0
- package/dist/commons/events/EventIndex.d.ts +44 -6
- package/dist/commons/events/EventInput.d.ts +1 -0
- package/dist/commons/events/EventMetadata.d.ts +24 -1
- package/dist/commons/events/EventStatus.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +11 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
- package/dist/commons/events/Flag.d.ts +1 -7
- package/dist/commons/events/PlainDate.d.ts +6 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +224 -33
- package/dist/commons/events/defineConfig.d.ts +7 -2
- package/dist/commons/events/event.d.ts +20 -1
- package/dist/commons/events/eventConfigValidation.d.ts +26 -1
- package/dist/commons/events/field.d.ts +37 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/locations.d.ts +1 -1
- package/dist/commons/events/scopes.d.ts +4 -1
- package/dist/commons/events/state/flags.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +11 -2
- package/dist/commons/events/state/utils.d.ts +11 -1
- package/dist/commons/events/test.utils.d.ts +89 -7
- package/dist/commons/events/toNotificationForm.d.ts +17 -0
- package/dist/commons/events/utils.d.ts +90 -10
- package/dist/commons/users/Role.d.ts +23 -0
- package/dist/commons/users/User.d.ts +263 -0
- package/dist/commons/users/authentication.d.ts +67 -0
- package/dist/commons/users/index.d.ts +5 -0
- package/dist/commons/users/roleValidations.d.ts +15 -0
- package/dist/commons/users/scopes.d.ts +1402 -0
- package/dist/commons/users/userReferences.d.ts +176 -0
- package/dist/conditionals/index.js +29 -9
- package/dist/environment/custom-types.d.ts +1 -0
- package/dist/environment/custom-types.d.ts.map +1 -1
- package/dist/environment/derived-variables.d.ts +24 -4
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +27 -4
- package/dist/environment/questions.d.ts +42 -9
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +71 -48
- package/dist/environment/registry.d.ts +15 -0
- package/dist/environment/registry.d.ts.map +1 -0
- package/dist/environment/registry.js +112 -0
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +165 -35
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/events/index.js +2050 -1156
- package/dist/migrations/add-notify-config.d.ts +40 -0
- package/dist/migrations/add-notify-config.d.ts.map +1 -0
- package/dist/migrations/add-notify-config.js +249 -0
- package/dist/migrations/index.d.ts +9 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +1306 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts +38 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -0
- package/dist/migrations/move-declaration-to-declare-action.js +260 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.d.ts +7 -1
- package/dist/migrations/persistent/add-translations.d.ts.map +1 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.js +14 -12
- package/dist/migrations/persistent/check-upgrade-path.d.ts +36 -0
- package/dist/migrations/persistent/check-upgrade-path.d.ts.map +1 -0
- package/dist/migrations/persistent/check-upgrade-path.js +105 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts +7 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts.map +1 -0
- package/dist/migrations/persistent/update-toolkit-dependency.js +77 -0
- package/dist/migrations/read-declaration-through-helper.d.ts +39 -0
- package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -0
- package/dist/migrations/read-declaration-through-helper.js +199 -0
- package/dist/migrations/replace-incomplete-flag.d.ts +26 -0
- package/dist/migrations/replace-incomplete-flag.d.ts.map +1 -0
- package/dist/migrations/replace-incomplete-flag.js +126 -0
- package/dist/migrations/resolve-versioned-event-config.d.ts +56 -0
- package/dist/migrations/resolve-versioned-event-config.d.ts.map +1 -0
- package/dist/migrations/resolve-versioned-event-config.js +353 -0
- package/dist/migrations/utils.d.ts +61 -0
- package/dist/migrations/utils.d.ts.map +1 -0
- package/dist/migrations/utils.js +218 -0
- package/dist/notification/index.js +1081 -209
- package/dist/roles/index.d.ts +2 -0
- package/dist/roles/index.d.ts.map +1 -0
- package/dist/roles/index.js +730 -0
- package/dist/scopes/index.d.ts +83 -100
- package/dist/scopes/index.js +29 -13
- package/dist/templates/charts-values/dependencies/values.yaml +6 -3
- package/dist/templates/charts-values/opencrvs-services/values.yaml +5 -10
- package/dist/templates/charts-values/traefik/values.yaml +4 -3
- package/dist/verify/endpoints.d.ts +11 -0
- package/dist/verify/endpoints.d.ts.map +1 -1
- package/dist/verify/endpoints.js +21 -27
- package/opencrvs-toolkit-2.2.0-rc.19ec10b.tgz +0 -0
- package/package.json +5 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.json +3 -5
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +0 -3
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +0 -234
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +0 -3
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +0 -511
- package/dist/migrations/v2.1/add-translations.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.d.ts +0 -3
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.js +0 -455
- package/dist/migrations/v2.1/index.d.ts +0 -6
- package/dist/migrations/v2.1/index.d.ts.map +0 -1
- package/dist/migrations/v2.1/index.js +0 -2170
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +0 -14
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +0 -1
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +0 -348
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +0 -2
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +0 -161
- package/dist/migrations/v2.1/remove-sentry.d.ts +0 -3
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-sentry.js +0 -354
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts +0 -3
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +0 -1
- package/dist/migrations/v2.1/rename-trigger-paths.js +0 -216
- package/dist/migrations/v2.1/template-files.d.ts +0 -8
- package/dist/migrations/v2.1/template-files.d.ts.map +0 -1
- package/dist/migrations/v2.1/template-files.js +0 -49
- package/dist/migrations/v2.1/upgrade-tilt.d.ts +0 -8
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +0 -1
- package/dist/migrations/v2.1/upgrade-tilt.js +0 -139
- package/dist/templates/countryconfig-template/.tiltignore +0 -1
- package/dist/templates/countryconfig-template/Dockerfile.assets +0 -7
- package/dist/templates/countryconfig-template/Tiltfile +0 -112
- package/dist/templates/countryconfig-template/assets/README.md +0 -1
- package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +0 -61
- package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +0 -455
- package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +0 -67
- package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/metabase/README.md +0 -34
- package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +0 -36
- package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +0 -46
- package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +0 -27737
- package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +0 -21
- package/dist/templates/countryconfig-template/assets/metabase/package.json +0 -13
- package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +0 -108
- package/dist/templates/countryconfig-template/assets/metabase/run.sh +0 -120
- package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +0 -40
- package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +0 -135
- package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +0 -108
- package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +0 -50
- package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +0 -35
- package/dist/templates/countryconfig-template/tilt/common.tilt +0 -145
- package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +0 -15
- package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +0 -56
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +0 -21
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +0 -38
- package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +0 -17
- package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +0 -16
- package/dist/templates/countryconfig-template/tilt/lib.tilt +0 -95
- package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +0 -136
- package/opencrvs-toolkit-2.1.2.tgz +0 -0
|
@@ -23,7 +23,7 @@ export declare const ApplicationConfig: z.ZodObject<{
|
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
label: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
|
-
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.
|
|
26
|
+
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodInstanceOf<RegExp>]>;
|
|
27
27
|
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
28
28
|
email: "email";
|
|
29
29
|
sms: "sms";
|
|
@@ -60,7 +60,7 @@ export declare const LoginConfig: z.ZodObject<{
|
|
|
60
60
|
email: "email";
|
|
61
61
|
sms: "sms";
|
|
62
62
|
}>;
|
|
63
|
-
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.
|
|
63
|
+
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodInstanceOf<RegExp>]>;
|
|
64
64
|
LOGIN_BACKGROUND: z.ZodObject<{
|
|
65
65
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
66
66
|
backgroundImage: z.ZodOptional<z.ZodString>;
|
|
@@ -87,7 +87,7 @@ export declare const ClientConfig: z.ZodObject<{
|
|
|
87
87
|
}, z.core.$strip>>;
|
|
88
88
|
}, z.core.$strip>>;
|
|
89
89
|
FEATURES: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
90
|
-
|
|
90
|
+
_EXPERIMENTAL_LEGACY_RECORDS: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
91
91
|
}, z.core.$strip>>>;
|
|
92
92
|
}, z.core.$strip>;
|
|
93
93
|
export type ClientConfig = z.infer<typeof ClientConfig>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { EventDocument } from '../events/EventDocument';
|
|
2
2
|
import { ActionUpdate, EventState } from '../events/ActionDocument';
|
|
3
|
-
import { ITokenPayload as TokenPayload } from '../authentication';
|
|
3
|
+
import { ITokenPayload as TokenPayload } from '../users/authentication';
|
|
4
4
|
import { PartialSchema as AjvJSONSchemaType } from 'ajv/dist/types/json-schema';
|
|
5
5
|
import { userSerializer } from '../events/serializers/user/serializer';
|
|
6
6
|
import { UUID } from '../uuid';
|
|
7
7
|
import { todayDateTimeValueSerializer } from '../events/serializers/date/serializer';
|
|
8
8
|
import { EventStatus } from '../events/EventMetadata';
|
|
9
|
+
import type { ActionType } from '../events/ActionType';
|
|
9
10
|
import { CodeToEvaluate, FieldReference } from '../events/FieldConfig';
|
|
10
11
|
import type { ClientFunctionContext } from './validate';
|
|
11
12
|
/** @knipignore */
|
|
@@ -83,18 +84,18 @@ export declare const now: typeof todayDateTimeValueSerializer;
|
|
|
83
84
|
* Generate conditional rules for user.
|
|
84
85
|
*/
|
|
85
86
|
export declare const user: typeof userSerializer & {
|
|
86
|
-
scope: (scope: import("../scopes").ScopeType) => {
|
|
87
|
-
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
88
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
87
|
+
scope: (scope: import("../users/scopes").ScopeType) => {
|
|
88
|
+
attribute: (option: import("../users/scopes").ScopeOptionKey) => {
|
|
89
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reinstate-registration" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.revoke-registration" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
89
90
|
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
90
91
|
};
|
|
91
92
|
};
|
|
92
|
-
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
93
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
93
|
+
jurisdiction: (jurisdiction: import("../users/scopes").JurisdictionFilter | {
|
|
94
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reinstate-registration" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.revoke-registration" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
94
95
|
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
95
96
|
}) => {
|
|
96
97
|
$jurisdiction: "administrativeArea" | "all" | "location" | {
|
|
97
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reinstate-registration" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.revoke-registration" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
99
|
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
99
100
|
};
|
|
100
101
|
};
|
|
@@ -111,6 +112,24 @@ export declare function isFieldReference(value: unknown): value is FieldReferenc
|
|
|
111
112
|
export declare function isEventFieldReference(value: unknown): value is {
|
|
112
113
|
$$event: string;
|
|
113
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Matches an action by type. A custom action must always name its
|
|
117
|
+
* `customActionType`, so that it does not match every custom action.
|
|
118
|
+
*/
|
|
119
|
+
export type ActionMatcher = {
|
|
120
|
+
type: typeof ActionType.CUSTOM;
|
|
121
|
+
customActionType: string;
|
|
122
|
+
} | {
|
|
123
|
+
type: Exclude<ActionType, typeof ActionType.CUSTOM>;
|
|
124
|
+
customActionType?: never;
|
|
125
|
+
};
|
|
126
|
+
export type ActionDateReference = {
|
|
127
|
+
$action: {
|
|
128
|
+
match: ActionMatcher[];
|
|
129
|
+
occurrence: 'first' | 'last';
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export declare function isActionDateReference(value: unknown): value is ActionDateReference;
|
|
114
133
|
/** Check if an event flag is present */
|
|
115
134
|
export declare function flag(flagvalue: string): JSONSchema;
|
|
116
135
|
/** Check if an event flag is present */
|
|
@@ -155,6 +174,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
155
174
|
inFuture: () => JSONSchema;
|
|
156
175
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
157
176
|
fromNow: () => JSONSchema;
|
|
177
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
178
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
158
179
|
};
|
|
159
180
|
date: (date: string | FieldReference) => JSONSchema;
|
|
160
181
|
now: () => JSONSchema;
|
|
@@ -165,6 +186,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
165
186
|
inFuture: () => JSONSchema;
|
|
166
187
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
167
188
|
fromNow: () => JSONSchema;
|
|
189
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
190
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
168
191
|
};
|
|
169
192
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
170
193
|
now: () => JSONSchema;
|
|
@@ -245,6 +268,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
245
268
|
inFuture: () => JSONSchema;
|
|
246
269
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
247
270
|
fromNow: () => JSONSchema;
|
|
271
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
272
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
248
273
|
};
|
|
249
274
|
date: (date: string | FieldReference) => JSONSchema;
|
|
250
275
|
now: () => JSONSchema;
|
|
@@ -255,6 +280,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
255
280
|
inFuture: () => JSONSchema;
|
|
256
281
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
257
282
|
fromNow: () => JSONSchema;
|
|
283
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
284
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
258
285
|
};
|
|
259
286
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
260
287
|
now: () => JSONSchema;
|
|
@@ -343,6 +370,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
343
370
|
inFuture: () => JSONSchema;
|
|
344
371
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
345
372
|
fromNow: () => JSONSchema;
|
|
373
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
374
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
346
375
|
};
|
|
347
376
|
date: (date: string | FieldReference) => JSONSchema;
|
|
348
377
|
now: () => JSONSchema;
|
|
@@ -353,6 +382,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
353
382
|
inFuture: () => JSONSchema;
|
|
354
383
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
355
384
|
fromNow: () => JSONSchema;
|
|
385
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
386
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
356
387
|
};
|
|
357
388
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
358
389
|
now: () => JSONSchema;
|
|
@@ -448,6 +479,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
448
479
|
inFuture: () => JSONSchema;
|
|
449
480
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
450
481
|
fromNow: () => JSONSchema;
|
|
482
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
483
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
451
484
|
};
|
|
452
485
|
date: (date: string | FieldReference) => JSONSchema;
|
|
453
486
|
now: () => JSONSchema;
|
|
@@ -458,6 +491,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
458
491
|
inFuture: () => JSONSchema;
|
|
459
492
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
460
493
|
fromNow: () => JSONSchema;
|
|
494
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
495
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
461
496
|
};
|
|
462
497
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
463
498
|
now: () => JSONSchema;
|
|
@@ -538,6 +573,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
538
573
|
inFuture: () => JSONSchema;
|
|
539
574
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
540
575
|
fromNow: () => JSONSchema;
|
|
576
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
577
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
541
578
|
};
|
|
542
579
|
date: (date: string | FieldReference) => JSONSchema;
|
|
543
580
|
now: () => JSONSchema;
|
|
@@ -548,6 +585,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
548
585
|
inFuture: () => JSONSchema;
|
|
549
586
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
550
587
|
fromNow: () => JSONSchema;
|
|
588
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
589
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
551
590
|
};
|
|
552
591
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
553
592
|
now: () => JSONSchema;
|
|
@@ -643,6 +682,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
643
682
|
inFuture: () => JSONSchema;
|
|
644
683
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
645
684
|
fromNow: () => JSONSchema;
|
|
685
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
686
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
646
687
|
};
|
|
647
688
|
date: (date: string | FieldReference) => JSONSchema;
|
|
648
689
|
now: () => JSONSchema;
|
|
@@ -653,6 +694,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
653
694
|
inFuture: () => JSONSchema;
|
|
654
695
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
655
696
|
fromNow: () => JSONSchema;
|
|
697
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
698
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
656
699
|
};
|
|
657
700
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
658
701
|
now: () => JSONSchema;
|
|
@@ -733,6 +776,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
733
776
|
inFuture: () => JSONSchema;
|
|
734
777
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
735
778
|
fromNow: () => JSONSchema;
|
|
779
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
780
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
736
781
|
};
|
|
737
782
|
date: (date: string | FieldReference) => JSONSchema;
|
|
738
783
|
now: () => JSONSchema;
|
|
@@ -743,6 +788,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
743
788
|
inFuture: () => JSONSchema;
|
|
744
789
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
745
790
|
fromNow: () => JSONSchema;
|
|
791
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
792
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
746
793
|
};
|
|
747
794
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
748
795
|
now: () => JSONSchema;
|
|
@@ -821,6 +868,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
821
868
|
inFuture: () => JSONSchema;
|
|
822
869
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
823
870
|
fromNow: () => JSONSchema;
|
|
871
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
872
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
824
873
|
};
|
|
825
874
|
date: (date: string | FieldReference) => JSONSchema;
|
|
826
875
|
now: () => JSONSchema;
|
|
@@ -831,6 +880,8 @@ export declare function createFieldConditionals(fieldId: string): {
|
|
|
831
880
|
inFuture: () => JSONSchema;
|
|
832
881
|
fromDate: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
833
882
|
fromNow: () => JSONSchema;
|
|
883
|
+
beforeAction: (action: ActionDateReference) => JSONSchema;
|
|
884
|
+
afterAction: (action: ActionDateReference) => JSONSchema;
|
|
834
885
|
};
|
|
835
886
|
date: (date: `${string}-${string}-${string}` | FieldReference) => JSONSchema;
|
|
836
887
|
now: () => JSONSchema;
|
|
@@ -4,7 +4,7 @@ import { FieldConditional } from '../events/Conditional';
|
|
|
4
4
|
import { FieldConfig } from '../events/FieldConfig';
|
|
5
5
|
import { PlainDate, FieldUpdateValue, FieldValue } from '../events/FieldValue';
|
|
6
6
|
import { TranslationConfig } from '../events/TranslationConfig';
|
|
7
|
-
import { EncodedScope, TokenUserType } from '../authentication';
|
|
7
|
+
import { EncodedScope, TokenUserType } from '../users/authentication';
|
|
8
8
|
import { UUID } from '../uuid';
|
|
9
9
|
import { FormState } from '../events/utils';
|
|
10
10
|
import { ActionConfig } from '../events/ActionConfig';
|
|
@@ -141,6 +141,11 @@ export declare const errorMessages: {
|
|
|
141
141
|
description: string;
|
|
142
142
|
id: string;
|
|
143
143
|
};
|
|
144
|
+
notInNotifyForm: {
|
|
145
|
+
defaultMessage: string;
|
|
146
|
+
description: string;
|
|
147
|
+
id: string;
|
|
148
|
+
};
|
|
144
149
|
correctionNotAllowed: {
|
|
145
150
|
defaultMessage: string;
|
|
146
151
|
description: string;
|
|
@@ -8,7 +8,6 @@ export declare const ActionConfigBase: z.ZodObject<{
|
|
|
8
8
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
9
9
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
10
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
11
|
-
readonly INCOMPLETE: 'incomplete';
|
|
12
11
|
readonly REJECTED: 'rejected';
|
|
13
12
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
14
13
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -30,11 +29,63 @@ export declare const ActionConfigBase: z.ZodObject<{
|
|
|
30
29
|
conditional: z.ZodAny;
|
|
31
30
|
}, z.core.$strip>], "type">>>;
|
|
32
31
|
}, z.core.$strip>;
|
|
32
|
+
declare const DeclareConfig: z.ZodObject<{
|
|
33
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
34
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
36
|
+
readonly REJECTED: 'rejected';
|
|
37
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
38
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
39
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
40
|
+
}>]>, z.ZodString]>;
|
|
41
|
+
operation: z.ZodEnum<{
|
|
42
|
+
add: "add";
|
|
43
|
+
remove: "remove";
|
|
44
|
+
}>;
|
|
45
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
46
|
+
}, z.core.$strip>>>>;
|
|
47
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
48
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
49
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<"SHOW">;
|
|
51
|
+
conditional: z.ZodAny;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
54
|
+
conditional: z.ZodAny;
|
|
55
|
+
}, z.core.$strip>], "type">>>;
|
|
56
|
+
deduplication: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
59
|
+
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
type: z.ZodLiteral<"DECLARE">;
|
|
62
|
+
declaration: z.ZodObject<{
|
|
63
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
64
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
67
|
+
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
70
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
71
|
+
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
review: z.ZodObject<{
|
|
75
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
76
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
79
|
+
dialogCopy: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
notify: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
81
|
+
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
82
|
+
register: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
33
85
|
declare const CustomActionConfig: z.ZodObject<{
|
|
34
86
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
35
87
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
88
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
37
|
-
readonly INCOMPLETE: 'incomplete';
|
|
38
89
|
readonly REJECTED: 'rejected';
|
|
39
90
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
40
91
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -102,7 +153,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
102
153
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
103
154
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
155
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
105
|
-
readonly INCOMPLETE: 'incomplete';
|
|
106
156
|
readonly REJECTED: 'rejected';
|
|
107
157
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
108
158
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -128,7 +178,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
128
178
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
129
179
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
180
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
131
|
-
readonly INCOMPLETE: 'incomplete';
|
|
132
181
|
readonly REJECTED: 'rejected';
|
|
133
182
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
134
183
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -150,12 +199,27 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
150
199
|
conditional: z.ZodAny;
|
|
151
200
|
}, z.core.$strip>], "type">>>;
|
|
152
201
|
type: z.ZodLiteral<"NOTIFY">;
|
|
202
|
+
notificationForm: z.ZodObject<{
|
|
203
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
204
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
207
|
+
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
208
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
210
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
211
|
+
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
review: z.ZodObject<{
|
|
215
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
216
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
217
|
+
}, z.core.$strip>;
|
|
153
218
|
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
154
219
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
220
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
156
221
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
222
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
158
|
-
readonly INCOMPLETE: 'incomplete';
|
|
159
223
|
readonly REJECTED: 'rejected';
|
|
160
224
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
161
225
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -182,6 +246,18 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
246
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
183
247
|
}, z.core.$strip>>;
|
|
184
248
|
type: z.ZodLiteral<"DECLARE">;
|
|
249
|
+
declaration: z.ZodObject<{
|
|
250
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
251
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
252
|
+
id: z.ZodString;
|
|
253
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
254
|
+
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
255
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
257
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
258
|
+
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
}, z.core.$strip>;
|
|
185
261
|
review: z.ZodObject<{
|
|
186
262
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
187
263
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
@@ -195,7 +271,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
195
271
|
}, z.core.$strip>, z.ZodObject<{
|
|
196
272
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
197
273
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
198
|
-
readonly INCOMPLETE: 'incomplete';
|
|
199
274
|
readonly REJECTED: 'rejected';
|
|
200
275
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
201
276
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -216,7 +291,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
216
291
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
217
292
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
293
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
219
|
-
readonly INCOMPLETE: 'incomplete';
|
|
220
294
|
readonly REJECTED: 'rejected';
|
|
221
295
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
222
296
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -242,7 +316,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
242
316
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
243
317
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
244
318
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
245
|
-
readonly INCOMPLETE: 'incomplete';
|
|
246
319
|
readonly REJECTED: 'rejected';
|
|
247
320
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
248
321
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -268,7 +341,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
341
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
269
342
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
270
343
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
271
|
-
readonly INCOMPLETE: 'incomplete';
|
|
272
344
|
readonly REJECTED: 'rejected';
|
|
273
345
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
274
346
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -295,7 +367,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
295
367
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
296
368
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
369
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
298
|
-
readonly INCOMPLETE: 'incomplete';
|
|
299
370
|
readonly REJECTED: 'rejected';
|
|
300
371
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
301
372
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -327,7 +398,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
327
398
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
328
399
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
329
400
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
330
|
-
readonly INCOMPLETE: 'incomplete';
|
|
331
401
|
readonly REJECTED: 'rejected';
|
|
332
402
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
333
403
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -385,7 +455,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
385
455
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
386
456
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
387
457
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
388
|
-
readonly INCOMPLETE: 'incomplete';
|
|
389
458
|
readonly REJECTED: 'rejected';
|
|
390
459
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
391
460
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -443,7 +512,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
443
512
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
444
513
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
445
514
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
446
|
-
readonly INCOMPLETE: 'incomplete';
|
|
447
515
|
readonly REJECTED: 'rejected';
|
|
448
516
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
449
517
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -469,7 +537,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
469
537
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
470
538
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
539
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
472
|
-
readonly INCOMPLETE: 'incomplete';
|
|
473
540
|
readonly REJECTED: 'rejected';
|
|
474
541
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
475
542
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -495,7 +562,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
495
562
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
496
563
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
497
564
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
498
|
-
readonly INCOMPLETE: 'incomplete';
|
|
499
565
|
readonly REJECTED: 'rejected';
|
|
500
566
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
501
567
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -526,7 +592,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
526
592
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
527
593
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
528
594
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
529
|
-
readonly INCOMPLETE: 'incomplete';
|
|
530
595
|
readonly REJECTED: 'rejected';
|
|
531
596
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
532
597
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -553,7 +618,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
553
618
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
554
619
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
555
620
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
556
|
-
readonly INCOMPLETE: 'incomplete';
|
|
557
621
|
readonly REJECTED: 'rejected';
|
|
558
622
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
559
623
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -579,7 +643,58 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
579
643
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
580
644
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
581
645
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
582
|
-
readonly
|
|
646
|
+
readonly REJECTED: 'rejected';
|
|
647
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
648
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
649
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
650
|
+
}>]>, z.ZodString]>;
|
|
651
|
+
operation: z.ZodEnum<{
|
|
652
|
+
add: "add";
|
|
653
|
+
remove: "remove";
|
|
654
|
+
}>;
|
|
655
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
656
|
+
}, z.core.$strip>>>>;
|
|
657
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
658
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
659
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
660
|
+
type: z.ZodLiteral<"SHOW">;
|
|
661
|
+
conditional: z.ZodAny;
|
|
662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
663
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
664
|
+
conditional: z.ZodAny;
|
|
665
|
+
}, z.core.$strip>], "type">>>;
|
|
666
|
+
type: z.ZodLiteral<"REVOKE_REGISTRATION">;
|
|
667
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
669
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
670
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
671
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
672
|
+
readonly REJECTED: 'rejected';
|
|
673
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
674
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
675
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
676
|
+
}>]>, z.ZodString]>;
|
|
677
|
+
operation: z.ZodEnum<{
|
|
678
|
+
add: "add";
|
|
679
|
+
remove: "remove";
|
|
680
|
+
}>;
|
|
681
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
682
|
+
}, z.core.$strip>>>>;
|
|
683
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
684
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
685
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
686
|
+
type: z.ZodLiteral<"SHOW">;
|
|
687
|
+
conditional: z.ZodAny;
|
|
688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
689
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
690
|
+
conditional: z.ZodAny;
|
|
691
|
+
}, z.core.$strip>], "type">>>;
|
|
692
|
+
type: z.ZodLiteral<"REINSTATE_REGISTRATION">;
|
|
693
|
+
form: z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>>;
|
|
694
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
695
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
696
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
697
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
583
698
|
readonly REJECTED: 'rejected';
|
|
584
699
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
585
700
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -606,6 +721,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
606
721
|
auditHistoryLabel: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
607
722
|
}, z.core.$strip>], "type">;
|
|
608
723
|
export type ActionConfig = z.infer<typeof ActionConfig>;
|
|
724
|
+
export type DeclareActionConfig = z.infer<typeof DeclareConfig>;
|
|
609
725
|
export declare const actionConfigTypes: Set<ActionConfigTypes>;
|
|
610
726
|
/**
|
|
611
727
|
* Action types that come specifically from the country configuration.
|
|
@@ -620,7 +736,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
620
736
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
621
737
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
622
738
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
623
|
-
readonly INCOMPLETE: 'incomplete';
|
|
624
739
|
readonly REJECTED: 'rejected';
|
|
625
740
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
626
741
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -647,6 +762,18 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
647
762
|
query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput, z.core.$ZodTypeInternals<import("./DeduplicationConfig").ClauseOutput, import("./DeduplicationConfig").ClauseInput>>;
|
|
648
763
|
}, z.core.$strip>>;
|
|
649
764
|
type: z.ZodLiteral<"DECLARE">;
|
|
765
|
+
declaration: z.ZodObject<{
|
|
766
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
767
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
768
|
+
id: z.ZodString;
|
|
769
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
770
|
+
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
771
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
772
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
773
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
774
|
+
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
775
|
+
}, z.core.$strip>>;
|
|
776
|
+
}, z.core.$strip>;
|
|
650
777
|
review: z.ZodObject<{
|
|
651
778
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
652
779
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
@@ -661,7 +788,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
661
788
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
662
789
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
663
790
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
664
|
-
readonly INCOMPLETE: 'incomplete';
|
|
665
791
|
readonly REJECTED: 'rejected';
|
|
666
792
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
667
793
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|