@opencrvs/toolkit 2.0.0-rc.b4856ad → 2.0.0-rc.bb52508
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.
|
@@ -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()
|
|
@@ -3975,9 +3975,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3975
3975
|
output: {
|
|
3976
3976
|
id: string & import("zod").$brand<"UUID">;
|
|
3977
3977
|
name: {
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3978
|
+
use: string;
|
|
3979
|
+
given: string[];
|
|
3980
|
+
family: string;
|
|
3981
|
+
}[];
|
|
3981
3982
|
role: string;
|
|
3982
3983
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
3983
3984
|
type: "user";
|
|
@@ -4007,9 +4008,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4007
4008
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4008
4009
|
input: {
|
|
4009
4010
|
name: {
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4011
|
+
use: string;
|
|
4012
|
+
given: string[];
|
|
4013
|
+
family: string;
|
|
4014
|
+
}[];
|
|
4013
4015
|
role: string;
|
|
4014
4016
|
primaryOfficeId: string;
|
|
4015
4017
|
data?: Record<string, unknown> | undefined;
|
|
@@ -4018,6 +4020,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4018
4020
|
email?: string | undefined;
|
|
4019
4021
|
mobile?: string | undefined;
|
|
4020
4022
|
username?: undefined;
|
|
4023
|
+
password?: undefined;
|
|
4021
4024
|
signature?: {
|
|
4022
4025
|
path: string;
|
|
4023
4026
|
originalFilename: string;
|
|
@@ -4027,9 +4030,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4027
4030
|
output: {
|
|
4028
4031
|
id: string & import("zod").$brand<"UUID">;
|
|
4029
4032
|
name: {
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
+
use: string;
|
|
4034
|
+
given: string[];
|
|
4035
|
+
family: string;
|
|
4036
|
+
}[];
|
|
4033
4037
|
role: string;
|
|
4034
4038
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4035
4039
|
type: "user";
|
|
@@ -4050,9 +4054,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4050
4054
|
id: string;
|
|
4051
4055
|
data?: Record<string, unknown> | undefined;
|
|
4052
4056
|
name?: {
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4057
|
+
use: string;
|
|
4058
|
+
given: string[];
|
|
4059
|
+
family: string;
|
|
4060
|
+
}[] | undefined;
|
|
4056
4061
|
role?: string | undefined;
|
|
4057
4062
|
fullHonorificName?: string | undefined;
|
|
4058
4063
|
device?: string | undefined;
|
|
@@ -4065,15 +4070,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4065
4070
|
type: string;
|
|
4066
4071
|
} | undefined;
|
|
4067
4072
|
status?: "active" | "deactivated" | undefined;
|
|
4068
|
-
} & {
|
|
4069
|
-
id: string;
|
|
4070
4073
|
};
|
|
4071
4074
|
output: {
|
|
4072
4075
|
id: string & import("zod").$brand<"UUID">;
|
|
4073
4076
|
name: {
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
+
use: string;
|
|
4078
|
+
given: string[];
|
|
4079
|
+
family: string;
|
|
4080
|
+
}[];
|
|
4077
4081
|
role: string;
|
|
4078
4082
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4079
4083
|
type: "user";
|
|
@@ -4094,9 +4098,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4094
4098
|
output: ({
|
|
4095
4099
|
id: string & import("zod").$brand<"UUID">;
|
|
4096
4100
|
name: {
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4101
|
+
use: string;
|
|
4102
|
+
given: string[];
|
|
4103
|
+
family: string;
|
|
4104
|
+
}[];
|
|
4100
4105
|
role: string;
|
|
4101
4106
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4102
4107
|
type: "user";
|
|
@@ -4138,9 +4143,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4138
4143
|
output: ({
|
|
4139
4144
|
id: string & import("zod").$brand<"UUID">;
|
|
4140
4145
|
name: {
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4146
|
+
use: string;
|
|
4147
|
+
given: string[];
|
|
4148
|
+
family: string;
|
|
4149
|
+
}[];
|
|
4144
4150
|
role: string;
|
|
4145
4151
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4146
4152
|
type: "user";
|
|
@@ -4766,7 +4772,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4766
4772
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4767
4773
|
type: "within";
|
|
4768
4774
|
location: string | {
|
|
4769
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4775
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4770
4776
|
$location?: string | undefined;
|
|
4771
4777
|
};
|
|
4772
4778
|
} | undefined;
|
|
@@ -4788,7 +4794,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4788
4794
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4789
4795
|
type: "within";
|
|
4790
4796
|
location: string | {
|
|
4791
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4797
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4792
4798
|
$location?: string | undefined;
|
|
4793
4799
|
};
|
|
4794
4800
|
} | undefined;
|
|
@@ -4803,47 +4809,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4803
4809
|
createdAtLocation?: {
|
|
4804
4810
|
type: "within";
|
|
4805
4811
|
location: string | {
|
|
4806
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4812
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4807
4813
|
$location?: string | undefined;
|
|
4808
4814
|
};
|
|
4809
4815
|
} | {
|
|
4810
4816
|
type: "exact";
|
|
4811
4817
|
term: string | {
|
|
4812
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4818
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4813
4819
|
$location?: string | undefined;
|
|
4814
4820
|
};
|
|
4815
4821
|
} | undefined;
|
|
4816
4822
|
updatedAtLocation?: {
|
|
4817
4823
|
type: "within";
|
|
4818
4824
|
location: string | {
|
|
4819
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4825
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4820
4826
|
$location?: string | undefined;
|
|
4821
4827
|
};
|
|
4822
4828
|
} | {
|
|
4823
4829
|
type: "exact";
|
|
4824
4830
|
term: string | {
|
|
4825
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4831
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4826
4832
|
$location?: string | undefined;
|
|
4827
4833
|
};
|
|
4828
4834
|
} | undefined;
|
|
4829
4835
|
updatedByUserRole?: {
|
|
4830
4836
|
type: "exact";
|
|
4831
4837
|
term: string | {
|
|
4832
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4838
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4833
4839
|
$location?: string | undefined;
|
|
4834
4840
|
};
|
|
4835
4841
|
} | undefined;
|
|
4836
4842
|
assignedTo?: {
|
|
4837
4843
|
type: "exact";
|
|
4838
4844
|
term: string | {
|
|
4839
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4845
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4840
4846
|
$location?: string | undefined;
|
|
4841
4847
|
};
|
|
4842
4848
|
} | undefined;
|
|
4843
4849
|
createdBy?: {
|
|
4844
4850
|
type: "exact";
|
|
4845
4851
|
term: string | {
|
|
4846
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4852
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4847
4853
|
$location?: string | undefined;
|
|
4848
4854
|
};
|
|
4849
4855
|
} | undefined;
|
|
@@ -4854,7 +4860,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4854
4860
|
updatedBy?: {
|
|
4855
4861
|
type: "exact";
|
|
4856
4862
|
term: string | {
|
|
4857
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4863
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4858
4864
|
$location?: string | undefined;
|
|
4859
4865
|
};
|
|
4860
4866
|
} | undefined;
|
|
@@ -4904,7 +4910,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4904
4910
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4905
4911
|
type: "within";
|
|
4906
4912
|
location: string | {
|
|
4907
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4913
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4908
4914
|
$location?: string | undefined;
|
|
4909
4915
|
};
|
|
4910
4916
|
} | undefined;
|
|
@@ -4926,7 +4932,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4926
4932
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4927
4933
|
type: "within";
|
|
4928
4934
|
location: string | {
|
|
4929
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4935
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4930
4936
|
$location?: string | undefined;
|
|
4931
4937
|
};
|
|
4932
4938
|
} | undefined;
|
|
@@ -4941,47 +4947,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4941
4947
|
createdAtLocation?: {
|
|
4942
4948
|
type: "within";
|
|
4943
4949
|
location: string | {
|
|
4944
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4950
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4945
4951
|
$location?: string | undefined;
|
|
4946
4952
|
};
|
|
4947
4953
|
} | {
|
|
4948
4954
|
type: "exact";
|
|
4949
4955
|
term: string | {
|
|
4950
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4956
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4951
4957
|
$location?: string | undefined;
|
|
4952
4958
|
};
|
|
4953
4959
|
} | undefined;
|
|
4954
4960
|
updatedAtLocation?: {
|
|
4955
4961
|
type: "within";
|
|
4956
4962
|
location: string | {
|
|
4957
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4963
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4958
4964
|
$location?: string | undefined;
|
|
4959
4965
|
};
|
|
4960
4966
|
} | {
|
|
4961
4967
|
type: "exact";
|
|
4962
4968
|
term: string | {
|
|
4963
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4969
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4964
4970
|
$location?: string | undefined;
|
|
4965
4971
|
};
|
|
4966
4972
|
} | undefined;
|
|
4967
4973
|
updatedByUserRole?: {
|
|
4968
4974
|
type: "exact";
|
|
4969
4975
|
term: string | {
|
|
4970
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4976
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4971
4977
|
$location?: string | undefined;
|
|
4972
4978
|
};
|
|
4973
4979
|
} | undefined;
|
|
4974
4980
|
assignedTo?: {
|
|
4975
4981
|
type: "exact";
|
|
4976
4982
|
term: string | {
|
|
4977
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4983
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4978
4984
|
$location?: string | undefined;
|
|
4979
4985
|
};
|
|
4980
4986
|
} | undefined;
|
|
4981
4987
|
createdBy?: {
|
|
4982
4988
|
type: "exact";
|
|
4983
4989
|
term: string | {
|
|
4984
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4990
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4985
4991
|
$location?: string | undefined;
|
|
4986
4992
|
};
|
|
4987
4993
|
} | undefined;
|
|
@@ -4992,7 +4998,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4992
4998
|
updatedBy?: {
|
|
4993
4999
|
type: "exact";
|
|
4994
5000
|
term: string | {
|
|
4995
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5001
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
|
|
4996
5002
|
$location?: string | undefined;
|
|
4997
5003
|
};
|
|
4998
5004
|
} | 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
|