@opencrvs/toolkit 2.0.0-rc.f7427a1 → 2.0.0-rc.f79b1c0

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.
Files changed (39) hide show
  1. package/create-countryconfig/index.js +73 -0
  2. package/create-countryconfig/package.json +11 -0
  3. package/dist/application-config/index.js +53 -31
  4. package/dist/cli.js +334 -140
  5. package/dist/commons/api/router.d.ts +61 -52
  6. package/dist/commons/application-config/index.d.ts +16 -4
  7. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  8. package/dist/commons/events/ActionInput.d.ts +36 -0
  9. package/dist/commons/events/Draft.d.ts +1 -0
  10. package/dist/commons/events/FieldConfig.d.ts +10 -0
  11. package/dist/commons/events/locations.d.ts +38 -1
  12. package/dist/commons/events/mocks.test.utils.d.ts +19 -0
  13. package/dist/commons/events/scopes.d.ts +24 -1
  14. package/dist/conditionals/index.js +37 -7
  15. package/dist/events/index.js +143 -27
  16. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  17. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +60 -35
  18. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
  19. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  20. package/dist/migrations/v2.0/checkout-upstream-files.js +1 -2
  21. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +9 -1
  22. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -1
  23. package/dist/migrations/v2.0/delete-infrastructure-directory.js +66 -20
  24. package/dist/migrations/v2.0/index.d.ts +5 -3
  25. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  26. package/dist/migrations/v2.0/index.js +334 -140
  27. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  28. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +90 -1
  29. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +11 -1
  30. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -1
  31. package/dist/migrations/v2.0/merge-infrastructure-directory.js +17 -16
  32. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  33. package/dist/migrations/v2.0/migrate-workqueue-configs.js +140 -59
  34. package/dist/notification/index.js +50 -27
  35. package/dist/scopes/index.d.ts +87 -10
  36. package/dist/scopes/index.js +43 -8
  37. package/opencrvs-toolkit-2.0.0-rc.f79b1c0.tgz +0 -0
  38. package/package.json +1 -1
  39. package/opencrvs-toolkit-2.0.0-rc.f7427a1.tgz +0 -0
@@ -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,10 +3982,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3975
3982
  output: {
3976
3983
  id: string & import("zod").$brand<"UUID">;
3977
3984
  name: {
3978
- use: string;
3979
- given: string[];
3980
- family: string;
3981
- }[];
3985
+ firstname: string;
3986
+ surname: string;
3987
+ };
3982
3988
  role: string;
3983
3989
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3984
3990
  type: "user";
@@ -4008,10 +4014,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4008
4014
  create: import("@trpc/server").TRPCMutationProcedure<{
4009
4015
  input: {
4010
4016
  name: {
4011
- use: string;
4012
- given: string[];
4013
- family: string;
4014
- }[];
4017
+ firstname: string;
4018
+ surname: string;
4019
+ };
4015
4020
  role: string;
4016
4021
  primaryOfficeId: string;
4017
4022
  data?: Record<string, unknown> | undefined;
@@ -4030,10 +4035,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4030
4035
  output: {
4031
4036
  id: string & import("zod").$brand<"UUID">;
4032
4037
  name: {
4033
- use: string;
4034
- given: string[];
4035
- family: string;
4036
- }[];
4038
+ firstname: string;
4039
+ surname: string;
4040
+ };
4037
4041
  role: string;
4038
4042
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4039
4043
  type: "user";
@@ -4054,10 +4058,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4054
4058
  id: string;
4055
4059
  data?: Record<string, unknown> | undefined;
4056
4060
  name?: {
4057
- use: string;
4058
- given: string[];
4059
- family: string;
4060
- }[] | undefined;
4061
+ firstname: string;
4062
+ surname: string;
4063
+ } | undefined;
4061
4064
  role?: string | undefined;
4062
4065
  fullHonorificName?: string | undefined;
4063
4066
  device?: string | undefined;
@@ -4074,10 +4077,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4074
4077
  output: {
4075
4078
  id: string & import("zod").$brand<"UUID">;
4076
4079
  name: {
4077
- use: string;
4078
- given: string[];
4079
- family: string;
4080
- }[];
4080
+ firstname: string;
4081
+ surname: string;
4082
+ };
4081
4083
  role: string;
4082
4084
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4083
4085
  type: "user";
