@opencrvs/toolkit 2.0.0-rc.c7042e2 → 2.0.0-rc.c771d1a
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/dist/application-config/index.js +7 -1
- package/dist/cli.js +1 -1
- package/dist/commons/api/router.d.ts +26 -17
- package/dist/commons/events/ActionConfig.d.ts +28 -2
- package/dist/commons/events/AdvancedSearchConfig.d.ts +342 -0
- package/dist/commons/events/FieldConfig.d.ts +1 -0
- package/dist/commons/events/FieldType.d.ts +1 -0
- package/dist/commons/events/FieldTypeMapping.d.ts +1 -1
- package/dist/commons/events/field.d.ts +6 -0
- package/dist/commons/events/state/utils.d.ts +12 -290
- package/dist/events/index.js +157 -63
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
- package/dist/migrations/v2.0/index.js +1 -1
- package/dist/notification/index.js +99 -3
- package/opencrvs-toolkit-2.0.0-rc.c771d1a.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.c7042e2.tgz +0 -0
|
@@ -206,6 +206,11 @@ var FieldTypesToHideInReview = [
|
|
|
206
206
|
FieldType.ALPHA_PRINT_BUTTON,
|
|
207
207
|
FieldType.ALPHA_HIDDEN
|
|
208
208
|
];
|
|
209
|
+
var HiddenFieldTypes = [
|
|
210
|
+
FieldType.HTTP,
|
|
211
|
+
FieldType.QUERY_PARAM_READER,
|
|
212
|
+
FieldType.ALPHA_HIDDEN
|
|
213
|
+
];
|
|
209
214
|
|
|
210
215
|
// ../commons/src/events/FieldValue.ts
|
|
211
216
|
var z7 = __toESM(require("zod/v4"));
|
|
@@ -324,7 +329,7 @@ var PlainDate = import_zod.z.string().date().brand("PlainDate").describe("Date i
|
|
|
324
329
|
// ../commons/src/events/FieldValue.ts
|
|
325
330
|
var TextValue = z7.string();
|
|
326
331
|
var HiddenFieldValue = z7.string();
|
|
327
|
-
var NonEmptyTextValue =
|
|
332
|
+
var NonEmptyTextValue = z7.string().trim().min(1);
|
|
328
333
|
var DateValue = z7.iso.date().describe("Date in the format YYYY-MM-DD");
|
|
329
334
|
var AgeValue = z7.object({
|
|
330
335
|
age: z7.number(),
|
|
@@ -1495,6 +1500,7 @@ var NumberField = BaseField.extend({
|
|
|
1495
1500
|
configuration: import_v43.default.object({
|
|
1496
1501
|
min: import_v43.default.number().optional().describe("Minimum value"),
|
|
1497
1502
|
max: import_v43.default.number().optional().describe("Maximum value"),
|
|
1503
|
+
integer: import_v43.default.boolean().optional().describe("When true, only whole numbers are allowed"),
|
|
1498
1504
|
prefix: TranslationConfig.optional(),
|
|
1499
1505
|
postfix: TranslationConfig.optional()
|
|
1500
1506
|
}).optional()
|
package/dist/cli.js
CHANGED
|
@@ -4300,7 +4300,7 @@ Saved ${handlerRelPath}.`);
|
|
|
4300
4300
|
// src/migrations/v2.0/checkout-upstream-files.ts
|
|
4301
4301
|
var import_child_process = require("child_process");
|
|
4302
4302
|
var UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
|
|
4303
|
-
var UPSTREAM_BRANCH = "release
|
|
4303
|
+
var UPSTREAM_BRANCH = "release/2.0.0";
|
|
4304
4304
|
var TEMP_REMOTE = "opencrvs-upgrade-v19-v20-codemod";
|
|
4305
4305
|
var FILES_TO_CHECKOUT = [
|
|
4306
4306
|
"src/analytics/analytics.ts",
|
|
@@ -417,7 +417,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
417
417
|
createdByUserType: "system" | "user";
|
|
418
418
|
createdAt: string;
|
|
419
419
|
createdBy: string;
|
|
420
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
420
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
421
421
|
status: "Rejected";
|
|
422
422
|
createdByRole?: string | undefined;
|
|
423
423
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -729,7 +729,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
729
729
|
createdByUserType: "system" | "user";
|
|
730
730
|
createdAt: string;
|
|
731
731
|
createdBy: string;
|
|
732
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
732
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
733
733
|
status: "Rejected";
|
|
734
734
|
createdByRole?: string | undefined;
|
|
735
735
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -1040,7 +1040,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1040
1040
|
createdByUserType: "system" | "user";
|
|
1041
1041
|
createdAt: string;
|
|
1042
1042
|
createdBy: string;
|
|
1043
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
1043
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
1044
1044
|
status: "Rejected";
|
|
1045
1045
|
createdByRole?: string | undefined;
|
|
1046
1046
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -1090,7 +1090,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1090
1090
|
transactionId: string;
|
|
1091
1091
|
createdAt: string;
|
|
1092
1092
|
action: {
|
|
1093
|
-
type: "
|
|
1093
|
+
type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
|
|
1094
1094
|
transactionId: string;
|
|
1095
1095
|
createdByUserType: "system" | "user";
|
|
1096
1096
|
createdAt: string;
|
|
@@ -1109,7 +1109,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1109
1109
|
input: {
|
|
1110
1110
|
transactionId: string;
|
|
1111
1111
|
eventId: string;
|
|
1112
|
-
type: "
|
|
1112
|
+
type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
|
|
1113
1113
|
status: "Requested" | "Accepted" | "Rejected";
|
|
1114
1114
|
createdAtLocation?: string | null | undefined;
|
|
1115
1115
|
declaration?: Record<string, unknown> | undefined;
|
|
@@ -1125,7 +1125,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1125
1125
|
transactionId: string;
|
|
1126
1126
|
createdAt: string;
|
|
1127
1127
|
action: {
|
|
1128
|
-
type: "
|
|
1128
|
+
type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
|
|
1129
1129
|
transactionId: string;
|
|
1130
1130
|
createdByUserType: "system" | "user";
|
|
1131
1131
|
createdAt: string;
|
|
@@ -1788,7 +1788,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1788
1788
|
createdByUserType: "system" | "user";
|
|
1789
1789
|
createdAt: string;
|
|
1790
1790
|
createdBy: string;
|
|
1791
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
1791
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
1792
1792
|
status: "Rejected";
|
|
1793
1793
|
createdByRole?: string | undefined;
|
|
1794
1794
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -2131,7 +2131,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2131
2131
|
createdByUserType: "system" | "user";
|
|
2132
2132
|
createdAt: string;
|
|
2133
2133
|
createdBy: string;
|
|
2134
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
2134
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
2135
2135
|
status: "Rejected";
|
|
2136
2136
|
createdByRole?: string | undefined;
|
|
2137
2137
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -4217,7 +4217,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4217
4217
|
createdByUserType: "system" | "user";
|
|
4218
4218
|
createdAt: string;
|
|
4219
4219
|
createdBy: string;
|
|
4220
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
4220
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
4221
4221
|
status: "Rejected";
|
|
4222
4222
|
createdByRole?: string | undefined;
|
|
4223
4223
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -4828,7 +4828,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4828
4828
|
createdByUserType: "system" | "user";
|
|
4829
4829
|
createdAt: string;
|
|
4830
4830
|
createdBy: string;
|
|
4831
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
4831
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
4832
4832
|
status: "Rejected";
|
|
4833
4833
|
createdByRole?: string | undefined;
|
|
4834
4834
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -5149,7 +5149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5149
5149
|
createdByUserType: "system" | "user";
|
|
5150
5150
|
createdAt: string;
|
|
5151
5151
|
createdBy: string;
|
|
5152
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
5152
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
5153
5153
|
status: "Rejected";
|
|
5154
5154
|
createdByRole?: string | undefined;
|
|
5155
5155
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -6403,7 +6403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6403
6403
|
createdByUserType: "system" | "user";
|
|
6404
6404
|
createdAt: string;
|
|
6405
6405
|
createdBy: string;
|
|
6406
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
6406
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
6407
6407
|
status: "Rejected";
|
|
6408
6408
|
createdByRole?: string | undefined;
|
|
6409
6409
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -6723,7 +6723,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6723
6723
|
createdByUserType: "system" | "user";
|
|
6724
6724
|
createdAt: string;
|
|
6725
6725
|
createdBy: string;
|
|
6726
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
6726
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
6727
6727
|
status: "Rejected";
|
|
6728
6728
|
createdByRole?: string | undefined;
|
|
6729
6729
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -7086,7 +7086,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7086
7086
|
createdByUserType: "system" | "user";
|
|
7087
7087
|
createdAt: string;
|
|
7088
7088
|
createdBy: string;
|
|
7089
|
-
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "
|
|
7089
|
+
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
7090
7090
|
status: "Rejected";
|
|
7091
7091
|
createdByRole?: string | undefined;
|
|
7092
7092
|
createdBySignature?: string | null | undefined;
|
|
@@ -7304,7 +7304,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7304
7304
|
count?: number | undefined;
|
|
7305
7305
|
timeStart?: string | undefined;
|
|
7306
7306
|
timeEnd?: string | undefined;
|
|
7307
|
-
actionTypes?: ("
|
|
7307
|
+
actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined;
|
|
7308
7308
|
};
|
|
7309
7309
|
output: {
|
|
7310
7310
|
results: {
|
|
@@ -7374,9 +7374,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7374
7374
|
output: void;
|
|
7375
7375
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
7376
7376
|
}>;
|
|
7377
|
-
|
|
7377
|
+
requestEmailChange: import("@trpc/server").TRPCMutationProcedure<{
|
|
7378
7378
|
input: {
|
|
7379
|
-
|
|
7379
|
+
email: string;
|
|
7380
|
+
};
|
|
7381
|
+
output: {
|
|
7382
|
+
nonce: string;
|
|
7383
|
+
};
|
|
7384
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
7385
|
+
}>;
|
|
7386
|
+
requestPhoneChange: import("@trpc/server").TRPCMutationProcedure<{
|
|
7387
|
+
input: {
|
|
7388
|
+
phoneNumber: string;
|
|
7380
7389
|
};
|
|
7381
7390
|
output: {
|
|
7382
7391
|
nonce: string;
|
|
@@ -85,6 +85,32 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
85
85
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
86
86
|
}, z.core.$strip>;
|
|
87
87
|
conditionals: z.ZodOptional<z.ZodNever>;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
90
|
+
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
+
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
92
|
+
readonly INCOMPLETE: "incomplete";
|
|
93
|
+
readonly REJECTED: "rejected";
|
|
94
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
95
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
96
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
97
|
+
}>]>, z.ZodString]>;
|
|
98
|
+
operation: z.ZodEnum<{
|
|
99
|
+
add: "add";
|
|
100
|
+
remove: "remove";
|
|
101
|
+
}>;
|
|
102
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
103
|
+
}, z.core.$strip>>>>;
|
|
104
|
+
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
105
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
106
|
+
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<"SHOW">;
|
|
108
|
+
conditional: z.ZodAny;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
111
|
+
conditional: z.ZodAny;
|
|
112
|
+
}, z.core.$strip>], "type">>>;
|
|
113
|
+
type: z.ZodLiteral<"NOTIFY">;
|
|
88
114
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
115
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
90
116
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -388,8 +414,8 @@ export declare const actionConfigTypes: Set<ActionConfigTypes>;
|
|
|
388
414
|
*
|
|
389
415
|
* These are not the same as the broader workflow `action.type` values.
|
|
390
416
|
* `ActionConfigTypes` includes only the action kinds that can be defined
|
|
391
|
-
* in the country configuration (e.g. DECLARE, VALIDATE, CUSTOM), and
|
|
392
|
-
* excludes workflow-only types such as CREATE
|
|
417
|
+
* in the country configuration (e.g. NOTIFY, DECLARE, VALIDATE, CUSTOM), and
|
|
418
|
+
* excludes workflow-only types such as CREATE.
|
|
393
419
|
*/
|
|
394
420
|
export type ActionConfigTypes = ActionConfig['type'];
|
|
395
421
|
export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -91,6 +91,63 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
91
91
|
validator: z.ZodAny;
|
|
92
92
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
93
93
|
}, z.core.$strip>>>;
|
|
94
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
96
|
+
administrativeArea: "administrativeArea";
|
|
97
|
+
location: "location";
|
|
98
|
+
all: "all";
|
|
99
|
+
}>, z.ZodObject<{
|
|
100
|
+
$scope: z.ZodEnum<{
|
|
101
|
+
"record.search": "record.search";
|
|
102
|
+
"record.create": "record.create";
|
|
103
|
+
"record.read": "record.read";
|
|
104
|
+
"record.declare": "record.declare";
|
|
105
|
+
"record.notify": "record.notify";
|
|
106
|
+
"record.edit": "record.edit";
|
|
107
|
+
"record.reject": "record.reject";
|
|
108
|
+
"record.archive": "record.archive";
|
|
109
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
110
|
+
"record.register": "record.register";
|
|
111
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
112
|
+
"record.request-correction": "record.request-correction";
|
|
113
|
+
"record.correct": "record.correct";
|
|
114
|
+
"record.unassign-others": "record.unassign-others";
|
|
115
|
+
"record.custom-action": "record.custom-action";
|
|
116
|
+
bypassratelimit: "bypassratelimit";
|
|
117
|
+
"record.reindex": "record.reindex";
|
|
118
|
+
"user.data-seeding": "user.data-seeding";
|
|
119
|
+
"integration.create": "integration.create";
|
|
120
|
+
"record.import": "record.import";
|
|
121
|
+
"config.update-all": "config.update-all";
|
|
122
|
+
"attachment.upload": "attachment.upload";
|
|
123
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
124
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
125
|
+
"performance.read": "performance.read";
|
|
126
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
127
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
128
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
129
|
+
"record.reject-registration": "record.reject-registration";
|
|
130
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
131
|
+
"user.read": "user.read";
|
|
132
|
+
"user.create": "user.create";
|
|
133
|
+
"user.edit": "user.edit";
|
|
134
|
+
"user.search": "user.search";
|
|
135
|
+
workqueue: "workqueue";
|
|
136
|
+
"dashboard.view": "dashboard.view";
|
|
137
|
+
}>;
|
|
138
|
+
$option: z.ZodEnum<{
|
|
139
|
+
role: "role";
|
|
140
|
+
event: "event";
|
|
141
|
+
placeOfEvent: "placeOfEvent";
|
|
142
|
+
declaredIn: "declaredIn";
|
|
143
|
+
declaredBy: "declaredBy";
|
|
144
|
+
registeredIn: "registeredIn";
|
|
145
|
+
registeredBy: "registeredBy";
|
|
146
|
+
accessLevel: "accessLevel";
|
|
147
|
+
ids: "ids";
|
|
148
|
+
}>;
|
|
149
|
+
}, z.core.$strip>]>;
|
|
150
|
+
}, z.core.$strip>>;
|
|
94
151
|
fieldId: z.ZodString;
|
|
95
152
|
fieldType: z.ZodLiteral<"field">;
|
|
96
153
|
}, z.core.$strip>;
|
|
@@ -211,6 +268,63 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
211
268
|
validator: z.ZodAny;
|
|
212
269
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
213
270
|
}, z.core.$strip>>>;
|
|
271
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
272
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
273
|
+
administrativeArea: "administrativeArea";
|
|
274
|
+
location: "location";
|
|
275
|
+
all: "all";
|
|
276
|
+
}>, z.ZodObject<{
|
|
277
|
+
$scope: z.ZodEnum<{
|
|
278
|
+
"record.search": "record.search";
|
|
279
|
+
"record.create": "record.create";
|
|
280
|
+
"record.read": "record.read";
|
|
281
|
+
"record.declare": "record.declare";
|
|
282
|
+
"record.notify": "record.notify";
|
|
283
|
+
"record.edit": "record.edit";
|
|
284
|
+
"record.reject": "record.reject";
|
|
285
|
+
"record.archive": "record.archive";
|
|
286
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
287
|
+
"record.register": "record.register";
|
|
288
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
289
|
+
"record.request-correction": "record.request-correction";
|
|
290
|
+
"record.correct": "record.correct";
|
|
291
|
+
"record.unassign-others": "record.unassign-others";
|
|
292
|
+
"record.custom-action": "record.custom-action";
|
|
293
|
+
bypassratelimit: "bypassratelimit";
|
|
294
|
+
"record.reindex": "record.reindex";
|
|
295
|
+
"user.data-seeding": "user.data-seeding";
|
|
296
|
+
"integration.create": "integration.create";
|
|
297
|
+
"record.import": "record.import";
|
|
298
|
+
"config.update-all": "config.update-all";
|
|
299
|
+
"attachment.upload": "attachment.upload";
|
|
300
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
301
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
302
|
+
"performance.read": "performance.read";
|
|
303
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
304
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
305
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
306
|
+
"record.reject-registration": "record.reject-registration";
|
|
307
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
308
|
+
"user.read": "user.read";
|
|
309
|
+
"user.create": "user.create";
|
|
310
|
+
"user.edit": "user.edit";
|
|
311
|
+
"user.search": "user.search";
|
|
312
|
+
workqueue: "workqueue";
|
|
313
|
+
"dashboard.view": "dashboard.view";
|
|
314
|
+
}>;
|
|
315
|
+
$option: z.ZodEnum<{
|
|
316
|
+
role: "role";
|
|
317
|
+
event: "event";
|
|
318
|
+
placeOfEvent: "placeOfEvent";
|
|
319
|
+
declaredIn: "declaredIn";
|
|
320
|
+
declaredBy: "declaredBy";
|
|
321
|
+
registeredIn: "registeredIn";
|
|
322
|
+
registeredBy: "registeredBy";
|
|
323
|
+
accessLevel: "accessLevel";
|
|
324
|
+
ids: "ids";
|
|
325
|
+
}>;
|
|
326
|
+
}, z.core.$strip>]>;
|
|
327
|
+
}, z.core.$strip>>;
|
|
214
328
|
fieldId: z.ZodEnum<{
|
|
215
329
|
"event.updatedAt": "event.updatedAt";
|
|
216
330
|
"event.status": "event.status";
|
|
@@ -307,6 +421,63 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
307
421
|
validator: z.ZodAny;
|
|
308
422
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
309
423
|
}, z.core.$strip>>>;
|
|
424
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
426
|
+
administrativeArea: "administrativeArea";
|
|
427
|
+
location: "location";
|
|
428
|
+
all: "all";
|
|
429
|
+
}>, z.ZodObject<{
|
|
430
|
+
$scope: z.ZodEnum<{
|
|
431
|
+
"record.search": "record.search";
|
|
432
|
+
"record.create": "record.create";
|
|
433
|
+
"record.read": "record.read";
|
|
434
|
+
"record.declare": "record.declare";
|
|
435
|
+
"record.notify": "record.notify";
|
|
436
|
+
"record.edit": "record.edit";
|
|
437
|
+
"record.reject": "record.reject";
|
|
438
|
+
"record.archive": "record.archive";
|
|
439
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
440
|
+
"record.register": "record.register";
|
|
441
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
442
|
+
"record.request-correction": "record.request-correction";
|
|
443
|
+
"record.correct": "record.correct";
|
|
444
|
+
"record.unassign-others": "record.unassign-others";
|
|
445
|
+
"record.custom-action": "record.custom-action";
|
|
446
|
+
bypassratelimit: "bypassratelimit";
|
|
447
|
+
"record.reindex": "record.reindex";
|
|
448
|
+
"user.data-seeding": "user.data-seeding";
|
|
449
|
+
"integration.create": "integration.create";
|
|
450
|
+
"record.import": "record.import";
|
|
451
|
+
"config.update-all": "config.update-all";
|
|
452
|
+
"attachment.upload": "attachment.upload";
|
|
453
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
454
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
455
|
+
"performance.read": "performance.read";
|
|
456
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
457
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
458
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
459
|
+
"record.reject-registration": "record.reject-registration";
|
|
460
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
461
|
+
"user.read": "user.read";
|
|
462
|
+
"user.create": "user.create";
|
|
463
|
+
"user.edit": "user.edit";
|
|
464
|
+
"user.search": "user.search";
|
|
465
|
+
workqueue: "workqueue";
|
|
466
|
+
"dashboard.view": "dashboard.view";
|
|
467
|
+
}>;
|
|
468
|
+
$option: z.ZodEnum<{
|
|
469
|
+
role: "role";
|
|
470
|
+
event: "event";
|
|
471
|
+
placeOfEvent: "placeOfEvent";
|
|
472
|
+
declaredIn: "declaredIn";
|
|
473
|
+
declaredBy: "declaredBy";
|
|
474
|
+
registeredIn: "registeredIn";
|
|
475
|
+
registeredBy: "registeredBy";
|
|
476
|
+
accessLevel: "accessLevel";
|
|
477
|
+
ids: "ids";
|
|
478
|
+
}>;
|
|
479
|
+
}, z.core.$strip>]>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
310
481
|
fieldId: z.ZodString;
|
|
311
482
|
fieldType: z.ZodLiteral<"field">;
|
|
312
483
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -395,6 +566,63 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
395
566
|
validator: z.ZodAny;
|
|
396
567
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
397
568
|
}, z.core.$strip>>>;
|
|
569
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
570
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
571
|
+
administrativeArea: "administrativeArea";
|
|
572
|
+
location: "location";
|
|
573
|
+
all: "all";
|
|
574
|
+
}>, z.ZodObject<{
|
|
575
|
+
$scope: z.ZodEnum<{
|
|
576
|
+
"record.search": "record.search";
|
|
577
|
+
"record.create": "record.create";
|
|
578
|
+
"record.read": "record.read";
|
|
579
|
+
"record.declare": "record.declare";
|
|
580
|
+
"record.notify": "record.notify";
|
|
581
|
+
"record.edit": "record.edit";
|
|
582
|
+
"record.reject": "record.reject";
|
|
583
|
+
"record.archive": "record.archive";
|
|
584
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
585
|
+
"record.register": "record.register";
|
|
586
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
587
|
+
"record.request-correction": "record.request-correction";
|
|
588
|
+
"record.correct": "record.correct";
|
|
589
|
+
"record.unassign-others": "record.unassign-others";
|
|
590
|
+
"record.custom-action": "record.custom-action";
|
|
591
|
+
bypassratelimit: "bypassratelimit";
|
|
592
|
+
"record.reindex": "record.reindex";
|
|
593
|
+
"user.data-seeding": "user.data-seeding";
|
|
594
|
+
"integration.create": "integration.create";
|
|
595
|
+
"record.import": "record.import";
|
|
596
|
+
"config.update-all": "config.update-all";
|
|
597
|
+
"attachment.upload": "attachment.upload";
|
|
598
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
599
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
600
|
+
"performance.read": "performance.read";
|
|
601
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
602
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
603
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
604
|
+
"record.reject-registration": "record.reject-registration";
|
|
605
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
606
|
+
"user.read": "user.read";
|
|
607
|
+
"user.create": "user.create";
|
|
608
|
+
"user.edit": "user.edit";
|
|
609
|
+
"user.search": "user.search";
|
|
610
|
+
workqueue: "workqueue";
|
|
611
|
+
"dashboard.view": "dashboard.view";
|
|
612
|
+
}>;
|
|
613
|
+
$option: z.ZodEnum<{
|
|
614
|
+
role: "role";
|
|
615
|
+
event: "event";
|
|
616
|
+
placeOfEvent: "placeOfEvent";
|
|
617
|
+
declaredIn: "declaredIn";
|
|
618
|
+
declaredBy: "declaredBy";
|
|
619
|
+
registeredIn: "registeredIn";
|
|
620
|
+
registeredBy: "registeredBy";
|
|
621
|
+
accessLevel: "accessLevel";
|
|
622
|
+
ids: "ids";
|
|
623
|
+
}>;
|
|
624
|
+
}, z.core.$strip>]>;
|
|
625
|
+
}, z.core.$strip>>;
|
|
398
626
|
fieldId: z.ZodEnum<{
|
|
399
627
|
"event.updatedAt": "event.updatedAt";
|
|
400
628
|
"event.status": "event.status";
|
|
@@ -494,6 +722,63 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
494
722
|
validator: z.ZodAny;
|
|
495
723
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
496
724
|
}, z.core.$strip>>>;
|
|
725
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
726
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
727
|
+
administrativeArea: "administrativeArea";
|
|
728
|
+
location: "location";
|
|
729
|
+
all: "all";
|
|
730
|
+
}>, z.ZodObject<{
|
|
731
|
+
$scope: z.ZodEnum<{
|
|
732
|
+
"record.search": "record.search";
|
|
733
|
+
"record.create": "record.create";
|
|
734
|
+
"record.read": "record.read";
|
|
735
|
+
"record.declare": "record.declare";
|
|
736
|
+
"record.notify": "record.notify";
|
|
737
|
+
"record.edit": "record.edit";
|
|
738
|
+
"record.reject": "record.reject";
|
|
739
|
+
"record.archive": "record.archive";
|
|
740
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
741
|
+
"record.register": "record.register";
|
|
742
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
743
|
+
"record.request-correction": "record.request-correction";
|
|
744
|
+
"record.correct": "record.correct";
|
|
745
|
+
"record.unassign-others": "record.unassign-others";
|
|
746
|
+
"record.custom-action": "record.custom-action";
|
|
747
|
+
bypassratelimit: "bypassratelimit";
|
|
748
|
+
"record.reindex": "record.reindex";
|
|
749
|
+
"user.data-seeding": "user.data-seeding";
|
|
750
|
+
"integration.create": "integration.create";
|
|
751
|
+
"record.import": "record.import";
|
|
752
|
+
"config.update-all": "config.update-all";
|
|
753
|
+
"attachment.upload": "attachment.upload";
|
|
754
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
755
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
756
|
+
"performance.read": "performance.read";
|
|
757
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
758
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
759
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
760
|
+
"record.reject-registration": "record.reject-registration";
|
|
761
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
762
|
+
"user.read": "user.read";
|
|
763
|
+
"user.create": "user.create";
|
|
764
|
+
"user.edit": "user.edit";
|
|
765
|
+
"user.search": "user.search";
|
|
766
|
+
workqueue: "workqueue";
|
|
767
|
+
"dashboard.view": "dashboard.view";
|
|
768
|
+
}>;
|
|
769
|
+
$option: z.ZodEnum<{
|
|
770
|
+
role: "role";
|
|
771
|
+
event: "event";
|
|
772
|
+
placeOfEvent: "placeOfEvent";
|
|
773
|
+
declaredIn: "declaredIn";
|
|
774
|
+
declaredBy: "declaredBy";
|
|
775
|
+
registeredIn: "registeredIn";
|
|
776
|
+
registeredBy: "registeredBy";
|
|
777
|
+
accessLevel: "accessLevel";
|
|
778
|
+
ids: "ids";
|
|
779
|
+
}>;
|
|
780
|
+
}, z.core.$strip>]>;
|
|
781
|
+
}, z.core.$strip>>;
|
|
497
782
|
fieldId: z.ZodString;
|
|
498
783
|
fieldType: z.ZodLiteral<"field">;
|
|
499
784
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -582,6 +867,63 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
582
867
|
validator: z.ZodAny;
|
|
583
868
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
584
869
|
}, z.core.$strip>>>;
|
|
870
|
+
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
871
|
+
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
872
|
+
administrativeArea: "administrativeArea";
|
|
873
|
+
location: "location";
|
|
874
|
+
all: "all";
|
|
875
|
+
}>, z.ZodObject<{
|
|
876
|
+
$scope: z.ZodEnum<{
|
|
877
|
+
"record.search": "record.search";
|
|
878
|
+
"record.create": "record.create";
|
|
879
|
+
"record.read": "record.read";
|
|
880
|
+
"record.declare": "record.declare";
|
|
881
|
+
"record.notify": "record.notify";
|
|
882
|
+
"record.edit": "record.edit";
|
|
883
|
+
"record.reject": "record.reject";
|
|
884
|
+
"record.archive": "record.archive";
|
|
885
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
886
|
+
"record.register": "record.register";
|
|
887
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
888
|
+
"record.request-correction": "record.request-correction";
|
|
889
|
+
"record.correct": "record.correct";
|
|
890
|
+
"record.unassign-others": "record.unassign-others";
|
|
891
|
+
"record.custom-action": "record.custom-action";
|
|
892
|
+
bypassratelimit: "bypassratelimit";
|
|
893
|
+
"record.reindex": "record.reindex";
|
|
894
|
+
"user.data-seeding": "user.data-seeding";
|
|
895
|
+
"integration.create": "integration.create";
|
|
896
|
+
"record.import": "record.import";
|
|
897
|
+
"config.update-all": "config.update-all";
|
|
898
|
+
"attachment.upload": "attachment.upload";
|
|
899
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
900
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
901
|
+
"performance.read": "performance.read";
|
|
902
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
903
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
904
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
905
|
+
"record.reject-registration": "record.reject-registration";
|
|
906
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
907
|
+
"user.read": "user.read";
|
|
908
|
+
"user.create": "user.create";
|
|
909
|
+
"user.edit": "user.edit";
|
|
910
|
+
"user.search": "user.search";
|
|
911
|
+
workqueue: "workqueue";
|
|
912
|
+
"dashboard.view": "dashboard.view";
|
|
913
|
+
}>;
|
|
914
|
+
$option: z.ZodEnum<{
|
|
915
|
+
role: "role";
|
|
916
|
+
event: "event";
|
|
917
|
+
placeOfEvent: "placeOfEvent";
|
|
918
|
+
declaredIn: "declaredIn";
|
|
919
|
+
declaredBy: "declaredBy";
|
|
920
|
+
registeredIn: "registeredIn";
|
|
921
|
+
registeredBy: "registeredBy";
|
|
922
|
+
accessLevel: "accessLevel";
|
|
923
|
+
ids: "ids";
|
|
924
|
+
}>;
|
|
925
|
+
}, z.core.$strip>]>;
|
|
926
|
+
}, z.core.$strip>>;
|
|
585
927
|
fieldId: z.ZodEnum<{
|
|
586
928
|
"event.updatedAt": "event.updatedAt";
|
|
587
929
|
"event.status": "event.status";
|
|
@@ -267,6 +267,7 @@ declare const NumberField: z.ZodObject<{
|
|
|
267
267
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
268
268
|
min: z.ZodOptional<z.ZodNumber>;
|
|
269
269
|
max: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
270
271
|
prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
271
272
|
postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
272
273
|
}, z.core.$strip>>;
|