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

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 (70) hide show
  1. package/dist/cli.js +1383 -142
  2. package/dist/commons/api/router.d.ts +49 -43
  3. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  4. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +3 -4
  5. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  6. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  7. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  8. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
  9. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  10. package/dist/migrations/v2.0/checkout-upstream-files.js +17 -13
  11. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  12. package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
  13. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
  14. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
  15. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
  16. package/dist/migrations/v2.0/create-events-index.js +1 -2
  17. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +3 -0
  18. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  19. package/dist/migrations/v2.0/delete-infrastructure-directory.js +77 -0
  20. package/dist/migrations/v2.0/index.d.ts +8 -4
  21. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  22. package/dist/migrations/v2.0/index.js +1351 -139
  23. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  24. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +5 -6
  25. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +3 -0
  26. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  27. package/dist/migrations/v2.0/merge-infrastructure-directory.js +221 -0
  28. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  29. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  30. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  31. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  32. package/dist/migrations/v2.0/migrate-scopes.js +6 -7
  33. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
  34. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
  35. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  36. package/dist/migrations/v2.0/migrate-workqueue-configs.js +3 -4
  37. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
  38. package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
  39. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
  40. package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
  41. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
  42. package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
  43. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  44. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  45. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  46. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
  47. package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
  48. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  49. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  50. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  51. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
  52. package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
  53. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
  54. package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
  55. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  56. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  57. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  58. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
  59. package/dist/migrations/v2.0/rename-api-paths.js +3 -4
  60. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
  61. package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
  62. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
  63. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
  64. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  65. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  66. package/dist/migrations/v2.0/update-package-json.js +105 -0
  67. package/opencrvs-toolkit-2.0.0-rc.f7427a1.tgz +0 -0
  68. package/package.json +1 -1
  69. package/tsconfig.tsbuildinfo +1 -1
  70. package/opencrvs-toolkit-2.0.0-rc.f281551.tgz +0 -0
@@ -3975,9 +3975,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3975
3975
  output: {
3976
3976
  id: string & import("zod").$brand<"UUID">;
3977
3977
  name: {
3978
- firstname: string;
3979
- surname: string;
3980
- };
3978
+ use: string;
3979
+ given: string[];
3980
+ family: string;
3981
+ }[];
3981
3982
  role: string;
3982
3983
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3983
3984
  type: "user";
@@ -4007,9 +4008,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4007
4008
  create: import("@trpc/server").TRPCMutationProcedure<{
4008
4009
  input: {
4009
4010
  name: {
4010
- firstname: string;
4011
- surname: string;
4012
- };
4011
+ use: string;
4012
+ given: string[];
4013
+ family: string;
4014
+ }[];
4013
4015
  role: string;
4014
4016
  primaryOfficeId: string;
4015
4017
  data?: Record<string, unknown> | undefined;
@@ -4018,6 +4020,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4018
4020
  email?: string | undefined;
4019
4021
  mobile?: string | undefined;
4020
4022
  username?: undefined;
4023
+ password?: undefined;
4021
4024
  signature?: {
4022
4025
  path: string;
4023
4026
  originalFilename: string;
@@ -4027,9 +4030,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4027
4030
  output: {
4028
4031
  id: string & import("zod").$brand<"UUID">;
4029
4032
  name: {
4030
- firstname: string;
4031
- surname: string;
4032
- };
4033
+ use: string;
4034
+ given: string[];
4035
+ family: string;
4036
+ }[];
4033
4037
  role: string;
4034
4038
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4035
4039
  type: "user";
@@ -4050,9 +4054,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4050
4054
  id: string;
4051
4055
  data?: Record<string, unknown> | undefined;
4052
4056
  name?: {
4053
- firstname: string;
4054
- surname: string;
4055
- } | undefined;
4057
+ use: string;
4058
+ given: string[];
4059
+ family: string;
4060
+ }[] | undefined;
4056
4061
  role?: string | undefined;
4057
4062
  fullHonorificName?: string | undefined;
4058
4063
  device?: string | undefined;
@@ -4065,15 +4070,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4065
4070
  type: string;
4066
4071
  } | undefined;
4067
4072
  status?: "active" | "deactivated" | undefined;
4068
- } & {
4069
- id: string;
4070
4073
  };
4071
4074
  output: {
4072
4075
  id: string & import("zod").$brand<"UUID">;
4073
4076
  name: {
4074
- firstname: string;
4075
- surname: string;
4076
- };
4077
+ use: string;
4078
+ given: string[];
4079
+ family: string;
4080
+ }[];
4077
4081
  role: string;
4078
4082
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4079
4083
  type: "user";
