@opencrvs/toolkit 1.9.7-rc.d44d88a → 1.9.7-rc.d83a5b8

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.
@@ -21,7 +21,7 @@ export declare const ActionCreationMetadata: z.ZodObject<{
21
21
  user: "user";
22
22
  }>>>;
23
23
  acceptedAt: z.ZodISODateTime;
24
- createdByRole: z.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodString>;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | undefined;
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 | undefined;
324
+ createdByRole: string;
325
325
  createdBySignature: string | null | undefined;
326
326
  registrationNumber: string | null | undefined;
327
327
  } | null;
@@ -26325,10 +26325,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26325
26325
  createdByUserType: "system" | "user";
26326
26326
  createdAt: string;
26327
26327
  createdBy: string;
26328
+ createdByRole: string;
26328
26329
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26329
26330
  status: "Rejected" | "Requested" | "Accepted";
26330
26331
  type: "REGISTER";
26331
- createdByRole?: string | undefined;
26332
26332
  createdBySignature?: string | null | undefined;
26333
26333
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26334
26334
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26340,6 +26340,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26340
26340
  createdByUserType: "system" | "user";
26341
26341
  createdAt: string;
26342
26342
  createdBy: string;
26343
+ createdByRole: string;
26343
26344
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26344
26345
  status: "Rejected" | "Requested" | "Accepted";
26345
26346
  type: "DUPLICATE_DETECTED";
@@ -26349,7 +26350,6 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26349
26350
  trackingId: string;
26350
26351
  }[];
26351
26352
  };
26352
- createdByRole?: string | undefined;
26353
26353
  createdBySignature?: string | null | undefined;
26354
26354
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26355
26355
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26360,13 +26360,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26360
26360
  createdByUserType: "system" | "user";
26361
26361
  createdAt: string;
26362
26362
  createdBy: string;
26363
+ createdByRole: string;
26363
26364
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26364
26365
  status: "Rejected" | "Requested" | "Accepted";
26365
26366
  type: "EDIT";
26366
26367
  content: {
26367
26368
  comment?: string | undefined;
26368
26369
  };
26369
- createdByRole?: string | undefined;
26370
26370
  createdBySignature?: string | null | undefined;
26371
26371
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26372
26372
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26377,10 +26377,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26377
26377
  createdByUserType: "system" | "user";
26378
26378
  createdAt: string;
26379
26379
  createdBy: string;
26380
+ createdByRole: string;
26380
26381
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26381
26382
  status: "Rejected" | "Requested" | "Accepted";
26382
26383
  type: "PRINT_CERTIFICATE";
26383
- createdByRole?: string | undefined;
26384
26384
  createdBySignature?: string | null | undefined;
26385
26385
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26386
26386
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26394,10 +26394,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26394
26394
  createdByUserType: "system" | "user";
26395
26395
  createdAt: string;
26396
26396
  createdBy: string;
26397
+ createdByRole: string;
26397
26398
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26398
26399
  status: "Rejected" | "Requested" | "Accepted";
26399
26400
  type: "REQUEST_CORRECTION";
26400
- createdByRole?: string | undefined;
26401
26401
  createdBySignature?: string | null | undefined;
26402
26402
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26403
26403
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26408,11 +26408,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26408
26408
  createdByUserType: "system" | "user";
26409
26409
  createdAt: string;
26410
26410
  createdBy: string;
26411
+ createdByRole: string;
26411
26412
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26412
26413
  status: "Rejected" | "Requested" | "Accepted";
26413
26414
  type: "CUSTOM";
26414
26415
  customActionType: string;
26415
- createdByRole?: string | undefined;
26416
26416
  createdBySignature?: string | null | undefined;
26417
26417
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26418
26418
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26423,10 +26423,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26423
26423
  createdByUserType: "system" | "user";
26424
26424
  createdAt: string;
26425
26425
  createdBy: string;
26426
+ createdByRole: string;
26426
26427
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26427
26428
  status: "Rejected" | "Requested" | "Accepted";
26428
26429
  type: "CREATE";
26429
- createdByRole?: string | undefined;
26430
26430
  createdBySignature?: string | null | undefined;
26431
26431
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26432
26432
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26437,13 +26437,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26437
26437
  createdByUserType: "system" | "user";
26438
26438
  createdAt: string;
26439
26439
  createdBy: string;
26440
+ createdByRole: string;
26440
26441
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26441
26442
  status: "Rejected" | "Requested" | "Accepted";
26442
26443
  type: "REJECT";
26443
26444
  content: {
26444
26445
  reason: string;
26445
26446
  };