@@ -4098,10 +4100,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4098
4100
  output: ({
4099
4101
  id: string & import("zod").$brand<"UUID">;
4100
4102
  name: {
4101
- use: string;
4102
- given: string[];
4103
- family: string;
4104
- }[];
4103
+ firstname: string;
4104
+ surname: string;
4105
+ };
4105
4106
  role: string;
4106
4107
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4107
4108
  type: "user";
@@ -4143,10 +4144,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4143
4144
  output: ({
4144
4145
  id: string & import("zod").$brand<"UUID">;
4145
4146
  name: {
4146
- use: string;
4147
- given: string[];
4148
- family: string;
4149
- }[];
4147
+ firstname: string;
4148
+ surname: string;
4149
+ };
4150
4150
  role: string;
4151
4151
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4152
4152
  type: "user";
@@ -4282,10 +4282,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4282
4282
  changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
4283
4283
  input: {
4284
4284
  userId: string;
4285
- avatar: {
4286
- type: string;
4287
- data: string;
4288
- };
4285
+ avatar: string;
4289
4286
  };
4290
4287
  output: void;
4291
4288
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4317,6 +4314,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4317
4314
  output: void;
4318
4315
  meta: import("trpc-to-openapi").OpenApiMeta;
4319
4316
  }>;
4317
+ verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
4318
+ input: {
4319
+ password: string;
4320
+ };
4321
+ output: {
4322
+ status: string;
4323
+ username: string;
4324
+ id: string;
4325
+ mobile?: string | undefined;
4326
+ };
4327
+ meta: import("trpc-to-openapi").OpenApiMeta;
4328
+ }>;
4320
4329
  audit: import("@trpc/server").TRPCBuiltRouter<{
4321
4330
  ctx: Partial<{
4322
4331
  token: `Bearer ${string}`;
@@ -4772,7 +4781,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4772
4781
  'legalStatuses.DECLARED.createdAtLocation'?: {
4773
4782
  type: "within";
4774
4783
  location: string | {
4775
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4784
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4776
4785
  $location?: string | undefined;
4777
4786
  };
4778
4787
  } | undefined;
@@ -4794,7 +4803,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4794
4803
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4795
4804
  type: "within";
4796
4805
  location: string | {
4797
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4806
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4798
4807
  $location?: string | undefined;
4799
4808
  };
4800
4809
  } | undefined;
@@ -4809,47 +4818,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4809
4818
  createdAtLocation?: {
4810
4819
  type: "within";
4811
4820
  location: string | {
4812
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4821
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4813
4822
  $location?: string | undefined;
4814
4823
  };
4815
4824
  } | {
4816
4825
  type: "exact";
4817
4826
  term: string | {
4818
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4827
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4819
4828
  $location?: string | undefined;
4820
4829
  };
4821
4830
  } | undefined;
4822
4831
  updatedAtLocation?: {
4823
4832
  type: "within";
4824
4833
  location: string | {
4825
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4834
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4826
4835
  $location?: string | undefined;
4827
4836
  };
4828
4837
  } | {
4829
4838
  type: "exact";
4830
4839
  term: string | {
4831
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4840
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4832
4841
  $location?: string | undefined;
4833
4842
  };
4834
4843
  } | undefined;
4835
4844
  updatedByUserRole?: {
4836
4845
  type: "exact";
4837
4846
  term: string | {
4838
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4847
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4839
4848
  $location?: string | undefined;
4840
4849
  };
4841
4850
  } | undefined;
4842
4851
  assignedTo?: {
4843
4852
  type: "exact";
4844
4853
  term: string | {
4845
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4854
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4846
4855
  $location?: string | undefined;
4847
4856
  };
4848
4857
  } | undefined;
4849
4858
  createdBy?: {
4850
4859
  type: "exact";
4851
4860
  term: string | {
4852
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4861
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4853
4862
  $location?: string | undefined;
4854
4863
  };
4855
4864
  } | undefined;
@@ -4860,7 +4869,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4860
4869
  updatedBy?: {
4861
4870
  type: "exact";
4862
4871
  term: string | {
4863
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4872
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4864
4873
  $location?: string | undefined;
4865
4874
  };
4866
4875
  } | undefined;
@@ -4910,7 +4919,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4910
4919
  'legalStatuses.DECLARED.createdAtLocation'?: {
4911
4920
  type: "within";
4912
4921
  location: string | {
4913
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4922
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4914
4923
  $location?: string | undefined;
4915
4924
  };
4916
4925
  } | undefined;
@@ -4932,7 +4941,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4932
4941
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4933
4942
  type: "within";
4934
4943
  location: string | {
4935
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4944
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4936
4945
  $location?: string | undefined;
4937
4946
  };
4938
4947
  } | undefined;
@@ -4947,47 +4956,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4947
4956
  createdAtLocation?: {
4948
4957
  type: "within";
4949
4958
  location: string | {
4950
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4959
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4951
4960
  $location?: string | undefined;
4952
4961
  };
4953
4962
  } | {
4954
4963
  type: "exact";
4955
4964
  term: string | {
4956
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4965
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4957
4966
  $location?: string | undefined;
4958
4967
  };
4959
4968
  } | undefined;
4960
4969
  updatedAtLocation?: {
4961
4970
  type: "within";
4962
4971
  location: string | {
4963
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4972
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4964
4973
  $location?: string | undefined;
4965
4974
  };
4966
4975
  } | {
4967
4976
  type: "exact";
4968
4977
  term: string | {
4969
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4978
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4970
4979
  $location?: string | undefined;
4971
4980
  };
4972
4981
  } | undefined;
4973
4982
  updatedByUserRole?: {
4974
4983
  type: "exact";
4975
4984
  term: string | {
4976
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4985
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4977
4986
  $location?: string | undefined;
4978
4987
  };
4979
4988
  } | undefined;
4980
4989
  assignedTo?: {
4981
4990
  type: "exact";
4982
4991
  term: string | {
4983
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4992
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4984
4993
  $location?: string | undefined;
4985
4994
  };
4986
4995
  } | undefined;
4987
4996
  createdBy?: {
4988
4997
  type: "exact";
4989
4998
  term: string | {
4990
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4999
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
4991
5000
  $location?: string | undefined;
4992
5001
  };
4993
5002
  } | undefined;
@@ -4998,7 +5007,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4998
5007
  updatedBy?: {
4999
5008
  type: "exact";
5000
5009
  term: string | {
5001
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
5010
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
5002
5011
  $location?: string | undefined;
5003
5012
  };
5004
5013
  } | 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>;
@@ -86,17 +86,17 @@ 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" | "workqueue" | "dashboard.view";
90
- $option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
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" | "user.search" | "workqueue" | "dashboard.view";
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" | "workqueue" | "dashboard.view";
95
- $option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
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" | "user.search" | "workqueue" | "dashboard.view";
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" | "workqueue" | "dashboard.view";
99
- $option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
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" | "user.search" | "workqueue" | "dashboard.view";
99
+ $option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
100
100
  };
101
101
  };
102
102
  };