@opencrvs/toolkit 1.8.0-rc.f9f9d64 → 1.8.0-rc.fa49ae3
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 +155 -1
- package/dist/commons/events/ActionDocument.d.ts +105 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +26 -0
- package/dist/commons/events/Draft.d.ts +5 -0
- package/dist/commons/events/EventDocument.d.ts +80 -0
- package/dist/commons/events/EventIndex.d.ts +27 -0
- package/dist/commons/events/EventMetadata.d.ts +35 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +63 -17
- package/dist/commons/events/utils.d.ts +1 -0
- package/dist/events/index.js +20 -0
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
3
|
export declare const mandatoryColumns: {
|
4
4
|
value: {
|
5
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
5
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
6
6
|
};
|
7
7
|
label: TranslationConfig;
|
8
8
|
}[];
|
@@ -203,6 +203,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
203
203
|
$userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
|
204
204
|
};
|
205
205
|
}>>>;
|
206
|
+
creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
|
206
207
|
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
207
208
|
type: z.ZodLiteral<"exact">;
|
208
209
|
term: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -262,6 +263,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
262
263
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
263
264
|
} | undefined;
|
264
265
|
data?: any;
|
266
|
+
creator?: "system" | "user" | undefined;
|
265
267
|
createdAt?: {
|
266
268
|
type: "exact";
|
267
269
|
term: string;
|
@@ -339,6 +341,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
339
341
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
340
342
|
} | undefined;
|
341
343
|
data?: any;
|
344
|
+
creator?: "system" | "user" | undefined;
|
342
345
|
createdAt?: {
|
343
346
|
type: "exact";
|
344
347
|
term: string;
|
@@ -419,6 +422,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
419
422
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
420
423
|
} | undefined;
|
421
424
|
data?: any;
|
425
|
+
creator?: "system" | "user" | undefined;
|
422
426
|
createdAt?: {
|
423
427
|
type: "exact";
|
424
428
|
term: string;
|
@@ -499,6 +503,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
499
503
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
500
504
|
} | undefined;
|
501
505
|
data?: any;
|
506
|
+
creator?: "system" | "user" | undefined;
|
502
507
|
createdAt?: {
|
503
508
|
type: "exact";
|
504
509
|
term: string;
|
@@ -753,6 +758,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
753
758
|
$userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
|
754
759
|
};
|
755
760
|
}>>>;
|
761
|
+
creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
|
756
762
|
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
757
763
|
type: z.ZodLiteral<"exact">;
|
758
764
|
term: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -812,6 +818,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
812
818
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
813
819
|
} | undefined;
|
814
820
|
data?: any;
|
821
|
+
creator?: "system" | "user" | undefined;
|
815
822
|
createdAt?: {
|
816
823
|
type: "exact";
|
817
824
|
term: string;
|
@@ -889,6 +896,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
889
896
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
890
897
|
} | undefined;
|
891
898
|
data?: any;
|
899
|
+
creator?: "system" | "user" | undefined;
|
892
900
|
createdAt?: {
|
893
901
|
type: "exact";
|
894
902
|
term: string;
|
@@ -969,6 +977,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
969
977
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
970
978
|
} | undefined;
|
971
979
|
data?: any;
|
980
|
+
creator?: "system" | "user" | undefined;
|
972
981
|
createdAt?: {
|
973
982
|
type: "exact";
|
974
983
|
term: string;
|
@@ -1049,6 +1058,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1049
1058
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1050
1059
|
} | undefined;
|
1051
1060
|
data?: any;
|
1061
|
+
creator?: "system" | "user" | undefined;
|
1052
1062
|
createdAt?: {
|
1053
1063
|
type: "exact";
|
1054
1064
|
term: string;
|
@@ -1136,20 +1146,20 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1136
1146
|
defaultMessage: string;
|
1137
1147
|
}>;
|
1138
1148
|
value: z.ZodObject<{
|
1139
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
1149
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "creator", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
1140
1150
|
}, "strip", z.ZodTypeAny, {
|
1141
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1151
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1142
1152
|
}, {
|
1143
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1153
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1144
1154
|
}>;
|
1145
1155
|
}, "strip", z.ZodTypeAny, {
|
1146
1156
|
value: {
|
1147
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1157
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1148
1158
|
};
|
1149
1159
|
label: TranslationConfig;
|
1150
1160
|
}, {
|
1151
1161
|
value: {
|
1152
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1162
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1153
1163
|
};
|
1154
1164
|
label: {
|
1155
1165
|
id: string;
|
@@ -1175,6 +1185,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1175
1185
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1176
1186
|
} | undefined;
|
1177
1187
|
data?: any;
|
1188
|
+
creator?: "system" | "user" | undefined;
|
1178
1189
|
createdAt?: {
|
1179
1190
|
type: "exact";
|
1180
1191
|
term: string;
|
@@ -1255,6 +1266,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1255
1266
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1256
1267
|
} | undefined;
|
1257
1268
|
data?: any;
|
1269
|
+
creator?: "system" | "user" | undefined;
|
1258
1270
|
createdAt?: {
|
1259
1271
|
type: "exact";
|
1260
1272
|
term: string;
|
@@ -1328,7 +1340,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1328
1340
|
slug: string;
|
1329
1341
|
columns: {
|
1330
1342
|
value: {
|
1331
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1343
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1332
1344
|
};
|
1333
1345
|
label: TranslationConfig;
|
1334
1346
|
}[];
|
@@ -1354,6 +1366,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1354
1366
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1355
1367
|
} | undefined;
|
1356
1368
|
data?: any;
|
1369
|
+
creator?: "system" | "user" | undefined;
|
1357
1370
|
createdAt?: {
|
1358
1371
|
type: "exact";
|
1359
1372
|
term: string;
|
@@ -1434,6 +1447,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1434
1447
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1435
1448
|
} | undefined;
|
1436
1449
|
data?: any;
|
1450
|
+
creator?: "system" | "user" | undefined;
|
1437
1451
|
createdAt?: {
|
1438
1452
|
type: "exact";
|
1439
1453
|
term: string;
|
@@ -1508,7 +1522,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
1508
1522
|
icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
1509
1523
|
columns?: {
|
1510
1524
|
value: {
|
1511
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1525
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
1512
1526
|
};
|
1513
1527
|
label: {
|
1514
1528
|
id: string;
|
@@ -1707,6 +1721,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
1707
1721
|
$userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
|
1708
1722
|
};
|
1709
1723
|
}>>>;
|
1724
|
+
creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
|
1710
1725
|
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
1711
1726
|
type: z.ZodLiteral<"exact">;
|
1712
1727
|
term: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -1766,6 +1781,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
1766
1781
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1767
1782
|
} | undefined;
|
1768
1783
|
data?: any;
|
1784
|
+
creator?: "system" | "user" | undefined;
|
1769
1785
|
createdAt?: {
|
1770
1786
|
type: "exact";
|
1771
1787
|
term: string;
|
@@ -1843,6 +1859,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
1843
1859
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1844
1860
|
} | undefined;
|
1845
1861
|
data?: any;
|
1862
|
+
creator?: "system" | "user" | undefined;
|
1846
1863
|
createdAt?: {
|
1847
1864
|
type: "exact";
|
1848
1865
|
term: string;
|
@@ -2096,6 +2113,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2096
2113
|
$userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
|
2097
2114
|
};
|
2098
2115
|
}>>>;
|
2116
|
+
creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
|
2099
2117
|
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
2100
2118
|
type: z.ZodLiteral<"exact">;
|
2101
2119
|
term: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -2155,6 +2173,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2155
2173
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2156
2174
|
} | undefined;
|
2157
2175
|
data?: any;
|
2176
|
+
creator?: "system" | "user" | undefined;
|
2158
2177
|
createdAt?: {
|
2159
2178
|
type: "exact";
|
2160
2179
|
term: string;
|
@@ -2232,6 +2251,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2232
2251
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2233
2252
|
} | undefined;
|
2234
2253
|
data?: any;
|
2254
|
+
creator?: "system" | "user" | undefined;
|
2235
2255
|
createdAt?: {
|
2236
2256
|
type: "exact";
|
2237
2257
|
term: string;
|
@@ -2312,6 +2332,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2312
2332
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2313
2333
|
} | undefined;
|
2314
2334
|
data?: any;
|
2335
|
+
creator?: "system" | "user" | undefined;
|
2315
2336
|
createdAt?: {
|
2316
2337
|
type: "exact";
|
2317
2338
|
term: string;
|
@@ -2392,6 +2413,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2392
2413
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2393
2414
|
} | undefined;
|
2394
2415
|
data?: any;
|
2416
|
+
creator?: "system" | "user" | undefined;
|
2395
2417
|
createdAt?: {
|
2396
2418
|
type: "exact";
|
2397
2419
|
term: string;
|
@@ -2646,6 +2668,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2646
2668
|
$userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
|
2647
2669
|
};
|
2648
2670
|
}>>>;
|
2671
|
+
creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
|
2649
2672
|
updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
2650
2673
|
type: z.ZodLiteral<"exact">;
|
2651
2674
|
term: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -2705,6 +2728,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2705
2728
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2706
2729
|
} | undefined;
|
2707
2730
|
data?: any;
|
2731
|
+
creator?: "system" | "user" | undefined;
|
2708
2732
|
createdAt?: {
|
2709
2733
|
type: "exact";
|
2710
2734
|
term: string;
|
@@ -2782,6 +2806,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2782
2806
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2783
2807
|
} | undefined;
|
2784
2808
|
data?: any;
|
2809
|
+
creator?: "system" | "user" | undefined;
|
2785
2810
|
createdAt?: {
|
2786
2811
|
type: "exact";
|
2787
2812
|
term: string;
|
@@ -2862,6 +2887,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2862
2887
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2863
2888
|
} | undefined;
|
2864
2889
|
data?: any;
|
2890
|
+
creator?: "system" | "user" | undefined;
|
2865
2891
|
createdAt?: {
|
2866
2892
|
type: "exact";
|
2867
2893
|
term: string;
|
@@ -2942,6 +2968,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
2942
2968
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
2943
2969
|
} | undefined;
|
2944
2970
|
data?: any;
|
2971
|
+
creator?: "system" | "user" | undefined;
|
2945
2972
|
createdAt?: {
|
2946
2973
|
type: "exact";
|
2947
2974
|
term: string;
|
@@ -3029,20 +3056,20 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3029
3056
|
defaultMessage: string;
|
3030
3057
|
}>;
|
3031
3058
|
value: z.ZodObject<{
|
3032
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
3059
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "creator", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
3033
3060
|
}, "strip", z.ZodTypeAny, {
|
3034
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3061
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3035
3062
|
}, {
|
3036
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3063
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3037
3064
|
}>;
|
3038
3065
|
}, "strip", z.ZodTypeAny, {
|
3039
3066
|
value: {
|
3040
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3067
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3041
3068
|
};
|
3042
3069
|
label: TranslationConfig;
|
3043
3070
|
}, {
|
3044
3071
|
value: {
|
3045
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3072
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3046
3073
|
};
|
3047
3074
|
label: {
|
3048
3075
|
id: string;
|
@@ -3066,6 +3093,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3066
3093
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3067
3094
|
} | undefined;
|
3068
3095
|
data?: any;
|
3096
|
+
creator?: "system" | "user" | undefined;
|
3069
3097
|
createdAt?: {
|
3070
3098
|
type: "exact";
|
3071
3099
|
term: string;
|
@@ -3145,6 +3173,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3145
3173
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3146
3174
|
} | undefined;
|
3147
3175
|
data?: any;
|
3176
|
+
creator?: "system" | "user" | undefined;
|
3148
3177
|
createdAt?: {
|
3149
3178
|
type: "exact";
|
3150
3179
|
term: string;
|
@@ -3225,6 +3254,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3225
3254
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3226
3255
|
} | undefined;
|
3227
3256
|
data?: any;
|
3257
|
+
creator?: "system" | "user" | undefined;
|
3228
3258
|
createdAt?: {
|
3229
3259
|
type: "exact";
|
3230
3260
|
term: string;
|
@@ -3298,7 +3328,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3298
3328
|
slug: string;
|
3299
3329
|
columns: {
|
3300
3330
|
value: {
|
3301
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3331
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3302
3332
|
};
|
3303
3333
|
label: TranslationConfig;
|
3304
3334
|
}[];
|
@@ -3322,6 +3352,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3322
3352
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3323
3353
|
} | undefined;
|
3324
3354
|
data?: any;
|
3355
|
+
creator?: "system" | "user" | undefined;
|
3325
3356
|
createdAt?: {
|
3326
3357
|
type: "exact";
|
3327
3358
|
term: string;
|
@@ -3401,6 +3432,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3401
3432
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3402
3433
|
} | undefined;
|
3403
3434
|
data?: any;
|
3435
|
+
creator?: "system" | "user" | undefined;
|
3404
3436
|
createdAt?: {
|
3405
3437
|
type: "exact";
|
3406
3438
|
term: string;
|
@@ -3481,6 +3513,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3481
3513
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3482
3514
|
} | undefined;
|
3483
3515
|
data?: any;
|
3516
|
+
creator?: "system" | "user" | undefined;
|
3484
3517
|
createdAt?: {
|
3485
3518
|
type: "exact";
|
3486
3519
|
term: string;
|
@@ -3555,7 +3588,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
3555
3588
|
icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
3556
3589
|
columns?: {
|
3557
3590
|
value: {
|
3558
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3591
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3559
3592
|
};
|
3560
3593
|
label: {
|
3561
3594
|
id: string;
|
@@ -3583,6 +3616,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
3583
3616
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3584
3617
|
} | undefined;
|
3585
3618
|
data?: any;
|
3619
|
+
creator?: "system" | "user" | undefined;
|
3586
3620
|
createdAt?: {
|
3587
3621
|
type: "exact";
|
3588
3622
|
term: string;
|
@@ -3663,6 +3697,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
3663
3697
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3664
3698
|
} | undefined;
|
3665
3699
|
data?: any;
|
3700
|
+
creator?: "system" | "user" | undefined;
|
3666
3701
|
createdAt?: {
|
3667
3702
|
type: "exact";
|
3668
3703
|
term: string;
|
@@ -3736,7 +3771,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
3736
3771
|
slug: string;
|
3737
3772
|
columns: {
|
3738
3773
|
value: {
|
3739
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3774
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3740
3775
|
};
|
3741
3776
|
label: TranslationConfig;
|
3742
3777
|
}[];
|
@@ -3759,6 +3794,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
3759
3794
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3760
3795
|
} | undefined;
|
3761
3796
|
data?: any;
|
3797
|
+
creator?: "system" | "user" | undefined;
|
3762
3798
|
createdAt?: {
|
3763
3799
|
type: "exact";
|
3764
3800
|
term: string;
|
@@ -3839,6 +3875,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
3839
3875
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
3840
3876
|
} | undefined;
|
3841
3877
|
data?: any;
|
3878
|
+
creator?: "system" | "user" | undefined;
|
3842
3879
|
createdAt?: {
|
3843
3880
|
type: "exact";
|
3844
3881
|
term: string;
|
@@ -3912,7 +3949,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
3912
3949
|
slug: string;
|
3913
3950
|
columns: {
|
3914
3951
|
value: {
|
3915
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3952
|
+
$event: "type" | "id" | "status" | "title" | "creator" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
3916
3953
|
};
|
3917
3954
|
label: TranslationConfig;
|
3918
3955
|
}[];
|
@@ -4086,6 +4123,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4086
4123
|
type: "exact";
|
4087
4124
|
term: string;
|
4088
4125
|
}>>>;
|
4126
|
+
creator: z.ZodOptional<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
|
4089
4127
|
createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
4090
4128
|
type: z.ZodLiteral<"exact">;
|
4091
4129
|
term: z.ZodString;
|
@@ -4145,6 +4183,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4145
4183
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4146
4184
|
} | undefined;
|
4147
4185
|
data?: any;
|
4186
|
+
creator?: "system" | "user" | undefined;
|
4148
4187
|
createdAt?: {
|
4149
4188
|
type: "exact";
|
4150
4189
|
term: string;
|
@@ -4227,6 +4266,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4227
4266
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4228
4267
|
} | undefined;
|
4229
4268
|
data?: any;
|
4269
|
+
creator?: "system" | "user" | undefined;
|
4230
4270
|
createdAt?: {
|
4231
4271
|
type: "exact";
|
4232
4272
|
term: string;
|
@@ -4309,6 +4349,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4309
4349
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4310
4350
|
} | undefined;
|
4311
4351
|
data?: any;
|
4352
|
+
creator?: "system" | "user" | undefined;
|
4312
4353
|
createdAt?: {
|
4313
4354
|
type: "exact";
|
4314
4355
|
term: string;
|
@@ -4391,6 +4432,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4391
4432
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4392
4433
|
} | undefined;
|
4393
4434
|
data?: any;
|
4435
|
+
creator?: "system" | "user" | undefined;
|
4394
4436
|
createdAt?: {
|
4395
4437
|
type: "exact";
|
4396
4438
|
term: string;
|
@@ -4476,6 +4518,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4476
4518
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4477
4519
|
} | undefined;
|
4478
4520
|
data?: any;
|
4521
|
+
creator?: "system" | "user" | undefined;
|
4479
4522
|
createdAt?: {
|
4480
4523
|
type: "exact";
|
4481
4524
|
term: string;
|
@@ -4558,6 +4601,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4558
4601
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4559
4602
|
} | undefined;
|
4560
4603
|
data?: any;
|
4604
|
+
creator?: "system" | "user" | undefined;
|
4561
4605
|
createdAt?: {
|
4562
4606
|
type: "exact";
|
4563
4607
|
term: string;
|
@@ -4648,6 +4692,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4648
4692
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4649
4693
|
} | undefined;
|
4650
4694
|
data?: any;
|
4695
|
+
creator?: "system" | "user" | undefined;
|
4651
4696
|
createdAt?: {
|
4652
4697
|
type: "exact";
|
4653
4698
|
term: string;
|
@@ -4730,6 +4775,7 @@ export declare const WorkqueueCountInput: z.ZodArray<z.ZodObject<{
|
|
4730
4775
|
terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
4731
4776
|
} | undefined;
|
4732
4777
|
data?: any;
|
4778
|
+
creator?: "system" | "user" | undefined;
|
4733
4779
|
createdAt?: {
|
4734
4780
|
type: "exact";
|
4735
4781
|
term: string;
|
@@ -4174,6 +4174,7 @@ export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]):
|
|
4174
4174
|
filename: string;
|
4175
4175
|
originalFilename: string;
|
4176
4176
|
}[] | [string, string] | null | undefined>;
|
4177
|
+
creator?: "system" | "user" | undefined;
|
4177
4178
|
createdBySignature?: string | null | undefined;
|
4178
4179
|
createdAtLocation?: string | null | undefined;
|
4179
4180
|
annotation?: Record<string, string | number | boolean | {
|
package/dist/events/index.js
CHANGED
@@ -1339,6 +1339,7 @@ var ActionStatus = {
|
|
1339
1339
|
var ActionBase = import_zod16.z.object({
|
1340
1340
|
id: import_zod16.z.string(),
|
1341
1341
|
transactionId: import_zod16.z.string(),
|
1342
|
+
creator: import_zod16.z.enum(["user", "system"]).optional(),
|
1342
1343
|
createdAt: import_zod16.z.string().datetime(),
|
1343
1344
|
createdBy: import_zod16.z.string(),
|
1344
1345
|
createdByRole: import_zod16.z.string(),
|
@@ -2012,6 +2013,7 @@ function createEmptyDraft(eventId, draftId, actionType) {
|
|
2012
2013
|
declaration: {},
|
2013
2014
|
annotation: {},
|
2014
2015
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
2016
|
+
creator: "user",
|
2015
2017
|
createdBy: "@todo",
|
2016
2018
|
createdAtLocation: "@todo",
|
2017
2019
|
status: ActionStatus.Accepted,
|
@@ -2633,6 +2635,7 @@ var ActionCreationMetadata = import_zod20.z.object({
|
|
2633
2635
|
createdAtLocation: CreatedAtLocation.describe(
|
2634
2636
|
"Location of the user who created the action request."
|
2635
2637
|
),
|
2638
|
+
creator: import_zod20.z.enum(["user", "system"]).nullish().describe("Whether the user us a normal user or a system."),
|
2636
2639
|
acceptedAt: import_zod20.z.string().datetime().describe("Timestamp when the action request was accepted."),
|
2637
2640
|
createdByRole: import_zod20.z.string().describe("Role of the user at the time of action request creation."),
|
2638
2641
|
createdBySignature: import_zod20.z.string().nullish().describe("Signature of the user who created the action request.")
|
@@ -2656,6 +2659,7 @@ var EventMetadata = import_zod20.z.object({
|
|
2656
2659
|
createdAt: import_zod20.z.string().datetime().describe("The timestamp when the event was first created and saved."),
|
2657
2660
|
dateOfEvent: ZodDate.nullish(),
|
2658
2661
|
createdBy: import_zod20.z.string().describe("ID of the user who created the event."),
|
2662
|
+
creator: import_zod20.z.enum(["user", "system"]).nullish().describe("Whether the user us a normal user or a system."),
|
2659
2663
|
updatedByUserRole: import_zod20.z.string().describe("Role of the user who last updated the declaration."),
|
2660
2664
|
createdAtLocation: CreatedAtLocation.describe(
|
2661
2665
|
"Location of the user who created the event."
|
@@ -2677,6 +2681,7 @@ var EventMetadataKeysArray = [
|
|
2677
2681
|
"createdAt",
|
2678
2682
|
"dateOfEvent",
|
2679
2683
|
"createdBy",
|
2684
|
+
"creator",
|
2680
2685
|
"updatedByUserRole",
|
2681
2686
|
"createdAtLocation",
|
2682
2687
|
"updatedAtLocation",
|
@@ -2699,6 +2704,11 @@ var eventMetadataLabelMap = {
|
|
2699
2704
|
defaultMessage: "Created",
|
2700
2705
|
description: "Created At"
|
2701
2706
|
},
|
2707
|
+
"event.creator": {
|
2708
|
+
id: "event.creator.label",
|
2709
|
+
defaultMessage: "Creator",
|
2710
|
+
description: "Creator:user or system"
|
2711
|
+
},
|
2702
2712
|
"event.dateOfEvent": {
|
2703
2713
|
id: "event.dateOfEvent.label",
|
2704
2714
|
defaultMessage: "Date of Event",
|
@@ -2861,6 +2871,7 @@ var QueryExpression = import_zod22.z.object({
|
|
2861
2871
|
createdAtLocation: import_zod22.z.optional(import_zod22.z.union([Within, Exact])),
|
2862
2872
|
updatedAtLocation: import_zod22.z.optional(import_zod22.z.union([Within, Exact])),
|
2863
2873
|
assignedTo: import_zod22.z.optional(Exact),
|
2874
|
+
creator: import_zod22.z.enum(["user", "system"]).optional(),
|
2864
2875
|
createdBy: import_zod22.z.optional(Exact),
|
2865
2876
|
updatedBy: import_zod22.z.optional(Exact),
|
2866
2877
|
trackingId: import_zod22.z.optional(Exact),
|
@@ -2925,6 +2936,7 @@ var SerializedQueryExpression = import_zod23.z.object({
|
|
2925
2936
|
),
|
2926
2937
|
assignedTo: import_zod23.z.optional(SerializableExact),
|
2927
2938
|
createdBy: import_zod23.z.optional(SerializableExact),
|
2939
|
+
creator: import_zod23.z.enum(["user", "system"]).optional(),
|
2928
2940
|
updatedBy: import_zod23.z.optional(SerializableExact),
|
2929
2941
|
trackingId: import_zod23.z.optional(Exact),
|
2930
2942
|
flags: import_zod23.z.optional(import_zod23.z.array(import_zod23.z.union([AnyOf, Not]))),
|
@@ -3344,6 +3356,7 @@ function getDeclarationActionCreationMetadata(actionType, actions) {
|
|
3344
3356
|
// When 3rd party API returns 200 OK, we assume that the request was accepted, and persist single 'accepted' action.
|
3345
3357
|
createdAt: requestAction?.createdAt ?? acceptAction.createdAt,
|
3346
3358
|
createdBy: requestAction?.createdBy ?? acceptAction.createdBy,
|
3359
|
+
creator: requestAction?.creator ?? acceptAction.creator,
|
3347
3360
|
createdAtLocation: requestAction?.createdAtLocation ?? acceptAction.createdAtLocation,
|
3348
3361
|
acceptedAt: acceptAction.createdAt,
|
3349
3362
|
createdByRole: requestAction?.createdByRole ?? acceptAction.createdByRole,
|
@@ -3362,6 +3375,7 @@ function getDeclarationActionUpdateMetadata(actions) {
|
|
3362
3375
|
return {
|
3363
3376
|
createdAt: request?.createdAt ?? accept?.createdAt ?? metadata.createdAt,
|
3364
3377
|
createdBy: request?.createdBy ?? accept?.createdBy ?? metadata.createdBy,
|
3378
|
+
creator: request?.creator ?? accept?.creator ?? metadata.creator,
|
3365
3379
|
createdAtLocation: request?.createdAtLocation ?? accept?.createdAtLocation ?? metadata.createdAtLocation,
|
3366
3380
|
createdByRole: request?.createdByRole ?? accept?.createdByRole ?? metadata.createdByRole
|
3367
3381
|
};
|
@@ -3369,6 +3383,7 @@ function getDeclarationActionUpdateMetadata(actions) {
|
|
3369
3383
|
{
|
3370
3384
|
createdAt: createAction.createdAt,
|
3371
3385
|
createdBy: createAction.createdBy,
|
3386
|
+
creator: createAction.creator,
|
3372
3387
|
createdAtLocation: createAction.createdAtLocation,
|
3373
3388
|
createdByRole: createAction.createdByRole
|
3374
3389
|
}
|
@@ -3553,6 +3568,7 @@ function getCurrentEventState(event2, config) {
|
|
3553
3568
|
legalStatuses: getLegalStatuses(event2.actions),
|
3554
3569
|
createdAt: creationAction.createdAt,
|
3555
3570
|
createdBy: creationAction.createdBy,
|
3571
|
+
creator: creationAction.creator,
|
3556
3572
|
createdAtLocation: creationAction.createdAtLocation,
|
3557
3573
|
createdBySignature: creationAction.createdBySignature,
|
3558
3574
|
updatedAt: declarationUpdateMetadata.createdAt,
|
@@ -5818,6 +5834,7 @@ function eventPayloadGenerator(rng) {
|
|
5818
5834
|
},
|
5819
5835
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
5820
5836
|
createdBy: "@todo",
|
5837
|
+
creator: "user",
|
5821
5838
|
createdByRole: "@todo",
|
5822
5839
|
createdAtLocation: "@todo"
|
5823
5840
|
}
|
@@ -6010,6 +6027,7 @@ function generateActionDocument({
|
|
6010
6027
|
// @TODO: This should be fixed in the future.
|
6011
6028
|
createdAt: new Date(Date.now() - 500).toISOString(),
|
6012
6029
|
createdBy: getUUID(),
|
6030
|
+
creator: "user",
|
6013
6031
|
createdByRole: "FIELD_AGENT",
|
6014
6032
|
id: getUUID(),
|
6015
6033
|
createdAtLocation: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
@@ -6167,6 +6185,7 @@ var eventQueryDataGenerator = (overrides = {}, seed = 1) => {
|
|
6167
6185
|
type: overrides.type ?? TENNIS_CLUB_MEMBERSHIP,
|
6168
6186
|
status: overrides.status ?? pickRandom(rng, EventStatus.options),
|
6169
6187
|
createdAt: overrides.createdAt ?? createdAt,
|
6188
|
+
creator: overrides.creator ?? "user",
|
6170
6189
|
createdBy: overrides.createdBy ?? generateUuid(rng),
|
6171
6190
|
createdAtLocation: overrides.createdAtLocation ?? generateUuid(rng),
|
6172
6191
|
updatedAtLocation: overrides.updatedAtLocation ?? generateUuid(rng),
|
@@ -6591,6 +6610,7 @@ function deserializeQueryExpression(expression, user2) {
|
|
6591
6610
|
...expression.assignedTo,
|
6592
6611
|
term: userDeserializer(expression.assignedTo.term, user2)
|
6593
6612
|
},
|
6613
|
+
creator: expression.creator,
|
6594
6614
|
createdBy: expression.createdBy && {
|
6595
6615
|
...expression.createdBy,
|
6596
6616
|
term: userDeserializer(expression.createdBy.term, user2)
|