@opencrvs/toolkit 1.9.16-rc.a94059f → 1.9.16-rc.b34f706
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 +193 -193
- package/dist/commons/events/ActionDocument.d.ts +129 -129
- package/dist/commons/events/Draft.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +90 -90
- package/dist/commons/events/EventIndex.d.ts +17 -17
- package/dist/commons/events/EventMetadata.d.ts +33 -33
- package/dist/commons/events/state/index.d.ts +3 -3
- package/dist/commons/events/state/utils.d.ts +20 -20
- package/dist/events/index.js +3 -3
- package/dist/notification/index.js +3 -3
- package/package.json +1 -1
|
@@ -14,9 +14,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
14
14
|
createdByUserType: "system" | "user";
|
|
15
15
|
createdAt: string;
|
|
16
16
|
createdBy: string;
|
|
17
|
-
createdByRole: string;
|
|
18
17
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
19
18
|
assignedTo: string;
|
|
19
|
+
createdByRole?: string | undefined;
|
|
20
20
|
createdBySignature?: string | null | undefined;
|
|
21
21
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
22
22
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -29,8 +29,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
29
29
|
createdByUserType: "system" | "user";
|
|
30
30
|
createdAt: string;
|
|
31
31
|
createdBy: string;
|
|
32
|
-
createdByRole: string;
|
|
33
32
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
33
|
+
createdByRole?: string | undefined;
|
|
34
34
|
createdBySignature?: string | null | undefined;
|
|
35
35
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
36
36
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -43,8 +43,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
43
43
|
createdByUserType: "system" | "user";
|
|
44
44
|
createdAt: string;
|
|
45
45
|
createdBy: string;
|
|
46
|
-
createdByRole: string;
|
|
47
46
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
47
|
+
createdByRole?: string | undefined;
|
|
48
48
|
createdBySignature?: string | null | undefined;
|
|
49
49
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
50
50
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -58,8 +58,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
58
58
|
createdByUserType: "system" | "user";
|
|
59
59
|
createdAt: string;
|
|
60
60
|
createdBy: string;
|
|
61
|
-
createdByRole: string;
|
|
62
61
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
62
|
+
createdByRole?: string | undefined;
|
|
63
63
|
createdBySignature?: string | null | undefined;
|
|
64
64
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
65
65
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -72,8 +72,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
72
72
|
createdByUserType: "system" | "user";
|
|
73
73
|
createdAt: string;
|
|
74
74
|
createdBy: string;
|
|
75
|
-
createdByRole: string;
|
|
76
75
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
76
|
+
createdByRole?: string | undefined;
|
|
77
77
|
createdBySignature?: string | null | undefined;
|
|
78
78
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
79
79
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -89,8 +89,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
89
89
|
createdByUserType: "system" | "user";
|
|
90
90
|
createdAt: string;
|
|
91
91
|
createdBy: string;
|
|
92
|
-
createdByRole: string;
|
|
93
92
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
93
|
+
createdByRole?: string | undefined;
|
|
94
94
|
createdBySignature?: string | null | undefined;
|
|
95
95
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
96
96
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -109,8 +109,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
109
109
|
createdByUserType: "system" | "user";
|
|
110
110
|
createdAt: string;
|
|
111
111
|
createdBy: string;
|
|
112
|
-
createdByRole: string;
|
|
113
112
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
113
|
+
createdByRole?: string | undefined;
|
|
114
114
|
createdBySignature?: string | null | undefined;
|
|
115
115
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
116
116
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -123,8 +123,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
123
123
|
createdByUserType: "system" | "user";
|
|
124
124
|
createdAt: string;
|
|
125
125
|
createdBy: string;
|
|
126
|
-
createdByRole: string;
|
|
127
126
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
127
|
+
createdByRole?: string | undefined;
|
|
128
128
|
createdBySignature?: string | null | undefined;
|
|
129
129
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
130
130
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -137,11 +137,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
137
137
|
createdByUserType: "system" | "user";
|
|
138
138
|
createdAt: string;
|
|
139
139
|
createdBy: string;
|
|
140
|
-
createdByRole: string;
|
|
141
140
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
142
141
|
content?: {
|
|
143
142
|
duplicateOf: string & import("zod").BRAND<"UUID">;
|
|
144
143
|
} | undefined;
|
|
144
|
+
createdByRole?: string | undefined;
|
|
145
145
|
createdBySignature?: string | null | undefined;
|
|
146
146
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
147
147
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -157,8 +157,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
157
157
|
createdByUserType: "system" | "user";
|
|
158
158
|
createdAt: string;
|
|
159
159
|
createdBy: string;
|
|
160
|
-
createdByRole: string;
|
|
161
160
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
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;
|
|
@@ -171,8 +171,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
171
171
|
createdByUserType: "system" | "user";
|
|
172
172
|
createdAt: string;
|
|
173
173
|
createdBy: string;
|
|
174
|
-
createdByRole: string;
|
|
175
174
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
175
|
+
createdByRole?: string | undefined;
|
|
176
176
|
createdBySignature?: string | null | undefined;
|
|
177
177
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
178
178
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -185,8 +185,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
185
185
|
createdByUserType: "system" | "user";
|
|
186
186
|
createdAt: string;
|
|
187
187
|
createdBy: string;
|
|
188
|
-
createdByRole: string;
|
|
189
188
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
189
|
+
createdByRole?: string | undefined;
|
|
190
190
|
createdBySignature?: string | null | undefined;
|
|
191
191
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
192
192
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -199,11 +199,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
199
199
|
createdByUserType: "system" | "user";
|
|
200
200
|
createdAt: string;
|
|
201
201
|
createdBy: string;
|
|
202
|
-
createdByRole: string;
|
|
203
202
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
204
203
|
content?: {
|
|
205
204
|
templateId?: string | undefined;
|
|
206
205
|
} | null | undefined;
|
|
206
|
+
createdByRole?: string | undefined;
|
|
207
207
|
createdBySignature?: string | null | undefined;
|
|
208
208
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
209
209
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -216,8 +216,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
216
216
|
createdByUserType: "system" | "user";
|
|
217
217
|
createdAt: string;
|
|
218
218
|
createdBy: string;
|
|
219
|
-
createdByRole: string;
|
|
220
219
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
220
|
+
createdByRole?: string | undefined;
|
|
221
221
|
createdBySignature?: string | null | undefined;
|
|
222
222
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
223
223
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -230,9 +230,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
230
230
|
createdByUserType: "system" | "user";
|
|
231
231
|
createdAt: string;
|
|
232
232
|
createdBy: string;
|
|
233
|
-
createdByRole: string;
|
|
234
233
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
235
234
|
requestId: string;
|
|
235
|
+
createdByRole?: string | undefined;
|
|
236
236
|
createdBySignature?: string | null | undefined;
|
|
237
237
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
238
238
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -248,9 +248,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
248
248
|
createdByUserType: "system" | "user";
|
|
249
249
|
createdAt: string;
|
|
250
250
|
createdBy: string;
|
|
251
|
-
createdByRole: string;
|
|
252
251
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
253
252
|
requestId: string;
|
|
253
|
+
createdByRole?: string | undefined;
|
|
254
254
|
createdBySignature?: string | null | undefined;
|
|
255
255
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
256
256
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -263,8 +263,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
263
263
|
createdByUserType: "system" | "user";
|
|
264
264
|
createdAt: string;
|
|
265
265
|
createdBy: string;
|
|
266
|
-
createdByRole: string;
|
|
267
266
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
267
|
+
createdByRole?: string | undefined;
|
|
268
268
|
createdBySignature?: string | null | undefined;
|
|
269
269
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
270
270
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -277,7 +277,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
277
277
|
createdByUserType: "system" | "user";
|
|
278
278
|
createdAt: string;
|
|
279
279
|
createdBy: string;
|
|
280
|
-
createdByRole
|
|
280
|
+
createdByRole?: string | undefined;
|
|
281
281
|
createdBySignature?: string | null | undefined;
|
|
282
282
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
283
283
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
@@ -293,7 +293,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
293
293
|
createdByUserType: "system" | "user";
|
|
294
294
|
createdAtLocation: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
295
295
|
acceptedAt: string;
|
|
296
|
-
createdByRole: string;
|
|
296
|
+
createdByRole: string | undefined;
|
|
297
297
|
createdBySignature: string | null | undefined;
|
|
298
298
|
registrationNumber: string | null | undefined;
|
|
299
299
|
} | null;
|
|
@@ -303,7 +303,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
303
303
|
createdByUserType: "system" | "user";
|
|
304
304
|
createdAtLocation: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
305
305
|
acceptedAt: string;
|
|
306
|
-
createdByRole: string;
|
|
306
|
+
createdByRole: string | undefined;
|
|
307
307
|
createdBySignature: string | null | undefined;
|
|
308
308
|
registrationNumber: string | null | undefined;
|
|
309
309
|
} | null;
|
package/dist/events/index.js
CHANGED
|
@@ -1418,7 +1418,7 @@ var ActionBase = import_zod13.z.object({
|
|
|
1418
1418
|
),
|
|
1419
1419
|
createdAt: import_zod13.z.string().datetime().describe("Timestamp indicating when the action was created."),
|
|
1420
1420
|
createdBy: import_zod13.z.string().describe("Identifier of the user who created the action."),
|
|
1421
|
-
createdByRole: import_zod13.z.string().describe("Role of the user who created the action."),
|
|
1421
|
+
createdByRole: import_zod13.z.string().optional().describe("Role of the user who created the action."),
|
|
1422
1422
|
createdBySignature: import_zod13.z.string().nullish().describe("Reference to the signature of the user who created the action."),
|
|
1423
1423
|
createdAtLocation: CreatedAtLocation.describe(
|
|
1424
1424
|
"Reference to the location of the user who created the action."
|
|
@@ -1622,7 +1622,7 @@ var ActionCreationMetadata = import_zod14.z.object({
|
|
|
1622
1622
|
),
|
|
1623
1623
|
createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1624
1624
|
acceptedAt: import_zod14.z.string().datetime().describe("Timestamp when the action request was accepted."),
|
|
1625
|
-
createdByRole: import_zod14.z.string().describe("Role of the user at the time of action request creation."),
|
|
1625
|
+
createdByRole: import_zod14.z.string().optional().describe("Role of the user at the time of action request creation."),
|
|
1626
1626
|
createdBySignature: import_zod14.z.string().nullish().describe("Signature of the user who created the action request.")
|
|
1627
1627
|
});
|
|
1628
1628
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
@@ -1645,7 +1645,7 @@ var EventMetadata = import_zod14.z.object({
|
|
|
1645
1645
|
dateOfEvent: ZodDate.nullish(),
|
|
1646
1646
|
createdBy: import_zod14.z.string().describe("ID of the user who created the event."),
|
|
1647
1647
|
createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1648
|
-
updatedByUserRole: import_zod14.z.string().describe("Role of the user who last changed the status."),
|
|
1648
|
+
updatedByUserRole: import_zod14.z.string().optional().describe("Role of the user who last changed the status."),
|
|
1649
1649
|
createdAtLocation: CreatedAtLocation.describe(
|
|
1650
1650
|
"Location of the user who created the event."
|
|
1651
1651
|
),
|
|
@@ -998,7 +998,7 @@ var ActionBase = import_zod13.z.object({
|
|
|
998
998
|
),
|
|
999
999
|
createdAt: import_zod13.z.string().datetime().describe("Timestamp indicating when the action was created."),
|
|
1000
1000
|
createdBy: import_zod13.z.string().describe("Identifier of the user who created the action."),
|
|
1001
|
-
createdByRole: import_zod13.z.string().describe("Role of the user who created the action."),
|
|
1001
|
+
createdByRole: import_zod13.z.string().optional().describe("Role of the user who created the action."),
|
|
1002
1002
|
createdBySignature: import_zod13.z.string().nullish().describe("Reference to the signature of the user who created the action."),
|
|
1003
1003
|
createdAtLocation: CreatedAtLocation.describe(
|
|
1004
1004
|
"Reference to the location of the user who created the action."
|
|
@@ -1202,7 +1202,7 @@ var ActionCreationMetadata = import_zod14.z.object({
|
|
|
1202
1202
|
),
|
|
1203
1203
|
createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1204
1204
|
acceptedAt: import_zod14.z.string().datetime().describe("Timestamp when the action request was accepted."),
|
|
1205
|
-
createdByRole: import_zod14.z.string().describe("Role of the user at the time of action request creation."),
|
|
1205
|
+
createdByRole: import_zod14.z.string().optional().describe("Role of the user at the time of action request creation."),
|
|
1206
1206
|
createdBySignature: import_zod14.z.string().nullish().describe("Signature of the user who created the action request.")
|
|
1207
1207
|
});
|
|
1208
1208
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
@@ -1225,7 +1225,7 @@ var EventMetadata = import_zod14.z.object({
|
|
|
1225
1225
|
dateOfEvent: ZodDate.nullish(),
|
|
1226
1226
|
createdBy: import_zod14.z.string().describe("ID of the user who created the event."),
|
|
1227
1227
|
createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1228
|
-
updatedByUserRole: import_zod14.z.string().describe("Role of the user who last changed the status."),
|
|
1228
|
+
updatedByUserRole: import_zod14.z.string().optional().describe("Role of the user who last changed the status."),
|
|
1229
1229
|
createdAtLocation: CreatedAtLocation.describe(
|
|
1230
1230
|
"Location of the user who created the event."
|
|
1231
1231
|
),
|