@opencrvs/toolkit 1.9.7-rc.7aada57 → 1.9.7-rc.80d99a5
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 +224 -234
- package/dist/commons/events/ActionDocument.d.ts +47 -47
- package/dist/commons/events/Draft.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +19 -19
- package/dist/commons/events/EventIndex.d.ts +3 -3
- package/dist/commons/events/EventMetadata.d.ts +7 -7
- package/dist/commons/events/state/index.d.ts +3 -3
- package/dist/commons/events/state/utils.d.ts +21 -21
- package/dist/commons/events/test.utils.d.ts +0 -14
- package/dist/commons/events/utils.d.ts +19 -19
- package/dist/events/index.js +5 -53
- package/dist/notification/index.js +4 -6
- package/dist/scopes/index.d.ts +2 -3
- package/dist/scopes/index.js +1 -3
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export declare const ActionCreationMetadata: z.ZodObject<{
|
|
|
21
21
|
user: "user";
|
|
22
22
|
}>>>;
|
|
23
23
|
acceptedAt: z.ZodISODateTime;
|
|
24
|
-
createdByRole: z.
|
|
24
|
+
createdByRole: z.ZodString;
|
|
25
25
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
|
|
@@ -34,7 +34,7 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
34
34
|
user: "user";
|
|
35
35
|
}>>>;
|
|
36
36
|
acceptedAt: z.ZodISODateTime;
|
|
37
|
-
createdByRole: z.
|
|
37
|
+
createdByRole: z.ZodString;
|
|
38
38
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
registrationNumber: z.ZodString;
|
|
40
40
|
}, z.core.$strip>;
|
|
@@ -49,7 +49,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
49
49
|
user: "user";
|
|
50
50
|
}>>>;
|
|
51
51
|
acceptedAt: z.ZodISODateTime;
|
|
52
|
-
createdByRole: z.
|
|
52
|
+
createdByRole: z.ZodString;
|
|
53
53
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
}, z.core.$strip>>>;
|
|
55
55
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -61,7 +61,7 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
61
61
|
user: "user";
|
|
62
62
|
}>>>;
|
|
63
63
|
acceptedAt: z.ZodISODateTime;
|
|
64
|
-
createdByRole: z.
|
|
64
|
+
createdByRole: z.ZodString;
|
|
65
65
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
registrationNumber: z.ZodString;
|
|
67
67
|
}, z.core.$strip>>>;
|
|
@@ -91,7 +91,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
91
91
|
user: "user";
|
|
92
92
|
}>>>;
|
|
93
93
|
acceptedAt: z.ZodISODateTime;
|
|
94
|
-
createdByRole: z.
|
|
94
|
+
createdByRole: z.ZodString;
|
|
95
95
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
96
|
}, z.core.$strip>>>;
|
|
97
97
|
REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -103,7 +103,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
103
103
|
user: "user";
|
|
104
104
|
}>>>;
|
|
105
105
|
acceptedAt: z.ZodISODateTime;
|
|
106
|
-
createdByRole: z.
|
|
106
|
+
createdByRole: z.ZodString;
|
|
107
107
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
108
|
registrationNumber: z.ZodString;
|
|
109
109
|
}, z.core.$strip>>>;
|
|
@@ -116,7 +116,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
116
116
|
system: "system";
|
|
117
117
|
user: "user";
|
|
118
118
|
}>>>;
|
|
119
|
-
updatedByUserRole: z.
|
|
119
|
+
updatedByUserRole: z.ZodString;
|
|
120
120
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
121
121
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
122
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
@@ -72,24 +72,25 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
72
72
|
createdAt: string;
|
|
73
73
|
createdBy: string;
|
|
74
74
|
acceptedAt: string;
|
|
75
|
+
createdByRole: string;
|
|
75
76
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
76
77
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
77
|
-
createdByRole?: string | null | undefined;
|
|
78
78
|
createdBySignature?: string | null | undefined;
|
|
79
79
|
} | null | undefined;
|
|
80
80
|
REGISTERED?: {
|
|
81
81
|
createdAt: string;
|
|
82
82
|
createdBy: string;
|
|
83
83
|
acceptedAt: string;
|
|
84
|
+
createdByRole: string;
|
|
84
85
|
registrationNumber: string;
|
|
85
86
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
86
87
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
87
|
-
createdByRole?: string | null | undefined;
|
|
88
88
|
createdBySignature?: string | null | undefined;
|
|
89
89
|
} | null | undefined;
|
|
90
90
|
};
|
|
91
91
|
createdAt: string;
|
|
92
92
|
createdBy: string;
|
|
93
|
+
updatedByUserRole: string;
|
|
93
94
|
updatedAt: string;
|
|
94
95
|
trackingId: string;
|
|
95
96
|
potentialDuplicates: {
|
|
@@ -101,7 +102,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
101
102
|
dateOfEvent?: string | null | undefined;
|
|
102
103
|
placeOfEvent?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
103
104
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
104
|
-
updatedByUserRole?: string | null | undefined;
|
|
105
105
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
106
106
|
createdBySignature?: string | null | undefined;
|
|
107
107
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
@@ -12,10 +12,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
12
12
|
createdByUserType: "system" | "user";
|
|
13
13
|
createdAt: string;
|
|
14
14
|
createdBy: string;
|
|
15
|
+
createdByRole: string;
|
|
15
16
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
16
17
|
status: "Rejected" | "Requested" | "Accepted";
|
|
17
18
|
type: "REGISTER";
|
|
18
|
-
createdByRole?: string | null | undefined;
|
|
19
19
|
createdBySignature?: string | null | undefined;
|
|
20
20
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
21
21
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -27,6 +27,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
27
27
|
createdByUserType: "system" | "user";
|
|
28
28
|
createdAt: string;
|
|
29
29
|
createdBy: string;
|
|
30
|
+
createdByRole: string;
|
|
30
31
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
31
32
|
status: "Rejected" | "Requested" | "Accepted";
|
|
32
33
|
type: "DUPLICATE_DETECTED";
|
|
@@ -36,7 +37,6 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
36
37
|
trackingId: string;
|
|
37
38
|
}[];
|
|
38
39
|
};
|
|
39
|
-
createdByRole?: string | null | undefined;
|
|
40
40
|
createdBySignature?: string | null | undefined;
|
|
41
41
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
42
42
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -47,13 +47,13 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
47
47
|
createdByUserType: "system" | "user";
|
|
48
48
|
createdAt: string;
|
|
49
49
|
createdBy: string;
|
|
50
|
+
createdByRole: string;
|
|
50
51
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
51
52
|
status: "Rejected" | "Requested" | "Accepted";
|
|
52
53
|
type: "EDIT";
|
|
53
54
|
content: {
|
|
54
55
|
comment?: string | undefined;
|
|
55
56
|
};
|
|
56
|
-
createdByRole?: string | null | undefined;
|
|
57
57
|
createdBySignature?: string | null | undefined;
|
|
58
58
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
59
59
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -64,10 +64,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
64
64
|
createdByUserType: "system" | "user";
|
|
65
65
|
createdAt: string;
|
|
66
66
|
createdBy: string;
|
|
67
|
+
createdByRole: string;
|
|
67
68
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
68
69
|
status: "Rejected" | "Requested" | "Accepted";
|
|
69
70
|
type: "PRINT_CERTIFICATE";
|
|
70
|
-
createdByRole?: string | null | undefined;
|
|
71
71
|
createdBySignature?: string | null | undefined;
|
|
72
72
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
73
73
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -81,10 +81,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
81
81
|
createdByUserType: "system" | "user";
|
|
82
82
|
createdAt: string;
|
|
83
83
|
createdBy: string;
|
|
84
|
+
createdByRole: string;
|
|
84
85
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
85
86
|
status: "Rejected" | "Requested" | "Accepted";
|
|
86
87
|
type: "REQUEST_CORRECTION";
|
|
87
|
-
createdByRole?: string | null | undefined;
|
|
88
88
|
createdBySignature?: string | null | undefined;
|
|
89
89
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
90
90
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -95,11 +95,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
95
95
|
createdByUserType: "system" | "user";
|
|
96
96
|
createdAt: string;
|
|
97
97
|
createdBy: string;
|
|
98
|
+
createdByRole: string;
|
|
98
99
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
99
100
|
status: "Rejected" | "Requested" | "Accepted";
|
|
100
101
|
type: "CUSTOM";
|
|
101
102
|
customActionType: string;
|
|
102
|
-
createdByRole?: string | null | undefined;
|
|
103
103
|
createdBySignature?: string | null | undefined;
|
|
104
104
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
105
105
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -110,10 +110,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
110
110
|
createdByUserType: "system" | "user";
|
|
111
111
|
createdAt: string;
|
|
112
112
|
createdBy: string;
|
|
113
|
+
createdByRole: string;
|
|
113
114
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
114
115
|
status: "Rejected" | "Requested" | "Accepted";
|
|
115
116
|
type: "CREATE";
|
|
116
|
-
createdByRole?: string | null | undefined;
|
|
117
117
|
createdBySignature?: string | null | undefined;
|
|
118
118
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
119
119
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -124,13 +124,13 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
124
124
|
createdByUserType: "system" | "user";
|
|
125
125
|
createdAt: string;
|
|
126
126
|
createdBy: string;
|
|
127
|
+
createdByRole: string;
|
|
127
128
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
128
129
|
status: "Rejected" | "Requested" | "Accepted";
|
|
129
130
|
type: "REJECT";
|
|
130
131
|
content: {
|
|
131
132
|
reason: string;
|
|
132
133
|
};
|
|
133
|
-
createdByRole?: string | null | undefined;
|
|
134
134
|
createdBySignature?: string | null | undefined;
|
|
135
135
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
136
136
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -141,10 +141,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
141
141
|
createdByUserType: "system" | "user";
|
|
142
142
|
createdAt: string;
|
|
143
143
|
createdBy: string;
|
|
144
|
+
createdByRole: string;
|
|
144
145
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
145
146
|
status: "Rejected" | "Requested" | "Accepted";
|
|
146
147
|
type: "MARK_AS_NOT_DUPLICATE";
|
|
147
|
-
createdByRole?: string | null | undefined;
|
|
148
148
|
createdBySignature?: string | null | undefined;
|
|
149
149
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
150
150
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -155,10 +155,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
155
155
|
createdByUserType: "system" | "user";
|
|
156
156
|
createdAt: string;
|
|
157
157
|
createdBy: string;
|
|
158
|
+
createdByRole: string;
|
|
158
159
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
159
160
|
status: "Rejected" | "Requested" | "Accepted";
|
|
160
161
|
type: "MARK_AS_DUPLICATE";
|
|
161
|
-
createdByRole?: string | null | undefined;
|
|
162
162
|
createdBySignature?: string | null | undefined;
|
|
163
163
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
164
164
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -172,13 +172,13 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
172
172
|
createdByUserType: "system" | "user";
|
|
173
173
|
createdAt: string;
|
|
174
174
|
createdBy: string;
|
|
175
|
+
createdByRole: string;
|
|
175
176
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
176
177
|
status: "Rejected" | "Requested" | "Accepted";
|
|
177
178
|
type: "ARCHIVE";
|
|
178
179
|
content: {
|
|
179
180
|
reason: string;
|
|
180
181
|
};
|
|
181
|
-
createdByRole?: string | null | undefined;
|
|
182
182
|
createdBySignature?: string | null | undefined;
|
|
183
183
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
184
184
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -189,10 +189,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
189
189
|
createdByUserType: "system" | "user";
|
|
190
190
|
createdAt: string;
|
|
191
191
|
createdBy: string;
|
|
192
|
+
createdByRole: string;
|
|
192
193
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
193
194
|
status: "Rejected" | "Requested" | "Accepted";
|
|
194
195
|
type: "NOTIFY";
|
|
195
|
-
createdByRole?: string | null | undefined;
|
|
196
196
|
createdBySignature?: string | null | undefined;
|
|
197
197
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
198
198
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -203,10 +203,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
203
203
|
createdByUserType: "system" | "user";
|
|
204
204
|
createdAt: string;
|
|
205
205
|
createdBy: string;
|
|
206
|
+
createdByRole: string;
|
|
206
207
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
207
208
|
status: "Rejected" | "Requested" | "Accepted";
|
|
208
209
|
type: "DECLARE";
|
|
209
|
-
createdByRole?: string | null | undefined;
|
|
210
210
|
createdBySignature?: string | null | undefined;
|
|
211
211
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
212
212
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -217,11 +217,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
217
217
|
createdByUserType: "system" | "user";
|
|
218
218
|
createdAt: string;
|
|
219
219
|
createdBy: string;
|
|
220
|
+
createdByRole: string;
|
|
220
221
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
221
222
|
status: "Rejected" | "Requested" | "Accepted";
|
|
222
223
|
type: "ASSIGN";
|
|
223
224
|
assignedTo: string;
|
|
224
|
-
createdByRole?: string | null | undefined;
|
|
225
225
|
createdBySignature?: string | null | undefined;
|
|
226
226
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
227
227
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -232,11 +232,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
232
232
|
createdByUserType: "system" | "user";
|
|
233
233
|
createdAt: string;
|
|
234
234
|
createdBy: string;
|
|
235
|
+
createdByRole: string;
|
|
235
236
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
236
237
|
status: "Rejected" | "Requested" | "Accepted";
|
|
237
238
|
type: "APPROVE_CORRECTION";
|
|
238
239
|
requestId: string;
|
|
239
|
-
createdByRole?: string | null | undefined;
|
|
240
240
|
createdBySignature?: string | null | undefined;
|
|
241
241
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
242
242
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -247,6 +247,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
247
247
|
createdByUserType: "system" | "user";
|
|
248
248
|
createdAt: string;
|
|
249
249
|
createdBy: string;
|
|
250
|
+
createdByRole: string;
|
|
250
251
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
251
252
|
status: "Rejected" | "Requested" | "Accepted";
|
|
252
253
|
type: "REJECT_CORRECTION";
|
|
@@ -254,7 +255,6 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
254
255
|
content: {
|
|
255
256
|
reason: string;
|
|
256
257
|
};
|
|
257
|
-
createdByRole?: string | null | undefined;
|
|
258
258
|
createdBySignature?: string | null | undefined;
|
|
259
259
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
260
260
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -265,10 +265,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
265
265
|
createdByUserType: "system" | "user";
|
|
266
266
|
createdAt: string;
|
|
267
267
|
createdBy: string;
|
|
268
|
+
createdByRole: string;
|
|
268
269
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
269
270
|
status: "Rejected" | "Requested" | "Accepted";
|
|
270
271
|
type: "UNASSIGN";
|
|
271
|
-
createdByRole?: string | null | undefined;
|
|
272
272
|
createdBySignature?: string | null | undefined;
|
|
273
273
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
274
274
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -279,10 +279,10 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
279
279
|
createdByUserType: "system" | "user";
|
|
280
280
|
createdAt: string;
|
|
281
281
|
createdBy: string;
|
|
282
|
+
createdByRole: string;
|
|
282
283
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
283
284
|
status: "Rejected" | "Requested" | "Accepted";
|
|
284
285
|
type: "READ";
|
|
285
|
-
createdByRole?: string | null | undefined;
|
|
286
286
|
createdBySignature?: string | null | undefined;
|
|
287
287
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
288
288
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -293,9 +293,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
293
293
|
createdByUserType: "system" | "user";
|
|
294
294
|
createdAt: string;
|
|
295
295
|
createdBy: string;
|
|
296
|
+
createdByRole: string;
|
|
296
297
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
297
298
|
status: "Rejected";
|
|
298
|
-
createdByRole?: string | null | undefined;
|
|
299
299
|
createdBySignature?: string | null | undefined;
|
|
300
300
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
301
301
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
@@ -311,7 +311,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
311
311
|
createdByUserType: "system" | "user";
|
|
312
312
|
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
313
313
|
acceptedAt: string;
|
|
314
|
-
createdByRole: string
|
|
314
|
+
createdByRole: string;
|
|
315
315
|
createdBySignature: string | null | undefined;
|
|
316
316
|
registrationNumber: string | null | undefined;
|
|
317
317
|
} | null;
|
|
@@ -321,7 +321,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
321
321
|
createdByUserType: "system" | "user";
|
|
322
322
|
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
323
323
|
acceptedAt: string;
|
|
324
|
-
createdByRole: string
|
|
324
|
+
createdByRole: string;
|
|
325
325
|
createdBySignature: string | null | undefined;
|
|
326
326
|
registrationNumber: string | null | undefined;
|
|
327
327
|
} | null;
|
|
@@ -254,18 +254,4 @@ export declare const BearerTokenByUserType: {
|
|
|
254
254
|
localRegistrar: string;
|
|
255
255
|
};
|
|
256
256
|
export declare const generateWorkqueues: (slug?: string) => WorkqueueConfig[];
|
|
257
|
-
/**
|
|
258
|
-
* Backend focused event config generator for testing fields in a lightweight way.
|
|
259
|
-
*
|
|
260
|
-
* @param id - The unique identifier for the event.
|
|
261
|
-
* @param fields - Field configurations to include in the event declaration. Everything in a single page.
|
|
262
|
-
* @param placeOfEventId - Optional place of event field id.
|
|
263
|
-
* @param dateOfEventId - Optional date of event field id.
|
|
264
|
-
*/
|
|
265
|
-
export declare const generateEventConfig: ({ id, fields, placeOfEventId, dateOfEventId }: {
|
|
266
|
-
id: string;
|
|
267
|
-
fields: FieldConfig[];
|
|
268
|
-
placeOfEventId?: string;
|
|
269
|
-
dateOfEventId?: string;
|
|
270
|
-
}) => EventConfig;
|
|
271
257
|
//# sourceMappingURL=test.utils.d.ts.map
|
|
@@ -26317,10 +26317,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26317
26317
|
createdByUserType: "system" | "user";
|
|
26318
26318
|
createdAt: string;
|
|
26319
26319
|
createdBy: string;
|
|
26320
|
+
createdByRole: string;
|
|
26320
26321
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26321
26322
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26322
26323
|
type: "REGISTER";
|
|
26323
|
-
createdByRole?: string | null | undefined;
|
|
26324
26324
|
createdBySignature?: string | null | undefined;
|
|
26325
26325
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26326
26326
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26332,6 +26332,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26332
26332
|
createdByUserType: "system" | "user";
|
|
26333
26333
|
createdAt: string;
|
|
26334
26334
|
createdBy: string;
|
|
26335
|
+
createdByRole: string;
|
|
26335
26336
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26336
26337
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26337
26338
|
type: "DUPLICATE_DETECTED";
|
|
@@ -26341,7 +26342,6 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26341
26342
|
trackingId: string;
|
|
26342
26343
|
}[];
|
|
26343
26344
|
};
|
|
26344
|
-
createdByRole?: string | null | undefined;
|
|
26345
26345
|
createdBySignature?: string | null | undefined;
|
|
26346
26346
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26347
26347
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26352,13 +26352,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26352
26352
|
createdByUserType: "system" | "user";
|
|
26353
26353
|
createdAt: string;
|
|
26354
26354
|
createdBy: string;
|
|
26355
|
+
createdByRole: string;
|
|
26355
26356
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26356
26357
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26357
26358
|
type: "EDIT";
|
|
26358
26359
|
content: {
|
|
26359
26360
|
comment?: string | undefined;
|
|
26360
26361
|
};
|
|
26361
|
-
createdByRole?: string | null | undefined;
|
|
26362
26362
|
createdBySignature?: string | null | undefined;
|
|
26363
26363
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26364
26364
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26369,10 +26369,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26369
26369
|
createdByUserType: "system" | "user";
|
|
26370
26370
|
createdAt: string;
|
|
26371
26371
|
createdBy: string;
|
|
26372
|
+
createdByRole: string;
|
|
26372
26373
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26373
26374
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26374
26375
|
type: "PRINT_CERTIFICATE";
|
|
26375
|
-
createdByRole?: string | null | undefined;
|
|
26376
26376
|
createdBySignature?: string | null | undefined;
|
|
26377
26377
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26378
26378
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26386,10 +26386,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26386
26386
|
createdByUserType: "system" | "user";
|
|
26387
26387
|
createdAt: string;
|
|
26388
26388
|
createdBy: string;
|
|
26389
|
+
createdByRole: string;
|
|
26389
26390
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26390
26391
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26391
26392
|
type: "REQUEST_CORRECTION";
|
|
26392
|
-
createdByRole?: string | null | undefined;
|
|
26393
26393
|
createdBySignature?: string | null | undefined;
|
|
26394
26394
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26395
26395
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26400,11 +26400,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26400
26400
|
createdByUserType: "system" | "user";
|
|
26401
26401
|
createdAt: string;
|
|
26402
26402
|
createdBy: string;
|
|
26403
|
+
createdByRole: string;
|
|
26403
26404
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26404
26405
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26405
26406
|
type: "CUSTOM";
|
|
26406
26407
|
customActionType: string;
|
|
26407
|
-
createdByRole?: string | null | undefined;
|
|
26408
26408
|
createdBySignature?: string | null | undefined;
|
|
26409
26409
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26410
26410
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26415,10 +26415,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26415
26415
|
createdByUserType: "system" | "user";
|
|
26416
26416
|
createdAt: string;
|
|
26417
26417
|
createdBy: string;
|
|
26418
|
+
createdByRole: string;
|
|
26418
26419
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26419
26420
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26420
26421
|
type: "CREATE";
|
|
26421
|
-
createdByRole?: string | null | undefined;
|
|
26422
26422
|
createdBySignature?: string | null | undefined;
|
|
26423
26423
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26424
26424
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26429,13 +26429,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26429
26429
|
createdByUserType: "system" | "user";
|
|
26430
26430
|
createdAt: string;
|
|
26431
26431
|
createdBy: string;
|
|
26432
|
+
createdByRole: string;
|
|
26432
26433
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26433
26434
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26434
26435
|
type: "REJECT";
|
|
26435
26436
|
content: {
|
|
26436
26437
|
reason: string;
|
|
26437
26438
|
};
|
|
26438
|
-
createdByRole?: string | null | undefined;
|
|
26439
26439
|
createdBySignature?: string | null | undefined;
|
|
26440
26440
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26441
26441
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26446,10 +26446,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26446
26446
|
createdByUserType: "system" | "user";
|
|
26447
26447
|
createdAt: string;
|
|
26448
26448
|
createdBy: string;
|
|
26449
|
+
createdByRole: string;
|
|
26449
26450
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26450
26451
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26451
26452
|
type: "MARK_AS_NOT_DUPLICATE";
|
|
26452
|
-
createdByRole?: string | null | undefined;
|
|
26453
26453
|
createdBySignature?: string | null | undefined;
|
|
26454
26454
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26455
26455
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26460,10 +26460,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26460
26460
|
createdByUserType: "system" | "user";
|
|
26461
26461
|
createdAt: string;
|
|
26462
26462
|
createdBy: string;
|
|
26463
|
+
createdByRole: string;
|
|
26463
26464
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26464
26465
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26465
26466
|
type: "MARK_AS_DUPLICATE";
|
|
26466
|
-
createdByRole?: string | null | undefined;
|
|
26467
26467
|
createdBySignature?: string | null | undefined;
|
|
26468
26468
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26469
26469
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26477,13 +26477,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26477
26477
|
createdByUserType: "system" | "user";
|
|
26478
26478
|
createdAt: string;
|
|
26479
26479
|
createdBy: string;
|
|
26480
|
+
createdByRole: string;
|
|
26480
26481
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26481
26482
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26482
26483
|
type: "ARCHIVE";
|
|
26483
26484
|
content: {
|
|
26484
26485
|
reason: string;
|
|
26485
26486
|
};
|
|
26486
|
-
createdByRole?: string | null | undefined;
|
|
26487
26487
|
createdBySignature?: string | null | undefined;
|
|
26488
26488
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26489
26489
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26494,10 +26494,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26494
26494
|
createdByUserType: "system" | "user";
|
|
26495
26495
|
createdAt: string;
|
|
26496
26496
|
createdBy: string;
|
|
26497
|
+
createdByRole: string;
|
|
26497
26498
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26498
26499
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26499
26500
|
type: "NOTIFY";
|
|
26500
|
-
createdByRole?: string | null | undefined;
|
|
26501
26501
|
createdBySignature?: string | null | undefined;
|
|
26502
26502
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26503
26503
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26508,10 +26508,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26508
26508
|
createdByUserType: "system" | "user";
|
|
26509
26509
|
createdAt: string;
|
|
26510
26510
|
createdBy: string;
|
|
26511
|
+
createdByRole: string;
|
|
26511
26512
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26512
26513
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26513
26514
|
type: "DECLARE";
|
|
26514
|
-
createdByRole?: string | null | undefined;
|
|
26515
26515
|
createdBySignature?: string | null | undefined;
|
|
26516
26516
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26517
26517
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26522,11 +26522,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26522
26522
|
createdByUserType: "system" | "user";
|
|
26523
26523
|
createdAt: string;
|
|
26524
26524
|
createdBy: string;
|
|
26525
|
+
createdByRole: string;
|
|
26525
26526
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26526
26527
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26527
26528
|
type: "ASSIGN";
|
|
26528
26529
|
assignedTo: string;
|
|
26529
|
-
createdByRole?: string | null | undefined;
|
|
26530
26530
|
createdBySignature?: string | null | undefined;
|
|
26531
26531
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26532
26532
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26537,11 +26537,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26537
26537
|
createdByUserType: "system" | "user";
|
|
26538
26538
|
createdAt: string;
|
|
26539
26539
|
createdBy: string;
|
|
26540
|
+
createdByRole: string;
|
|
26540
26541
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26541
26542
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26542
26543
|
type: "APPROVE_CORRECTION";
|
|
26543
26544
|
requestId: string;
|
|
26544
|
-
createdByRole?: string | null | undefined;
|
|
26545
26545
|
createdBySignature?: string | null | undefined;
|
|
26546
26546
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26547
26547
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26552,6 +26552,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26552
26552
|
createdByUserType: "system" | "user";
|
|
26553
26553
|
createdAt: string;
|
|
26554
26554
|
createdBy: string;
|
|
26555
|
+
createdByRole: string;
|
|
26555
26556
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26556
26557
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26557
26558
|
type: "REJECT_CORRECTION";
|
|
@@ -26559,7 +26560,6 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26559
26560
|
content: {
|
|
26560
26561
|
reason: string;
|
|
26561
26562
|
};
|
|
26562
|
-
createdByRole?: string | null | undefined;
|
|
26563
26563
|
createdBySignature?: string | null | undefined;
|
|
26564
26564
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26565
26565
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26570,10 +26570,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26570
26570
|
createdByUserType: "system" | "user";
|
|
26571
26571
|
createdAt: string;
|
|
26572
26572
|
createdBy: string;
|
|
26573
|
+
createdByRole: string;
|
|
26573
26574
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26574
26575
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26575
26576
|
type: "UNASSIGN";
|
|
26576
|
-
createdByRole?: string | null | undefined;
|
|
26577
26577
|
createdBySignature?: string | null | undefined;
|
|
26578
26578
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26579
26579
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26584,10 +26584,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26584
26584
|
createdByUserType: "system" | "user";
|
|
26585
26585
|
createdAt: string;
|
|
26586
26586
|
createdBy: string;
|
|
26587
|
+
createdByRole: string;
|
|
26587
26588
|
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
26588
26589
|
status: "Rejected" | "Requested" | "Accepted";
|
|
26589
26590
|
type: "READ";
|
|
26590
|
-
createdByRole?: string | null | undefined;
|
|
26591
26591
|
createdBySignature?: string | null | undefined;
|
|
26592
26592
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26593
26593
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
@@ -26598,9 +26598,9 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
26598
26598
|
createdByUserType: "system" | "user";
|
|
26599
26599
|
createdAt: string;
|
|
26600
26600
|
createdBy: string;
|
|
26601
|
+
createdByRole: string;
|
|
26601
26602
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
26602
26603
|
status: "Rejected";
|
|
26603
|
-
createdByRole?: string | null | undefined;
|
|
26604
26604
|
createdBySignature?: string | null | undefined;
|
|
26605
26605
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
26606
26606
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|