@opencrvs/toolkit 2.0.0-rc.3855fe8 → 2.0.0-rc.3c7efd6

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 (78) hide show
  1. package/dist/application-config/index.js +11 -10
  2. package/dist/cli.js +1394 -152
  3. package/dist/commons/api/router.d.ts +45 -68
  4. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  5. package/dist/commons/events/FieldConfig.d.ts +10 -0
  6. package/dist/conditionals/index.js +11 -10
  7. package/dist/events/index.js +11 -10
  8. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  9. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +3 -4
  10. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  11. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  12. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  13. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
  14. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  15. package/dist/migrations/v2.0/checkout-upstream-files.js +17 -13
  16. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  17. package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
  18. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
  19. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
  20. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
  21. package/dist/migrations/v2.0/create-events-index.js +1 -2
  22. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +3 -0
  23. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  24. package/dist/migrations/v2.0/delete-infrastructure-directory.js +77 -0
  25. package/dist/migrations/v2.0/index.d.ts +8 -4
  26. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  27. package/dist/migrations/v2.0/index.js +1362 -149
  28. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  29. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +5 -6
  30. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +3 -0
  31. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  32. package/dist/migrations/v2.0/merge-infrastructure-directory.js +221 -0
  33. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  34. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  35. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  36. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  37. package/dist/migrations/v2.0/migrate-scopes.js +6 -7
  38. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
  39. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
  40. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  41. package/dist/migrations/v2.0/migrate-workqueue-configs.js +3 -4
  42. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
  43. package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
  44. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
  45. package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
  46. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
  47. package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
  48. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  49. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  50. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  51. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
  52. package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
  53. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  54. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  55. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  56. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
  57. package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
  58. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
  59. package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
  60. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  61. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  62. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  63. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
  64. package/dist/migrations/v2.0/rename-api-paths.js +3 -4
  65. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
  66. package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
  67. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
  68. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
  69. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  70. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  71. package/dist/migrations/v2.0/update-package-json.js +105 -0
  72. package/dist/notification/index.js +11 -10
  73. package/dist/scopes/index.d.ts +8 -1
  74. package/dist/scopes/index.js +11 -10
  75. package/opencrvs-toolkit-2.0.0-rc.3c7efd6.tgz +0 -0
  76. package/package.json +1 -1
  77. package/tsconfig.tsbuildinfo +1 -1
  78. package/opencrvs-toolkit-2.0.0-rc.3855fe8.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";
@@ -4098,34 +4092,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4098
4092
  input: string[];
4099
4093
  output: ({
4100
4094
  id: string & import("zod").$brand<"UUID">;
4095
+ type: "user";
4101
4096
  name: {
4102
- use: string;
4103
- given: string[];
4104
- family: string;
4105
- }[];
4097
+ firstname: string;
4098
+ surname: string;
4099
+ };
4106
4100
  role: string;
4107
- primaryOfficeId: string & import("zod").$brand<"UUID">;
4108
- type: "user";
4109
- status: "active" | "pending" | "deactivated";
4110
- avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4111
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4112
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4113
- device?: string | undefined;
4114
4101
  fullHonorificName?: string | undefined;
4115
- mobile?: string | undefined;
4116
- email?: string | undefined;
4117
- data?: Record<string, import("../commons").FieldValue> | undefined;
4102
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4118
4103
  } | {
4119
4104
  id: string & import("zod").$brand<"UUID">;
4120
- name: string;
4121
4105
  type: "system";
4122
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4123
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4124
- signature?: undefined;
4125
- avatar?: undefined;
4126
- fullHonorificName?: string | undefined;
4127
- legacyId?: string | undefined;
4128
- status?: undefined;
4106
+ name: string;
4129
4107
  })[];
4130
4108
  meta: import("trpc-to-openapi").OpenApiMeta;
4131
4109
  }>;
