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