@opencrvs/toolkit 1.9.12-rc.c1f8f26 → 1.9.12-rc.c4d2a9f
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 +4 -0
- package/dist/application-config/index.js +2045 -41
- package/dist/cli.js +3573 -4
- package/dist/commons/api/router.d.ts +106 -75
- package/dist/commons/application-config/index.d.ts +13 -16
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionDocument.d.ts +198 -198
- package/dist/commons/events/ActionInput.d.ts +113 -113
- package/dist/commons/events/ActionType.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +16 -10
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/CountryConfigQueryInput.d.ts +443 -172
- package/dist/commons/events/Draft.d.ts +15 -15
- package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
- package/dist/commons/events/EventConfig.d.ts +4 -2
- package/dist/commons/events/EventDocument.d.ts +81 -81
- package/dist/commons/events/EventIndex.d.ts +35 -27
- package/dist/commons/events/EventInput.d.ts +1 -1
- package/dist/commons/events/EventMetadata.d.ts +24 -24
- package/dist/commons/events/FieldConfig.d.ts +155 -44
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +98 -72
- package/dist/commons/events/FieldValue.d.ts +54 -26
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +16 -16
- package/dist/commons/events/WorkqueueConfig.d.ts +438 -194
- package/dist/commons/events/defineConfig.d.ts +0 -4
- package/dist/commons/events/locations.d.ts +4 -4
- package/dist/commons/events/scopes.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +2 -2
- package/dist/commons/events/state/utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +5 -177
- package/dist/conditionals/index.js +13 -5
- package/dist/events/index.js +156 -35
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
- package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
- package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
- package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
- package/dist/migrations/v2.0/create-events-index.js +326 -0
- package/dist/migrations/v2.0/index.d.ts +7 -0
- package/dist/migrations/v2.0/index.d.ts.map +1 -0
- package/dist/migrations/v2.0/index.js +3572 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-scopes.js +282 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-api-paths.js +188 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
- package/dist/notification/index.js +77 -24
- package/dist/scopes/index.d.ts +31 -10
- package/dist/scopes/index.js +17 -5
- package/opencrvs-toolkit-1.9.12-rc.c4d2a9f.tgz +0 -0
- package/package.json +8 -7
- package/tsconfig.json +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.c1f8f26.tgz +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod/v4';
|
|
2
2
|
export declare const EventIndex: z.ZodObject<{
|
|
3
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
3
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
4
4
|
type: z.ZodString;
|
|
5
5
|
status: z.ZodEnum<{
|
|
6
|
-
ARCHIVED: "ARCHIVED";
|
|
7
|
-
DECLARED: "DECLARED";
|
|
8
|
-
REGISTERED: "REGISTERED";
|
|
9
6
|
CREATED: "CREATED";
|
|
10
7
|
NOTIFIED: "NOTIFIED";
|
|
8
|
+
DECLARED: "DECLARED";
|
|
9
|
+
REGISTERED: "REGISTERED";
|
|
10
|
+
ARCHIVED: "ARCHIVED";
|
|
11
11
|
}>;
|
|
12
12
|
legalStatuses: z.ZodObject<{
|
|
13
13
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
createdAt: z.ZodISODateTime;
|
|
15
15
|
createdBy: z.ZodString;
|
|
16
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
16
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
17
17
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
18
18
|
user: "user";
|
|
19
19
|
system: "system";
|
|
@@ -25,7 +25,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
25
25
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
26
|
createdAt: z.ZodISODateTime;
|
|
27
27
|
createdBy: z.ZodString;
|
|
28
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
28
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
29
29
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
30
30
|
user: "user";
|
|
31
31
|
system: "system";
|
|
@@ -38,22 +38,22 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
createdAt: z.ZodISODateTime;
|
|
40
40
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
41
|
-
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
41
|
+
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
42
42
|
createdBy: z.ZodString;
|
|
43
43
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
44
44
|
user: "user";
|
|
45
45
|
system: "system";
|
|
46
46
|
}>>>;
|
|
47
47
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
49
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath">>>;
|
|
50
|
-
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
48
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
49
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
50
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
51
51
|
updatedAt: z.ZodISODateTime;
|
|
52
52
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
trackingId: z.ZodString;
|
|
55
55
|
potentialDuplicates: z.ZodArray<z.ZodObject<{
|
|
56
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
56
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
57
57
|
trackingId: z.ZodString;
|
|
58
58
|
}, z.core.$strip>>;
|
|
59
59
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
@@ -78,14 +78,15 @@ export declare const Exact: z.ZodObject<{
|
|
|
78
78
|
type: z.ZodLiteral<"exact">;
|
|
79
79
|
term: z.ZodString;
|
|
80
80
|
}, z.core.$strip>;
|
|
81
|
+
export type Exact = z.infer<typeof Exact>;
|
|
81
82
|
export declare const ExactStatus: z.ZodObject<{
|
|
82
83
|
type: z.ZodLiteral<"exact">;
|
|
83
84
|
term: z.ZodEnum<{
|
|
84
|
-
ARCHIVED: "ARCHIVED";
|
|
85
|
-
DECLARED: "DECLARED";
|
|
86
|
-
REGISTERED: "REGISTERED";
|
|
87
85
|
CREATED: "CREATED";
|
|
88
86
|
NOTIFIED: "NOTIFIED";
|
|
87
|
+
DECLARED: "DECLARED";
|
|
88
|
+
REGISTERED: "REGISTERED";
|
|
89
|
+
ARCHIVED: "ARCHIVED";
|
|
89
90
|
}>;
|
|
90
91
|
}, z.core.$strip>;
|
|
91
92
|
export declare const ExactUserType: z.ZodObject<{
|
|
@@ -102,11 +103,11 @@ export declare const AnyOf: z.ZodObject<{
|
|
|
102
103
|
export declare const AnyOfStatus: z.ZodObject<{
|
|
103
104
|
type: z.ZodLiteral<"anyOf">;
|
|
104
105
|
terms: z.ZodArray<z.ZodEnum<{
|
|
105
|
-
ARCHIVED: "ARCHIVED";
|
|
106
|
-
DECLARED: "DECLARED";
|
|
107
|
-
REGISTERED: "REGISTERED";
|
|
108
106
|
CREATED: "CREATED";
|
|
109
107
|
NOTIFIED: "NOTIFIED";
|
|
108
|
+
DECLARED: "DECLARED";
|
|
109
|
+
REGISTERED: "REGISTERED";
|
|
110
|
+
ARCHIVED: "ARCHIVED";
|
|
110
111
|
}>>;
|
|
111
112
|
}, z.core.$strip>;
|
|
112
113
|
export declare const Range: z.ZodObject<{
|
|
@@ -134,6 +135,7 @@ export declare const Within: z.ZodObject<{
|
|
|
134
135
|
type: z.ZodLiteral<"within">;
|
|
135
136
|
location: z.ZodString;
|
|
136
137
|
}, z.core.$strip>;
|
|
138
|
+
export type Within = z.infer<typeof Within>;
|
|
137
139
|
export declare const ExactDate: z.ZodObject<{
|
|
138
140
|
type: z.ZodLiteral<"exact">;
|
|
139
141
|
term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
|
|
@@ -167,20 +169,20 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
167
169
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
168
170
|
type: z.ZodLiteral<"anyOf">;
|
|
169
171
|
terms: z.ZodArray<z.ZodEnum<{
|
|
170
|
-
ARCHIVED: "ARCHIVED";
|
|
171
|
-
DECLARED: "DECLARED";
|
|
172
|
-
REGISTERED: "REGISTERED";
|
|
173
172
|
CREATED: "CREATED";
|
|
174
173
|
NOTIFIED: "NOTIFIED";
|
|
174
|
+
DECLARED: "DECLARED";
|
|
175
|
+
REGISTERED: "REGISTERED";
|
|
176
|
+
ARCHIVED: "ARCHIVED";
|
|
175
177
|
}>>;
|
|
176
178
|
}, z.core.$strip>, z.ZodObject<{
|
|
177
179
|
type: z.ZodLiteral<"exact">;
|
|
178
180
|
term: z.ZodEnum<{
|
|
179
|
-
ARCHIVED: "ARCHIVED";
|
|
180
|
-
DECLARED: "DECLARED";
|
|
181
|
-
REGISTERED: "REGISTERED";
|
|
182
181
|
CREATED: "CREATED";
|
|
183
182
|
NOTIFIED: "NOTIFIED";
|
|
183
|
+
DECLARED: "DECLARED";
|
|
184
|
+
REGISTERED: "REGISTERED";
|
|
185
|
+
ARCHIVED: "ARCHIVED";
|
|
184
186
|
}>;
|
|
185
187
|
}, z.core.$strip>]>>>;
|
|
186
188
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -251,14 +253,20 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
251
253
|
type: z.ZodLiteral<"exact">;
|
|
252
254
|
term: z.ZodString;
|
|
253
255
|
}, z.core.$strip>>>;
|
|
254
|
-
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
256
|
+
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
255
257
|
type: z.ZodLiteral<"within">;
|
|
256
258
|
location: z.ZodString;
|
|
257
|
-
}, z.core.$strip
|
|
258
|
-
|
|
259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
+
type: z.ZodLiteral<"exact">;
|
|
261
|
+
term: z.ZodString;
|
|
262
|
+
}, z.core.$strip>]>>>;
|
|
263
|
+
updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
259
264
|
type: z.ZodLiteral<"within">;
|
|
260
265
|
location: z.ZodString;
|
|
261
|
-
}, z.core.$strip
|
|
266
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"exact">;
|
|
268
|
+
term: z.ZodString;
|
|
269
|
+
}, z.core.$strip>]>>>;
|
|
262
270
|
assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
263
271
|
type: z.ZodLiteral<"exact">;
|
|
264
272
|
term: z.ZodString;
|
|
@@ -2,7 +2,7 @@ import * as z from 'zod/v4';
|
|
|
2
2
|
export declare const EventInput: z.ZodObject<{
|
|
3
3
|
transactionId: z.ZodString;
|
|
4
4
|
type: z.ZodString;
|
|
5
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
5
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
export type EventInput = z.infer<typeof EventInput>;
|
|
8
8
|
//# sourceMappingURL=EventInput.d.ts.map
|
|
@@ -4,11 +4,11 @@ import { TranslationConfig } from './TranslationConfig';
|
|
|
4
4
|
* Event statuses recognized by the system
|
|
5
5
|
*/
|
|
6
6
|
export declare const EventStatus: z.ZodEnum<{
|
|
7
|
-
ARCHIVED: "ARCHIVED";
|
|
8
|
-
DECLARED: "DECLARED";
|
|
9
|
-
REGISTERED: "REGISTERED";
|
|
10
7
|
CREATED: "CREATED";
|
|
11
8
|
NOTIFIED: "NOTIFIED";
|
|
9
|
+
DECLARED: "DECLARED";
|
|
10
|
+
REGISTERED: "REGISTERED";
|
|
11
|
+
ARCHIVED: "ARCHIVED";
|
|
12
12
|
}>;
|
|
13
13
|
export type EventStatus = z.infer<typeof EventStatus>;
|
|
14
14
|
export declare const ZodDate: z.ZodISODate;
|
|
@@ -16,7 +16,7 @@ export declare const ZodDateTime: z.ZodString;
|
|
|
16
16
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
|
17
17
|
createdAt: z.ZodISODateTime;
|
|
18
18
|
createdBy: z.ZodString;
|
|
19
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
19
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
20
20
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
21
21
|
user: "user";
|
|
22
22
|
system: "system";
|
|
@@ -29,7 +29,7 @@ export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
|
29
29
|
export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
30
30
|
createdAt: z.ZodISODateTime;
|
|
31
31
|
createdBy: z.ZodString;
|
|
32
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
32
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
33
33
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
34
34
|
user: "user";
|
|
35
35
|
system: "system";
|
|
@@ -44,7 +44,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
44
44
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
45
|
createdAt: z.ZodISODateTime;
|
|
46
46
|
createdBy: z.ZodString;
|
|
47
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
47
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
48
48
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
49
49
|
user: "user";
|
|
50
50
|
system: "system";
|
|
@@ -56,7 +56,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
56
56
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
57
|
createdAt: z.ZodISODateTime;
|
|
58
58
|
createdBy: z.ZodString;
|
|
59
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
59
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
60
60
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
61
61
|
user: "user";
|
|
62
62
|
system: "system";
|
|
@@ -73,20 +73,20 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
73
73
|
* Accessed through `event.` in configuration.
|
|
74
74
|
*/
|
|
75
75
|
export declare const EventMetadata: z.ZodObject<{
|
|
76
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
76
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
77
77
|
type: z.ZodString;
|
|
78
78
|
status: z.ZodEnum<{
|
|
79
|
-
ARCHIVED: "ARCHIVED";
|
|
80
|
-
DECLARED: "DECLARED";
|
|
81
|
-
REGISTERED: "REGISTERED";
|
|
82
79
|
CREATED: "CREATED";
|
|
83
80
|
NOTIFIED: "NOTIFIED";
|
|
81
|
+
DECLARED: "DECLARED";
|
|
82
|
+
REGISTERED: "REGISTERED";
|
|
83
|
+
ARCHIVED: "ARCHIVED";
|
|
84
84
|
}>;
|
|
85
85
|
legalStatuses: z.ZodObject<{
|
|
86
86
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
87
87
|
createdAt: z.ZodISODateTime;
|
|
88
88
|
createdBy: z.ZodString;
|
|
89
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
89
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
90
90
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
91
91
|
user: "user";
|
|
92
92
|
system: "system";
|
|
@@ -98,7 +98,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
98
98
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
99
|
createdAt: z.ZodISODateTime;
|
|
100
100
|
createdBy: z.ZodString;
|
|
101
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
101
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
102
102
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
103
103
|
user: "user";
|
|
104
104
|
system: "system";
|
|
@@ -111,22 +111,22 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
111
111
|
}, z.core.$strip>;
|
|
112
112
|
createdAt: z.ZodISODateTime;
|
|
113
113
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
114
|
-
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
114
|
+
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
115
115
|
createdBy: z.ZodString;
|
|
116
116
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
117
117
|
user: "user";
|
|
118
118
|
system: "system";
|
|
119
119
|
}>>>;
|
|
120
120
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
122
|
-
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath">>>;
|
|
123
|
-
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
121
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
122
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
123
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
124
|
updatedAt: z.ZodISODateTime;
|
|
125
125
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
126
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
127
|
trackingId: z.ZodString;
|
|
128
128
|
potentialDuplicates: z.ZodArray<z.ZodObject<{
|
|
129
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
129
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
130
130
|
trackingId: z.ZodString;
|
|
131
131
|
}, z.core.$strip>>;
|
|
132
132
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
@@ -142,15 +142,15 @@ export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "
|
|
|
142
142
|
export declare const EventMetadataKeys: z.ZodEnum<{
|
|
143
143
|
id: "id";
|
|
144
144
|
type: "type";
|
|
145
|
+
updatedAt: "updatedAt";
|
|
145
146
|
placeOfEvent: "placeOfEvent";
|
|
147
|
+
createdByUserType: "createdByUserType";
|
|
146
148
|
createdAt: "createdAt";
|
|
149
|
+
createdBy: "createdBy";
|
|
147
150
|
createdAtLocation: "createdAtLocation";
|
|
148
|
-
trackingId: "trackingId";
|
|
149
151
|
status: "status";
|
|
150
|
-
updatedAt: "updatedAt";
|
|
151
|
-
createdByUserType: "createdByUserType";
|
|
152
|
-
createdBy: "createdBy";
|
|
153
152
|
assignedTo: "assignedTo";
|
|
153
|
+
trackingId: "trackingId";
|
|
154
154
|
legalStatuses: "legalStatuses";
|
|
155
155
|
dateOfEvent: "dateOfEvent";
|
|
156
156
|
updatedByUserRole: "updatedByUserRole";
|
|
@@ -166,8 +166,8 @@ export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
|
|
166
166
|
*/
|
|
167
167
|
export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
|
|
168
168
|
export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
|
|
169
|
-
createdAt: "createdAt";
|
|
170
169
|
updatedAt: "updatedAt";
|
|
170
|
+
createdAt: "createdAt";
|
|
171
171
|
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
172
172
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
173
173
|
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
@@ -175,8 +175,8 @@ export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
|
|
|
175
175
|
}>;
|
|
176
176
|
export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFieldIdInput>;
|
|
177
177
|
export declare const EventMetadataDateFieldId: z.ZodEnum<{
|
|
178
|
-
"event.createdAt": "event.createdAt";
|
|
179
178
|
"event.updatedAt": "event.updatedAt";
|
|
179
|
+
"event.createdAt": "event.createdAt";
|
|
180
180
|
"event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
|
|
181
181
|
"event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
|
|
182
182
|
"event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
|