@@ -4144,10 +4122,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4144
4122
  output: ({
4145
4123
  id: string & import("zod").$brand<"UUID">;
4146
4124
  name: {
4147
- use: string;
4148
- given: string[];
4149
- family: string;
4150
- }[];
4125
+ firstname: string;
4126
+ surname: string;
4127
+ };
4151
4128
  role: string;
4152
4129
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4153
4130
  type: "user";
@@ -4773,7 +4750,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4773
4750
  'legalStatuses.DECLARED.createdAtLocation'?: {
4774
4751
  type: "within";
4775
4752
  location: string | {
4776
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4753
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4777
4754
  $location?: string | undefined;
4778
4755
  };
4779
4756
  } | undefined;
@@ -4795,7 +4772,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4795
4772
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4796
4773
  type: "within";
4797
4774
  location: string | {
4798
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4775
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4799
4776
  $location?: string | undefined;
4800
4777
  };
4801
4778
  } | undefined;
@@ -4810,47 +4787,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4810
4787
  createdAtLocation?: {
4811
4788
  type: "within";
4812
4789
  location: string | {
4813
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4790
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4814
4791
  $location?: string | undefined;
4815
4792
  };
4816
4793
  } | {
4817
4794
  type: "exact";
4818
4795
  term: string | {
4819
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4796
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4820
4797
  $location?: string | undefined;
4821
4798
  };
4822
4799
  } | undefined;
4823
4800
  updatedAtLocation?: {
4824
4801
  type: "within";
4825
4802
  location: string | {
4826
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4803
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4827
4804
  $location?: string | undefined;
4828
4805
  };
4829
4806
  } | {
4830
4807
  type: "exact";
4831
4808
  term: string | {
4832
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4809
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4833
4810
  $location?: string | undefined;
4834
4811
  };
4835
4812
  } | undefined;
4836
4813
  updatedByUserRole?: {
4837
4814
  type: "exact";
4838
4815
  term: string | {
4839
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4816
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4840
4817
  $location?: string | undefined;
4841
4818
  };
4842
4819
  } | undefined;
4843
4820
  assignedTo?: {
4844
4821
  type: "exact";
4845
4822
  term: string | {
4846
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4823
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4847
4824
  $location?: string | undefined;
4848
4825
  };
4849
4826
  } | undefined;
4850
4827
  createdBy?: {
4851
4828
  type: "exact";
4852
4829
  term: string | {
4853
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4830
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4854
4831
  $location?: string | undefined;
4855
4832
  };
4856
4833
  } | undefined;
@@ -4861,7 +4838,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4861
4838
  updatedBy?: {
4862
4839
  type: "exact";
4863
4840
  term: string | {
4864
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4841
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4865
4842
  $location?: string | undefined;
4866
4843
  };
4867
4844
  } | undefined;
@@ -4911,7 +4888,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4911
4888
  'legalStatuses.DECLARED.createdAtLocation'?: {
4912
4889
  type: "within";
4913
4890
  location: string | {
4914
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4891
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4915
4892
  $location?: string | undefined;
4916
4893
  };
4917
4894
  } | undefined;
@@ -4933,7 +4910,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4933
4910
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4934
4911
  type: "within";
4935
4912
  location: string | {
4936
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4913
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4937
4914
  $location?: string | undefined;
4938
4915
  };
4939
4916
  } | undefined;
@@ -4948,47 +4925,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4948
4925
  createdAtLocation?: {
4949
4926
  type: "within";
4950
4927
  location: string | {
4951
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4928
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4952
4929
  $location?: string | undefined;
4953
4930
  };
4954
4931
  } | {
4955
4932
  type: "exact";
4956
4933
  term: string | {
4957
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4934
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4958
4935
  $location?: string | undefined;
4959
4936
  };
4960
4937
  } | undefined;
4961
4938
  updatedAtLocation?: {
4962
4939
  type: "within";
4963
4940
  location: string | {
4964
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4941
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4965
4942
  $location?: string | undefined;
4966
4943
  };
4967
4944
  } | {
4968
4945
  type: "exact";
4969
4946
  term: string | {
4970
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4947
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4971
4948
  $location?: string | undefined;
4972
4949
  };
4973
4950
  } | undefined;
4974
4951
  updatedByUserRole?: {
4975
4952
  type: "exact";
4976
4953
  term: string | {
4977
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4954
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4978
4955
  $location?: string | undefined;
4979
4956
  };
4980
4957
  } | undefined;
4981
4958
  assignedTo?: {
4982
4959
  type: "exact";
4983
4960
  term: string | {
4984
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4961
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4985
4962
  $location?: string | undefined;
4986
4963
  };
4987
4964
  } | undefined;
