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