@opencrvs/toolkit 2.0.0-rc.5df8917 → 2.0.0-rc.5eac868

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 (95) hide show
  1. package/README.md +15 -0
  2. package/build.sh +3 -2
  3. package/dist/application-config/index.js +23 -6
  4. package/dist/cli.js +3253 -47
  5. package/dist/commons/api/router.d.ts +133 -114
  6. package/dist/commons/conditionals/conditionals.d.ts +1589 -37
  7. package/dist/commons/events/ActionConfig.d.ts +28 -2
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
  9. package/dist/commons/events/CountryConfigQueryInput.d.ts +42 -0
  10. package/dist/commons/events/EventConfig.d.ts +2 -0
  11. package/dist/commons/events/EventIndex.d.ts +25 -0
  12. package/dist/commons/events/EventMetadata.d.ts +26 -0
  13. package/dist/commons/events/FieldConfig.d.ts +11 -0
  14. package/dist/commons/events/FieldType.d.ts +1 -0
  15. package/dist/commons/events/FieldTypeMapping.d.ts +1 -1
  16. package/dist/commons/events/WorkqueueConfig.d.ts +39 -0
  17. package/dist/commons/events/field.d.ts +722 -34
  18. package/dist/commons/events/locations.d.ts +1 -0
  19. package/dist/commons/events/state/index.d.ts +8 -0
  20. package/dist/commons/events/state/utils.d.ts +9 -0
  21. package/dist/conditionals/index.js +10 -5
  22. package/dist/environment/custom-types.d.ts +33 -0
  23. package/dist/environment/custom-types.d.ts.map +1 -0
  24. package/dist/environment/custom-types.js +12 -0
  25. package/dist/environment/derived-variables.d.ts +134 -0
  26. package/dist/environment/derived-variables.d.ts.map +1 -0
  27. package/dist/environment/derived-variables.js +169 -0
  28. package/dist/environment/editor-questions.d.ts +4 -0
  29. package/dist/environment/editor-questions.d.ts.map +1 -0
  30. package/dist/environment/editor-questions.js +67 -0
  31. package/dist/environment/git.d.ts +5 -0
  32. package/dist/environment/git.d.ts.map +1 -0
  33. package/dist/environment/git.js +38 -0
  34. package/dist/environment/github.d.ts +26 -0
  35. package/dist/environment/github.d.ts.map +1 -0
  36. package/dist/environment/github.js +247 -0
  37. package/dist/environment/index.d.ts +5 -0
  38. package/dist/environment/index.d.ts.map +1 -0
  39. package/dist/environment/index.js +71 -0
  40. package/dist/environment/logger.d.ts +6 -0
  41. package/dist/environment/logger.d.ts.map +1 -0
  42. package/dist/environment/logger.js +25 -0
  43. package/dist/environment/manage-users.d.ts +11 -0
  44. package/dist/environment/manage-users.d.ts.map +1 -0
  45. package/dist/environment/manage-users.js +507 -0
  46. package/dist/environment/questions-helper.d.ts +15 -0
  47. package/dist/environment/questions-helper.d.ts.map +1 -0
  48. package/dist/environment/questions-helper.js +70 -0
  49. package/dist/environment/questions.d.ts +199 -0
  50. package/dist/environment/questions.d.ts.map +1 -0
  51. package/dist/environment/questions.js +412 -0
  52. package/dist/environment/setup-environment.d.ts +2 -0
  53. package/dist/environment/setup-environment.d.ts.map +1 -0
  54. package/dist/environment/setup-environment.js +794 -0
  55. package/dist/environment/ssh-keygen.d.ts +5 -0
  56. package/dist/environment/ssh-keygen.d.ts.map +1 -0
  57. package/dist/environment/ssh-keygen.js +21 -0
  58. package/dist/environment/swarm-to-k8s.d.ts +2 -0
  59. package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
  60. package/dist/environment/swarm-to-k8s.js +183 -0
  61. package/dist/environment/templates.d.ts +27 -0
  62. package/dist/environment/templates.d.ts.map +1 -0
  63. package/dist/environment/templates.js +163 -0
  64. package/dist/environment/update-workflows.d.ts +2 -0
  65. package/dist/environment/update-workflows.d.ts.map +1 -0
  66. package/dist/environment/update-workflows.js +179 -0
  67. package/dist/environment/users.d.ts +2 -0
  68. package/dist/environment/users.d.ts.map +1 -0
  69. package/dist/environment/users.js +122 -0
  70. package/dist/environment/utils.d.ts +18 -0
  71. package/dist/environment/utils.d.ts.map +1 -0
  72. package/dist/environment/utils.js +110 -0
  73. package/dist/events/index.js +192 -67
  74. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
  75. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
  76. package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
  77. package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
  78. package/dist/migrations/v2.0/index.js +11 -6
  79. package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
  80. package/dist/notification/index.js +112 -8
  81. package/dist/scopes/index.d.ts +89 -1
  82. package/dist/scopes/index.js +10 -5
  83. package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
  84. package/dist/templates/charts-values/dependencies/values.yaml +83 -0
  85. package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
  86. package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
  87. package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
  88. package/dist/templates/charts-values/traefik/values.yaml +115 -0
  89. package/dist/templates/inventory/inventory.template.yml +100 -0
  90. package/dist/templates/inventory/production.example.yml +77 -0
  91. package/dist/templates/inventory/qa.example.yml +48 -0
  92. package/opencrvs-toolkit-2.0.0-rc.5eac868.tgz +0 -0
  93. package/package.json +16 -2
  94. package/tsconfig.tsbuildinfo +1 -1
  95. package/opencrvs-toolkit-2.0.0-rc.5df8917.tgz +0 -0
