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