@opencrvs/toolkit 2.0.0-rc.440bc51 → 2.0.0-rc.45e2fdc
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 +7 -35
- package/dist/cli.js +7 -35
- package/dist/commons/api/router.d.ts +59 -54
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionInput.d.ts +36 -0
- package/dist/commons/events/Draft.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +0 -5
- package/dist/commons/events/locations.d.ts +1 -17
- package/dist/conditionals/index.js +7 -35
- package/dist/events/index.js +8 -73
- package/dist/migrations/v2.0/index.js +7 -35
- package/dist/notification/index.js +8 -35
- package/dist/scopes/index.d.ts +10 -82
- package/dist/scopes/index.js +8 -41
- package/opencrvs-toolkit-2.0.0-rc.45e2fdc.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.440bc51.tgz +0 -0
|
@@ -656,10 +656,6 @@ var scopeByEvent = z11.preprocess(
|
|
|
656
656
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
657
657
|
z11.array(z11.string()).optional()
|
|
658
658
|
).describe("Event type, e.g. birth, death");
|
|
659
|
-
var userRole = z11.preprocess(
|
|
660
|
-
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
661
|
-
z11.array(z11.string()).optional()
|
|
662
|
-
).describe("User role, e.g. admin, field agent");
|
|
663
659
|
var scopeOptionsPlaceEvent = z11.object({
|
|
664
660
|
event: scopeByEvent,
|
|
665
661
|
placeOfEvent: JurisdictionFilter.optional()
|
|
@@ -683,9 +679,6 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
|
|
|
683
679
|
var AccessLevelOptions = z11.object({
|
|
684
680
|
accessLevel: JurisdictionFilter.optional()
|
|
685
681
|
});
|
|
686
|
-
var AllUserScopeOptions = AccessLevelOptions.extend({
|
|
687
|
-
role: userRole.optional()
|
|
688
|
-
});
|
|
689
682
|
var WorkqueueOrDashboardOptions = z11.object({
|
|
690
683
|
ids: z11.preprocess(
|
|
691
684
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
@@ -695,7 +688,6 @@ var WorkqueueOrDashboardOptions = z11.object({
|
|
|
695
688
|
var AllScopeOptions = z11.object({
|
|
696
689
|
...AllRecordScopeOptions.shape,
|
|
697
690
|
...AccessLevelOptions.shape,
|
|
698
|
-
...AllUserScopeOptions.shape,
|
|
699
691
|
...WorkqueueOrDashboardOptions.shape
|
|
700
692
|
});
|
|
701
693
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
@@ -768,28 +760,6 @@ var RecordScopeV2 = z11.discriminatedUnion("type", [
|
|
|
768
760
|
]).describe(
|
|
769
761
|
"Scopes used to check user's permission to perform actions on a record."
|
|
770
762
|
);
|
|
771
|
-
var SystemScopeType = z11.enum([
|
|
772
|
-
"organisation.read-locations",
|
|
773
|
-
"user.read",
|
|
774
|
-
"user.create",
|
|
775
|
-
"user.edit"
|
|
776
|
-
]);
|
|
777
|
-
var UserScopeType = SystemScopeType.extract([
|
|
778
|
-
"user.read",
|
|
779
|
-
"user.create",
|
|
780
|
-
"user.edit"
|
|
781
|
-
]);
|
|
782
|
-
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
783
|
-
var UserScopeV2 = z11.discriminatedUnion("type", [
|
|
784
|
-
z11.object({
|
|
785
|
-
type: ScopesWithRoleOption,
|
|
786
|
-
options: AllUserScopeOptions.optional()
|
|
787
|
-
}),
|
|
788
|
-
z11.object({
|
|
789
|
-
type: UserScopeType.extract(["user.read"]),
|
|
790
|
-
options: AccessLevelOptions.optional()
|
|
791
|
-
})
|
|
792
|
-
]);
|
|
793
763
|
var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [
|
|
794
764
|
z11.object({
|
|
795
765
|
type: ScopesWithPlaceEventOptions,
|
|
@@ -810,14 +780,16 @@ var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [
|
|
|
810
780
|
}).optional()
|
|
811
781
|
})
|
|
812
782
|
]).describe("Resolved scope with location/user IDs instead of filters.");
|
|
783
|
+
var SystemScopeType = z11.enum([
|
|
784
|
+
"organisation.read-locations",
|
|
785
|
+
"user.read",
|
|
786
|
+
"user.create",
|
|
787
|
+
"user.edit"
|
|
788
|
+
]);
|
|
813
789
|
var Scope = z11.discriminatedUnion("type", [
|
|
814
790
|
z11.object({ type: PlainScopeType }),
|
|
815
791
|
...RecordScopeV2.options,
|
|
816
|
-
|
|
817
|
-
z11.object({
|
|
818
|
-
type: z11.literal("organisation.read-locations"),
|
|
819
|
-
options: AccessLevelOptions.optional()
|
|
820
|
-
}),
|
|
792
|
+
z11.object({ type: SystemScopeType, options: AccessLevelOptions.optional() }),
|
|
821
793
|
z11.object({
|
|
822
794
|
type: z11.literal("workqueue"),
|
|
823
795
|
options: WorkqueueOrDashboardOptions
|
package/dist/cli.js
CHANGED
|
@@ -2110,10 +2110,6 @@ var scopeByEvent = z3.preprocess(
|
|
|
2110
2110
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
2111
2111
|
z3.array(z3.string()).optional()
|
|
2112
2112
|
).describe("Event type, e.g. birth, death");
|
|
2113
|
-
var userRole = z3.preprocess(
|
|
2114
|
-
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
2115
|
-
z3.array(z3.string()).optional()
|
|
2116
|
-
).describe("User role, e.g. admin, field agent");
|
|
2117
2113
|
var scopeOptionsPlaceEvent = z3.object({
|
|
2118
2114
|
event: scopeByEvent,
|
|
2119
2115
|
placeOfEvent: JurisdictionFilter.optional()
|
|
@@ -2137,9 +2133,6 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
|
|
|
2137
2133
|
var AccessLevelOptions = z3.object({
|
|
2138
2134
|
accessLevel: JurisdictionFilter.optional()
|
|
2139
2135
|
});
|
|
2140
|
-
var AllUserScopeOptions = AccessLevelOptions.extend({
|
|
2141
|
-
role: userRole.optional()
|
|
2142
|
-
});
|
|
2143
2136
|
var WorkqueueOrDashboardOptions = z3.object({
|
|
2144
2137
|
ids: z3.preprocess(
|
|
2145
2138
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
@@ -2149,7 +2142,6 @@ var WorkqueueOrDashboardOptions = z3.object({
|
|
|
2149
2142
|
var AllScopeOptions = z3.object({
|
|
2150
2143
|
...AllRecordScopeOptions.shape,
|
|
2151
2144
|
...AccessLevelOptions.shape,
|
|
2152
|
-
...AllUserScopeOptions.shape,
|
|
2153
2145
|
...WorkqueueOrDashboardOptions.shape
|
|
2154
2146
|
});
|
|
2155
2147
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
@@ -2222,28 +2214,6 @@ var RecordScopeV2 = z3.discriminatedUnion("type", [
|
|
|
2222
2214
|
]).describe(
|
|
2223
2215
|
"Scopes used to check user's permission to perform actions on a record."
|
|
2224
2216
|
);
|
|
2225
|
-
var SystemScopeType = z3.enum([
|
|
2226
|
-
"organisation.read-locations",
|
|
2227
|
-
"user.read",
|
|
2228
|
-
"user.create",
|
|
2229
|
-
"user.edit"
|
|
2230
|
-
]);
|
|
2231
|
-
var UserScopeType = SystemScopeType.extract([
|
|
2232
|
-
"user.read",
|
|
2233
|
-
"user.create",
|
|
2234
|
-
"user.edit"
|
|
2235
|
-
]);
|
|
2236
|
-
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
2237
|
-
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
2238
|
-
z3.object({
|
|
2239
|
-
type: ScopesWithRoleOption,
|
|
2240
|
-
options: AllUserScopeOptions.optional()
|
|
2241
|
-
}),
|
|
2242
|
-
z3.object({
|
|
2243
|
-
type: UserScopeType.extract(["user.read"]),
|
|
2244
|
-
options: AccessLevelOptions.optional()
|
|
2245
|
-
})
|
|
2246
|
-
]);
|
|
2247
2217
|
var ResolvedRecordScopeV2 = z3.discriminatedUnion("type", [
|
|
2248
2218
|
z3.object({
|
|
2249
2219
|
type: ScopesWithPlaceEventOptions,
|
|
@@ -2264,14 +2234,16 @@ var ResolvedRecordScopeV2 = z3.discriminatedUnion("type", [
|
|
|
2264
2234
|
}).optional()
|
|
2265
2235
|
})
|
|
2266
2236
|
]).describe("Resolved scope with location/user IDs instead of filters.");
|
|
2237
|
+
var SystemScopeType = z3.enum([
|
|
2238
|
+
"organisation.read-locations",
|
|
2239
|
+
"user.read",
|
|
2240
|
+
"user.create",
|
|
2241
|
+
"user.edit"
|
|
2242
|
+
]);
|
|
2267
2243
|
var Scope2 = z3.discriminatedUnion("type", [
|
|
2268
2244
|
z3.object({ type: PlainScopeType }),
|
|
2269
2245
|
...RecordScopeV2.options,
|
|
2270
|
-
|
|
2271
|
-
z3.object({
|
|
2272
|
-
type: z3.literal("organisation.read-locations"),
|
|
2273
|
-
options: AccessLevelOptions.optional()
|
|
2274
|
-
}),
|
|
2246
|
+
z3.object({ type: SystemScopeType, options: AccessLevelOptions.optional() }),
|
|
2275
2247
|
z3.object({
|
|
2276
2248
|
type: z3.literal("workqueue"),
|
|
2277
2249
|
options: WorkqueueOrDashboardOptions
|
|
@@ -1105,6 +1105,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1105
1105
|
annotation?: Record<string, unknown> | undefined;
|
|
1106
1106
|
originalActionId?: string | undefined;
|
|
1107
1107
|
keepAssignment?: boolean | undefined;
|
|
1108
|
+
waitFor?: boolean | undefined;
|
|
1108
1109
|
createdAtLocation?: string | null | undefined;
|
|
1109
1110
|
};
|
|
1110
1111
|
output: {
|
|
@@ -1225,6 +1226,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1225
1226
|
annotation?: Record<string, unknown> | undefined;
|
|
1226
1227
|
originalActionId?: string | undefined;
|
|
1227
1228
|
keepAssignment?: boolean | undefined;
|
|
1229
|
+
waitFor?: boolean | undefined;
|
|
1228
1230
|
createdAtLocation?: string | null | undefined;
|
|
1229
1231
|
type?: "DECLARE" | undefined;
|
|
1230
1232
|
};
|
|
@@ -1799,6 +1801,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1799
1801
|
annotation?: Record<string, unknown> | undefined;
|
|
1800
1802
|
originalActionId?: string | undefined;
|
|
1801
1803
|
keepAssignment?: boolean | undefined;
|
|
1804
|
+
waitFor?: boolean | undefined;
|
|
1802
1805
|
createdAtLocation?: string | null | undefined;
|
|
1803
1806
|
type?: "CUSTOM" | undefined;
|
|
1804
1807
|
};
|
|
@@ -2154,6 +2157,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2154
2157
|
annotation?: Record<string, unknown> | undefined;
|
|
2155
2158
|
originalActionId?: string | undefined;
|
|
2156
2159
|
keepAssignment?: boolean | undefined;
|
|
2160
|
+
waitFor?: boolean | undefined;
|
|
2157
2161
|
createdAtLocation?: string | null | undefined;
|
|
2158
2162
|
};
|
|
2159
2163
|
output: {
|
|
@@ -2467,6 +2471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2467
2471
|
annotation?: Record<string, unknown> | undefined;
|
|
2468
2472
|
originalActionId?: string | undefined;
|
|
2469
2473
|
keepAssignment?: boolean | undefined;
|
|
2474
|
+
waitFor?: boolean | undefined;
|
|
2470
2475
|
createdAtLocation?: string | null | undefined;
|
|
2471
2476
|
type?: "UNASSIGN" | undefined;
|
|
2472
2477
|
assignedTo?: null | undefined;
|
|
@@ -2960,6 +2965,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2960
2965
|
annotation?: Record<string, unknown> | undefined;
|
|
2961
2966
|
originalActionId?: string | undefined;
|
|
2962
2967
|
keepAssignment?: boolean | undefined;
|
|
2968
|
+
waitFor?: boolean | undefined;
|
|
2963
2969
|
createdAtLocation?: string | null | undefined;
|
|
2964
2970
|
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2965
2971
|
content?: {
|
|
@@ -3277,6 +3283,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3277
3283
|
annotation?: Record<string, unknown> | undefined;
|
|
3278
3284
|
originalActionId?: string | undefined;
|
|
3279
3285
|
keepAssignment?: boolean | undefined;
|
|
3286
|
+
waitFor?: boolean | undefined;
|
|
3280
3287
|
createdAtLocation?: string | null | undefined;
|
|
3281
3288
|
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
3282
3289
|
};
|
|
@@ -3975,9 +3982,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3975
3982
|
output: {
|
|
3976
3983
|
id: string & import("zod").$brand<"UUID">;
|
|
3977
3984
|
name: {
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3985
|
+
use: string;
|
|
3986
|
+
given: string[];
|
|
3987
|
+
family: string;
|
|
3988
|
+
}[];
|
|
3981
3989
|
role: string;
|
|
3982
3990
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
3983
3991
|
type: "user";
|
|
@@ -4007,9 +4015,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4007
4015
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4008
4016
|
input: {
|
|
4009
4017
|
name: {
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4018
|
+
use: string;
|
|
4019
|
+
given: string[];
|
|
4020
|
+
family: string;
|
|
4021
|
+
}[];
|
|
4013
4022
|
role: string;
|
|
4014
4023
|
primaryOfficeId: string;
|
|
4015
4024
|
data?: Record<string, unknown> | undefined;
|
|
@@ -4028,9 +4037,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4028
4037
|
output: {
|
|
4029
4038
|
id: string & import("zod").$brand<"UUID">;
|
|
4030
4039
|
name: {
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4040
|
+
use: string;
|
|
4041
|
+
given: string[];
|
|
4042
|
+
family: string;
|
|
4043
|
+
}[];
|
|
4034
4044
|
role: string;
|
|
4035
4045
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4036
4046
|
type: "user";
|
|
@@ -4051,9 +4061,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4051
4061
|
id: string;
|
|
4052
4062
|
data?: Record<string, unknown> | undefined;
|
|
4053
4063
|
name?: {
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4064
|
+
use: string;
|
|
4065
|
+
given: string[];
|
|
4066
|
+
family: string;
|
|
4067
|
+
}[] | undefined;
|
|
4057
4068
|
role?: string | undefined;
|
|
4058
4069
|
fullHonorificName?: string | undefined;
|
|
4059
4070
|
device?: string | undefined;
|
|
@@ -4070,9 +4081,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4070
4081
|
output: {
|
|
4071
4082
|
id: string & import("zod").$brand<"UUID">;
|
|
4072
4083
|
name: {
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4084
|
+
use: string;
|
|
4085
|
+
given: string[];
|
|
4086
|
+
family: string;
|
|
4087
|
+
}[];
|
|
4076
4088
|
role: string;
|
|
4077
4089
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4078
4090
|
type: "user";
|
|
@@ -4093,9 +4105,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4093
4105
|
output: ({
|
|
4094
4106
|
id: string & import("zod").$brand<"UUID">;
|
|
4095
4107
|
name: {
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4108
|
+
use: string;
|
|
4109
|
+
given: string[];
|
|
4110
|
+
family: string;
|
|
4111
|
+
}[];
|
|
4099
4112
|
role: string;
|
|
4100
4113
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4101
4114
|
type: "user";
|
|
@@ -4137,9 +4150,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4137
4150
|
output: ({
|
|
4138
4151
|
id: string & import("zod").$brand<"UUID">;
|
|
4139
4152
|
name: {
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4153
|
+
use: string;
|
|
4154
|
+
given: string[];
|
|
4155
|
+
family: string;
|
|
4156
|
+
}[];
|
|
4143
4157
|
role: string;
|
|
4144
4158
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4145
4159
|
type: "user";
|
|
@@ -4275,7 +4289,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4275
4289
|
changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
|
|
4276
4290
|
input: {
|
|
4277
4291
|
userId: string;
|
|
4278
|
-
avatar:
|
|
4292
|
+
avatar: {
|
|
4293
|
+
type: string;
|
|
4294
|
+
data: string;
|
|
4295
|
+
};
|
|
4279
4296
|
};
|
|
4280
4297
|
output: void;
|
|
4281
4298
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
@@ -4307,18 +4324,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4307
4324
|
output: void;
|
|
4308
4325
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4309
4326
|
}>;
|
|
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
|
-
}>;
|
|
4322
4327
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4323
4328
|
ctx: Partial<{
|
|
4324
4329
|
token: `Bearer ${string}`;
|
|
@@ -4774,7 +4779,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4774
4779
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4775
4780
|
type: "within";
|
|
4776
4781
|
location: string | {
|
|
4777
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4782
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4778
4783
|
$location?: string | undefined;
|
|
4779
4784
|
};
|
|
4780
4785
|
} | undefined;
|
|
@@ -4796,7 +4801,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4796
4801
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4797
4802
|
type: "within";
|
|
4798
4803
|
location: string | {
|
|
4799
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4804
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4800
4805
|
$location?: string | undefined;
|
|
4801
4806
|
};
|
|
4802
4807
|
} | undefined;
|
|
@@ -4811,47 +4816,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4811
4816
|
createdAtLocation?: {
|
|
4812
4817
|
type: "within";
|
|
4813
4818
|
location: string | {
|
|
4814
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4819
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4815
4820
|
$location?: string | undefined;
|
|
4816
4821
|
};
|
|
4817
4822
|
} | {
|
|
4818
4823
|
type: "exact";
|
|
4819
4824
|
term: string | {
|
|
4820
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4825
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4821
4826
|
$location?: string | undefined;
|
|
4822
4827
|
};
|
|
4823
4828
|
} | undefined;
|
|
4824
4829
|
updatedAtLocation?: {
|
|
4825
4830
|
type: "within";
|
|
4826
4831
|
location: string | {
|
|
4827
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4832
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4828
4833
|
$location?: string | undefined;
|
|
4829
4834
|
};
|
|
4830
4835
|
} | {
|
|
4831
4836
|
type: "exact";
|
|
4832
4837
|
term: string | {
|
|
4833
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4838
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4834
4839
|
$location?: string | undefined;
|
|
4835
4840
|
};
|
|
4836
4841
|
} | undefined;
|
|
4837
4842
|
updatedByUserRole?: {
|
|
4838
4843
|
type: "exact";
|
|
4839
4844
|
term: string | {
|
|
4840
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4845
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4841
4846
|
$location?: string | undefined;
|
|
4842
4847
|
};
|
|
4843
4848
|
} | undefined;
|
|
4844
4849
|
assignedTo?: {
|
|
4845
4850
|
type: "exact";
|
|
4846
4851
|
term: string | {
|
|
4847
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4852
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4848
4853
|
$location?: string | undefined;
|
|
4849
4854
|
};
|
|
4850
4855
|
} | undefined;
|
|
4851
4856
|
createdBy?: {
|
|
4852
4857
|
type: "exact";
|
|
4853
4858
|
term: string | {
|
|
4854
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4859
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4855
4860
|
$location?: string | undefined;
|
|
4856
4861
|
};
|
|
4857
4862
|
} | undefined;
|
|
@@ -4862,7 +4867,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4862
4867
|
updatedBy?: {
|
|
4863
4868
|
type: "exact";
|
|
4864
4869
|
term: string | {
|
|
4865
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4870
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4866
4871
|
$location?: string | undefined;
|
|
4867
4872
|
};
|
|
4868
4873
|
} | undefined;
|
|
@@ -4912,7 +4917,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4912
4917
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4913
4918
|
type: "within";
|
|
4914
4919
|
location: string | {
|
|
4915
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4920
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4916
4921
|
$location?: string | undefined;
|
|
4917
4922
|
};
|
|
4918
4923
|
} | undefined;
|
|
@@ -4934,7 +4939,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4934
4939
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4935
4940
|
type: "within";
|
|
4936
4941
|
location: string | {
|
|
4937
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4942
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4938
4943
|
$location?: string | undefined;
|
|
4939
4944
|
};
|
|
4940
4945
|
} | undefined;
|
|
@@ -4949,47 +4954,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4949
4954
|
createdAtLocation?: {
|
|
4950
4955
|
type: "within";
|
|
4951
4956
|
location: string | {
|
|
4952
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4957
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4953
4958
|
$location?: string | undefined;
|
|
4954
4959
|
};
|
|
4955
4960
|
} | {
|
|
4956
4961
|
type: "exact";
|
|
4957
4962
|
term: string | {
|
|
4958
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4963
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4959
4964
|
$location?: string | undefined;
|
|
4960
4965
|
};
|
|
4961
4966
|
} | undefined;
|
|
4962
4967
|
updatedAtLocation?: {
|
|
4963
4968
|
type: "within";
|
|
4964
4969
|
location: string | {
|
|
4965
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4970
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4966
4971
|
$location?: string | undefined;
|
|
4967
4972
|
};
|
|
4968
4973
|
} | {
|
|
4969
4974
|
type: "exact";
|
|
4970
4975
|
term: string | {
|
|
4971
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4976
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4972
4977
|
$location?: string | undefined;
|
|
4973
4978
|
};
|
|
4974
4979
|
} | undefined;
|
|
4975
4980
|
updatedByUserRole?: {
|
|
4976
4981
|
type: "exact";
|
|
4977
4982
|
term: string | {
|
|
4978
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4983
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4979
4984
|
$location?: string | undefined;
|
|
4980
4985
|
};
|
|
4981
4986
|
} | undefined;
|
|
4982
4987
|
assignedTo?: {
|
|
4983
4988
|
type: "exact";
|
|
4984
4989
|
term: string | {
|
|
4985
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4990
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4986
4991
|
$location?: string | undefined;
|
|
4987
4992
|
};
|
|
4988
4993
|
} | undefined;
|
|
4989
4994
|
createdBy?: {
|
|
4990
4995
|
type: "exact";
|
|
4991
4996
|
term: string | {
|
|
4992
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4997
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
4993
4998
|
$location?: string | undefined;
|
|
4994
4999
|
};
|
|
4995
5000
|
} | undefined;
|
|
@@ -5000,7 +5005,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5000
5005
|
updatedBy?: {
|
|
5001
5006
|
type: "exact";
|
|
5002
5007
|
term: string | {
|
|
5003
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5008
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
|
|
5004
5009
|
$location?: string | undefined;
|
|
5005
5010
|
};
|
|
5006
5011
|
} | undefined;
|
|
@@ -87,16 +87,16 @@ export declare const user: typeof userSerializer & {
|
|
|
87
87
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
88
88
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
89
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
|
-
$option: "
|
|
90
|
+
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
94
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
|
-
$option: "
|
|
95
|
+
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
96
96
|
}) => {
|
|
97
97
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
98
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
|
-
$option: "
|
|
99
|
+
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
};
|