@opencrvs/toolkit 1.9.12-rc.eec1bae → 1.9.12-rc.eee2c09
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 +1246 -35
- package/dist/commons/api/router.d.ts +217 -208
- 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 -32
- 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 +18 -9
- 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 +1244 -33
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +6 -5
- 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-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-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 +6 -7
- package/opencrvs-toolkit-1.9.12-rc.eee2c09.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.json +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.eec1bae.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>;
|
|
@@ -766,7 +766,6 @@ declare const Paragraph: z.ZodObject<{
|
|
|
766
766
|
}, z.core.$strip>>]>>;
|
|
767
767
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
768
768
|
type: z.ZodLiteral<"PARAGRAPH">;
|
|
769
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
770
769
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
771
770
|
styles: z.ZodOptional<z.ZodObject<{
|
|
772
771
|
hint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -822,7 +821,6 @@ declare const Heading: z.ZodObject<{
|
|
|
822
821
|
}, z.core.$strip>>]>>;
|
|
823
822
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
824
823
|
type: z.ZodLiteral<"HEADING">;
|
|
825
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
826
824
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
827
825
|
styles: z.ZodOptional<z.ZodObject<{
|
|
828
826
|
fontVariant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -885,7 +883,6 @@ declare const PageHeader: z.ZodObject<{
|
|
|
885
883
|
}, z.core.$strip>>]>>;
|
|
886
884
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
887
885
|
type: z.ZodLiteral<"PAGE_HEADER">;
|
|
888
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
889
886
|
}, z.core.$strip>;
|
|
890
887
|
export type PageHeader = z.infer<typeof PageHeader>;
|
|
891
888
|
declare const File: z.ZodObject<{
|
|
@@ -1139,7 +1136,6 @@ declare const BulletList: z.ZodObject<{
|
|
|
1139
1136
|
}, z.core.$strip>>]>>;
|
|
1140
1137
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1141
1138
|
type: z.ZodLiteral<"BULLET_LIST">;
|
|
1142
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1143
1139
|
items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
1144
1140
|
configuration: z.ZodDefault<z.ZodObject<{
|
|
1145
1141
|
styles: z.ZodOptional<z.ZodObject<{
|
|
@@ -1349,16 +1345,16 @@ declare const NameField: z.ZodObject<{
|
|
|
1349
1345
|
firstname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1350
1346
|
$userField: z.ZodEnum<{
|
|
1351
1347
|
id: "id";
|
|
1352
|
-
name: "name";
|
|
1353
|
-
role: "role";
|
|
1354
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1355
1348
|
firstname: "firstname";
|
|
1356
1349
|
surname: "surname";
|
|
1357
1350
|
middlename: "middlename";
|
|
1351
|
+
name: "name";
|
|
1352
|
+
role: "role";
|
|
1358
1353
|
fullHonorificName: "fullHonorificName";
|
|
1359
1354
|
device: "device";
|
|
1360
1355
|
signature: "signature";
|
|
1361
1356
|
avatar: "avatar";
|
|
1357
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1362
1358
|
administrativeAreaId: "administrativeAreaId";
|
|
1363
1359
|
}>;
|
|
1364
1360
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1366,16 +1362,16 @@ declare const NameField: z.ZodObject<{
|
|
|
1366
1362
|
middlename: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1367
1363
|
$userField: z.ZodEnum<{
|
|
1368
1364
|
id: "id";
|
|
1369
|
-
name: "name";
|
|
1370
|
-
role: "role";
|
|
1371
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1372
1365
|
firstname: "firstname";
|
|
1373
1366
|
surname: "surname";
|
|
1374
1367
|
middlename: "middlename";
|
|
1368
|
+
name: "name";
|
|
1369
|
+
role: "role";
|
|
1375
1370
|
fullHonorificName: "fullHonorificName";
|
|
1376
1371
|
device: "device";
|
|
1377
1372
|
signature: "signature";
|
|
1378
1373
|
avatar: "avatar";
|
|
1374
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1379
1375
|
administrativeAreaId: "administrativeAreaId";
|
|
1380
1376
|
}>;
|
|
1381
1377
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1383,16 +1379,16 @@ declare const NameField: z.ZodObject<{
|
|
|
1383
1379
|
surname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1384
1380
|
$userField: z.ZodEnum<{
|
|
1385
1381
|
id: "id";
|
|
1386
|
-
name: "name";
|
|
1387
|
-
role: "role";
|
|
1388
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1389
1382
|
firstname: "firstname";
|
|
1390
1383
|
surname: "surname";
|
|
1391
1384
|
middlename: "middlename";
|
|
1385
|
+
name: "name";
|
|
1386
|
+
role: "role";
|
|
1392
1387
|
fullHonorificName: "fullHonorificName";
|
|
1393
1388
|
device: "device";
|
|
1394
1389
|
signature: "signature";
|
|
1395
1390
|
avatar: "avatar";
|
|
1391
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1396
1392
|
administrativeAreaId: "administrativeAreaId";
|
|
1397
1393
|
}>;
|
|
1398
1394
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1663,16 +1659,16 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1663
1659
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1664
1660
|
$userField: z.ZodEnum<{
|
|
1665
1661
|
id: "id";
|
|
1666
|
-
name: "name";
|
|
1667
|
-
role: "role";
|
|
1668
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1669
1662
|
firstname: "firstname";
|
|
1670
1663
|
surname: "surname";
|
|
1671
1664
|
middlename: "middlename";
|
|
1665
|
+
name: "name";
|
|
1666
|
+
role: "role";
|
|
1672
1667
|
fullHonorificName: "fullHonorificName";
|
|
1673
1668
|
device: "device";
|
|
1674
1669
|
signature: "signature";
|
|
1675
1670
|
avatar: "avatar";
|
|
1671
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1676
1672
|
administrativeAreaId: "administrativeAreaId";
|
|
1677
1673
|
}>;
|
|
1678
1674
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -1789,21 +1785,21 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1789
1785
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1790
1786
|
$userField: z.ZodEnum<{
|
|
1791
1787
|
id: "id";
|
|
1792
|
-
name: "name";
|
|
1793
|
-
role: "role";
|
|
1794
|
-
primaryOfficeId: "primaryOfficeId";
|
|
1795
1788
|
firstname: "firstname";
|
|
1796
1789
|
surname: "surname";
|
|
1797
1790
|
middlename: "middlename";
|
|
1791
|
+
name: "name";
|
|
1792
|
+
role: "role";
|
|
1798
1793
|
fullHonorificName: "fullHonorificName";
|
|
1799
1794
|
device: "device";
|
|
1800
1795
|
signature: "signature";
|
|
1801
1796
|
avatar: "avatar";
|
|
1797
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1802
1798
|
administrativeAreaId: "administrativeAreaId";
|
|
1803
1799
|
}>;
|
|
1804
1800
|
$location: z.ZodOptional<z.ZodString>;
|
|
1805
1801
|
}, z.core.$strip>]>>;
|
|
1806
|
-
configuration: z.ZodObject<{
|
|
1802
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
|
1807
1803
|
locationTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1808
1804
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
1809
1805
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
@@ -1860,7 +1856,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1860
1856
|
}>;
|
|
1861
1857
|
}, z.core.$strip>]>;
|
|
1862
1858
|
}, z.core.$strip>>;
|
|
1863
|
-
}, z.core.$strip
|
|
1859
|
+
}, z.core.$strip>>;
|
|
1864
1860
|
}, z.core.$strip>;
|
|
1865
1861
|
export type LocationInput = z.infer<typeof LocationInput>;
|
|
1866
1862
|
declare const FileUploadWithOptions: z.ZodObject<{
|
|
@@ -2157,16 +2153,16 @@ export declare const DefaultAddressFieldValue: z.ZodObject<{
|
|
|
2157
2153
|
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
|
|
2158
2154
|
$userField: z.ZodEnum<{
|
|
2159
2155
|
id: "id";
|
|
2160
|
-
name: "name";
|
|
2161
|
-
role: "role";
|
|
2162
|
-
primaryOfficeId: "primaryOfficeId";
|
|
2163
2156
|
firstname: "firstname";
|
|
2164
2157
|
surname: "surname";
|
|
2165
2158
|
middlename: "middlename";
|
|
2159
|
+
name: "name";
|
|
2160
|
+
role: "role";
|
|
2166
2161
|
fullHonorificName: "fullHonorificName";
|
|
2167
2162
|
device: "device";
|
|
2168
2163
|
signature: "signature";
|
|
2169
2164
|
avatar: "avatar";
|
|
2165
|
+
primaryOfficeId: "primaryOfficeId";
|
|
2170
2166
|
administrativeAreaId: "administrativeAreaId";
|
|
2171
2167
|
}>;
|
|
2172
2168
|
$location: z.ZodOptional<z.ZodString>;
|
|
@@ -2218,8 +2214,8 @@ declare const Address: z.ZodObject<{
|
|
|
2218
2214
|
lineSeparator: z.ZodOptional<z.ZodString>;
|
|
2219
2215
|
fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2220
2216
|
id: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
2221
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2222
2217
|
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"COUNTRY">>>;
|
|
2218
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2223
2219
|
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2224
2220
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2225
2221
|
}, z.core.$strip>]>>>>;
|
|
@@ -2245,8 +2241,8 @@ declare const Address: z.ZodObject<{
|
|
|
2245
2241
|
}, z.core.$strip>>>>;
|
|
2246
2242
|
}, z.core.$strip>, z.ZodObject<{
|
|
2247
2243
|
id: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
2248
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2249
2244
|
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"ADMINISTRATIVE_AREA">>>;
|
|
2245
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2250
2246
|
required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2251
2247
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2252
2248
|
}, z.core.$strip>]>>>>;
|
|
@@ -2346,16 +2342,16 @@ declare const Address: z.ZodObject<{
|
|
|
2346
2342
|
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
|
|
2347
2343
|
$userField: z.ZodEnum<{
|
|
2348
2344
|
id: "id";
|
|
2349
|
-
name: "name";
|
|
2350
|
-
role: "role";
|
|
2351
|
-
primaryOfficeId: "primaryOfficeId";
|
|
2352
2345
|
firstname: "firstname";
|
|
2353
2346
|
surname: "surname";
|
|
2354
2347
|
middlename: "middlename";
|
|
2348
|
+
name: "name";
|
|
2349
|
+
role: "role";
|
|
2355
2350
|
fullHonorificName: "fullHonorificName";
|
|
2356
2351
|
device: "device";
|
|
2357
2352
|
signature: "signature";
|
|
2358
2353
|
avatar: "avatar";
|
|
2354
|
+
primaryOfficeId: "primaryOfficeId";
|
|
2359
2355
|
administrativeAreaId: "administrativeAreaId";
|
|
2360
2356
|
}>;
|
|
2361
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
|