@opencrvs/toolkit 1.9.12-rc.9bbe048 → 1.9.12-rc.9be45d7
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/application-config/index.js +12 -20
- package/dist/commons/api/router.d.ts +84 -72
- package/dist/commons/events/ActionInput.d.ts +36 -0
- package/dist/commons/events/Draft.d.ts +1 -0
- package/dist/events/index.js +13 -20
- package/dist/notification/index.js +13 -20
- package/opencrvs-toolkit-1.9.12-rc.9be45d7.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-1.9.12-rc.9bbe048.tgz +0 -0
|
@@ -418,28 +418,20 @@ function schemaPriority(schema) {
|
|
|
418
418
|
return idx === -1 ? 9999 : idx;
|
|
419
419
|
}
|
|
420
420
|
function safeUnion(schemas) {
|
|
421
|
+
const sortedSchemas = [...schemas].sort(
|
|
422
|
+
(a, b) => schemaPriority(a) - schemaPriority(b)
|
|
423
|
+
);
|
|
421
424
|
return z7.any().superRefine((val, ctx) => {
|
|
422
|
-
const
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
if (successful.length === 0) {
|
|
427
|
-
ctx.addIssue({
|
|
428
|
-
code: "invalid_type",
|
|
429
|
-
expected: "custom",
|
|
430
|
-
message: "Value does not match any schema"
|
|
431
|
-
});
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
successful.sort((a, b) => schemaPriority(a) - schemaPriority(b));
|
|
435
|
-
const best = successful[0];
|
|
436
|
-
if (!best.safeParse(val).success) {
|
|
437
|
-
ctx.addIssue({
|
|
438
|
-
expected: "custom",
|
|
439
|
-
code: "invalid_type",
|
|
440
|
-
message: "Value did not match the best schema"
|
|
441
|
-
});
|
|
425
|
+
for (const schema of sortedSchemas) {
|
|
426
|
+
if (schema.safeParse(val).success) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
442
429
|
}
|
|
430
|
+
ctx.addIssue({
|
|
431
|
+
code: "invalid_type",
|
|
432
|
+
expected: "custom",
|
|
433
|
+
message: "Value does not match any schema"
|
|
434
|
+
});
|
|
443
435
|
}).meta({
|
|
444
436
|
description: "Value that matches exactly one of the possible schema types (TextValue, DateValue, DateRangeFieldValue). The best matching schema is chosen by priority."
|
|
445
437
|
});
|
|
@@ -8,7 +8,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8
8
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
9
9
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
10
10
|
} | {
|
|
11
|
-
id: string
|
|
11
|
+
id: string & import("zod").$brand<"UUID">;
|
|
12
12
|
type: "user";
|
|
13
13
|
role: string;
|
|
14
14
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -30,7 +30,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30
30
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
31
31
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
32
32
|
} | {
|
|
33
|
-
id: string
|
|
33
|
+
id: string & import("zod").$brand<"UUID">;
|
|
34
34
|
type: "user";
|
|
35
35
|
role: string;
|
|
36
36
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -52,7 +52,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
52
52
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
53
53
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
54
54
|
} | {
|
|
55
|
-
id: string
|
|
55
|
+
id: string & import("zod").$brand<"UUID">;
|
|
56
56
|
type: "user";
|
|
57
57
|
role: string;
|
|
58
58
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -98,7 +98,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
98
98
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
99
99
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
100
100
|
} | {
|
|
101
|
-
id: string
|
|
101
|
+
id: string & import("zod").$brand<"UUID">;
|
|
102
102
|
type: "user";
|
|
103
103
|
role: string;
|
|
104
104
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1060,7 +1060,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1060
1060
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1061
1061
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1062
1062
|
} | {
|
|
1063
|
-
id: string
|
|
1063
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1064
1064
|
type: "user";
|
|
1065
1065
|
role: string;
|
|
1066
1066
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1105,6 +1105,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1105
1105
|
annotation?: Record<string, unknown> | undefined;
|
|
1106
1106
|
originalActionId?: string | undefined;
|
|
1107
1107
|
keepAssignment?: boolean | undefined;
|
|
1108
|
+
waitFor?: boolean | undefined;
|
|
1108
1109
|
createdAtLocation?: string | null | undefined;
|
|
1109
1110
|
};
|
|
1110
1111
|
output: {
|
|
@@ -1139,7 +1140,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1139
1140
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1140
1141
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1141
1142
|
} | {
|
|
1142
|
-
id: string
|
|
1143
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1143
1144
|
type: "user";
|
|
1144
1145
|
role: string;
|
|
1145
1146
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1161,7 +1162,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1161
1162
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1162
1163
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1163
1164
|
} | {
|
|
1164
|
-
id: string
|
|
1165
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1165
1166
|
type: "user";
|
|
1166
1167
|
role: string;
|
|
1167
1168
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1205,7 +1206,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1205
1206
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1206
1207
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1207
1208
|
} | {
|
|
1208
|
-
id: string
|
|
1209
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1209
1210
|
type: "user";
|
|
1210
1211
|
role: string;
|
|
1211
1212
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1225,6 +1226,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1225
1226
|
annotation?: Record<string, unknown> | undefined;
|
|
1226
1227
|
originalActionId?: string | undefined;
|
|
1227
1228
|
keepAssignment?: boolean | undefined;
|
|
1229
|
+
waitFor?: boolean | undefined;
|
|
1228
1230
|
createdAtLocation?: string | null | undefined;
|
|
1229
1231
|
type?: "DECLARE" | undefined;
|
|
1230
1232
|
};
|
|
@@ -1558,7 +1560,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1558
1560
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1559
1561
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1560
1562
|
} | {
|
|
1561
|
-
id: string
|
|
1563
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1562
1564
|
type: "user";
|
|
1563
1565
|
role: string;
|
|
1564
1566
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1602,7 +1604,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1602
1604
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1603
1605
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1604
1606
|
} | {
|
|
1605
|
-
id: string
|
|
1607
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1606
1608
|
type: "user";
|
|
1607
1609
|
role: string;
|
|
1608
1610
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1646,7 +1648,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1646
1648
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1647
1649
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1648
1650
|
} | {
|
|
1649
|
-
id: string
|
|
1651
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1650
1652
|
type: "user";
|
|
1651
1653
|
role: string;
|
|
1652
1654
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1690,7 +1692,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1690
1692
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1691
1693
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1692
1694
|
} | {
|
|
1693
|
-
id: string
|
|
1695
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1694
1696
|
type: "user";
|
|
1695
1697
|
role: string;
|
|
1696
1698
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1734,7 +1736,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1734
1736
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1735
1737
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1736
1738
|
} | {
|
|
1737
|
-
id: string
|
|
1739
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1738
1740
|
type: "user";
|
|
1739
1741
|
role: string;
|
|
1740
1742
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1778,7 +1780,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1778
1780
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1779
1781
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1780
1782
|
} | {
|
|
1781
|
-
id: string
|
|
1783
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1782
1784
|
type: "user";
|
|
1783
1785
|
role: string;
|
|
1784
1786
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -1799,6 +1801,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1799
1801
|
annotation?: Record<string, unknown> | undefined;
|
|
1800
1802
|
originalActionId?: string | undefined;
|
|
1801
1803
|
keepAssignment?: boolean | undefined;
|
|
1804
|
+
waitFor?: boolean | undefined;
|
|
1802
1805
|
createdAtLocation?: string | null | undefined;
|
|
1803
1806
|
type?: "CUSTOM" | undefined;
|
|
1804
1807
|
};
|
|
@@ -2132,7 +2135,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2132
2135
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2133
2136
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2134
2137
|
} | {
|
|
2135
|
-
id: string
|
|
2138
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2136
2139
|
type: "user";
|
|
2137
2140
|
role: string;
|
|
2138
2141
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -2154,6 +2157,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2154
2157
|
annotation?: Record<string, unknown> | undefined;
|
|
2155
2158
|
originalActionId?: string | undefined;
|
|
2156
2159
|
keepAssignment?: boolean | undefined;
|
|
2160
|
+
waitFor?: boolean | undefined;
|
|
2157
2161
|
createdAtLocation?: string | null | undefined;
|
|
2158
2162
|
};
|
|
2159
2163
|
output: {
|
|
@@ -2467,6 +2471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2467
2471
|
annotation?: Record<string, unknown> | undefined;
|
|
2468
2472
|
originalActionId?: string | undefined;
|
|
2469
2473
|
keepAssignment?: boolean | undefined;
|
|
2474
|
+
waitFor?: boolean | undefined;
|
|
2470
2475
|
createdAtLocation?: string | null | undefined;
|
|
2471
2476
|
type?: "UNASSIGN" | undefined;
|
|
2472
2477
|
assignedTo?: null | undefined;
|
|
@@ -2785,7 +2790,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2785
2790
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2786
2791
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2787
2792
|
} | {
|
|
2788
|
-
id: string
|
|
2793
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2789
2794
|
type: "user";
|
|
2790
2795
|
role: string;
|
|
2791
2796
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -2807,7 +2812,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2807
2812
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2808
2813
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2809
2814
|
} | {
|
|
2810
|
-
id: string
|
|
2815
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2811
2816
|
type: "user";
|
|
2812
2817
|
role: string;
|
|
2813
2818
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -2851,7 +2856,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2851
2856
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2852
2857
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2853
2858
|
} | {
|
|
2854
|
-
id: string
|
|
2859
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2855
2860
|
type: "user";
|
|
2856
2861
|
role: string;
|
|
2857
2862
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -2895,7 +2900,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2895
2900
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2896
2901
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2897
2902
|
} | {
|
|
2898
|
-
id: string
|
|
2903
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2899
2904
|
type: "user";
|
|
2900
2905
|
role: string;
|
|
2901
2906
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -2940,7 +2945,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2940
2945
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2941
2946
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2942
2947
|
} | {
|
|
2943
|
-
id: string
|
|
2948
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2944
2949
|
type: "user";
|
|
2945
2950
|
role: string;
|
|
2946
2951
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -2960,6 +2965,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2960
2965
|
annotation?: Record<string, unknown> | undefined;
|
|
2961
2966
|
originalActionId?: string | undefined;
|
|
2962
2967
|
keepAssignment?: boolean | undefined;
|
|
2968
|
+
waitFor?: boolean | undefined;
|
|
2963
2969
|
createdAtLocation?: string | null | undefined;
|
|
2964
2970
|
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2965
2971
|
content?: {
|
|
@@ -3277,6 +3283,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3277
3283
|
annotation?: Record<string, unknown> | undefined;
|
|
3278
3284
|
originalActionId?: string | undefined;
|
|
3279
3285
|
keepAssignment?: boolean | undefined;
|
|
3286
|
+
waitFor?: boolean | undefined;
|
|
3280
3287
|
createdAtLocation?: string | null | undefined;
|
|
3281
3288
|
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
3282
3289
|
};
|
|
@@ -3958,7 +3965,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3958
3965
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
3959
3966
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
3960
3967
|
} | {
|
|
3961
|
-
id: string
|
|
3968
|
+
id: string & import("zod").$brand<"UUID">;
|
|
3962
3969
|
type: "user";
|
|
3963
3970
|
role: string;
|
|
3964
3971
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -3973,7 +3980,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3973
3980
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3974
3981
|
input: string;
|
|
3975
3982
|
output: {
|
|
3976
|
-
id: string
|
|
3983
|
+
id: string & import("zod").$brand<"UUID">;
|
|
3977
3984
|
name: {
|
|
3978
3985
|
use: string;
|
|
3979
3986
|
given: string[];
|
|
@@ -4012,25 +4019,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4012
4019
|
given: string[];
|
|
4013
4020
|
family: string;
|
|
4014
4021
|
}[];
|
|
4015
|
-
email: string;
|
|
4016
4022
|
role: string;
|
|
4017
4023
|
primaryOfficeId: string;
|
|
4018
|
-
|
|
4019
|
-
mobile?: string | undefined;
|
|
4024
|
+
data?: Record<string, unknown> | undefined;
|
|
4020
4025
|
fullHonorificName?: string | undefined;
|
|
4021
|
-
emailForNotification?: string | undefined;
|
|
4022
|
-
password?: string | undefined;
|
|
4023
4026
|
device?: string | undefined;
|
|
4024
|
-
|
|
4027
|
+
email?: string | undefined;
|
|
4028
|
+
mobile?: string | undefined;
|
|
4029
|
+
username?: undefined;
|
|
4025
4030
|
signature?: {
|
|
4026
4031
|
path: string;
|
|
4027
4032
|
originalFilename: string;
|
|
4028
4033
|
type: string;
|
|
4029
4034
|
} | undefined;
|
|
4030
|
-
data?: Record<string, unknown> | undefined;
|
|
4031
4035
|
};
|
|
4032
4036
|
output: {
|
|
4033
|
-
id: string
|
|
4037
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4034
4038
|
name: {
|
|
4035
4039
|
use: string;
|
|
4036
4040
|
given: string[];
|
|
@@ -4049,36 +4053,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4049
4053
|
email?: string | undefined;
|
|
4050
4054
|
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4051
4055
|
};
|
|
4052
|
-
meta:
|
|
4056
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4053
4057
|
}>;
|
|
4054
4058
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
4055
4059
|
input: {
|
|
4060
|
+
id: string;
|
|
4061
|
+
data?: Record<string, unknown> | undefined;
|
|
4056
4062
|
name?: {
|
|
4057
4063
|
use: string;
|
|
4058
4064
|
given: string[];
|
|
4059
4065
|
family: string;
|
|
4060
4066
|
}[] | undefined;
|
|
4061
|
-
username?: string | undefined;
|
|
4062
|
-
email?: string | undefined;
|
|
4063
|
-
mobile?: string | undefined;
|
|
4064
|
-
fullHonorificName?: string | undefined;
|
|
4065
|
-
emailForNotification?: string | undefined;
|
|
4066
|
-
password?: string | undefined;
|
|
4067
4067
|
role?: string | undefined;
|
|
4068
|
-
|
|
4068
|
+
fullHonorificName?: string | undefined;
|
|
4069
4069
|
device?: string | undefined;
|
|
4070
|
-
|
|
4070
|
+
primaryOfficeId?: string | undefined;
|
|
4071
|
+
email?: string | undefined;
|
|
4072
|
+
mobile?: string | undefined;
|
|
4071
4073
|
signature?: {
|
|
4072
4074
|
path: string;
|
|
4073
4075
|
originalFilename: string;
|
|
4074
4076
|
type: string;
|
|
4075
4077
|
} | undefined;
|
|
4076
|
-
|
|
4078
|
+
status?: "active" | "deactivated" | undefined;
|
|
4077
4079
|
} & {
|
|
4078
4080
|
id: string;
|
|
4079
4081
|
};
|
|
4080
4082
|
output: {
|
|
4081
|
-
id: string
|
|
4083
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4082
4084
|
name: {
|
|
4083
4085
|
use: string;
|
|
4084
4086
|
given: string[];
|
|
@@ -4102,7 +4104,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4102
4104
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4103
4105
|
input: string[];
|
|
4104
4106
|
output: ({
|
|
4105
|
-
id: string
|
|
4107
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4106
4108
|
name: {
|
|
4107
4109
|
use: string;
|
|
4108
4110
|
given: string[];
|
|
@@ -4147,7 +4149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4147
4149
|
sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined;
|
|
4148
4150
|
};
|
|
4149
4151
|
output: ({
|
|
4150
|
-
id: string
|
|
4152
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4151
4153
|
name: {
|
|
4152
4154
|
use: string;
|
|
4153
4155
|
given: string[];
|
|
@@ -4227,7 +4229,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4227
4229
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4228
4230
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4229
4231
|
} | {
|
|
4230
|
-
id: string
|
|
4232
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4231
4233
|
type: "user";
|
|
4232
4234
|
role: string;
|
|
4233
4235
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -4308,6 +4310,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4308
4310
|
output: void;
|
|
4309
4311
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4310
4312
|
}>;
|
|
4313
|
+
sendUsernameReminder: import("@trpc/server").TRPCMutationProcedure<{
|
|
4314
|
+
input: string;
|
|
4315
|
+
output: void;
|
|
4316
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4317
|
+
}>;
|
|
4318
|
+
sendResetPasswordInvite: import("@trpc/server").TRPCMutationProcedure<{
|
|
4319
|
+
input: string;
|
|
4320
|
+
output: void;
|
|
4321
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4322
|
+
}>;
|
|
4311
4323
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4312
4324
|
ctx: Partial<{
|
|
4313
4325
|
token: `Bearer ${string}`;
|
|
@@ -4318,7 +4330,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4318
4330
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4319
4331
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4320
4332
|
} | {
|
|
4321
|
-
id: string
|
|
4333
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4322
4334
|
type: "user";
|
|
4323
4335
|
role: string;
|
|
4324
4336
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -4611,7 +4623,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4611
4623
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4612
4624
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4613
4625
|
} | {
|
|
4614
|
-
id: string
|
|
4626
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4615
4627
|
type: "user";
|
|
4616
4628
|
role: string;
|
|
4617
4629
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -4684,7 +4696,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4684
4696
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4685
4697
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4686
4698
|
} | {
|
|
4687
|
-
id: string
|
|
4699
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4688
4700
|
type: "user";
|
|
4689
4701
|
role: string;
|
|
4690
4702
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -4706,7 +4718,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4706
4718
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4707
4719
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4708
4720
|
} | {
|
|
4709
|
-
id: string
|
|
4721
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4710
4722
|
type: "user";
|
|
4711
4723
|
role: string;
|
|
4712
4724
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -4763,7 +4775,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4763
4775
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4764
4776
|
type: "within";
|
|
4765
4777
|
location: string | {
|
|
4766
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4778
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4767
4779
|
$location?: string | undefined;
|
|
4768
4780
|
};
|
|
4769
4781
|
} | undefined;
|
|
@@ -4785,7 +4797,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4785
4797
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4786
4798
|
type: "within";
|
|
4787
4799
|
location: string | {
|
|
4788
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4800
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4789
4801
|
$location?: string | undefined;
|
|
4790
4802
|
};
|
|
4791
4803
|
} | undefined;
|
|
@@ -4800,47 +4812,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4800
4812
|
createdAtLocation?: {
|
|
4801
4813
|
type: "within";
|
|
4802
4814
|
location: string | {
|
|
4803
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4815
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4804
4816
|
$location?: string | undefined;
|
|
4805
4817
|
};
|
|
4806
4818
|
} | {
|
|
4807
4819
|
type: "exact";
|
|
4808
4820
|
term: string | {
|
|
4809
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4821
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4810
4822
|
$location?: string | undefined;
|
|
4811
4823
|
};
|
|
4812
4824
|
} | undefined;
|
|
4813
4825
|
updatedAtLocation?: {
|
|
4814
4826
|
type: "within";
|
|
4815
4827
|
location: string | {
|
|
4816
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4828
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4817
4829
|
$location?: string | undefined;
|
|
4818
4830
|
};
|
|
4819
4831
|
} | {
|
|
4820
4832
|
type: "exact";
|
|
4821
4833
|
term: string | {
|
|
4822
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4834
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4823
4835
|
$location?: string | undefined;
|
|
4824
4836
|
};
|
|
4825
4837
|
} | undefined;
|
|
4826
4838
|
updatedByUserRole?: {
|
|
4827
4839
|
type: "exact";
|
|
4828
4840
|
term: string | {
|
|
4829
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4841
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4830
4842
|
$location?: string | undefined;
|
|
4831
4843
|
};
|
|
4832
4844
|
} | undefined;
|
|
4833
4845
|
assignedTo?: {
|
|
4834
4846
|
type: "exact";
|
|
4835
4847
|
term: string | {
|
|
4836
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4848
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4837
4849
|
$location?: string | undefined;
|
|
4838
4850
|
};
|
|
4839
4851
|
} | undefined;
|
|
4840
4852
|
createdBy?: {
|
|
4841
4853
|
type: "exact";
|
|
4842
4854
|
term: string | {
|
|
4843
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4855
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4844
4856
|
$location?: string | undefined;
|
|
4845
4857
|
};
|
|
4846
4858
|
} | undefined;
|
|
@@ -4851,7 +4863,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4851
4863
|
updatedBy?: {
|
|
4852
4864
|
type: "exact";
|
|
4853
4865
|
term: string | {
|
|
4854
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4866
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4855
4867
|
$location?: string | undefined;
|
|
4856
4868
|
};
|
|
4857
4869
|
} | undefined;
|
|
@@ -4901,7 +4913,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4901
4913
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4902
4914
|
type: "within";
|
|
4903
4915
|
location: string | {
|
|
4904
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4916
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4905
4917
|
$location?: string | undefined;
|
|
4906
4918
|
};
|
|
4907
4919
|
} | undefined;
|
|
@@ -4923,7 +4935,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4923
4935
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4924
4936
|
type: "within";
|
|
4925
4937
|
location: string | {
|
|
4926
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4938
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4927
4939
|
$location?: string | undefined;
|
|
4928
4940
|
};
|
|
4929
4941
|
} | undefined;
|
|
@@ -4938,47 +4950,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4938
4950
|
createdAtLocation?: {
|
|
4939
4951
|
type: "within";
|
|
4940
4952
|
location: string | {
|
|
4941
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4953
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4942
4954
|
$location?: string | undefined;
|
|
4943
4955
|
};
|
|
4944
4956
|
} | {
|
|
4945
4957
|
type: "exact";
|
|
4946
4958
|
term: string | {
|
|
4947
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4959
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4948
4960
|
$location?: string | undefined;
|
|
4949
4961
|
};
|
|
4950
4962
|
} | undefined;
|
|
4951
4963
|
updatedAtLocation?: {
|
|
4952
4964
|
type: "within";
|
|
4953
4965
|
location: string | {
|
|
4954
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4966
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4955
4967
|
$location?: string | undefined;
|
|
4956
4968
|
};
|
|
4957
4969
|
} | {
|
|
4958
4970
|
type: "exact";
|
|
4959
4971
|
term: string | {
|
|
4960
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4972
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4961
4973
|
$location?: string | undefined;
|
|
4962
4974
|
};
|
|
4963
4975
|
} | undefined;
|
|
4964
4976
|
updatedByUserRole?: {
|
|
4965
4977
|
type: "exact";
|
|
4966
4978
|
term: string | {
|
|
4967
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4979
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4968
4980
|
$location?: string | undefined;
|
|
4969
4981
|
};
|
|
4970
4982
|
} | undefined;
|
|
4971
4983
|
assignedTo?: {
|
|
4972
4984
|
type: "exact";
|
|
4973
4985
|
term: string | {
|
|
4974
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4986
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4975
4987
|
$location?: string | undefined;
|
|
4976
4988
|
};
|
|
4977
4989
|
} | undefined;
|
|
4978
4990
|
createdBy?: {
|
|
4979
4991
|
type: "exact";
|
|
4980
4992
|
term: string | {
|
|
4981
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4993
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4982
4994
|
$location?: string | undefined;
|
|
4983
4995
|
};
|
|
4984
4996
|
} | undefined;
|
|
@@ -4989,7 +5001,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4989
5001
|
updatedBy?: {
|
|
4990
5002
|
type: "exact";
|
|
4991
5003
|
term: string | {
|
|
4992
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5004
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4993
5005
|
$location?: string | undefined;
|
|
4994
5006
|
};
|
|
4995
5007
|
} | undefined;
|
|
@@ -5046,7 +5058,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5046
5058
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5047
5059
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5048
5060
|
} | {
|
|
5049
|
-
id: string
|
|
5061
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5050
5062
|
type: "user";
|
|
5051
5063
|
role: string;
|
|
5052
5064
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -5094,7 +5106,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5094
5106
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5095
5107
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5096
5108
|
} | {
|
|
5097
|
-
id: string
|
|
5109
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5098
5110
|
type: "user";
|
|
5099
5111
|
role: string;
|
|
5100
5112
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -5212,7 +5224,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5212
5224
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5213
5225
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5214
5226
|
} | {
|
|
5215
|
-
id: string
|
|
5227
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5216
5228
|
type: "user";
|
|
5217
5229
|
role: string;
|
|
5218
5230
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -5247,7 +5259,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5247
5259
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5248
5260
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5249
5261
|
} | {
|
|
5250
|
-
id: string
|
|
5262
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5251
5263
|
type: "user";
|
|
5252
5264
|
role: string;
|
|
5253
5265
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
@@ -6,6 +6,7 @@ export declare const BaseActionInput: z.ZodObject<{
|
|
|
6
6
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
7
7
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
8
8
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
9
10
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const RegisterActionInput: z.ZodObject<{
|
|
@@ -15,6 +16,7 @@ export declare const RegisterActionInput: z.ZodObject<{
|
|
|
15
16
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
16
17
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
17
18
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
18
20
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
19
21
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
20
22
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -27,6 +29,7 @@ export declare const NotifyActionInput: z.ZodObject<{
|
|
|
27
29
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
28
30
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
29
31
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
30
33
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
31
34
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
32
35
|
}, z.core.$strip>;
|
|
@@ -38,6 +41,7 @@ export declare const DeclareActionInput: z.ZodObject<{
|
|
|
38
41
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
39
42
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
40
43
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
41
45
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
42
46
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
43
47
|
}, z.core.$strip>;
|
|
@@ -48,6 +52,7 @@ export declare const EditActionInput: z.ZodObject<{
|
|
|
48
52
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
49
53
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
50
54
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
51
56
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
52
57
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
53
58
|
content: z.ZodObject<{
|
|
@@ -62,6 +67,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<{
|
|
|
62
67
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
63
68
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
64
69
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
65
71
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
66
72
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
67
73
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -76,6 +82,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<{
|
|
|
76
82
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
77
83
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
78
84
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
79
86
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
80
87
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
81
88
|
content: z.ZodObject<{
|
|
@@ -90,6 +97,7 @@ export declare const DuplicateDetectedActionInput: z.ZodObject<{
|
|
|
90
97
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
91
98
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
92
99
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
93
101
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
94
102
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
95
103
|
content: z.ZodObject<{
|
|
@@ -106,6 +114,7 @@ export declare const MarkAsDuplicateActionInput: z.ZodObject<{
|
|
|
106
114
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
107
115
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
108
116
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
109
118
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
110
119
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
111
120
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -120,6 +129,7 @@ export declare const MarkNotDuplicateActionInput: z.ZodObject<{
|
|
|
120
129
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
121
130
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
122
131
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
123
133
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
134
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
125
135
|
}, z.core.$strip>;
|
|
@@ -131,6 +141,7 @@ export declare const ArchiveActionInput: z.ZodObject<{
|
|
|
131
141
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
132
142
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
133
143
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
134
145
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
135
146
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
136
147
|
content: z.ZodObject<{
|
|
@@ -145,6 +156,7 @@ export declare const AssignActionInput: z.ZodObject<{
|
|
|
145
156
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
146
157
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
147
158
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
148
160
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
149
161
|
type: z.ZodLiteral<"ASSIGN">;
|
|
150
162
|
assignedTo: z.ZodString;
|
|
@@ -157,6 +169,7 @@ export declare const UnassignActionInput: z.ZodObject<{
|
|
|
157
169
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
158
170
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
159
171
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
160
173
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
161
174
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
162
175
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -169,6 +182,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<{
|
|
|
169
182
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
170
183
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
171
184
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
172
186
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
173
187
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
174
188
|
}, z.core.$strip>;
|
|
@@ -180,6 +194,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<{
|
|
|
180
194
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
181
195
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
182
196
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
183
198
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
184
199
|
requestId: z.ZodString;
|
|
185
200
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -195,6 +210,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
|
|
|
195
210
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
196
211
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
197
212
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
198
214
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
199
215
|
requestId: z.ZodString;
|
|
200
216
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -207,6 +223,7 @@ export declare const ReadActionInput: z.ZodObject<{
|
|
|
207
223
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
208
224
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
209
225
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
210
227
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
211
228
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
212
229
|
}, z.core.$strip>;
|
|
@@ -222,6 +239,7 @@ export declare const CustomActionInput: z.ZodObject<{
|
|
|
222
239
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
223
240
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
224
241
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
225
243
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
226
244
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
227
245
|
customActionType: z.ZodString;
|
|
@@ -242,6 +260,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
242
260
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
243
261
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
244
262
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
245
264
|
type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
|
|
246
265
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
247
266
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -251,6 +270,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
251
270
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
252
271
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
253
272
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
254
274
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
255
275
|
type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
|
|
256
276
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -261,6 +281,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
261
281
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
262
282
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
263
283
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
264
285
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
265
286
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
266
287
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -270,6 +291,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
270
291
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
271
292
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
272
293
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
273
295
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
274
296
|
type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
|
|
275
297
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -279,6 +301,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
279
301
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
280
302
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
281
303
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
282
305
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
283
306
|
type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
|
|
284
307
|
content: z.ZodObject<{
|
|
@@ -291,6 +314,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
291
314
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
292
315
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
293
316
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
294
318
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
295
319
|
type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
|
|
296
320
|
content: z.ZodObject<{
|
|
@@ -306,6 +330,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
306
330
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
307
331
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
308
332
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
309
334
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
310
335
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
|
|
311
336
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -318,6 +343,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
318
343
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
319
344
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
320
345
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
321
347
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
322
348
|
type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
|
|
323
349
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -327,6 +353,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
327
353
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
328
354
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
329
355
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
330
357
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
331
358
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
332
359
|
content: z.ZodObject<{
|
|
@@ -339,6 +366,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
339
366
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
340
367
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
341
368
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
342
370
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
343
371
|
type: z.ZodLiteral<"ASSIGN">;
|
|
344
372
|
assignedTo: z.ZodString;
|
|
@@ -349,6 +377,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
349
377
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
350
378
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
351
379
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
352
381
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
353
382
|
type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
|
|
354
383
|
assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
|
|
@@ -359,6 +388,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
359
388
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
360
389
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
361
390
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
362
392
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
363
393
|
type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
|
|
364
394
|
content: z.ZodOptional<z.ZodObject<{
|
|
@@ -371,6 +401,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
371
401
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
372
402
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
373
403
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
404
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
374
405
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
375
406
|
type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
|
|
376
407
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -380,6 +411,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
411
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
381
412
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
382
413
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
414
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
383
415
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
384
416
|
requestId: z.ZodString;
|
|
385
417
|
type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
|
|
@@ -393,6 +425,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
393
425
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
394
426
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
395
427
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
396
429
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
397
430
|
requestId: z.ZodString;
|
|
398
431
|
type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
|
|
@@ -403,6 +436,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
403
436
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
404
437
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
405
438
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
439
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
406
440
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
407
441
|
type: z.ZodDefault<z.ZodLiteral<"READ">>;
|
|
408
442
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -412,6 +446,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
412
446
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
413
447
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
414
448
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
415
450
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
416
451
|
type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
|
|
417
452
|
customActionType: z.ZodString;
|
|
@@ -422,6 +457,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
422
457
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
423
458
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
424
459
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
460
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
425
461
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
426
462
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
427
463
|
content: z.ZodObject<{
|
|
@@ -51,6 +51,7 @@ export declare const DraftInput: z.ZodObject<{
|
|
|
51
51
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
52
52
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
53
53
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
waitFor: z.ZodOptional<z.ZodBoolean>;
|
|
54
55
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
55
56
|
type: z.ZodEnum<{
|
|
56
57
|
CUSTOM: "CUSTOM";
|
package/dist/events/index.js
CHANGED
|
@@ -1375,28 +1375,20 @@ function schemaPriority(schema) {
|
|
|
1375
1375
|
return idx === -1 ? 9999 : idx;
|
|
1376
1376
|
}
|
|
1377
1377
|
function safeUnion(schemas) {
|
|
1378
|
+
const sortedSchemas = [...schemas].sort(
|
|
1379
|
+
(a, b) => schemaPriority(a) - schemaPriority(b)
|
|
1380
|
+
);
|
|
1378
1381
|
return z12.any().superRefine((val, ctx) => {
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
if (successful.length === 0) {
|
|
1384
|
-
ctx.addIssue({
|
|
1385
|
-
code: "invalid_type",
|
|
1386
|
-
expected: "custom",
|
|
1387
|
-
message: "Value does not match any schema"
|
|
1388
|
-
});
|
|
1389
|
-
return;
|
|
1390
|
-
}
|
|
1391
|
-
successful.sort((a, b) => schemaPriority(a) - schemaPriority(b));
|
|
1392
|
-
const best = successful[0];
|
|
1393
|
-
if (!best.safeParse(val).success) {
|
|
1394
|
-
ctx.addIssue({
|
|
1395
|
-
expected: "custom",
|
|
1396
|
-
code: "invalid_type",
|
|
1397
|
-
message: "Value did not match the best schema"
|
|
1398
|
-
});
|
|
1382
|
+
for (const schema of sortedSchemas) {
|
|
1383
|
+
if (schema.safeParse(val).success) {
|
|
1384
|
+
return;
|
|
1385
|
+
}
|
|
1399
1386
|
}
|
|
1387
|
+
ctx.addIssue({
|
|
1388
|
+
code: "invalid_type",
|
|
1389
|
+
expected: "custom",
|
|
1390
|
+
message: "Value does not match any schema"
|
|
1391
|
+
});
|
|
1400
1392
|
}).meta({
|
|
1401
1393
|
description: "Value that matches exactly one of the possible schema types (TextValue, DateValue, DateRangeFieldValue). The best matching schema is chosen by priority."
|
|
1402
1394
|
});
|
|
@@ -5861,6 +5853,7 @@ var BaseActionInput = z38.object({
|
|
|
5861
5853
|
originalActionId: UUID.optional(),
|
|
5862
5854
|
// should not be part of base action.
|
|
5863
5855
|
keepAssignment: z38.boolean().optional(),
|
|
5856
|
+
waitFor: z38.boolean().optional(),
|
|
5864
5857
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
5865
5858
|
// @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
|
|
5866
5859
|
createdAtLocation: UUID.nullish().describe(
|
|
@@ -949,28 +949,20 @@ function schemaPriority(schema) {
|
|
|
949
949
|
return idx === -1 ? 9999 : idx;
|
|
950
950
|
}
|
|
951
951
|
function safeUnion(schemas) {
|
|
952
|
+
const sortedSchemas = [...schemas].sort(
|
|
953
|
+
(a, b) => schemaPriority(a) - schemaPriority(b)
|
|
954
|
+
);
|
|
952
955
|
return z12.any().superRefine((val, ctx) => {
|
|
953
|
-
const
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
if (successful.length === 0) {
|
|
958
|
-
ctx.addIssue({
|
|
959
|
-
code: "invalid_type",
|
|
960
|
-
expected: "custom",
|
|
961
|
-
message: "Value does not match any schema"
|
|
962
|
-
});
|
|
963
|
-
return;
|
|
964
|
-
}
|
|
965
|
-
successful.sort((a, b) => schemaPriority(a) - schemaPriority(b));
|
|
966
|
-
const best = successful[0];
|
|
967
|
-
if (!best.safeParse(val).success) {
|
|
968
|
-
ctx.addIssue({
|
|
969
|
-
expected: "custom",
|
|
970
|
-
code: "invalid_type",
|
|
971
|
-
message: "Value did not match the best schema"
|
|
972
|
-
});
|
|
956
|
+
for (const schema of sortedSchemas) {
|
|
957
|
+
if (schema.safeParse(val).success) {
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
973
960
|
}
|
|
961
|
+
ctx.addIssue({
|
|
962
|
+
code: "invalid_type",
|
|
963
|
+
expected: "custom",
|
|
964
|
+
message: "Value does not match any schema"
|
|
965
|
+
});
|
|
974
966
|
}).meta({
|
|
975
967
|
description: "Value that matches exactly one of the possible schema types (TextValue, DateValue, DateRangeFieldValue). The best matching schema is chosen by priority."
|
|
976
968
|
});
|
|
@@ -4149,6 +4141,7 @@ var BaseActionInput = z38.object({
|
|
|
4149
4141
|
originalActionId: UUID.optional(),
|
|
4150
4142
|
// should not be part of base action.
|
|
4151
4143
|
keepAssignment: z38.boolean().optional(),
|
|
4144
|
+
waitFor: z38.boolean().optional(),
|
|
4152
4145
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
4153
4146
|
// @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
|
|
4154
4147
|
createdAtLocation: UUID.nullish().describe(
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|