@opencrvs/toolkit 2.0.0-rc.6b5f496 → 2.0.0-rc.6bedc29
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 +2 -2
- package/dist/application-config/index.js +5 -15
- package/dist/cli.js +5103 -167
- package/dist/commons/api/router.d.ts +0 -8
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionConfig.d.ts +0 -176
- package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -12
- package/dist/commons/events/EventConfig.d.ts +0 -2
- package/dist/commons/events/EventIndex.d.ts +0 -11
- package/dist/commons/events/EventMetadata.d.ts +0 -26
- package/dist/commons/events/FieldConfig.d.ts +0 -10
- package/dist/commons/events/locations.d.ts +0 -1
- package/dist/commons/events/state/index.d.ts +0 -8
- package/dist/commons/events/state/utils.d.ts +0 -9
- package/dist/conditionals/index.js +5 -10
- package/dist/events/index.js +12 -130
- package/dist/migrations/v2.0/index.js +5139 -88
- package/dist/notification/index.js +8 -106
- package/dist/scopes/index.d.ts +1 -89
- package/dist/scopes/index.js +5 -10
- package/opencrvs-toolkit-2.0.0-rc.6bedc29.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- 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/index.d.ts +0 -6
- package/dist/migrations/v2.1/index.d.ts.map +0 -1
- package/dist/migrations/v2.1/index.js +0 -218
- package/opencrvs-toolkit-2.0.0-rc.6b5f496.tgz +0 -0
|
@@ -6749,14 +6749,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6749
6749
|
type: string;
|
|
6750
6750
|
status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
|
|
6751
6751
|
legalStatuses: {
|
|
6752
|
-
NOTIFIED?: {
|
|
6753
|
-
createdAt: string;
|
|
6754
|
-
createdBy: string;
|
|
6755
|
-
acceptedAt: string;
|
|
6756
|
-
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6757
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
|
6758
|
-
createdByRole?: string | undefined;
|
|
6759
|
-
} | null | undefined;
|
|
6760
6752
|
DECLARED?: {
|
|
6761
6753
|
createdAt: string;
|
|
6762
6754
|
createdBy: string;
|
|
@@ -94,16 +94,16 @@ export declare const user: typeof userSerializer & {
|
|
|
94
94
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
95
95
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
96
96
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
97
|
-
$option: "role" | "event" | "placeOfEvent" | "
|
|
97
|
+
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
101
101
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
102
|
-
$option: "role" | "event" | "placeOfEvent" | "
|
|
102
|
+
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
103
103
|
}) => {
|
|
104
104
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
105
105
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
106
|
-
$option: "role" | "event" | "placeOfEvent" | "
|
|
106
|
+
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -85,58 +85,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
85
85
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
86
86
|
}, z.core.$strip>;
|
|
87
87
|
conditionals: z.ZodOptional<z.ZodNever>;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
90
|
-
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
91
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
92
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
-
type: z.ZodLiteral<"SHOW">;
|
|
94
|
-
conditional: z.ZodAny;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
-
type: z.ZodLiteral<"ENABLE">;
|
|
97
|
-
conditional: z.ZodAny;
|
|
98
|
-
}, z.core.$strip>], "type">>>;
|
|
99
|
-
type: z.ZodLiteral<"ASSIGN">;
|
|
100
|
-
flags: z.ZodOptional<z.ZodNever>;
|
|
101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
103
|
-
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
104
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
105
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
106
|
-
type: z.ZodLiteral<"SHOW">;
|
|
107
|
-
conditional: z.ZodAny;
|
|
108
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
-
type: z.ZodLiteral<"ENABLE">;
|
|
110
|
-
conditional: z.ZodAny;
|
|
111
|
-
}, z.core.$strip>], "type">>>;
|
|
112
|
-
type: z.ZodLiteral<"UNASSIGN">;
|
|
113
|
-
flags: z.ZodOptional<z.ZodNever>;
|
|
114
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
116
|
-
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
|
-
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
118
|
-
readonly INCOMPLETE: "incomplete";
|
|
119
|
-
readonly REJECTED: "rejected";
|
|
120
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
121
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
122
|
-
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
123
|
-
}>]>, z.ZodString]>;
|
|
124
|
-
operation: z.ZodEnum<{
|
|
125
|
-
add: "add";
|
|
126
|
-
remove: "remove";
|
|
127
|
-
}>;
|
|
128
|
-
conditional: z.ZodOptional<z.ZodAny>;
|
|
129
|
-
}, z.core.$strip>>>>;
|
|
130
|
-
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
131
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
132
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
133
|
-
type: z.ZodLiteral<"SHOW">;
|
|
134
|
-
conditional: z.ZodAny;
|
|
135
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
-
type: z.ZodLiteral<"ENABLE">;
|
|
137
|
-
conditional: z.ZodAny;
|
|
138
|
-
}, z.core.$strip>], "type">>>;
|
|
139
|
-
type: z.ZodLiteral<"DELETE">;
|
|
140
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
141
89
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
142
90
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -203,78 +151,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
203
151
|
declare: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
204
152
|
register: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
205
153
|
}, z.core.$strip>>;
|
|
206
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
-
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
208
|
-
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
209
|
-
readonly INCOMPLETE: "incomplete";
|
|
210
|
-
readonly REJECTED: "rejected";
|
|
211
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
212
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
213
|
-
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
214
|
-
}>]>, z.ZodString]>;
|
|
215
|
-
operation: z.ZodEnum<{
|
|
216
|
-
add: "add";
|
|
217
|
-
remove: "remove";
|
|
218
|
-
}>;
|
|
219
|
-
conditional: z.ZodOptional<z.ZodAny>;
|
|
220
|
-
}, z.core.$strip>>>>;
|
|
221
|
-
type: z.ZodLiteral<"DUPLICATE_DETECTED">;
|
|
222
|
-
label: z.ZodOptional<z.ZodNever>;
|
|
223
|
-
supportingCopy: z.ZodOptional<z.ZodNever>;
|
|
224
|
-
icon: z.ZodOptional<z.ZodNever>;
|
|
225
|
-
conditionals: z.ZodOptional<z.ZodNever>;
|
|
226
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
228
|
-
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
229
|
-
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
230
|
-
readonly INCOMPLETE: "incomplete";
|
|
231
|
-
readonly REJECTED: "rejected";
|
|
232
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
233
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
234
|
-
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
235
|
-
}>]>, z.ZodString]>;
|
|
236
|
-
operation: z.ZodEnum<{
|
|
237
|
-
add: "add";
|
|
238
|
-
remove: "remove";
|
|
239
|
-
}>;
|
|
240
|
-
conditional: z.ZodOptional<z.ZodAny>;
|
|
241
|
-
}, z.core.$strip>>>>;
|
|
242
|
-
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
243
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
244
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
245
|
-
type: z.ZodLiteral<"SHOW">;
|
|
246
|
-
conditional: z.ZodAny;
|
|
247
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
248
|
-
type: z.ZodLiteral<"ENABLE">;
|
|
249
|
-
conditional: z.ZodAny;
|
|
250
|
-
}, z.core.$strip>], "type">>>;
|
|
251
|
-
type: z.ZodLiteral<"MARK_AS_DUPLICATE">;
|
|
252
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
253
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
254
|
-
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
255
|
-
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
256
|
-
readonly INCOMPLETE: "incomplete";
|
|
257
|
-
readonly REJECTED: "rejected";
|
|
258
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
259
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
260
|
-
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
261
|
-
}>]>, z.ZodString]>;
|
|
262
|
-
operation: z.ZodEnum<{
|
|
263
|
-
add: "add";
|
|
264
|
-
remove: "remove";
|
|
265
|
-
}>;
|
|
266
|
-
conditional: z.ZodOptional<z.ZodAny>;
|
|
267
|
-
}, z.core.$strip>>>>;
|
|
268
|
-
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
269
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
270
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
271
|
-
type: z.ZodLiteral<"SHOW">;
|
|
272
|
-
conditional: z.ZodAny;
|
|
273
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
274
|
-
type: z.ZodLiteral<"ENABLE">;
|
|
275
|
-
conditional: z.ZodAny;
|
|
276
|
-
}, z.core.$strip>], "type">>>;
|
|
277
|
-
type: z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">;
|
|
278
154
|
}, z.core.$strip>, z.ZodObject<{
|
|
279
155
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
280
156
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -444,58 +320,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
444
320
|
}, z.core.$strip>;
|
|
445
321
|
}, z.core.$strip>], "type">>;
|
|
446
322
|
}, z.core.$strip>;
|
|
447
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
448
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
449
|
-
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
450
|
-
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
451
|
-
readonly INCOMPLETE: "incomplete";
|
|
452
|
-
readonly REJECTED: "rejected";
|
|
453
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
454
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
455
|
-
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
456
|
-
}>]>, z.ZodString]>;
|
|
457
|
-
operation: z.ZodEnum<{
|
|
458
|
-
add: "add";
|
|
459
|
-
remove: "remove";
|
|
460
|
-
}>;
|
|
461
|
-
conditional: z.ZodOptional<z.ZodAny>;
|
|
462
|
-
}, z.core.$strip>>>>;
|
|
463
|
-
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
464
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
465
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
466
|
-
type: z.ZodLiteral<"SHOW">;
|
|
467
|
-
conditional: z.ZodAny;
|
|
468
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
469
|
-
type: z.ZodLiteral<"ENABLE">;
|
|
470
|
-
conditional: z.ZodAny;
|
|
471
|
-
}, z.core.$strip>], "type">>>;
|
|
472
|
-
type: z.ZodLiteral<"APPROVE_CORRECTION">;
|
|
473
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
474
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
475
|
-
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
476
|
-
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
477
|
-
readonly INCOMPLETE: "incomplete";
|
|
478
|
-
readonly REJECTED: "rejected";
|
|
479
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
480
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
481
|
-
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
482
|
-
}>]>, z.ZodString]>;
|
|
483
|
-
operation: z.ZodEnum<{
|
|
484
|
-
add: "add";
|
|
485
|
-
remove: "remove";
|
|
486
|
-
}>;
|
|
487
|
-
conditional: z.ZodOptional<z.ZodAny>;
|
|
488
|
-
}, z.core.$strip>>>>;
|
|
489
|
-
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
490
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
491
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
492
|
-
type: z.ZodLiteral<"SHOW">;
|
|
493
|
-
conditional: z.ZodAny;
|
|
494
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
495
|
-
type: z.ZodLiteral<"ENABLE">;
|
|
496
|
-
conditional: z.ZodAny;
|
|
497
|
-
}, z.core.$strip>], "type">>>;
|
|
498
|
-
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
|
499
323
|
}, z.core.$strip>, z.ZodObject<{
|
|
500
324
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
501
325
|
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -139,8 +139,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
139
139
|
role: "role";
|
|
140
140
|
event: "event";
|
|
141
141
|
placeOfEvent: "placeOfEvent";
|
|
142
|
-
notifiedIn: "notifiedIn";
|
|
143
|
-
notifiedBy: "notifiedBy";
|
|
144
142
|
declaredIn: "declaredIn";
|
|
145
143
|
declaredBy: "declaredBy";
|
|
146
144
|
registeredIn: "registeredIn";
|
|
@@ -318,8 +316,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
318
316
|
role: "role";
|
|
319
317
|
event: "event";
|
|
320
318
|
placeOfEvent: "placeOfEvent";
|
|
321
|
-
notifiedIn: "notifiedIn";
|
|
322
|
-
notifiedBy: "notifiedBy";
|
|
323
319
|
declaredIn: "declaredIn";
|
|
324
320
|
declaredBy: "declaredBy";
|
|
325
321
|
registeredIn: "registeredIn";
|
|
@@ -473,8 +469,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
473
469
|
role: "role";
|
|
474
470
|
event: "event";
|
|
475
471
|
placeOfEvent: "placeOfEvent";
|
|
476
|
-
notifiedIn: "notifiedIn";
|
|
477
|
-
notifiedBy: "notifiedBy";
|
|
478
472
|
declaredIn: "declaredIn";
|
|
479
473
|
declaredBy: "declaredBy";
|
|
480
474
|
registeredIn: "registeredIn";
|
|
@@ -620,8 +614,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
620
614
|
role: "role";
|
|
621
615
|
event: "event";
|
|
622
616
|
placeOfEvent: "placeOfEvent";
|
|
623
|
-
notifiedIn: "notifiedIn";
|
|
624
|
-
notifiedBy: "notifiedBy";
|
|
625
617
|
declaredIn: "declaredIn";
|
|
626
618
|
declaredBy: "declaredBy";
|
|
627
619
|
registeredIn: "registeredIn";
|
|
@@ -778,8 +770,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
778
770
|
role: "role";
|
|
779
771
|
event: "event";
|
|
780
772
|
placeOfEvent: "placeOfEvent";
|
|
781
|
-
notifiedIn: "notifiedIn";
|
|
782
|
-
notifiedBy: "notifiedBy";
|
|
783
773
|
declaredIn: "declaredIn";
|
|
784
774
|
declaredBy: "declaredBy";
|
|
785
775
|
registeredIn: "registeredIn";
|
|
@@ -925,8 +915,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
925
915
|
role: "role";
|
|
926
916
|
event: "event";
|
|
927
917
|
placeOfEvent: "placeOfEvent";
|
|
928
|
-
notifiedIn: "notifiedIn";
|
|
929
|
-
notifiedBy: "notifiedBy";
|
|
930
918
|
declaredIn: "declaredIn";
|
|
931
919
|
declaredBy: "declaredBy";
|
|
932
920
|
registeredIn: "registeredIn";
|
|
@@ -10,8 +10,6 @@ export declare const EventFieldReference: z.ZodObject<{
|
|
|
10
10
|
$$event: z.ZodEnum<{
|
|
11
11
|
updatedAt: "updatedAt";
|
|
12
12
|
createdAt: "createdAt";
|
|
13
|
-
"legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
|
|
14
|
-
"legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
|
|
15
13
|
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
16
14
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
17
15
|
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
@@ -10,17 +10,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
10
10
|
ARCHIVED: "ARCHIVED";
|
|
11
11
|
}>;
|
|
12
12
|
legalStatuses: z.ZodObject<{
|
|
13
|
-
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
-
createdAt: z.ZodISODateTime;
|
|
15
|
-
createdBy: z.ZodString;
|
|
16
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
17
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
18
|
-
user: "user";
|
|
19
|
-
system: "system";
|
|
20
|
-
}>>>;
|
|
21
|
-
acceptedAt: z.ZodISODateTime;
|
|
22
|
-
createdByRole: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$strip>>>;
|
|
24
13
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
14
|
createdAt: z.ZodISODateTime;
|
|
26
15
|
createdBy: z.ZodString;
|
|
@@ -39,17 +39,6 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
|
41
41
|
export declare const LegalStatuses: z.ZodObject<{
|
|
42
|
-
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
-
createdAt: z.ZodISODateTime;
|
|
44
|
-
createdBy: z.ZodString;
|
|
45
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
46
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
47
|
-
user: "user";
|
|
48
|
-
system: "system";
|
|
49
|
-
}>>>;
|
|
50
|
-
acceptedAt: z.ZodISODateTime;
|
|
51
|
-
createdByRole: z.ZodOptional<z.ZodString>;
|
|
52
|
-
}, z.core.$strip>>>;
|
|
53
42
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
43
|
createdAt: z.ZodISODateTime;
|
|
55
44
|
createdBy: z.ZodString;
|
|
@@ -90,17 +79,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
90
79
|
ARCHIVED: "ARCHIVED";
|
|
91
80
|
}>;
|
|
92
81
|
legalStatuses: z.ZodObject<{
|
|
93
|
-
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
94
|
-
createdAt: z.ZodISODateTime;
|
|
95
|
-
createdBy: z.ZodString;
|
|
96
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
97
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
98
|
-
user: "user";
|
|
99
|
-
system: "system";
|
|
100
|
-
}>>>;
|
|
101
|
-
acceptedAt: z.ZodISODateTime;
|
|
102
|
-
createdByRole: z.ZodOptional<z.ZodString>;
|
|
103
|
-
}, z.core.$strip>>>;
|
|
104
82
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
105
83
|
createdAt: z.ZodISODateTime;
|
|
106
84
|
createdBy: z.ZodString;
|
|
@@ -183,8 +161,6 @@ export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadat
|
|
|
183
161
|
export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
|
|
184
162
|
updatedAt: "updatedAt";
|
|
185
163
|
createdAt: "createdAt";
|
|
186
|
-
"legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
|
|
187
|
-
"legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
|
|
188
164
|
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
189
165
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
190
166
|
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
@@ -194,8 +170,6 @@ export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFiel
|
|
|
194
170
|
export declare const EventMetadataDateFieldId: z.ZodEnum<{
|
|
195
171
|
"event.updatedAt": "event.updatedAt";
|
|
196
172
|
"event.createdAt": "event.createdAt";
|
|
197
|
-
"event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
|
|
198
|
-
"event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
|
|
199
173
|
"event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
|
|
200
174
|
"event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
|
|
201
175
|
"event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
|
|
@@ -1919,8 +1919,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1919
1919
|
role: "role";
|
|
1920
1920
|
event: "event";
|
|
1921
1921
|
placeOfEvent: "placeOfEvent";
|
|
1922
|
-
notifiedIn: "notifiedIn";
|
|
1923
|
-
notifiedBy: "notifiedBy";
|
|
1924
1922
|
declaredIn: "declaredIn";
|
|
1925
1923
|
declaredBy: "declaredBy";
|
|
1926
1924
|
registeredIn: "registeredIn";
|
|
@@ -2047,8 +2045,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2047
2045
|
role: "role";
|
|
2048
2046
|
event: "event";
|
|
2049
2047
|
placeOfEvent: "placeOfEvent";
|
|
2050
|
-
notifiedIn: "notifiedIn";
|
|
2051
|
-
notifiedBy: "notifiedBy";
|
|
2052
2048
|
declaredIn: "declaredIn";
|
|
2053
2049
|
declaredBy: "declaredBy";
|
|
2054
2050
|
registeredIn: "registeredIn";
|
|
@@ -2246,8 +2242,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2246
2242
|
role: "role";
|
|
2247
2243
|
event: "event";
|
|
2248
2244
|
placeOfEvent: "placeOfEvent";
|
|
2249
|
-
notifiedIn: "notifiedIn";
|
|
2250
|
-
notifiedBy: "notifiedBy";
|
|
2251
2245
|
declaredIn: "declaredIn";
|
|
2252
2246
|
declaredBy: "declaredBy";
|
|
2253
2247
|
registeredIn: "registeredIn";
|
|
@@ -2360,8 +2354,6 @@ declare const Office: z.ZodObject<{
|
|
|
2360
2354
|
role: "role";
|
|
2361
2355
|
event: "event";
|
|
2362
2356
|
placeOfEvent: "placeOfEvent";
|
|
2363
|
-
notifiedIn: "notifiedIn";
|
|
2364
|
-
notifiedBy: "notifiedBy";
|
|
2365
2357
|
declaredIn: "declaredIn";
|
|
2366
2358
|
declaredBy: "declaredBy";
|
|
2367
2359
|
registeredIn: "registeredIn";
|
|
@@ -2560,8 +2552,6 @@ declare const Address: z.ZodObject<{
|
|
|
2560
2552
|
role: "role";
|
|
2561
2553
|
event: "event";
|
|
2562
2554
|
placeOfEvent: "placeOfEvent";
|
|
2563
|
-
notifiedIn: "notifiedIn";
|
|
2564
|
-
notifiedBy: "notifiedBy";
|
|
2565
2555
|
declaredIn: "declaredIn";
|
|
2566
2556
|
declaredBy: "declaredBy";
|
|
2567
2557
|
registeredIn: "registeredIn";
|
|
@@ -40,7 +40,6 @@ type ToArrayFields<T, K extends PropertyKey> = T extends unknown ? T extends obj
|
|
|
40
40
|
*/
|
|
41
41
|
export type EventIndexWithAdministrativeHierarchy = Omit<ToArrayFields<EventIndex, 'createdAtLocation' | 'updatedAtLocation' | 'placeOfEvent'>, 'legalStatuses'> & {
|
|
42
42
|
legalStatuses: {
|
|
43
|
-
NOTIFIED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
|
|
44
43
|
DECLARED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
|
|
45
44
|
REGISTERED: ToArrayFields<RegistrationCreationMetadata, 'createdAtLocation'> | undefined;
|
|
46
45
|
};
|
|
@@ -65,14 +65,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
65
65
|
type: string;
|
|
66
66
|
status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
|
|
67
67
|
legalStatuses: {
|
|
68
|
-
NOTIFIED?: {
|
|
69
|
-
createdAt: string;
|
|
70
|
-
createdBy: string;
|
|
71
|
-
acceptedAt: string;
|
|
72
|
-
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
73
|
-
createdByUserType?: "user" | "system" | null | undefined;
|
|
74
|
-
createdByRole?: string | undefined;
|
|
75
|
-
} | null | undefined;
|
|
76
68
|
DECLARED?: {
|
|
77
69
|
createdAt: string;
|
|
78
70
|
createdBy: string;
|
|
@@ -30,15 +30,6 @@ export declare function getActionUpdateMetadata(actions: Action[]): Pick<{
|
|
|
30
30
|
* @see EventIndex for the description of the returned object.
|
|
31
31
|
*/
|
|
32
32
|
export declare function getLegalStatuses(actions: Action[]): {
|
|
33
|
-
NOTIFIED: {
|
|
34
|
-
createdAt: string;
|
|
35
|
-
createdBy: string;
|
|
36
|
-
createdByUserType: "user" | "system";
|
|
37
|
-
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
38
|
-
acceptedAt: string;
|
|
39
|
-
createdByRole: string | undefined;
|
|
40
|
-
registrationNumber: string | null | undefined;
|
|
41
|
-
} | null;
|
|
42
33
|
DECLARED: {
|
|
43
34
|
createdAt: string;
|
|
44
35
|
createdBy: string;
|
|
@@ -191,13 +191,11 @@ var scopeOptionsPlaceEvent = z6.object({
|
|
|
191
191
|
event: scopeByEvent,
|
|
192
192
|
placeOfEvent: JurisdictionFilter.optional()
|
|
193
193
|
}).describe("Options applicable to all record scopes.");
|
|
194
|
-
var
|
|
195
|
-
notifiedIn: JurisdictionFilter.optional(),
|
|
196
|
-
notifiedBy: UserFilter.optional(),
|
|
194
|
+
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
197
195
|
declaredIn: JurisdictionFilter.optional(),
|
|
198
196
|
declaredBy: UserFilter.optional()
|
|
199
197
|
}).describe("Options applicable to actions that may take place after DECLARE");
|
|
200
|
-
var AllRecordScopeOptions =
|
|
198
|
+
var AllRecordScopeOptions = scopeOptionsDeclared.extend({
|
|
201
199
|
registeredIn: JurisdictionFilter.optional(),
|
|
202
200
|
registeredBy: UserFilter.optional()
|
|
203
201
|
}).describe(
|
|
@@ -235,8 +233,6 @@ var ResolvedScopeOptionsPlaceEvent = z6.object({
|
|
|
235
233
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
236
234
|
);
|
|
237
235
|
var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
|
|
238
|
-
notifiedIn: UUID.nullish(),
|
|
239
|
-
notifiedBy: z6.string().optional(),
|
|
240
236
|
declaredIn: UUID.nullish(),
|
|
241
237
|
declaredBy: z6.string().optional()
|
|
242
238
|
}).describe(
|
|
@@ -282,7 +278,7 @@ var RecordScopeV2 = z6.discriminatedUnion("type", [
|
|
|
282
278
|
}),
|
|
283
279
|
z6.object({
|
|
284
280
|
type: ScopesWithDeclaredOptions,
|
|
285
|
-
options:
|
|
281
|
+
options: scopeOptionsDeclared.optional()
|
|
286
282
|
}),
|
|
287
283
|
z6.object({
|
|
288
284
|
type: ScopesWithFullOptions,
|
|
@@ -371,9 +367,8 @@ var EncodedScope2 = z6.string().brand("EncodedScope");
|
|
|
371
367
|
var DEFAULT_SCOPE_OPTIONS = {
|
|
372
368
|
placeOfEvent: JurisdictionFilter.enum.all,
|
|
373
369
|
accessLevel: JurisdictionFilter.enum.all,
|
|
374
|
-
|
|
375
|
-
declaredIn: JurisdictionFilter.enum.all
|
|
376
|
-
registeredIn: JurisdictionFilter.enum.all
|
|
370
|
+
registeredIn: JurisdictionFilter.enum.all,
|
|
371
|
+
declaredIn: JurisdictionFilter.enum.all
|
|
377
372
|
};
|
|
378
373
|
|
|
379
374
|
// ../commons/src/users/userReferences.ts
|