@opencrvs/toolkit 2.0.0-rc.f246887 → 2.0.0-rc.f3bc98a
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()
|
|
@@ -4307,6 +4307,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4307
4307
|
output: void;
|
|
4308
4308
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4309
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
|
+
}>;
|
|
4310
4322
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4311
4323
|
ctx: Partial<{
|
|
4312
4324
|
token: `Bearer ${string}`;
|
|
@@ -4762,7 +4774,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4762
4774
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4763
4775
|
type: "within";
|
|
4764
4776
|
location: string | {
|
|
4765
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4777
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4766
4778
|
$location?: string | undefined;
|
|
4767
4779
|
};
|
|
4768
4780
|
} | undefined;
|
|
@@ -4784,7 +4796,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4784
4796
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4785
4797
|
type: "within";
|
|
4786
4798
|
location: string | {
|
|
4787
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4799
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4788
4800
|
$location?: string | undefined;
|
|
4789
4801
|
};
|
|
4790
4802
|
} | undefined;
|
|
@@ -4799,47 +4811,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4799
4811
|
createdAtLocation?: {
|
|
4800
4812
|
type: "within";
|
|
4801
4813
|
location: string | {
|
|
4802
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4814
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4803
4815
|
$location?: string | undefined;
|
|
4804
4816
|
};
|
|
4805
4817
|
} | {
|
|
4806
4818
|
type: "exact";
|
|
4807
4819
|
term: string | {
|
|
4808
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4820
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4809
4821
|
$location?: string | undefined;
|
|
4810
4822
|
};
|
|
4811
4823
|
} | undefined;
|
|
4812
4824
|
updatedAtLocation?: {
|
|
4813
4825
|
type: "within";
|
|
4814
4826
|
location: string | {
|
|
4815
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4827
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4816
4828
|
$location?: string | undefined;
|
|
4817
4829
|
};
|
|
4818
4830
|
} | {
|
|
4819
4831
|
type: "exact";
|
|
4820
4832
|
term: string | {
|
|
4821
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4833
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4822
4834
|
$location?: string | undefined;
|
|
4823
4835
|
};
|
|
4824
4836
|
} | undefined;
|
|
4825
4837
|
updatedByUserRole?: {
|
|
4826
4838
|
type: "exact";
|
|
4827
4839
|
term: string | {
|
|
4828
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4840
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4829
4841
|
$location?: string | undefined;
|
|
4830
4842
|
};
|
|
4831
4843
|
} | undefined;
|
|
4832
4844
|
assignedTo?: {
|
|
4833
4845
|
type: "exact";
|
|
4834
4846
|
term: string | {
|
|
4835
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4847
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4836
4848
|
$location?: string | undefined;
|
|
4837
4849
|
};
|
|
4838
4850
|
} | undefined;
|
|
4839
4851
|
createdBy?: {
|
|
4840
4852
|
type: "exact";
|
|
4841
4853
|
term: string | {
|
|
4842
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4854
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4843
4855
|
$location?: string | undefined;
|
|
4844
4856
|
};
|
|
4845
4857
|
} | undefined;
|
|
@@ -4850,7 +4862,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4850
4862
|
updatedBy?: {
|
|
4851
4863
|
type: "exact";
|
|
4852
4864
|
term: string | {
|
|
4853
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4865
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4854
4866
|
$location?: string | undefined;
|
|
4855
4867
|
};
|
|
4856
4868
|
} | undefined;
|
|
@@ -4900,7 +4912,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4900
4912
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4901
4913
|
type: "within";
|
|
4902
4914
|
location: string | {
|
|
4903
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4915
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4904
4916
|
$location?: string | undefined;
|
|
4905
4917
|
};
|
|
4906
4918
|
} | undefined;
|
|
@@ -4922,7 +4934,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4922
4934
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4923
4935
|
type: "within";
|
|
4924
4936
|
location: string | {
|
|
4925
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4937
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4926
4938
|
$location?: string | undefined;
|
|
4927
4939
|
};
|
|
4928
4940
|
} | undefined;
|
|
@@ -4937,47 +4949,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4937
4949
|
createdAtLocation?: {
|
|
4938
4950
|
type: "within";
|
|
4939
4951
|
location: string | {
|
|
4940
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4952
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4941
4953
|
$location?: string | undefined;
|
|
4942
4954
|
};
|
|
4943
4955
|
} | {
|
|
4944
4956
|
type: "exact";
|
|
4945
4957
|
term: string | {
|
|
4946
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4958
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4947
4959
|
$location?: string | undefined;
|
|
4948
4960
|
};
|
|
4949
4961
|
} | undefined;
|
|
4950
4962
|
updatedAtLocation?: {
|
|
4951
4963
|
type: "within";
|
|
4952
4964
|
location: string | {
|
|
4953
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4965
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4954
4966
|
$location?: string | undefined;
|
|
4955
4967
|
};
|
|
4956
4968
|
} | {
|
|
4957
4969
|
type: "exact";
|
|
4958
4970
|
term: string | {
|
|
4959
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4971
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4960
4972
|
$location?: string | undefined;
|
|
4961
4973
|
};
|
|
4962
4974
|
} | undefined;
|
|
4963
4975
|
updatedByUserRole?: {
|
|
4964
4976
|
type: "exact";
|
|
4965
4977
|
term: string | {
|
|
4966
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4978
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4967
4979
|
$location?: string | undefined;
|
|
4968
4980
|
};
|
|
4969
4981
|
} | undefined;
|
|
4970
4982
|
assignedTo?: {
|
|
4971
4983
|
type: "exact";
|
|
4972
4984
|
term: string | {
|
|
4973
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4985
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4974
4986
|
$location?: string | undefined;
|
|
4975
4987
|
};
|
|
4976
4988
|
} | undefined;
|
|
4977
4989
|
createdBy?: {
|
|
4978
4990
|
type: "exact";
|
|
4979
4991
|
term: string | {
|
|
4980
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4992
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4981
4993
|
$location?: string | undefined;
|
|
4982
4994
|
};
|
|
4983
4995
|
} | undefined;
|
|
@@ -4988,7 +5000,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4988
5000
|
updatedBy?: {
|
|
4989
5001
|
type: "exact";
|
|
4990
5002
|
term: string | {
|
|
4991
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5003
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4992
5004
|
$location?: string | undefined;
|
|
4993
5005
|
};
|
|
4994
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
|