@opencrvs/toolkit 1.8.1-rc.a372970 → 1.8.1-rc.b849abb
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 +5934 -5078
- package/dist/commons/conditionals/conditionals.d.ts +9 -13
- package/dist/commons/conditionals/validate.d.ts +15 -6
- package/dist/commons/events/ActionConfig.d.ts +119326 -1729
- package/dist/commons/events/ActionDocument.d.ts +4860 -1270
- package/dist/commons/events/ActionInput.d.ts +3241 -1025
- package/dist/commons/events/ActionType.d.ts +10 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1282 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +40 -9
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +288 -97
- package/dist/commons/events/EventConfig.d.ts +54363 -1357
- package/dist/commons/events/EventDocument.d.ts +2746 -833
- package/dist/commons/events/EventIndex.d.ts +2228 -29
- package/dist/commons/events/EventMetadata.d.ts +347 -47
- package/dist/commons/events/FieldConfig.d.ts +6756 -1260
- package/dist/commons/events/FieldType.d.ts +8 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +161 -73
- package/dist/commons/events/FieldValue.d.ts +91 -20
- package/dist/commons/events/FormConfig.d.ts +55770 -522
- package/dist/commons/events/PageConfig.d.ts +13825 -209
- package/dist/commons/events/SummaryConfig.d.ts +93 -42
- package/dist/commons/events/User.d.ts +34 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +8116 -20
- package/dist/commons/events/defineConfig.d.ts +8529 -77
- package/dist/commons/events/event.d.ts +46 -0
- package/dist/commons/events/field.d.ts +94 -0
- package/dist/commons/events/index.d.ts +8 -0
- package/dist/commons/events/scopes.d.ts +45 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +210 -90
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +15436 -88
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +66 -56
- package/dist/events/index.js +4662 -1786
- package/dist/scopes/index.d.ts +184 -7
- package/dist/scopes/index.js +140 -40
- package/package.json +4 -3
@@ -3,27 +3,176 @@ 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: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
7
|
+
export type EventStatus = z.infer<typeof EventStatus>;
|
8
|
+
export declare const VisibleStatus: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED", "REJECTED"]>;
|
9
|
+
export type VisibleStatus = z.infer<typeof VisibleStatus>;
|
10
|
+
export declare const InherentFlags: {
|
11
|
+
readonly PRINTED: "printed";
|
12
|
+
readonly INCOMPLETE: "incomplete";
|
13
|
+
readonly REJECTED: "rejected";
|
14
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
15
15
|
};
|
16
|
-
export type
|
17
|
-
export declare const
|
18
|
-
|
19
|
-
readonly
|
20
|
-
readonly
|
21
|
-
readonly
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
16
|
+
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
17
|
+
export declare const Flag: z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
18
|
+
readonly PRINTED: "printed";
|
19
|
+
readonly INCOMPLETE: "incomplete";
|
20
|
+
readonly REJECTED: "rejected";
|
21
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
22
|
+
}>]>;
|
23
|
+
export type Flag = z.infer<typeof Flag>;
|
24
|
+
export declare const ZodDate: z.ZodString;
|
25
|
+
export declare const ActionCreationMetadata: z.ZodObject<{
|
26
|
+
createdAt: z.ZodString;
|
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;
|
27
176
|
}>;
|
28
177
|
/**
|
29
178
|
* Event metadata exposed to client.
|
@@ -31,57 +180,208 @@ export declare const EventStatuses: z.ZodNativeEnum<{
|
|
31
180
|
* Accessed through `event.` in configuration.
|
32
181
|
*/
|
33
182
|
export declare const EventMetadata: z.ZodObject<{
|
34
|
-
id: z.ZodString
|
183
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
35
184
|
type: z.ZodString;
|
36
|
-
status: z.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
185
|
+
status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "CERTIFIED", "ARCHIVED"]>;
|
186
|
+
legalStatuses: z.ZodObject<{
|
187
|
+
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
188
|
+
createdAt: z.ZodString;
|
189
|
+
createdBy: z.ZodString;
|
190
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
191
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
192
|
+
acceptedAt: z.ZodString;
|
193
|
+
createdByRole: z.ZodString;
|
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;
|
45
281
|
}>;
|
46
282
|
createdAt: z.ZodString;
|
283
|
+
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
47
284
|
createdBy: z.ZodString;
|
48
|
-
|
49
|
-
|
285
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
|
286
|
+
updatedByUserRole: z.ZodString;
|
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;
|
50
291
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
51
|
-
updatedBy: z.ZodString
|
292
|
+
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
52
293
|
trackingId: z.ZodString;
|
53
|
-
|
294
|
+
flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
|
295
|
+
readonly PRINTED: "printed";
|
296
|
+
readonly INCOMPLETE: "incomplete";
|
297
|
+
readonly REJECTED: "rejected";
|
298
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
299
|
+
}>]>, "many">;
|
54
300
|
}, "strip", z.ZodTypeAny, {
|
55
301
|
type: string;
|
56
|
-
id: string
|
57
|
-
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "
|
302
|
+
id: string & z.BRAND<"UUID">;
|
303
|
+
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
58
304
|
createdAt: string;
|
59
305
|
createdBy: string;
|
60
|
-
|
306
|
+
updatedAt: string;
|
61
307
|
trackingId: string;
|
62
|
-
|
63
|
-
|
308
|
+
legalStatuses: {
|
309
|
+
DECLARED?: {
|
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;
|
64
334
|
assignedTo?: string | null | undefined;
|
65
|
-
|
335
|
+
dateOfEvent?: string | null | undefined;
|
336
|
+
updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
337
|
+
updatedBy?: string | null | undefined;
|
66
338
|
}, {
|
67
339
|
type: string;
|
68
340
|
id: string;
|
69
|
-
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "
|
341
|
+
status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
|
70
342
|
createdAt: string;
|
71
343
|
createdBy: string;
|
72
|
-
|
344
|
+
updatedAt: string;
|
73
345
|
trackingId: string;
|
74
|
-
|
75
|
-
|
346
|
+
legalStatuses: {
|
347
|
+
DECLARED?: {
|
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;
|
76
372
|
assignedTo?: string | null | undefined;
|
77
|
-
|
373
|
+
dateOfEvent?: string | null | undefined;
|
374
|
+
updatedAtLocation?: string | null | undefined;
|
375
|
+
updatedBy?: string | null | undefined;
|
78
376
|
}>;
|
79
377
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
80
|
-
export type
|
378
|
+
export declare const EventMetadataKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"];
|
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>;
|
81
381
|
/**
|
82
382
|
* Mapping of event metadata keys to translation configuration.
|
83
383
|
* Consider introducing type in same manner as we have in FieldConfig.
|
84
384
|
* We need a way to know how to parse it.
|
85
385
|
*/
|
86
|
-
export declare const eventMetadataLabelMap: Record<EventMetadataKeys
|
386
|
+
export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
|
87
387
|
//# sourceMappingURL=EventMetadata.d.ts.map
|