@opencrvs/toolkit 2.0.0-rc.2e74201 → 2.0.0-rc.2fc41ab
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.
|
@@ -2106,8 +2106,8 @@ var ApplicationConfig = z20.object({
|
|
|
2106
2106
|
})
|
|
2107
2107
|
),
|
|
2108
2108
|
PHONE_NUMBER_PATTERN: z20.string().or(z20.instanceof(RegExp)),
|
|
2109
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2110
|
-
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2109
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2110
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2111
2111
|
SEARCH_DEFAULT_CRITERIA: SearchCriteria.optional().default("TRACKING_ID"),
|
|
2112
2112
|
ADDITIONAL_USER_FIELDS: z20.array(FieldConfig).optional().default([])
|
|
2113
2113
|
});
|
|
@@ -2125,8 +2125,8 @@ var BackgroundConfig = z20.object({
|
|
|
2125
2125
|
var LoginConfig = z20.object({
|
|
2126
2126
|
COUNTRY: z20.string(),
|
|
2127
2127
|
LANGUAGES: z20.array(z20.string()),
|
|
2128
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2129
|
-
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.
|
|
2128
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2129
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
|
|
2130
2130
|
PHONE_NUMBER_PATTERN: z20.string().or(z20.instanceof(RegExp)),
|
|
2131
2131
|
LOGIN_BACKGROUND: BackgroundConfig,
|
|
2132
2132
|
SENTRY: z20.string().optional()
|
|
@@ -4275,10 +4275,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4275
4275
|
changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
|
|
4276
4276
|
input: {
|
|
4277
4277
|
userId: string;
|
|
4278
|
-
avatar:
|
|
4279
|
-
type: string;
|
|
4280
|
-
data: string;
|
|
4281
|
-
};
|
|
4278
|
+
avatar: string;
|
|
4282
4279
|
};
|
|
4283
4280
|
output: void;
|
|
4284
4281
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
@@ -4310,6 +4307,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4310
4307
|
output: void;
|
|
4311
4308
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4312
4309
|
}>;
|
|
4310
|
+
verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
4311
|
+
input: {
|
|
4312
|
+
password: string;
|
|
4313
|
+
};
|
|
4314
|
+
output: {
|
|
4315
|
+
status: string;
|
|
4316
|
+
username: string;
|
|
4317
|
+
id: string;
|
|
4318
|
+
mobile?: string | undefined;
|
|
4319
|
+
};
|
|
4320
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4321
|
+
}>;
|
|
4313
4322
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4314
4323
|
ctx: Partial<{
|
|
4315
4324
|
token: `Bearer ${string}`;
|
|
@@ -4765,7 +4774,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4765
4774
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4766
4775
|
type: "within";
|
|
4767
4776
|
location: string | {
|
|
4768
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4777
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4769
4778
|
$location?: string | undefined;
|
|
4770
4779
|
};
|
|
4771
4780
|
} | undefined;
|
|
@@ -4787,7 +4796,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4787
4796
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4788
4797
|
type: "within";
|
|
4789
4798
|
location: string | {
|
|
4790
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4799
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4791
4800
|
$location?: string | undefined;
|
|
4792
4801
|
};
|
|
4793
4802
|
} | undefined;
|
|
@@ -4802,47 +4811,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4802
4811
|
createdAtLocation?: {
|
|
4803
4812
|
type: "within";
|
|
4804
4813
|
location: string | {
|
|
4805
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4814
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4806
4815
|
$location?: string | undefined;
|
|
4807
4816
|
};
|
|
4808
4817
|
} | {
|
|
4809
4818
|
type: "exact";
|
|
4810
4819
|
term: string | {
|
|
4811
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4820
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4812
4821
|
$location?: string | undefined;
|
|
4813
4822
|
};
|
|
4814
4823
|
} | undefined;
|
|
4815
4824
|
updatedAtLocation?: {
|
|
4816
4825
|
type: "within";
|
|
4817
4826
|
location: string | {
|
|
4818
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4827
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4819
4828
|
$location?: string | undefined;
|
|
4820
4829
|
};
|
|
4821
4830
|
} | {
|
|
4822
4831
|
type: "exact";
|
|
4823
4832
|
term: string | {
|
|
4824
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4833
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4825
4834
|
$location?: string | undefined;
|
|
4826
4835
|
};
|
|
4827
4836
|
} | undefined;
|
|
4828
4837
|
updatedByUserRole?: {
|
|
4829
4838
|
type: "exact";
|
|
4830
4839
|
term: string | {
|
|
4831
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4840
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4832
4841
|
$location?: string | undefined;
|
|
4833
4842
|
};
|
|
4834
4843
|
} | undefined;
|
|
4835
4844
|
assignedTo?: {
|
|
4836
4845
|
type: "exact";
|
|
4837
4846
|
term: string | {
|
|
4838
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4847
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4839
4848
|
$location?: string | undefined;
|
|
4840
4849
|
};
|
|
4841
4850
|
} | undefined;
|
|
4842
4851
|
createdBy?: {
|
|
4843
4852
|
type: "exact";
|
|
4844
4853
|
term: string | {
|
|
4845
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4854
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4846
4855
|
$location?: string | undefined;
|
|
4847
4856
|
};
|
|
4848
4857
|
} | undefined;
|
|
@@ -4853,7 +4862,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4853
4862
|
updatedBy?: {
|
|
4854
4863
|
type: "exact";
|
|
4855
4864
|
term: string | {
|
|
4856
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4865
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4857
4866
|
$location?: string | undefined;
|
|
4858
4867
|
};
|
|
4859
4868
|
} | undefined;
|
|
@@ -4903,7 +4912,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4903
4912
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4904
4913
|
type: "within";
|
|
4905
4914
|
location: string | {
|
|
4906
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4915
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4907
4916
|
$location?: string | undefined;
|
|
4908
4917
|
};
|
|
4909
4918
|
} | undefined;
|
|
@@ -4925,7 +4934,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4925
4934
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4926
4935
|
type: "within";
|
|
4927
4936
|
location: string | {
|
|
4928
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4937
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4929
4938
|
$location?: string | undefined;
|
|
4930
4939
|
};
|
|
4931
4940
|
} | undefined;
|
|
@@ -4940,47 +4949,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4940
4949
|
createdAtLocation?: {
|
|
4941
4950
|
type: "within";
|
|
4942
4951
|
location: string | {
|
|
4943
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4952
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4944
4953
|
$location?: string | undefined;
|
|
4945
4954
|
};
|
|
4946
4955
|
} | {
|
|
4947
4956
|
type: "exact";
|
|
4948
4957
|
term: string | {
|
|
4949
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4958
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4950
4959
|
$location?: string | undefined;
|
|
4951
4960
|
};
|
|
4952
4961
|
} | undefined;
|
|
4953
4962
|
updatedAtLocation?: {
|
|
4954
4963
|
type: "within";
|
|
4955
4964
|
location: string | {
|
|
4956
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4965
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4957
4966
|
$location?: string | undefined;
|
|
4958
4967
|
};
|
|
4959
4968
|
} | {
|
|
4960
4969
|
type: "exact";
|
|
4961
4970
|
term: string | {
|
|
4962
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4971
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4963
4972
|
$location?: string | undefined;
|
|
4964
4973
|
};
|
|
4965
4974
|
} | undefined;
|
|
4966
4975
|
updatedByUserRole?: {
|
|
4967
4976
|
type: "exact";
|
|
4968
4977
|
term: string | {
|
|
4969
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4978
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4970
4979
|
$location?: string | undefined;
|
|
4971
4980
|
};
|
|
4972
4981
|
} | undefined;
|
|
4973
4982
|
assignedTo?: {
|
|
4974
4983
|
type: "exact";
|
|
4975
4984
|
term: string | {
|
|
4976
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4985
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4977
4986
|
$location?: string | undefined;
|
|
4978
4987
|
};
|
|
4979
4988
|
} | undefined;
|
|
4980
4989
|
createdBy?: {
|
|
4981
4990
|
type: "exact";
|
|
4982
4991
|
term: string | {
|
|
4983
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4992
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4984
4993
|
$location?: string | undefined;
|
|
4985
4994
|
};
|
|
4986
4995
|
} | undefined;
|
|
@@ -4991,7 +5000,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4991
5000
|
updatedBy?: {
|
|
4992
5001
|
type: "exact";
|
|
4993
5002
|
term: string | {
|
|
4994
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5003
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4995
5004
|
$location?: string | undefined;
|
|
4996
5005
|
};
|
|
4997
5006
|
} | 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>;
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|