@@ -4094,9 +4098,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4094
4098
  output: ({
4095
4099
  id: string & import("zod").$brand<"UUID">;
4096
4100
  name: {
4097
- firstname: string;
4098
- surname: string;
4099
- };
4101
+ use: string;
4102
+ given: string[];
4103
+ family: string;
4104
+ }[];
4100
4105
  role: string;
4101
4106
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4102
4107
  type: "user";
@@ -4138,9 +4143,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4138
4143
  output: ({
4139
4144
  id: string & import("zod").$brand<"UUID">;
4140
4145
  name: {
4141
- firstname: string;
4142
- surname: string;
4143
- };
4146
+ use: string;
4147
+ given: string[];
4148
+ family: string;
4149
+ }[];
4144
4150
  role: string;
4145
4151
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4146
4152
  type: "user";
@@ -4766,7 +4772,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4766
4772
  'legalStatuses.DECLARED.createdAtLocation'?: {
4767
4773
  type: "within";
4768
4774
  location: string | {
4769
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4775
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4770
4776
  $location?: string | undefined;
4771
4777
  };
4772
4778
  } | undefined;
@@ -4788,7 +4794,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4788
4794
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4789
4795
  type: "within";
4790
4796
  location: string | {
4791
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4797
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4792
4798
  $location?: string | undefined;
4793
4799
  };
4794
4800
  } | undefined;
@@ -4803,47 +4809,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4803
4809
  createdAtLocation?: {
4804
4810
  type: "within";
4805
4811
  location: string | {
4806
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4812
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4807
4813
  $location?: string | undefined;
4808
4814
  };
4809
4815
  } | {
4810
4816
  type: "exact";
4811
4817
  term: string | {
4812
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4818
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4813
4819
  $location?: string | undefined;
4814
4820
  };
4815
4821
  } | undefined;
4816
4822
  updatedAtLocation?: {
4817
4823
  type: "within";
4818
4824
  location: string | {
4819
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4825
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4820
4826
  $location?: string | undefined;
4821
4827
  };
4822
4828
  } | {
4823
4829
  type: "exact";
4824
4830
  term: string | {
4825
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4831
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4826
4832
  $location?: string | undefined;
4827
4833
  };
4828
4834
  } | undefined;
4829
4835
  updatedByUserRole?: {
4830
4836
  type: "exact";
4831
4837
  term: string | {
4832
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4838
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4833
4839
  $location?: string | undefined;
4834
4840
  };
4835
4841
  } | undefined;
4836
4842
  assignedTo?: {
4837
4843
  type: "exact";
4838
4844
  term: string | {
4839
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4845
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4840
4846
  $location?: string | undefined;
4841
4847
  };
4842
4848
  } | undefined;
4843
4849
  createdBy?: {
4844
4850
  type: "exact";
4845
4851
  term: string | {
4846
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4852
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4847
4853
  $location?: string | undefined;
4848
4854
  };
4849
4855
  } | undefined;
@@ -4854,7 +4860,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4854
4860
  updatedBy?: {
4855
4861
  type: "exact";
4856
4862
  term: string | {
4857
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4863
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4858
4864
  $location?: string | undefined;
4859
4865
  };
4860
4866
  } | undefined;
@@ -4904,7 +4910,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4904
4910
  'legalStatuses.DECLARED.createdAtLocation'?: {
4905
4911
  type: "within";
4906
4912
  location: string | {
4907
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4913
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4908
4914
  $location?: string | undefined;
4909
4915
  };
4910
4916
  } | undefined;
@@ -4926,7 +4932,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4926
4932
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4927
4933
  type: "within";
4928
4934
  location: string | {
4929
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4935
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4930
4936
  $location?: string | undefined;
4931
4937
  };
4932
4938
  } | undefined;
@@ -4941,47 +4947,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4941
4947
  createdAtLocation?: {
4942
4948
  type: "within";
4943
4949
  location: string | {
4944
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4950
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4945
4951
  $location?: string | undefined;
4946
4952
  };
4947
4953
  } | {
4948
4954
  type: "exact";
4949
4955
  term: string | {
4950
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4956
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4951
4957
  $location?: string | undefined;
4952
4958
  };
4953
4959
  } | undefined;
4954
4960
  updatedAtLocation?: {
4955
4961
  type: "within";
4956
4962
  location: string | {
4957
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4963
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4958
4964
  $location?: string | undefined;
4959
4965
  };
4960
4966
  } | {
4961
4967
  type: "exact";
4962
4968
  term: string | {
4963
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4969
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4964
4970
  $location?: string | undefined;
4965
4971
  };
4966
4972
  } | undefined;
4967
4973
  updatedByUserRole?: {
4968
4974
  type: "exact";
4969
4975
  term: string | {
4970
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4976
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4971
4977
  $location?: string | undefined;
4972
4978
  };
4973
4979
  } | undefined;
4974
4980
  assignedTo?: {
4975
4981
  type: "exact";
4976
4982
  term: string | {
4977
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4983
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4978
4984
  $location?: string | undefined;
4979
4985
  };
4980
4986
  } | undefined;
4981
4987
  createdBy?: {
4982
4988
  type: "exact";
4983
4989
  term: string | {
4984
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4990
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4985
4991
  $location?: string | undefined;
4986
4992
  };
4987
4993
  } | undefined;
@@ -4992,7 +4998,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4992
4998
  updatedBy?: {
4993
4999
  type: "exact";
4994
5000
  term: string | {
4995
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
5001
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4996
5002
  $location?: string | undefined;
4997
5003
  };
4998
5004
  } | undefined;
@@ -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"}