@opencrvs/toolkit 2.1.0-rc.982e0ae → 2.1.0-rc.9a83eed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -12
- package/create-countryconfig/index.js +133 -2
- package/dist/application-config/index.js +17 -18
- package/dist/authentication/index.js +7 -6
- package/dist/cli.js +458 -204
- package/dist/commons/api/router.d.ts +6 -42
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +1 -1
- package/dist/commons/events/ActionConfig.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -12
- package/dist/commons/events/FieldConfig.d.ts +16 -15
- package/dist/commons/events/FormConfig.d.ts +6 -0
- package/dist/commons/events/PageConfig.d.ts +4 -0
- package/dist/commons/events/locations.d.ts +4 -0
- package/dist/commons/events/test.utils.d.ts +18 -1
- package/dist/commons/events/utils.d.ts +15 -0
- package/dist/conditionals/index.js +7 -6
- package/dist/environment/manage-users.js +1 -1
- package/dist/environment/setup-environment.js +44 -26
- package/dist/environment/templates.d.ts +0 -1
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +3 -8
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +4 -0
- package/dist/environment/utils.d.ts +0 -12
- package/dist/environment/utils.d.ts.map +1 -1
- package/dist/environment/utils.js +1 -28
- package/dist/events/index.js +1901 -1792
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +3 -3
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +1 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +34 -6
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +1 -1
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -1
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +2 -7
- package/dist/migrations/v2.1/add-translations.d.ts +1 -1
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -1
- package/dist/migrations/v2.1/add-translations.js +1 -6
- package/dist/migrations/v2.1/enable-telemetry.d.ts +1 -1
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -1
- package/dist/migrations/v2.1/enable-telemetry.js +1 -6
- package/dist/migrations/v2.1/index.d.ts +14 -1
- package/dist/migrations/v2.1/index.d.ts.map +1 -1
- package/dist/migrations/v2.1/index.js +96 -84
- package/dist/notification/index.js +155 -152
- package/dist/scopes/index.d.ts +109 -5
- package/dist/scopes/index.js +7 -6
- package/dist/templates/charts-values/dependencies/values.yaml +2 -0
- package/dist/translations/check.d.ts +2 -0
- package/dist/translations/check.d.ts.map +1 -1
- package/dist/translations/check.js +9 -4
- package/dist/verify/endpoints.d.ts +18 -1
- package/dist/verify/endpoints.d.ts.map +1 -1
- package/dist/verify/endpoints.js +12 -4
- package/dist/verify/scopes.d.ts +13 -0
- package/dist/verify/scopes.d.ts.map +1 -0
- package/dist/verify/scopes.js +131 -0
- package/dist/verify/upgrade.d.ts +14 -0
- package/dist/verify/upgrade.d.ts.map +1 -0
- package/dist/verify/upgrade.js +111 -0
- package/opencrvs-toolkit-2.1.0-rc.9a83eed.tgz +0 -0
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.982e0ae.tgz +0 -0
|
@@ -8046,46 +8046,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8046
8046
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
8047
8047
|
transformer: true;
|
|
8048
8048
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8049
|
-
record: import("@trpc/server").TRPCMutationProcedure<{
|
|
8050
|
-
input: {
|
|
8051
|
-
operation: "user.create_user";
|
|
8052
|
-
requestData: {
|
|
8053
|
-
subjectId: string;
|
|
8054
|
-
role: string;
|
|
8055
|
-
primaryOfficeId: string;
|
|
8056
|
-
};
|
|
8057
|
-
} | {
|
|
8058
|
-
operation: "user.deactivate" | "user.reactivate";
|
|
8059
|
-
requestData: {
|
|
8060
|
-
subjectId: string;
|
|
8061
|
-
reason: string;
|
|
8062
|
-
comment?: string | undefined;
|
|
8063
|
-
};
|
|
8064
|
-
} | {
|
|
8065
|
-
operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin";
|
|
8066
|
-
requestData: {
|
|
8067
|
-
subjectId: string;
|
|
8068
|
-
};
|
|
8069
|
-
} | {
|
|
8070
|
-
operation: "user.email_address_changed";
|
|
8071
|
-
requestData: {
|
|
8072
|
-
subjectId: string;
|
|
8073
|
-
};
|
|
8074
|
-
responseSummary: {
|
|
8075
|
-
email: string;
|
|
8076
|
-
};
|
|
8077
|
-
} | {
|
|
8078
|
-
operation: "user.phone_number_changed";
|
|
8079
|
-
requestData: {
|
|
8080
|
-
subjectId: string;
|
|
8081
|
-
};
|
|
8082
|
-
responseSummary: {
|
|
8083
|
-
phoneNumber: string;
|
|
8084
|
-
};
|
|
8085
|
-
};
|
|
8086
|
-
output: void;
|
|
8087
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8088
|
-
}>;
|
|
8089
8049
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
8090
8050
|
input: {
|
|
8091
8051
|
userId: string;
|
|
@@ -9105,6 +9065,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
9105
9065
|
input: {
|
|
9106
9066
|
name: string;
|
|
9107
9067
|
scopes: string[];
|
|
9068
|
+
credentials?: {
|
|
9069
|
+
clientId: string;
|
|
9070
|
+
clientSecret: string;
|
|
9071
|
+
} | undefined;
|
|
9108
9072
|
};
|
|
9109
9073
|
output: {
|
|
9110
9074
|
clientId: string;
|
|
@@ -9135,7 +9099,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
9135
9099
|
scopes: string[];
|
|
9136
9100
|
status: string;
|
|
9137
9101
|
createdAt: string;
|
|
9138
|
-
createdBy: string & import("zod").$brand<"UUID"
|
|
9102
|
+
createdBy: (string & import("zod").$brand<"UUID">) | null;
|
|
9139
9103
|
}[];
|
|
9140
9104
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
9141
9105
|
}>;
|
|
@@ -9150,7 +9114,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
9150
9114
|
status: string;
|
|
9151
9115
|
shaSecret: string | null;
|
|
9152
9116
|
createdAt: string;
|
|
9153
|
-
createdBy: string & import("zod").$brand<"UUID"
|
|
9117
|
+
createdBy: (string & import("zod").$brand<"UUID">) | null;
|
|
9154
9118
|
};
|
|
9155
9119
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
9156
9120
|
}>;
|
|
@@ -85,17 +85,17 @@ export declare const now: typeof todayDateTimeValueSerializer;
|
|
|
85
85
|
export declare const user: typeof userSerializer & {
|
|
86
86
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
87
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.archive" | "record.
|
|
89
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
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.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";
|
|
89
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
90
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.archive" | "record.
|
|
94
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
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.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";
|
|
94
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
95
95
|
}) => {
|
|
96
96
|
$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.archive" | "record.
|
|
98
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
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.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
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
hasScope: (scope: string) => JSONSchema;
|
|
@@ -75,7 +75,7 @@ export declare function areConditionsMet(conditions: FieldConditional[], values:
|
|
|
75
75
|
* evaluated against the event, e.g. `flag('sealed')`), returns whether the
|
|
76
76
|
* field is currently secured for the given event.
|
|
77
77
|
*/
|
|
78
|
-
export declare function isFieldSecured(field: Pick<FieldConfig, 'secured'>, event: EventIndex, context
|
|
78
|
+
export declare function isFieldSecured(field: Pick<FieldConfig, 'secured'>, event: EventIndex, context: ValidatorContext): boolean;
|
|
79
79
|
export type EventValidatorContext = {
|
|
80
80
|
document: EventDocument;
|
|
81
81
|
state: EventIndex;
|
|
@@ -368,6 +368,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
368
368
|
id: z.ZodString;
|
|
369
369
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
370
370
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
371
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
371
372
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
372
373
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
373
374
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -375,6 +376,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
375
376
|
id: z.ZodString;
|
|
376
377
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
377
378
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
378
380
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
379
381
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
380
382
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -424,6 +426,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
424
426
|
id: z.ZodString;
|
|
425
427
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
426
428
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
429
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
427
430
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
428
431
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
429
432
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -431,6 +434,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
431
434
|
id: z.ZodString;
|
|
432
435
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
433
436
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
437
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
434
438
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
435
439
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
436
440
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -111,7 +111,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
111
111
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
112
112
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
113
113
|
"record.archive": "record.archive";
|
|
114
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
115
114
|
"record.correct": "record.correct";
|
|
116
115
|
"record.create": "record.create";
|
|
117
116
|
"record.custom-action": "record.custom-action";
|
|
@@ -124,7 +123,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
124
123
|
"record.register": "record.register";
|
|
125
124
|
"record.reindex": "record.reindex";
|
|
126
125
|
"record.reject": "record.reject";
|
|
127
|
-
"record.reject-registration": "record.reject-registration";
|
|
128
126
|
"record.request-correction": "record.request-correction";
|
|
129
127
|
"record.review-duplicates": "record.review-duplicates";
|
|
130
128
|
"record.search": "record.search";
|
|
@@ -140,6 +138,8 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
140
138
|
}>;
|
|
141
139
|
$option: z.ZodEnum<{
|
|
142
140
|
accessLevel: "accessLevel";
|
|
141
|
+
createdBy: "createdBy";
|
|
142
|
+
createdIn: "createdIn";
|
|
143
143
|
declaredBy: "declaredBy";
|
|
144
144
|
declaredIn: "declaredIn";
|
|
145
145
|
event: "event";
|
|
@@ -295,7 +295,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
295
295
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
296
296
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
297
297
|
"record.archive": "record.archive";
|
|
298
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
299
298
|
"record.correct": "record.correct";
|
|
300
299
|
"record.create": "record.create";
|
|
301
300
|
"record.custom-action": "record.custom-action";
|
|
@@ -308,7 +307,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
308
307
|
"record.register": "record.register";
|
|
309
308
|
"record.reindex": "record.reindex";
|
|
310
309
|
"record.reject": "record.reject";
|
|
311
|
-
"record.reject-registration": "record.reject-registration";
|
|
312
310
|
"record.request-correction": "record.request-correction";
|
|
313
311
|
"record.review-duplicates": "record.review-duplicates";
|
|
314
312
|
"record.search": "record.search";
|
|
@@ -324,6 +322,8 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
324
322
|
}>;
|
|
325
323
|
$option: z.ZodEnum<{
|
|
326
324
|
accessLevel: "accessLevel";
|
|
325
|
+
createdBy: "createdBy";
|
|
326
|
+
createdIn: "createdIn";
|
|
327
327
|
declaredBy: "declaredBy";
|
|
328
328
|
declaredIn: "declaredIn";
|
|
329
329
|
event: "event";
|
|
@@ -455,7 +455,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
455
455
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
456
456
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
457
457
|
"record.archive": "record.archive";
|
|
458
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
459
458
|
"record.correct": "record.correct";
|
|
460
459
|
"record.create": "record.create";
|
|
461
460
|
"record.custom-action": "record.custom-action";
|
|
@@ -468,7 +467,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
468
467
|
"record.register": "record.register";
|
|
469
468
|
"record.reindex": "record.reindex";
|
|
470
469
|
"record.reject": "record.reject";
|
|
471
|
-
"record.reject-registration": "record.reject-registration";
|
|
472
470
|
"record.request-correction": "record.request-correction";
|
|
473
471
|
"record.review-duplicates": "record.review-duplicates";
|
|
474
472
|
"record.search": "record.search";
|
|
@@ -484,6 +482,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
484
482
|
}>;
|
|
485
483
|
$option: z.ZodEnum<{
|
|
486
484
|
accessLevel: "accessLevel";
|
|
485
|
+
createdBy: "createdBy";
|
|
486
|
+
createdIn: "createdIn";
|
|
487
487
|
declaredBy: "declaredBy";
|
|
488
488
|
declaredIn: "declaredIn";
|
|
489
489
|
event: "event";
|
|
@@ -607,7 +607,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
607
607
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
608
608
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
609
609
|
"record.archive": "record.archive";
|
|
610
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
611
610
|
"record.correct": "record.correct";
|
|
612
611
|
"record.create": "record.create";
|
|
613
612
|
"record.custom-action": "record.custom-action";
|
|
@@ -620,7 +619,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
620
619
|
"record.register": "record.register";
|
|
621
620
|
"record.reindex": "record.reindex";
|
|
622
621
|
"record.reject": "record.reject";
|
|
623
|
-
"record.reject-registration": "record.reject-registration";
|
|
624
622
|
"record.request-correction": "record.request-correction";
|
|
625
623
|
"record.review-duplicates": "record.review-duplicates";
|
|
626
624
|
"record.search": "record.search";
|
|
@@ -636,6 +634,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
636
634
|
}>;
|
|
637
635
|
$option: z.ZodEnum<{
|
|
638
636
|
accessLevel: "accessLevel";
|
|
637
|
+
createdBy: "createdBy";
|
|
638
|
+
createdIn: "createdIn";
|
|
639
639
|
declaredBy: "declaredBy";
|
|
640
640
|
declaredIn: "declaredIn";
|
|
641
641
|
event: "event";
|
|
@@ -770,7 +770,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
770
770
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
771
771
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
772
772
|
"record.archive": "record.archive";
|
|
773
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
774
773
|
"record.correct": "record.correct";
|
|
775
774
|
"record.create": "record.create";
|
|
776
775
|
"record.custom-action": "record.custom-action";
|
|
@@ -783,7 +782,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
783
782
|
"record.register": "record.register";
|
|
784
783
|
"record.reindex": "record.reindex";
|
|
785
784
|
"record.reject": "record.reject";
|
|
786
|
-
"record.reject-registration": "record.reject-registration";
|
|
787
785
|
"record.request-correction": "record.request-correction";
|
|
788
786
|
"record.review-duplicates": "record.review-duplicates";
|
|
789
787
|
"record.search": "record.search";
|
|
@@ -799,6 +797,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
799
797
|
}>;
|
|
800
798
|
$option: z.ZodEnum<{
|
|
801
799
|
accessLevel: "accessLevel";
|
|
800
|
+
createdBy: "createdBy";
|
|
801
|
+
createdIn: "createdIn";
|
|
802
802
|
declaredBy: "declaredBy";
|
|
803
803
|
declaredIn: "declaredIn";
|
|
804
804
|
event: "event";
|
|
@@ -922,7 +922,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
922
922
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
923
923
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
924
924
|
"record.archive": "record.archive";
|
|
925
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
926
925
|
"record.correct": "record.correct";
|
|
927
926
|
"record.create": "record.create";
|
|
928
927
|
"record.custom-action": "record.custom-action";
|
|
@@ -935,7 +934,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
935
934
|
"record.register": "record.register";
|
|
936
935
|
"record.reindex": "record.reindex";
|
|
937
936
|
"record.reject": "record.reject";
|
|
938
|
-
"record.reject-registration": "record.reject-registration";
|
|
939
937
|
"record.request-correction": "record.request-correction";
|
|
940
938
|
"record.review-duplicates": "record.review-duplicates";
|
|
941
939
|
"record.search": "record.search";
|
|
@@ -951,6 +949,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
951
949
|
}>;
|
|
952
950
|
$option: z.ZodEnum<{
|
|
953
951
|
accessLevel: "accessLevel";
|
|
952
|
+
createdBy: "createdBy";
|
|
953
|
+
createdIn: "createdIn";
|
|
954
954
|
declaredBy: "declaredBy";
|
|
955
955
|
declaredIn: "declaredIn";
|
|
956
956
|
event: "event";
|
|
@@ -1891,7 +1891,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1891
1891
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
1892
1892
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
1893
1893
|
"record.archive": "record.archive";
|
|
1894
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
1895
1894
|
"record.correct": "record.correct";
|
|
1896
1895
|
"record.create": "record.create";
|
|
1897
1896
|
"record.custom-action": "record.custom-action";
|
|
@@ -1904,7 +1903,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1904
1903
|
"record.register": "record.register";
|
|
1905
1904
|
"record.reindex": "record.reindex";
|
|
1906
1905
|
"record.reject": "record.reject";
|
|
1907
|
-
"record.reject-registration": "record.reject-registration";
|
|
1908
1906
|
"record.request-correction": "record.request-correction";
|
|
1909
1907
|
"record.review-duplicates": "record.review-duplicates";
|
|
1910
1908
|
"record.search": "record.search";
|
|
@@ -1920,6 +1918,8 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1920
1918
|
}>;
|
|
1921
1919
|
$option: z.ZodEnum<{
|
|
1922
1920
|
accessLevel: "accessLevel";
|
|
1921
|
+
createdBy: "createdBy";
|
|
1922
|
+
createdIn: "createdIn";
|
|
1923
1923
|
declaredBy: "declaredBy";
|
|
1924
1924
|
declaredIn: "declaredIn";
|
|
1925
1925
|
event: "event";
|
|
@@ -1935,7 +1935,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1935
1935
|
}>;
|
|
1936
1936
|
}, z.core.$strip>]>;
|
|
1937
1937
|
}, z.core.$strip>>;
|
|
1938
|
-
listHistoricalNames: z.ZodOptional<z.ZodBoolean>;
|
|
1939
1938
|
activeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1940
1939
|
anchorToDateOfEvent: z.ZodOptional<z.ZodBoolean>;
|
|
1941
1940
|
}, z.core.$strip>;
|
|
@@ -2027,7 +2026,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2027
2026
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
2028
2027
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
2029
2028
|
"record.archive": "record.archive";
|
|
2030
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
2031
2029
|
"record.correct": "record.correct";
|
|
2032
2030
|
"record.create": "record.create";
|
|
2033
2031
|
"record.custom-action": "record.custom-action";
|
|
@@ -2040,7 +2038,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2040
2038
|
"record.register": "record.register";
|
|
2041
2039
|
"record.reindex": "record.reindex";
|
|
2042
2040
|
"record.reject": "record.reject";
|
|
2043
|
-
"record.reject-registration": "record.reject-registration";
|
|
2044
2041
|
"record.request-correction": "record.request-correction";
|
|
2045
2042
|
"record.review-duplicates": "record.review-duplicates";
|
|
2046
2043
|
"record.search": "record.search";
|
|
@@ -2056,6 +2053,8 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2056
2053
|
}>;
|
|
2057
2054
|
$option: z.ZodEnum<{
|
|
2058
2055
|
accessLevel: "accessLevel";
|
|
2056
|
+
createdBy: "createdBy";
|
|
2057
|
+
createdIn: "createdIn";
|
|
2059
2058
|
declaredBy: "declaredBy";
|
|
2060
2059
|
declaredIn: "declaredIn";
|
|
2061
2060
|
event: "event";
|
|
@@ -2071,7 +2070,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2071
2070
|
}>;
|
|
2072
2071
|
}, z.core.$strip>]>;
|
|
2073
2072
|
}, z.core.$strip>>;
|
|
2074
|
-
listHistoricalNames: z.ZodOptional<z.ZodBoolean>;
|
|
2075
2073
|
activeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2076
2074
|
anchorToDateOfEvent: z.ZodOptional<z.ZodBoolean>;
|
|
2077
2075
|
}, z.core.$strip>>;
|
|
@@ -2234,7 +2232,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2234
2232
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
2235
2233
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
2236
2234
|
"record.archive": "record.archive";
|
|
2237
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
2238
2235
|
"record.correct": "record.correct";
|
|
2239
2236
|
"record.create": "record.create";
|
|
2240
2237
|
"record.custom-action": "record.custom-action";
|
|
@@ -2247,7 +2244,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2247
2244
|
"record.register": "record.register";
|
|
2248
2245
|
"record.reindex": "record.reindex";
|
|
2249
2246
|
"record.reject": "record.reject";
|
|
2250
|
-
"record.reject-registration": "record.reject-registration";
|
|
2251
2247
|
"record.request-correction": "record.request-correction";
|
|
2252
2248
|
"record.review-duplicates": "record.review-duplicates";
|
|
2253
2249
|
"record.search": "record.search";
|
|
@@ -2263,6 +2259,8 @@ declare const Facility: z.ZodObject<{
|
|
|
2263
2259
|
}>;
|
|
2264
2260
|
$option: z.ZodEnum<{
|
|
2265
2261
|
accessLevel: "accessLevel";
|
|
2262
|
+
createdBy: "createdBy";
|
|
2263
|
+
createdIn: "createdIn";
|
|
2266
2264
|
declaredBy: "declaredBy";
|
|
2267
2265
|
declaredIn: "declaredIn";
|
|
2268
2266
|
event: "event";
|
|
@@ -2278,7 +2276,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2278
2276
|
}>;
|
|
2279
2277
|
}, z.core.$strip>]>;
|
|
2280
2278
|
}, z.core.$strip>>;
|
|
2281
|
-
listHistoricalNames: z.ZodOptional<z.ZodBoolean>;
|
|
2282
2279
|
activeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2283
2280
|
anchorToDateOfEvent: z.ZodOptional<z.ZodBoolean>;
|
|
2284
2281
|
}, z.core.$strip>>;
|
|
@@ -2356,7 +2353,6 @@ declare const Office: z.ZodObject<{
|
|
|
2356
2353
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
2357
2354
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
2358
2355
|
"record.archive": "record.archive";
|
|
2359
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
2360
2356
|
"record.correct": "record.correct";
|
|
2361
2357
|
"record.create": "record.create";
|
|
2362
2358
|
"record.custom-action": "record.custom-action";
|
|
@@ -2369,7 +2365,6 @@ declare const Office: z.ZodObject<{
|
|
|
2369
2365
|
"record.register": "record.register";
|
|
2370
2366
|
"record.reindex": "record.reindex";
|
|
2371
2367
|
"record.reject": "record.reject";
|
|
2372
|
-
"record.reject-registration": "record.reject-registration";
|
|
2373
2368
|
"record.request-correction": "record.request-correction";
|
|
2374
2369
|
"record.review-duplicates": "record.review-duplicates";
|
|
2375
2370
|
"record.search": "record.search";
|
|
@@ -2385,6 +2380,8 @@ declare const Office: z.ZodObject<{
|
|
|
2385
2380
|
}>;
|
|
2386
2381
|
$option: z.ZodEnum<{
|
|
2387
2382
|
accessLevel: "accessLevel";
|
|
2383
|
+
createdBy: "createdBy";
|
|
2384
|
+
createdIn: "createdIn";
|
|
2388
2385
|
declaredBy: "declaredBy";
|
|
2389
2386
|
declaredIn: "declaredIn";
|
|
2390
2387
|
event: "event";
|
|
@@ -2400,7 +2397,6 @@ declare const Office: z.ZodObject<{
|
|
|
2400
2397
|
}>;
|
|
2401
2398
|
}, z.core.$strip>]>;
|
|
2402
2399
|
}, z.core.$strip>>;
|
|
2403
|
-
listHistoricalNames: z.ZodOptional<z.ZodBoolean>;
|
|
2404
2400
|
activeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2405
2401
|
anchorToDateOfEvent: z.ZodOptional<z.ZodBoolean>;
|
|
2406
2402
|
}, z.core.$strip>>;
|
|
@@ -2564,7 +2560,6 @@ declare const Address: z.ZodObject<{
|
|
|
2564
2560
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
2565
2561
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
2566
2562
|
"record.archive": "record.archive";
|
|
2567
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
2568
2563
|
"record.correct": "record.correct";
|
|
2569
2564
|
"record.create": "record.create";
|
|
2570
2565
|
"record.custom-action": "record.custom-action";
|
|
@@ -2577,7 +2572,6 @@ declare const Address: z.ZodObject<{
|
|
|
2577
2572
|
"record.register": "record.register";
|
|
2578
2573
|
"record.reindex": "record.reindex";
|
|
2579
2574
|
"record.reject": "record.reject";
|
|
2580
|
-
"record.reject-registration": "record.reject-registration";
|
|
2581
2575
|
"record.request-correction": "record.request-correction";
|
|
2582
2576
|
"record.review-duplicates": "record.review-duplicates";
|
|
2583
2577
|
"record.search": "record.search";
|
|
@@ -2593,6 +2587,8 @@ declare const Address: z.ZodObject<{
|
|
|
2593
2587
|
}>;
|
|
2594
2588
|
$option: z.ZodEnum<{
|
|
2595
2589
|
accessLevel: "accessLevel";
|
|
2590
|
+
createdBy: "createdBy";
|
|
2591
|
+
createdIn: "createdIn";
|
|
2596
2592
|
declaredBy: "declaredBy";
|
|
2597
2593
|
declaredIn: "declaredIn";
|
|
2598
2594
|
event: "event";
|
|
@@ -2608,7 +2604,6 @@ declare const Address: z.ZodObject<{
|
|
|
2608
2604
|
}>;
|
|
2609
2605
|
}, z.core.$strip>]>;
|
|
2610
2606
|
}, z.core.$strip>>;
|
|
2611
|
-
listHistoricalNames: z.ZodOptional<z.ZodBoolean>;
|
|
2612
2607
|
activeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2613
2608
|
anchorToDateOfEvent: z.ZodOptional<z.ZodBoolean>;
|
|
2614
2609
|
}, z.core.$strip>>;
|
|
@@ -2827,13 +2822,19 @@ declare const ButtonField: z.ZodObject<{
|
|
|
2827
2822
|
}, z.core.$strip>;
|
|
2828
2823
|
}, z.core.$strip>;
|
|
2829
2824
|
export type ButtonField = z.infer<typeof ButtonField>;
|
|
2825
|
+
declare const FieldGroupConfiguration: z.ZodObject<{
|
|
2826
|
+
separator: z.ZodOptional<z.ZodString>;
|
|
2827
|
+
hideEmptyFields: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2828
|
+
}, z.core.$strip>;
|
|
2830
2829
|
type FieldGroupInput = z.input<typeof BaseField> & {
|
|
2831
2830
|
type: typeof FieldType.FIELD_GROUP;
|
|
2832
2831
|
fields: FieldConfigInput[];
|
|
2832
|
+
configuration?: z.input<typeof FieldGroupConfiguration>;
|
|
2833
2833
|
};
|
|
2834
2834
|
export type FieldGroup = BaseField & {
|
|
2835
2835
|
type: typeof FieldType.FIELD_GROUP;
|
|
2836
2836
|
fields: FieldConfig[];
|
|
2837
|
+
configuration?: z.infer<typeof FieldGroupConfiguration>;
|
|
2837
2838
|
};
|
|
2838
2839
|
declare const AlphaPrintButton: z.ZodObject<{
|
|
2839
2840
|
id: z.ZodString;
|
|
@@ -5,6 +5,7 @@ export declare const DeclarationFormConfig: z.ZodObject<{
|
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
7
7
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
8
9
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
9
10
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
10
11
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -18,6 +19,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
18
19
|
id: z.ZodString;
|
|
19
20
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
20
21
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
21
23
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
22
24
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
23
25
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -25,6 +27,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
25
27
|
id: z.ZodString;
|
|
26
28
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
27
29
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
28
31
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
29
32
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
30
33
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -50,6 +53,7 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
50
53
|
id: z.ZodString;
|
|
51
54
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
52
55
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
53
57
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
54
58
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
55
59
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -60,6 +64,7 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
60
64
|
id: z.ZodString;
|
|
61
65
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
62
66
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
63
68
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
64
69
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
65
70
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -67,6 +72,7 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
67
72
|
id: z.ZodString;
|
|
68
73
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
69
74
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
70
76
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
71
77
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
72
78
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -9,6 +9,7 @@ export declare const FormPageConfig: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodString;
|
|
10
10
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
11
11
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
12
13
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
13
14
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
14
15
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -31,6 +32,7 @@ export declare const VerificationPageConfig: z.ZodObject<{
|
|
|
31
32
|
id: z.ZodString;
|
|
32
33
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
33
34
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
34
36
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
35
37
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
36
38
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -52,6 +54,7 @@ export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
52
54
|
id: z.ZodString;
|
|
53
55
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
54
56
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
55
58
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
56
59
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
57
60
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -59,6 +62,7 @@ export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
59
62
|
id: z.ZodString;
|
|
60
63
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
61
64
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
62
66
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
63
67
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
64
68
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -17,6 +17,10 @@ export declare const LocationStatus: z.ZodEnum<{
|
|
|
17
17
|
inactive: "inactive";
|
|
18
18
|
}>;
|
|
19
19
|
export type LocationStatus = z.infer<typeof LocationStatus>;
|
|
20
|
+
/** Thrown when a user's assigned office is inactive and must not be allowed to authenticate. */
|
|
21
|
+
export declare class InactiveOfficeError extends Error {
|
|
22
|
+
constructor(message?: string);
|
|
23
|
+
}
|
|
20
24
|
/**
|
|
21
25
|
* A single element of the `versions` history of a location or administrative
|
|
22
26
|
* area. Versions are sorted ascending by `effectiveFrom` ('0001-01-01' is used
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UUID } from '../uuid';
|
|
2
2
|
import { ActionDocument, ActionUpdate } from './ActionDocument';
|
|
3
|
+
import { ValidatorContext } from '../conditionals/validate';
|
|
3
4
|
import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnarchiveActionInput, UnassignActionInput } from './ActionInput';
|
|
4
5
|
import { ActionType } from './ActionType';
|
|
5
6
|
import { Draft } from './Draft';
|
|
@@ -9,7 +10,7 @@ import { EventIndex } from './EventIndex';
|
|
|
9
10
|
import { EventInput } from './EventInput';
|
|
10
11
|
import { TranslationConfig } from './TranslationConfig';
|
|
11
12
|
import { FieldConfig } from './FieldConfig';
|
|
12
|
-
import { LocationVersion, SetLocationPayload, SetAdministrativeAreaPayload } from './locations';
|
|
13
|
+
import { LocationVersion, SetLocationPayload, SetAdministrativeAreaPayload, ClientAdministrativeArea } from './locations';
|
|
13
14
|
import { WorkqueueConfig } from './WorkqueueConfig';
|
|
14
15
|
import * as z from 'zod/v4';
|
|
15
16
|
import { DocumentPath } from '../documents';
|
|
@@ -295,4 +296,20 @@ export declare const generateEventConfig: ({ id, fields, placeOfEventId, dateOfE
|
|
|
295
296
|
placeOfEventId?: string;
|
|
296
297
|
dateOfEventId?: string;
|
|
297
298
|
}) => EventConfig;
|
|
299
|
+
/**
|
|
300
|
+
* Get the leaf administrative area IDs from a list of administrative areas.
|
|
301
|
+
*
|
|
302
|
+
* A leaf administrative area is defined as an administrative area that does not have any children in the provided list.
|
|
303
|
+
* AdministrativeArea might have a CRVS_OFFICE as children, but is still considered to be a leaf administrative area.
|
|
304
|
+
*
|
|
305
|
+
* @param administrativeAreas - The list of administrative areas to search.
|
|
306
|
+
* @returns The list of leaf administrative area IDs.
|
|
307
|
+
*/
|
|
308
|
+
export declare function getLeafAdministrativeAreaIds(administrativeAreas: Map<UUID, ClientAdministrativeArea>): Array<{
|
|
309
|
+
id: UUID;
|
|
310
|
+
}>;
|
|
311
|
+
export declare function generateTestValidatorContext(userRole?: TestUserRole, eventWithConfig?: {
|
|
312
|
+
event: EventDocument;
|
|
313
|
+
eventConfig: EventConfig;
|
|
314
|
+
}): ValidatorContext;
|
|
298
315
|
//# sourceMappingURL=test.utils.d.ts.map
|