@@ -4,14 +4,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4
4
  user: {
5
5
  id: string & import("zod").$brand<"UUID">;
6
6
  type: "system";
7
- signature?: undefined;
8
7
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9
8
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9
+ signature?: undefined;
10
10
  } | {
11
11
  id: string & import("zod").$brand<"UUID">;
12
- type: "user";
13
12
  role: string;
14
13
  primaryOfficeId: string & import("zod").$brand<"UUID">;
14
+ type: "user";
15
15
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
16
16
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
17
17
  };
@@ -26,14 +26,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
26
26
  user: {
27
27
  id: string & import("zod").$brand<"UUID">;
28
28
  type: "system";
29
- signature?: undefined;
30
29
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
31
30
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
31
+ signature?: undefined;
32
32
  } | {
33
33
  id: string & import("zod").$brand<"UUID">;
34
- type: "user";
35
34
  role: string;
36
35
  primaryOfficeId: string & import("zod").$brand<"UUID">;
36
+ type: "user";
37
37
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
38
38
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
39
39
  };
@@ -48,14 +48,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
48
48
  user: {
49
49
  id: string & import("zod").$brand<"UUID">;
50
50
  type: "system";
51
- signature?: undefined;
52
51
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
53
52
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
53
+ signature?: undefined;
54
54
  } | {
55
55
  id: string & import("zod").$brand<"UUID">;
56
- type: "user";
57
56
  role: string;
58
57
  primaryOfficeId: string & import("zod").$brand<"UUID">;
58
+ type: "user";
59
59
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
60
60
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
61
61
  };
@@ -94,14 +94,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
94
94
  user: {
95
95
  id: string & import("zod").$brand<"UUID">;
96
96
  type: "system";
97
- signature?: undefined;
98
97
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
99
98
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
99
+ signature?: undefined;
100
100
  } | {
101
101
  id: string & import("zod").$brand<"UUID">;
102
- type: "user";
103
102
  role: string;
104
103
  primaryOfficeId: string & import("zod").$brand<"UUID">;
104
+ type: "user";
105
105
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
106
106
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
107
107
  };
@@ -1066,14 +1066,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1066
1066
  user: {
1067
1067
  id: string & import("zod").$brand<"UUID">;
1068
1068
  type: "system";
1069
- signature?: undefined;
1070
1069
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1071
1070
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1071
+ signature?: undefined;
1072
1072
  } | {
1073
1073
  id: string & import("zod").$brand<"UUID">;
1074
- type: "user";
1075
1074
  role: string;
1076
1075
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1076
+ type: "user";
1077
1077
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1078
1078
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1079
1079
  };
@@ -1090,13 +1090,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1090
1090
  transactionId: string;
1091
1091
  createdAt: string;
1092
1092
  action: {
1093
- type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1094
1093
  transactionId: string;
1095
1094
  createdByUserType: "system" | "user";
1096
1095
  createdAt: string;
1097
1096
  createdBy: string;
1098
1097
  declaration: Record<string, import("../commons").FieldUpdateValue>;
1099
1098
  status: "Requested" | "Accepted" | "Rejected";
1099
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1100
1100
  createdByRole?: string | undefined;
1101
1101
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1102
1102
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
@@ -1107,17 +1107,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1107
1107
  }>;
