@opencrvs/toolkit 2.0.0-rc.4ac5bfa → 2.0.0-rc.53e0445

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 (72) hide show
  1. package/dist/application-config/index.js +4 -4
  2. package/dist/cli.js +1383 -142
  3. package/dist/commons/api/router.d.ts +55 -54
  4. package/dist/commons/application-config/index.d.ts +16 -4
  5. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  6. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +3 -4
  7. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  8. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  9. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  10. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
  11. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  12. package/dist/migrations/v2.0/checkout-upstream-files.js +17 -13
  13. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  14. package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
  15. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
  16. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
  17. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
  18. package/dist/migrations/v2.0/create-events-index.js +1 -2
  19. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +3 -0
  20. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  21. package/dist/migrations/v2.0/delete-infrastructure-directory.js +77 -0
  22. package/dist/migrations/v2.0/index.d.ts +8 -4
  23. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  24. package/dist/migrations/v2.0/index.js +1351 -139
  25. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  26. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +5 -6
  27. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +3 -0
  28. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  29. package/dist/migrations/v2.0/merge-infrastructure-directory.js +221 -0
  30. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  31. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  32. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  33. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  34. package/dist/migrations/v2.0/migrate-scopes.js +6 -7
  35. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
  36. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
  37. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  38. package/dist/migrations/v2.0/migrate-workqueue-configs.js +3 -4
  39. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
  40. package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
  41. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
  42. package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
  43. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
  44. package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
  45. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  46. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  47. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  48. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
  49. package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
  50. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  51. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  52. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  53. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
  54. package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
  55. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
  56. package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
  57. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  58. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  59. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  60. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
  61. package/dist/migrations/v2.0/rename-api-paths.js +3 -4
  62. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
  63. package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
  64. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
  65. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
  66. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  67. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  68. package/dist/migrations/v2.0/update-package-json.js +105 -0
  69. package/opencrvs-toolkit-2.0.0-rc.53e0445.tgz +0 -0
  70. package/package.json +1 -1
  71. package/tsconfig.tsbuildinfo +1 -1
  72. package/opencrvs-toolkit-2.0.0-rc.4ac5bfa.tgz +0 -0
@@ -3975,10 +3975,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3975
3975
  output: {
3976
3976
  id: string & import("zod").$brand<"UUID">;
3977
3977
  name: {
3978
- use: string;
3979
- given: string[];
3980
- family: string;
3981
- }[];
3978
+ firstname: string;
3979
+ surname: string;
3980
+ };
3982
3981
  role: string;
3983
3982
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3984
3983
  type: "user";
@@ -4008,10 +4007,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4008
4007
  create: import("@trpc/server").TRPCMutationProcedure<{
4009
4008
  input: {
4010
4009
  name: {
4011
- use: string;
4012
- given: string[];
4013
- family: string;
4014
- }[];
4010
+ firstname: string;
4011
+ surname: string;
4012
+ };
4015
4013
  role: string;
4016
4014
  primaryOfficeId: string;
4017
4015
  data?: Record<string, unknown> | undefined;
@@ -4020,6 +4018,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4020
4018
  email?: string | undefined;
4021
4019
  mobile?: string | undefined;
4022
4020
  username?: undefined;
4021
+ password?: undefined;
4023
4022
  signature?: {
4024
4023
  path: string;
4025
4024
  originalFilename: string;
@@ -4029,10 +4028,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4029
4028
  output: {
4030
4029
  id: string & import("zod").$brand<"UUID">;
4031
4030
  name: {
4032
- use: string;
4033
- given: string[];
4034
- family: string;
4035
- }[];
4031
+ firstname: string;
4032
+ surname: string;
4033
+ };
4036
4034
  role: string;
4037
4035
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4038
4036
  type: "user";
@@ -4053,10 +4051,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4053
4051
  id: string;
4054
4052
  data?: Record<string, unknown> | undefined;
4055
4053
  name?: {
4056
- use: string;
4057
- given: string[];
4058
- family: string;
4059
- }[] | undefined;
4054
+ firstname: string;
4055
+ surname: string;
4056
+ } | undefined;
4060
4057
  role?: string | undefined;
4061
4058
  fullHonorificName?: string | undefined;
4062
4059
  device?: string | undefined;
@@ -4069,16 +4066,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4069
4066
  type: string;
4070
4067
  } | undefined;
4071
4068
  status?: "active" | "deactivated" | undefined;
4072
- } & {
4073
- id: string;
4074
4069
  };
4075
4070
  output: {
4076
4071
  id: string & import("zod").$brand<"UUID">;
4077
4072
  name: {
4078
- use: string;
4079
- given: string[];
4080
- family: string;
4081
- }[];
4073
+ firstname: string;
4074
+ surname: string;
4075
+ };
4082
4076
  role: string;
