@opencrvs/toolkit 1.8.0-rc.f8aa0c5 → 1.8.0-rc.f8e0ee5
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/commons/api/router.d.ts +7549 -6145
- package/dist/commons/conditionals/conditionals.d.ts +0 -4
- package/dist/commons/conditionals/validate.d.ts +0 -6
- package/dist/commons/events/ActionConfig.d.ts +20914 -46894
- package/dist/commons/events/ActionDocument.d.ts +494 -1997
- package/dist/commons/events/ActionInput.d.ts +306 -1506
- package/dist/commons/events/ActionType.d.ts +0 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -279
- package/dist/commons/events/CompositeFieldValue.d.ts +0 -28
- package/dist/commons/events/Constants.d.ts +0 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +40 -141
- package/dist/commons/events/EventConfig.d.ts +14286 -29320
- package/dist/commons/events/EventDocument.d.ts +355 -1294
- package/dist/commons/events/EventIndex.d.ts +191 -849
- package/dist/commons/events/EventMetadata.d.ts +64 -73
- package/dist/commons/events/FieldConfig.d.ts +888 -1875
- package/dist/commons/events/FieldType.d.ts +1 -4
- package/dist/commons/events/FieldTypeMapping.d.ts +50 -89
- package/dist/commons/events/FieldValue.d.ts +5 -41
- package/dist/commons/events/FormConfig.d.ts +2510 -8840
- package/dist/commons/events/PageConfig.d.ts +1638 -3184
- package/dist/commons/events/SummaryConfig.d.ts +5 -0
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +1778 -4553
- package/dist/commons/events/defineConfig.d.ts +1440 -4157
- package/dist/commons/events/field.d.ts +0 -9
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/scopes.d.ts +3 -2
- package/dist/commons/events/test.utils.d.ts +39 -148
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +19 -10122
- package/dist/conditionals/index.js +18 -38
- package/dist/events/index.js +1681 -2347
- package/dist/scopes/index.d.ts +7 -96
- package/dist/scopes/index.js +26 -105
- package/package.json +3 -3
@@ -3,28 +3,44 @@ import { TranslationConfig } from './TranslationConfig';
|
|
3
3
|
/**
|
4
4
|
* Event statuses recognized by the system
|
5
5
|
*/
|
6
|
-
export declare const EventStatus:
|
7
|
-
|
8
|
-
|
9
|
-
readonly
|
10
|
-
readonly
|
11
|
-
readonly
|
6
|
+
export declare const EventStatus: {
|
7
|
+
readonly CREATED: "CREATED";
|
8
|
+
readonly NOTIFIED: "NOTIFIED";
|
9
|
+
readonly DECLARED: "DECLARED";
|
10
|
+
readonly VALIDATED: "VALIDATED";
|
11
|
+
readonly REGISTERED: "REGISTERED";
|
12
|
+
readonly CERTIFIED: "CERTIFIED";
|
13
|
+
readonly REJECTED: "REJECTED";
|
14
|
+
readonly ARCHIVED: "ARCHIVED";
|
15
|
+
};
|
16
|
+
export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus];
|
17
|
+
export declare const EventStatusEnum: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "REJECTED", "ARCHIVED"]>;
|
18
|
+
export declare const CustomFlags: {
|
19
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
12
20
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
13
21
|
};
|
14
|
-
export type
|
22
|
+
export type CustomFlags = (typeof CustomFlags)[keyof typeof CustomFlags];
|
15
23
|
export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
16
|
-
readonly
|
17
|
-
readonly INCOMPLETE: "incomplete";
|
18
|
-
readonly REJECTED: "rejected";
|
24
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
19
25
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
20
26
|
}>]>;
|
21
27
|
export type Flag = z.infer<typeof Flag>;
|
28
|
+
export declare const eventStatuses: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
29
|
+
export declare const EventStatuses: z.ZodNativeEnum<{
|
30
|
+
readonly CREATED: "CREATED";
|
31
|
+
readonly NOTIFIED: "NOTIFIED";
|
32
|
+
readonly DECLARED: "DECLARED";
|
33
|
+
readonly VALIDATED: "VALIDATED";
|
34
|
+
readonly REGISTERED: "REGISTERED";
|
35
|
+
readonly CERTIFIED: "CERTIFIED";
|
36
|
+
readonly REJECTED: "REJECTED";
|
37
|
+
readonly ARCHIVED: "ARCHIVED";
|
38
|
+
}>;
|
22
39
|
export declare const ZodDate: z.ZodString;
|
23
40
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
24
41
|
createdAt: z.ZodString;
|
25
42
|
createdBy: z.ZodString;
|
26
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
27
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
43
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
28
44
|
acceptedAt: z.ZodString;
|
29
45
|
createdByRole: z.ZodString;
|
30
46
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -33,15 +49,13 @@ export declare const ActionCreationMetadata: z.ZodObject<{
|
|
33
49
|
createdBy: string;
|
34
50
|
createdByRole: string;
|
35
51
|
acceptedAt: string;
|
36
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
37
52
|
createdBySignature?: string | null | undefined;
|
38
|
-
createdAtLocation?:
|
53
|
+
createdAtLocation?: string | null | undefined;
|
39
54
|
}, {
|
40
55
|
createdAt: string;
|
41
56
|
createdBy: string;
|
42
57
|
createdByRole: string;
|
43
58
|
acceptedAt: string;
|
44
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
45
59
|
createdBySignature?: string | null | undefined;
|
46
60
|
createdAtLocation?: string | null | undefined;
|
47
61
|
}>;
|
@@ -49,8 +63,7 @@ export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
49
63
|
export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.extendShape<{
|
50
64
|
createdAt: z.ZodString;
|
51
65
|
createdBy: z.ZodString;
|
52
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
53
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
66
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
54
67
|
acceptedAt: z.ZodString;
|
55
68
|
createdByRole: z.ZodString;
|
56
69
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -62,16 +75,14 @@ export declare const RegistrationCreationMetadata: z.ZodObject<z.objectUtil.exte
|
|
62
75
|
createdByRole: string;
|
63
76
|
registrationNumber: string;
|
64
77
|
acceptedAt: string;
|
65
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
66
78
|
createdBySignature?: string | null | undefined;
|
67
|
-
createdAtLocation?:
|
79
|
+
createdAtLocation?: string | null | undefined;
|
68
80
|
}, {
|
69
81
|
createdAt: string;
|
70
82
|
createdBy: string;
|
71
83
|
createdByRole: string;
|
72
84
|
registrationNumber: string;
|
73
85
|
acceptedAt: string;
|
74
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
75
86
|
createdBySignature?: string | null | undefined;
|
76
87
|
createdAtLocation?: string | null | undefined;
|
77
88
|
}>;
|
@@ -80,8 +91,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
80
91
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
81
92
|
createdAt: z.ZodString;
|
82
93
|
createdBy: z.ZodString;
|
83
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
84
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
94
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
85
95
|
acceptedAt: z.ZodString;
|
86
96
|
createdByRole: z.ZodString;
|
87
97
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -90,23 +100,20 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
90
100
|
createdBy: string;
|
91
101
|
createdByRole: string;
|
92
102
|
acceptedAt: string;
|
93
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
94
103
|
createdBySignature?: string | null | undefined;
|
95
|
-
createdAtLocation?:
|
104
|
+
createdAtLocation?: string | null | undefined;
|
96
105
|
}, {
|
97
106
|
createdAt: string;
|
98
107
|
createdBy: string;
|
99
108
|
createdByRole: string;
|
100
109
|
acceptedAt: string;
|
101
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
102
110
|
createdBySignature?: string | null | undefined;
|
103
111
|
createdAtLocation?: string | null | undefined;
|
104
112
|
}>>>;
|
105
113
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
106
114
|
createdAt: z.ZodString;
|
107
115
|
createdBy: z.ZodString;
|
108
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
109
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
116
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
110
117
|
acceptedAt: z.ZodString;
|
111
118
|
createdByRole: z.ZodString;
|
112
119
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -118,16 +125,14 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
118
125
|
createdByRole: string;
|
119
126
|
registrationNumber: string;
|
120
127
|
acceptedAt: string;
|
121
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
122
128
|
createdBySignature?: string | null | undefined;
|
123
|
-
createdAtLocation?:
|
129
|
+
createdAtLocation?: string | null | undefined;
|
124
130
|
}, {
|
125
131
|
createdAt: string;
|
126
132
|
createdBy: string;
|
127
133
|
createdByRole: string;
|
128
134
|
registrationNumber: string;
|
129
135
|
acceptedAt: string;
|
130
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
131
136
|
createdBySignature?: string | null | undefined;
|
132
137
|
createdAtLocation?: string | null | undefined;
|
133
138
|
}>>>;
|
@@ -137,9 +142,8 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
137
142
|
createdBy: string;
|
138
143
|
createdByRole: string;
|
139
144
|
acceptedAt: string;
|
140
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
141
145
|
createdBySignature?: string | null | undefined;
|
142
|
-
createdAtLocation?:
|
146
|
+
createdAtLocation?: string | null | undefined;
|
143
147
|
} | null | undefined;
|
144
148
|
REGISTERED?: {
|
145
149
|
createdAt: string;
|
@@ -147,9 +151,8 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
147
151
|
createdByRole: string;
|
148
152
|
registrationNumber: string;
|
149
153
|
acceptedAt: string;
|
150
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
151
154
|
createdBySignature?: string | null | undefined;
|
152
|
-
createdAtLocation?:
|
155
|
+
createdAtLocation?: string | null | undefined;
|
153
156
|
} | null | undefined;
|
154
157
|
}, {
|
155
158
|
DECLARED?: {
|
@@ -157,7 +160,6 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
157
160
|
createdBy: string;
|
158
161
|
createdByRole: string;
|
159
162
|
acceptedAt: string;
|
160
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
161
163
|
createdBySignature?: string | null | undefined;
|
162
164
|
createdAtLocation?: string | null | undefined;
|
163
165
|
} | null | undefined;
|
@@ -167,7 +169,6 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
167
169
|
createdByRole: string;
|
168
170
|
registrationNumber: string;
|
169
171
|
acceptedAt: string;
|
170
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
171
172
|
createdBySignature?: string | null | undefined;
|
172
173
|
createdAtLocation?: string | null | undefined;
|
173
174
|
} | null | undefined;
|
@@ -178,15 +179,23 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
178
179
|
* Accessed through `event.` in configuration.
|
179
180
|
*/
|
180
181
|
export declare const EventMetadata: z.ZodObject<{
|
181
|
-
id: z.
|
182
|
+
id: z.ZodString;
|
182
183
|
type: z.ZodString;
|
183
|
-
status: z.
|
184
|
+
status: z.ZodNativeEnum<{
|
185
|
+
readonly CREATED: "CREATED";
|
186
|
+
readonly NOTIFIED: "NOTIFIED";
|
187
|
+
readonly DECLARED: "DECLARED";
|
188
|
+
readonly VALIDATED: "VALIDATED";
|
189
|
+
readonly REGISTERED: "REGISTERED";
|
190
|
+
readonly CERTIFIED: "CERTIFIED";
|
191
|
+
readonly REJECTED: "REJECTED";
|
192
|
+
readonly ARCHIVED: "ARCHIVED";
|
193
|
+
}>;
|
184
194
|
legalStatuses: z.ZodObject<{
|
185
195
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
186
196
|
createdAt: z.ZodString;
|
187
197
|
createdBy: z.ZodString;
|
188
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
189
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
198
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
190
199
|
acceptedAt: z.ZodString;
|
191
200
|
createdByRole: z.ZodString;
|
192
201
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -195,23 +204,20 @@ export declare const EventMetadata: z.ZodObject<{
|
|
195
204
|
createdBy: string;
|
196
205
|
createdByRole: string;
|
197
206
|
acceptedAt: string;
|
198
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
199
207
|
createdBySignature?: string | null | undefined;
|
200
|
-
createdAtLocation?:
|
208
|
+
createdAtLocation?: string | null | undefined;
|
201
209
|
}, {
|
202
210
|
createdAt: string;
|
203
211
|
createdBy: string;
|
204
212
|
createdByRole: string;
|
205
213
|
acceptedAt: string;
|
206
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
207
214
|
createdBySignature?: string | null | undefined;
|
208
215
|
createdAtLocation?: string | null | undefined;
|
209
216
|
}>>>;
|
210
217
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
211
218
|
createdAt: z.ZodString;
|
212
219
|
createdBy: z.ZodString;
|
213
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
214
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
220
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
215
221
|
acceptedAt: z.ZodString;
|
216
222
|
createdByRole: z.ZodString;
|
217
223
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -223,16 +229,14 @@ export declare const EventMetadata: z.ZodObject<{
|
|
223
229
|
createdByRole: string;
|
224
230
|
registrationNumber: string;
|
225
231
|
acceptedAt: string;
|
226
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
227
232
|
createdBySignature?: string | null | undefined;
|
228
|
-
createdAtLocation?:
|
233
|
+
createdAtLocation?: string | null | undefined;
|
229
234
|
}, {
|
230
235
|
createdAt: string;
|
231
236
|
createdBy: string;
|
232
237
|
createdByRole: string;
|
233
238
|
registrationNumber: string;
|
234
239
|
acceptedAt: string;
|
235
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
236
240
|
createdBySignature?: string | null | undefined;
|
237
241
|
createdAtLocation?: string | null | undefined;
|
238
242
|
}>>>;
|
@@ -242,9 +246,8 @@ export declare const EventMetadata: z.ZodObject<{
|
|
242
246
|
createdBy: string;
|
243
247
|
createdByRole: string;
|
244
248
|
acceptedAt: string;
|
245
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
246
249
|
createdBySignature?: string | null | undefined;
|
247
|
-
createdAtLocation?:
|
250
|
+
createdAtLocation?: string | null | undefined;
|
248
251
|
} | null | undefined;
|
249
252
|
REGISTERED?: {
|
250
253
|
createdAt: string;
|
@@ -252,9 +255,8 @@ export declare const EventMetadata: z.ZodObject<{
|
|
252
255
|
createdByRole: string;
|
253
256
|
registrationNumber: string;
|
254
257
|
acceptedAt: string;
|
255
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
256
258
|
createdBySignature?: string | null | undefined;
|
257
|
-
createdAtLocation?:
|
259
|
+
createdAtLocation?: string | null | undefined;
|
258
260
|
} | null | undefined;
|
259
261
|
}, {
|
260
262
|
DECLARED?: {
|
@@ -262,7 +264,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
262
264
|
createdBy: string;
|
263
265
|
createdByRole: string;
|
264
266
|
acceptedAt: string;
|
265
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
266
267
|
createdBySignature?: string | null | undefined;
|
267
268
|
createdAtLocation?: string | null | undefined;
|
268
269
|
} | null | undefined;
|
@@ -272,7 +273,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
272
273
|
createdByRole: string;
|
273
274
|
registrationNumber: string;
|
274
275
|
acceptedAt: string;
|
275
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
276
276
|
createdBySignature?: string | null | undefined;
|
277
277
|
createdAtLocation?: string | null | undefined;
|
278
278
|
} | null | undefined;
|
@@ -280,24 +280,21 @@ export declare const EventMetadata: z.ZodObject<{
|
|
280
280
|
createdAt: z.ZodString;
|
281
281
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
282
282
|
createdBy: z.ZodString;
|
283
|
-
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
284
283
|
updatedByUserRole: z.ZodString;
|
285
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.
|
284
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
286
285
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
287
|
-
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.
|
286
|
+
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
288
287
|
updatedAt: z.ZodString;
|
289
288
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
290
289
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
291
290
|
trackingId: z.ZodString;
|
292
291
|
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
293
|
-
readonly
|
294
|
-
readonly INCOMPLETE: "incomplete";
|
295
|
-
readonly REJECTED: "rejected";
|
292
|
+
readonly CERTIFICATE_PRINTED: "certificate-printed";
|
296
293
|
readonly CORRECTION_REQUESTED: "correction-requested";
|
297
294
|
}>]>, "many">;
|
298
295
|
}, "strip", z.ZodTypeAny, {
|
299
296
|
type: string;
|
300
|
-
id: string
|
297
|
+
id: string;
|
301
298
|
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
302
299
|
createdAt: string;
|
303
300
|
createdBy: string;
|
@@ -309,9 +306,8 @@ export declare const EventMetadata: z.ZodObject<{
|
|
309
306
|
createdBy: string;
|
310
307
|
createdByRole: string;
|
311
308
|
acceptedAt: string;
|
312
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
313
309
|
createdBySignature?: string | null | undefined;
|
314
|
-
createdAtLocation?:
|
310
|
+
createdAtLocation?: string | null | undefined;
|
315
311
|
} | null | undefined;
|
316
312
|
REGISTERED?: {
|
317
313
|
createdAt: string;
|
@@ -319,19 +315,17 @@ export declare const EventMetadata: z.ZodObject<{
|
|
319
315
|
createdByRole: string;
|
320
316
|
registrationNumber: string;
|
321
317
|
acceptedAt: string;
|
322
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
323
318
|
createdBySignature?: string | null | undefined;
|
324
|
-
createdAtLocation?:
|
319
|
+
createdAtLocation?: string | null | undefined;
|
325
320
|
} | null | undefined;
|
326
321
|
};
|
327
322
|
updatedByUserRole: string;
|
328
323
|
flags: string[];
|
329
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
330
324
|
createdBySignature?: string | null | undefined;
|
331
|
-
createdAtLocation?:
|
325
|
+
createdAtLocation?: string | null | undefined;
|
332
326
|
assignedTo?: string | null | undefined;
|
333
327
|
dateOfEvent?: string | null | undefined;
|
334
|
-
updatedAtLocation?:
|
328
|
+
updatedAtLocation?: string | null | undefined;
|
335
329
|
updatedBy?: string | null | undefined;
|
336
330
|
}, {
|
337
331
|
type: string;
|
@@ -347,7 +341,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
347
341
|
createdBy: string;
|
348
342
|
createdByRole: string;
|
349
343
|
acceptedAt: string;
|
350
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
351
344
|
createdBySignature?: string | null | undefined;
|
352
345
|
createdAtLocation?: string | null | undefined;
|
353
346
|
} | null | undefined;
|
@@ -357,14 +350,12 @@ export declare const EventMetadata: z.ZodObject<{
|
|
357
350
|
createdByRole: string;
|
358
351
|
registrationNumber: string;
|
359
352
|
acceptedAt: string;
|
360
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
361
353
|
createdBySignature?: string | null | undefined;
|
362
354
|
createdAtLocation?: string | null | undefined;
|
363
355
|
} | null | undefined;
|
364
356
|
};
|
365
357
|
updatedByUserRole: string;
|
366
358
|
flags: string[];
|
367
|
-
createdByUserType?: "system" | "user" | null | undefined;
|
368
359
|
createdBySignature?: string | null | undefined;
|
369
360
|
createdAtLocation?: string | null | undefined;
|
370
361
|
assignedTo?: string | null | undefined;
|
@@ -373,8 +364,8 @@ export declare const EventMetadata: z.ZodObject<{
|
|
373
364
|
updatedBy?: string | null | undefined;
|
374
365
|
}>;
|
375
366
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
376
|
-
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "
|
377
|
-
export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "
|
367
|
+
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|
368
|
+
export declare const EventMetadataKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
|
378
369
|
export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
379
370
|
/**
|
380
371
|
* Mapping of event metadata keys to translation configuration.
|