1108
1108
  create: import("@trpc/server").TRPCMutationProcedure<{
1109
1109
  input: {
1110
- transactionId: string;
1111
1110
  eventId: string;
1111
+ transactionId: string;
1112
1112
  type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1113
1113
  status: "Requested" | "Accepted" | "Rejected";
1114
- createdAtLocation?: string | null | undefined;
1115
1114
  declaration?: Record<string, unknown> | undefined;
1116
1115
  annotation?: Record<string, unknown> | undefined;
1117
1116
  originalActionId?: string | undefined;
1118
1117
  keepAssignment?: boolean | undefined;
1119
1118
  keepAssignmentIfAccepted?: boolean | undefined;
1120
1119
  keepAssignmentIfRejected?: boolean | undefined;
1120
+ createdAtLocation?: string | null | undefined;
1121
1121
  };
1122
1122
  output: {
1123
1123
  id: string & import("zod").$brand<"UUID">;
@@ -1125,13 +1125,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1125
1125
  transactionId: string;
1126
1126
  createdAt: string;
1127
1127
  action: {
1128
- type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1129
1128
  transactionId: string;
1130
1129
  createdByUserType: "system" | "user";
1131
1130
  createdAt: string;
1132
1131
  createdBy: string;
1133
1132
  declaration: Record<string, import("../commons").FieldUpdateValue>;
1134
1133
  status: "Requested" | "Accepted" | "Rejected";
1134
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1135
1135
  createdByRole?: string | undefined;
1136
1136
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1137
1137
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
@@ -1147,14 +1147,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1147
1147
  user: {
1148
1148
  id: string & import("zod").$brand<"UUID">;
1149
1149
  type: "system";
1150
- signature?: undefined;
1151
1150
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1152
1151
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1152
+ signature?: undefined;
1153
1153
  } | {
1154
1154
  id: string & import("zod").$brand<"UUID">;
1155
- type: "user";
1156
1155
  role: string;
1157
1156
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1157
+ type: "user";
1158
1158
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1159
1159
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1160
1160
  };
@@ -1169,14 +1169,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1169
1169
  user: {
1170
1170
  id: string & import("zod").$brand<"UUID">;
1171
1171
  type: "system";
1172
- signature?: undefined;
1173
1172
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1174
1173
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1174
+ signature?: undefined;
1175
1175
  } | {
1176
1176
  id: string & import("zod").$brand<"UUID">;
1177
- type: "user";
1178
1177
  role: string;
1179
1178
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1179
+ type: "user";
1180
1180
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1181
1181
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1182
1182
  };
@@ -1464,14 +1464,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1464
1464
  user: {
1465
1465
  id: string & import("zod").$brand<"UUID">;
1466
1466
  type: "system";
1467
- signature?: undefined;
1468
1467
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1469
1468
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1469
+ signature?: undefined;
1470
1470
  } | {
1471
1471
  id: string & import("zod").$brand<"UUID">;
1472
- type: "user";
1473
1472
  role: string;
1474
1473
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1474
+ type: "user";
1475
1475
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1476
1476
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1477
1477
  };
@@ -1806,14 +1806,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1806
1806
  user: {
1807
1807
  id: string & import("zod").$brand<"UUID">;
1808
1808
  type: "system";
1809
- signature?: undefined;
1810
1809
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1811
1810
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1811
+ signature?: undefined;
1812
1812
  } | {
1813
1813
  id: string & import("zod").$brand<"UUID">;
1814
- type: "user";
1815
1814
  role: string;
1816
1815
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1816
+ type: "user";
1817
1817
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1818
1818
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1819
1819
  };
@@ -2416,14 +2416,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2416
2416
  user: {
2417
2417
  id: string & import("zod").$brand<"UUID">;
2418
2418
  type: "system";
2419
- signature?: undefined;
2420
2419
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2421
2420
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2421
+ signature?: undefined;
2422
2422
  } | {
2423
2423
  id: string & import("zod").$brand<"UUID">;
2424
- type: "user";
2425
2424
  role: string;
2426
2425
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2426
+ type: "user";
2427
2427
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2428
2428
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2429
2429
  };
@@ -2711,14 +2711,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2711
2711
  user: {
2712
2712
  id: string & import("zod").$brand<"UUID">;
2713
2713
  type: "system";
2714
- signature?: undefined;
2715
2714
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2716
2715
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2716
+ signature?: undefined;
2717
2717
  } | {
2718
2718
  id: string & import("zod").$brand<"UUID">;
2719
- type: "user";
2720
2719
  role: string;
2721
2720
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2721
+ type: "user";
2722
2722
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2723
2723
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2724
2724
  };
@@ -3006,14 +3006,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3006
3006
  user: {
3007
3007
  id: string & import("zod").$brand<"UUID">;
3008
3008
  type: "system";
3009
- signature?: undefined;
3010
3009
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3011
3010
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3011
+ signature?: undefined;
3012
3012
  } | {
3013
3013
  id: string & import("zod").$brand<"UUID">;
3014
- type: "user";
3015
3014
  role: string;
3016
3015
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3016
+ type: "user";
3017
3017
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3018
3018
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3019
3019
  };
@@ -3301,14 +3301,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3301
3301
  user: {
3302
3302
  id: string & import("zod").$brand<"UUID">;
3303
3303
  type: "system";
3304
- signature?: undefined;
3305
3304
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3306
3305
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3306
+ signature?: undefined;
3307
3307
  } | {
3308
3308
  id: string & import("zod").$brand<"UUID">;
3309
- type: "user";
3310
3309
  role: string;
3311
3310
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3311
+ type: "user";
3312
3312
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3313
3313
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3314
3314
  };
@@ -3596,14 +3596,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3596
3596
  user: {
3597
3597
  id: string & import("zod").$brand<"UUID">;
3598
3598
  type: "system";
3599
- signature?: undefined;
3600
3599
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3601
3600
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3601
+ signature?: undefined;
3602
3602
  } | {
3603
3603
  id: string & import("zod").$brand<"UUID">;
3604
- type: "user";
3605
3604
  role: string;
3606
3605
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3606
+ type: "user";
3607
3607
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3608
3608
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3609
3609
  };
@@ -3891,14 +3891,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3891
3891
  user: {
3892
3892
  id: string & import("zod").$brand<"UUID">;
3893
3893
  type: "system";
3894
- signature?: undefined;
3895
3894
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3896
3895
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3896
+ signature?: undefined;
3897
3897
  } | {
3898
3898
  id: string & import("zod").$brand<"UUID">;
3899
- type: "user";
3900
3899
  role: string;
3901
3900
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3901
+ type: "user";
3902
3902
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3903
3903
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3904
3904
  };
@@ -4502,14 +4502,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4502
4502
  user: {
4503
4503
  id: string & import("zod").$brand<"UUID">;
4504
4504
  type: "system";
4505
- signature?: undefined;
4506
4505
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4507
4506
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4507
+ signature?: undefined;
4508
4508
  } | {
4509
4509
  id: string & import("zod").$brand<"UUID">;
4510
- type: "user";
4511
4510
  role: string;
4512
4511
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4512
+ type: "user";
4513
4513
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4514
4514
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4515
4515
  };
@@ -5167,14 +5167,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5167
5167
  user: {
5168
5168
  id: string & import("zod").$brand<"UUID">;
5169
5169
  type: "system";
5170
- signature?: undefined;
5171
5170
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5172
5171
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5172
+ signature?: undefined;
5173
5173
  } | {
5174
5174
  id: string & import("zod").$brand<"UUID">;
5175
- type: "user";
5176
5175
  role: string;
5177
5176
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5177
+ type: "user";
5178
5178
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5179
5179
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5180
5180
  };
@@ -5189,14 +5189,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5189
5189
  user: {
5190
5190
  id: string & import("zod").$brand<"UUID">;
5191
5191
  type: "system";
5192
- signature?: undefined;
5193
5192
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5194
5193
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5194
+ signature?: undefined;
5195
5195
  } | {
5196
5196
  id: string & import("zod").$brand<"UUID">;
5197
- type: "user";
5198
5197
  role: string;
5199
5198
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5199
+ type: "user";
5200
5200
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5201
5201
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5202
5202
  };
@@ -5484,14 +5484,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5484
5484
  user: {
5485
5485
  id: string & import("zod").$brand<"UUID">;
5486
5486
  type: "system";
5487
- signature?: undefined;
5488
5487
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5489
5488
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5489
+ signature?: undefined;
5490
5490
  } | {
5491
5491
  id: string & import("zod").$brand<"UUID">;
5492
- type: "user";
5493
5492
  role: string;
5494
5493
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5494
+ type: "user";
5495
5495
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5496
5496
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5497
5497
  };
@@ -5779,14 +5779,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5779
5779
  user: {
5780
5780
  id: string & import("zod").$brand<"UUID">;
5781
5781
  type: "system";
5782
- signature?: undefined;
5783
5782
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5784
5783
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5784
+ signature?: undefined;
5785
5785
  } | {
5786
5786
  id: string & import("zod").$brand<"UUID">;
5787
- type: "user";
5788
5787
  role: string;
5789
5788
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5789
+ type: "user";
5790
5790
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5791
5791
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5792
5792
  };
@@ -6075,14 +6075,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6075
6075
  user: {
6076
6076
  id: string & import("zod").$brand<"UUID">;
6077
6077
  type: "system";
6078
- signature?: undefined;
6079
6078
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6080
6079
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6080
+ signature?: undefined;
6081
6081
  } | {
6082
6082
  id: string & import("zod").$brand<"UUID">;
6083
- type: "user";
6084
6083
  role: string;
6085
6084
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6085
+ type: "user";
6086
6086
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6087
6087
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6088
6088
  };
@@ -6747,8 +6747,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6747
6747
  results: {
6748
6748
  id: string & import("zod").$brand<"UUID">;
6749
6749
  type: string;
6750
- status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
6750
+ status: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
6751
6751
  legalStatuses: {
6752
+ NOTIFIED?: {
6753
+ createdAt: string;
6754
+ createdBy: string;
6755
+ acceptedAt: string;
6756
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6757
+ createdByUserType?: "system" | "user" | null | undefined;
6758
+ createdByRole?: string | undefined;
6759
+ } | null | undefined;
6752
6760
  DECLARED?: {
6753
6761
  createdAt: string;
6754
6762
  createdBy: string;
@@ -7105,14 +7113,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7105
7113
  user: {
7106
7114
  id: string & import("zod").$brand<"UUID">;
7107
7115
  type: "system";
7108
- signature?: undefined;
7109
7116
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7110
7117
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7118
+ signature?: undefined;
7111
7119
  } | {
7112
7120
  id: string & import("zod").$brand<"UUID">;
7113
- type: "user";
7114
7121
  role: string;
7115
7122
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7123
+ type: "user";
7116
7124
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7117
7125
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7118
7126
  };
@@ -7163,11 +7171,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7163
7171
  };
7164
7172
  role: string;
7165
7173
  primaryOfficeId: string;
7166
- data?: Record<string, unknown> | undefined;
7167
- fullHonorificName?: string | undefined;
7168
7174
  device?: string | undefined;
7169
- email?: string | undefined;
7175
+ fullHonorificName?: string | undefined;
7170
7176
  mobile?: string | undefined;
7177
+ email?: string | undefined;
7178
+ data?: Record<string, unknown> | undefined;
7171
7179
  username?: undefined;
7172
7180
  password?: undefined;
7173
7181
  signature?: {
@@ -7200,17 +7208,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7200
7208
  update: import("@trpc/server").TRPCMutationProcedure<{
7201
7209
  input: {
7202
7210
  id: string;
7203
- data?: Record<string, unknown> | undefined;
7204
7211
  name?: {
7205
7212
  firstname: string;
7206
7213
  surname: string;
7207
7214
  } | undefined;
7208
7215
  role?: string | undefined;
7209
- fullHonorificName?: string | undefined;
7210
- device?: string | undefined;
7211
7216
  primaryOfficeId?: string | undefined;
7212
- email?: string | undefined;
7217
+ device?: string | undefined;
7218
+ fullHonorificName?: string | undefined;
7213
7219
  mobile?: string | undefined;
7220
+ email?: string | undefined;
7221
+ data?: Record<string, unknown> | undefined;
7214
7222
  signature?: {
7215
7223
  path: string;
7216
7224
  originalFilename: string;
@@ -7243,20 +7251,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7243
7251
  input: string[];
7244
7252
  output: ({
7245
7253
  id: string & import("zod").$brand<"UUID">;
7246
- type: "user";
7247
7254
  name: {
7248
7255
  firstname: string;
7249
7256
  surname: string;
7250
7257
  };
7251
7258
  role: string;
7252
7259
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7253
- fullHonorificName?: string | undefined;
7260
+ type: "user";
7254
7261
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7255
7262
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7263
+ fullHonorificName?: string | undefined;
7256
7264
  } | {
7257
7265
  id: string & import("zod").$brand<"UUID">;
7258
- type: "system";
7259
7266
  name: string;
7267
+ type: "system";
7260
7268
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7261
7269
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7262
7270
  })[];
@@ -7276,21 +7284,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7276
7284
  };
7277
7285
  output: ({
7278
7286
  id: string & import("zod").$brand<"UUID">;
7279
- type: "user";
7280
7287
  name: {
7281
7288
  firstname: string;
7282
7289
  surname: string;
7283
7290
  };
7284
7291
  role: string;
7285
7292
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7293
+ type: "user";
7286
7294
  status: "active" | "pending" | "deactivated";
7287
- fullHonorificName?: string | undefined;
7288
7295
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7289
7296
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7297
+ fullHonorificName?: string | undefined;
7290
7298
  } | {
7291
7299
  id: string & import("zod").$brand<"UUID">;
7292
- type: "system";
7293
7300
  name: string;
7301
+ type: "system";
7294
7302
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7295
7303
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7296
7304
  status?: "active" | "pending" | "deactivated" | undefined;
@@ -7341,14 +7349,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7341
7349
  user: {
7342
7350
  id: string & import("zod").$brand<"UUID">;
7343
7351
  type: "system";
7344
- signature?: undefined;
7345
7352
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7346
7353
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7354
+ signature?: undefined;
7347
7355
  } | {
7348
7356
  id: string & import("zod").$brand<"UUID">;
7349
- type: "user";
7350
7357
  role: string;
7351
7358
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7359
+ type: "user";
7352
7360
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7353
7361
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7354
7362
  };
@@ -7374,9 +7382,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7374
7382
  output: void;
7375
7383
  meta: import("trpc-to-openapi").OpenApiMeta;
7376
7384
  }>;
7377
- sendVerifyCode: import("@trpc/server").TRPCMutationProcedure<{
7385
+ requestEmailChange: import("@trpc/server").TRPCMutationProcedure<{
7378
7386
  input: {
7379
- notificationEvent: "change-phone-number" | "change-email-address";
7387
+ email: string;
7388
+ };
7389
+ output: {
7390
+ nonce: string;
7391
+ };
7392
+ meta: import("trpc-to-openapi").OpenApiMeta;
7393
+ }>;
7394
+ requestPhoneChange: import("@trpc/server").TRPCMutationProcedure<{
7395
+ input: {
7396
+ phoneNumber: string;
7380
7397
  };
7381
7398
  output: {
7382
7399
  nonce: string;
@@ -7456,14 +7473,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7456
7473
  user: {
7457
7474
  id: string & import("zod").$brand<"UUID">;
7458
7475
  type: "system";
7459
- signature?: undefined;
7460
7476
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7461
7477
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7478
+ signature?: undefined;
7462
7479
  } | {
7463
7480
  id: string & import("zod").$brand<"UUID">;
7464
- type: "user";
7465
7481
  role: string;
7466
7482
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7483
+ type: "user";
7467
7484
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7468
7485
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7469
7486
  };
@@ -7570,7 +7587,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7570
7587
  clientId: string;
7571
7588
  clientType: "system" | "user";
7572
7589
  createdAt: string;
7573
- operation: "event.actions.notify.request" | "event.actions.declare.request" | "event.actions.register.request" | "event.actions.reject.request" | "event.actions.validate.request" | "event.actions.edit.request" | "event.actions.assign.request" | "event.actions.unassign.request" | "event.actions.read.request" | "event.actions.archive.request" | "event.actions.reinstate.request" | "event.actions.print_certificate.request" | "event.actions.correction.request.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request";
7590
+ operation: "event.actions.archive.request" | "event.actions.assign.request" | "event.actions.correction.approve.request" | "event.actions.correction.reject.request" | "event.actions.correction.request.request" | "event.actions.declare.request" | "event.actions.edit.request" | "event.actions.mark_as_duplicate.request" | "event.actions.mark_as_not_duplicate.request" | "event.actions.notify.request" | "event.actions.print_certificate.request" | "event.actions.read.request" | "event.actions.register.request" | "event.actions.reinstate.request" | "event.actions.reject.request" | "event.actions.unassign.request" | "event.actions.validate.request";
7574
7591
  requestData: {
7575
7592
  eventId: string;
7576
7593
  actionType: string;
@@ -7749,14 +7766,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7749
7766
  user: {
7750
7767
  id: string & import("zod").$brand<"UUID">;
7751
7768
  type: "system";
7752
- signature?: undefined;
7753
7769
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7754
7770
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7771
+ signature?: undefined;
7755
7772
  } | {
7756
7773
  id: string & import("zod").$brand<"UUID">;
7757
- type: "user";
7758
7774
  role: string;
7759
7775
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7776
+ type: "user";
7760
7777
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7761
7778
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7762
7779
  };
@@ -7822,14 +7839,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7822
7839
  user: {
7823
7840
  id: string & import("zod").$brand<"UUID">;
7824
7841
  type: "system";
7825
- signature?: undefined;
7826
7842
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7827
7843
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7844
+ signature?: undefined;
7828
7845
  } | {
7829
7846
  id: string & import("zod").$brand<"UUID">;
7830
- type: "user";
7831
7847
  role: string;
7832
7848
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7849
+ type: "user";
7833
7850
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7834
7851
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7835
7852
  };
@@ -7844,14 +7861,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7844
7861
  user: {
7845
7862
  id: string & import("zod").$brand<"UUID">;
7846
7863
  type: "system";
7847
- signature?: undefined;
7848
7864
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7849
7865
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7866
+ signature?: undefined;
7850
7867
  } | {
7851
7868
  id: string & import("zod").$brand<"UUID">;
7852
- type: "user";
7853
7869
  role: string;
7854
7870
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7871
+ type: "user";
7855
7872
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7856
7873
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7857
7874
  };
@@ -7875,10 +7892,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7875
7892
  eventType?: string | undefined;
7876
7893
  status?: {
7877
7894
  type: "anyOf";
7878
- terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
7895
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
7879
7896
  } | {
7880
7897
  type: "exact";
7881
- term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
7898
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
7882
7899
  } | undefined;
7883
7900
  createdAt?: {
7884
7901
  type: "exact";
@@ -7889,7 +7906,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7889
7906
  lte: string;
7890
7907
  } | {
7891
7908
  type: "timePeriod";
7892
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7909
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7893
7910
  } | undefined;
7894
7911
  updatedAt?: {
7895
7912
  type: "exact";
@@ -7900,12 +7917,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7900
7917
  lte: string;
7901
7918
  } | {
7902
7919
  type: "timePeriod";
7903
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7920
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7904
7921
  } | undefined;
7905
7922
  'legalStatuses.DECLARED.createdAtLocation'?: {
7906
7923
  type: "within";
7907
7924
  location: string | {
7908
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7925
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7909
7926
  $location?: string | undefined;
7910
7927
  };
7911
7928
  } | undefined;
@@ -7922,12 +7939,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7922
7939
  lte: string;
7923
7940
  } | {
7924
7941
  type: "timePeriod";
7925
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
7942
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
7926
7943
  } | undefined;
7927
7944
  'legalStatuses.REGISTERED.createdAtLocation'?: {
7928
7945
  type: "within";
7929
7946
  location: string | {
7930
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7947
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7931
7948
  $location?: string | undefined;
7932
7949
  };
7933
7950
  } | undefined;
@@ -7942,47 +7959,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7942
7959
  createdAtLocation?: {
7943
7960
  type: "within";
7944
7961
  location: string | {
7945
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7962
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7946
7963
  $location?: string | undefined;
7947
7964
  };
7948
7965
  } | {
7949
7966
  type: "exact";
7950
7967
  term: string | {
7951
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7968
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7952
7969
  $location?: string | undefined;
7953
7970
  };
7954
7971
  } | undefined;
7955
7972
  updatedAtLocation?: {
7956
7973
  type: "within";
7957
7974
  location: string | {
7958
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7975
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7959
7976
  $location?: string | undefined;
7960
7977
  };
7961
7978
  } | {
7962
7979
  type: "exact";
7963
7980
  term: string | {
7964
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7981
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7965
7982
  $location?: string | undefined;
7966
7983
  };
7967
7984
  } | undefined;
7968
7985
  updatedByUserRole?: {
7969
7986
  type: "exact";
7970
7987
  term: string | {
7971
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7988
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7972
7989
  $location?: string | undefined;
7973
7990
  };
7974
7991
  } | undefined;
7975
7992
  assignedTo?: {
7976
7993
  type: "exact";
7977
7994
  term: string | {
7978
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
7995
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7979
7996
  $location?: string | undefined;
7980
7997
  };
7981
7998
  } | undefined;
7982
7999
  createdBy?: {
7983
8000
  type: "exact";
7984
8001
  term: string | {
7985
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8002
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7986
8003
  $location?: string | undefined;
7987
8004
  };
7988
8005
  } | undefined;
@@ -7993,7 +8010,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7993
8010
  updatedBy?: {
7994
8011
  type: "exact";
7995
8012
  term: string | {
7996
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8013
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
7997
8014
  $location?: string | undefined;
7998
8015
  };
7999
8016
  } | undefined;
@@ -8004,6 +8021,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8004
8021
  flags?: {
8005
8022
  anyOf?: string[] | undefined;
8006
8023
  noneOf?: string[] | undefined;
8024
+ allOf?: string[] | undefined;
8007
8025
  } | undefined;
8008
8026
  data?: unknown;
8009
8027
  }[];
@@ -8013,10 +8031,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8013
8031
  eventType?: string | undefined;
8014
8032
  status?: {
8015
8033
  type: "anyOf";
8016
- terms: ("CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED")[];
8034
+ terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[];
8017
8035
  } | {
8018
8036
  type: "exact";
8019
- term: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
8037
+ term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED";
8020
8038
  } | undefined;
8021
8039
  createdAt?: {
8022
8040
  type: "exact";
@@ -8027,7 +8045,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8027
8045
  lte: string;
8028
8046
  } | {
8029
8047
  type: "timePeriod";
8030
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8048
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
8031
8049
  } | undefined;
8032
8050
  updatedAt?: {
8033
8051
  type: "exact";
@@ -8038,12 +8056,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8038
8056
  lte: string;
8039
8057
  } | {
8040
8058
  type: "timePeriod";
8041
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8059
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
8042
8060
  } | undefined;
8043
8061
  'legalStatuses.DECLARED.createdAtLocation'?: {
8044
8062
  type: "within";
8045
8063
  location: string | {
8046
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8064
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8047
8065
  $location?: string | undefined;
8048
8066
  };
8049
8067
  } | undefined;
@@ -8060,12 +8078,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8060
8078
  lte: string;
8061
8079
  } | {
8062
8080
  type: "timePeriod";
8063
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
8081
+ term: "last30Days" | "last365Days" | "last7Days" | "last90Days";
8064
8082
  } | undefined;
8065
8083
  'legalStatuses.REGISTERED.createdAtLocation'?: {
8066
8084
  type: "within";
8067
8085
  location: string | {
8068
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8086
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8069
8087
  $location?: string | undefined;
8070
8088
  };
8071
8089
  } | undefined;
@@ -8080,47 +8098,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8080
8098
  createdAtLocation?: {
8081
8099
  type: "within";
8082
8100
  location: string | {
8083
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8101
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8084
8102
  $location?: string | undefined;
8085
8103
  };
8086
8104
  } | {
8087
8105
  type: "exact";
8088
8106
  term: string | {
8089
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8107
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8090
8108
  $location?: string | undefined;
8091
8109
  };
8092
8110
  } | undefined;
8093
8111
  updatedAtLocation?: {
8094
8112
  type: "within";
8095
8113
  location: string | {
8096
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8114
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8097
8115
  $location?: string | undefined;
8098
8116
  };
8099
8117
  } | {
8100
8118
  type: "exact";
8101
8119
  term: string | {
8102
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8120
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8103
8121
  $location?: string | undefined;
8104
8122
  };
8105
8123
  } | undefined;
8106
8124
  updatedByUserRole?: {
8107
8125
  type: "exact";
8108
8126
  term: string | {
8109
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8127
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8110
8128
  $location?: string | undefined;
8111
8129
  };
8112
8130
  } | undefined;
8113
8131
  assignedTo?: {
8114
8132
  type: "exact";
8115
8133
  term: string | {
8116
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8134
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8117
8135
  $location?: string | undefined;
8118
8136
  };
8119
8137
  } | undefined;
8120
8138
  createdBy?: {
8121
8139
  type: "exact";
8122
8140
  term: string | {
8123
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8141
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8124
8142
  $location?: string | undefined;
8125
8143
  };
8126
8144
  } | undefined;
@@ -8131,7 +8149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8131
8149
  updatedBy?: {
8132
8150
  type: "exact";
8133
8151
  term: string | {
8134
- $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
8152
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "avatar" | "signature";
8135
8153
  $location?: string | undefined;
8136
8154
  };
8137
8155
  } | undefined;
@@ -8142,6 +8160,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8142
8160
  flags?: {
8143
8161
  anyOf?: string[] | undefined;
8144
8162
  noneOf?: string[] | undefined;
8163
+ allOf?: string[] | undefined;
8145
8164
  } | undefined;
8146
8165
  data?: unknown;
8147
8166
  }[];
@@ -8156,7 +8175,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8156
8175
  $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
8157
8176
  };
8158
8177
  }[];
8159
- icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8178
+ icon: "Activity" | "Archive" | "ArchiveBox" | "ArchiveTray" | "Archived" | "ArrowCircleDown" | "ArrowCounterClockwise" | "ArrowLeft" | "ArrowRight" | "Assigned" | "Briefcase" | "Buildings" | "CaretDown" | "CaretLeft" | "CaretRight" | "Certified" | "ChartActivity" | "ChartBar" | "ChartLine" | "ChatCircle" | "ChatText" | "Check" | "CheckSquare" | "Circle" | "CircleWavyCheck" | "CircleWavyQuestion" | "Clock" | "Close" | "Collapse" | "Compass" | "Copy" | "Database" | "DeviceTabletCamera" | "DotsThreeVertical" | "Draft" | "DuplicateYellow" | "Envelope" | "Expand" | "Export" | "ExternalValidate" | "Eye" | "EyeSlash" | "File" | "FileArrowUp" | "FileDotted" | "FileMinus" | "FilePlus" | "FileSearch" | "FileText" | "FileX" | "Files" | "FilledCheck" | "Fingerprint" | "Gear" | "GitBranch" | "Globe" | "Handshake" | "IdentificationCard" | "InReview" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "MapPin" | "Medal" | "NotePencil" | "Offline" | "PaperPlaneTilt" | "Paperclip" | "Pen" | "PenNib" | "Pencil" | "PencilCircle" | "PencilLine" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "PushPin" | "QrCode" | "Registered" | "RequiresUpdates" | "Sent" | "SignOut" | "Stamp" | "Star" | "Sun" | "Target" | "TextT" | "Timer" | "Trash" | "UploadSimple" | "User" | "UserCircle" | "UserPlus" | "Users" | "Validated" | "WaitingApproval" | "WarningCircle" | "Webcam" | "X";
8160
8179
  action?: {
8161
8180
  type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
8162
8181
  } | undefined;
@@ -8184,14 +8203,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8184
8203
  user: {
8185
8204
  id: string & import("zod").$brand<"UUID">;
8186
8205
  type: "system";
8187
- signature?: undefined;
8188
8206
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8189
8207
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8208
+ signature?: undefined;
8190
8209
  } | {
8191
8210
  id: string & import("zod").$brand<"UUID">;
8192
- type: "user";
8193
8211
  role: string;
8194
8212
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8213
+ type: "user";
8195
8214
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8196
8215
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8197
8216
  };
@@ -8232,14 +8251,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8232
8251
  user: {
8233
8252
  id: string & import("zod").$brand<"UUID">;
8234
8253
  type: "system";
8235
- signature?: undefined;
8236
8254
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8237
8255
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8256
+ signature?: undefined;
8238
8257
  } | {
8239
8258
  id: string & import("zod").$brand<"UUID">;
8240
- type: "user";
8241
8259
  role: string;
8242
8260
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8261
+ type: "user";
8243
8262
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8244
8263
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8245
8264
  };
@@ -8350,14 +8369,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8350
8369
  user: {
8351
8370
  id: string & import("zod").$brand<"UUID">;
8352
8371
  type: "system";
8353
- signature?: undefined;
8354
8372
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8355
8373
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8374
+ signature?: undefined;
8356
8375
  } | {
8357
8376
  id: string & import("zod").$brand<"UUID">;
8358
- type: "user";
8359
8377
  role: string;
8360
8378
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8379
+ type: "user";
8361
8380
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8362
8381
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8363
8382
  };
@@ -8385,14 +8404,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8385
8404
  user: {
8386
8405
  id: string & import("zod").$brand<"UUID">;
8387
8406
  type: "system";
8388
- signature?: undefined;
8389
8407
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8390
8408
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8409
+ signature?: undefined;
8391
8410
  } | {
8392
8411
  id: string & import("zod").$brand<"UUID">;
8393
- type: "user";
8394
8412
  role: string;
8395
8413
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8414
+ type: "user";
8396
8415
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8397
8416
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8398
8417
  };