@opencrvs/toolkit 2.0.0-rc.d846143 → 2.0.0-rc.da37d4e

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 (79) hide show
  1. package/dist/application-config/index.js +37 -7
  2. package/dist/cli.js +1420 -149
  3. package/dist/commons/api/router.d.ts +72 -79
  4. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  5. package/dist/commons/events/FieldConfig.d.ts +10 -0
  6. package/dist/commons/events/locations.d.ts +17 -1
  7. package/dist/conditionals/index.js +37 -7
  8. package/dist/events/index.js +75 -7
  9. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
  10. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +3 -4
  11. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  12. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  13. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  14. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
  15. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  16. package/dist/migrations/v2.0/checkout-upstream-files.js +17 -13
  17. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
  18. package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
  19. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
  20. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
  21. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
  22. package/dist/migrations/v2.0/create-events-index.js +1 -2
  23. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +3 -0
  24. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  25. package/dist/migrations/v2.0/delete-infrastructure-directory.js +77 -0
  26. package/dist/migrations/v2.0/index.d.ts +8 -4
  27. package/dist/migrations/v2.0/index.d.ts.map +1 -1
  28. package/dist/migrations/v2.0/index.js +1388 -146
  29. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
  30. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +5 -6
  31. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +3 -0
  32. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  33. package/dist/migrations/v2.0/merge-infrastructure-directory.js +221 -0
  34. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  35. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  36. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  37. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
  38. package/dist/migrations/v2.0/migrate-scopes.js +6 -7
  39. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
  40. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
  41. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
  42. package/dist/migrations/v2.0/migrate-workqueue-configs.js +3 -4
  43. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
  44. package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
  45. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
  46. package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
  47. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
  48. package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
  49. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  50. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  51. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  52. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
  53. package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
  54. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  55. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  56. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  57. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
  58. package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
  59. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
  60. package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
  61. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  62. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  63. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  64. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
  65. package/dist/migrations/v2.0/rename-api-paths.js +3 -4
  66. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
  67. package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
  68. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
  69. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
  70. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  71. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  72. package/dist/migrations/v2.0/update-package-json.js +105 -0
  73. package/dist/notification/index.js +37 -7
  74. package/dist/scopes/index.d.ts +87 -10
  75. package/dist/scopes/index.js +43 -8
  76. package/opencrvs-toolkit-2.0.0-rc.da37d4e.tgz +0 -0
  77. package/package.json +1 -1
  78. package/tsconfig.tsbuildinfo +1 -1
  79. package/opencrvs-toolkit-2.0.0-rc.d846143.tgz +0 -0