4083
4077
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4084
4078
  type: "user";
@@ -4099,10 +4093,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4099
4093
  output: ({
4100
4094
  id: string & import("zod").$brand<"UUID">;
4101
4095
  name: {
4102
- use: string;
4103
- given: string[];
4104
- family: string;
4105
- }[];
4096
+ firstname: string;
4097
+ surname: string;
4098
+ };
4106
4099
  role: string;
4107
4100
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4108
4101
  type: "user";
@@ -4144,10 +4137,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4144
4137
  output: ({
4145
4138
  id: string & import("zod").$brand<"UUID">;
4146
4139
  name: {
4147
- use: string;
4148
- given: string[];
4149
- family: string;
4150
- }[];
4140
+ firstname: string;
4141
+ surname: string;
4142
+ };
4151
4143
  role: string;
4152
4144
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4153
4145
  type: "user";
@@ -4283,10 +4275,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4283
4275
  changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
4284
4276
  input: {
4285
4277
  userId: string;
4286
- avatar: {
4287
- type: string;
4288
- data: string;
4289
- };
4278
+ avatar: string;
4290
4279
  };
4291
4280
  output: void;
4292
4281
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4318,6 +4307,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4318
4307
  output: void;
4319
4308
  meta: import("trpc-to-openapi").OpenApiMeta;
4320
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
+ }>;
4321
4322
  audit: import("@trpc/server").TRPCBuiltRouter<{
4322
4323
  ctx: Partial<{
4323
4324
  token: `Bearer ${string}`;
@@ -4773,7 +4774,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4773
4774
  'legalStatuses.DECLARED.createdAtLocation'?: {
4774
4775
  type: "within";
4775
4776
  location: string | {
4776
- $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";
4777
4778
  $location?: string | undefined;
4778
4779
  };
4779
4780
  } | undefined;
@@ -4795,7 +4796,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4795
4796
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4796
4797
  type: "within";
4797
4798
  location: string | {
4798
- $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";
4799
4800
  $location?: string | undefined;
4800
4801
  };
4801
4802
  } | undefined;
@@ -4810,47 +4811,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4810
4811
  createdAtLocation?: {
4811
4812
  type: "within";
4812
4813
  location: string | {
4813
- $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";
4814
4815
  $location?: string | undefined;
4815
4816
  };
4816
4817
  } | {
4817
4818
  type: "exact";
4818
4819
  term: string | {
4819
- $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";
4820
4821
  $location?: string | undefined;
4821
4822
  };
4822
4823
  } | undefined;
4823
4824
  updatedAtLocation?: {
4824
4825
  type: "within";
4825
4826
  location: string | {
4826
- $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";
4827
4828
  $location?: string | undefined;
4828
4829
  };
4829
4830
  } | {
4830
4831
  type: "exact";
4831
4832
  term: string | {
4832
- $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";
4833
4834
  $location?: string | undefined;
4834
4835
  };
4835
4836
  } | undefined;
4836
4837
  updatedByUserRole?: {
4837
4838
  type: "exact";
4838
4839
  term: string | {
4839
- $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";
4840
4841
  $location?: string | undefined;
4841
4842
  };
4842
4843
  } | undefined;
4843
4844
  assignedTo?: {
4844
4845
  type: "exact";
4845
4846
  term: string | {
4846
- $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";
4847
4848
  $location?: string | undefined;
4848
4849
  };
4849
4850
  } | undefined;
4850
4851
  createdBy?: {
4851
4852
  type: "exact";
4852
4853
  term: string | {
4853
- $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";
4854
4855
  $location?: string | undefined;
4855
4856
  };
4856
4857
  } | undefined;
@@ -4861,7 +4862,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4861
4862
  updatedBy?: {
4862
4863
  type: "exact";
4863
4864
  term: string | {
4864
- $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";
4865
4866
  $location?: string | undefined;
4866
4867
  };
4867
4868
  } | undefined;
@@ -4911,7 +4912,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4911
4912
  'legalStatuses.DECLARED.createdAtLocation'?: {
4912
4913
  type: "within";
4913
4914
  location: string | {
4914
- $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";
4915
4916
  $location?: string | undefined;
4916
4917
  };
4917
4918
  } | undefined;
@@ -4933,7 +4934,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4933
4934
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4934
4935
  type: "within";
4935
4936
  location: string | {
4936
- $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";
4937
4938
  $location?: string | undefined;
4938
4939
  };
4939
4940
  } | undefined;
@@ -4948,47 +4949,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4948
4949
  createdAtLocation?: {
4949
4950
  type: "within";
4950
4951
  location: string | {
4951
- $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";
4952
4953
  $location?: string | undefined;
4953
4954
  };
4954
4955
  } | {
4955
4956
  type: "exact";
4956
4957
  term: string | {
4957
- $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";
4958
4959
  $location?: string | undefined;
4959
4960
  };
4960
4961
  } | undefined;
4961
4962
  updatedAtLocation?: {
4962
4963
  type: "within";
4963
4964
  location: string | {
4964
- $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";
4965
4966
  $location?: string | undefined;
4966
4967
  };
4967
4968
  } | {
4968
4969
  type: "exact";
4969
4970
  term: string | {
4970
- $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";
4971
4972
  $location?: string | undefined;
4972
4973
  };
4973
4974
  } | undefined;
4974
4975
  updatedByUserRole?: {
4975
4976
  type: "exact";
4976
4977
  term: string | {
4977
- $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";
4978
4979
  $location?: string | undefined;
4979
4980
  };
4980
4981
  } | undefined;
4981
4982
  assignedTo?: {
4982
4983
  type: "exact";
4983
4984
  term: string | {
4984
- $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";
4985
4986
  $location?: string | undefined;
4986
4987
  };
4987
4988
  } | undefined;
4988
4989
  createdBy?: {
4989
4990
  type: "exact";
4990
4991
  term: string | {
4991
- $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";
4992
4993
  $location?: string | undefined;
4993
4994
  };
4994
4995
  } | undefined;
@@ -4999,7 +5000,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4999
5000
  updatedBy?: {
5000
5001
  type: "exact";
5001
5002
  term: string | {
5002
- $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";
5003
5004
  $location?: string | undefined;
5004
5005
  };
5005
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>;
@@ -1 +1 @@
1
- {"version":3,"file":"add-birth-certificate-issuance-flag.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/add-birth-certificate-issuance-flag.ts"],"names":[],"mappings":"AA6aA,iBAAe,IAAI,kBAiDlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"add-birth-certificate-issuance-flag.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/add-birth-certificate-issuance-flag.ts"],"names":[],"mappings":"AA2aA,iBAAe,IAAI,kBAiDlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -48,7 +48,6 @@ exports.main = main;
48
48
  */
49
49
  const ts_morph_1 = require("ts-morph");
50
50
  const path_1 = __importDefault(require("path"));
51
- const _1 = require(".");
52
51
  const DEFINE_CONFIG_NAME = 'defineConfig';
53
52
  const DEFINE_WORKQUEUES_NAME = 'defineWorkqueues';
54
53
  const ACTIONS_PROPERTY_NAME = 'actions';
@@ -318,7 +317,7 @@ function processFile(filePath, project) {
318
317
  if (!sourceFile)
319
318
  return 0;
320
319
  let totalChanges = 0;
321
- const relPath = path_1.default.relative((0, _1.getCwd)(), filePath);
320
+ const relPath = path_1.default.relative(process.cwd(), filePath);
322
321
  const callExpressions = sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.CallExpression);
323
322
  for (const call of callExpressions) {
324
323
  const expression = call.getExpression();
@@ -369,7 +368,7 @@ function processFile(filePath, project) {
369
368
  // ─── Entry point ─────────────────────────────────────────────────────────────
370
369
  function main() {
371
370
  return __awaiter(this, void 0, void 0, function* () {
372
- const srcDir = path_1.default.join((0, _1.getCwd)(), 'src');
371
+ const srcDir = path_1.default.join(process.cwd(), 'src');
373
372
  console.log(`Scanning for birth defineConfig and PRINT_CERTIFICATE workqueues in: ${srcDir}\n`);
374
373
  const project = new ts_morph_1.Project({
375
374
  tsConfigFilePath: path_1.default.resolve(srcDir, '../tsconfig.json'),
@@ -398,7 +397,7 @@ function main() {
398
397
  for (const filePath of modifiedFiles) {
399
398
  const sourceFile = project.getSourceFileOrThrow(filePath);
400
399
  yield sourceFile.save();
401
- console.log(` Saved: ${path_1.default.relative((0, _1.getCwd)(), filePath)}`);
400
+ console.log(` Saved: ${path_1.default.relative(process.cwd(), filePath)}`);
402
401
  }
403
402
  console.log(`\nDone. Applied ${totalChanges} change(s) across ${modifiedFiles.length} file(s).`);
404
403
  });
@@ -0,0 +1,3 @@
1
+ declare function main(): Promise<void>;
2
+ export { main };
3
+ //# sourceMappingURL=add-resend-invite-notification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-resend-invite-notification.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/add-resend-invite-notification.ts"],"names":[],"mappings":"AA8ZA,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAuCnC;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}