@opencrvs/toolkit 1.9.12-rc.ba2ea5c → 1.9.12-rc.bacc78f
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 +2038 -45
- package/dist/cli.js +497 -25
- package/dist/commons/api/router.d.ts +86 -79
- package/dist/commons/application-config/index.d.ts +6 -4
- package/dist/commons/events/ActionDocument.d.ts +6 -6
- package/dist/commons/events/ActionType.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +10 -10
- package/dist/commons/events/CountryConfigQueryInput.d.ts +222 -222
- package/dist/commons/events/Draft.d.ts +8 -8
- package/dist/commons/events/EventConfig.d.ts +4 -2
- package/dist/commons/events/EventDocument.d.ts +3 -3
- package/dist/commons/events/EventIndex.d.ts +15 -15
- package/dist/commons/events/EventMetadata.d.ts +12 -12
- package/dist/commons/events/FieldConfig.d.ts +28 -28
- package/dist/commons/events/FieldType.d.ts +1 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +4 -4
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +13 -13
- package/dist/commons/events/WorkqueueConfig.d.ts +239 -239
- 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 +3 -3
- package/dist/events/index.js +5 -2
- 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.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +97 -21
- 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.map +1 -1
- package/dist/migrations/v2.0/index.js +495 -23
- 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/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 +5 -2
- package/opencrvs-toolkit-1.9.12-rc.bacc78f.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.ba2ea5c.tgz +0 -0
|
@@ -6,6 +6,7 @@ export declare const Draft: z.ZodObject<{
|
|
|
6
6
|
createdAt: z.ZodString;
|
|
7
7
|
action: z.ZodObject<{
|
|
8
8
|
type: z.ZodEnum<{
|
|
9
|
+
CUSTOM: "CUSTOM";
|
|
9
10
|
CREATE: "CREATE";
|
|
10
11
|
NOTIFY: "NOTIFY";
|
|
11
12
|
DECLARE: "DECLARE";
|
|
@@ -23,24 +24,23 @@ export declare const Draft: z.ZodObject<{
|
|
|
23
24
|
READ: "READ";
|
|
24
25
|
ASSIGN: "ASSIGN";
|
|
25
26
|
UNASSIGN: "UNASSIGN";
|
|
26
|
-
CUSTOM: "CUSTOM";
|
|
27
27
|
}>;
|
|
28
|
-
createdAt: z.ZodString;
|
|
29
28
|
transactionId: z.ZodString;
|
|
30
|
-
status: z.ZodEnum<{
|
|
31
|
-
Requested: "Requested";
|
|
32
|
-
Accepted: "Accepted";
|
|
33
|
-
Rejected: "Rejected";
|
|
34
|
-
}>;
|
|
35
29
|
createdByUserType: z.ZodEnum<{
|
|
36
30
|
user: "user";
|
|
37
31
|
system: "system";
|
|
38
32
|
}>;
|
|
33
|
+
createdAt: z.ZodString;
|
|
39
34
|
createdBy: z.ZodString;
|
|
40
35
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
41
36
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
42
37
|
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
43
38
|
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>>;
|
|
39
|
+
status: z.ZodEnum<{
|
|
40
|
+
Requested: "Requested";
|
|
41
|
+
Accepted: "Accepted";
|
|
42
|
+
Rejected: "Rejected";
|
|
43
|
+
}>;
|
|
44
44
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
}, z.core.$strip>;
|
|
@@ -53,6 +53,7 @@ export declare const DraftInput: z.ZodObject<{
|
|
|
53
53
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
54
54
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
55
55
|
type: z.ZodEnum<{
|
|
56
|
+
CUSTOM: "CUSTOM";
|
|
56
57
|
CREATE: "CREATE";
|
|
57
58
|
NOTIFY: "NOTIFY";
|
|
58
59
|
DECLARE: "DECLARE";
|
|
@@ -70,7 +71,6 @@ export declare const DraftInput: z.ZodObject<{
|
|
|
70
71
|
READ: "READ";
|
|
71
72
|
ASSIGN: "ASSIGN";
|
|
72
73
|
UNASSIGN: "UNASSIGN";
|
|
73
|
-
CUSTOM: "CUSTOM";
|
|
74
74
|
}>;
|
|
75
75
|
status: z.ZodEnum<{
|
|
76
76
|
Requested: "Requested";
|
|
@@ -8,8 +8,8 @@ import { FieldReference } from './FieldConfig';
|
|
|
8
8
|
import { FlagConfig } from './Flag';
|
|
9
9
|
export declare const EventFieldReference: z.ZodObject<{
|
|
10
10
|
$$event: z.ZodEnum<{
|
|
11
|
-
createdAt: "createdAt";
|
|
12
11
|
updatedAt: "updatedAt";
|
|
12
|
+
createdAt: "createdAt";
|
|
13
13
|
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
14
14
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
15
15
|
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
@@ -29,14 +29,16 @@ export type EventConfig = {
|
|
|
29
29
|
declaration: DeclarationFormConfig;
|
|
30
30
|
advancedSearch: AdvancedSearchConfig[];
|
|
31
31
|
flags: FlagConfig[];
|
|
32
|
+
analytics: boolean;
|
|
32
33
|
};
|
|
33
|
-
export type EventConfigInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'declaration' | 'actions' | 'dateOfEvent' | 'placeOfEvent'> & {
|
|
34
|
+
export type EventConfigInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'declaration' | 'actions' | 'dateOfEvent' | 'placeOfEvent' | 'analytics'> & {
|
|
34
35
|
dateOfEvent?: z.input<typeof FieldReference> | z.infer<typeof EventFieldReference>;
|
|
35
36
|
placeOfEvent?: z.input<typeof FieldReference>;
|
|
36
37
|
advancedSearch?: AdvancedSearchConfig[];
|
|
37
38
|
flags?: FlagConfig[];
|
|
38
39
|
declaration: DeclarationFormConfigInput;
|
|
39
40
|
actions: z.input<typeof ActionConfig>[];
|
|
41
|
+
analytics?: boolean;
|
|
40
42
|
};
|
|
41
43
|
export declare const EventConfig: z.ZodType<EventConfig, EventConfigInput>;
|
|
42
44
|
//# sourceMappingURL=EventConfig.d.ts.map
|
|
@@ -413,18 +413,19 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
413
413
|
customActionType: z.ZodString;
|
|
414
414
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
415
415
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
416
|
-
createdAt: z.ZodString;
|
|
417
416
|
transactionId: z.ZodString;
|
|
418
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
419
417
|
createdByUserType: z.ZodEnum<{
|
|
420
418
|
user: "user";
|
|
421
419
|
system: "system";
|
|
422
420
|
}>;
|
|
421
|
+
createdAt: z.ZodString;
|
|
423
422
|
createdBy: z.ZodString;
|
|
424
423
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
425
424
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
425
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
426
426
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
427
427
|
type: z.ZodEnum<{
|
|
428
|
+
CUSTOM: "CUSTOM";
|
|
428
429
|
NOTIFY: "NOTIFY";
|
|
429
430
|
DECLARE: "DECLARE";
|
|
430
431
|
REGISTER: "REGISTER";
|
|
@@ -435,7 +436,6 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
435
436
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
436
437
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
437
438
|
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
438
|
-
CUSTOM: "CUSTOM";
|
|
439
439
|
}>;
|
|
440
440
|
status: z.ZodLiteral<"Rejected">;
|
|
441
441
|
}, z.core.$strip>]>>;
|
|
@@ -3,11 +3,11 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
3
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<{
|
|
@@ -82,11 +82,11 @@ export type Exact = z.infer<typeof Exact>;
|
|
|
82
82
|
export declare const ExactStatus: z.ZodObject<{
|
|
83
83
|
type: z.ZodLiteral<"exact">;
|
|
84
84
|
term: z.ZodEnum<{
|
|
85
|
-
ARCHIVED: "ARCHIVED";
|
|
86
|
-
DECLARED: "DECLARED";
|
|
87
|
-
REGISTERED: "REGISTERED";
|
|
88
85
|
CREATED: "CREATED";
|
|
89
86
|
NOTIFIED: "NOTIFIED";
|
|
87
|
+
DECLARED: "DECLARED";
|
|
88
|
+
REGISTERED: "REGISTERED";
|
|
89
|
+
ARCHIVED: "ARCHIVED";
|
|
90
90
|
}>;
|
|
91
91
|
}, z.core.$strip>;
|
|
92
92
|
export declare const ExactUserType: z.ZodObject<{
|
|
@@ -103,11 +103,11 @@ export declare const AnyOf: z.ZodObject<{
|
|
|
103
103
|
export declare const AnyOfStatus: z.ZodObject<{
|
|
104
104
|
type: z.ZodLiteral<"anyOf">;
|
|
105
105
|
terms: z.ZodArray<z.ZodEnum<{
|
|
106
|
-
ARCHIVED: "ARCHIVED";
|
|
107
|
-
DECLARED: "DECLARED";
|
|
108
|
-
REGISTERED: "REGISTERED";
|
|
109
106
|
CREATED: "CREATED";
|
|
110
107
|
NOTIFIED: "NOTIFIED";
|
|
108
|
+
DECLARED: "DECLARED";
|
|
109
|
+
REGISTERED: "REGISTERED";
|
|
110
|
+
ARCHIVED: "ARCHIVED";
|
|
111
111
|
}>>;
|
|
112
112
|
}, z.core.$strip>;
|
|
113
113
|
export declare const Range: z.ZodObject<{
|
|
@@ -169,20 +169,20 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
169
169
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
170
170
|
type: z.ZodLiteral<"anyOf">;
|
|
171
171
|
terms: z.ZodArray<z.ZodEnum<{
|
|
172
|
-
ARCHIVED: "ARCHIVED";
|
|
173
|
-
DECLARED: "DECLARED";
|
|
174
|
-
REGISTERED: "REGISTERED";
|
|
175
172
|
CREATED: "CREATED";
|
|
176
173
|
NOTIFIED: "NOTIFIED";
|
|
174
|
+
DECLARED: "DECLARED";
|
|
175
|
+
REGISTERED: "REGISTERED";
|
|
176
|
+
ARCHIVED: "ARCHIVED";
|
|
177
177
|
}>>;
|
|
178
178
|
}, z.core.$strip>, z.ZodObject<{
|
|
179
179
|
type: z.ZodLiteral<"exact">;
|
|
180
180
|
term: z.ZodEnum<{
|
|
181
|
-
ARCHIVED: "ARCHIVED";
|
|
182
|
-
DECLARED: "DECLARED";
|
|
183
|
-
REGISTERED: "REGISTERED";
|
|
184
181
|
CREATED: "CREATED";
|
|
185
182
|
NOTIFIED: "NOTIFIED";
|
|
183
|
+
DECLARED: "DECLARED";
|
|
184
|
+
REGISTERED: "REGISTERED";
|
|
185
|
+
ARCHIVED: "ARCHIVED";
|
|
186
186
|
}>;
|
|
187
187
|
}, z.core.$strip>]>>>;
|
|
188
188
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -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;
|
|
@@ -76,11 +76,11 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
76
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<{
|
|
@@ -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";
|
|
@@ -144,16 +144,16 @@ export declare const TextField: z.ZodObject<{
|
|
|
144
144
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
145
145
|
$userField: z.ZodEnum<{
|
|
146
146
|
id: "id";
|
|
147
|
-
name: "name";
|
|
148
|
-
role: "role";
|
|
149
|
-
primaryOfficeId: "primaryOfficeId";
|
|
150
147
|
firstname: "firstname";
|
|
151
148
|
surname: "surname";
|
|
152
149
|
middlename: "middlename";
|
|
150
|
+
name: "name";
|
|
151
|
+
role: "role";
|
|
153
152
|
fullHonorificName: "fullHonorificName";
|
|
154
153
|
device: "device";
|
|
155
154
|
signature: "signature";
|
|
156
155
|
avatar: "avatar";
|
|
156
|
+
primaryOfficeId: "primaryOfficeId";
|
|
157
157
|
administrativeAreaId: "administrativeAreaId";
|
|
158
158
|
}>;
|
|
159
159
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1345,16 +1345,16 @@ declare const NameField: z.ZodObject<{
|
|
|
1345
1345
|
firstname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1346
1346
|
$userField: z.ZodEnum<{
|
|
1347
1347
|
id: "id";
|
|
1348
|
-
name: "name";
|
|
1349
|
-
role: "role";
|
|
1350
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1351
1348
|
firstname: "firstname";
|
|
1352
1349
|
surname: "surname";
|
|
1353
1350
|
middlename: "middlename";
|
|
1351
|
+
name: "name";
|
|
1352
|
+
role: "role";
|
|
1354
1353
|
fullHonorificName: "fullHonorificName";
|
|
1355
1354
|
device: "device";
|
|
1356
1355
|
signature: "signature";
|
|
1357
1356
|
avatar: "avatar";
|
|
1357
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1358
1358
|
administrativeAreaId: "administrativeAreaId";
|
|
1359
1359
|
}>;
|
|
1360
1360
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1362,16 +1362,16 @@ declare const NameField: z.ZodObject<{
|
|
|
1362
1362
|
middlename: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1363
1363
|
$userField: z.ZodEnum<{
|
|
1364
1364
|
id: "id";
|
|
1365
|
-
name: "name";
|
|
1366
|
-
role: "role";
|
|
1367
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1368
1365
|
firstname: "firstname";
|
|
1369
1366
|
surname: "surname";
|
|
1370
1367
|
middlename: "middlename";
|
|
1368
|
+
name: "name";
|
|
1369
|
+
role: "role";
|
|
1371
1370
|
fullHonorificName: "fullHonorificName";
|
|
1372
1371
|
device: "device";
|
|
1373
1372
|
signature: "signature";
|
|
1374
1373
|
avatar: "avatar";
|
|
1374
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1375
1375
|
administrativeAreaId: "administrativeAreaId";
|
|
1376
1376
|
}>;
|
|
1377
1377
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1379,16 +1379,16 @@ declare const NameField: z.ZodObject<{
|
|
|
1379
1379
|
surname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1380
1380
|
$userField: z.ZodEnum<{
|
|
1381
1381
|
id: "id";
|
|
1382
|
-
name: "name";
|
|
1383
|
-
role: "role";
|
|
1384
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1385
1382
|
firstname: "firstname";
|
|
1386
1383
|
surname: "surname";
|
|
1387
1384
|
middlename: "middlename";
|
|
1385
|
+
name: "name";
|
|
1386
|
+
role: "role";
|
|
1388
1387
|
fullHonorificName: "fullHonorificName";
|
|
1389
1388
|
device: "device";
|
|
1390
1389
|
signature: "signature";
|
|
1391
1390
|
avatar: "avatar";
|
|
1391
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1392
1392
|
administrativeAreaId: "administrativeAreaId";
|
|
1393
1393
|
}>;
|
|
1394
1394
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1659,16 +1659,16 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1659
1659
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1660
1660
|
$userField: z.ZodEnum<{
|
|
1661
1661
|
id: "id";
|
|
1662
|
-
name: "name";
|
|
1663
|
-
role: "role";
|
|
1664
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1665
1662
|
firstname: "firstname";
|
|
1666
1663
|
surname: "surname";
|
|
1667
1664
|
middlename: "middlename";
|
|
1665
|
+
name: "name";
|
|
1666
|
+
role: "role";
|
|
1668
1667
|
fullHonorificName: "fullHonorificName";
|
|
1669
1668
|
device: "device";
|
|
1670
1669
|
signature: "signature";
|
|
1671
1670
|
avatar: "avatar";
|
|
1671
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1672
1672
|
administrativeAreaId: "administrativeAreaId";
|
|
1673
1673
|
}>;
|
|
1674
1674
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1785,21 +1785,21 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1785
1785
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1786
1786
|
$userField: z.ZodEnum<{
|
|
1787
1787
|
id: "id";
|
|
1788
|
-
name: "name";
|
|
1789
|
-
role: "role";
|
|
1790
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1791
1788
|
firstname: "firstname";
|
|
1792
1789
|
surname: "surname";
|
|
1793
1790
|
middlename: "middlename";
|
|
1791
|
+
name: "name";
|
|
1792
|
+
role: "role";
|
|
1794
1793
|
fullHonorificName: "fullHonorificName";
|
|
1795
1794
|
device: "device";
|
|
1796
1795
|
signature: "signature";
|
|
1797
1796
|
avatar: "avatar";
|
|
1797
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1798
1798
|
administrativeAreaId: "administrativeAreaId";
|
|
1799
1799
|
}>;
|
|
1800
1800
|
$location: z.ZodOptional<z.ZodString>;
|
|
1801
1801
|
}, z.core.$strip>]>>;
|
|
1802
|
-
configuration: z.ZodObject<{
|
|
1802
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
|
1803
1803
|
locationTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1804
1804
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
1805
1805
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
@@ -1856,7 +1856,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1856
1856
|
}>;
|
|
1857
1857
|
}, z.core.$strip>]>;
|
|
1858
1858
|
}, z.core.$strip>>;
|
|
1859
|
-
}, z.core.$strip
|
|
1859
|
+
}, z.core.$strip>>;
|
|
1860
1860
|
}, z.core.$strip>;
|
|
1861
1861
|
export type LocationInput = z.infer<typeof LocationInput>;
|
|
1862
1862
|
declare const FileUploadWithOptions: z.ZodObject<{
|
|
@@ -2153,16 +2153,16 @@ export declare const DefaultAddressFieldValue: z.ZodObject<{
|
|
|
2153
2153
|
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
|
|
2154
2154
|
$userField: z.ZodEnum<{
|
|
2155
2155
|
id: "id";
|
|
2156
|
-
name: "name";
|
|
2157
|
-
role: "role";
|
|
2158
|
-
primaryOfficeId: "primaryOfficeId";
|
|
2159
2156
|
firstname: "firstname";
|
|
2160
2157
|
surname: "surname";
|
|
2161
2158
|
middlename: "middlename";
|
|
2159
|
+
name: "name";
|
|
2160
|
+
role: "role";
|
|
2162
2161
|
fullHonorificName: "fullHonorificName";
|
|
2163
2162
|
device: "device";
|
|
2164
2163
|
signature: "signature";
|
|
2165
2164
|
avatar: "avatar";
|
|
2165
|
+
primaryOfficeId: "primaryOfficeId";
|
|
2166
2166
|
administrativeAreaId: "administrativeAreaId";
|
|
2167
2167
|
}>;
|
|
2168
2168
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -2214,8 +2214,8 @@ declare const Address: z.ZodObject<{
|
|
|
2214
2214
|
lineSeparator: z.ZodOptional<z.ZodString>;
|
|
2215
2215
|
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2216
2216
|
id: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
2217
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2218
2217
|
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"COUNTRY">>>;
|
|
2218
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2219
2219
|
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2220
2220
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2221
2221
|
}, z.core.$strip>]>>>>;
|
|
@@ -2241,8 +2241,8 @@ declare const Address: z.ZodObject<{
|
|
|
2241
2241
|
}, z.core.$strip>>>>;
|
|
2242
2242
|
}, z.core.$strip>, z.ZodObject<{
|
|
2243
2243
|
id: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
2244
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2245
2244
|
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"ADMINISTRATIVE_AREA">>>;
|
|
2245
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2246
2246
|
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2247
2247
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2248
2248
|
}, z.core.$strip>]>>>>;
|
|
@@ -2342,16 +2342,16 @@ declare const Address: z.ZodObject<{
|
|
|
2342
2342
|
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
|
|
2343
2343
|
$userField: z.ZodEnum<{
|
|
2344
2344
|
id: "id";
|
|
2345
|
-
name: "name";
|
|
2346
|
-
role: "role";
|
|
2347
|
-
primaryOfficeId: "primaryOfficeId";
|
|
2348
2345
|
firstname: "firstname";
|
|
2349
2346
|
surname: "surname";
|
|
2350
2347
|
middlename: "middlename";
|
|
2348
|
+
name: "name";
|
|
2349
|
+
role: "role";
|
|
2351
2350
|
fullHonorificName: "fullHonorificName";
|
|
2352
2351
|
device: "device";
|
|
2353
2352
|
signature: "signature";
|
|
2354
2353
|
avatar: "avatar";
|
|
2354
|
+
primaryOfficeId: "primaryOfficeId";
|
|
2355
2355
|
administrativeAreaId: "administrativeAreaId";
|
|
2356
2356
|
}>;
|
|
2357
2357
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -68,7 +68,7 @@ export declare const FileFieldType: z.ZodEnum<{
|
|
|
68
68
|
FILE_WITH_OPTIONS: "FILE_WITH_OPTIONS";
|
|
69
69
|
SIGNATURE: "SIGNATURE";
|
|
70
70
|
}>;
|
|
71
|
-
export declare const fieldTypes: ("NAME" | "
|
|
71
|
+
export declare const fieldTypes: ("NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "IMAGE_VIEW" | "PARAGRAPH" | "HEADING" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "AUTOCOMPLETE" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN" | "USER_ROLE" | "CUSTOM")[];
|
|
72
72
|
export type FieldType = (typeof fieldTypes)[number];
|
|
73
73
|
/**
|
|
74
74
|
* Composite field types are field types that consist of multiple field values.
|
|
@@ -16,11 +16,11 @@ import { EventConfig } from './EventConfig';
|
|
|
16
16
|
* Mapping of field types to Zod schema.
|
|
17
17
|
* Useful for building dynamic validations against FieldConfig
|
|
18
18
|
*/
|
|
19
|
-
export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.
|
|
19
|
+
export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: ActionType): z.ZodString | z.ZodObject<{
|
|
20
20
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
21
21
|
originalFilename: z.ZodString;
|
|
22
22
|
type: z.ZodString;
|
|
23
|
-
}, z.core.$strip> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
23
|
+
}, z.core.$strip> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
24
24
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -29,7 +29,7 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
29
29
|
originalFilename: z.ZodString;
|
|
30
30
|
type: z.ZodString;
|
|
31
31
|
option: z.ZodString;
|
|
32
|
-
}, z.core.$strip>> | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
32
|
+
}, z.core.$strip>> | z.ZodBoolean | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
33
33
|
loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
34
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
statusCode: z.ZodNumber;
|
|
@@ -358,7 +358,7 @@ export type EventConfigToDeclarationFormType<T extends EventConfig> = UnionToInt
|
|
|
358
358
|
/**
|
|
359
359
|
* Maps complex or nested field types, such as Address fields, to their corresponding empty values.
|
|
360
360
|
*/
|
|
361
|
-
export declare function mapFieldTypeToEmptyValue(field: FieldConfig):
|
|
361
|
+
export declare function mapFieldTypeToEmptyValue(field: FieldConfig): z.core.$brand<"CustomFieldValue"> | never[] | Record<string, FieldUpdateValue> | null;
|
|
362
362
|
export declare const isParagraphFieldType: (field: {
|
|
363
363
|
config: FieldConfig;
|
|
364
364
|
value: FieldValue | FieldUpdateValue;
|
|
@@ -4,15 +4,15 @@ export declare const WorkqueueColumnKeys: z.ZodEnum<{
|
|
|
4
4
|
id: "id";
|
|
5
5
|
title: "title";
|
|
6
6
|
type: "type";
|
|
7
|
+
updatedAt: "updatedAt";
|
|
7
8
|
placeOfEvent: "placeOfEvent";
|
|
9
|
+
createdByUserType: "createdByUserType";
|
|
8
10
|
createdAt: "createdAt";
|
|
11
|
+
createdBy: "createdBy";
|
|
9
12
|
createdAtLocation: "createdAtLocation";
|
|
10
|
-
trackingId: "trackingId";
|
|
11
13
|
status: "status";
|
|
12
|
-
updatedAt: "updatedAt";
|
|
13
|
-
createdByUserType: "createdByUserType";
|
|
14
|
-
createdBy: "createdBy";
|
|
15
14
|
assignedTo: "assignedTo";
|
|
15
|
+
trackingId: "trackingId";
|
|
16
16
|
legalStatuses: "legalStatuses";
|
|
17
17
|
dateOfEvent: "dateOfEvent";
|
|
18
18
|
updatedByUserRole: "updatedByUserRole";
|
|
@@ -27,15 +27,15 @@ export declare const WorkqueueColumnValue: z.ZodObject<{
|
|
|
27
27
|
id: "id";
|
|
28
28
|
title: "title";
|
|
29
29
|
type: "type";
|
|
30
|
+
updatedAt: "updatedAt";
|
|
30
31
|
placeOfEvent: "placeOfEvent";
|
|
32
|
+
createdByUserType: "createdByUserType";
|
|
31
33
|
createdAt: "createdAt";
|
|
34
|
+
createdBy: "createdBy";
|
|
32
35
|
createdAtLocation: "createdAtLocation";
|
|
33
|
-
trackingId: "trackingId";
|
|
34
36
|
status: "status";
|
|
35
|
-
updatedAt: "updatedAt";
|
|
36
|
-
createdByUserType: "createdByUserType";
|
|
37
|
-
createdBy: "createdBy";
|
|
38
37
|
assignedTo: "assignedTo";
|
|
38
|
+
trackingId: "trackingId";
|
|
39
39
|
legalStatuses: "legalStatuses";
|
|
40
40
|
dateOfEvent: "dateOfEvent";
|
|
41
41
|
updatedByUserRole: "updatedByUserRole";
|
|
@@ -56,15 +56,15 @@ export declare const WorkqueueColumn: z.ZodObject<{
|
|
|
56
56
|
id: "id";
|
|
57
57
|
title: "title";
|
|
58
58
|
type: "type";
|
|
59
|
+
updatedAt: "updatedAt";
|
|
59
60
|
placeOfEvent: "placeOfEvent";
|
|
61
|
+
createdByUserType: "createdByUserType";
|
|
60
62
|
createdAt: "createdAt";
|
|
63
|
+
createdBy: "createdBy";
|
|
61
64
|
createdAtLocation: "createdAtLocation";
|
|
62
|
-
trackingId: "trackingId";
|
|
63
65
|
status: "status";
|
|
64
|
-
updatedAt: "updatedAt";
|
|
65
|
-
createdByUserType: "createdByUserType";
|
|
66
|
-
createdBy: "createdBy";
|
|
67
66
|
assignedTo: "assignedTo";
|
|
67
|
+
trackingId: "trackingId";
|
|
68
68
|
legalStatuses: "legalStatuses";
|
|
69
69
|
dateOfEvent: "dateOfEvent";
|
|
70
70
|
updatedByUserRole: "updatedByUserRole";
|
|
@@ -84,7 +84,7 @@ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColum
|
|
|
84
84
|
description: string;
|
|
85
85
|
};
|
|
86
86
|
value: {
|
|
87
|
-
$event: "id" | "title" | "type" | "
|
|
87
|
+
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
88
88
|
};
|
|
89
89
|
}[];
|
|
90
90
|
//# sourceMappingURL=WorkqueueColumnConfig.d.ts.map
|