@@ -2,7 +2,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: Partial<{
3
3
  token: `Bearer ${string}`;
4
4
  user: {
5
- id: string;
5
+ id: string & import("zod").$brand<"UUID">;
6
6
  type: "system";
7
7
  signature?: undefined;
8
8
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -24,7 +24,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
24
24
  ctx: Partial<{
25
25
  token: `Bearer ${string}`;
26
26
  user: {
27
- id: string;
27
+ id: string & import("zod").$brand<"UUID">;
28
28
  type: "system";
29
29
  signature?: undefined;
30
30
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -46,7 +46,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
46
46
  ctx: Partial<{
47
47
  token: `Bearer ${string}`;
48
48
  user: {
49
- id: string;
49
+ id: string & import("zod").$brand<"UUID">;
50
50
  type: "system";
51
51
  signature?: undefined;
52
52
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -92,7 +92,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
92
92
  ctx: Partial<{
93
93
  token: `Bearer ${string}`;
94
94
  user: {
95
- id: string;
95
+ id: string & import("zod").$brand<"UUID">;
96
96
  type: "system";
97
97
  signature?: undefined;
98
98
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1054,7 +1054,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1054
1054
  ctx: Partial<{
1055
1055
  token: `Bearer ${string}`;
1056
1056
  user: {
1057
- id: string;
1057
+ id: string & import("zod").$brand<"UUID">;
1058
1058
  type: "system";
1059
1059
  signature?: undefined;
1060
1060
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1133,7 +1133,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1133
1133
  ctx: Partial<{
1134
1134
  token: `Bearer ${string}`;
1135
1135
  user: {
1136
- id: string;
1136
+ id: string & import("zod").$brand<"UUID">;
1137
1137
  type: "system";
1138
1138
  signature?: undefined;
1139
1139
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1155,7 +1155,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1155
1155
  ctx: Partial<{
1156
1156
  token: `Bearer ${string}`;
1157
1157
  user: {
1158
- id: string;
1158
+ id: string & import("zod").$brand<"UUID">;
1159
1159
  type: "system";
1160
1160
  signature?: undefined;
1161
1161
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1199,7 +1199,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1199
1199
  ctx: Partial<{
1200
1200
  token: `Bearer ${string}`;
1201
1201
  user: {
1202
- id: string;
1202
+ id: string & import("zod").$brand<"UUID">;
1203
1203
  type: "system";
1204
1204
  signature?: undefined;
1205
1205
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1552,7 +1552,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1552
1552
  ctx: Partial<{
1553
1553
  token: `Bearer ${string}`;
1554
1554
  user: {
1555
- id: string;
1555
+ id: string & import("zod").$brand<"UUID">;
1556
1556
  type: "system";
1557
1557
  signature?: undefined;
1558
1558
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1596,7 +1596,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1596
1596
  ctx: Partial<{
1597
1597
  token: `Bearer ${string}`;
1598
1598
  user: {
1599
- id: string;
1599
+ id: string & import("zod").$brand<"UUID">;
1600
1600
  type: "system";
1601
1601
  signature?: undefined;
1602
1602
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1640,7 +1640,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1640
1640
  ctx: Partial<{
1641
1641
  token: `Bearer ${string}`;
1642
1642
  user: {
1643
- id: string;
1643
+ id: string & import("zod").$brand<"UUID">;
1644
1644
  type: "system";
1645
1645
  signature?: undefined;
1646
1646
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1684,7 +1684,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1684
1684
  ctx: Partial<{
1685
1685
  token: `Bearer ${string}`;
1686
1686
  user: {
1687
- id: string;
1687
+ id: string & import("zod").$brand<"UUID">;
1688
1688
  type: "system";
1689
1689
  signature?: undefined;
1690
1690
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1728,7 +1728,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1728
1728
  ctx: Partial<{
1729
1729
  token: `Bearer ${string}`;
1730
1730
  user: {
1731
- id: string;
1731
+ id: string & import("zod").$brand<"UUID">;
1732
1732
  type: "system";
1733
1733
  signature?: undefined;
1734
1734
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -1772,7 +1772,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1772
1772
  ctx: Partial<{
1773
1773
  token: `Bearer ${string}`;
1774
1774
  user: {
1775
- id: string;
1775
+ id: string & import("zod").$brand<"UUID">;
1776
1776
  type: "system";
1777
1777
  signature?: undefined;
1778
1778
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -2126,7 +2126,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2126
2126
  ctx: Partial<{
2127
2127
  token: `Bearer ${string}`;
2128
2128
  user: {
2129
- id: string;
2129
+ id: string & import("zod").$brand<"UUID">;
2130
2130
  type: "system";
2131
2131
  signature?: undefined;
2132
2132
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -2779,7 +2779,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2779
2779
  ctx: Partial<{
2780
2780
  token: `Bearer ${string}`;
2781
2781
  user: {
2782
- id: string;
2782
+ id: string & import("zod").$brand<"UUID">;
2783
2783
  type: "system";
2784
2784
  signature?: undefined;
2785
2785
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -2801,7 +2801,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2801
2801
  ctx: Partial<{
2802
2802
  token: `Bearer ${string}`;
2803
2803
  user: {
2804
- id: string;
2804
+ id: string & import("zod").$brand<"UUID">;
2805
2805
  type: "system";
2806
2806
  signature?: undefined;
2807
2807
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -2845,7 +2845,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2845
2845
  ctx: Partial<{
2846
2846
  token: `Bearer ${string}`;
2847
2847
  user: {
2848
- id: string;
2848
+ id: string & import("zod").$brand<"UUID">;
2849
2849
  type: "system";
2850
2850
  signature?: undefined;
2851
2851
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -2889,7 +2889,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2889
2889
  ctx: Partial<{
2890
2890
  token: `Bearer ${string}`;
2891
2891
  user: {
2892
- id: string;
2892
+ id: string & import("zod").$brand<"UUID">;
2893
2893
  type: "system";
2894
2894
  signature?: undefined;
2895
2895
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -2934,7 +2934,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2934
2934
  ctx: Partial<{
2935
2935
  token: `Bearer ${string}`;
2936
2936
  user: {
2937
- id: string;
2937
+ id: string & import("zod").$brand<"UUID">;
2938
2938
  type: "system";
2939
2939
  signature?: undefined;
2940
2940
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -3952,7 +3952,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3952
3952
  ctx: Partial<{
3953
3953
  token: `Bearer ${string}`;
3954
3954
  user: {
3955
- id: string;
3955
+ id: string & import("zod").$brand<"UUID">;
3956
3956
  type: "system";
3957
3957
  signature?: undefined;
3958
3958
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -3991,7 +3991,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3991
3991
  email?: string | undefined;
3992
3992
  data?: Record<string, import("../commons").FieldValue> | undefined;
3993
3993
  } | {
3994
- id: string;
3994
+ id: string & import("zod").$brand<"UUID">;
3995
3995
  name: string;
3996
3996
  type: "system";
3997
3997
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4018,6 +4018,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4018
4018
  email?: string | undefined;
4019
4019
  mobile?: string | undefined;
4020
4020
  username?: undefined;
4021
+ password?: undefined;
4021
4022
  signature?: {
4022
4023
  path: string;
4023
4024
  originalFilename: string;
@@ -4065,8 +4066,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4065
4066
  type: string;
4066
4067
  } | undefined;
4067
4068
  status?: "active" | "deactivated" | undefined;
4068
- } & {
4069
- id: string;
4070
4069
  };
4071
4070
  output: {
4072
4071
  id: string & import("zod").$brand<"UUID">;
@@ -4093,33 +4092,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4093
4092
  input: string[];
4094
4093
  output: ({
4095
4094
  id: string & import("zod").$brand<"UUID">;
4095
+ type: "user";
4096
4096
  name: {
4097
4097
  firstname: string;
4098
4098
  surname: string;
4099
4099
  };
4100
4100
  role: string;
4101
- primaryOfficeId: string & import("zod").$brand<"UUID">;
4102
- type: "user";
4103
- status: "active" | "pending" | "deactivated";
4104
- avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
4105
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4106
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4107
- device?: string | undefined;
4108
4101
  fullHonorificName?: string | undefined;
4109
- mobile?: string | undefined;
4110
- email?: string | undefined;
4111
- data?: Record<string, import("../commons").FieldValue> | undefined;
4102
+ signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4112
4103
  } | {
4113
- id: string;
4114
- name: string;
4104
+ id: string & import("zod").$brand<"UUID">;
4115
4105
  type: "system";
4116
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4117
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4118
- signature?: undefined;
4119
- avatar?: undefined;
4120
- fullHonorificName?: string | undefined;
4121
- legacyId?: string | undefined;
4122
- status?: undefined;
4106
+ name: string;
4123
4107
  })[];
4124
4108
  meta: import("trpc-to-openapi").OpenApiMeta;
4125
4109
  }>;
@@ -4154,7 +4138,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4154
4138
  email?: string | undefined;
4155
4139
  data?: Record<string, import("../commons").FieldValue> | undefined;
4156
4140
  } | {
4157
- id: string;
4141
+ id: string & import("zod").$brand<"UUID">;
4158
4142
  name: string;
4159
4143
  type: "system";
4160
4144
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4209,7 +4193,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4209
4193
  ctx: Partial<{
4210
4194
  token: `Bearer ${string}`;
4211
4195
  user: {
4212
- id: string;
4196
+ id: string & import("zod").$brand<"UUID">;
4213
4197
  type: "system";
4214
4198
  signature?: undefined;
4215
4199
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4276,10 +4260,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4276
4260
  changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
4277
4261
  input: {
4278
4262
  userId: string;
4279
- avatar: {
4280
- type: string;
4281
- data: string;
4282
- };
4263
+ avatar: string;
4283
4264
  };
4284
4265
  output: void;
4285
4266
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4311,11 +4292,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4311
4292
  output: void;
4312
4293
  meta: import("trpc-to-openapi").OpenApiMeta;
4313
4294
  }>;
4295
+ verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
4296
+ input: {
4297
+ password: string;
4298
+ };
4299
+ output: {
4300
+ status: string;
4301
+ username: string;
4302
+ id: string;
4303
+ mobile?: string | undefined;
4304
+ };
4305
+ meta: import("trpc-to-openapi").OpenApiMeta;
4306
+ }>;
4314
4307
  audit: import("@trpc/server").TRPCBuiltRouter<{
4315
4308
  ctx: Partial<{
4316
4309
  token: `Bearer ${string}`;
4317
4310
  user: {
4318
- id: string;
4311
+ id: string & import("zod").$brand<"UUID">;
4319
4312
  type: "system";
4320
4313
  signature?: undefined;
4321
4314
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4608,7 +4601,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4608
4601
  ctx: Partial<{
4609
4602
  token: `Bearer ${string}`;
4610
4603
  user: {
4611
- id: string;
4604
+ id: string & import("zod").$brand<"UUID">;
4612
4605
  type: "system";
4613
4606
  signature?: undefined;
4614
4607
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4681,7 +4674,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4681
4674
  ctx: Partial<{
4682
4675
  token: `Bearer ${string}`;
4683
4676
  user: {
4684
- id: string;
4677
+ id: string & import("zod").$brand<"UUID">;
4685
4678
  type: "system";
4686
4679
  signature?: undefined;
4687
4680
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4703,7 +4696,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4703
4696
  ctx: Partial<{
4704
4697
  token: `Bearer ${string}`;
4705
4698
  user: {
4706
- id: string;
4699
+ id: string & import("zod").$brand<"UUID">;
4707
4700
  type: "system";
4708
4701
  signature?: undefined;
4709
4702
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -4766,7 +4759,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4766
4759
  'legalStatuses.DECLARED.createdAtLocation'?: {
4767
4760
  type: "within";
4768
4761
  location: string | {
4769
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4762
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4770
4763
  $location?: string | undefined;
4771
4764
  };
4772
4765
  } | undefined;
@@ -4788,7 +4781,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4788
4781
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4789
4782
  type: "within";
4790
4783
  location: string | {
4791
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4784
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4792
4785
  $location?: string | undefined;
4793
4786
  };
4794
4787
  } | undefined;
@@ -4803,47 +4796,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4803
4796
  createdAtLocation?: {
4804
4797
  type: "within";
4805
4798
  location: string | {
4806
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4799
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4807
4800
  $location?: string | undefined;
4808
4801
  };
4809
4802
  } | {
4810
4803
  type: "exact";
4811
4804
  term: string | {
4812
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4805
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4813
4806
  $location?: string | undefined;
4814
4807
  };
4815
4808
  } | undefined;
4816
4809
  updatedAtLocation?: {
4817
4810
  type: "within";
4818
4811
  location: string | {
4819
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4812
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4820
4813
  $location?: string | undefined;
4821
4814
  };
4822
4815
  } | {
4823
4816
  type: "exact";
4824
4817
  term: string | {
4825
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4818
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4826
4819
  $location?: string | undefined;
4827
4820
  };
4828
4821
  } | undefined;
4829
4822
  updatedByUserRole?: {
4830
4823
  type: "exact";
4831
4824
  term: string | {
4832
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4825
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4833
4826
  $location?: string | undefined;
4834
4827
  };
4835
4828
  } | undefined;
4836
4829
  assignedTo?: {
4837
4830
  type: "exact";
4838
4831
  term: string | {
4839
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4832
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4840
4833
  $location?: string | undefined;
4841
4834
  };
4842
4835
  } | undefined;
4843
4836
  createdBy?: {
4844
4837
  type: "exact";
4845
4838
  term: string | {
4846
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4839
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4847
4840
  $location?: string | undefined;
4848
4841
  };
4849
4842
  } | undefined;
@@ -4854,7 +4847,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4854
4847
  updatedBy?: {
4855
4848
  type: "exact";
4856
4849
  term: string | {
4857
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4850
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4858
4851
  $location?: string | undefined;
4859
4852
  };
4860
4853
  } | undefined;
@@ -4904,7 +4897,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4904
4897
  'legalStatuses.DECLARED.createdAtLocation'?: {
4905
4898
  type: "within";
4906
4899
  location: string | {
4907
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4900
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4908
4901
  $location?: string | undefined;
4909
4902
  };
4910
4903
  } | undefined;
@@ -4926,7 +4919,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4926
4919
  'legalStatuses.REGISTERED.createdAtLocation'?: {
4927
4920
  type: "within";
4928
4921
  location: string | {
4929
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4922
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4930
4923
  $location?: string | undefined;
4931
4924
  };
4932
4925
  } | undefined;
@@ -4941,47 +4934,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4941
4934
  createdAtLocation?: {
4942
4935
  type: "within";
4943
4936
  location: string | {
4944
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4937
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4945
4938
  $location?: string | undefined;
4946
4939
  };
4947
4940
  } | {
4948
4941
  type: "exact";
4949
4942
  term: string | {
4950
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4943
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4951
4944
  $location?: string | undefined;
4952
4945
  };
4953
4946
  } | undefined;
4954
4947
  updatedAtLocation?: {
4955
4948
  type: "within";
4956
4949
  location: string | {
4957
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4950
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4958
4951
  $location?: string | undefined;
4959
4952
  };
4960
4953
  } | {
4961
4954
  type: "exact";
4962
4955
  term: string | {
4963
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4956
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4964
4957
  $location?: string | undefined;
4965
4958
  };
4966
4959
  } | undefined;
4967
4960
  updatedByUserRole?: {
4968
4961
  type: "exact";
4969
4962
  term: string | {
4970
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4963
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4971
4964
  $location?: string | undefined;
4972
4965
  };
4973
4966
  } | undefined;
4974
4967
  assignedTo?: {
4975
4968
  type: "exact";
4976
4969
  term: string | {
4977
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4970
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4978
4971
  $location?: string | undefined;
4979
4972
  };
4980
4973
  } | undefined;
4981
4974
  createdBy?: {
4982
4975
  type: "exact";
4983
4976
  term: string | {
4984
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4977
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4985
4978
  $location?: string | undefined;
4986
4979
  };
4987
4980
  } | undefined;
@@ -4992,7 +4985,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4992
4985
  updatedBy?: {
4993
4986
  type: "exact";
4994
4987
  term: string | {
4995
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "avatar" | "signature" | "primaryOfficeId" | "middlename";
4988
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "avatar" | "signature" | "middlename";
4996
4989
  $location?: string | undefined;
4997
4990
  };
4998
4991
  } | undefined;
@@ -5043,7 +5036,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5043
5036
  ctx: Partial<{
5044
5037
  token: `Bearer ${string}`;
5045
5038
  user: {
5046
- id: string;
5039
+ id: string & import("zod").$brand<"UUID">;
5047
5040
  type: "system";
5048
5041
  signature?: undefined;
5049
5042
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -5091,7 +5084,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5091
5084
  ctx: Partial<{
5092
5085
  token: `Bearer ${string}`;
5093
5086
  user: {
5094
- id: string;
5087
+ id: string & import("zod").$brand<"UUID">;
5095
5088
  type: "system";
5096
5089
  signature?: undefined;
5097
5090
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -5143,7 +5136,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5143
5136
  scopes: string[];
5144
5137
  status: string;
5145
5138
  createdAt: string;
5146
- createdBy: string;
5139
+ createdBy: string & import("zod").$brand<"UUID">;
5147
5140
  }[];
5148
5141
  meta: import("trpc-to-openapi").OpenApiMeta;
5149
5142
  }>;
@@ -5158,7 +5151,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5158
5151
  status: string;
5159
5152
  shaSecret: string | null;
5160
5153
  createdAt: string;
5161
- createdBy: string;
5154
+ createdBy: string & import("zod").$brand<"UUID">;
5162
5155
  };
5163
5156
  meta: import("trpc-to-openapi").OpenApiMeta;
5164
5157
  }>;
@@ -5209,7 +5202,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5209
5202
  ctx: Partial<{
5210
5203
  token: `Bearer ${string}`;
5211
5204
  user: {
5212
- id: string;
5205
+ id: string & import("zod").$brand<"UUID">;
5213
5206
  type: "system";
5214
5207
  signature?: undefined;
5215
5208
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
@@ -5244,7 +5237,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5244
5237
  ctx: Partial<{
5245
5238
  token: `Bearer ${string}`;
5246
5239
  user: {
5247
- id: string;
5240
+ id: string & import("zod").$brand<"UUID">;
5248
5241
  type: "system";
5249
5242
  signature?: undefined;
5250
5243
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | 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
  };