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