26446
- createdByRole?: string | undefined;
26447
26447
  createdBySignature?: string | null | undefined;
26448
26448
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26449
26449
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26454,10 +26454,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26454
26454
  createdByUserType: "system" | "user";
26455
26455
  createdAt: string;
26456
26456
  createdBy: string;
26457
+ createdByRole: string;
26457
26458
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26458
26459
  status: "Rejected" | "Requested" | "Accepted";
26459
26460
  type: "MARK_AS_NOT_DUPLICATE";
26460
- createdByRole?: string | undefined;
26461
26461
  createdBySignature?: string | null | undefined;
26462
26462
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26463
26463
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26468,10 +26468,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26468
26468
  createdByUserType: "system" | "user";
26469
26469
  createdAt: string;
26470
26470
  createdBy: string;
26471
+ createdByRole: string;
26471
26472
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26472
26473
  status: "Rejected" | "Requested" | "Accepted";
26473
26474
  type: "MARK_AS_DUPLICATE";
26474
- createdByRole?: string | undefined;
26475
26475
  createdBySignature?: string | null | undefined;
26476
26476
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26477
26477
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26485,13 +26485,13 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26485
26485
  createdByUserType: "system" | "user";
26486
26486
  createdAt: string;
26487
26487
  createdBy: string;
26488
+ createdByRole: string;
26488
26489
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26489
26490
  status: "Rejected" | "Requested" | "Accepted";
26490
26491
  type: "ARCHIVE";
26491
26492
  content: {
26492
26493
  reason: string;
26493
26494
  };
26494
- createdByRole?: string | undefined;
26495
26495
  createdBySignature?: string | null | undefined;
26496
26496
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26497
26497
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26502,10 +26502,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26502
26502
  createdByUserType: "system" | "user";
26503
26503
  createdAt: string;
26504
26504
  createdBy: string;
26505
+ createdByRole: string;
26505
26506
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26506
26507
  status: "Rejected" | "Requested" | "Accepted";
26507
26508
  type: "NOTIFY";
26508
- createdByRole?: string | undefined;
26509
26509
  createdBySignature?: string | null | undefined;
26510
26510
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26511
26511
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26516,10 +26516,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26516
26516
  createdByUserType: "system" | "user";
26517
26517
  createdAt: string;
26518
26518
  createdBy: string;
26519
+ createdByRole: string;
26519
26520
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26520
26521
  status: "Rejected" | "Requested" | "Accepted";
26521
26522
  type: "DECLARE";
26522
- createdByRole?: string | undefined;
26523
26523
  createdBySignature?: string | null | undefined;
26524
26524
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26525
26525
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26530,11 +26530,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26530
26530
  createdByUserType: "system" | "user";
26531
26531
  createdAt: string;
26532
26532
  createdBy: string;
26533
+ createdByRole: string;
26533
26534
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26534
26535
  status: "Rejected" | "Requested" | "Accepted";
26535
26536
  type: "ASSIGN";
26536
26537
  assignedTo: string;
26537
- createdByRole?: string | undefined;
26538
26538
  createdBySignature?: string | null | undefined;
26539
26539
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26540
26540
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26545,11 +26545,11 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26545
26545
  createdByUserType: "system" | "user";
26546
26546
  createdAt: string;
26547
26547
  createdBy: string;
26548
+ createdByRole: string;
26548
26549
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26549
26550
  status: "Rejected" | "Requested" | "Accepted";
26550
26551
  type: "APPROVE_CORRECTION";
26551
26552
  requestId: string;
26552
- createdByRole?: string | undefined;
26553
26553
  createdBySignature?: string | null | undefined;
26554
26554
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26555
26555
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26560,6 +26560,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26560
26560
  createdByUserType: "system" | "user";
26561
26561
  createdAt: string;
26562
26562
  createdBy: string;
26563
+ createdByRole: string;
26563
26564
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26564
26565
  status: "Rejected" | "Requested" | "Accepted";
26565
26566
  type: "REJECT_CORRECTION";
@@ -26567,7 +26568,6 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26567
26568
  content: {
26568
26569
  reason: string;
26569
26570
  };
26570
- createdByRole?: string | undefined;
26571
26571
  createdBySignature?: string | null | undefined;
26572
26572
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26573
26573
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26578,10 +26578,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26578
26578
  createdByUserType: "system" | "user";
26579
26579
  createdAt: string;
26580
26580
  createdBy: string;
26581
+ createdByRole: string;
26581
26582
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26582
26583
  status: "Rejected" | "Requested" | "Accepted";
26583
26584
  type: "UNASSIGN";
