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