@opencrvs/toolkit 1.9.12-rc.a38f772 → 1.9.12-rc.a41ebb8
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 +180 -163
- package/dist/commons/events/AuditLog.d.ts +2 -0
- package/dist/commons/notification/UserNotifications.d.ts +15 -0
- package/dist/events/index.js +13 -2
- package/dist/notification/index.js +6 -0
- package/opencrvs-toolkit-1.9.12-rc.a41ebb8.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-1.9.12-rc.a38f772.tgz +0 -0
|
@@ -5,14 +5,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5
5
|
id: string;
|
|
6
6
|
type: "system";
|
|
7
7
|
signature?: undefined;
|
|
8
|
-
primaryOfficeId?: undefined;
|
|
9
|
-
administrativeAreaId?: undefined;
|
|
8
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
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">;
|
|
15
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
15
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
16
16
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
17
17
|
};
|
|
18
18
|
}>;
|
|
@@ -27,14 +27,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27
27
|
id: string;
|
|
28
28
|
type: "system";
|
|
29
29
|
signature?: undefined;
|
|
30
|
-
primaryOfficeId?: undefined;
|
|
31
|
-
administrativeAreaId?: undefined;
|
|
30
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
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">;
|
|
37
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
37
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
38
38
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
39
39
|
};
|
|
40
40
|
}>;
|
|
@@ -49,14 +49,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
49
49
|
id: string;
|
|
50
50
|
type: "system";
|
|
51
51
|
signature?: undefined;
|
|
52
|
-
primaryOfficeId?: undefined;
|
|
53
|
-
administrativeAreaId?: undefined;
|
|
52
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
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">;
|
|
59
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
59
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
60
60
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
@@ -95,14 +95,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
95
95
|
id: string;
|
|
96
96
|
type: "system";
|
|
97
97
|
signature?: undefined;
|
|
98
|
-
primaryOfficeId?: undefined;
|
|
99
|
-
administrativeAreaId?: undefined;
|
|
98
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
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">;
|
|
105
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
105
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
106
106
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
107
107
|
};
|
|
108
108
|
}>;
|
|
@@ -1057,14 +1057,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1057
1057
|
id: string;
|
|
1058
1058
|
type: "system";
|
|
1059
1059
|
signature?: undefined;
|
|
1060
|
-
primaryOfficeId?: undefined;
|
|
1061
|
-
administrativeAreaId?: undefined;
|
|
1060
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
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">;
|
|
1067
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1067
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1068
1068
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1069
1069
|
};
|
|
1070
1070
|
}>;
|
|
@@ -1136,14 +1136,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1136
1136
|
id: string;
|
|
1137
1137
|
type: "system";
|
|
1138
1138
|
signature?: undefined;
|
|
1139
|
-
primaryOfficeId?: undefined;
|
|
1140
|
-
administrativeAreaId?: undefined;
|
|
1139
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1140
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1141
1141
|
} | {
|
|
1142
|
-
id: string
|
|
1142
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1143
1143
|
type: "user";
|
|
1144
1144
|
role: string;
|
|
1145
1145
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1146
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1146
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1147
1147
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1148
1148
|
};
|
|
1149
1149
|
}>;
|
|
@@ -1158,14 +1158,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1158
1158
|
id: string;
|
|
1159
1159
|
type: "system";
|
|
1160
1160
|
signature?: undefined;
|
|
1161
|
-
primaryOfficeId?: undefined;
|
|
1162
|
-
administrativeAreaId?: undefined;
|
|
1161
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1162
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1163
1163
|
} | {
|
|
1164
|
-
id: string
|
|
1164
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1165
1165
|
type: "user";
|
|
1166
1166
|
role: string;
|
|
1167
1167
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1168
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1168
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1169
1169
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1170
1170
|
};
|
|
1171
1171
|
}>;
|
|
@@ -1202,14 +1202,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1202
1202
|
id: string;
|
|
1203
1203
|
type: "system";
|
|
1204
1204
|
signature?: undefined;
|
|
1205
|
-
primaryOfficeId?: undefined;
|
|
1206
|
-
administrativeAreaId?: undefined;
|
|
1205
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1206
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1207
1207
|
} | {
|
|
1208
|
-
id: string
|
|
1208
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1209
1209
|
type: "user";
|
|
1210
1210
|
role: string;
|
|
1211
1211
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1212
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1212
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1213
1213
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1214
1214
|
};
|
|
1215
1215
|
}>;
|
|
@@ -1555,14 +1555,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1555
1555
|
id: string;
|
|
1556
1556
|
type: "system";
|
|
1557
1557
|
signature?: undefined;
|
|
1558
|
-
primaryOfficeId?: undefined;
|
|
1559
|
-
administrativeAreaId?: undefined;
|
|
1558
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1559
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1560
1560
|
} | {
|
|
1561
|
-
id: string
|
|
1561
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1562
1562
|
type: "user";
|
|
1563
1563
|
role: string;
|
|
1564
1564
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1565
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1565
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1566
1566
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1567
1567
|
};
|
|
1568
1568
|
}>;
|
|
@@ -1599,14 +1599,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1599
1599
|
id: string;
|
|
1600
1600
|
type: "system";
|
|
1601
1601
|
signature?: undefined;
|
|
1602
|
-
primaryOfficeId?: undefined;
|
|
1603
|
-
administrativeAreaId?: undefined;
|
|
1602
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1603
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1604
1604
|
} | {
|
|
1605
|
-
id: string
|
|
1605
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1606
1606
|
type: "user";
|
|
1607
1607
|
role: string;
|
|
1608
1608
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1609
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1609
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1610
1610
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1611
1611
|
};
|
|
1612
1612
|
}>;
|
|
@@ -1643,14 +1643,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1643
1643
|
id: string;
|
|
1644
1644
|
type: "system";
|
|
1645
1645
|
signature?: undefined;
|
|
1646
|
-
primaryOfficeId?: undefined;
|
|
1647
|
-
administrativeAreaId?: undefined;
|
|
1646
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1647
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1648
1648
|
} | {
|
|
1649
|
-
id: string
|
|
1649
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1650
1650
|
type: "user";
|
|
1651
1651
|
role: string;
|
|
1652
1652
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1653
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1653
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1654
1654
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1655
1655
|
};
|
|
1656
1656
|
}>;
|
|
@@ -1687,14 +1687,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1687
1687
|
id: string;
|
|
1688
1688
|
type: "system";
|
|
1689
1689
|
signature?: undefined;
|
|
1690
|
-
primaryOfficeId?: undefined;
|
|
1691
|
-
administrativeAreaId?: undefined;
|
|
1690
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1691
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1692
1692
|
} | {
|
|
1693
|
-
id: string
|
|
1693
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1694
1694
|
type: "user";
|
|
1695
1695
|
role: string;
|
|
1696
1696
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1697
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1697
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1698
1698
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1699
1699
|
};
|
|
1700
1700
|
}>;
|
|
@@ -1731,14 +1731,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1731
1731
|
id: string;
|
|
1732
1732
|
type: "system";
|
|
1733
1733
|
signature?: undefined;
|
|
1734
|
-
primaryOfficeId?: undefined;
|
|
1735
|
-
administrativeAreaId?: undefined;
|
|
1734
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1735
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1736
1736
|
} | {
|
|
1737
|
-
id: string
|
|
1737
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1738
1738
|
type: "user";
|
|
1739
1739
|
role: string;
|
|
1740
1740
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1741
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1741
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1742
1742
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1743
1743
|
};
|
|
1744
1744
|
}>;
|
|
@@ -1775,14 +1775,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1775
1775
|
id: string;
|
|
1776
1776
|
type: "system";
|
|
1777
1777
|
signature?: undefined;
|
|
1778
|
-
primaryOfficeId?: undefined;
|
|
1779
|
-
administrativeAreaId?: undefined;
|
|
1778
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1779
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1780
1780
|
} | {
|
|
1781
|
-
id: string
|
|
1781
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1782
1782
|
type: "user";
|
|
1783
1783
|
role: string;
|
|
1784
1784
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1785
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
1785
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1786
1786
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1787
1787
|
};
|
|
1788
1788
|
}>;
|
|
@@ -2129,14 +2129,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2129
2129
|
id: string;
|
|
2130
2130
|
type: "system";
|
|
2131
2131
|
signature?: undefined;
|
|
2132
|
-
primaryOfficeId?: undefined;
|
|
2133
|
-
administrativeAreaId?: undefined;
|
|
2132
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2133
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2134
2134
|
} | {
|
|
2135
|
-
id: string
|
|
2135
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2136
2136
|
type: "user";
|
|
2137
2137
|
role: string;
|
|
2138
2138
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
2139
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
2139
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
2140
2140
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2141
2141
|
};
|
|
2142
2142
|
}>;
|
|
@@ -2782,14 +2782,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2782
2782
|
id: string;
|
|
2783
2783
|
type: "system";
|
|
2784
2784
|
signature?: undefined;
|
|
2785
|
-
primaryOfficeId?: undefined;
|
|
2786
|
-
administrativeAreaId?: undefined;
|
|
2785
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2786
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2787
2787
|
} | {
|
|
2788
|
-
id: string
|
|
2788
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2789
2789
|
type: "user";
|
|
2790
2790
|
role: string;
|
|
2791
2791
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
2792
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
2792
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
2793
2793
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2794
2794
|
};
|
|
2795
2795
|
}>;
|
|
@@ -2804,14 +2804,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2804
2804
|
id: string;
|
|
2805
2805
|
type: "system";
|
|
2806
2806
|
signature?: undefined;
|
|
2807
|
-
primaryOfficeId?: undefined;
|
|
2808
|
-
administrativeAreaId?: undefined;
|
|
2807
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2808
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2809
2809
|
} | {
|
|
2810
|
-
id: string
|
|
2810
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2811
2811
|
type: "user";
|
|
2812
2812
|
role: string;
|
|
2813
2813
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
2814
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
2814
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
2815
2815
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2816
2816
|
};
|
|
2817
2817
|
}>;
|
|
@@ -2848,14 +2848,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2848
2848
|
id: string;
|
|
2849
2849
|
type: "system";
|
|
2850
2850
|
signature?: undefined;
|
|
2851
|
-
primaryOfficeId?: undefined;
|
|
2852
|
-
administrativeAreaId?: undefined;
|
|
2851
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2852
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2853
2853
|
} | {
|
|
2854
|
-
id: string
|
|
2854
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2855
2855
|
type: "user";
|
|
2856
2856
|
role: string;
|
|
2857
2857
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
2858
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
2858
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
2859
2859
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2860
2860
|
};
|
|
2861
2861
|
}>;
|
|
@@ -2892,14 +2892,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2892
2892
|
id: string;
|
|
2893
2893
|
type: "system";
|
|
2894
2894
|
signature?: undefined;
|
|
2895
|
-
primaryOfficeId?: undefined;
|
|
2896
|
-
administrativeAreaId?: undefined;
|
|
2895
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2896
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2897
2897
|
} | {
|
|
2898
|
-
id: string
|
|
2898
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2899
2899
|
type: "user";
|
|
2900
2900
|
role: string;
|
|
2901
2901
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
2902
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
2902
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
2903
2903
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2904
2904
|
};
|
|
2905
2905
|
}>;
|
|
@@ -2937,14 +2937,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2937
2937
|
id: string;
|
|
2938
2938
|
type: "system";
|
|
2939
2939
|
signature?: undefined;
|
|
2940
|
-
primaryOfficeId?: undefined;
|
|
2941
|
-
administrativeAreaId?: undefined;
|
|
2940
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2941
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
2942
2942
|
} | {
|
|
2943
|
-
id: string
|
|
2943
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2944
2944
|
type: "user";
|
|
2945
2945
|
role: string;
|
|
2946
2946
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
2947
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
2947
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
2948
2948
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2949
2949
|
};
|
|
2950
2950
|
}>;
|
|
@@ -3955,14 +3955,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3955
3955
|
id: string;
|
|
3956
3956
|
type: "system";
|
|
3957
3957
|
signature?: undefined;
|
|
3958
|
-
primaryOfficeId?: undefined;
|
|
3959
|
-
administrativeAreaId?: undefined;
|
|
3958
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
3959
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
3960
3960
|
} | {
|
|
3961
|
-
id: string
|
|
3961
|
+
id: string & import("zod").$brand<"UUID">;
|
|
3962
3962
|
type: "user";
|
|
3963
3963
|
role: string;
|
|
3964
3964
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
3965
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
3965
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
3966
3966
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
3967
3967
|
};
|
|
3968
3968
|
}>;
|
|
@@ -3973,7 +3973,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3973
3973
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3974
3974
|
input: string;
|
|
3975
3975
|
output: {
|
|
3976
|
-
id: string
|
|
3976
|
+
id: string & import("zod").$brand<"UUID">;
|
|
3977
3977
|
name: {
|
|
3978
3978
|
use: string;
|
|
3979
3979
|
given: string[];
|
|
@@ -3984,7 +3984,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3984
3984
|
type: "user";
|
|
3985
3985
|
status: "active" | "pending" | "deactivated";
|
|
3986
3986
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
3987
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
3987
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
3988
3988
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
3989
3989
|
device?: string | undefined;
|
|
3990
3990
|
fullHonorificName?: string | undefined;
|
|
@@ -3995,8 +3995,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3995
3995
|
id: string;
|
|
3996
3996
|
name: string;
|
|
3997
3997
|
type: "system";
|
|
3998
|
-
primaryOfficeId?: undefined;
|
|
3999
|
-
administrativeAreaId?: undefined;
|
|
3998
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
3999
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4000
4000
|
signature?: undefined;
|
|
4001
4001
|
avatar?: undefined;
|
|
4002
4002
|
fullHonorificName?: string | undefined;
|
|
@@ -4012,25 +4012,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4012
4012
|
given: string[];
|
|
4013
4013
|
family: string;
|
|
4014
4014
|
}[];
|
|
4015
|
-
email: string;
|
|
4016
4015
|
role: string;
|
|
4017
4016
|
primaryOfficeId: string;
|
|
4018
|
-
|
|
4019
|
-
mobile?: string | undefined;
|
|
4017
|
+
data?: Record<string, unknown> | undefined;
|
|
4020
4018
|
fullHonorificName?: string | undefined;
|
|
4021
|
-
emailForNotification?: string | undefined;
|
|
4022
|
-
password?: string | undefined;
|
|
4023
4019
|
device?: string | undefined;
|
|
4024
|
-
|
|
4020
|
+
email?: string | undefined;
|
|
4021
|
+
mobile?: string | undefined;
|
|
4022
|
+
username?: undefined;
|
|
4025
4023
|
signature?: {
|
|
4026
4024
|
path: string;
|
|
4027
4025
|
originalFilename: string;
|
|
4028
4026
|
type: string;
|
|
4029
4027
|
} | undefined;
|
|
4030
|
-
data?: Record<string, unknown> | undefined;
|
|
4031
4028
|
};
|
|
4032
4029
|
output: {
|
|
4033
|
-
id: string
|
|
4030
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4034
4031
|
name: {
|
|
4035
4032
|
use: string;
|
|
4036
4033
|
given: string[];
|
|
@@ -4041,7 +4038,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4041
4038
|
type: "user";
|
|
4042
4039
|
status: "active" | "pending" | "deactivated";
|
|
4043
4040
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4044
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4041
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4045
4042
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4046
4043
|
device?: string | undefined;
|
|
4047
4044
|
fullHonorificName?: string | undefined;
|
|
@@ -4053,32 +4050,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4053
4050
|
}>;
|
|
4054
4051
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
4055
4052
|
input: {
|
|
4056
|
-
|
|
4053
|
+
id: string;
|
|
4054
|
+
data?: Record<string, unknown> | undefined;
|
|
4055
|
+
name?: {
|
|
4057
4056
|
use: string;
|
|
4058
4057
|
given: string[];
|
|
4059
4058
|
family: string;
|
|
4060
|
-
}[];
|
|
4061
|
-
|
|
4062
|
-
role: string;
|
|
4063
|
-
primaryOfficeId: string;
|
|
4064
|
-
username?: string | undefined;
|
|
4065
|
-
mobile?: string | undefined;
|
|
4059
|
+
}[] | undefined;
|
|
4060
|
+
role?: string | undefined;
|
|
4066
4061
|
fullHonorificName?: string | undefined;
|
|
4067
|
-
emailForNotification?: string | undefined;
|
|
4068
|
-
password?: string | undefined;
|
|
4069
4062
|
device?: string | undefined;
|
|
4070
|
-
|
|
4063
|
+
primaryOfficeId?: string | undefined;
|
|
4064
|
+
email?: string | undefined;
|
|
4065
|
+
mobile?: string | undefined;
|
|
4071
4066
|
signature?: {
|
|
4072
4067
|
path: string;
|
|
4073
4068
|
originalFilename: string;
|
|
4074
4069
|
type: string;
|
|
4075
4070
|
} | undefined;
|
|
4076
|
-
|
|
4071
|
+
status?: "active" | "deactivated" | undefined;
|
|
4077
4072
|
} & {
|
|
4078
4073
|
id: string;
|
|
4079
4074
|
};
|
|
4080
4075
|
output: {
|
|
4081
|
-
id: string
|
|
4076
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4082
4077
|
name: {
|
|
4083
4078
|
use: string;
|
|
4084
4079
|
given: string[];
|
|
@@ -4089,7 +4084,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4089
4084
|
type: "user";
|
|
4090
4085
|
status: "active" | "pending" | "deactivated";
|
|
4091
4086
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4092
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4087
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4093
4088
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4094
4089
|
device?: string | undefined;
|
|
4095
4090
|
fullHonorificName?: string | undefined;
|
|
@@ -4102,7 +4097,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4102
4097
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4103
4098
|
input: string[];
|
|
4104
4099
|
output: ({
|
|
4105
|
-
id: string
|
|
4100
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4106
4101
|
name: {
|
|
4107
4102
|
use: string;
|
|
4108
4103
|
given: string[];
|
|
@@ -4113,7 +4108,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4113
4108
|
type: "user";
|
|
4114
4109
|
status: "active" | "pending" | "deactivated";
|
|
4115
4110
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4116
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4111
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4117
4112
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4118
4113
|
device?: string | undefined;
|
|
4119
4114
|
fullHonorificName?: string | undefined;
|
|
@@ -4124,8 +4119,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4124
4119
|
id: string;
|
|
4125
4120
|
name: string;
|
|
4126
4121
|
type: "system";
|
|
4127
|
-
primaryOfficeId?: undefined;
|
|
4128
|
-
administrativeAreaId?: undefined;
|
|
4122
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4123
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4129
4124
|
signature?: undefined;
|
|
4130
4125
|
avatar?: undefined;
|
|
4131
4126
|
fullHonorificName?: string | undefined;
|
|
@@ -4141,12 +4136,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4141
4136
|
sortOrder: "desc" | "asc";
|
|
4142
4137
|
username?: string | undefined;
|
|
4143
4138
|
mobile?: string | undefined;
|
|
4139
|
+
email?: string | undefined;
|
|
4144
4140
|
status?: string | undefined;
|
|
4145
4141
|
primaryOfficeId?: string | undefined;
|
|
4146
|
-
|
|
4142
|
+
sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined;
|
|
4147
4143
|
};
|
|
4148
4144
|
output: ({
|
|
4149
|
-
id: string
|
|
4145
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4150
4146
|
name: {
|
|
4151
4147
|
use: string;
|
|
4152
4148
|
given: string[];
|
|
@@ -4157,7 +4153,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4157
4153
|
type: "user";
|
|
4158
4154
|
status: "active" | "pending" | "deactivated";
|
|
4159
4155
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4160
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4156
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4161
4157
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4162
4158
|
device?: string | undefined;
|
|
4163
4159
|
fullHonorificName?: string | undefined;
|
|
@@ -4168,15 +4164,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4168
4164
|
id: string;
|
|
4169
4165
|
name: string;
|
|
4170
4166
|
type: "system";
|
|
4171
|
-
primaryOfficeId?: undefined;
|
|
4172
|
-
administrativeAreaId?: undefined;
|
|
4167
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4168
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4173
4169
|
signature?: undefined;
|
|
4174
4170
|
avatar?: undefined;
|
|
4175
4171
|
fullHonorificName?: string | undefined;
|
|
4176
4172
|
legacyId?: string | undefined;
|
|
4177
4173
|
status?: undefined;
|
|
4178
4174
|
})[];
|
|
4179
|
-
meta:
|
|
4175
|
+
meta: object;
|
|
4180
4176
|
}>;
|
|
4181
4177
|
actions: import("@trpc/server").TRPCQueryProcedure<{
|
|
4182
4178
|
input: {
|
|
@@ -4223,14 +4219,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4223
4219
|
id: string;
|
|
4224
4220
|
type: "system";
|
|
4225
4221
|
signature?: undefined;
|
|
4226
|
-
primaryOfficeId?: undefined;
|
|
4227
|
-
administrativeAreaId?: undefined;
|
|
4222
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4223
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4228
4224
|
} | {
|
|
4229
|
-
id: string
|
|
4225
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4230
4226
|
type: "user";
|
|
4231
4227
|
role: string;
|
|
4232
4228
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4233
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4229
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4234
4230
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4235
4231
|
};
|
|
4236
4232
|
}>;
|
|
@@ -4249,7 +4245,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4249
4245
|
}>>;
|
|
4250
4246
|
changePassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
4251
4247
|
input: {
|
|
4252
|
-
userId: string;
|
|
4253
4248
|
existingPassword: string;
|
|
4254
4249
|
password: string;
|
|
4255
4250
|
};
|
|
@@ -4296,8 +4291,30 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4296
4291
|
output: void;
|
|
4297
4292
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4298
4293
|
}>;
|
|
4294
|
+
resendInvite: import("@trpc/server").TRPCMutationProcedure<{
|
|
4295
|
+
input: string;
|
|
4296
|
+
output: void;
|
|
4297
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4298
|
+
}>;
|
|
4299
4299
|
activate: import("@trpc/server").TRPCMutationProcedure<{
|
|
4300
|
-
input:
|
|
4300
|
+
input: {
|
|
4301
|
+
userId: string;
|
|
4302
|
+
password: string;
|
|
4303
|
+
securityQNAs: {
|
|
4304
|
+
questionKey: string;
|
|
4305
|
+
answer: string;
|
|
4306
|
+
}[];
|
|
4307
|
+
};
|
|
4308
|
+
output: void;
|
|
4309
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4310
|
+
}>;
|
|
4311
|
+
sendUsernameReminder: import("@trpc/server").TRPCMutationProcedure<{
|
|
4312
|
+
input: string;
|
|
4313
|
+
output: void;
|
|
4314
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4315
|
+
}>;
|
|
4316
|
+
sendResetPasswordInvite: import("@trpc/server").TRPCMutationProcedure<{
|
|
4317
|
+
input: string;
|
|
4301
4318
|
output: void;
|
|
4302
4319
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4303
4320
|
}>;
|
|
@@ -4308,14 +4325,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4308
4325
|
id: string;
|
|
4309
4326
|
type: "system";
|
|
4310
4327
|
signature?: undefined;
|
|
4311
|
-
primaryOfficeId?: undefined;
|
|
4312
|
-
administrativeAreaId?: undefined;
|
|
4328
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4329
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4313
4330
|
} | {
|
|
4314
|
-
id: string
|
|
4331
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4315
4332
|
type: "user";
|
|
4316
4333
|
role: string;
|
|
4317
4334
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4318
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4335
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4319
4336
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4320
4337
|
};
|
|
4321
4338
|
}>;
|
|
@@ -4339,7 +4356,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4339
4356
|
comment?: string | undefined;
|
|
4340
4357
|
};
|
|
4341
4358
|
} | {
|
|
4342
|
-
operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.username_reminder" | "user.username_reminder_by_admin";
|
|
4359
|
+
operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin";
|
|
4343
4360
|
requestData: {
|
|
4344
4361
|
subjectId: string;
|
|
4345
4362
|
};
|
|
@@ -4559,7 +4576,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4559
4576
|
clientId: string;
|
|
4560
4577
|
clientType: "system" | "user";
|
|
4561
4578
|
createdAt: string;
|
|
4562
|
-
operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.username_reminder" | "user.username_reminder_by_admin";
|
|
4579
|
+
operation: "user.edit_user" | "user.logged_in" | "user.logged_out" | "user.password_changed" | "user.password_reset" | "user.password_reset_by_admin" | "user.resend_invite" | "user.username_reminder" | "user.username_reminder_by_admin";
|
|
4563
4580
|
requestData: {
|
|
4564
4581
|
subjectId: string;
|
|
4565
4582
|
};
|
|
@@ -4601,14 +4618,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4601
4618
|
id: string;
|
|
4602
4619
|
type: "system";
|
|
4603
4620
|
signature?: undefined;
|
|
4604
|
-
primaryOfficeId?: undefined;
|
|
4605
|
-
administrativeAreaId?: undefined;
|
|
4621
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4622
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4606
4623
|
} | {
|
|
4607
|
-
id: string
|
|
4624
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4608
4625
|
type: "user";
|
|
4609
4626
|
role: string;
|
|
4610
4627
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4611
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4628
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4612
4629
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4613
4630
|
};
|
|
4614
4631
|
}>;
|
|
@@ -4631,7 +4648,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4631
4648
|
locationType: string | null;
|
|
4632
4649
|
externalId?: string | null | undefined;
|
|
4633
4650
|
}[];
|
|
4634
|
-
meta:
|
|
4651
|
+
meta: object;
|
|
4635
4652
|
}>;
|
|
4636
4653
|
set: import("@trpc/server").TRPCMutationProcedure<{
|
|
4637
4654
|
input: {
|
|
@@ -4643,7 +4660,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4643
4660
|
externalId?: string | null | undefined;
|
|
4644
4661
|
}[];
|
|
4645
4662
|
output: void;
|
|
4646
|
-
meta:
|
|
4663
|
+
meta: object;
|
|
4647
4664
|
}>;
|
|
4648
4665
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
4649
4666
|
input: {
|
|
@@ -4674,14 +4691,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4674
4691
|
id: string;
|
|
4675
4692
|
type: "system";
|
|
4676
4693
|
signature?: undefined;
|
|
4677
|
-
primaryOfficeId?: undefined;
|
|
4678
|
-
administrativeAreaId?: undefined;
|
|
4694
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4695
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4679
4696
|
} | {
|
|
4680
|
-
id: string
|
|
4697
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4681
4698
|
type: "user";
|
|
4682
4699
|
role: string;
|
|
4683
4700
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4684
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4701
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4685
4702
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4686
4703
|
};
|
|
4687
4704
|
}>;
|
|
@@ -4696,14 +4713,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4696
4713
|
id: string;
|
|
4697
4714
|
type: "system";
|
|
4698
4715
|
signature?: undefined;
|
|
4699
|
-
primaryOfficeId?: undefined;
|
|
4700
|
-
administrativeAreaId?: undefined;
|
|
4716
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4717
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4701
4718
|
} | {
|
|
4702
|
-
id: string
|
|
4719
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4703
4720
|
type: "user";
|
|
4704
4721
|
role: string;
|
|
4705
4722
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4706
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4723
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4707
4724
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4708
4725
|
};
|
|
4709
4726
|
}>;
|
|
@@ -5036,14 +5053,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5036
5053
|
id: string;
|
|
5037
5054
|
type: "system";
|
|
5038
5055
|
signature?: undefined;
|
|
5039
|
-
primaryOfficeId?: undefined;
|
|
5040
|
-
administrativeAreaId?: undefined;
|
|
5056
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5057
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5041
5058
|
} | {
|
|
5042
|
-
id: string
|
|
5059
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5043
5060
|
type: "user";
|
|
5044
5061
|
role: string;
|
|
5045
5062
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
5046
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
5063
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
5047
5064
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5048
5065
|
};
|
|
5049
5066
|
}>;
|
|
@@ -5074,7 +5091,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5074
5091
|
externalId?: string | null | undefined;
|
|
5075
5092
|
}[];
|
|
5076
5093
|
output: void;
|
|
5077
|
-
meta:
|
|
5094
|
+
meta: object;
|
|
5078
5095
|
}>;
|
|
5079
5096
|
}>>;
|
|
5080
5097
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
@@ -5084,14 +5101,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5084
5101
|
id: string;
|
|
5085
5102
|
type: "system";
|
|
5086
5103
|
signature?: undefined;
|
|
5087
|
-
primaryOfficeId?: undefined;
|
|
5088
|
-
administrativeAreaId?: undefined;
|
|
5104
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5105
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5089
5106
|
} | {
|
|
5090
|
-
id: string
|
|
5107
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5091
5108
|
type: "user";
|
|
5092
5109
|
role: string;
|
|
5093
5110
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
5094
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
5111
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
5095
5112
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5096
5113
|
};
|
|
5097
5114
|
}>;
|
|
@@ -5202,14 +5219,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5202
5219
|
id: string;
|
|
5203
5220
|
type: "system";
|
|
5204
5221
|
signature?: undefined;
|
|
5205
|
-
primaryOfficeId?: undefined;
|
|
5206
|
-
administrativeAreaId?: undefined;
|
|
5222
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5223
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5207
5224
|
} | {
|
|
5208
|
-
id: string
|
|
5225
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5209
5226
|
type: "user";
|
|
5210
5227
|
role: string;
|
|
5211
5228
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
5212
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
5229
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
5213
5230
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5214
5231
|
};
|
|
5215
5232
|
}>;
|
|
@@ -5237,14 +5254,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5237
5254
|
id: string;
|
|
5238
5255
|
type: "system";
|
|
5239
5256
|
signature?: undefined;
|
|
5240
|
-
primaryOfficeId?: undefined;
|
|
5241
|
-
administrativeAreaId?: undefined;
|
|
5257
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5258
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
5242
5259
|
} | {
|
|
5243
|
-
id: string
|
|
5260
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5244
5261
|
type: "user";
|
|
5245
5262
|
role: string;
|
|
5246
5263
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
5247
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
5264
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
5248
5265
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5249
5266
|
};
|
|
5250
5267
|
}>;
|
|
@@ -60,6 +60,7 @@ export declare const UserAuditRecordInput: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
60
60
|
"user.password_changed": "user.password_changed";
|
|
61
61
|
"user.password_reset": "user.password_reset";
|
|
62
62
|
"user.password_reset_by_admin": "user.password_reset_by_admin";
|
|
63
|
+
"user.resend_invite": "user.resend_invite";
|
|
63
64
|
"user.username_reminder": "user.username_reminder";
|
|
64
65
|
"user.username_reminder_by_admin": "user.username_reminder_by_admin";
|
|
65
66
|
}>;
|
|
@@ -340,6 +341,7 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
340
341
|
"user.password_changed": "user.password_changed";
|
|
341
342
|
"user.password_reset": "user.password_reset";
|
|
342
343
|
"user.password_reset_by_admin": "user.password_reset_by_admin";
|
|
344
|
+
"user.resend_invite": "user.resend_invite";
|
|
343
345
|
"user.username_reminder": "user.username_reminder";
|
|
344
346
|
"user.username_reminder_by_admin": "user.username_reminder_by_admin";
|
|
345
347
|
}>;
|
|
@@ -5,6 +5,7 @@ export declare const TriggerEvent: {
|
|
|
5
5
|
readonly USERNAME_REMINDER: "username-reminder";
|
|
6
6
|
readonly RESET_PASSWORD: "reset-password";
|
|
7
7
|
readonly RESET_PASSWORD_BY_ADMIN: "reset-password-by-admin";
|
|
8
|
+
readonly RESEND_INVITE: "resend-invite";
|
|
8
9
|
readonly TWO_FA: "2fa";
|
|
9
10
|
readonly ALL_USER_NOTIFICATION: "all-user-notification";
|
|
10
11
|
readonly CHANGE_PHONE_NUMBER: "change-phone-number";
|
|
@@ -112,6 +113,20 @@ export declare const TriggerPayload: {
|
|
|
112
113
|
role: z.ZodString;
|
|
113
114
|
}, z.core.$strip>;
|
|
114
115
|
}, z.core.$strip>;
|
|
116
|
+
readonly "resend-invite": z.ZodObject<{
|
|
117
|
+
recipient: z.ZodObject<{
|
|
118
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
firstname: z.ZodString;
|
|
120
|
+
surname: z.ZodString;
|
|
121
|
+
middlename: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
mobile: z.ZodOptional<z.ZodString>;
|
|
124
|
+
email: z.ZodOptional<z.ZodString>;
|
|
125
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
username: z.ZodString;
|
|
128
|
+
temporaryPassword: z.ZodString;
|
|
129
|
+
}, z.core.$strip>;
|
|
115
130
|
readonly "2fa": z.ZodObject<{
|
|
116
131
|
recipient: z.ZodObject<{
|
|
117
132
|
name: z.ZodOptional<z.ZodObject<{
|
package/dist/events/index.js
CHANGED
|
@@ -938,6 +938,7 @@ var UserSubjectOnlyEntrySchema = AuditLogEntryBase.extend({
|
|
|
938
938
|
"user.password_changed",
|
|
939
939
|
"user.password_reset",
|
|
940
940
|
"user.password_reset_by_admin",
|
|
941
|
+
"user.resend_invite",
|
|
941
942
|
"user.username_reminder",
|
|
942
943
|
"user.username_reminder_by_admin"
|
|
943
944
|
]),
|
|
@@ -4574,7 +4575,16 @@ function aggregateActionDeclarations(event2) {
|
|
|
4574
4575
|
if (!requestAction) {
|
|
4575
4576
|
return declaration;
|
|
4576
4577
|
}
|
|
4577
|
-
|
|
4578
|
+
const declarationWithApprovedCorrection = getCompleteActionDeclaration(
|
|
4579
|
+
declaration,
|
|
4580
|
+
event2,
|
|
4581
|
+
requestAction
|
|
4582
|
+
);
|
|
4583
|
+
return getCompleteActionDeclaration(
|
|
4584
|
+
declarationWithApprovedCorrection,
|
|
4585
|
+
event2,
|
|
4586
|
+
action
|
|
4587
|
+
);
|
|
4578
4588
|
}
|
|
4579
4589
|
return getCompleteActionDeclaration(declaration, event2, action);
|
|
4580
4590
|
}, {});
|
|
@@ -10013,7 +10023,8 @@ function userDeserializer(serializedUserField, user2) {
|
|
|
10013
10023
|
`Deserializer for ${serializedUserField.$userField} is not implemented yet`
|
|
10014
10024
|
);
|
|
10015
10025
|
}
|
|
10016
|
-
|
|
10026
|
+
const value = user2[serializedUserField.$userField];
|
|
10027
|
+
return typeof value === "string" ? value : void 0;
|
|
10017
10028
|
}
|
|
10018
10029
|
function isDefined(value) {
|
|
10019
10030
|
return value !== void 0;
|
|
@@ -520,6 +520,7 @@ var UserSubjectOnlyEntrySchema = AuditLogEntryBase.extend({
|
|
|
520
520
|
"user.password_changed",
|
|
521
521
|
"user.password_reset",
|
|
522
522
|
"user.password_reset_by_admin",
|
|
523
|
+
"user.resend_invite",
|
|
523
524
|
"user.username_reminder",
|
|
524
525
|
"user.username_reminder_by_admin"
|
|
525
526
|
]),
|
|
@@ -6934,6 +6935,7 @@ var TriggerEvent = {
|
|
|
6934
6935
|
USERNAME_REMINDER: "username-reminder",
|
|
6935
6936
|
RESET_PASSWORD: "reset-password",
|
|
6936
6937
|
RESET_PASSWORD_BY_ADMIN: "reset-password-by-admin",
|
|
6938
|
+
RESEND_INVITE: "resend-invite",
|
|
6937
6939
|
TWO_FA: "2fa",
|
|
6938
6940
|
ALL_USER_NOTIFICATION: "all-user-notification",
|
|
6939
6941
|
CHANGE_PHONE_NUMBER: "change-phone-number",
|
|
@@ -6971,6 +6973,10 @@ var TriggerPayload = {
|
|
|
6971
6973
|
role: z44.string()
|
|
6972
6974
|
})
|
|
6973
6975
|
}),
|
|
6976
|
+
[TriggerEvent.RESEND_INVITE]: BasePayload.extend({
|
|
6977
|
+
username: z44.string(),
|
|
6978
|
+
temporaryPassword: z44.string()
|
|
6979
|
+
}),
|
|
6974
6980
|
[TriggerEvent.TWO_FA]: BasePayload.extend({
|
|
6975
6981
|
code: z44.string()
|
|
6976
6982
|
}),
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|