26584
- createdByRole?: string | undefined;
26585
26585
  createdBySignature?: string | null | undefined;
26586
26586
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26587
26587
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26592,10 +26592,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26592
26592
  createdByUserType: "system" | "user";
26593
26593
  createdAt: string;
26594
26594
  createdBy: string;
26595
+ createdByRole: string;
26595
26596
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
26596
26597
  status: "Rejected" | "Requested" | "Accepted";
26597
26598
  type: "READ";
26598
- createdByRole?: string | undefined;
26599
26599
  createdBySignature?: string | null | undefined;
26600
26600
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26601
26601
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
@@ -26606,9 +26606,9 @@ export declare function findLastAssignmentAction(actions: Action[]): {
26606
26606
  createdByUserType: "system" | "user";
26607
26607
  createdAt: string;
26608
26608
  createdBy: string;
26609
+ createdByRole: string;
26609
26610
  type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
26610
26611
  status: "Rejected";
26611
- createdByRole?: string | undefined;
26612
26612
  createdBySignature?: string | null | undefined;
26613
26613
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
26614
26614
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
@@ -993,7 +993,6 @@ var SCOPES = {
993
993
  RECORD_IMPORT: "record.import",
994
994
  RECORD_EXPORT: "record.export",
995
995
  RECORD_REINDEX: "record.reindex",
996
- INTEGRATION_CREATE: "integration.create",
997
996
  // declare
998
997
  RECORD_DECLARE_BIRTH: "record.declare-birth",
999
998
  RECORD_DECLARE_BIRTH_MY_JURISDICTION: "record.declare-birth:my-jurisdiction",
@@ -1068,8 +1067,7 @@ var IntegrationScopes = z10.union([
1068
1067
  z10.literal(SCOPES.WEBHOOK),
1069
1068
  z10.literal(SCOPES.NATIONALID),
1070
1069
  z10.literal(SCOPES.NOTIFICATION_API),
1071
- z10.literal(SCOPES.RECORDSEARCH),
1072
- z10.literal(SCOPES.INTEGRATION_CREATE)
1070
+ z10.literal(SCOPES.RECORDSEARCH)
1073
1071
  ]);
1074
1072
  var InternalOperationsScopes = z10.union([
1075
1073
  z10.literal(SCOPES.RECORD_REINDEX),
@@ -1437,7 +1435,7 @@ var ActionBase = z12.object({
1437
1435
  ),
1438
1436
  createdAt: z12.string().datetime().describe("Timestamp indicating when the action was created."),
1439
1437
  createdBy: z12.string().describe("Identifier of the user who created the action."),
1440
- createdByRole: z12.string().optional().describe("Role of the user who created the action."),
1438
+ createdByRole: z12.string().describe("Role of the user who created the action."),
1441
1439
  createdBySignature: z12.string().nullish().describe("Reference to the signature of the user who created the action."),
1442
1440
  // @TODO: createdAtLocation should be non-nullable in the future once all actions have this field populated.
1443
1441
  createdAtLocation: UUID.nullish().describe(
@@ -1681,7 +1679,7 @@ var ActionCreationMetadata = z14.object({
1681
1679
  ),
1682
1680
  createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1683
1681
  acceptedAt: z14.iso.datetime().describe("Timestamp when the action request was accepted."),
1684
- createdByRole: z14.string().optional().describe("Role of the user at the time of action request creation."),
1682
+ createdByRole: z14.string().describe("Role of the user at the time of action request creation."),
1685
1683
  createdBySignature: z14.string().nullish().describe("Signature of the user who created the action request.")
1686
1684
  });
1687
1685
  var RegistrationCreationMetadata = ActionCreationMetadata.extend({
@@ -1705,7 +1703,7 @@ var EventMetadata = z14.object({
1705
1703
  placeOfEvent: UUID.nullish(),
1706
1704
  createdBy: z14.string().describe("ID of the user who created the event."),
1707
1705
  createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1708
- updatedByUserRole: z14.string().nullish().describe("Role of the user who last changed the status."),
1706
+ updatedByUserRole: z14.string().describe("Role of the user who last changed the status."),
1709
1707
  // @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
1710
1708
  createdAtLocation: UUID.nullish().describe(
1711
1709
  "Location of the user who created the event."
@@ -5784,7 +5782,7 @@ function isFlagConditionMet(conditional, form, action) {
5784
5782
  $user: {
5785
5783
  sub: "",
5786
5784
  exp: "",
5787
- role: action.createdByRole || void 0,
5785
+ role: action.createdByRole,
5788
5786
  algorithm: "",
5789
5787
  scope: [],
5790
5788
  userType: action.createdByUserType