@opencrvs/toolkit 1.9.6-rc.3497491 → 1.9.6-rc.35fbd25
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 +30 -31
- package/dist/commons/events/ActionInput.d.ts +2 -2
- package/dist/commons/events/EventInput.d.ts +1 -0
- package/dist/commons/events/EventMetadata.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
- package/dist/commons/events/WorkqueueConfig.d.ts +10 -13
- package/dist/commons/events/state/index.d.ts +0 -1
- package/dist/events/index.js +33 -26
- package/dist/notification/index.js +30 -23
- package/dist/scopes/index.d.ts +12 -12
- package/dist/scopes/index.js +4 -4
- package/package.json +1 -1
- package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
|
@@ -11,7 +11,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
11
11
|
} | {
|
|
12
12
|
type: "system";
|
|
13
13
|
id: string;
|
|
14
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
14
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
15
15
|
signature?: undefined;
|
|
16
16
|
primaryOfficeId?: undefined;
|
|
17
17
|
administrativeAreaId?: undefined;
|
|
@@ -34,7 +34,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
34
34
|
} | {
|
|
35
35
|
type: "system";
|
|
36
36
|
id: string;
|
|
37
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
37
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
38
38
|
signature?: undefined;
|
|
39
39
|
primaryOfficeId?: undefined;
|
|
40
40
|
administrativeAreaId?: undefined;
|
|
@@ -57,7 +57,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
57
57
|
} | {
|
|
58
58
|
type: "system";
|
|
59
59
|
id: string;
|
|
60
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
60
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
61
61
|
signature?: undefined;
|
|
62
62
|
primaryOfficeId?: undefined;
|
|
63
63
|
administrativeAreaId?: undefined;
|
|
@@ -26718,6 +26718,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
26718
26718
|
input: {
|
|
26719
26719
|
transactionId: string;
|
|
26720
26720
|
type: string;
|
|
26721
|
+
createdAtLocation?: string | null | undefined;
|
|
26721
26722
|
};
|
|
26722
26723
|
output: {
|
|
26723
26724
|
id: string & import("zod").$brand<"UUID">;
|
|
@@ -27023,9 +27024,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27023
27024
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
27024
27025
|
}>;
|
|
27025
27026
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
27026
|
-
input:
|
|
27027
|
-
eventId: string;
|
|
27028
|
-
};
|
|
27027
|
+
input: string;
|
|
27029
27028
|
output: {
|
|
27030
27029
|
id: string & import("zod").$brand<"UUID">;
|
|
27031
27030
|
type: string;
|
|
@@ -27658,7 +27657,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27658
27657
|
} | {
|
|
27659
27658
|
type: "system";
|
|
27660
27659
|
id: string;
|
|
27661
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
27660
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27662
27661
|
signature?: undefined;
|
|
27663
27662
|
primaryOfficeId?: undefined;
|
|
27664
27663
|
administrativeAreaId?: undefined;
|
|
@@ -27738,7 +27737,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27738
27737
|
} | {
|
|
27739
27738
|
type: "system";
|
|
27740
27739
|
id: string;
|
|
27741
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
27740
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27742
27741
|
signature?: undefined;
|
|
27743
27742
|
primaryOfficeId?: undefined;
|
|
27744
27743
|
administrativeAreaId?: undefined;
|
|
@@ -27761,7 +27760,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27761
27760
|
} | {
|
|
27762
27761
|
type: "system";
|
|
27763
27762
|
id: string;
|
|
27764
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
27763
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27765
27764
|
signature?: undefined;
|
|
27766
27765
|
primaryOfficeId?: undefined;
|
|
27767
27766
|
administrativeAreaId?: undefined;
|
|
@@ -27806,7 +27805,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27806
27805
|
} | {
|
|
27807
27806
|
type: "system";
|
|
27808
27807
|
id: string;
|
|
27809
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
27808
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27810
27809
|
signature?: undefined;
|
|
27811
27810
|
primaryOfficeId?: undefined;
|
|
27812
27811
|
administrativeAreaId?: undefined;
|
|
@@ -28160,7 +28159,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28160
28159
|
} | {
|
|
28161
28160
|
type: "system";
|
|
28162
28161
|
id: string;
|
|
28163
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
28162
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28164
28163
|
signature?: undefined;
|
|
28165
28164
|
primaryOfficeId?: undefined;
|
|
28166
28165
|
administrativeAreaId?: undefined;
|
|
@@ -28205,7 +28204,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28205
28204
|
} | {
|
|
28206
28205
|
type: "system";
|
|
28207
28206
|
id: string;
|
|
28208
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
28207
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28209
28208
|
signature?: undefined;
|
|
28210
28209
|
primaryOfficeId?: undefined;
|
|
28211
28210
|
administrativeAreaId?: undefined;
|
|
@@ -28250,7 +28249,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28250
28249
|
} | {
|
|
28251
28250
|
type: "system";
|
|
28252
28251
|
id: string;
|
|
28253
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
28252
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28254
28253
|
signature?: undefined;
|
|
28255
28254
|
primaryOfficeId?: undefined;
|
|
28256
28255
|
administrativeAreaId?: undefined;
|
|
@@ -28295,7 +28294,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28295
28294
|
} | {
|
|
28296
28295
|
type: "system";
|
|
28297
28296
|
id: string;
|
|
28298
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
28297
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28299
28298
|
signature?: undefined;
|
|
28300
28299
|
primaryOfficeId?: undefined;
|
|
28301
28300
|
administrativeAreaId?: undefined;
|
|
@@ -28340,7 +28339,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28340
28339
|
} | {
|
|
28341
28340
|
type: "system";
|
|
28342
28341
|
id: string;
|
|
28343
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
28342
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28344
28343
|
signature?: undefined;
|
|
28345
28344
|
primaryOfficeId?: undefined;
|
|
28346
28345
|
administrativeAreaId?: undefined;
|
|
@@ -28385,7 +28384,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28385
28384
|
} | {
|
|
28386
28385
|
type: "system";
|
|
28387
28386
|
id: string;
|
|
28388
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
28387
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28389
28388
|
signature?: undefined;
|
|
28390
28389
|
primaryOfficeId?: undefined;
|
|
28391
28390
|
administrativeAreaId?: undefined;
|
|
@@ -28740,7 +28739,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28740
28739
|
} | {
|
|
28741
28740
|
type: "system";
|
|
28742
28741
|
id: string;
|
|
28743
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
28742
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28744
28743
|
signature?: undefined;
|
|
28745
28744
|
primaryOfficeId?: undefined;
|
|
28746
28745
|
administrativeAreaId?: undefined;
|
|
@@ -29394,7 +29393,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29394
29393
|
} | {
|
|
29395
29394
|
type: "system";
|
|
29396
29395
|
id: string;
|
|
29397
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
29396
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29398
29397
|
signature?: undefined;
|
|
29399
29398
|
primaryOfficeId?: undefined;
|
|
29400
29399
|
administrativeAreaId?: undefined;
|
|
@@ -29417,7 +29416,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29417
29416
|
} | {
|
|
29418
29417
|
type: "system";
|
|
29419
29418
|
id: string;
|
|
29420
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
29419
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29421
29420
|
signature?: undefined;
|
|
29422
29421
|
primaryOfficeId?: undefined;
|
|
29423
29422
|
administrativeAreaId?: undefined;
|
|
@@ -29462,7 +29461,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29462
29461
|
} | {
|
|
29463
29462
|
type: "system";
|
|
29464
29463
|
id: string;
|
|
29465
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
29464
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29466
29465
|
signature?: undefined;
|
|
29467
29466
|
primaryOfficeId?: undefined;
|
|
29468
29467
|
administrativeAreaId?: undefined;
|
|
@@ -29507,7 +29506,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29507
29506
|
} | {
|
|
29508
29507
|
type: "system";
|
|
29509
29508
|
id: string;
|
|
29510
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
29509
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29511
29510
|
signature?: undefined;
|
|
29512
29511
|
primaryOfficeId?: undefined;
|
|
29513
29512
|
administrativeAreaId?: undefined;
|
|
@@ -29553,7 +29552,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29553
29552
|
} | {
|
|
29554
29553
|
type: "system";
|
|
29555
29554
|
id: string;
|
|
29556
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
29555
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29557
29556
|
signature?: undefined;
|
|
29558
29557
|
primaryOfficeId?: undefined;
|
|
29559
29558
|
administrativeAreaId?: undefined;
|
|
@@ -30577,7 +30576,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30577
30576
|
} | {
|
|
30578
30577
|
type: "system";
|
|
30579
30578
|
id: string;
|
|
30580
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
30579
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30581
30580
|
signature?: undefined;
|
|
30582
30581
|
primaryOfficeId?: undefined;
|
|
30583
30582
|
administrativeAreaId?: undefined;
|
|
@@ -30608,7 +30607,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30608
30607
|
id: string;
|
|
30609
30608
|
name: string;
|
|
30610
30609
|
type: "system";
|
|
30611
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
30610
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30612
30611
|
primaryOfficeId?: undefined;
|
|
30613
30612
|
administrativeAreaId?: undefined;
|
|
30614
30613
|
signature?: undefined;
|
|
@@ -30638,7 +30637,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30638
30637
|
id: string;
|
|
30639
30638
|
name: string;
|
|
30640
30639
|
type: "system";
|
|
30641
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
30640
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30642
30641
|
primaryOfficeId?: undefined;
|
|
30643
30642
|
administrativeAreaId?: undefined;
|
|
30644
30643
|
signature?: undefined;
|
|
@@ -30699,7 +30698,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30699
30698
|
} | {
|
|
30700
30699
|
type: "system";
|
|
30701
30700
|
id: string;
|
|
30702
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
30701
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30703
30702
|
signature?: undefined;
|
|
30704
30703
|
primaryOfficeId?: undefined;
|
|
30705
30704
|
administrativeAreaId?: undefined;
|
|
@@ -30759,7 +30758,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30759
30758
|
} | {
|
|
30760
30759
|
type: "system";
|
|
30761
30760
|
id: string;
|
|
30762
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
30761
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30763
30762
|
signature?: undefined;
|
|
30764
30763
|
primaryOfficeId?: undefined;
|
|
30765
30764
|
administrativeAreaId?: undefined;
|
|
@@ -30782,7 +30781,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30782
30781
|
} | {
|
|
30783
30782
|
type: "system";
|
|
30784
30783
|
id: string;
|
|
30785
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
30784
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30786
30785
|
signature?: undefined;
|
|
30787
30786
|
primaryOfficeId?: undefined;
|
|
30788
30787
|
administrativeAreaId?: undefined;
|
|
@@ -31025,7 +31024,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
31025
31024
|
}[];
|
|
31026
31025
|
};
|
|
31027
31026
|
actions: {
|
|
31028
|
-
type: "DELETE" | "READ" | "DECLARE" | "REJECT" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "EDIT" | "ARCHIVE" | "MARK_AS_DUPLICATE" | "ASSIGN" | "UNASSIGN"
|
|
31027
|
+
type: "DELETE" | "READ" | "DECLARE" | "REJECT" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "EDIT" | "ARCHIVE" | "MARK_AS_DUPLICATE" | "ASSIGN" | "UNASSIGN";
|
|
31029
31028
|
}[];
|
|
31030
31029
|
columns: {
|
|
31031
31030
|
label: {
|
|
@@ -31069,7 +31068,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
31069
31068
|
} | {
|
|
31070
31069
|
type: "system";
|
|
31071
31070
|
id: string;
|
|
31072
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
31071
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
31073
31072
|
signature?: undefined;
|
|
31074
31073
|
primaryOfficeId?: undefined;
|
|
31075
31074
|
administrativeAreaId?: undefined;
|
|
@@ -31098,7 +31097,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
31098
31097
|
} | {
|
|
31099
31098
|
type: "system";
|
|
31100
31099
|
id: string;
|
|
31101
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT"
|
|
31100
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
31102
31101
|
signature?: undefined;
|
|
31103
31102
|
primaryOfficeId?: undefined;
|
|
31104
31103
|
administrativeAreaId?: undefined;
|
|
@@ -27,8 +27,8 @@ export declare const NotifyActionInput: z.ZodObject<{
|
|
|
27
27
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
28
28
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>;
|
|
29
29
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
31
30
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
31
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
|
|
34
34
|
export declare const DeclareActionInput: z.ZodObject<{
|
|
@@ -261,8 +261,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
261
261
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
262
262
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID">>;
|
|
263
263
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
265
264
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
265
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
266
266
|
}, z.core.$strip>, z.ZodObject<{
|
|
267
267
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID">;
|
|
268
268
|
transactionId: z.ZodString;
|
|
@@ -2,6 +2,7 @@ import * as z from 'zod/v4';
|
|
|
2
2
|
export declare const EventInput: z.ZodObject<{
|
|
3
3
|
transactionId: z.ZodString;
|
|
4
4
|
type: z.ZodString;
|
|
5
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
export type EventInput = z.infer<typeof EventInput>;
|
|
7
8
|
//# sourceMappingURL=EventInput.d.ts.map
|
|
@@ -148,9 +148,9 @@ export declare const EventMetadataKeys: z.ZodEnum<{
|
|
|
148
148
|
createdAtLocation: "createdAtLocation";
|
|
149
149
|
assignedTo: "assignedTo";
|
|
150
150
|
trackingId: "trackingId";
|
|
151
|
-
placeOfEvent: "placeOfEvent";
|
|
152
151
|
legalStatuses: "legalStatuses";
|
|
153
152
|
dateOfEvent: "dateOfEvent";
|
|
153
|
+
placeOfEvent: "placeOfEvent";
|
|
154
154
|
updatedByUserRole: "updatedByUserRole";
|
|
155
155
|
updatedAtLocation: "updatedAtLocation";
|
|
156
156
|
updatedAt: "updatedAt";
|
|
@@ -11,9 +11,9 @@ export declare const WorkqueueColumnKeys: z.ZodEnum<{
|
|
|
11
11
|
createdAtLocation: "createdAtLocation";
|
|
12
12
|
assignedTo: "assignedTo";
|
|
13
13
|
trackingId: "trackingId";
|
|
14
|
-
placeOfEvent: "placeOfEvent";
|
|
15
14
|
legalStatuses: "legalStatuses";
|
|
16
15
|
dateOfEvent: "dateOfEvent";
|
|
16
|
+
placeOfEvent: "placeOfEvent";
|
|
17
17
|
updatedByUserRole: "updatedByUserRole";
|
|
18
18
|
updatedAtLocation: "updatedAtLocation";
|
|
19
19
|
updatedAt: "updatedAt";
|
|
@@ -34,9 +34,9 @@ export declare const WorkqueueColumnValue: z.ZodObject<{
|
|
|
34
34
|
createdAtLocation: "createdAtLocation";
|
|
35
35
|
assignedTo: "assignedTo";
|
|
36
36
|
trackingId: "trackingId";
|
|
37
|
-
placeOfEvent: "placeOfEvent";
|
|
38
37
|
legalStatuses: "legalStatuses";
|
|
39
38
|
dateOfEvent: "dateOfEvent";
|
|
39
|
+
placeOfEvent: "placeOfEvent";
|
|
40
40
|
updatedByUserRole: "updatedByUserRole";
|
|
41
41
|
updatedAtLocation: "updatedAtLocation";
|
|
42
42
|
updatedAt: "updatedAt";
|
|
@@ -63,9 +63,9 @@ export declare const WorkqueueColumn: z.ZodObject<{
|
|
|
63
63
|
createdAtLocation: "createdAtLocation";
|
|
64
64
|
assignedTo: "assignedTo";
|
|
65
65
|
trackingId: "trackingId";
|
|
66
|
-
placeOfEvent: "placeOfEvent";
|
|
67
66
|
legalStatuses: "legalStatuses";
|
|
68
67
|
dateOfEvent: "dateOfEvent";
|
|
68
|
+
placeOfEvent: "placeOfEvent";
|
|
69
69
|
updatedByUserRole: "updatedByUserRole";
|
|
70
70
|
updatedAtLocation: "updatedAtLocation";
|
|
71
71
|
updatedAt: "updatedAt";
|
|
@@ -84,7 +84,7 @@ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColum
|
|
|
84
84
|
description: string;
|
|
85
85
|
};
|
|
86
86
|
value: {
|
|
87
|
-
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "
|
|
87
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "placeOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
|
|
88
88
|
};
|
|
89
89
|
}[];
|
|
90
90
|
//# sourceMappingURL=WorkqueueColumnConfig.d.ts.map
|
|
@@ -6,10 +6,11 @@ export declare const mandatoryColumns: {
|
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
8
|
value: {
|
|
9
|
-
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "
|
|
9
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "placeOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
|
|
10
10
|
};
|
|
11
11
|
}[];
|
|
12
|
-
|
|
12
|
+
/** Workqueue Call-to-action -button action type */
|
|
13
|
+
export declare const CtaActionType: z.ZodEnum<{
|
|
13
14
|
DELETE: "DELETE";
|
|
14
15
|
DECLARE: "DECLARE";
|
|
15
16
|
REGISTER: "REGISTER";
|
|
@@ -22,9 +23,8 @@ export declare const WorkqueueActionsWithDefault: z.ZodEnum<{
|
|
|
22
23
|
READ: "READ";
|
|
23
24
|
ASSIGN: "ASSIGN";
|
|
24
25
|
UNASSIGN: "UNASSIGN";
|
|
25
|
-
DEFAULT: "DEFAULT";
|
|
26
26
|
}>;
|
|
27
|
-
export type
|
|
27
|
+
export type CtaActionType = z.infer<typeof CtaActionType>;
|
|
28
28
|
/**
|
|
29
29
|
* Configuration for workqueue. Workqueues are used to display a list of events.
|
|
30
30
|
*/
|
|
@@ -534,7 +534,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
534
534
|
READ: "READ";
|
|
535
535
|
ASSIGN: "ASSIGN";
|
|
536
536
|
UNASSIGN: "UNASSIGN";
|
|
537
|
-
DEFAULT: "DEFAULT";
|
|
538
537
|
}>;
|
|
539
538
|
}, z.core.$strip>>;
|
|
540
539
|
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -551,9 +550,9 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
551
550
|
createdAtLocation: "createdAtLocation";
|
|
552
551
|
assignedTo: "assignedTo";
|
|
553
552
|
trackingId: "trackingId";
|
|
554
|
-
placeOfEvent: "placeOfEvent";
|
|
555
553
|
legalStatuses: "legalStatuses";
|
|
556
554
|
dateOfEvent: "dateOfEvent";
|
|
555
|
+
placeOfEvent: "placeOfEvent";
|
|
557
556
|
updatedByUserRole: "updatedByUserRole";
|
|
558
557
|
updatedAtLocation: "updatedAtLocation";
|
|
559
558
|
updatedAt: "updatedAt";
|
|
@@ -791,7 +790,6 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
|
|
|
791
790
|
READ: "READ";
|
|
792
791
|
ASSIGN: "ASSIGN";
|
|
793
792
|
UNASSIGN: "UNASSIGN";
|
|
794
|
-
DEFAULT: "DEFAULT";
|
|
795
793
|
}>;
|
|
796
794
|
}, z.core.$strip>>;
|
|
797
795
|
slug: z.ZodString;
|
|
@@ -1544,7 +1542,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1544
1542
|
READ: "READ";
|
|
1545
1543
|
ASSIGN: "ASSIGN";
|
|
1546
1544
|
UNASSIGN: "UNASSIGN";
|
|
1547
|
-
DEFAULT: "DEFAULT";
|
|
1548
1545
|
}>;
|
|
1549
1546
|
}, z.core.$strip>>;
|
|
1550
1547
|
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1561,9 +1558,9 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1561
1558
|
createdAtLocation: "createdAtLocation";
|
|
1562
1559
|
assignedTo: "assignedTo";
|
|
1563
1560
|
trackingId: "trackingId";
|
|
1564
|
-
placeOfEvent: "placeOfEvent";
|
|
1565
1561
|
legalStatuses: "legalStatuses";
|
|
1566
1562
|
dateOfEvent: "dateOfEvent";
|
|
1563
|
+
placeOfEvent: "placeOfEvent";
|
|
1567
1564
|
updatedByUserRole: "updatedByUserRole";
|
|
1568
1565
|
updatedAtLocation: "updatedAtLocation";
|
|
1569
1566
|
updatedAt: "updatedAt";
|
|
@@ -1914,7 +1911,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
1914
1911
|
}[];
|
|
1915
1912
|
};
|
|
1916
1913
|
actions: {
|
|
1917
|
-
type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN"
|
|
1914
|
+
type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
|
1918
1915
|
}[];
|
|
1919
1916
|
columns: {
|
|
1920
1917
|
label: {
|
|
@@ -1923,7 +1920,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
1923
1920
|
description: string;
|
|
1924
1921
|
};
|
|
1925
1922
|
value: {
|
|
1926
|
-
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "
|
|
1923
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "placeOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
|
|
1927
1924
|
};
|
|
1928
1925
|
}[];
|
|
1929
1926
|
icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Briefcase" | "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" | "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" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
|
@@ -2164,7 +2161,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
|
2164
2161
|
}[];
|
|
2165
2162
|
};
|
|
2166
2163
|
actions: {
|
|
2167
|
-
type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN"
|
|
2164
|
+
type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
|
2168
2165
|
}[];
|
|
2169
2166
|
columns: {
|
|
2170
2167
|
label: {
|
|
@@ -2173,7 +2170,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
|
|
|
2173
2170
|
description: string;
|
|
2174
2171
|
};
|
|
2175
2172
|
value: {
|
|
2176
|
-
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "
|
|
2173
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "placeOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
|
|
2177
2174
|
};
|
|
2178
2175
|
}[];
|
|
2179
2176
|
icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Briefcase" | "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" | "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" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
|
@@ -35,7 +35,6 @@ export declare function resolvePlaceOfEvent(eventMetadata: {
|
|
|
35
35
|
export declare function extractPotentialDuplicatesFromActions(actions: Action[]): PotentialDuplicate[];
|
|
36
36
|
/**
|
|
37
37
|
* NOTE: This function should not run field validations. It should return the state based on the actions, without considering context (users, roles, permissions, etc).
|
|
38
|
-
createdAtLocation: CreatedAtLocation
|
|
39
38
|
*
|
|
40
39
|
* If you update this function, please ensure @EventIndex type is updated accordingly.
|
|
41
40
|
* In most cases, you won't need to add new parameters to this function. Discuss with the team before doing so.
|
package/dist/events/index.js
CHANGED
|
@@ -75,6 +75,7 @@ __export(events_exports, {
|
|
|
75
75
|
ConditionalType: () => ConditionalType,
|
|
76
76
|
ConfirmableActions: () => ConfirmableActions,
|
|
77
77
|
ContainsFlags: () => ContainsFlags,
|
|
78
|
+
CtaActionType: () => CtaActionType,
|
|
78
79
|
CustomActionInput: () => CustomActionInput,
|
|
79
80
|
CustomFieldValue: () => CustomFieldValue,
|
|
80
81
|
CustomFlag: () => CustomFlag,
|
|
@@ -210,7 +211,6 @@ __export(events_exports, {
|
|
|
210
211
|
VerificationPageConfig: () => VerificationPageConfig,
|
|
211
212
|
VerificationStatusValue: () => VerificationStatusValue,
|
|
212
213
|
Within: () => Within,
|
|
213
|
-
WorkqueueActionsWithDefault: () => WorkqueueActionsWithDefault,
|
|
214
214
|
WorkqueueColumn: () => WorkqueueColumn,
|
|
215
215
|
WorkqueueColumnKeys: () => WorkqueueColumnKeys,
|
|
216
216
|
WorkqueueColumnKeysArray: () => WorkqueueColumnKeysArray,
|
|
@@ -972,9 +972,6 @@ var z14 = __toESM(require("zod/v4"));
|
|
|
972
972
|
// ../commons/src/events/ActionDocument.ts
|
|
973
973
|
var z12 = __toESM(require("zod/v4"));
|
|
974
974
|
|
|
975
|
-
// ../commons/src/events/CreatedAtLocation.ts
|
|
976
|
-
var CreatedAtLocation = UUID.nullish();
|
|
977
|
-
|
|
978
975
|
// ../commons/src/authentication.ts
|
|
979
976
|
var import_jwt_decode = __toESM(require("jwt-decode"));
|
|
980
977
|
var z11 = __toESM(require("zod/v4"));
|
|
@@ -1151,7 +1148,7 @@ var LiteralScopes = z10.union([
|
|
|
1151
1148
|
DataSeedingScope,
|
|
1152
1149
|
InternalOperationsScopes
|
|
1153
1150
|
]);
|
|
1154
|
-
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)
|
|
1151
|
+
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)\[((?:\w+=[\w.-]+(?:\|[\w.-]+)*)(?:,[\w]+=[\w.-]+(?:\|[\w.-]+)*)*)\]$/;
|
|
1155
1152
|
var rawConfigurableScope = z10.string().regex(rawConfigurableScopeRegex);
|
|
1156
1153
|
var CreateUserScope = z10.object({
|
|
1157
1154
|
type: z10.literal("user.create"),
|
|
@@ -1196,8 +1193,8 @@ var RecordScopeType = z10.enum([
|
|
|
1196
1193
|
var RecordScope = z10.object({
|
|
1197
1194
|
type: RecordScopeType,
|
|
1198
1195
|
options: z10.object({
|
|
1199
|
-
event: z10.array(z10.string()).describe("Event type, e.g. birth, death")
|
|
1200
|
-
})
|
|
1196
|
+
event: z10.array(z10.string()).describe("Event type, e.g. birth, death")
|
|
1197
|
+
})
|
|
1201
1198
|
}).describe(
|
|
1202
1199
|
"Scopes used to check user's permission to perform actions on a record."
|
|
1203
1200
|
);
|
|
@@ -1259,7 +1256,7 @@ function parseConfigurableScope(scope) {
|
|
|
1259
1256
|
}
|
|
1260
1257
|
const rawScope = maybeConfigurableScope.data;
|
|
1261
1258
|
const [, type, rawOptions] = rawScope.match(rawConfigurableScopeRegex) ?? [];
|
|
1262
|
-
const options =
|
|
1259
|
+
const options = getScopeOptions(rawOptions);
|
|
1263
1260
|
const parsedScope = {
|
|
1264
1261
|
type,
|
|
1265
1262
|
options
|
|
@@ -1439,7 +1436,8 @@ var ActionBase = z12.object({
|
|
|
1439
1436
|
createdBy: z12.string().describe("Identifier of the user who created the action."),
|
|
1440
1437
|
createdByRole: z12.string().describe("Role of the user who created the action."),
|
|
1441
1438
|
createdBySignature: z12.string().nullish().describe("Reference to the signature of the user who created the action."),
|
|
1442
|
-
|
|
1439
|
+
// @TODO: createdAtLocation should be non-nullable in the future once all actions have this field populated.
|
|
1440
|
+
createdAtLocation: UUID.nullish().describe(
|
|
1443
1441
|
"Reference to the location of the user who created the action."
|
|
1444
1442
|
),
|
|
1445
1443
|
declaration: ActionUpdate.describe(
|
|
@@ -1674,7 +1672,8 @@ var ZodDate = z14.iso.date();
|
|
|
1674
1672
|
var ActionCreationMetadata = z14.object({
|
|
1675
1673
|
createdAt: z14.iso.datetime().describe("The timestamp when the action request was created."),
|
|
1676
1674
|
createdBy: z14.string().describe("ID of the user who created the action request."),
|
|
1677
|
-
|
|
1675
|
+
// @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
|
|
1676
|
+
createdAtLocation: UUID.nullish().describe(
|
|
1678
1677
|
"Location of the user who created the action request."
|
|
1679
1678
|
),
|
|
1680
1679
|
createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
@@ -1700,11 +1699,12 @@ var EventMetadata = z14.object({
|
|
|
1700
1699
|
),
|
|
1701
1700
|
createdAt: z14.iso.datetime().describe("The timestamp when the event was first created and saved."),
|
|
1702
1701
|
dateOfEvent: ZodDate.nullish(),
|
|
1703
|
-
placeOfEvent:
|
|
1702
|
+
placeOfEvent: UUID.nullish(),
|
|
1704
1703
|
createdBy: z14.string().describe("ID of the user who created the event."),
|
|
1705
1704
|
createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1706
1705
|
updatedByUserRole: z14.string().describe("Role of the user who last changed the status."),
|
|
1707
|
-
|
|
1706
|
+
// @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
|
|
1707
|
+
createdAtLocation: UUID.nullish().describe(
|
|
1708
1708
|
"Location of the user who created the event."
|
|
1709
1709
|
),
|
|
1710
1710
|
createdBySignature: z14.string().nullish().describe("Signature of the user who created the event."),
|
|
@@ -5345,11 +5345,7 @@ var mandatoryColumns = defineWorkqueuesColumns([
|
|
|
5345
5345
|
value: event.field("updatedAt")
|
|
5346
5346
|
}
|
|
5347
5347
|
]);
|
|
5348
|
-
var
|
|
5349
|
-
...workqueueActions.options,
|
|
5350
|
-
"DEFAULT",
|
|
5351
|
-
ActionType.READ
|
|
5352
|
-
]);
|
|
5348
|
+
var CtaActionType = z33.enum([...workqueueActions.options, ActionType.READ]);
|
|
5353
5349
|
var WorkqueueConfig = z33.object({
|
|
5354
5350
|
slug: z33.string().describe("Determines the url of the workqueue."),
|
|
5355
5351
|
name: TranslationConfig.describe(
|
|
@@ -5358,7 +5354,7 @@ var WorkqueueConfig = z33.object({
|
|
|
5358
5354
|
query: CountryConfigQueryType,
|
|
5359
5355
|
/** This action object used to contain a conditionals option, but it was not used anywhere.
|
|
5360
5356
|
* It's also debatable whether it should be an array, or just a single action. */
|
|
5361
|
-
actions: z33.array(z33.object({ type:
|
|
5357
|
+
actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
|
|
5362
5358
|
columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
|
|
5363
5359
|
icon: AvailableIcons,
|
|
5364
5360
|
emptyMessage: TranslationConfig.optional()
|
|
@@ -5373,7 +5369,7 @@ var WorkqueueConfigInput = z33.object({
|
|
|
5373
5369
|
"Title of the workflow (both in navigation and on the page)"
|
|
5374
5370
|
),
|
|
5375
5371
|
query: CountryConfigQueryInputType,
|
|
5376
|
-
actions: z33.array(z33.object({ type:
|
|
5372
|
+
actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
|
|
5377
5373
|
columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
|
|
5378
5374
|
icon: AvailableIcons,
|
|
5379
5375
|
emptyMessage: TranslationConfig.optional()
|
|
@@ -5425,14 +5421,18 @@ var BaseActionInput = z34.object({
|
|
|
5425
5421
|
// should not be part of base action.
|
|
5426
5422
|
keepAssignment: z34.boolean().optional(),
|
|
5427
5423
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5428
|
-
|
|
5424
|
+
// @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
|
|
5425
|
+
createdAtLocation: UUID.nullish().describe(
|
|
5429
5426
|
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
5430
5427
|
)
|
|
5431
5428
|
});
|
|
5432
5429
|
var CreateActionInput = BaseActionInput.extend(
|
|
5433
5430
|
z34.object({
|
|
5434
5431
|
type: z34.literal(ActionType.CREATE).default(ActionType.CREATE),
|
|
5435
|
-
createdAtLocation
|
|
5432
|
+
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5433
|
+
createdAtLocation: UUID.nullish().describe(
|
|
5434
|
+
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
5435
|
+
)
|
|
5436
5436
|
}).shape
|
|
5437
5437
|
);
|
|
5438
5438
|
var RegisterActionInput = BaseActionInput.extend(
|
|
@@ -5443,7 +5443,11 @@ var RegisterActionInput = BaseActionInput.extend(
|
|
|
5443
5443
|
);
|
|
5444
5444
|
var NotifyActionInput = BaseActionInput.extend(
|
|
5445
5445
|
z34.object({
|
|
5446
|
-
type: z34.literal(ActionType.NOTIFY).default(ActionType.NOTIFY)
|
|
5446
|
+
type: z34.literal(ActionType.NOTIFY).default(ActionType.NOTIFY),
|
|
5447
|
+
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5448
|
+
createdAtLocation: UUID.nullish().describe(
|
|
5449
|
+
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
5450
|
+
)
|
|
5447
5451
|
}).shape
|
|
5448
5452
|
).meta({
|
|
5449
5453
|
default: {
|
|
@@ -5606,11 +5610,14 @@ var DraftInput = BaseActionInput.extend({
|
|
|
5606
5610
|
|
|
5607
5611
|
// ../commons/src/events/EventInput.ts
|
|
5608
5612
|
var z36 = __toESM(require("zod/v4"));
|
|
5609
|
-
var
|
|
5613
|
+
var import_uuid9 = require("uuid");
|
|
5610
5614
|
var EventInput = z36.object({
|
|
5611
5615
|
transactionId: z36.string(),
|
|
5612
|
-
type: z36.string()
|
|
5613
|
-
|
|
5616
|
+
type: z36.string(),
|
|
5617
|
+
createdAtLocation: UUID.nullish().describe(
|
|
5618
|
+
"Location where the event occurred. Required for system users."
|
|
5619
|
+
)
|
|
5620
|
+
}).meta({ default: { transactionId: (0, import_uuid9.v4)(), type: "birth" } });
|
|
5614
5621
|
|
|
5615
5622
|
// ../commons/src/events/EventDocument.ts
|
|
5616
5623
|
var z37 = __toESM(require("zod/v4"));
|
|
@@ -9163,7 +9170,7 @@ var generateWorkqueues = (slug = "all-events") => defineWorkqueues([
|
|
|
9163
9170
|
type: "and",
|
|
9164
9171
|
clauses: [{ eventType: tennisClubMembershipEvent.id }]
|
|
9165
9172
|
},
|
|
9166
|
-
actions: [{ type:
|
|
9173
|
+
actions: [{ type: ActionType.READ }],
|
|
9167
9174
|
icon: "Draft"
|
|
9168
9175
|
}
|
|
9169
9176
|
]);
|
|
@@ -609,9 +609,6 @@ var z14 = __toESM(require("zod/v4"));
|
|
|
609
609
|
// ../commons/src/events/ActionDocument.ts
|
|
610
610
|
var z12 = __toESM(require("zod/v4"));
|
|
611
611
|
|
|
612
|
-
// ../commons/src/events/CreatedAtLocation.ts
|
|
613
|
-
var CreatedAtLocation = UUID.nullish();
|
|
614
|
-
|
|
615
612
|
// ../commons/src/authentication.ts
|
|
616
613
|
var import_jwt_decode = __toESM(require("jwt-decode"));
|
|
617
614
|
var z11 = __toESM(require("zod/v4"));
|
|
@@ -788,7 +785,7 @@ var LiteralScopes = z10.union([
|
|
|
788
785
|
DataSeedingScope,
|
|
789
786
|
InternalOperationsScopes
|
|
790
787
|
]);
|
|
791
|
-
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)
|
|
788
|
+
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)\[((?:\w+=[\w.-]+(?:\|[\w.-]+)*)(?:,[\w]+=[\w.-]+(?:\|[\w.-]+)*)*)\]$/;
|
|
792
789
|
var rawConfigurableScope = z10.string().regex(rawConfigurableScopeRegex);
|
|
793
790
|
var CreateUserScope = z10.object({
|
|
794
791
|
type: z10.literal("user.create"),
|
|
@@ -833,8 +830,8 @@ var RecordScopeType = z10.enum([
|
|
|
833
830
|
var RecordScope = z10.object({
|
|
834
831
|
type: RecordScopeType,
|
|
835
832
|
options: z10.object({
|
|
836
|
-
event: z10.array(z10.string()).describe("Event type, e.g. birth, death")
|
|
837
|
-
})
|
|
833
|
+
event: z10.array(z10.string()).describe("Event type, e.g. birth, death")
|
|
834
|
+
})
|
|
838
835
|
}).describe(
|
|
839
836
|
"Scopes used to check user's permission to perform actions on a record."
|
|
840
837
|
);
|
|
@@ -1022,7 +1019,8 @@ var ActionBase = z12.object({
|
|
|
1022
1019
|
createdBy: z12.string().describe("Identifier of the user who created the action."),
|
|
1023
1020
|
createdByRole: z12.string().describe("Role of the user who created the action."),
|
|
1024
1021
|
createdBySignature: z12.string().nullish().describe("Reference to the signature of the user who created the action."),
|
|
1025
|
-
|
|
1022
|
+
// @TODO: createdAtLocation should be non-nullable in the future once all actions have this field populated.
|
|
1023
|
+
createdAtLocation: UUID.nullish().describe(
|
|
1026
1024
|
"Reference to the location of the user who created the action."
|
|
1027
1025
|
),
|
|
1028
1026
|
declaration: ActionUpdate.describe(
|
|
@@ -1257,7 +1255,8 @@ var ZodDate = z14.iso.date();
|
|
|
1257
1255
|
var ActionCreationMetadata = z14.object({
|
|
1258
1256
|
createdAt: z14.iso.datetime().describe("The timestamp when the action request was created."),
|
|
1259
1257
|
createdBy: z14.string().describe("ID of the user who created the action request."),
|
|
1260
|
-
|
|
1258
|
+
// @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
|
|
1259
|
+
createdAtLocation: UUID.nullish().describe(
|
|
1261
1260
|
"Location of the user who created the action request."
|
|
1262
1261
|
),
|
|
1263
1262
|
createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
@@ -1283,11 +1282,12 @@ var EventMetadata = z14.object({
|
|
|
1283
1282
|
),
|
|
1284
1283
|
createdAt: z14.iso.datetime().describe("The timestamp when the event was first created and saved."),
|
|
1285
1284
|
dateOfEvent: ZodDate.nullish(),
|
|
1286
|
-
placeOfEvent:
|
|
1285
|
+
placeOfEvent: UUID.nullish(),
|
|
1287
1286
|
createdBy: z14.string().describe("ID of the user who created the event."),
|
|
1288
1287
|
createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1289
1288
|
updatedByUserRole: z14.string().describe("Role of the user who last changed the status."),
|
|
1290
|
-
|
|
1289
|
+
// @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
|
|
1290
|
+
createdAtLocation: UUID.nullish().describe(
|
|
1291
1291
|
"Location of the user who created the event."
|
|
1292
1292
|
),
|
|
1293
1293
|
createdBySignature: z14.string().nullish().describe("Signature of the user who created the event."),
|
|
@@ -3819,11 +3819,7 @@ var mandatoryColumns = defineWorkqueuesColumns([
|
|
|
3819
3819
|
value: event.field("updatedAt")
|
|
3820
3820
|
}
|
|
3821
3821
|
]);
|
|
3822
|
-
var
|
|
3823
|
-
...workqueueActions.options,
|
|
3824
|
-
"DEFAULT",
|
|
3825
|
-
ActionType.READ
|
|
3826
|
-
]);
|
|
3822
|
+
var CtaActionType = z33.enum([...workqueueActions.options, ActionType.READ]);
|
|
3827
3823
|
var WorkqueueConfig = z33.object({
|
|
3828
3824
|
slug: z33.string().describe("Determines the url of the workqueue."),
|
|
3829
3825
|
name: TranslationConfig.describe(
|
|
@@ -3832,7 +3828,7 @@ var WorkqueueConfig = z33.object({
|
|
|
3832
3828
|
query: CountryConfigQueryType,
|
|
3833
3829
|
/** This action object used to contain a conditionals option, but it was not used anywhere.
|
|
3834
3830
|
* It's also debatable whether it should be an array, or just a single action. */
|
|
3835
|
-
actions: z33.array(z33.object({ type:
|
|
3831
|
+
actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
|
|
3836
3832
|
columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
|
|
3837
3833
|
icon: AvailableIcons,
|
|
3838
3834
|
emptyMessage: TranslationConfig.optional()
|
|
@@ -3847,7 +3843,7 @@ var WorkqueueConfigInput = z33.object({
|
|
|
3847
3843
|
"Title of the workflow (both in navigation and on the page)"
|
|
3848
3844
|
),
|
|
3849
3845
|
query: CountryConfigQueryInputType,
|
|
3850
|
-
actions: z33.array(z33.object({ type:
|
|
3846
|
+
actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
|
|
3851
3847
|
columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
|
|
3852
3848
|
icon: AvailableIcons,
|
|
3853
3849
|
emptyMessage: TranslationConfig.optional()
|
|
@@ -3891,14 +3887,18 @@ var BaseActionInput = z34.object({
|
|
|
3891
3887
|
// should not be part of base action.
|
|
3892
3888
|
keepAssignment: z34.boolean().optional(),
|
|
3893
3889
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
3894
|
-
|
|
3890
|
+
// @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
|
|
3891
|
+
createdAtLocation: UUID.nullish().describe(
|
|
3895
3892
|
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
3896
3893
|
)
|
|
3897
3894
|
});
|
|
3898
3895
|
var CreateActionInput = BaseActionInput.extend(
|
|
3899
3896
|
z34.object({
|
|
3900
3897
|
type: z34.literal(ActionType.CREATE).default(ActionType.CREATE),
|
|
3901
|
-
createdAtLocation
|
|
3898
|
+
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
3899
|
+
createdAtLocation: UUID.nullish().describe(
|
|
3900
|
+
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
3901
|
+
)
|
|
3902
3902
|
}).shape
|
|
3903
3903
|
);
|
|
3904
3904
|
var RegisterActionInput = BaseActionInput.extend(
|
|
@@ -3909,7 +3909,11 @@ var RegisterActionInput = BaseActionInput.extend(
|
|
|
3909
3909
|
);
|
|
3910
3910
|
var NotifyActionInput = BaseActionInput.extend(
|
|
3911
3911
|
z34.object({
|
|
3912
|
-
type: z34.literal(ActionType.NOTIFY).default(ActionType.NOTIFY)
|
|
3912
|
+
type: z34.literal(ActionType.NOTIFY).default(ActionType.NOTIFY),
|
|
3913
|
+
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
3914
|
+
createdAtLocation: UUID.nullish().describe(
|
|
3915
|
+
"A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
|
|
3916
|
+
)
|
|
3913
3917
|
}).shape
|
|
3914
3918
|
).meta({
|
|
3915
3919
|
default: {
|
|
@@ -4072,11 +4076,14 @@ var DraftInput = BaseActionInput.extend({
|
|
|
4072
4076
|
|
|
4073
4077
|
// ../commons/src/events/EventInput.ts
|
|
4074
4078
|
var z36 = __toESM(require("zod/v4"));
|
|
4075
|
-
var
|
|
4079
|
+
var import_uuid9 = require("uuid");
|
|
4076
4080
|
var EventInput = z36.object({
|
|
4077
4081
|
transactionId: z36.string(),
|
|
4078
|
-
type: z36.string()
|
|
4079
|
-
|
|
4082
|
+
type: z36.string(),
|
|
4083
|
+
createdAtLocation: UUID.nullish().describe(
|
|
4084
|
+
"Location where the event occurred. Required for system users."
|
|
4085
|
+
)
|
|
4086
|
+
}).meta({ default: { transactionId: (0, import_uuid9.v4)(), type: "birth" } });
|
|
4080
4087
|
|
|
4081
4088
|
// ../commons/src/events/EventDocument.ts
|
|
4082
4089
|
var z37 = __toESM(require("zod/v4"));
|
package/dist/scopes/index.d.ts
CHANGED
|
@@ -107,9 +107,9 @@ export declare const RecordScope: z.ZodObject<{
|
|
|
107
107
|
"record.registered.request-correction": "record.registered.request-correction";
|
|
108
108
|
"record.registered.correct": "record.registered.correct";
|
|
109
109
|
}>;
|
|
110
|
-
options: z.
|
|
111
|
-
event: z.
|
|
112
|
-
}, z.core.$strip
|
|
110
|
+
options: z.ZodObject<{
|
|
111
|
+
event: z.ZodArray<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
113
|
}, z.core.$strip>;
|
|
114
114
|
export type RecordScope = z.infer<typeof RecordScope>;
|
|
115
115
|
export declare const CustomActionScope: z.ZodObject<{
|
|
@@ -160,9 +160,9 @@ declare const ConfigurableRawScopes: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
160
160
|
"record.registered.request-correction": "record.registered.request-correction";
|
|
161
161
|
"record.registered.correct": "record.registered.correct";
|
|
162
162
|
}>;
|
|
163
|
-
options: z.
|
|
164
|
-
event: z.
|
|
165
|
-
}, z.core.$strip
|
|
163
|
+
options: z.ZodObject<{
|
|
164
|
+
event: z.ZodArray<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
166
|
}, z.core.$strip>, z.ZodObject<{
|
|
167
167
|
type: z.ZodLiteral<"record.custom-action">;
|
|
168
168
|
options: z.ZodObject<{
|
|
@@ -186,9 +186,9 @@ export declare const ConfigurableActionScopes: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
186
186
|
"record.registered.request-correction": "record.registered.request-correction";
|
|
187
187
|
"record.registered.correct": "record.registered.correct";
|
|
188
188
|
}>;
|
|
189
|
-
options: z.
|
|
190
|
-
event: z.
|
|
191
|
-
}, z.core.$strip
|
|
189
|
+
options: z.ZodObject<{
|
|
190
|
+
event: z.ZodArray<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
192
|
}, z.core.$strip>, z.ZodObject<{
|
|
193
193
|
type: z.ZodLiteral<"record.custom-action">;
|
|
194
194
|
options: z.ZodObject<{
|
|
@@ -229,7 +229,7 @@ export declare function findScope<T extends ConfigurableScopeType>(scopes: strin
|
|
|
229
229
|
}> | Extract<{
|
|
230
230
|
type: "record.unassign-others" | "record.register" | "record.read" | "record.create" | "record.declare" | "record.notify" | "record.declared.edit" | "record.declared.reject" | "record.declared.archive" | "record.declared.review-duplicates" | "record.registered.print-certified-copies" | "record.registered.request-correction" | "record.registered.correct";
|
|
231
231
|
options: {
|
|
232
|
-
event
|
|
232
|
+
event: string[];
|
|
233
233
|
};
|
|
234
234
|
}, {
|
|
235
235
|
type: T;
|
|
@@ -268,7 +268,7 @@ export declare function findScopes<T extends ConfigurableScopeType>(scopes: stri
|
|
|
268
268
|
}> | Extract<{
|
|
269
269
|
type: "record.unassign-others" | "record.register" | "record.read" | "record.create" | "record.declare" | "record.notify" | "record.declared.edit" | "record.declared.reject" | "record.declared.archive" | "record.declared.review-duplicates" | "record.registered.print-certified-copies" | "record.registered.request-correction" | "record.registered.correct";
|
|
270
270
|
options: {
|
|
271
|
-
event
|
|
271
|
+
event: string[];
|
|
272
272
|
};
|
|
273
273
|
}, {
|
|
274
274
|
type: T;
|
|
@@ -315,7 +315,7 @@ export declare function parseConfigurableScope(scope: string): {
|
|
|
315
315
|
} | {
|
|
316
316
|
type: "record.unassign-others" | "record.register" | "record.read" | "record.create" | "record.declare" | "record.notify" | "record.declared.edit" | "record.declared.reject" | "record.declared.archive" | "record.declared.review-duplicates" | "record.registered.print-certified-copies" | "record.registered.request-correction" | "record.registered.correct";
|
|
317
317
|
options: {
|
|
318
|
-
event
|
|
318
|
+
event: string[];
|
|
319
319
|
};
|
|
320
320
|
} | {
|
|
321
321
|
type: "record.custom-action";
|
package/dist/scopes/index.js
CHANGED
|
@@ -220,7 +220,7 @@ var LiteralScopes = z.union([
|
|
|
220
220
|
DataSeedingScope,
|
|
221
221
|
InternalOperationsScopes
|
|
222
222
|
]);
|
|
223
|
-
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)
|
|
223
|
+
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)\[((?:\w+=[\w.-]+(?:\|[\w.-]+)*)(?:,[\w]+=[\w.-]+(?:\|[\w.-]+)*)*)\]$/;
|
|
224
224
|
var rawConfigurableScope = z.string().regex(rawConfigurableScopeRegex);
|
|
225
225
|
var CreateUserScope = z.object({
|
|
226
226
|
type: z.literal("user.create"),
|
|
@@ -265,8 +265,8 @@ var RecordScopeType = z.enum([
|
|
|
265
265
|
var RecordScope = z.object({
|
|
266
266
|
type: RecordScopeType,
|
|
267
267
|
options: z.object({
|
|
268
|
-
event: z.array(z.string()).describe("Event type, e.g. birth, death")
|
|
269
|
-
})
|
|
268
|
+
event: z.array(z.string()).describe("Event type, e.g. birth, death")
|
|
269
|
+
})
|
|
270
270
|
}).describe(
|
|
271
271
|
"Scopes used to check user's permission to perform actions on a record."
|
|
272
272
|
);
|
|
@@ -337,7 +337,7 @@ function parseConfigurableScope(scope) {
|
|
|
337
337
|
}
|
|
338
338
|
const rawScope = maybeConfigurableScope.data;
|
|
339
339
|
const [, type, rawOptions] = rawScope.match(rawConfigurableScopeRegex) ?? [];
|
|
340
|
-
const options =
|
|
340
|
+
const options = getScopeOptions(rawOptions);
|
|
341
341
|
const parsedScope = {
|
|
342
342
|
type,
|
|
343
343
|
options
|
package/package.json
CHANGED