@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
|
@@ -3,11 +3,13 @@ import { ActionConfig } from './ActionConfig';
|
|
|
3
3
|
import { SummaryConfig } from './SummaryConfig';
|
|
4
4
|
import { TranslationConfig } from './TranslationConfig';
|
|
5
5
|
import { AdvancedSearchConfig } from './AdvancedSearchConfig';
|
|
6
|
-
import {
|
|
6
|
+
import { DeclarationFormConfigInput } from './FormConfig';
|
|
7
7
|
import { FieldReference } from './FieldConfig';
|
|
8
8
|
import { FlagConfig } from './Flag';
|
|
9
9
|
import type { JSONSchema } from '../conditionals/conditionals';
|
|
10
10
|
import { AvailableIcons } from '../icons';
|
|
11
|
+
import { ActionType } from './ActionType';
|
|
12
|
+
import { PlainDate } from './PlainDate';
|
|
11
13
|
export declare const EventFieldReference: z.ZodObject<{
|
|
12
14
|
$$event: z.ZodEnum<{
|
|
13
15
|
createdAt: "createdAt";
|
|
@@ -30,20 +32,485 @@ export type EventConfig = {
|
|
|
30
32
|
label: TranslationConfig;
|
|
31
33
|
actions: ActionConfig[];
|
|
32
34
|
actionOrder?: string[];
|
|
33
|
-
declaration: DeclarationFormConfig;
|
|
34
35
|
advancedSearch: AdvancedSearchConfig[];
|
|
35
36
|
flags: FlagConfig[];
|
|
36
37
|
analytics: boolean;
|
|
37
38
|
icon?: Partial<Record<AvailableIcons, JSONSchema>>;
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
type ActionConfigInput = z.input<typeof ActionConfig>;
|
|
41
|
+
type DeclareActionConfigInput = Extract<ActionConfigInput, {
|
|
42
|
+
type: typeof ActionType.DECLARE;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* Input accepted by `EventConfig.parse`. `declaration` lives only on the DECLARE action,
|
|
46
|
+
* and NOTIFY carries its `notificationForm` and `review`.
|
|
47
|
+
*/
|
|
48
|
+
type EventConfigSchemaInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'actions' | 'dateOfEvent' | 'placeOfEvent' | 'analytics'> & {
|
|
40
49
|
dateOfEvent?: z.input<typeof FieldReference> | z.infer<typeof EventFieldReference>;
|
|
41
50
|
placeOfEvent?: z.input<typeof FieldReference>;
|
|
42
51
|
advancedSearch?: AdvancedSearchConfig[];
|
|
43
52
|
flags?: FlagConfig[];
|
|
44
|
-
|
|
45
|
-
actions: z.input<typeof ActionConfig>[];
|
|
53
|
+
actions: ActionConfigInput[];
|
|
46
54
|
analytics?: boolean;
|
|
47
55
|
};
|
|
48
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Input accepted by `defineConfig`.
|
|
58
|
+
* `declaration` may be given at the top level (kept for backwards compatibility)
|
|
59
|
+
* or on the DECLARE action.
|
|
60
|
+
* `defineConfig` checks at runtime that it is given in exactly one of these places.
|
|
61
|
+
*/
|
|
62
|
+
export type EventConfigInput = Omit<EventConfigSchemaInput, 'actions'> & {
|
|
63
|
+
/** @deprecated Define `declaration` on the DECLARE action instead. */
|
|
64
|
+
declaration?: DeclarationFormConfigInput;
|
|
65
|
+
actions: Array<Exclude<ActionConfigInput, DeclareActionConfigInput> | (Omit<DeclareActionConfigInput, 'declaration'> & {
|
|
66
|
+
declaration?: DeclarationFormConfigInput;
|
|
67
|
+
})>;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Input accepted by `defineConfig` for one version of an event.
|
|
71
|
+
* `declaration` lives only on the DECLARE action.
|
|
72
|
+
*/
|
|
73
|
+
export type EventConfigVersionInput = Omit<EventConfigSchemaInput, EventLevelField> & {
|
|
74
|
+
/** Identifier of the version, unique within the event (e.g. "birth-v2"). */
|
|
75
|
+
id: string;
|
|
76
|
+
/** Name of the version, which the UI shows wherever it names the version. For example, `{event.configVersionLabel}` in the event summary. */
|
|
77
|
+
label: TranslationConfig;
|
|
78
|
+
/** Date (YYYY-MM-DD) from which this version is effective. Without one, effective from the beginning of time. */
|
|
79
|
+
effectiveFrom?: string;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Input accepted by `defineConfig` for an event with several versions.
|
|
83
|
+
* `id`, `label` and `advancedSearch` are shared by every version.
|
|
84
|
+
*/
|
|
85
|
+
export type VersionedEventConfigInput = Pick<EventConfigInput, EventLevelField> & {
|
|
86
|
+
versions: EventConfigVersionInput[];
|
|
87
|
+
};
|
|
88
|
+
/** Fields shared by every version of an event. */
|
|
89
|
+
declare const eventLevelFields: {
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
92
|
+
advancedSearch: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
94
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
95
|
+
config: z.ZodObject<{
|
|
96
|
+
type: z.ZodEnum<{
|
|
97
|
+
exact: "exact";
|
|
98
|
+
fuzzy: "fuzzy";
|
|
99
|
+
range: "range";
|
|
100
|
+
within: "within";
|
|
101
|
+
}>;
|
|
102
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
readonly NAME: 'NAME';
|
|
106
|
+
readonly PHONE: 'PHONE';
|
|
107
|
+
readonly ID: 'ID';
|
|
108
|
+
readonly ADDRESS: 'ADDRESS';
|
|
109
|
+
readonly TEXT: 'TEXT';
|
|
110
|
+
readonly NUMBER: 'NUMBER';
|
|
111
|
+
readonly NUMBER_WITH_UNIT: 'NUMBER_WITH_UNIT';
|
|
112
|
+
readonly TEXTAREA: 'TEXTAREA';
|
|
113
|
+
readonly EMAIL: 'EMAIL';
|
|
114
|
+
readonly DATE: 'DATE';
|
|
115
|
+
readonly AGE: 'AGE';
|
|
116
|
+
readonly DATE_RANGE: 'DATE_RANGE';
|
|
117
|
+
readonly SELECT_DATE_RANGE: 'SELECT_DATE_RANGE';
|
|
118
|
+
readonly TIME: 'TIME';
|
|
119
|
+
readonly IMAGE_VIEW: 'IMAGE_VIEW';
|
|
120
|
+
readonly PARAGRAPH: 'PARAGRAPH';
|
|
121
|
+
readonly HEADING: 'HEADING';
|
|
122
|
+
readonly PAGE_HEADER: 'PAGE_HEADER';
|
|
123
|
+
readonly RADIO_GROUP: 'RADIO_GROUP';
|
|
124
|
+
readonly FIELD_GROUP: 'FIELD_GROUP';
|
|
125
|
+
readonly FILE: 'FILE';
|
|
126
|
+
readonly FILE_WITH_OPTIONS: 'FILE_WITH_OPTIONS';
|
|
127
|
+
readonly BULLET_LIST: 'BULLET_LIST';
|
|
128
|
+
readonly CHECKBOX: 'CHECKBOX';
|
|
129
|
+
readonly SELECT: 'SELECT';
|
|
130
|
+
readonly COUNTRY: 'COUNTRY';
|
|
131
|
+
readonly LOCATION: 'LOCATION';
|
|
132
|
+
readonly DIVIDER: 'DIVIDER';
|
|
133
|
+
readonly ADMINISTRATIVE_AREA: 'ADMINISTRATIVE_AREA';
|
|
134
|
+
readonly FACILITY: 'FACILITY';
|
|
135
|
+
readonly OFFICE: 'OFFICE';
|
|
136
|
+
readonly SIGNATURE: 'SIGNATURE';
|
|
137
|
+
readonly DATA: 'DATA';
|
|
138
|
+
readonly BUTTON: 'BUTTON';
|
|
139
|
+
readonly AUTOCOMPLETE: 'AUTOCOMPLETE';
|
|
140
|
+
readonly SEARCH: 'SEARCH';
|
|
141
|
+
readonly ALPHA_PRINT_BUTTON: 'ALPHA_PRINT_BUTTON';
|
|
142
|
+
readonly HTTP: 'HTTP';
|
|
143
|
+
readonly LINK_BUTTON: 'LINK_BUTTON';
|
|
144
|
+
readonly VERIFICATION_STATUS: 'VERIFICATION_STATUS';
|
|
145
|
+
readonly QUERY_PARAM_READER: 'QUERY_PARAM_READER';
|
|
146
|
+
readonly QR_READER: 'QR_READER';
|
|
147
|
+
readonly ID_READER: 'ID_READER';
|
|
148
|
+
readonly LOADER: 'LOADER';
|
|
149
|
+
readonly ALPHA_HIDDEN: 'ALPHA_HIDDEN';
|
|
150
|
+
readonly USER_ROLE: 'USER_ROLE';
|
|
151
|
+
readonly _EXPERIMENTAL_CUSTOM: 'CUSTOM';
|
|
152
|
+
}>>;
|
|
153
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
154
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
155
|
+
value: z.ZodString;
|
|
156
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
|
|
157
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"SHOW">;
|
|
159
|
+
conditional: z.ZodAny;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
162
|
+
conditional: z.ZodAny;
|
|
163
|
+
}, z.core.$strip>], "type">>>>;
|
|
164
|
+
}, z.core.$strip>>>;
|
|
165
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
166
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
167
|
+
type: z.ZodLiteral<"SHOW">;
|
|
168
|
+
conditional: z.ZodAny;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
171
|
+
conditional: z.ZodAny;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
|
|
174
|
+
conditional: z.ZodAny;
|
|
175
|
+
}, z.core.$strip>], "type">>>;
|
|
176
|
+
validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
177
|
+
validator: z.ZodAny;
|
|
178
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
180
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
182
|
+
administrativeArea: "administrativeArea";
|
|
183
|
+
all: "all";
|
|
184
|
+
location: "location";
|
|
185
|
+
}>, z.ZodObject<{
|
|
186
|
+
$scope: z.ZodEnum<{
|
|
187
|
+
"attachment.upload": "attachment.upload";
|
|
188
|
+
bypassratelimit: "bypassratelimit";
|
|
189
|
+
"config.update-all": "config.update-all";
|
|
190
|
+
"dashboard.view": "dashboard.view";
|
|
191
|
+
"integration.audit.read": "integration.audit.read";
|
|
192
|
+
"integration.create": "integration.create";
|
|
193
|
+
"location.edit": "location.edit";
|
|
194
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
195
|
+
"performance.read": "performance.read";
|
|
196
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
197
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
198
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
199
|
+
"record.action.accept": "record.action.accept";
|
|
200
|
+
"record.action.reject": "record.action.reject";
|
|
201
|
+
"record.archive": "record.archive";
|
|
202
|
+
"record.correct": "record.correct";
|
|
203
|
+
"record.create": "record.create";
|
|
204
|
+
"record.custom-action": "record.custom-action";
|
|
205
|
+
"record.declare": "record.declare";
|
|
206
|
+
"record.edit": "record.edit";
|
|
207
|
+
"record.import": "record.import";
|
|
208
|
+
"record.notify": "record.notify";
|
|
209
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
210
|
+
"record.read": "record.read";
|
|
211
|
+
"record.register": "record.register";
|
|
212
|
+
"record.reindex": "record.reindex";
|
|
213
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
214
|
+
"record.reject": "record.reject";
|
|
215
|
+
"record.request-correction": "record.request-correction";
|
|
216
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
217
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
218
|
+
"record.search": "record.search";
|
|
219
|
+
"record.unarchive": "record.unarchive";
|
|
220
|
+
"record.unassign-others": "record.unassign-others";
|
|
221
|
+
"user.create": "user.create";
|
|
222
|
+
"user.data-seeding": "user.data-seeding";
|
|
223
|
+
"user.edit": "user.edit";
|
|
224
|
+
"user.read": "user.read";
|
|
225
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
226
|
+
"user.search": "user.search";
|
|
227
|
+
workqueue: "workqueue";
|
|
228
|
+
}>;
|
|
229
|
+
$option: z.ZodEnum<{
|
|
230
|
+
accessLevel: "accessLevel";
|
|
231
|
+
createdBy: "createdBy";
|
|
232
|
+
createdIn: "createdIn";
|
|
233
|
+
declaredBy: "declaredBy";
|
|
234
|
+
declaredIn: "declaredIn";
|
|
235
|
+
event: "event";
|
|
236
|
+
flags: "flags";
|
|
237
|
+
ids: "ids";
|
|
238
|
+
notifiedBy: "notifiedBy";
|
|
239
|
+
notifiedIn: "notifiedIn";
|
|
240
|
+
placeOfEvent: "placeOfEvent";
|
|
241
|
+
registeredBy: "registeredBy";
|
|
242
|
+
registeredIn: "registeredIn";
|
|
243
|
+
role: "role";
|
|
244
|
+
status: "status";
|
|
245
|
+
}>;
|
|
246
|
+
}, z.core.$strip>]>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
fieldId: z.ZodString;
|
|
249
|
+
fieldType: z.ZodLiteral<"field">;
|
|
250
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
252
|
+
config: z.ZodObject<{
|
|
253
|
+
type: z.ZodEnum<{
|
|
254
|
+
exact: "exact";
|
|
255
|
+
fuzzy: "fuzzy";
|
|
256
|
+
range: "range";
|
|
257
|
+
within: "within";
|
|
258
|
+
}>;
|
|
259
|
+
searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
262
|
+
readonly NAME: 'NAME';
|
|
263
|
+
readonly PHONE: 'PHONE';
|
|
264
|
+
readonly ID: 'ID';
|
|
265
|
+
readonly ADDRESS: 'ADDRESS';
|
|
266
|
+
readonly TEXT: 'TEXT';
|
|
267
|
+
readonly NUMBER: 'NUMBER';
|
|
268
|
+
readonly NUMBER_WITH_UNIT: 'NUMBER_WITH_UNIT';
|
|
269
|
+
readonly TEXTAREA: 'TEXTAREA';
|
|
270
|
+
readonly EMAIL: 'EMAIL';
|
|
271
|
+
readonly DATE: 'DATE';
|
|
272
|
+
readonly AGE: 'AGE';
|
|
273
|
+
readonly DATE_RANGE: 'DATE_RANGE';
|
|
274
|
+
readonly SELECT_DATE_RANGE: 'SELECT_DATE_RANGE';
|
|
275
|
+
readonly TIME: 'TIME';
|
|
276
|
+
readonly IMAGE_VIEW: 'IMAGE_VIEW';
|
|
277
|
+
readonly PARAGRAPH: 'PARAGRAPH';
|
|
278
|
+
readonly HEADING: 'HEADING';
|
|
279
|
+
readonly PAGE_HEADER: 'PAGE_HEADER';
|
|
280
|
+
readonly RADIO_GROUP: 'RADIO_GROUP';
|
|
281
|
+
readonly FIELD_GROUP: 'FIELD_GROUP';
|
|
282
|
+
readonly FILE: 'FILE';
|
|
283
|
+
readonly FILE_WITH_OPTIONS: 'FILE_WITH_OPTIONS';
|
|
284
|
+
readonly BULLET_LIST: 'BULLET_LIST';
|
|
285
|
+
readonly CHECKBOX: 'CHECKBOX';
|
|
286
|
+
readonly SELECT: 'SELECT';
|
|
287
|
+
readonly COUNTRY: 'COUNTRY';
|
|
288
|
+
readonly LOCATION: 'LOCATION';
|
|
289
|
+
readonly DIVIDER: 'DIVIDER';
|
|
290
|
+
readonly ADMINISTRATIVE_AREA: 'ADMINISTRATIVE_AREA';
|
|
291
|
+
readonly FACILITY: 'FACILITY';
|
|
292
|
+
readonly OFFICE: 'OFFICE';
|
|
293
|
+
readonly SIGNATURE: 'SIGNATURE';
|
|
294
|
+
readonly DATA: 'DATA';
|
|
295
|
+
readonly BUTTON: 'BUTTON';
|
|
296
|
+
readonly AUTOCOMPLETE: 'AUTOCOMPLETE';
|
|
297
|
+
readonly SEARCH: 'SEARCH';
|
|
298
|
+
readonly ALPHA_PRINT_BUTTON: 'ALPHA_PRINT_BUTTON';
|
|
299
|
+
readonly HTTP: 'HTTP';
|
|
300
|
+
readonly LINK_BUTTON: 'LINK_BUTTON';
|
|
301
|
+
readonly VERIFICATION_STATUS: 'VERIFICATION_STATUS';
|
|
302
|
+
readonly QUERY_PARAM_READER: 'QUERY_PARAM_READER';
|
|
303
|
+
readonly QR_READER: 'QR_READER';
|
|
304
|
+
readonly ID_READER: 'ID_READER';
|
|
305
|
+
readonly LOADER: 'LOADER';
|
|
306
|
+
readonly ALPHA_HIDDEN: 'ALPHA_HIDDEN';
|
|
307
|
+
readonly USER_ROLE: 'USER_ROLE';
|
|
308
|
+
readonly _EXPERIMENTAL_CUSTOM: 'CUSTOM';
|
|
309
|
+
}>>;
|
|
310
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
311
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
|
+
value: z.ZodString;
|
|
313
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
|
|
314
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
+
type: z.ZodLiteral<"SHOW">;
|
|
316
|
+
conditional: z.ZodAny;
|
|
317
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
318
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
319
|
+
conditional: z.ZodAny;
|
|
320
|
+
}, z.core.$strip>], "type">>>>;
|
|
321
|
+
}, z.core.$strip>>>;
|
|
322
|
+
searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
323
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
324
|
+
type: z.ZodLiteral<"SHOW">;
|
|
325
|
+
conditional: z.ZodAny;
|
|
326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
328
|
+
conditional: z.ZodAny;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
|
|
331
|
+
conditional: z.ZodAny;
|
|
332
|
+
}, z.core.$strip>], "type">>>;
|
|
333
|
+
validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
334
|
+
validator: z.ZodAny;
|
|
335
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
336
|
+
}, z.core.$strip>>>;
|
|
337
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
339
|
+
administrativeArea: "administrativeArea";
|
|
340
|
+
all: "all";
|
|
341
|
+
location: "location";
|
|
342
|
+
}>, z.ZodObject<{
|
|
343
|
+
$scope: z.ZodEnum<{
|
|
344
|
+
"attachment.upload": "attachment.upload";
|
|
345
|
+
bypassratelimit: "bypassratelimit";
|
|
346
|
+
"config.update-all": "config.update-all";
|
|
347
|
+
"dashboard.view": "dashboard.view";
|
|
348
|
+
"integration.audit.read": "integration.audit.read";
|
|
349
|
+
"integration.create": "integration.create";
|
|
350
|
+
"location.edit": "location.edit";
|
|
351
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
352
|
+
"performance.read": "performance.read";
|
|
353
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
354
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
355
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
356
|
+
"record.action.accept": "record.action.accept";
|
|
357
|
+
"record.action.reject": "record.action.reject";
|
|
358
|
+
"record.archive": "record.archive";
|
|
359
|
+
"record.correct": "record.correct";
|
|
360
|
+
"record.create": "record.create";
|
|
361
|
+
"record.custom-action": "record.custom-action";
|
|
362
|
+
"record.declare": "record.declare";
|
|
363
|
+
"record.edit": "record.edit";
|
|
364
|
+
"record.import": "record.import";
|
|
365
|
+
"record.notify": "record.notify";
|
|
366
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
367
|
+
"record.read": "record.read";
|
|
368
|
+
"record.register": "record.register";
|
|
369
|
+
"record.reindex": "record.reindex";
|
|
370
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
371
|
+
"record.reject": "record.reject";
|
|
372
|
+
"record.request-correction": "record.request-correction";
|
|
373
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
374
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
375
|
+
"record.search": "record.search";
|
|
376
|
+
"record.unarchive": "record.unarchive";
|
|
377
|
+
"record.unassign-others": "record.unassign-others";
|
|
378
|
+
"user.create": "user.create";
|
|
379
|
+
"user.data-seeding": "user.data-seeding";
|
|
380
|
+
"user.edit": "user.edit";
|
|
381
|
+
"user.read": "user.read";
|
|
382
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
383
|
+
"user.search": "user.search";
|
|
384
|
+
workqueue: "workqueue";
|
|
385
|
+
}>;
|
|
386
|
+
$option: z.ZodEnum<{
|
|
387
|
+
accessLevel: "accessLevel";
|
|
388
|
+
createdBy: "createdBy";
|
|
389
|
+
createdIn: "createdIn";
|
|
390
|
+
declaredBy: "declaredBy";
|
|
391
|
+
declaredIn: "declaredIn";
|
|
392
|
+
event: "event";
|
|
393
|
+
flags: "flags";
|
|
394
|
+
ids: "ids";
|
|
395
|
+
notifiedBy: "notifiedBy";
|
|
396
|
+
notifiedIn: "notifiedIn";
|
|
397
|
+
placeOfEvent: "placeOfEvent";
|
|
398
|
+
registeredBy: "registeredBy";
|
|
399
|
+
registeredIn: "registeredIn";
|
|
400
|
+
role: "role";
|
|
401
|
+
status: "status";
|
|
402
|
+
}>;
|
|
403
|
+
}, z.core.$strip>]>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
fieldId: z.ZodEnum<{
|
|
406
|
+
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
407
|
+
"event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
|
|
408
|
+
"event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
|
|
409
|
+
"event.status": "event.status";
|
|
410
|
+
"event.trackingId": "event.trackingId";
|
|
411
|
+
"event.updatedAt": "event.updatedAt";
|
|
412
|
+
}>;
|
|
413
|
+
fieldType: z.ZodLiteral<"event">;
|
|
414
|
+
}, z.core.$strip>], "fieldType">>;
|
|
415
|
+
}, z.core.$strip>>>>;
|
|
416
|
+
};
|
|
417
|
+
/** Validations of one version of an event, read together with the fields shared by every version. */
|
|
418
|
+
export declare function validateEventConfig(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
|
|
419
|
+
export declare const EventConfig: z.ZodType<EventConfig, EventConfigSchemaInput>;
|
|
420
|
+
type EventLevelField = keyof typeof eventLevelFields;
|
|
421
|
+
/**
|
|
422
|
+
* Id of the version of an event configured without `versions`, i.e. the configuration
|
|
423
|
+
* before versioning. Records created before versioning are stamped with it.
|
|
424
|
+
*/
|
|
425
|
+
export declare const INITIAL_EVENT_CONFIG_VERSION_ID = "initial";
|
|
426
|
+
/** `effectiveFrom` of a version configured without one. */
|
|
427
|
+
export declare const DEFAULT_EFFECTIVE_FROM = "0001-01-01";
|
|
428
|
+
/** One version of an event: what the event looks like from `effectiveFrom` on. */
|
|
429
|
+
export type EventConfigVersion = Omit<EventConfig, EventLevelField> & {
|
|
430
|
+
id: string;
|
|
431
|
+
/** Name of the version. A version configured without `versions` has the label of the event. */
|
|
432
|
+
label: TranslationConfig;
|
|
433
|
+
/** Date (YYYY-MM-DD) from which this version is effective. '0001-01-01' when configured without one. */
|
|
434
|
+
effectiveFrom: string;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* An event with every version of its configuration. This is what country config serves.
|
|
438
|
+
* Read it through `resolveEventConfig`, which gives the configuration of one version.
|
|
439
|
+
*/
|
|
440
|
+
export type VersionedEventConfig = Pick<EventConfig, EventLevelField> & {
|
|
441
|
+
versions: EventConfigVersion[];
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* @returns the configuration of `version`, together with the fields shared by every
|
|
445
|
+
* version of the event. The same event and version give the same object, so caches
|
|
446
|
+
* keyed on the configuration keep working.
|
|
447
|
+
*/
|
|
448
|
+
export declare function toEventConfig(config: VersionedEventConfig, version: EventConfigVersion): EventConfig;
|
|
449
|
+
/** @returns the version with id `versionId`, or undefined when it is not configured. */
|
|
450
|
+
export declare function findConfigVersion(config: VersionedEventConfig, versionId: string): EventConfigVersion | undefined;
|
|
451
|
+
/**
|
|
452
|
+
* @returns the version with id `versionId`.
|
|
453
|
+
* @throws when that version is not configured.
|
|
454
|
+
*/
|
|
455
|
+
export declare function getConfigVersion(config: VersionedEventConfig, versionId: string): EventConfigVersion;
|
|
456
|
+
/**
|
|
457
|
+
* @returns the configuration of the version with id `versionId`.
|
|
458
|
+
* @throws when the version is not configured.
|
|
459
|
+
*/
|
|
460
|
+
export declare function getEventConfigOfVersion(config: VersionedEventConfig, versionId: string): EventConfig;
|
|
461
|
+
/** Orders versions by `effectiveFrom`, earliest first. */
|
|
462
|
+
export declare function byEffectiveFrom(a: EventConfigVersion, b: EventConfigVersion): number;
|
|
463
|
+
/**
|
|
464
|
+
* @returns the versions that took effect on or before the date of `now` in `timeZone`,
|
|
465
|
+
* the country's time zone.
|
|
466
|
+
* Earliest first, so the last one is the version in effect at `now`.
|
|
467
|
+
*/
|
|
468
|
+
export declare function getVersionsInEffect(config: VersionedEventConfig, now: Date, timeZone: string): EventConfigVersion[];
|
|
469
|
+
/**
|
|
470
|
+
* @returns the version in effect at `now`: the one with the latest `effectiveFrom` not
|
|
471
|
+
* after the date of `now` in `timeZone`, the country's time zone, since versions take
|
|
472
|
+
* effect at its midnight. Undefined when every version takes effect later.
|
|
473
|
+
*/
|
|
474
|
+
export declare function resolveEffectiveVersion(config: VersionedEventConfig, now: Date, timeZone: string): EventConfigVersion | undefined;
|
|
475
|
+
/**
|
|
476
|
+
* @returns the configuration of the version a record is stamped with, like
|
|
477
|
+
* `getEventConfigForRecord`, or undefined when that version is not configured.
|
|
478
|
+
*/
|
|
479
|
+
export declare function findEventConfigForRecord(config: VersionedEventConfig, record: {
|
|
480
|
+
configVersionId: string;
|
|
481
|
+
}): EventConfig | undefined;
|
|
482
|
+
/**
|
|
483
|
+
* @returns the configuration of the version a record is stamped with.
|
|
484
|
+
* @throws when the record's version is no longer configured.
|
|
485
|
+
*/
|
|
486
|
+
export declare function getEventConfigForRecord(config: VersionedEventConfig, record: {
|
|
487
|
+
configVersionId: string;
|
|
488
|
+
}): EventConfig;
|
|
489
|
+
/**
|
|
490
|
+
* @returns the configuration of the version in effect on `date`, a date in the
|
|
491
|
+
* country's time zone. For a record, use `getEventConfigForRecord` instead.
|
|
492
|
+
* @throws when no version is in effect on that date, which `defineConfig` rules out.
|
|
493
|
+
*/
|
|
494
|
+
export declare function resolveEventConfigOnDate(config: VersionedEventConfig, date: PlainDate): EventConfig;
|
|
495
|
+
/**
|
|
496
|
+
* @returns the configuration of the version in effect on the date of `now` (today by
|
|
497
|
+
* default) in `timeZone`, the country's time zone. For a record, use
|
|
498
|
+
* `getEventConfigForRecord` instead.
|
|
499
|
+
* @throws when no version is in effect on that date, which `defineConfig` rules out.
|
|
500
|
+
*/
|
|
501
|
+
export declare function resolveEventConfigInTimeZone(config: VersionedEventConfig, timeZone: string, now?: Date): EventConfig;
|
|
502
|
+
/**
|
|
503
|
+
* @returns the configuration of the version in effect today in UTC. For country config
|
|
504
|
+
* code with no time zone at hand; core code uses `resolveEventConfigInTimeZone`.
|
|
505
|
+
*/
|
|
506
|
+
export declare function resolveEventConfig(config: VersionedEventConfig): EventConfig;
|
|
507
|
+
/**
|
|
508
|
+
* Runs `validate` on the configuration of each version (`events[i]` is that of
|
|
509
|
+
* `versions[i]`). Issues on a field of the version are reported under that version.
|
|
510
|
+
* Issues on a field shared by every version (e.g. `advancedSearch`) are reported once,
|
|
511
|
+
* where they are defined.
|
|
512
|
+
*/
|
|
513
|
+
export declare function validateEachVersion<E>(ctx: Pick<z.RefinementCtx<unknown>, 'addIssue'>, events: E[], validate: (event: E, versionCtx: z.RefinementCtx<E>) => void): void;
|
|
514
|
+
export declare const VersionedEventConfig: z.ZodType<VersionedEventConfig, VersionedEventConfigInput>;
|
|
515
|
+
export {};
|
|
49
516
|
//# sourceMappingURL=EventConfig.d.ts.map
|
|
@@ -166,6 +166,48 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
166
166
|
}>;
|
|
167
167
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
168
168
|
type: z.ZodLiteral<"UNARCHIVE">;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
171
|
+
transactionId: z.ZodString;
|
|
172
|
+
createdByUserType: z.ZodEnum<{
|
|
173
|
+
system: "system";
|
|
174
|
+
user: "user";
|
|
175
|
+
}>;
|
|
176
|
+
createdAt: z.ZodString;
|
|
177
|
+
createdBy: z.ZodString;
|
|
178
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
179
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
180
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
181
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
182
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
183
|
+
status: z.ZodEnum<{
|
|
184
|
+
Accepted: "Accepted";
|
|
185
|
+
Rejected: "Rejected";
|
|
186
|
+
Requested: "Requested";
|
|
187
|
+
}>;
|
|
188
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
189
|
+
type: z.ZodLiteral<"REVOKE_REGISTRATION">;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
192
|
+
transactionId: z.ZodString;
|
|
193
|
+
createdByUserType: z.ZodEnum<{
|
|
194
|
+
system: "system";
|
|
195
|
+
user: "user";
|
|
196
|
+
}>;
|
|
197
|
+
createdAt: z.ZodString;
|
|
198
|
+
createdBy: z.ZodString;
|
|
199
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
200
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
201
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
202
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
203
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
204
|
+
status: z.ZodEnum<{
|
|
205
|
+
Accepted: "Accepted";
|
|
206
|
+
Rejected: "Rejected";
|
|
207
|
+
Requested: "Requested";
|
|
208
|
+
}>;
|
|
209
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
210
|
+
type: z.ZodLiteral<"REINSTATE_REGISTRATION">;
|
|
169
211
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
212
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
171
213
|
transactionId: z.ZodString;
|
|
@@ -457,14 +499,17 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
457
499
|
NOTIFY: "NOTIFY";
|
|
458
500
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
459
501
|
REGISTER: "REGISTER";
|
|
502
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
|
|
460
503
|
REJECT: "REJECT";
|
|
461
504
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
462
505
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
506
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
|
|
463
507
|
UNARCHIVE: "UNARCHIVE";
|
|
464
508
|
}>;
|
|
465
509
|
status: z.ZodLiteral<"Rejected">;
|
|
466
510
|
}, z.core.$strip>]>>;
|
|
467
511
|
trackingId: z.ZodString;
|
|
512
|
+
configVersionId: z.ZodString;
|
|
468
513
|
}, z.core.$strip>;
|
|
469
514
|
export type EventDocument = z.infer<typeof EventDocument>;
|
|
470
515
|
export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject<{
|
|
@@ -473,6 +518,7 @@ export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject
|
|
|
473
518
|
createdAt: z.ZodString;
|
|
474
519
|
updatedAt: z.ZodString;
|
|
475
520
|
trackingId: z.ZodString;
|
|
521
|
+
configVersionId: z.ZodString;
|
|
476
522
|
actions: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
477
523
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
478
524
|
transactionId: z.ZodString;
|
|
@@ -635,6 +681,48 @@ export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject
|
|
|
635
681
|
}>;
|
|
636
682
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
637
683
|
type: z.ZodLiteral<"UNARCHIVE">;
|
|
684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
685
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
686
|
+
transactionId: z.ZodString;
|
|
687
|
+
createdByUserType: z.ZodEnum<{
|
|
688
|
+
system: "system";
|
|
689
|
+
user: "user";
|
|
690
|
+
}>;
|
|
691
|
+
createdAt: z.ZodString;
|
|
692
|
+
createdBy: z.ZodString;
|
|
693
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
694
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
695
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
696
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
697
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
698
|
+
status: z.ZodEnum<{
|
|
699
|
+
Accepted: "Accepted";
|
|
700
|
+
Rejected: "Rejected";
|
|
701
|
+
Requested: "Requested";
|
|
702
|
+
}>;
|
|
703
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
704
|
+
type: z.ZodLiteral<"REVOKE_REGISTRATION">;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
707
|
+
transactionId: z.ZodString;
|
|
708
|
+
createdByUserType: z.ZodEnum<{
|
|
709
|
+
system: "system";
|
|
710
|
+
user: "user";
|
|
711
|
+
}>;
|
|
712
|
+
createdAt: z.ZodString;
|
|
713
|
+
createdBy: z.ZodString;
|
|
714
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
715
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
716
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
717
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
718
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
719
|
+
status: z.ZodEnum<{
|
|
720
|
+
Accepted: "Accepted";
|
|
721
|
+
Rejected: "Rejected";
|
|
722
|
+
Requested: "Requested";
|
|
723
|
+
}>;
|
|
724
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
725
|
+
type: z.ZodLiteral<"REINSTATE_REGISTRATION">;
|
|
638
726
|
}, z.core.$strip>, z.ZodObject<{
|
|
639
727
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
640
728
|
transactionId: z.ZodString;
|
|
@@ -926,9 +1014,11 @@ export declare const EventDocumentOnlyLastAction: z.core.$ZodBranded<z.ZodObject
|
|
|
926
1014
|
NOTIFY: "NOTIFY";
|
|
927
1015
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
928
1016
|
REGISTER: "REGISTER";
|
|
1017
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
|
|
929
1018
|
REJECT: "REJECT";
|
|
930
1019
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
931
1020
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
1021
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
|
|
932
1022
|
UNARCHIVE: "UNARCHIVE";
|
|
933
1023
|
}>;
|
|
934
1024
|
status: z.ZodLiteral<"Rejected">;
|