@opencrvs/toolkit 2.0.0-rc.da37d4e → 2.0.0-rc.dd19028
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 +3 -5
- package/dist/cli.js +3 -5
- package/dist/commons/api/router.d.ts +42 -36
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/FieldConfig.d.ts +0 -5
- package/dist/conditionals/index.js +3 -5
- package/dist/events/index.js +3 -5
- package/dist/migrations/v2.0/index.js +3 -5
- package/dist/notification/index.js +3 -5
- package/dist/scopes/index.d.ts +1 -6
- package/dist/scopes/index.js +3 -5
- package/opencrvs-toolkit-2.0.0-rc.dd19028.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.da37d4e.tgz +0 -0
|
@@ -772,14 +772,12 @@ var SystemScopeType = z11.enum([
|
|
|
772
772
|
"organisation.read-locations",
|
|
773
773
|
"user.read",
|
|
774
774
|
"user.create",
|
|
775
|
-
"user.edit"
|
|
776
|
-
"user.search"
|
|
775
|
+
"user.edit"
|
|
777
776
|
]);
|
|
778
777
|
var UserScopeType = SystemScopeType.extract([
|
|
779
778
|
"user.read",
|
|
780
779
|
"user.create",
|
|
781
|
-
"user.edit"
|
|
782
|
-
"user.search"
|
|
780
|
+
"user.edit"
|
|
783
781
|
]);
|
|
784
782
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
785
783
|
var UserScopeV2 = z11.discriminatedUnion("type", [
|
|
@@ -788,7 +786,7 @@ var UserScopeV2 = z11.discriminatedUnion("type", [
|
|
|
788
786
|
options: AllUserScopeOptions.optional()
|
|
789
787
|
}),
|
|
790
788
|
z11.object({
|
|
791
|
-
type: UserScopeType.extract(["user.read"
|
|
789
|
+
type: UserScopeType.extract(["user.read"]),
|
|
792
790
|
options: AccessLevelOptions.optional()
|
|
793
791
|
})
|
|
794
792
|
]);
|
package/dist/cli.js
CHANGED
|
@@ -2226,14 +2226,12 @@ var SystemScopeType = z3.enum([
|
|
|
2226
2226
|
"organisation.read-locations",
|
|
2227
2227
|
"user.read",
|
|
2228
2228
|
"user.create",
|
|
2229
|
-
"user.edit"
|
|
2230
|
-
"user.search"
|
|
2229
|
+
"user.edit"
|
|
2231
2230
|
]);
|
|
2232
2231
|
var UserScopeType = SystemScopeType.extract([
|
|
2233
2232
|
"user.read",
|
|
2234
2233
|
"user.create",
|
|
2235
|
-
"user.edit"
|
|
2236
|
-
"user.search"
|
|
2234
|
+
"user.edit"
|
|
2237
2235
|
]);
|
|
2238
2236
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
2239
2237
|
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
@@ -2242,7 +2240,7 @@ var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
|
2242
2240
|
options: AllUserScopeOptions.optional()
|
|
2243
2241
|
}),
|
|
2244
2242
|
z3.object({
|
|
2245
|
-
type: UserScopeType.extract(["user.read"
|
|
2243
|
+
type: UserScopeType.extract(["user.read"]),
|
|
2246
2244
|
options: AccessLevelOptions.optional()
|
|
2247
2245
|
})
|
|
2248
2246
|
]);
|
|
@@ -4092,18 +4092,33 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4092
4092
|
input: string[];
|
|
4093
4093
|
output: ({
|
|
4094
4094
|
id: string & import("zod").$brand<"UUID">;
|
|
4095
|
-
type: "user";
|
|
4096
4095
|
name: {
|
|
4097
4096
|
firstname: string;
|
|
4098
4097
|
surname: string;
|
|
4099
4098
|
};
|
|
4100
4099
|
role: string;
|
|
4101
|
-
|
|
4100
|
+
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4101
|
+
type: "user";
|
|
4102
|
+
status: "active" | "pending" | "deactivated";
|
|
4103
|
+
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4102
4104
|
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4105
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4106
|
+
device?: string | undefined;
|
|
4107
|
+
fullHonorificName?: string | undefined;
|
|
4108
|
+
mobile?: string | undefined;
|
|
4109
|
+
email?: string | undefined;
|
|
4110
|
+
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4103
4111
|
} | {
|
|
4104
4112
|
id: string & import("zod").$brand<"UUID">;
|
|
4105
|
-
type: "system";
|
|
4106
4113
|
name: string;
|
|
4114
|
+
type: "system";
|
|
4115
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4116
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4117
|
+
signature?: undefined;
|
|
4118
|
+
avatar?: undefined;
|
|
4119
|
+
fullHonorificName?: string | undefined;
|
|
4120
|
+
legacyId?: string | undefined;
|
|
4121
|
+
status?: undefined;
|
|
4107
4122
|
})[];
|
|
4108
4123
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4109
4124
|
}>;
|
|
@@ -4260,7 +4275,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4260
4275
|
changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
|
|
4261
4276
|
input: {
|
|
4262
4277
|
userId: string;
|
|
4263
|
-
avatar:
|
|
4278
|
+
avatar: {
|
|
4279
|
+
type: string;
|
|
4280
|
+
data: string;
|
|
4281
|
+
};
|
|
4264
4282
|
};
|
|
4265
4283
|
output: void;
|
|
4266
4284
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
@@ -4292,18 +4310,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4292
4310
|
output: void;
|
|
4293
4311
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4294
4312
|
}>;
|
|
4295
|
-
verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
4296
|
-
input: {
|
|
4297
|
-
password: string;
|
|
4298
|
-
};
|
|
4299
|
-
output: {
|
|
4300
|
-
status: string;
|
|
4301
|
-
username: string;
|
|
4302
|
-
id: string;
|
|
4303
|
-
mobile?: string | undefined;
|
|
4304
|
-
};
|
|
4305
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4306
|
-
}>;
|
|
4307
4313
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4308
4314
|
ctx: Partial<{
|
|
4309
4315
|
token: `Bearer ${string}`;
|
|
@@ -4759,7 +4765,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4759
4765
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4760
4766
|
type: "within";
|
|
4761
4767
|
location: string | {
|
|
4762
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4768
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4763
4769
|
$location?: string | undefined;
|
|
4764
4770
|
};
|
|
4765
4771
|
} | undefined;
|
|
@@ -4781,7 +4787,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4781
4787
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4782
4788
|
type: "within";
|
|
4783
4789
|
location: string | {
|
|
4784
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4790
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4785
4791
|
$location?: string | undefined;
|
|
4786
4792
|
};
|
|
4787
4793
|
} | undefined;
|
|
@@ -4796,47 +4802,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4796
4802
|
createdAtLocation?: {
|
|
4797
4803
|
type: "within";
|
|
4798
4804
|
location: string | {
|
|
4799
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4805
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4800
4806
|
$location?: string | undefined;
|
|
4801
4807
|
};
|
|
4802
4808
|
} | {
|
|
4803
4809
|
type: "exact";
|
|
4804
4810
|
term: string | {
|
|
4805
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4811
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4806
4812
|
$location?: string | undefined;
|
|
4807
4813
|
};
|
|
4808
4814
|
} | undefined;
|
|
4809
4815
|
updatedAtLocation?: {
|
|
4810
4816
|
type: "within";
|
|
4811
4817
|
location: string | {
|
|
4812
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4818
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4813
4819
|
$location?: string | undefined;
|
|
4814
4820
|
};
|
|
4815
4821
|
} | {
|
|
4816
4822
|
type: "exact";
|
|
4817
4823
|
term: string | {
|
|
4818
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4824
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4819
4825
|
$location?: string | undefined;
|
|
4820
4826
|
};
|
|
4821
4827
|
} | undefined;
|
|
4822
4828
|
updatedByUserRole?: {
|
|
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" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4826
4832
|
$location?: string | undefined;
|
|
4827
4833
|
};
|
|
4828
4834
|
} | undefined;
|
|
4829
4835
|
assignedTo?: {
|
|
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" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4833
4839
|
$location?: string | undefined;
|
|
4834
4840
|
};
|
|
4835
4841
|
} | undefined;
|
|
4836
4842
|
createdBy?: {
|
|
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" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4840
4846
|
$location?: string | undefined;
|
|
4841
4847
|
};
|
|
4842
4848
|
} | undefined;
|
|
@@ -4847,7 +4853,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4847
4853
|
updatedBy?: {
|
|
4848
4854
|
type: "exact";
|
|
4849
4855
|
term: string | {
|
|
4850
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4856
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4851
4857
|
$location?: string | undefined;
|
|
4852
4858
|
};
|
|
4853
4859
|
} | undefined;
|
|
@@ -4897,7 +4903,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4897
4903
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4898
4904
|
type: "within";
|
|
4899
4905
|
location: string | {
|
|
4900
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4906
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4901
4907
|
$location?: string | undefined;
|
|
4902
4908
|
};
|
|
4903
4909
|
} | undefined;
|
|
@@ -4919,7 +4925,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4919
4925
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4920
4926
|
type: "within";
|
|
4921
4927
|
location: string | {
|
|
4922
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4928
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4923
4929
|
$location?: string | undefined;
|
|
4924
4930
|
};
|
|
4925
4931
|
} | undefined;
|
|
@@ -4934,47 +4940,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4934
4940
|
createdAtLocation?: {
|
|
4935
4941
|
type: "within";
|
|
4936
4942
|
location: string | {
|
|
4937
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4943
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4938
4944
|
$location?: string | undefined;
|
|
4939
4945
|
};
|
|
4940
4946
|
} | {
|
|
4941
4947
|
type: "exact";
|
|
4942
4948
|
term: string | {
|
|
4943
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4949
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4944
4950
|
$location?: string | undefined;
|
|
4945
4951
|
};
|
|
4946
4952
|
} | undefined;
|
|
4947
4953
|
updatedAtLocation?: {
|
|
4948
4954
|
type: "within";
|
|
4949
4955
|
location: string | {
|
|
4950
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4956
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4951
4957
|
$location?: string | undefined;
|
|
4952
4958
|
};
|
|
4953
4959
|
} | {
|
|
4954
4960
|
type: "exact";
|
|
4955
4961
|
term: string | {
|
|
4956
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4962
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4957
4963
|
$location?: string | undefined;
|
|
4958
4964
|
};
|
|
4959
4965
|
} | undefined;
|
|
4960
4966
|
updatedByUserRole?: {
|
|
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" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4964
4970
|
$location?: string | undefined;
|
|
4965
4971
|
};
|
|
4966
4972
|
} | undefined;
|
|
4967
4973
|
assignedTo?: {
|
|
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" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4971
4977
|
$location?: string | undefined;
|
|
4972
4978
|
};
|
|
4973
4979
|
} | undefined;
|
|
4974
4980
|
createdBy?: {
|
|
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" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4978
4984
|
$location?: string | undefined;
|
|
4979
4985
|
};
|
|
4980
4986
|
} | undefined;
|
|
@@ -4985,7 +4991,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4985
4991
|
updatedBy?: {
|
|
4986
4992
|
type: "exact";
|
|
4987
4993
|
term: string | {
|
|
4988
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4994
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
|
|
4989
4995
|
$location?: string | undefined;
|
|
4990
4996
|
};
|
|
4991
4997
|
} | undefined;
|
|
@@ -86,16 +86,16 @@ export declare const user: typeof userSerializer & {
|
|
|
86
86
|
};
|
|
87
87
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
88
88
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
89
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "
|
|
89
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
90
90
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
94
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "
|
|
94
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
95
95
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
96
96
|
}) => {
|
|
97
97
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
98
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "
|
|
98
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
99
99
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
@@ -1723,7 +1723,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1723
1723
|
"user.read": "user.read";
|
|
1724
1724
|
"user.create": "user.create";
|
|
1725
1725
|
"user.edit": "user.edit";
|
|
1726
|
-
"user.search": "user.search";
|
|
1727
1726
|
workqueue: "workqueue";
|
|
1728
1727
|
"dashboard.view": "dashboard.view";
|
|
1729
1728
|
}>;
|
|
@@ -1843,7 +1842,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1843
1842
|
"user.read": "user.read";
|
|
1844
1843
|
"user.create": "user.create";
|
|
1845
1844
|
"user.edit": "user.edit";
|
|
1846
|
-
"user.search": "user.search";
|
|
1847
1845
|
workqueue: "workqueue";
|
|
1848
1846
|
"dashboard.view": "dashboard.view";
|
|
1849
1847
|
}>;
|
|
@@ -2028,7 +2026,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2028
2026
|
"user.read": "user.read";
|
|
2029
2027
|
"user.create": "user.create";
|
|
2030
2028
|
"user.edit": "user.edit";
|
|
2031
|
-
"user.search": "user.search";
|
|
2032
2029
|
workqueue: "workqueue";
|
|
2033
2030
|
"dashboard.view": "dashboard.view";
|
|
2034
2031
|
}>;
|
|
@@ -2134,7 +2131,6 @@ declare const Office: z.ZodObject<{
|
|
|
2134
2131
|
"user.read": "user.read";
|
|
2135
2132
|
"user.create": "user.create";
|
|
2136
2133
|
"user.edit": "user.edit";
|
|
2137
|
-
"user.search": "user.search";
|
|
2138
2134
|
workqueue: "workqueue";
|
|
2139
2135
|
"dashboard.view": "dashboard.view";
|
|
2140
2136
|
}>;
|
|
@@ -2327,7 +2323,6 @@ declare const Address: z.ZodObject<{
|
|
|
2327
2323
|
"user.read": "user.read";
|
|
2328
2324
|
"user.create": "user.create";
|
|
2329
2325
|
"user.edit": "user.edit";
|
|
2330
|
-
"user.search": "user.search";
|
|
2331
2326
|
workqueue: "workqueue";
|
|
2332
2327
|
"dashboard.view": "dashboard.view";
|
|
2333
2328
|
}>;
|
|
@@ -298,14 +298,12 @@ var SystemScopeType = z6.enum([
|
|
|
298
298
|
"organisation.read-locations",
|
|
299
299
|
"user.read",
|
|
300
300
|
"user.create",
|
|
301
|
-
"user.edit"
|
|
302
|
-
"user.search"
|
|
301
|
+
"user.edit"
|
|
303
302
|
]);
|
|
304
303
|
var UserScopeType = SystemScopeType.extract([
|
|
305
304
|
"user.read",
|
|
306
305
|
"user.create",
|
|
307
|
-
"user.edit"
|
|
308
|
-
"user.search"
|
|
306
|
+
"user.edit"
|
|
309
307
|
]);
|
|
310
308
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
311
309
|
var UserScopeV2 = z6.discriminatedUnion("type", [
|
|
@@ -314,7 +312,7 @@ var UserScopeV2 = z6.discriminatedUnion("type", [
|
|
|
314
312
|
options: AllUserScopeOptions.optional()
|
|
315
313
|
}),
|
|
316
314
|
z6.object({
|
|
317
|
-
type: UserScopeType.extract(["user.read"
|
|
315
|
+
type: UserScopeType.extract(["user.read"]),
|
|
318
316
|
options: AccessLevelOptions.optional()
|
|
319
317
|
})
|
|
320
318
|
]);
|
package/dist/events/index.js
CHANGED
|
@@ -607,14 +607,12 @@ var SystemScopeType = z2.enum([
|
|
|
607
607
|
"organisation.read-locations",
|
|
608
608
|
"user.read",
|
|
609
609
|
"user.create",
|
|
610
|
-
"user.edit"
|
|
611
|
-
"user.search"
|
|
610
|
+
"user.edit"
|
|
612
611
|
]);
|
|
613
612
|
var UserScopeType = SystemScopeType.extract([
|
|
614
613
|
"user.read",
|
|
615
614
|
"user.create",
|
|
616
|
-
"user.edit"
|
|
617
|
-
"user.search"
|
|
615
|
+
"user.edit"
|
|
618
616
|
]);
|
|
619
617
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
620
618
|
var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
@@ -623,7 +621,7 @@ var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
|
623
621
|
options: AllUserScopeOptions.optional()
|
|
624
622
|
}),
|
|
625
623
|
z2.object({
|
|
626
|
-
type: UserScopeType.extract(["user.read"
|
|
624
|
+
type: UserScopeType.extract(["user.read"]),
|
|
627
625
|
options: AccessLevelOptions.optional()
|
|
628
626
|
})
|
|
629
627
|
]);
|
|
@@ -2238,14 +2238,12 @@ var SystemScopeType = z3.enum([
|
|
|
2238
2238
|
"organisation.read-locations",
|
|
2239
2239
|
"user.read",
|
|
2240
2240
|
"user.create",
|
|
2241
|
-
"user.edit"
|
|
2242
|
-
"user.search"
|
|
2241
|
+
"user.edit"
|
|
2243
2242
|
]);
|
|
2244
2243
|
var UserScopeType = SystemScopeType.extract([
|
|
2245
2244
|
"user.read",
|
|
2246
2245
|
"user.create",
|
|
2247
|
-
"user.edit"
|
|
2248
|
-
"user.search"
|
|
2246
|
+
"user.edit"
|
|
2249
2247
|
]);
|
|
2250
2248
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
2251
2249
|
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
@@ -2254,7 +2252,7 @@ var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
|
2254
2252
|
options: AllUserScopeOptions.optional()
|
|
2255
2253
|
}),
|
|
2256
2254
|
z3.object({
|
|
2257
|
-
type: UserScopeType.extract(["user.read"
|
|
2255
|
+
type: UserScopeType.extract(["user.read"]),
|
|
2258
2256
|
options: AccessLevelOptions.optional()
|
|
2259
2257
|
})
|
|
2260
2258
|
]);
|
|
@@ -226,14 +226,12 @@ var SystemScopeType = z2.enum([
|
|
|
226
226
|
"organisation.read-locations",
|
|
227
227
|
"user.read",
|
|
228
228
|
"user.create",
|
|
229
|
-
"user.edit"
|
|
230
|
-
"user.search"
|
|
229
|
+
"user.edit"
|
|
231
230
|
]);
|
|
232
231
|
var UserScopeType = SystemScopeType.extract([
|
|
233
232
|
"user.read",
|
|
234
233
|
"user.create",
|
|
235
|
-
"user.edit"
|
|
236
|
-
"user.search"
|
|
234
|
+
"user.edit"
|
|
237
235
|
]);
|
|
238
236
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
239
237
|
var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
@@ -242,7 +240,7 @@ var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
|
242
240
|
options: AllUserScopeOptions.optional()
|
|
243
241
|
}),
|
|
244
242
|
z2.object({
|
|
245
|
-
type: UserScopeType.extract(["user.read"
|
|
243
|
+
type: UserScopeType.extract(["user.read"]),
|
|
246
244
|
options: AccessLevelOptions.optional()
|
|
247
245
|
})
|
|
248
246
|
]);
|
package/dist/scopes/index.d.ts
CHANGED
|
@@ -227,14 +227,12 @@ declare const SystemScopeType: z.ZodEnum<{
|
|
|
227
227
|
"user.read": "user.read";
|
|
228
228
|
"user.create": "user.create";
|
|
229
229
|
"user.edit": "user.edit";
|
|
230
|
-
"user.search": "user.search";
|
|
231
230
|
}>;
|
|
232
231
|
export type SystemScopeType = z.infer<typeof SystemScopeType>;
|
|
233
232
|
declare const UserScopeType: z.ZodEnum<{
|
|
234
233
|
"user.read": "user.read";
|
|
235
234
|
"user.create": "user.create";
|
|
236
235
|
"user.edit": "user.edit";
|
|
237
|
-
"user.search": "user.search";
|
|
238
236
|
}>;
|
|
239
237
|
export type UserScopeType = z.infer<typeof UserScopeType>;
|
|
240
238
|
declare const ScopesWithRoleOption: z.ZodEnum<{
|
|
@@ -258,7 +256,6 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
258
256
|
}, z.core.$strip>, z.ZodObject<{
|
|
259
257
|
type: z.ZodEnum<{
|
|
260
258
|
"user.read": "user.read";
|
|
261
|
-
"user.search": "user.search";
|
|
262
259
|
}>;
|
|
263
260
|
options: z.ZodOptional<z.ZodObject<{
|
|
264
261
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
@@ -496,7 +493,6 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
496
493
|
}, z.core.$strip>, z.ZodObject<{
|
|
497
494
|
type: z.ZodEnum<{
|
|
498
495
|
"user.read": "user.read";
|
|
499
|
-
"user.search": "user.search";
|
|
500
496
|
}>;
|
|
501
497
|
options: z.ZodOptional<z.ZodObject<{
|
|
502
498
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
@@ -560,7 +556,6 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
560
556
|
"user.read": "user.read";
|
|
561
557
|
"user.create": "user.create";
|
|
562
558
|
"user.edit": "user.edit";
|
|
563
|
-
"user.search": "user.search";
|
|
564
559
|
workqueue: "workqueue";
|
|
565
560
|
"dashboard.view": "dashboard.view";
|
|
566
561
|
}>;
|
|
@@ -640,7 +635,7 @@ export declare const decodeScope: (query: EncodedScope) => {
|
|
|
640
635
|
role?: string[] | undefined;
|
|
641
636
|
} | undefined;
|
|
642
637
|
} | {
|
|
643
|
-
type: "user.read"
|
|
638
|
+
type: "user.read";
|
|
644
639
|
options?: {
|
|
645
640
|
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
646
641
|
} | undefined;
|
package/dist/scopes/index.js
CHANGED
|
@@ -257,14 +257,12 @@ var SystemScopeType = z3.enum([
|
|
|
257
257
|
"organisation.read-locations",
|
|
258
258
|
"user.read",
|
|
259
259
|
"user.create",
|
|
260
|
-
"user.edit"
|
|
261
|
-
"user.search"
|
|
260
|
+
"user.edit"
|
|
262
261
|
]);
|
|
263
262
|
var UserScopeType = SystemScopeType.extract([
|
|
264
263
|
"user.read",
|
|
265
264
|
"user.create",
|
|
266
|
-
"user.edit"
|
|
267
|
-
"user.search"
|
|
265
|
+
"user.edit"
|
|
268
266
|
]);
|
|
269
267
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
270
268
|
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
@@ -273,7 +271,7 @@ var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
|
273
271
|
options: AllUserScopeOptions.optional()
|
|
274
272
|
}),
|
|
275
273
|
z3.object({
|
|
276
|
-
type: UserScopeType.extract(["user.read"
|
|
274
|
+
type: UserScopeType.extract(["user.read"]),
|
|
277
275
|
options: AccessLevelOptions.optional()
|
|
278
276
|
})
|
|
279
277
|
]);
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|