4988
4965
  createdBy?: {
4989
4966
  type: "exact";
4990
4967
  term: string | {
4991
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4968
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4992
4969
  $location?: string | undefined;
4993
4970
  };
4994
4971
  } | undefined;
@@ -4999,7 +4976,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4999
4976
  updatedBy?: {
5000
4977
  type: "exact";
5001
4978
  term: string | {
5002
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "middlename" | "avatar" | "signature" | "primaryOfficeId";
4979
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
5003
4980
  $location?: string | undefined;
5004
4981
  };
5005
4982
  } | undefined;
@@ -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
  };
@@ -1723,10 +1723,12 @@ declare const AdministrativeAreaField: z.ZodObject<{
1723
1723
  "user.read": "user.read";
1724
1724
  "user.create": "user.create";
1725
1725
  "user.edit": "user.edit";
1726
+ "user.search": "user.search";
1726
1727
  workqueue: "workqueue";
1727
1728
  "dashboard.view": "dashboard.view";
1728
1729
  }>;
1729
1730
  $option: z.ZodEnum<{
1731
+ role: "role";
1730
1732
  event: "event";
1731
1733
  placeOfEvent: "placeOfEvent";
1732
1734
  declaredIn: "declaredIn";
@@ -1841,10 +1843,12 @@ declare const LocationInput: z.ZodObject<{
1841
1843
  "user.read": "user.read";
1842
1844
  "user.create": "user.create";
1843
1845
  "user.edit": "user.edit";
1846
+ "user.search": "user.search";
1844
1847
  workqueue: "workqueue";
1845
1848
  "dashboard.view": "dashboard.view";
1846
1849
  }>;
1847
1850
  $option: z.ZodEnum<{
1851
+ role: "role";
1848
1852
  event: "event";
1849
1853
  placeOfEvent: "placeOfEvent";
1850
1854
  declaredIn: "declaredIn";
@@ -2024,10 +2028,12 @@ declare const Facility: z.ZodObject<{
2024
2028
  "user.read": "user.read";
2025
2029
  "user.create": "user.create";
2026
2030
  "user.edit": "user.edit";
2031
+ "user.search": "user.search";
2027
2032
  workqueue: "workqueue";
2028
2033
  "dashboard.view": "dashboard.view";
2029
2034
  }>;
2030
2035
  $option: z.ZodEnum<{
2036
+ role: "role";
2031
2037
  event: "event";
2032
2038
  placeOfEvent: "placeOfEvent";
2033
2039
  declaredIn: "declaredIn";
@@ -2128,10 +2134,12 @@ declare const Office: z.ZodObject<{
2128
2134
  "user.read": "user.read";
2129
2135
  "user.create": "user.create";
2130
2136
  "user.edit": "user.edit";
2137
+ "user.search": "user.search";
2131
2138
  workqueue: "workqueue";
2132
2139
  "dashboard.view": "dashboard.view";
2133
2140
  }>;
2134
2141
  $option: z.ZodEnum<{
2142
+ role: "role";
2135
2143
  event: "event";
2136
2144
  placeOfEvent: "placeOfEvent";
2137
2145
  declaredIn: "declaredIn";
@@ -2319,10 +2327,12 @@ declare const Address: z.ZodObject<{
2319
2327
  "user.read": "user.read";
2320
2328
  "user.create": "user.create";
2321
2329
  "user.edit": "user.edit";
2330
+ "user.search": "user.search";
2322
2331
  workqueue: "workqueue";
2323
2332
  "dashboard.view": "dashboard.view";
2324
2333
  }>;
2325
2334
  $option: z.ZodEnum<{
2335
+ role: "role";
2326
2336
  event: "event";
2327
2337
  placeOfEvent: "placeOfEvent";
2328
2338
  declaredIn: "declaredIn";
@@ -209,6 +209,9 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
209
209
  var AccessLevelOptions = z6.object({
210
210
  accessLevel: JurisdictionFilter.optional()
211
211
  });
212
+ var AllUserScopeOptions = AccessLevelOptions.extend({
213
+ role: userRole.optional()
214
+ });
212
215
  var WorkqueueOrDashboardOptions = z6.object({
213
216
  ids: z6.preprocess(
214
217
  (val) => val === void 0 ? void 0 : [val].flat(),
@@ -218,6 +221,7 @@ var WorkqueueOrDashboardOptions = z6.object({
218
221
  var AllScopeOptions = z6.object({
219
222
  ...AllRecordScopeOptions.shape,
220
223
  ...AccessLevelOptions.shape,
224
+ ...AllUserScopeOptions.shape,
221
225
  ...WorkqueueOrDashboardOptions.shape
222
226
  });
223
227
  var ScopeOptionKey = AllScopeOptions.keyof();
@@ -294,27 +298,24 @@ var SystemScopeType = z6.enum([
294
298
  "organisation.read-locations",
295
299
  "user.read",
296
300
  "user.create",
297
- "user.edit"
301
+ "user.edit",
302
+ "user.search"
298
303
  ]);
299
304
  var UserScopeType = SystemScopeType.extract([
300
305
  "user.read",
301
306
  "user.create",
302
- "user.edit"
307
+ "user.edit",
308
+ "user.search"
303
309
  ]);
304
310
  var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
305
311
  var UserScopeV2 = z6.discriminatedUnion("type", [
306
312
  z6.object({
307
313
  type: ScopesWithRoleOption,
308
- options: z6.object({
309
- accessLevel: JurisdictionFilter.optional(),
310
- role: userRole.optional()
311
- }).optional()
314
+ options: AllUserScopeOptions.optional()
312
315
  }),
313
316
  z6.object({
314
- type: UserScopeType.extract(["user.read"]),
315
- options: z6.object({
316
- accessLevel: JurisdictionFilter.optional()
317
- }).optional()
317
+ type: UserScopeType.extract(["user.read", "user.search"]),
318
+ options: AccessLevelOptions.optional()
318
319
  })
319
320
  ]);
320
321
  var ResolvedRecordScopeV2 = z6.discriminatedUnion("type", [
@@ -518,6 +518,9 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
518
518
  var AccessLevelOptions = z2.object({
519
519
  accessLevel: JurisdictionFilter.optional()
520
520
  });
521
+ var AllUserScopeOptions = AccessLevelOptions.extend({
522
+ role: userRole.optional()
523
+ });
521
524
  var WorkqueueOrDashboardOptions = z2.object({
522
525
  ids: z2.preprocess(
523
526
  (val) => val === void 0 ? void 0 : [val].flat(),
@@ -527,6 +530,7 @@ var WorkqueueOrDashboardOptions = z2.object({
527
530
  var AllScopeOptions = z2.object({
528
531
  ...AllRecordScopeOptions.shape,
529
532
  ...AccessLevelOptions.shape,
533
+ ...AllUserScopeOptions.shape,
530
534
  ...WorkqueueOrDashboardOptions.shape
531
535
  });
532
536
  var ScopeOptionKey = AllScopeOptions.keyof();
@@ -603,27 +607,24 @@ var SystemScopeType = z2.enum([
603
607
  "organisation.read-locations",
604
608
  "user.read",
605
609
  "user.create",
606
- "user.edit"
610
+ "user.edit",
611
+ "user.search"
607
612
  ]);
608
613
  var UserScopeType = SystemScopeType.extract([
609
614
  "user.read",
610
615
  "user.create",
611
- "user.edit"
616
+ "user.edit",
617
+ "user.search"
612
618
  ]);
613
619
  var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
614
620
  var UserScopeV2 = z2.discriminatedUnion("type", [
615
621
  z2.object({
616
622
  type: ScopesWithRoleOption,
617
- options: z2.object({
618
- accessLevel: JurisdictionFilter.optional(),
619
- role: userRole.optional()
620
- }).optional()
623
+ options: AllUserScopeOptions.optional()
621
624
  }),
622
625
  z2.object({
623
- type: UserScopeType.extract(["user.read"]),
624
- options: z2.object({
625
- accessLevel: JurisdictionFilter.optional()
626
- }).optional()
626
+ type: UserScopeType.extract(["user.read", "user.search"]),
627
+ options: AccessLevelOptions.optional()
627
628
  })
628
629
  ]);
629
630
  function scopeUsesRoleOptions(scope) {
@@ -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"}