@opencrvs/toolkit 2.0.0-rc.45e2fdc → 2.0.0-rc.487f96e

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.
@@ -656,6 +656,10 @@ 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");
659
663
  var scopeOptionsPlaceEvent = z11.object({
660
664
  event: scopeByEvent,
661
665
  placeOfEvent: JurisdictionFilter.optional()
@@ -679,6 +683,9 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
679
683
  var AccessLevelOptions = z11.object({
680
684
  accessLevel: JurisdictionFilter.optional()
681
685
  });
686
+ var AllUserScopeOptions = AccessLevelOptions.extend({
687
+ role: userRole.optional()
688
+ });
682
689
  var WorkqueueOrDashboardOptions = z11.object({
683
690
  ids: z11.preprocess(
684
691
  (val) => val === void 0 ? void 0 : [val].flat(),
@@ -688,6 +695,7 @@ var WorkqueueOrDashboardOptions = z11.object({
688
695
  var AllScopeOptions = z11.object({
689
696
  ...AllRecordScopeOptions.shape,
690
697
  ...AccessLevelOptions.shape,
698
+ ...AllUserScopeOptions.shape,
691
699
  ...WorkqueueOrDashboardOptions.shape
692
700
  });
693
701
  var ScopeOptionKey = AllScopeOptions.keyof();
@@ -760,6 +768,28 @@ var RecordScopeV2 = z11.discriminatedUnion("type", [
760
768
  ]).describe(
761
769
  "Scopes used to check user's permission to perform actions on a record."
762
770
  );
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
+ ]);
763
793
  var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [
764
794
  z11.object({
765
795
  type: ScopesWithPlaceEventOptions,
@@ -780,16 +810,14 @@ var ResolvedRecordScopeV2 = z11.discriminatedUnion("type", [
780
810
  }).optional()
781
811
  })
782
812
  ]).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
- ]);
789
813
  var Scope = z11.discriminatedUnion("type", [
790
814
  z11.object({ type: PlainScopeType }),
791
815
  ...RecordScopeV2.options,
792
- z11.object({ type: SystemScopeType, options: AccessLevelOptions.optional() }),
816
+ ...UserScopeV2.options,
817
+ z11.object({
818
+ type: z11.literal("organisation.read-locations"),
819
+ options: AccessLevelOptions.optional()
820
+ }),
793
821
  z11.object({
794
822
  type: z11.literal("workqueue"),
795
823
  options: WorkqueueOrDashboardOptions
@@ -2078,8 +2106,8 @@ var ApplicationConfig = z20.object({
2078
2106
  })
2079
2107
  ),
2080
2108
  PHONE_NUMBER_PATTERN: z20.string().or(z20.instanceof(RegExp)),
2081
- USER_NOTIFICATION_DELIVERY_METHOD: z20.string(),
2082
- INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.string(),
2109
+ USER_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
2110
+ INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
2083
2111
  SEARCH_DEFAULT_CRITERIA: SearchCriteria.optional().default("TRACKING_ID"),
2084
2112
  ADDITIONAL_USER_FIELDS: z20.array(FieldConfig).optional().default([])
2085
2113
  });
@@ -2097,8 +2125,8 @@ var BackgroundConfig = z20.object({
2097
2125
  var LoginConfig = z20.object({
2098
2126
  COUNTRY: z20.string(),
2099
2127
  LANGUAGES: z20.array(z20.string()),
2100
- USER_NOTIFICATION_DELIVERY_METHOD: z20.string(),
2101
- INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.string(),
2128
+ USER_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
2129
+ INFORMANT_NOTIFICATION_DELIVERY_METHOD: z20.enum(["email", "sms"]),
2102
2130
  PHONE_NUMBER_PATTERN: z20.string().or(z20.instanceof(RegExp)),
2103
2131
  LOGIN_BACKGROUND: BackgroundConfig,
2104
2132
  SENTRY: z20.string().optional()
package/dist/cli.js CHANGED
@@ -2110,6 +2110,10 @@ 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");
2113
2117
  var scopeOptionsPlaceEvent = z3.object({
2114
2118
  event: scopeByEvent,
2115
2119
  placeOfEvent: JurisdictionFilter.optional()
@@ -2133,6 +2137,9 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
2133
2137
  var AccessLevelOptions = z3.object({
2134
2138
  accessLevel: JurisdictionFilter.optional()
2135
2139
  });
2140
+ var AllUserScopeOptions = AccessLevelOptions.extend({
2141
+ role: userRole.optional()
2142
+ });
2136
2143
  var WorkqueueOrDashboardOptions = z3.object({
2137
2144
  ids: z3.preprocess(
2138
2145
  (val) => val === void 0 ? void 0 : [val].flat(),
@@ -2142,6 +2149,7 @@ var WorkqueueOrDashboardOptions = z3.object({
2142
2149
  var AllScopeOptions = z3.object({
2143
2150
  ...AllRecordScopeOptions.shape,
2144
2151
  ...AccessLevelOptions.shape,
2152
+ ...AllUserScopeOptions.shape,
2145
2153
  ...WorkqueueOrDashboardOptions.shape
2146
2154
  });
2147
2155
  var ScopeOptionKey = AllScopeOptions.keyof();
@@ -2214,6 +2222,28 @@ var RecordScopeV2 = z3.discriminatedUnion("type", [
2214
2222
  ]).describe(
2215
2223
  "Scopes used to check user's permission to perform actions on a record."
2216
2224
  );
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
+ ]);
2217
2247
  var ResolvedRecordScopeV2 = z3.discriminatedUnion("type", [
2218
2248
  z3.object({
2219
2249
  type: ScopesWithPlaceEventOptions,
@@ -2234,16 +2264,14 @@ var ResolvedRecordScopeV2 = z3.discriminatedUnion("type", [
2234
2264
  }).optional()
2235
2265
  })
2236
2266
  ]).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
- ]);
2243
2267
  var Scope2 = z3.discriminatedUnion("type", [
2244
2268
  z3.object({ type: PlainScopeType }),
2245
2269
  ...RecordScopeV2.options,
2246
- z3.object({ type: SystemScopeType, options: AccessLevelOptions.optional() }),
2270
+ ...UserScopeV2.options,
2271
+ z3.object({
2272
+ type: z3.literal("organisation.read-locations"),
2273
+ options: AccessLevelOptions.optional()
2274
+ }),
2247
2275
  z3.object({
2248
2276
  type: z3.literal("workqueue"),
2249
2277
  options: WorkqueueOrDashboardOptions
@@ -1105,7 +1105,6 @@ 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;
1109
1108
  createdAtLocation?: string | null | undefined;
1110
1109
  };
1111
1110
  output: {
@@ -1226,7 +1225,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1226
1225
  annotation?: Record<string, unknown> | undefined;
1227
1226
  originalActionId?: string | undefined;
1228
1227
  keepAssignment?: boolean | undefined;
1229
- waitFor?: boolean | undefined;
1230
1228
  createdAtLocation?: string | null | undefined;
1231
1229
  type?: "DECLARE" | undefined;
1232
1230
  };
@@ -1801,7 +1799,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1801
1799
  annotation?: Record<string, unknown> | undefined;
1802
1800
  originalActionId?: string | undefined;
1803
1801
  keepAssignment?: boolean | undefined;
1804
- waitFor?: boolean | undefined;
1805
1802
  createdAtLocation?: string | null | undefined;
1806
1803
  type?: "CUSTOM" | undefined;
1807
1804
  };
@@ -2157,7 +2154,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2157
2154
  annotation?: Record<string, unknown> | undefined;
2158
2155
  originalActionId?: string | undefined;
2159
2156
  keepAssignment?: boolean | undefined;
2160
- waitFor?: boolean | undefined;
2161
2157
  createdAtLocation?: string | null | undefined;
2162
2158
  };
2163
2159
  output: {
@@ -2471,7 +2467,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2471
2467
  annotation?: Record<string, unknown> | undefined;
2472
2468
  originalActionId?: string | undefined;
2473
2469
  keepAssignment?: boolean | undefined;
2474
- waitFor?: boolean | undefined;
2475
2470
  createdAtLocation?: string | null | undefined;
2476
2471
  type?: "UNASSIGN" | undefined;
2477
2472
  assignedTo?: null | undefined;
@@ -2965,7 +2960,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2965
2960
  annotation?: Record<string, unknown> | undefined;
2966
2961
  originalActionId?: string | undefined;
2967
2962
  keepAssignment?: boolean | undefined;
2968
- waitFor?: boolean | undefined;
2969
2963
  createdAtLocation?: string | null | undefined;
2970
2964
  type?: "MARK_AS_DUPLICATE" | undefined;
2971
2965
  content?: {
@@ -3283,7 +3277,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3283
3277
  annotation?: Record<string, unknown> | undefined;
3284
3278
  originalActionId?: string | undefined;
3285
3279
  keepAssignment?: boolean | undefined;
3286
- waitFor?: boolean | undefined;
3287
3280
  createdAtLocation?: string | null | undefined;
3288
3281
  type?: "MARK_AS_NOT_DUPLICATE" | undefined;
3289
3282
  };
@@ -3982,10 +3975,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3982
3975
  output: {
3983
3976
  id: string & import("zod").$brand<"UUID">;
3984
3977
  name: {
3985
- use: string;
3986
- given: string[];
3987
- family: string;
3988
- }[];
3978
+ firstname: string;
3979
+ surname: string;
3980
+ };
3989
3981
  role: string;
3990
3982
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3991
3983
  type: "user";
@@ -4015,10 +4007,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4015
4007
  create: import("@trpc/server").TRPCMutationProcedure<{
4016
4008
  input: {
4017
4009
  name: {
4018
- use: string;
4019
- given: string[];
4020
- family: string;
4021
- }[];
4010
+ firstname: string;
4011
+ surname: string;
4012
+ };
4022
4013
  role: string;
4023
4014
  primaryOfficeId: string;
4024
4015
  data?: Record<string, unknown> | undefined;
@@ -4037,10 +4028,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4037
4028
  output: {
4038
4029
  id: string & import("zod").$brand<"UUID">;
4039
4030
  name: {
4040
- use: string;
4041
- given: string[];
4042
- family: string;
4043
- }[];
4031
+ firstname: string;
4032
+ surname: string;
4033
+ };
4044
4034
  role: string;
4045
4035
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4046
4036
  type: "user";
@@ -4061,10 +4051,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4061
4051
  id: string;
4062
4052
  data?: Record<string, unknown> | undefined;
4063
4053
  name?: {
4064
- use: string;
4065
- given: string[];
4066
- family: string;
4067
- }[] | undefined;
4054
+ firstname: string;
4055
+ surname: string;
4056
+ } | undefined;
4068
4057
  role?: string | undefined;
4069
4058
  fullHonorificName?: string | undefined;
4070
4059
  device?: string | undefined;
@@ -4081,10 +4070,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4081
4070
  output: {
4082
4071
  id: string & import("zod").$brand<"UUID">;
4083
4072
  name: {
4084
- use: string;
4085
- given: string[];
4086
- family: string;
4087
- }[];
4073
+ firstname: string;
4074
+ surname: string;
4075
+ };
4088
4076
  role: string;
4089
4077
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4090
4078
  type: "user";
@@ -4105,10 +4093,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4105
4093
  output: ({
4106
4094
  id: string & import("zod").$brand<"UUID">;
4107
4095
  name: {
4108
- use: string;
4109
- given: string[];
4110
- family: string;
4111
- }[];
4096
+ firstname: string;
4097
+ surname: string;
4098
+ };
4112
4099
  role: string;
4113
4100
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4114
4101
  type: "user";
@@ -4150,10 +4137,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4150
4137
  output: ({
4151
4138
  id: string & import("zod").$brand<"UUID">;
4152
4139
  name: {
4153
- use: string;
4154
- given: string[];
4155
- family: string;
4156
- }[];
4140
+ firstname: string;
4141
+ surname: string;
4142
+ };
4157
4143
  role: string;
4158
4144
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4159
4145
  type: "user";
@@ -4289,10 +4275,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4289
4275
  changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
4290
4276
  input: {
4291
4277
  userId: string;
4292
- avatar: {
4293
- type: string;
4294
- data: string;
4295
- };
4278
+ avatar: string;
4296
4279
  };
4297
4280
  output: void;
4298
4281
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4324,6 +4307,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4324
4307
  output: void;
4325
4308
  meta: import("trpc-to-openapi").OpenApiMeta;
4326
4309
  }>;
4310
+ verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
4311
+ input: {
4312
+ password: string;
4313
+ };
4314
+ output: {
4315
+ status: string;
4316
+ username: string;
4317
+ id: string;
4318
+ mobile?: string | undefined;
4319
+ };
4320
+ meta: import("trpc-to-openapi").OpenApiMeta;
4321
+ }>;
4327
4322
  audit: import("@trpc/server").TRPCBuiltRouter<{
4328
4323
  ctx: Partial<{
4329
4324
  token: `Bearer ${string}`;
@@ -4779,7 +4774,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4779
4774
  'legalStatuses.DECLARED.createdAtLocation'?: {
4780
4775
  type: "within";
4781
4776
  location: string | {
4782
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4777
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4783
4778
  $location?: string | undefined;
4784
4779
  };
4785
4780
  } | undefined;
@@ -4801,7 +4796,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4801
4796
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4802
4797
  type: "within";
4803
4798
  location: string | {
4804
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4799
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4805
4800
  $location?: string | undefined;
4806
4801
  };
4807
4802
  } | undefined;
@@ -4816,47 +4811,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4816
4811
  createdAtLocation?: {
4817
4812
  type: "within";
4818
4813
  location: string | {
4819
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4814
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4820
4815
  $location?: string | undefined;
4821
4816
  };
4822
4817
  } | {
4823
4818
  type: "exact";
4824
4819
  term: string | {
4825
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4820
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4826
4821
  $location?: string | undefined;
4827
4822
  };
4828
4823
  } | undefined;
4829
4824
  updatedAtLocation?: {
4830
4825
  type: "within";
4831
4826
  location: string | {
4832
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4827
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4833
4828
  $location?: string | undefined;
4834
4829
  };
4835
4830
  } | {
4836
4831
  type: "exact";
4837
4832
  term: string | {
4838
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4833
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4839
4834
  $location?: string | undefined;
4840
4835
  };
4841
4836
  } | undefined;
4842
4837
  updatedByUserRole?: {
4843
4838
  type: "exact";
4844
4839
  term: string | {
4845
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4840
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4846
4841
  $location?: string | undefined;
4847
4842
  };
4848
4843
  } | undefined;
4849
4844
  assignedTo?: {
4850
4845
  type: "exact";
4851
4846
  term: string | {
4852
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4847
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4853
4848
  $location?: string | undefined;
4854
4849
  };
4855
4850
  } | undefined;
4856
4851
  createdBy?: {
4857
4852
  type: "exact";
4858
4853
  term: string | {
4859
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4854
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4860
4855
  $location?: string | undefined;
4861
4856
  };
4862
4857
  } | undefined;
@@ -4867,7 +4862,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4867
4862
  updatedBy?: {
4868
4863
  type: "exact";
4869
4864
  term: string | {
4870
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4865
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4871
4866
  $location?: string | undefined;
4872
4867
  };
4873
4868
  } | undefined;
@@ -4917,7 +4912,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4917
4912
  'legalStatuses.DECLARED.createdAtLocation'?: {
4918
4913
  type: "within";
4919
4914
  location: string | {
4920
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4915
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4921
4916
  $location?: string | undefined;
4922
4917
  };
4923
4918
  } | undefined;
@@ -4939,7 +4934,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4939
4934
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4940
4935
  type: "within";
4941
4936
  location: string | {
4942
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4937
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4943
4938
  $location?: string | undefined;
4944
4939
  };
4945
4940
  } | undefined;
@@ -4954,47 +4949,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4954
4949
  createdAtLocation?: {
4955
4950
  type: "within";
4956
4951
  location: string | {
4957
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4952
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4958
4953
  $location?: string | undefined;
4959
4954
  };
4960
4955
  } | {
4961
4956
  type: "exact";
4962
4957
  term: string | {
4963
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4958
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4964
4959
  $location?: string | undefined;
4965
4960
  };
4966
4961
  } | undefined;
4967
4962
  updatedAtLocation?: {
4968
4963
  type: "within";
4969
4964
  location: string | {
4970
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4965
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4971
4966
  $location?: string | undefined;
4972
4967
  };
4973
4968
  } | {
4974
4969
  type: "exact";
4975
4970
  term: string | {
4976
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4971
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4977
4972
  $location?: string | undefined;
4978
4973
  };
4979
4974
  } | undefined;
4980
4975
  updatedByUserRole?: {
4981
4976
  type: "exact";
4982
4977
  term: string | {
4983
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4978
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4984
4979
  $location?: string | undefined;
4985
4980
  };
4986
4981
  } | undefined;
4987
4982
  assignedTo?: {
4988
4983
  type: "exact";
4989
4984
  term: string | {
4990
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4985
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4991
4986
  $location?: string | undefined;
4992
4987
  };
4993
4988
  } | undefined;
4994
4989
  createdBy?: {
4995
4990
  type: "exact";
4996
4991
  term: string | {
4997
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4992
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
4998
4993
  $location?: string | undefined;
4999
4994
  };
5000
4995
  } | undefined;
@@ -5005,7 +5000,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5005
5000
  updatedBy?: {
5006
5001
  type: "exact";
5007
5002
  term: string | {
5008
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5003
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "signature" | "avatar" | "primaryOfficeId";
5009
5004
  $location?: string | undefined;
5010
5005
  };
5011
5006
  } | undefined;
@@ -24,8 +24,14 @@ export declare const ApplicationConfig: z.ZodObject<{
24
24
  label: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
25
25
  }, z.core.$strip>>;
26
26
  PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
27
- USER_NOTIFICATION_DELIVERY_METHOD: z.ZodString;
28
- INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodString;
27
+ USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
28
+ email: "email";
29
+ sms: "sms";
30
+ }>;
31
+ INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
32
+ email: "email";
33
+ sms: "sms";
34
+ }>;
29
35
  SEARCH_DEFAULT_CRITERIA: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
30
36
  NAME: "NAME";
31
37
  EMAIL: "EMAIL";
@@ -46,8 +52,14 @@ export declare const BackgroundConfig: z.ZodObject<{
46
52
  export declare const LoginConfig: z.ZodObject<{
47
53
  COUNTRY: z.ZodString;
48
54
  LANGUAGES: z.ZodArray<z.ZodString>;
49
- USER_NOTIFICATION_DELIVERY_METHOD: z.ZodString;
50
- INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodString;
55
+ USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
56
+ email: "email";
57
+ sms: "sms";
58
+ }>;
59
+ INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
60
+ email: "email";
61
+ sms: "sms";
62
+ }>;
51
63
  PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
52
64
  LOGIN_BACKGROUND: z.ZodObject<{
53
65
  backgroundColor: z.ZodOptional<z.ZodString>;
@@ -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: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
90
+ $option: "role" | "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: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
95
+ $option: "role" | "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: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
99
+ $option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
100
100
  };
101
101
  };
102
102
  };