@opencrvs/toolkit 2.0.0-rc.22faee8 → 2.0.0-rc.2314a75
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 +4 -4
- package/dist/commons/api/router.d.ts +62 -57
- package/dist/commons/application-config/index.d.ts +16 -4
- package/dist/commons/events/AuditLog.d.ts +2 -0
- package/dist/commons/notification/UserNotifications.d.ts +15 -0
- package/dist/events/index.js +1 -0
- package/dist/notification/index.js +6 -0
- package/opencrvs-toolkit-2.0.0-rc.2314a75.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.22faee8.tgz +0 -0
|
@@ -2078,8 +2078,8 @@ var ApplicationConfig = z20.object({
|
|
|
2078
2078
|
})
|
|
2079
2079
|
),
|
|
2080
2080
|
PHONE_NUMBER_PATTERN: z20.string().or(z20.instanceof(RegExp)),
|
|
2081
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2082
|
-
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2081
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2082
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2083
2083
|
SEARCH_DEFAULT_CRITERIA: SearchCriteria.optional().default("TRACKING_ID"),
|
|
2084
2084
|
ADDITIONAL_USER_FIELDS: z20.array(FieldConfig).optional().default([])
|
|
2085
2085
|
});
|
|
@@ -2097,8 +2097,8 @@ var BackgroundConfig = z20.object({
|
|
|
2097
2097
|
var LoginConfig = z20.object({
|
|
2098
2098
|
COUNTRY: z20.string(),
|
|
2099
2099
|
LANGUAGES: z20.array(z20.string()),
|
|
2100
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2101
|
-
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2100
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2101
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2102
2102
|
PHONE_NUMBER_PATTERN: z20.string().or(z20.instanceof(RegExp)),
|
|
2103
2103
|
LOGIN_BACKGROUND: BackgroundConfig,
|
|
2104
2104
|
SENTRY: z20.string().optional()
|
|
@@ -2,7 +2,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2
2
|
ctx: Partial<{
|
|
3
3
|
token: `Bearer ${string}`;
|
|
4
4
|
user: {
|
|
5
|
-
id: string
|
|
5
|
+
id: string & import("zod").$brand<"UUID">;
|
|
6
6
|
type: "system";
|
|
7
7
|
signature?: undefined;
|
|
8
8
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -24,7 +24,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
24
24
|
ctx: Partial<{
|
|
25
25
|
token: `Bearer ${string}`;
|
|
26
26
|
user: {
|
|
27
|
-
id: string
|
|
27
|
+
id: string & import("zod").$brand<"UUID">;
|
|
28
28
|
type: "system";
|
|
29
29
|
signature?: undefined;
|
|
30
30
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -46,7 +46,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
46
46
|
ctx: Partial<{
|
|
47
47
|
token: `Bearer ${string}`;
|
|
48
48
|
user: {
|
|
49
|
-
id: string
|
|
49
|
+
id: string & import("zod").$brand<"UUID">;
|
|
50
50
|
type: "system";
|
|
51
51
|
signature?: undefined;
|
|
52
52
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -92,7 +92,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
92
92
|
ctx: Partial<{
|
|
93
93
|
token: `Bearer ${string}`;
|
|
94
94
|
user: {
|
|
95
|
-
id: string
|
|
95
|
+
id: string & import("zod").$brand<"UUID">;
|
|
96
96
|
type: "system";
|
|
97
97
|
signature?: undefined;
|
|
98
98
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1054,7 +1054,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1054
1054
|
ctx: Partial<{
|
|
1055
1055
|
token: `Bearer ${string}`;
|
|
1056
1056
|
user: {
|
|
1057
|
-
id: string
|
|
1057
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1058
1058
|
type: "system";
|
|
1059
1059
|
signature?: undefined;
|
|
1060
1060
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1133,7 +1133,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1133
1133
|
ctx: Partial<{
|
|
1134
1134
|
token: `Bearer ${string}`;
|
|
1135
1135
|
user: {
|
|
1136
|
-
id: string
|
|
1136
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1137
1137
|
type: "system";
|
|
1138
1138
|
signature?: undefined;
|
|
1139
1139
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1155,7 +1155,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1155
1155
|
ctx: Partial<{
|
|
1156
1156
|
token: `Bearer ${string}`;
|
|
1157
1157
|
user: {
|
|
1158
|
-
id: string
|
|
1158
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1159
1159
|
type: "system";
|
|
1160
1160
|
signature?: undefined;
|
|
1161
1161
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1199,7 +1199,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1199
1199
|
ctx: Partial<{
|
|
1200
1200
|
token: `Bearer ${string}`;
|
|
1201
1201
|
user: {
|
|
1202
|
-
id: string
|
|
1202
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1203
1203
|
type: "system";
|
|
1204
1204
|
signature?: undefined;
|
|
1205
1205
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1552,7 +1552,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1552
1552
|
ctx: Partial<{
|
|
1553
1553
|
token: `Bearer ${string}`;
|
|
1554
1554
|
user: {
|
|
1555
|
-
id: string
|
|
1555
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1556
1556
|
type: "system";
|
|
1557
1557
|
signature?: undefined;
|
|
1558
1558
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1596,7 +1596,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1596
1596
|
ctx: Partial<{
|
|
1597
1597
|
token: `Bearer ${string}`;
|
|
1598
1598
|
user: {
|
|
1599
|
-
id: string
|
|
1599
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1600
1600
|
type: "system";
|
|
1601
1601
|
signature?: undefined;
|
|
1602
1602
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1640,7 +1640,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1640
1640
|
ctx: Partial<{
|
|
1641
1641
|
token: `Bearer ${string}`;
|
|
1642
1642
|
user: {
|
|
1643
|
-
id: string
|
|
1643
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1644
1644
|
type: "system";
|
|
1645
1645
|
signature?: undefined;
|
|
1646
1646
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1684,7 +1684,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1684
1684
|
ctx: Partial<{
|
|
1685
1685
|
token: `Bearer ${string}`;
|
|
1686
1686
|
user: {
|
|
1687
|
-
id: string
|
|
1687
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1688
1688
|
type: "system";
|
|
1689
1689
|
signature?: undefined;
|
|
1690
1690
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1728,7 +1728,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1728
1728
|
ctx: Partial<{
|
|
1729
1729
|
token: `Bearer ${string}`;
|
|
1730
1730
|
user: {
|
|
1731
|
-
id: string
|
|
1731
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1732
1732
|
type: "system";
|
|
1733
1733
|
signature?: undefined;
|
|
1734
1734
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -1772,7 +1772,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1772
1772
|
ctx: Partial<{
|
|
1773
1773
|
token: `Bearer ${string}`;
|
|
1774
1774
|
user: {
|
|
1775
|
-
id: string
|
|
1775
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1776
1776
|
type: "system";
|
|
1777
1777
|
signature?: undefined;
|
|
1778
1778
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -2126,7 +2126,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2126
2126
|
ctx: Partial<{
|
|
2127
2127
|
token: `Bearer ${string}`;
|
|
2128
2128
|
user: {
|
|
2129
|
-
id: string
|
|
2129
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2130
2130
|
type: "system";
|
|
2131
2131
|
signature?: undefined;
|
|
2132
2132
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -2779,7 +2779,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2779
2779
|
ctx: Partial<{
|
|
2780
2780
|
token: `Bearer ${string}`;
|
|
2781
2781
|
user: {
|
|
2782
|
-
id: string
|
|
2782
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2783
2783
|
type: "system";
|
|
2784
2784
|
signature?: undefined;
|
|
2785
2785
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -2801,7 +2801,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2801
2801
|
ctx: Partial<{
|
|
2802
2802
|
token: `Bearer ${string}`;
|
|
2803
2803
|
user: {
|
|
2804
|
-
id: string
|
|
2804
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2805
2805
|
type: "system";
|
|
2806
2806
|
signature?: undefined;
|
|
2807
2807
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -2845,7 +2845,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2845
2845
|
ctx: Partial<{
|
|
2846
2846
|
token: `Bearer ${string}`;
|
|
2847
2847
|
user: {
|
|
2848
|
-
id: string
|
|
2848
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2849
2849
|
type: "system";
|
|
2850
2850
|
signature?: undefined;
|
|
2851
2851
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -2889,7 +2889,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2889
2889
|
ctx: Partial<{
|
|
2890
2890
|
token: `Bearer ${string}`;
|
|
2891
2891
|
user: {
|
|
2892
|
-
id: string
|
|
2892
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2893
2893
|
type: "system";
|
|
2894
2894
|
signature?: undefined;
|
|
2895
2895
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -2934,7 +2934,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2934
2934
|
ctx: Partial<{
|
|
2935
2935
|
token: `Bearer ${string}`;
|
|
2936
2936
|
user: {
|
|
2937
|
-
id: string
|
|
2937
|
+
id: string & import("zod").$brand<"UUID">;
|
|
2938
2938
|
type: "system";
|
|
2939
2939
|
signature?: undefined;
|
|
2940
2940
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -3952,7 +3952,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3952
3952
|
ctx: Partial<{
|
|
3953
3953
|
token: `Bearer ${string}`;
|
|
3954
3954
|
user: {
|
|
3955
|
-
id: string
|
|
3955
|
+
id: string & import("zod").$brand<"UUID">;
|
|
3956
3956
|
type: "system";
|
|
3957
3957
|
signature?: undefined;
|
|
3958
3958
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -3992,7 +3992,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3992
3992
|
email?: string | undefined;
|
|
3993
3993
|
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
3994
3994
|
} | {
|
|
3995
|
-
id: string
|
|
3995
|
+
id: string & import("zod").$brand<"UUID">;
|
|
3996
3996
|
name: string;
|
|
3997
3997
|
type: "system";
|
|
3998
3998
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4116,7 +4116,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4116
4116
|
email?: string | undefined;
|
|
4117
4117
|
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4118
4118
|
} | {
|
|
4119
|
-
id: string
|
|
4119
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4120
4120
|
name: string;
|
|
4121
4121
|
type: "system";
|
|
4122
4122
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4161,7 +4161,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4161
4161
|
email?: string | undefined;
|
|
4162
4162
|
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4163
4163
|
} | {
|
|
4164
|
-
id: string
|
|
4164
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4165
4165
|
name: string;
|
|
4166
4166
|
type: "system";
|
|
4167
4167
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4216,7 +4216,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4216
4216
|
ctx: Partial<{
|
|
4217
4217
|
token: `Bearer ${string}`;
|
|
4218
4218
|
user: {
|
|
4219
|
-
id: string
|
|
4219
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4220
4220
|
type: "system";
|
|
4221
4221
|
signature?: undefined;
|
|
4222
4222
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4291,6 +4291,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4291
4291
|
output: void;
|
|
4292
4292
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4293
4293
|
}>;
|
|
4294
|
+
resendInvite: import("@trpc/server").TRPCMutationProcedure<{
|
|
4295
|
+
input: string;
|
|
4296
|
+
output: void;
|
|
4297
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4298
|
+
}>;
|
|
4294
4299
|
activate: import("@trpc/server").TRPCMutationProcedure<{
|
|
4295
4300
|
input: {
|
|
4296
4301
|
userId: string;
|
|
@@ -4317,7 +4322,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4317
4322
|
ctx: Partial<{
|
|
4318
4323
|
token: `Bearer ${string}`;
|
|
4319
4324
|
user: {
|
|
4320
|
-
id: string
|
|
4325
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4321
4326
|
type: "system";
|
|
4322
4327
|
signature?: undefined;
|
|
4323
4328
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4351,7 +4356,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4351
4356
|
comment?: string | undefined;
|
|
4352
4357
|
};
|
|
4353
4358
|
} | {
|
|
4354
|
-
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";
|
|
4355
4360
|
requestData: {
|
|
4356
4361
|
subjectId: string;
|
|
4357
4362
|
};
|
|
@@ -4571,7 +4576,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4571
4576
|
clientId: string;
|
|
4572
4577
|
clientType: "system" | "user";
|
|
4573
4578
|
createdAt: string;
|
|
4574
|
-
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";
|
|
4575
4580
|
requestData: {
|
|
4576
4581
|
subjectId: string;
|
|
4577
4582
|
};
|
|
@@ -4610,7 +4615,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4610
4615
|
ctx: Partial<{
|
|
4611
4616
|
token: `Bearer ${string}`;
|
|
4612
4617
|
user: {
|
|
4613
|
-
id: string
|
|
4618
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4614
4619
|
type: "system";
|
|
4615
4620
|
signature?: undefined;
|
|
4616
4621
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4683,7 +4688,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4683
4688
|
ctx: Partial<{
|
|
4684
4689
|
token: `Bearer ${string}`;
|
|
4685
4690
|
user: {
|
|
4686
|
-
id: string
|
|
4691
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4687
4692
|
type: "system";
|
|
4688
4693
|
signature?: undefined;
|
|
4689
4694
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4705,7 +4710,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4705
4710
|
ctx: Partial<{
|
|
4706
4711
|
token: `Bearer ${string}`;
|
|
4707
4712
|
user: {
|
|
4708
|
-
id: string
|
|
4713
|
+
id: string & import("zod").$brand<"UUID">;
|
|
4709
4714
|
type: "system";
|
|
4710
4715
|
signature?: undefined;
|
|
4711
4716
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -4768,7 +4773,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4768
4773
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4769
4774
|
type: "within";
|
|
4770
4775
|
location: string | {
|
|
4771
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4776
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4772
4777
|
$location?: string | undefined;
|
|
4773
4778
|
};
|
|
4774
4779
|
} | undefined;
|
|
@@ -4790,7 +4795,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4790
4795
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4791
4796
|
type: "within";
|
|
4792
4797
|
location: string | {
|
|
4793
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4798
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4794
4799
|
$location?: string | undefined;
|
|
4795
4800
|
};
|
|
4796
4801
|
} | undefined;
|
|
@@ -4805,47 +4810,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4805
4810
|
createdAtLocation?: {
|
|
4806
4811
|
type: "within";
|
|
4807
4812
|
location: string | {
|
|
4808
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4813
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4809
4814
|
$location?: string | undefined;
|
|
4810
4815
|
};
|
|
4811
4816
|
} | {
|
|
4812
4817
|
type: "exact";
|
|
4813
4818
|
term: string | {
|
|
4814
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4819
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4815
4820
|
$location?: string | undefined;
|
|
4816
4821
|
};
|
|
4817
4822
|
} | undefined;
|
|
4818
4823
|
updatedAtLocation?: {
|
|
4819
4824
|
type: "within";
|
|
4820
4825
|
location: string | {
|
|
4821
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4826
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4822
4827
|
$location?: string | undefined;
|
|
4823
4828
|
};
|
|
4824
4829
|
} | {
|
|
4825
4830
|
type: "exact";
|
|
4826
4831
|
term: string | {
|
|
4827
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4832
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4828
4833
|
$location?: string | undefined;
|
|
4829
4834
|
};
|
|
4830
4835
|
} | undefined;
|
|
4831
4836
|
updatedByUserRole?: {
|
|
4832
4837
|
type: "exact";
|
|
4833
4838
|
term: string | {
|
|
4834
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4839
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4835
4840
|
$location?: string | undefined;
|
|
4836
4841
|
};
|
|
4837
4842
|
} | undefined;
|
|
4838
4843
|
assignedTo?: {
|
|
4839
4844
|
type: "exact";
|
|
4840
4845
|
term: string | {
|
|
4841
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4846
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4842
4847
|
$location?: string | undefined;
|
|
4843
4848
|
};
|
|
4844
4849
|
} | undefined;
|
|
4845
4850
|
createdBy?: {
|
|
4846
4851
|
type: "exact";
|
|
4847
4852
|
term: string | {
|
|
4848
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4853
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4849
4854
|
$location?: string | undefined;
|
|
4850
4855
|
};
|
|
4851
4856
|
} | undefined;
|
|
@@ -4856,7 +4861,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4856
4861
|
updatedBy?: {
|
|
4857
4862
|
type: "exact";
|
|
4858
4863
|
term: string | {
|
|
4859
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4864
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4860
4865
|
$location?: string | undefined;
|
|
4861
4866
|
};
|
|
4862
4867
|
} | undefined;
|
|
@@ -4906,7 +4911,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4906
4911
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4907
4912
|
type: "within";
|
|
4908
4913
|
location: string | {
|
|
4909
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4914
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4910
4915
|
$location?: string | undefined;
|
|
4911
4916
|
};
|
|
4912
4917
|
} | undefined;
|
|
@@ -4928,7 +4933,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4928
4933
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4929
4934
|
type: "within";
|
|
4930
4935
|
location: string | {
|
|
4931
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4936
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4932
4937
|
$location?: string | undefined;
|
|
4933
4938
|
};
|
|
4934
4939
|
} | undefined;
|
|
@@ -4943,47 +4948,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4943
4948
|
createdAtLocation?: {
|
|
4944
4949
|
type: "within";
|
|
4945
4950
|
location: string | {
|
|
4946
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4951
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4947
4952
|
$location?: string | undefined;
|
|
4948
4953
|
};
|
|
4949
4954
|
} | {
|
|
4950
4955
|
type: "exact";
|
|
4951
4956
|
term: string | {
|
|
4952
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4957
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4953
4958
|
$location?: string | undefined;
|
|
4954
4959
|
};
|
|
4955
4960
|
} | undefined;
|
|
4956
4961
|
updatedAtLocation?: {
|
|
4957
4962
|
type: "within";
|
|
4958
4963
|
location: string | {
|
|
4959
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4964
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4960
4965
|
$location?: string | undefined;
|
|
4961
4966
|
};
|
|
4962
4967
|
} | {
|
|
4963
4968
|
type: "exact";
|
|
4964
4969
|
term: string | {
|
|
4965
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4970
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4966
4971
|
$location?: string | undefined;
|
|
4967
4972
|
};
|
|
4968
4973
|
} | undefined;
|
|
4969
4974
|
updatedByUserRole?: {
|
|
4970
4975
|
type: "exact";
|
|
4971
4976
|
term: string | {
|
|
4972
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4977
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4973
4978
|
$location?: string | undefined;
|
|
4974
4979
|
};
|
|
4975
4980
|
} | undefined;
|
|
4976
4981
|
assignedTo?: {
|
|
4977
4982
|
type: "exact";
|
|
4978
4983
|
term: string | {
|
|
4979
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4984
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4980
4985
|
$location?: string | undefined;
|
|
4981
4986
|
};
|
|
4982
4987
|
} | undefined;
|
|
4983
4988
|
createdBy?: {
|
|
4984
4989
|
type: "exact";
|
|
4985
4990
|
term: string | {
|
|
4986
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4991
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4987
4992
|
$location?: string | undefined;
|
|
4988
4993
|
};
|
|
4989
4994
|
} | undefined;
|
|
@@ -4994,7 +4999,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4994
4999
|
updatedBy?: {
|
|
4995
5000
|
type: "exact";
|
|
4996
5001
|
term: string | {
|
|
4997
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5002
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4998
5003
|
$location?: string | undefined;
|
|
4999
5004
|
};
|
|
5000
5005
|
} | undefined;
|
|
@@ -5045,7 +5050,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5045
5050
|
ctx: Partial<{
|
|
5046
5051
|
token: `Bearer ${string}`;
|
|
5047
5052
|
user: {
|
|
5048
|
-
id: string
|
|
5053
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5049
5054
|
type: "system";
|
|
5050
5055
|
signature?: undefined;
|
|
5051
5056
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -5093,7 +5098,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5093
5098
|
ctx: Partial<{
|
|
5094
5099
|
token: `Bearer ${string}`;
|
|
5095
5100
|
user: {
|
|
5096
|
-
id: string
|
|
5101
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5097
5102
|
type: "system";
|
|
5098
5103
|
signature?: undefined;
|
|
5099
5104
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -5145,7 +5150,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5145
5150
|
scopes: string[];
|
|
5146
5151
|
status: string;
|
|
5147
5152
|
createdAt: string;
|
|
5148
|
-
createdBy: string
|
|
5153
|
+
createdBy: string & import("zod").$brand<"UUID">;
|
|
5149
5154
|
}[];
|
|
5150
5155
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
5151
5156
|
}>;
|
|
@@ -5160,7 +5165,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5160
5165
|
status: string;
|
|
5161
5166
|
shaSecret: string | null;
|
|
5162
5167
|
createdAt: string;
|
|
5163
|
-
createdBy: string
|
|
5168
|
+
createdBy: string & import("zod").$brand<"UUID">;
|
|
5164
5169
|
};
|
|
5165
5170
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
5166
5171
|
}>;
|
|
@@ -5211,7 +5216,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5211
5216
|
ctx: Partial<{
|
|
5212
5217
|
token: `Bearer ${string}`;
|
|
5213
5218
|
user: {
|
|
5214
|
-
id: string
|
|
5219
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5215
5220
|
type: "system";
|
|
5216
5221
|
signature?: undefined;
|
|
5217
5222
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -5246,7 +5251,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5246
5251
|
ctx: Partial<{
|
|
5247
5252
|
token: `Bearer ${string}`;
|
|
5248
5253
|
user: {
|
|
5249
|
-
id: string
|
|
5254
|
+
id: string & import("zod").$brand<"UUID">;
|
|
5250
5255
|
type: "system";
|
|
5251
5256
|
signature?: undefined;
|
|
5252
5257
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
@@ -24,8 +24,14 @@ export declare const ApplicationConfig: z.ZodObject<{
|
|
|
24
24
|
label: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
|
|
27
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z.
|
|
28
|
-
|
|
27
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
28
|
+
email: "email";
|
|
29
|
+
sms: "sms";
|
|
30
|
+
}>;
|
|
31
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
32
|
+
email: "email";
|
|
33
|
+
sms: "sms";
|
|
34
|
+
}>;
|
|
29
35
|
SEARCH_DEFAULT_CRITERIA: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30
36
|
NAME: "NAME";
|
|
31
37
|
EMAIL: "EMAIL";
|
|
@@ -46,8 +52,14 @@ export declare const BackgroundConfig: z.ZodObject<{
|
|
|
46
52
|
export declare const LoginConfig: z.ZodObject<{
|
|
47
53
|
COUNTRY: z.ZodString;
|
|
48
54
|
LANGUAGES: z.ZodArray<z.ZodString>;
|
|
49
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z.
|
|
50
|
-
|
|
55
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
56
|
+
email: "email";
|
|
57
|
+
sms: "sms";
|
|
58
|
+
}>;
|
|
59
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
60
|
+
email: "email";
|
|
61
|
+
sms: "sms";
|
|
62
|
+
}>;
|
|
51
63
|
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
|
|
52
64
|
LOGIN_BACKGROUND: z.ZodObject<{
|
|
53
65
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
@@ -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
|
@@ -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
|