@opencrvs/toolkit 1.8.0-rc.fb4793a → 1.8.0-rc.fbb40d1

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.
@@ -746,6 +746,735 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
746
746
  }[];
747
747
  };
748
748
  actions: ({
749
+ type: "READ";
750
+ conditionals: ({
751
+ type: "SHOW";
752
+ conditional: import("../commons").JSONSchema;
753
+ } | {
754
+ type: "ENABLE";
755
+ conditional: import("../commons").JSONSchema;
756
+ })[];
757
+ label: import("../commons").TranslationConfig;
758
+ review: {
759
+ title: import("../commons").TranslationConfig;
760
+ fields: ({
761
+ type: "DIVIDER";
762
+ id: string;
763
+ label: import("../commons").TranslationConfig;
764
+ parent?: {
765
+ _fieldId?: string | undefined;
766
+ } | undefined;
767
+ validation?: {
768
+ message: import("../commons").TranslationConfig;
769
+ validator: import("../commons").JSONSchema;
770
+ }[] | undefined;
771
+ required?: boolean | undefined;
772
+ defaultValue?: string | number | boolean | undefined;
773
+ conditionals?: ({
774
+ type: "SHOW";
775
+ conditional: import("../commons").JSONSchema;
776
+ } | {
777
+ type: "ENABLE";
778
+ conditional: import("../commons").JSONSchema;
779
+ } | {
780
+ type: "DISPLAY_ON_REVIEW";
781
+ conditional: import("../commons").JSONSchema;
782
+ })[] | undefined;
783
+ placeholder?: import("../commons").TranslationConfig | undefined;
784
+ helperText?: import("../commons").TranslationConfig | undefined;
785
+ hideLabel?: boolean | undefined;
786
+ } | {
787
+ type: "TEXT";
788
+ id: string;
789
+ label: import("../commons").TranslationConfig;
790
+ parent?: {
791
+ _fieldId?: string | undefined;
792
+ } | undefined;
793
+ validation?: {
794
+ message: import("../commons").TranslationConfig;
795
+ validator: import("../commons").JSONSchema;
796
+ }[] | undefined;
797
+ required?: boolean | undefined;
798
+ defaultValue?: string | undefined;
799
+ conditionals?: ({
800
+ type: "SHOW";
801
+ conditional: import("../commons").JSONSchema;
802
+ } | {
803
+ type: "ENABLE";
804
+ conditional: import("../commons").JSONSchema;
805
+ } | {
806
+ type: "DISPLAY_ON_REVIEW";
807
+ conditional: import("../commons").JSONSchema;
808
+ })[] | undefined;
809
+ placeholder?: import("../commons").TranslationConfig | undefined;
810
+ helperText?: import("../commons").TranslationConfig | undefined;
811
+ hideLabel?: boolean | undefined;
812
+ configuration?: {
813
+ type?: "text" | "password" | undefined;
814
+ maxLength?: number | undefined;
815
+ prefix?: import("../commons").TranslationConfig | undefined;
816
+ postfix?: import("../commons").TranslationConfig | undefined;
817
+ } | undefined;
818
+ } | {
819
+ type: "NUMBER";
820
+ id: string;
821
+ label: import("../commons").TranslationConfig;
822
+ parent?: {
823
+ _fieldId?: string | undefined;
824
+ } | undefined;
825
+ validation?: {
826
+ message: import("../commons").TranslationConfig;
827
+ validator: import("../commons").JSONSchema;
828
+ }[] | undefined;
829
+ required?: boolean | undefined;
830
+ defaultValue?: number | undefined;
831
+ conditionals?: ({
832
+ type: "SHOW";
833
+ conditional: import("../commons").JSONSchema;
834
+ } | {
835
+ type: "ENABLE";
836
+ conditional: import("../commons").JSONSchema;
837
+ } | {
838
+ type: "DISPLAY_ON_REVIEW";
839
+ conditional: import("../commons").JSONSchema;
840
+ })[] | undefined;
841
+ placeholder?: import("../commons").TranslationConfig | undefined;
842
+ helperText?: import("../commons").TranslationConfig | undefined;
843
+ hideLabel?: boolean | undefined;
844
+ configuration?: {
845
+ prefix?: import("../commons").TranslationConfig | undefined;
846
+ postfix?: import("../commons").TranslationConfig | undefined;
847
+ min?: number | undefined;
848
+ max?: number | undefined;
849
+ } | undefined;
850
+ } | {
851
+ type: "TEXTAREA";
852
+ id: string;
853
+ label: import("../commons").TranslationConfig;
854
+ parent?: {
855
+ _fieldId?: string | undefined;
856
+ } | undefined;
857
+ validation?: {
858
+ message: import("../commons").TranslationConfig;
859
+ validator: import("../commons").JSONSchema;
860
+ }[] | undefined;
861
+ required?: boolean | undefined;
862
+ defaultValue?: string | undefined;
863
+ conditionals?: ({
864
+ type: "SHOW";
865
+ conditional: import("../commons").JSONSchema;
866
+ } | {
867
+ type: "ENABLE";
868
+ conditional: import("../commons").JSONSchema;
869
+ } | {
870
+ type: "DISPLAY_ON_REVIEW";
871
+ conditional: import("../commons").JSONSchema;
872
+ })[] | undefined;
873
+ placeholder?: import("../commons").TranslationConfig | undefined;
874
+ helperText?: import("../commons").TranslationConfig | undefined;
875
+ hideLabel?: boolean | undefined;
876
+ configuration?: {
877
+ maxLength?: number | undefined;
878
+ prefix?: import("../commons").TranslationConfig | undefined;
879
+ postfix?: import("../commons").TranslationConfig | undefined;
880
+ rows?: number | undefined;
881
+ cols?: number | undefined;
882
+ } | undefined;
883
+ } | {
884
+ type: "SIGNATURE";
885
+ id: string;
886
+ label: import("../commons").TranslationConfig;
887
+ configuration: {
888
+ maxFileSize: number;
889
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
890
+ };
891
+ signaturePromptLabel: import("../commons").TranslationConfig;
892
+ parent?: {
893
+ _fieldId?: string | undefined;
894
+ } | undefined;
895
+ validation?: {
896
+ message: import("../commons").TranslationConfig;
897
+ validator: import("../commons").JSONSchema;
898
+ }[] | undefined;
899
+ required?: boolean | undefined;
900
+ defaultValue?: string | number | boolean | undefined;
901
+ conditionals?: ({
902
+ type: "SHOW";
903
+ conditional: import("../commons").JSONSchema;
904
+ } | {
905
+ type: "ENABLE";
906
+ conditional: import("../commons").JSONSchema;
907
+ } | {
908
+ type: "DISPLAY_ON_REVIEW";
909
+ conditional: import("../commons").JSONSchema;
910
+ })[] | undefined;
911
+ placeholder?: import("../commons").TranslationConfig | undefined;
912
+ helperText?: import("../commons").TranslationConfig | undefined;
913
+ hideLabel?: boolean | undefined;
914
+ } | {
915
+ type: "EMAIL";
916
+ id: string;
917
+ label: import("../commons").TranslationConfig;
918
+ parent?: {
919
+ _fieldId?: string | undefined;
920
+ } | undefined;
921
+ validation?: {
922
+ message: import("../commons").TranslationConfig;
923
+ validator: import("../commons").JSONSchema;
924
+ }[] | undefined;
925
+ required?: boolean | undefined;
926
+ defaultValue?: string | undefined;
927
+ conditionals?: ({
928
+ type: "SHOW";
929
+ conditional: import("../commons").JSONSchema;
930
+ } | {
931
+ type: "ENABLE";
932
+ conditional: import("../commons").JSONSchema;
933
+ } | {
934
+ type: "DISPLAY_ON_REVIEW";
935
+ conditional: import("../commons").JSONSchema;
936
+ })[] | undefined;
937
+ placeholder?: import("../commons").TranslationConfig | undefined;
938
+ helperText?: import("../commons").TranslationConfig | undefined;
939
+ hideLabel?: boolean | undefined;
940
+ configuration?: {
941
+ maxLength?: number | undefined;
942
+ } | undefined;
943
+ } | {
944
+ type: "DATE";
945
+ id: string;
946
+ label: import("../commons").TranslationConfig;
947
+ parent?: {
948
+ _fieldId?: string | undefined;
949
+ } | undefined;
950
+ validation?: {
951
+ message: import("../commons").TranslationConfig;
952
+ validator: import("../commons").JSONSchema;
953
+ }[] | undefined;
954
+ required?: boolean | undefined;
955
+ defaultValue?: string | undefined;
956
+ conditionals?: ({
957
+ type: "SHOW";
958
+ conditional: import("../commons").JSONSchema;
959
+ } | {
960
+ type: "ENABLE";
961
+ conditional: import("../commons").JSONSchema;
962
+ } | {
963
+ type: "DISPLAY_ON_REVIEW";
964
+ conditional: import("../commons").JSONSchema;
965
+ })[] | undefined;
966
+ placeholder?: import("../commons").TranslationConfig | undefined;
967
+ helperText?: import("../commons").TranslationConfig | undefined;
968
+ hideLabel?: boolean | undefined;
969
+ configuration?: {
970
+ notice?: import("../commons").TranslationConfig | undefined;
971
+ } | undefined;
972
+ } | {
973
+ type: "DATE_RANGE";
974
+ id: string;
975
+ label: import("../commons").TranslationConfig;
976
+ parent?: {
977
+ _fieldId?: string | undefined;
978
+ } | undefined;
979
+ validation?: {
980
+ message: import("../commons").TranslationConfig;
981
+ validator: import("../commons").JSONSchema;
982
+ }[] | undefined;
983
+ required?: boolean | undefined;
984
+ defaultValue?: string | [string, string] | undefined;
985
+ conditionals?: ({
986
+ type: "SHOW";
987
+ conditional: import("../commons").JSONSchema;
988
+ } | {
989
+ type: "ENABLE";
990
+ conditional: import("../commons").JSONSchema;
991
+ } | {
992
+ type: "DISPLAY_ON_REVIEW";
993
+ conditional: import("../commons").JSONSchema;
994
+ })[] | undefined;
995
+ placeholder?: import("../commons").TranslationConfig | undefined;
996
+ helperText?: import("../commons").TranslationConfig | undefined;
997
+ hideLabel?: boolean | undefined;
998
+ configuration?: {
999
+ notice?: import("../commons").TranslationConfig | undefined;
1000
+ } | undefined;
1001
+ } | {
1002
+ type: "PARAGRAPH";
1003
+ id: string;
1004
+ label: import("../commons").TranslationConfig;
1005
+ configuration: {
1006
+ styles?: {
1007
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1008
+ } | undefined;
1009
+ };
1010
+ parent?: {
1011
+ _fieldId?: string | undefined;
1012
+ } | undefined;
1013
+ validation?: {
1014
+ message: import("../commons").TranslationConfig;
1015
+ validator: import("../commons").JSONSchema;
1016
+ }[] | undefined;
1017
+ required?: boolean | undefined;
1018
+ defaultValue?: string | undefined;
1019
+ conditionals?: ({
1020
+ type: "SHOW";
1021
+ conditional: import("../commons").JSONSchema;
1022
+ } | {
1023
+ type: "ENABLE";
1024
+ conditional: import("../commons").JSONSchema;
1025
+ } | {
1026
+ type: "DISPLAY_ON_REVIEW";
1027
+ conditional: import("../commons").JSONSchema;
1028
+ })[] | undefined;
1029
+ placeholder?: import("../commons").TranslationConfig | undefined;
1030
+ helperText?: import("../commons").TranslationConfig | undefined;
1031
+ hideLabel?: boolean | undefined;
1032
+ } | {
1033
+ type: "PAGE_HEADER";
1034
+ id: string;
1035
+ label: import("../commons").TranslationConfig;
1036
+ parent?: {
1037
+ _fieldId?: string | undefined;
1038
+ } | undefined;
1039
+ validation?: {
1040
+ message: import("../commons").TranslationConfig;
1041
+ validator: import("../commons").JSONSchema;
1042
+ }[] | undefined;
1043
+ required?: boolean | undefined;
1044
+ defaultValue?: string | undefined;
1045
+ conditionals?: ({
1046
+ type: "SHOW";
1047
+ conditional: import("../commons").JSONSchema;
1048
+ } | {
1049
+ type: "ENABLE";
1050
+ conditional: import("../commons").JSONSchema;
1051
+ } | {
1052
+ type: "DISPLAY_ON_REVIEW";
1053
+ conditional: import("../commons").JSONSchema;
1054
+ })[] | undefined;
1055
+ placeholder?: import("../commons").TranslationConfig | undefined;
1056
+ helperText?: import("../commons").TranslationConfig | undefined;
1057
+ hideLabel?: boolean | undefined;
1058
+ } | {
1059
+ type: "FILE";
1060
+ id: string;
1061
+ label: import("../commons").TranslationConfig;
1062
+ configuration: {
1063
+ maxFileSize: number;
1064
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1065
+ style?: {
1066
+ width?: "full" | "auto" | undefined;
1067
+ } | undefined;
1068
+ fileName?: import("../commons").TranslationConfig | undefined;
1069
+ };
1070
+ parent?: {
1071
+ _fieldId?: string | undefined;
1072
+ } | undefined;
1073
+ validation?: {
1074
+ message: import("../commons").TranslationConfig;
1075
+ validator: import("../commons").JSONSchema;
1076
+ }[] | undefined;
1077
+ required?: boolean | undefined;
1078
+ defaultValue?: string | number | boolean | undefined;
1079
+ conditionals?: ({
1080
+ type: "SHOW";
1081
+ conditional: import("../commons").JSONSchema;
1082
+ } | {
1083
+ type: "ENABLE";
1084
+ conditional: import("../commons").JSONSchema;
1085
+ } | {
1086
+ type: "DISPLAY_ON_REVIEW";
1087
+ conditional: import("../commons").JSONSchema;
1088
+ })[] | undefined;
1089
+ placeholder?: import("../commons").TranslationConfig | undefined;
1090
+ helperText?: import("../commons").TranslationConfig | undefined;
1091
+ hideLabel?: boolean | undefined;
1092
+ } | {
1093
+ type: "RADIO_GROUP";
1094
+ id: string;
1095
+ options: {
1096
+ value: string;
1097
+ label: import("../commons").TranslationConfig;
1098
+ }[];
1099
+ label: import("../commons").TranslationConfig;
1100
+ parent?: {
1101
+ _fieldId?: string | undefined;
1102
+ } | undefined;
1103
+ validation?: {
1104
+ message: import("../commons").TranslationConfig;
1105
+ validator: import("../commons").JSONSchema;
1106
+ }[] | undefined;
1107
+ required?: boolean | undefined;
1108
+ defaultValue?: string | undefined;
1109
+ conditionals?: ({
1110
+ type: "SHOW";
1111
+ conditional: import("../commons").JSONSchema;
1112
+ } | {
1113
+ type: "ENABLE";
1114
+ conditional: import("../commons").JSONSchema;
1115
+ } | {
1116
+ type: "DISPLAY_ON_REVIEW";
1117
+ conditional: import("../commons").JSONSchema;
1118
+ })[] | undefined;
1119
+ placeholder?: import("../commons").TranslationConfig | undefined;
1120
+ helperText?: import("../commons").TranslationConfig | undefined;
1121
+ hideLabel?: boolean | undefined;
1122
+ configuration?: {
1123
+ styles?: {
1124
+ size?: "NORMAL" | "LARGE" | undefined;
1125
+ } | undefined;
1126
+ } | undefined;
1127
+ } | {
1128
+ type: "BULLET_LIST";
1129
+ id: string;
1130
+ label: import("../commons").TranslationConfig;
1131
+ configuration: {
1132
+ styles?: {
1133
+ fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
1134
+ } | undefined;
1135
+ };
1136
+ items: import("../commons").TranslationConfig[];
1137
+ parent?: {
1138
+ _fieldId?: string | undefined;
1139
+ } | undefined;
1140
+ validation?: {
1141
+ message: import("../commons").TranslationConfig;
1142
+ validator: import("../commons").JSONSchema;
1143
+ }[] | undefined;
1144
+ required?: boolean | undefined;
1145
+ defaultValue?: string | undefined;
1146
+ conditionals?: ({
1147
+ type: "SHOW";
1148
+ conditional: import("../commons").JSONSchema;
1149
+ } | {
1150
+ type: "ENABLE";
1151
+ conditional: import("../commons").JSONSchema;
1152
+ } | {
1153
+ type: "DISPLAY_ON_REVIEW";
1154
+ conditional: import("../commons").JSONSchema;
1155
+ })[] | undefined;
1156
+ placeholder?: import("../commons").TranslationConfig | undefined;
1157
+ helperText?: import("../commons").TranslationConfig | undefined;
1158
+ hideLabel?: boolean | undefined;
1159
+ } | {
1160
+ type: "SELECT";
1161
+ id: string;
1162
+ options: {
1163
+ value: string;
1164
+ label: import("../commons").TranslationConfig;
1165
+ }[];
1166
+ label: import("../commons").TranslationConfig;
1167
+ parent?: {
1168
+ _fieldId?: string | undefined;
1169
+ } | undefined;
1170
+ validation?: {
1171
+ message: import("../commons").TranslationConfig;
1172
+ validator: import("../commons").JSONSchema;
1173
+ }[] | undefined;
1174
+ required?: boolean | undefined;
1175
+ defaultValue?: string | undefined;
1176
+ conditionals?: ({
1177
+ type: "SHOW";
1178
+ conditional: import("../commons").JSONSchema;
1179
+ } | {
1180
+ type: "ENABLE";
1181
+ conditional: import("../commons").JSONSchema;
1182
+ } | {
1183
+ type: "DISPLAY_ON_REVIEW";
1184
+ conditional: import("../commons").JSONSchema;
1185
+ })[] | undefined;
1186
+ placeholder?: import("../commons").TranslationConfig | undefined;
1187
+ helperText?: import("../commons").TranslationConfig | undefined;
1188
+ hideLabel?: boolean | undefined;
1189
+ } | {
1190
+ type: "CHECKBOX";
1191
+ id: string;
1192
+ label: import("../commons").TranslationConfig;
1193
+ parent?: {
1194
+ _fieldId?: string | undefined;
1195
+ } | undefined;
1196
+ validation?: {
1197
+ message: import("../commons").TranslationConfig;
1198
+ validator: import("../commons").JSONSchema;
1199
+ }[] | undefined;
1200
+ required?: boolean | undefined;
1201
+ defaultValue?: boolean | undefined;
1202
+ conditionals?: ({
1203
+ type: "SHOW";
1204
+ conditional: import("../commons").JSONSchema;
1205
+ } | {
1206
+ type: "ENABLE";
1207
+ conditional: import("../commons").JSONSchema;
1208
+ } | {
1209
+ type: "DISPLAY_ON_REVIEW";
1210
+ conditional: import("../commons").JSONSchema;
1211
+ })[] | undefined;
1212
+ placeholder?: import("../commons").TranslationConfig | undefined;
1213
+ helperText?: import("../commons").TranslationConfig | undefined;
1214
+ hideLabel?: boolean | undefined;
1215
+ } | {
1216
+ type: "COUNTRY";
1217
+ id: string;
1218
+ label: import("../commons").TranslationConfig;
1219
+ parent?: {
1220
+ _fieldId?: string | undefined;
1221
+ } | undefined;
1222
+ validation?: {
1223
+ message: import("../commons").TranslationConfig;
1224
+ validator: import("../commons").JSONSchema;
1225
+ }[] | undefined;
1226
+ required?: boolean | undefined;
1227
+ defaultValue?: string | undefined;
1228
+ conditionals?: ({
1229
+ type: "SHOW";
1230
+ conditional: import("../commons").JSONSchema;
1231
+ } | {
1232
+ type: "ENABLE";
1233
+ conditional: import("../commons").JSONSchema;
1234
+ } | {
1235
+ type: "DISPLAY_ON_REVIEW";
1236
+ conditional: import("../commons").JSONSchema;
1237
+ })[] | undefined;
1238
+ placeholder?: import("../commons").TranslationConfig | undefined;
1239
+ helperText?: import("../commons").TranslationConfig | undefined;
1240
+ hideLabel?: boolean | undefined;
1241
+ } | {
1242
+ type: "ADMINISTRATIVE_AREA";
1243
+ id: string;
1244
+ label: import("../commons").TranslationConfig;
1245
+ configuration: {
1246
+ type: "ADMIN_STRUCTURE" | "HEALTH_FACILITY" | "CRVS_OFFICE";
1247
+ partOf?: {
1248
+ $declaration: string;
1249
+ } | undefined;
1250
+ };
1251
+ parent?: {
1252
+ _fieldId?: string | undefined;
1253
+ } | undefined;
1254
+ validation?: {
1255
+ message: import("../commons").TranslationConfig;
1256
+ validator: import("../commons").JSONSchema;
1257
+ }[] | undefined;
1258
+ required?: boolean | undefined;
1259
+ defaultValue?: string | undefined;
1260
+ conditionals?: ({
1261
+ type: "SHOW";
1262
+ conditional: import("../commons").JSONSchema;
1263
+ } | {
1264
+ type: "ENABLE";
1265
+ conditional: import("../commons").JSONSchema;
1266
+ } | {
1267
+ type: "DISPLAY_ON_REVIEW";
1268
+ conditional: import("../commons").JSONSchema;
1269
+ })[] | undefined;
1270
+ placeholder?: import("../commons").TranslationConfig | undefined;
1271
+ helperText?: import("../commons").TranslationConfig | undefined;
1272
+ hideLabel?: boolean | undefined;
1273
+ } | {
1274
+ type: "LOCATION";
1275
+ id: string;
1276
+ label: import("../commons").TranslationConfig;
1277
+ parent?: {
1278
+ _fieldId?: string | undefined;
1279
+ } | undefined;
1280
+ validation?: {
1281
+ message: import("../commons").TranslationConfig;
1282
+ validator: import("../commons").JSONSchema;
1283
+ }[] | undefined;
1284
+ required?: boolean | undefined;
1285
+ defaultValue?: string | undefined;
1286
+ conditionals?: ({
1287
+ type: "SHOW";
1288
+ conditional: import("../commons").JSONSchema;
1289
+ } | {
1290
+ type: "ENABLE";
1291
+ conditional: import("../commons").JSONSchema;
1292
+ } | {
1293
+ type: "DISPLAY_ON_REVIEW";
1294
+ conditional: import("../commons").JSONSchema;
1295
+ })[] | undefined;
1296
+ placeholder?: import("../commons").TranslationConfig | undefined;
1297
+ helperText?: import("../commons").TranslationConfig | undefined;
1298
+ hideLabel?: boolean | undefined;
1299
+ } | {
1300
+ type: "FILE_WITH_OPTIONS";
1301
+ id: string;
1302
+ options: {
1303
+ value: string;
1304
+ label: import("../commons").TranslationConfig;
1305
+ }[];
1306
+ label: import("../commons").TranslationConfig;
1307
+ configuration: {
1308
+ maxFileSize: number;
1309
+ acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
1310
+ };
1311
+ parent?: {
1312
+ _fieldId?: string | undefined;
1313
+ } | undefined;
1314
+ validation?: {
1315
+ message: import("../commons").TranslationConfig;
1316
+ validator: import("../commons").JSONSchema;
1317
+ }[] | undefined;
1318
+ required?: boolean | undefined;
1319
+ defaultValue?: string | number | boolean | undefined;
1320
+ conditionals?: ({
1321
+ type: "SHOW";
1322
+ conditional: import("../commons").JSONSchema;
1323
+ } | {
1324
+ type: "ENABLE";
1325
+ conditional: import("../commons").JSONSchema;
1326
+ } | {
1327
+ type: "DISPLAY_ON_REVIEW";
1328
+ conditional: import("../commons").JSONSchema;
1329
+ })[] | undefined;
1330
+ placeholder?: import("../commons").TranslationConfig | undefined;
1331
+ helperText?: import("../commons").TranslationConfig | undefined;
1332
+ hideLabel?: boolean | undefined;
1333
+ } | {
1334
+ type: "FACILITY";
1335
+ id: string;
1336
+ label: import("../commons").TranslationConfig;
1337
+ parent?: {
1338
+ _fieldId?: string | undefined;
1339
+ } | undefined;
1340
+ validation?: {
1341
+ message: import("../commons").TranslationConfig;
1342
+ validator: import("../commons").JSONSchema;
1343
+ }[] | undefined;
1344
+ required?: boolean | undefined;
1345
+ defaultValue?: string | undefined;
1346
+ conditionals?: ({
1347
+ type: "SHOW";
1348
+ conditional: import("../commons").JSONSchema;
1349
+ } | {
1350
+ type: "ENABLE";
1351
+ conditional: import("../commons").JSONSchema;
1352
+ } | {
1353
+ type: "DISPLAY_ON_REVIEW";
1354
+ conditional: import("../commons").JSONSchema;
1355
+ })[] | undefined;
1356
+ placeholder?: import("../commons").TranslationConfig | undefined;
1357
+ helperText?: import("../commons").TranslationConfig | undefined;
1358
+ hideLabel?: boolean | undefined;
1359
+ } | {
1360
+ type: "OFFICE";
1361
+ id: string;
1362
+ label: import("../commons").TranslationConfig;
1363
+ parent?: {
1364
+ _fieldId?: string | undefined;
1365
+ } | undefined;
1366
+ validation?: {
1367
+ message: import("../commons").TranslationConfig;
1368
+ validator: import("../commons").JSONSchema;
1369
+ }[] | undefined;
1370
+ required?: boolean | undefined;
1371
+ defaultValue?: string | undefined;
1372
+ conditionals?: ({
1373
+ type: "SHOW";
1374
+ conditional: import("../commons").JSONSchema;
1375
+ } | {
1376
+ type: "ENABLE";
1377
+ conditional: import("../commons").JSONSchema;
1378
+ } | {
1379
+ type: "DISPLAY_ON_REVIEW";
1380
+ conditional: import("../commons").JSONSchema;
1381
+ })[] | undefined;
1382
+ placeholder?: import("../commons").TranslationConfig | undefined;
1383
+ helperText?: import("../commons").TranslationConfig | undefined;
1384
+ hideLabel?: boolean | undefined;
1385
+ } | {
1386
+ type: "ADDRESS";
1387
+ id: string;
1388
+ label: import("../commons").TranslationConfig;
1389
+ parent?: {
1390
+ _fieldId?: string | undefined;
1391
+ } | undefined;
1392
+ validation?: {
1393
+ message: import("../commons").TranslationConfig;
1394
+ validator: import("../commons").JSONSchema;
1395
+ }[] | undefined;
1396
+ required?: boolean | undefined;
1397
+ defaultValue?: {
1398
+ country: string;
1399
+ district: string;
1400
+ addressType: "DOMESTIC";
1401
+ province: string;
1402
+ urbanOrRural: "URBAN";
1403
+ number?: string | undefined;
1404
+ town?: string | undefined;
1405
+ residentialArea?: string | undefined;
1406
+ street?: string | undefined;
1407
+ zipCode?: string | undefined;
1408
+ } | {
1409
+ country: string;
1410
+ district: string;
1411
+ addressType: "DOMESTIC";
1412
+ province: string;
1413
+ urbanOrRural: "RURAL";
1414
+ village?: string | undefined;
1415
+ } | {
1416
+ country: string;
1417
+ state: string;
1418
+ addressType: "INTERNATIONAL";
1419
+ district2: string;
1420
+ cityOrTown?: string | undefined;
1421
+ addressLine1?: string | undefined;
1422
+ addressLine2?: string | undefined;
1423
+ addressLine3?: string | undefined;
1424
+ postcodeOrZip?: string | undefined;
1425
+ } | undefined;
1426
+ conditionals?: ({
1427
+ type: "SHOW";
1428
+ conditional: import("../commons").JSONSchema;
1429
+ } | {
1430
+ type: "ENABLE";
1431
+ conditional: import("../commons").JSONSchema;
1432
+ } | {
1433
+ type: "DISPLAY_ON_REVIEW";
1434
+ conditional: import("../commons").JSONSchema;
1435
+ })[] | undefined;
1436
+ placeholder?: import("../commons").TranslationConfig | undefined;
1437
+ helperText?: import("../commons").TranslationConfig | undefined;
1438
+ hideLabel?: boolean | undefined;
1439
+ } | {
1440
+ type: "DATA";
1441
+ id: string;
1442
+ label: import("../commons").TranslationConfig;
1443
+ configuration: {
1444
+ data: ({
1445
+ value: string | import("../commons").TranslationConfig;
1446
+ label: import("../commons").TranslationConfig;
1447
+ } | {
1448
+ fieldId: string;
1449
+ })[];
1450
+ subtitle?: import("../commons").TranslationConfig | undefined;
1451
+ };
1452
+ parent?: {
1453
+ _fieldId?: string | undefined;
1454
+ } | undefined;
1455
+ validation?: {
1456
+ message: import("../commons").TranslationConfig;
1457
+ validator: import("../commons").JSONSchema;
1458
+ }[] | undefined;
1459
+ required?: boolean | undefined;
1460
+ defaultValue?: string | number | boolean | undefined;
1461
+ conditionals?: ({
1462
+ type: "SHOW";
1463
+ conditional: import("../commons").JSONSchema;
1464
+ } | {
1465
+ type: "ENABLE";
1466
+ conditional: import("../commons").JSONSchema;
1467
+ } | {
1468
+ type: "DISPLAY_ON_REVIEW";
1469
+ conditional: import("../commons").JSONSchema;
1470
+ })[] | undefined;
1471
+ placeholder?: import("../commons").TranslationConfig | undefined;
1472
+ helperText?: import("../commons").TranslationConfig | undefined;
1473
+ hideLabel?: boolean | undefined;
1474
+ })[];
1475
+ };
1476
+ draft?: boolean | undefined;
1477
+ } | {
749
1478
  type: "DECLARE";
750
1479
  conditionals: ({
751
1480
  type: "SHOW";
@@ -7466,13 +8195,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7466
8195
  input: {
7467
8196
  type: string;
7468
8197
  transactionId: string;
7469
- dateOfEvent?: {
7470
- fieldId: string;
7471
- } | undefined;
7472
8198
  };
7473
8199
  output: {
7474
8200
  type: string;
7475
- id: string;
8201
+ id: string & import("zod").BRAND<"UUID">;
7476
8202
  createdAt: string;
7477
8203
  updatedAt: string;
7478
8204
  actions: ({
@@ -7521,8 +8247,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7521
8247
  filename: string;
7522
8248
  originalFilename: string;
7523
8249
  }[] | [string, string] | undefined>;
7524
- createdAtLocation: string;
7525
8250
  assignedTo: string;
8251
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7526
8252
  annotation?: Record<string, string | number | boolean | {
7527
8253
  type: string;
7528
8254
  filename: string;
@@ -7560,8 +8286,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7560
8286
  option: string;
7561
8287
  filename: string;
7562
8288
  originalFilename: string;
7563
- }[] | [string, string] | undefined> | undefined;
7564
- originalActionId?: string | undefined;
8289
+ }[] | [string, string] | undefined> | null | undefined;
8290
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7565
8291
  } | {
7566
8292
  type: "UNASSIGN";
7567
8293
  id: string;
@@ -7608,8 +8334,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7608
8334
  filename: string;
7609
8335
  originalFilename: string;
7610
8336
  }[] | [string, string] | undefined>;
7611
- createdAtLocation: string;
7612
8337
  assignedTo: null;
8338
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7613
8339
  annotation?: Record<string, string | number | boolean | {
7614
8340
  type: string;
7615
8341
  filename: string;
@@ -7647,8 +8373,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7647
8373
  option: string;
7648
8374
  filename: string;
7649
8375
  originalFilename: string;
7650
- }[] | [string, string] | undefined> | undefined;
7651
- originalActionId?: string | undefined;
8376
+ }[] | [string, string] | undefined> | null | undefined;
8377
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7652
8378
  } | {
7653
8379
  type: "REGISTER";
7654
8380
  id: string;
@@ -7695,7 +8421,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7695
8421
  filename: string;
7696
8422
  originalFilename: string;
7697
8423
  }[] | [string, string] | undefined>;
7698
- createdAtLocation: string;
8424
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7699
8425
  annotation?: Record<string, string | number | boolean | {
7700
8426
  type: string;
7701
8427
  filename: string;
@@ -7733,8 +8459,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7733
8459
  option: string;
7734
8460
  filename: string;
7735
8461
  originalFilename: string;
7736
- }[] | [string, string] | undefined> | undefined;
7737
- originalActionId?: string | undefined;
8462
+ }[] | [string, string] | undefined> | null | undefined;
8463
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7738
8464
  registrationNumber?: string | undefined;
7739
8465
  } | {
7740
8466
  type: "DECLARE";
@@ -7782,7 +8508,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7782
8508
  filename: string;
7783
8509
  originalFilename: string;
7784
8510
  }[] | [string, string] | undefined>;
7785
- createdAtLocation: string;
8511
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7786
8512
  annotation?: Record<string, string | number | boolean | {
7787
8513
  type: string;
7788
8514
  filename: string;
@@ -7820,8 +8546,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7820
8546
  option: string;
7821
8547
  filename: string;
7822
8548
  originalFilename: string;
7823
- }[] | [string, string] | undefined> | undefined;
7824
- originalActionId?: string | undefined;
8549
+ }[] | [string, string] | undefined> | null | undefined;
8550
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7825
8551
  } | {
7826
8552
  type: "VALIDATE";
7827
8553
  id: string;
@@ -7868,7 +8594,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7868
8594
  filename: string;
7869
8595
  originalFilename: string;
7870
8596
  }[] | [string, string] | undefined>;
7871
- createdAtLocation: string;
8597
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7872
8598
  annotation?: Record<string, string | number | boolean | {
7873
8599
  type: string;
7874
8600
  filename: string;
@@ -7906,12 +8632,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7906
8632
  option: string;
7907
8633
  filename: string;
7908
8634
  originalFilename: string;
7909
- }[] | [string, string] | undefined> | undefined;
7910
- originalActionId?: string | undefined;
8635
+ }[] | [string, string] | undefined> | null | undefined;
8636
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7911
8637
  } | {
7912
8638
  type: "REJECT";
7913
8639
  id: string;
7914
8640
  status: "Rejected" | "Requested" | "Accepted";
8641
+ reason: {
8642
+ message: string;
8643
+ isDuplicate?: boolean | undefined;
8644
+ };
7915
8645
  transactionId: string;
7916
8646
  createdAt: string;
7917
8647
  createdBy: string;
@@ -7954,7 +8684,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7954
8684
  filename: string;
7955
8685
  originalFilename: string;
7956
8686
  }[] | [string, string] | undefined>;
7957
- createdAtLocation: string;
8687
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7958
8688
  annotation?: Record<string, string | number | boolean | {
7959
8689
  type: string;
7960
8690
  filename: string;
@@ -7992,8 +8722,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
7992
8722
  option: string;
7993
8723
  filename: string;
7994
8724
  originalFilename: string;
7995
- }[] | [string, string] | undefined> | undefined;
7996
- originalActionId?: string | undefined;
8725
+ }[] | [string, string] | undefined> | null | undefined;
8726
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
7997
8727
  } | {
7998
8728
  type: "MARKED_AS_DUPLICATE";
7999
8729
  id: string;
@@ -8040,7 +8770,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8040
8770
  filename: string;
8041
8771
  originalFilename: string;
8042
8772
  }[] | [string, string] | undefined>;
8043
- createdAtLocation: string;
8773
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8044
8774
  annotation?: Record<string, string | number | boolean | {
8045
8775
  type: string;
8046
8776
  filename: string;
@@ -8078,12 +8808,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8078
8808
  option: string;
8079
8809
  filename: string;
8080
8810
  originalFilename: string;
8081
- }[] | [string, string] | undefined> | undefined;
8082
- originalActionId?: string | undefined;
8811
+ }[] | [string, string] | undefined> | null | undefined;
8812
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8083
8813
  } | {
8084
8814
  type: "ARCHIVE";
8085
8815
  id: string;
8086
8816
  status: "Rejected" | "Requested" | "Accepted";
8817
+ reason: {
8818
+ message: string;
8819
+ isDuplicate?: boolean | undefined;
8820
+ };
8087
8821
  transactionId: string;
8088
8822
  createdAt: string;
8089
8823
  createdBy: string;
@@ -8126,7 +8860,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8126
8860
  filename: string;
8127
8861
  originalFilename: string;
8128
8862
  }[] | [string, string] | undefined>;
8129
- createdAtLocation: string;
8863
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8130
8864
  annotation?: Record<string, string | number | boolean | {
8131
8865
  type: string;
8132
8866
  filename: string;
@@ -8164,8 +8898,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8164
8898
  option: string;
8165
8899
  filename: string;
8166
8900
  originalFilename: string;
8167
- }[] | [string, string] | undefined> | undefined;
8168
- originalActionId?: string | undefined;
8901
+ }[] | [string, string] | undefined> | null | undefined;
8902
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8169
8903
  } | {
8170
8904
  type: "CREATE";
8171
8905
  id: string;
@@ -8212,7 +8946,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8212
8946
  filename: string;
8213
8947
  originalFilename: string;
8214
8948
  }[] | [string, string] | undefined>;
8215
- createdAtLocation: string;
8949
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8216
8950
  annotation?: Record<string, string | number | boolean | {
8217
8951
  type: string;
8218
8952
  filename: string;
@@ -8250,8 +8984,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8250
8984
  option: string;
8251
8985
  filename: string;
8252
8986
  originalFilename: string;
8253
- }[] | [string, string] | undefined> | undefined;
8254
- originalActionId?: string | undefined;
8987
+ }[] | [string, string] | undefined> | null | undefined;
8988
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8255
8989
  } | {
8256
8990
  type: "NOTIFY";
8257
8991
  id: string;
@@ -8298,7 +9032,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8298
9032
  filename: string;
8299
9033
  originalFilename: string;
8300
9034
  }[] | [string, string] | undefined>;
8301
- createdAtLocation: string;
9035
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8302
9036
  annotation?: Record<string, string | number | boolean | {
8303
9037
  type: string;
8304
9038
  filename: string;
@@ -8336,8 +9070,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8336
9070
  option: string;
8337
9071
  filename: string;
8338
9072
  originalFilename: string;
8339
- }[] | [string, string] | undefined> | undefined;
8340
- originalActionId?: string | undefined;
9073
+ }[] | [string, string] | undefined> | null | undefined;
9074
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8341
9075
  } | {
8342
9076
  type: "PRINT_CERTIFICATE";
8343
9077
  id: string;
@@ -8384,7 +9118,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8384
9118
  filename: string;
8385
9119
  originalFilename: string;
8386
9120
  }[] | [string, string] | undefined>;
8387
- createdAtLocation: string;
9121
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8388
9122
  annotation?: Record<string, string | number | boolean | {
8389
9123
  type: string;
8390
9124
  filename: string;
@@ -8422,8 +9156,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8422
9156
  option: string;
8423
9157
  filename: string;
8424
9158
  originalFilename: string;
8425
- }[] | [string, string] | undefined> | undefined;
8426
- originalActionId?: string | undefined;
9159
+ }[] | [string, string] | undefined> | null | undefined;
9160
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8427
9161
  } | {
8428
9162
  type: "REQUEST_CORRECTION";
8429
9163
  id: string;
@@ -8470,7 +9204,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8470
9204
  filename: string;
8471
9205
  originalFilename: string;
8472
9206
  }[] | [string, string] | undefined>;
8473
- createdAtLocation: string;
9207
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8474
9208
  annotation?: Record<string, string | number | boolean | {
8475
9209
  type: string;
8476
9210
  filename: string;
@@ -8508,8 +9242,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8508
9242
  option: string;
8509
9243
  filename: string;
8510
9244
  originalFilename: string;
8511
- }[] | [string, string] | undefined> | undefined;
8512
- originalActionId?: string | undefined;
9245
+ }[] | [string, string] | undefined> | null | undefined;
9246
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8513
9247
  } | {
8514
9248
  type: "APPROVE_CORRECTION";
8515
9249
  id: string;
@@ -8556,8 +9290,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8556
9290
  filename: string;
8557
9291
  originalFilename: string;
8558
9292
  }[] | [string, string] | undefined>;
8559
- createdAtLocation: string;
8560
9293
  requestId: string;
9294
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8561
9295
  annotation?: Record<string, string | number | boolean | {
8562
9296
  type: string;
8563
9297
  filename: string;
@@ -8595,8 +9329,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8595
9329
  option: string;
8596
9330
  filename: string;
8597
9331
  originalFilename: string;
8598
- }[] | [string, string] | undefined> | undefined;
8599
- originalActionId?: string | undefined;
9332
+ }[] | [string, string] | undefined> | null | undefined;
9333
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8600
9334
  } | {
8601
9335
  type: "REJECT_CORRECTION";
8602
9336
  id: string;
@@ -8643,8 +9377,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8643
9377
  filename: string;
8644
9378
  originalFilename: string;
8645
9379
  }[] | [string, string] | undefined>;
8646
- createdAtLocation: string;
8647
9380
  requestId: string;
9381
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8648
9382
  annotation?: Record<string, string | number | boolean | {
8649
9383
  type: string;
8650
9384
  filename: string;
@@ -8682,8 +9416,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8682
9416
  option: string;
8683
9417
  filename: string;
8684
9418
  originalFilename: string;
8685
- }[] | [string, string] | undefined> | undefined;
8686
- originalActionId?: string | undefined;
9419
+ }[] | [string, string] | undefined> | null | undefined;
9420
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8687
9421
  } | {
8688
9422
  type: "READ";
8689
9423
  id: string;
@@ -8730,7 +9464,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8730
9464
  filename: string;
8731
9465
  originalFilename: string;
8732
9466
  }[] | [string, string] | undefined>;
8733
- createdAtLocation: string;
9467
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8734
9468
  annotation?: Record<string, string | number | boolean | {
8735
9469
  type: string;
8736
9470
  filename: string;
@@ -8768,8 +9502,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8768
9502
  option: string;
8769
9503
  filename: string;
8770
9504
  originalFilename: string;
8771
- }[] | [string, string] | undefined> | undefined;
8772
- originalActionId?: string | undefined;
9505
+ }[] | [string, string] | undefined> | null | undefined;
9506
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8773
9507
  } | {
8774
9508
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8775
9509
  id: string;
@@ -8778,20 +9512,17 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8778
9512
  createdAt: string;
8779
9513
  createdBy: string;
8780
9514
  createdByRole: string;
8781
- createdAtLocation: string;
8782
- originalActionId?: string | undefined;
9515
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9516
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8783
9517
  })[];
8784
9518
  trackingId: string;
8785
- dateOfEvent?: {
8786
- fieldId: string;
8787
- } | undefined;
8788
9519
  };
8789
9520
  }>;
8790
9521
  get: import("@trpc/server").TRPCQueryProcedure<{
8791
9522
  input: string;
8792
9523
  output: {
8793
9524
  type: string;
8794
- id: string;
9525
+ id: string & import("zod").BRAND<"UUID">;
8795
9526
  createdAt: string;
8796
9527
  updatedAt: string;
8797
9528
  actions: ({
@@ -8840,8 +9571,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8840
9571
  filename: string;
8841
9572
  originalFilename: string;
8842
9573
  }[] | [string, string] | undefined>;
8843
- createdAtLocation: string;
8844
9574
  assignedTo: string;
9575
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8845
9576
  annotation?: Record<string, string | number | boolean | {
8846
9577
  type: string;
8847
9578
  filename: string;
@@ -8879,8 +9610,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8879
9610
  option: string;
8880
9611
  filename: string;
8881
9612
  originalFilename: string;
8882
- }[] | [string, string] | undefined> | undefined;
8883
- originalActionId?: string | undefined;
9613
+ }[] | [string, string] | undefined> | null | undefined;
9614
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8884
9615
  } | {
8885
9616
  type: "UNASSIGN";
8886
9617
  id: string;
@@ -8927,8 +9658,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8927
9658
  filename: string;
8928
9659
  originalFilename: string;
8929
9660
  }[] | [string, string] | undefined>;
8930
- createdAtLocation: string;
8931
9661
  assignedTo: null;
9662
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8932
9663
  annotation?: Record<string, string | number | boolean | {
8933
9664
  type: string;
8934
9665
  filename: string;
@@ -8966,8 +9697,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
8966
9697
  option: string;
8967
9698
  filename: string;
8968
9699
  originalFilename: string;
8969
- }[] | [string, string] | undefined> | undefined;
8970
- originalActionId?: string | undefined;
9700
+ }[] | [string, string] | undefined> | null | undefined;
9701
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
8971
9702
  } | {
8972
9703
  type: "REGISTER";
8973
9704
  id: string;
@@ -9014,7 +9745,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9014
9745
  filename: string;
9015
9746
  originalFilename: string;
9016
9747
  }[] | [string, string] | undefined>;
9017
- createdAtLocation: string;
9748
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9018
9749
  annotation?: Record<string, string | number | boolean | {
9019
9750
  type: string;
9020
9751
  filename: string;
@@ -9052,8 +9783,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9052
9783
  option: string;
9053
9784
  filename: string;
9054
9785
  originalFilename: string;
9055
- }[] | [string, string] | undefined> | undefined;
9056
- originalActionId?: string | undefined;
9786
+ }[] | [string, string] | undefined> | null | undefined;
9787
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9057
9788
  registrationNumber?: string | undefined;
9058
9789
  } | {
9059
9790
  type: "DECLARE";
@@ -9101,7 +9832,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9101
9832
  filename: string;
9102
9833
  originalFilename: string;
9103
9834
  }[] | [string, string] | undefined>;
9104
- createdAtLocation: string;
9835
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9105
9836
  annotation?: Record<string, string | number | boolean | {
9106
9837
  type: string;
9107
9838
  filename: string;
@@ -9139,8 +9870,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9139
9870
  option: string;
9140
9871
  filename: string;
9141
9872
  originalFilename: string;
9142
- }[] | [string, string] | undefined> | undefined;
9143
- originalActionId?: string | undefined;
9873
+ }[] | [string, string] | undefined> | null | undefined;
9874
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9144
9875
  } | {
9145
9876
  type: "VALIDATE";
9146
9877
  id: string;
@@ -9187,7 +9918,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9187
9918
  filename: string;
9188
9919
  originalFilename: string;
9189
9920
  }[] | [string, string] | undefined>;
9190
- createdAtLocation: string;
9921
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9191
9922
  annotation?: Record<string, string | number | boolean | {
9192
9923
  type: string;
9193
9924
  filename: string;
@@ -9225,12 +9956,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9225
9956
  option: string;
9226
9957
  filename: string;
9227
9958
  originalFilename: string;
9228
- }[] | [string, string] | undefined> | undefined;
9229
- originalActionId?: string | undefined;
9959
+ }[] | [string, string] | undefined> | null | undefined;
9960
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9230
9961
  } | {
9231
9962
  type: "REJECT";
9232
9963
  id: string;
9233
9964
  status: "Rejected" | "Requested" | "Accepted";
9965
+ reason: {
9966
+ message: string;
9967
+ isDuplicate?: boolean | undefined;
9968
+ };
9234
9969
  transactionId: string;
9235
9970
  createdAt: string;
9236
9971
  createdBy: string;
@@ -9273,7 +10008,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9273
10008
  filename: string;
9274
10009
  originalFilename: string;
9275
10010
  }[] | [string, string] | undefined>;
9276
- createdAtLocation: string;
10011
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9277
10012
  annotation?: Record<string, string | number | boolean | {
9278
10013
  type: string;
9279
10014
  filename: string;
@@ -9311,8 +10046,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9311
10046
  option: string;
9312
10047
  filename: string;
9313
10048
  originalFilename: string;
9314
- }[] | [string, string] | undefined> | undefined;
9315
- originalActionId?: string | undefined;
10049
+ }[] | [string, string] | undefined> | null | undefined;
10050
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9316
10051
  } | {
9317
10052
  type: "MARKED_AS_DUPLICATE";
9318
10053
  id: string;
@@ -9359,7 +10094,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9359
10094
  filename: string;
9360
10095
  originalFilename: string;
9361
10096
  }[] | [string, string] | undefined>;
9362
- createdAtLocation: string;
10097
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9363
10098
  annotation?: Record<string, string | number | boolean | {
9364
10099
  type: string;
9365
10100
  filename: string;
@@ -9397,12 +10132,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9397
10132
  option: string;
9398
10133
  filename: string;
9399
10134
  originalFilename: string;
9400
- }[] | [string, string] | undefined> | undefined;
9401
- originalActionId?: string | undefined;
10135
+ }[] | [string, string] | undefined> | null | undefined;
10136
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9402
10137
  } | {
9403
10138
  type: "ARCHIVE";
9404
10139
  id: string;
9405
10140
  status: "Rejected" | "Requested" | "Accepted";
10141
+ reason: {
10142
+ message: string;
10143
+ isDuplicate?: boolean | undefined;
10144
+ };
9406
10145
  transactionId: string;
9407
10146
  createdAt: string;
9408
10147
  createdBy: string;
@@ -9445,7 +10184,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9445
10184
  filename: string;
9446
10185
  originalFilename: string;
9447
10186
  }[] | [string, string] | undefined>;
9448
- createdAtLocation: string;
10187
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9449
10188
  annotation?: Record<string, string | number | boolean | {
9450
10189
  type: string;
9451
10190
  filename: string;
@@ -9483,8 +10222,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9483
10222
  option: string;
9484
10223
  filename: string;
9485
10224
  originalFilename: string;
9486
- }[] | [string, string] | undefined> | undefined;
9487
- originalActionId?: string | undefined;
10225
+ }[] | [string, string] | undefined> | null | undefined;
10226
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9488
10227
  } | {
9489
10228
  type: "CREATE";
9490
10229
  id: string;
@@ -9531,7 +10270,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9531
10270
  filename: string;
9532
10271
  originalFilename: string;
9533
10272
  }[] | [string, string] | undefined>;
9534
- createdAtLocation: string;
10273
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9535
10274
  annotation?: Record<string, string | number | boolean | {
9536
10275
  type: string;
9537
10276
  filename: string;
@@ -9569,8 +10308,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9569
10308
  option: string;
9570
10309
  filename: string;
9571
10310
  originalFilename: string;
9572
- }[] | [string, string] | undefined> | undefined;
9573
- originalActionId?: string | undefined;
10311
+ }[] | [string, string] | undefined> | null | undefined;
10312
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9574
10313
  } | {
9575
10314
  type: "NOTIFY";
9576
10315
  id: string;
@@ -9617,7 +10356,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9617
10356
  filename: string;
9618
10357
  originalFilename: string;
9619
10358
  }[] | [string, string] | undefined>;
9620
- createdAtLocation: string;
10359
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9621
10360
  annotation?: Record<string, string | number | boolean | {
9622
10361
  type: string;
9623
10362
  filename: string;
@@ -9655,8 +10394,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9655
10394
  option: string;
9656
10395
  filename: string;
9657
10396
  originalFilename: string;
9658
- }[] | [string, string] | undefined> | undefined;
9659
- originalActionId?: string | undefined;
10397
+ }[] | [string, string] | undefined> | null | undefined;
10398
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9660
10399
  } | {
9661
10400
  type: "PRINT_CERTIFICATE";
9662
10401
  id: string;
@@ -9703,7 +10442,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9703
10442
  filename: string;
9704
10443
  originalFilename: string;
9705
10444
  }[] | [string, string] | undefined>;
9706
- createdAtLocation: string;
10445
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9707
10446
  annotation?: Record<string, string | number | boolean | {
9708
10447
  type: string;
9709
10448
  filename: string;
@@ -9741,8 +10480,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9741
10480
  option: string;
9742
10481
  filename: string;
9743
10482
  originalFilename: string;
9744
- }[] | [string, string] | undefined> | undefined;
9745
- originalActionId?: string | undefined;
10483
+ }[] | [string, string] | undefined> | null | undefined;
10484
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9746
10485
  } | {
9747
10486
  type: "REQUEST_CORRECTION";
9748
10487
  id: string;
@@ -9789,7 +10528,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9789
10528
  filename: string;
9790
10529
  originalFilename: string;
9791
10530
  }[] | [string, string] | undefined>;
9792
- createdAtLocation: string;
10531
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9793
10532
  annotation?: Record<string, string | number | boolean | {
9794
10533
  type: string;
9795
10534
  filename: string;
@@ -9827,8 +10566,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9827
10566
  option: string;
9828
10567
  filename: string;
9829
10568
  originalFilename: string;
9830
- }[] | [string, string] | undefined> | undefined;
9831
- originalActionId?: string | undefined;
10569
+ }[] | [string, string] | undefined> | null | undefined;
10570
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9832
10571
  } | {
9833
10572
  type: "APPROVE_CORRECTION";
9834
10573
  id: string;
@@ -9875,8 +10614,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9875
10614
  filename: string;
9876
10615
  originalFilename: string;
9877
10616
  }[] | [string, string] | undefined>;
9878
- createdAtLocation: string;
9879
10617
  requestId: string;
10618
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9880
10619
  annotation?: Record<string, string | number | boolean | {
9881
10620
  type: string;
9882
10621
  filename: string;
@@ -9914,8 +10653,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9914
10653
  option: string;
9915
10654
  filename: string;
9916
10655
  originalFilename: string;
9917
- }[] | [string, string] | undefined> | undefined;
9918
- originalActionId?: string | undefined;
10656
+ }[] | [string, string] | undefined> | null | undefined;
10657
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9919
10658
  } | {
9920
10659
  type: "REJECT_CORRECTION";
9921
10660
  id: string;
@@ -9962,8 +10701,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
9962
10701
  filename: string;
9963
10702
  originalFilename: string;
9964
10703
  }[] | [string, string] | undefined>;
9965
- createdAtLocation: string;
9966
10704
  requestId: string;
10705
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
9967
10706
  annotation?: Record<string, string | number | boolean | {
9968
10707
  type: string;
9969
10708
  filename: string;
@@ -10001,8 +10740,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10001
10740
  option: string;
10002
10741
  filename: string;
10003
10742
  originalFilename: string;
10004
- }[] | [string, string] | undefined> | undefined;
10005
- originalActionId?: string | undefined;
10743
+ }[] | [string, string] | undefined> | null | undefined;
10744
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10006
10745
  } | {
10007
10746
  type: "READ";
10008
10747
  id: string;
@@ -10049,7 +10788,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10049
10788
  filename: string;
10050
10789
  originalFilename: string;
10051
10790
  }[] | [string, string] | undefined>;
10052
- createdAtLocation: string;
10791
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10053
10792
  annotation?: Record<string, string | number | boolean | {
10054
10793
  type: string;
10055
10794
  filename: string;
@@ -10087,8 +10826,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10087
10826
  option: string;
10088
10827
  filename: string;
10089
10828
  originalFilename: string;
10090
- }[] | [string, string] | undefined> | undefined;
10091
- originalActionId?: string | undefined;
10829
+ }[] | [string, string] | undefined> | null | undefined;
10830
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10092
10831
  } | {
10093
10832
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
10094
10833
  id: string;
@@ -10097,13 +10836,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10097
10836
  createdAt: string;
10098
10837
  createdBy: string;
10099
10838
  createdByRole: string;
10100
- createdAtLocation: string;
10101
- originalActionId?: string | undefined;
10839
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10840
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10102
10841
  })[];
10103
10842
  trackingId: string;
10104
- dateOfEvent?: {
10105
- fieldId: string;
10106
- } | undefined;
10107
10843
  };
10108
10844
  }>;
10109
10845
  delete: import("@trpc/server").TRPCMutationProcedure<{
@@ -10111,7 +10847,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10111
10847
  eventId: string;
10112
10848
  };
10113
10849
  output: {
10114
- id: string;
10850
+ id: string & import("zod").BRAND<"UUID">;
10115
10851
  };
10116
10852
  }>;
10117
10853
  draft: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
@@ -10123,10 +10859,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10123
10859
  list: import("@trpc/server").TRPCQueryProcedure<{
10124
10860
  input: void;
10125
10861
  output: {
10126
- id: string;
10862
+ id: string & import("zod").BRAND<"UUID">;
10127
10863
  transactionId: string;
10128
10864
  createdAt: string;
10129
- eventId: string;
10865
+ eventId: string & import("zod").BRAND<"UUID">;
10130
10866
  action: {
10131
10867
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
10132
10868
  status: "Rejected" | "Requested" | "Accepted";
@@ -10172,7 +10908,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10172
10908
  filename: string;
10173
10909
  originalFilename: string;
10174
10910
  }[] | [string, string] | undefined>;
10175
- createdAtLocation: string;
10911
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10176
10912
  annotation?: Record<string, string | number | boolean | {
10177
10913
  type: string;
10178
10914
  filename: string;
@@ -10210,8 +10946,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10210
10946
  option: string;
10211
10947
  filename: string;
10212
10948
  originalFilename: string;
10213
- }[] | [string, string] | undefined> | undefined;
10214
- originalActionId?: string | undefined;
10949
+ }[] | [string, string] | undefined> | null | undefined;
10950
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10215
10951
  };
10216
10952
  }[];
10217
10953
  }>;
@@ -10301,10 +11037,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10301
11037
  keepAssignment?: boolean | undefined;
10302
11038
  };
10303
11039
  output: {
10304
- id: string;
11040
+ id: string & import("zod").BRAND<"UUID">;
10305
11041
  transactionId: string;
10306
11042
  createdAt: string;
10307
- eventId: string;
11043
+ eventId: string & import("zod").BRAND<"UUID">;
10308
11044
  action: {
10309
11045
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
10310
11046
  status: "Rejected" | "Requested" | "Accepted";
@@ -10350,7 +11086,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10350
11086
  filename: string;
10351
11087
  originalFilename: string;
10352
11088
  }[] | [string, string] | undefined>;
10353
- createdAtLocation: string;
11089
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10354
11090
  annotation?: Record<string, string | number | boolean | {
10355
11091
  type: string;
10356
11092
  filename: string;
@@ -10388,8 +11124,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10388
11124
  option: string;
10389
11125
  filename: string;
10390
11126
  originalFilename: string;
10391
- }[] | [string, string] | undefined> | undefined;
10392
- originalActionId?: string | undefined;
11127
+ }[] | [string, string] | undefined> | null | undefined;
11128
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10393
11129
  };
10394
11130
  };
10395
11131
  }>;
@@ -10668,7 +11404,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10668
11404
  };
10669
11405
  output: {
10670
11406
  type: string;
10671
- id: string;
11407
+ id: string & import("zod").BRAND<"UUID">;
10672
11408
  createdAt: string;
10673
11409
  updatedAt: string;
10674
11410
  actions: ({
@@ -10717,8 +11453,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10717
11453
  filename: string;
10718
11454
  originalFilename: string;
10719
11455
  }[] | [string, string] | undefined>;
10720
- createdAtLocation: string;
10721
11456
  assignedTo: string;
11457
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10722
11458
  annotation?: Record<string, string | number | boolean | {
10723
11459
  type: string;
10724
11460
  filename: string;
@@ -10756,8 +11492,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10756
11492
  option: string;
10757
11493
  filename: string;
10758
11494
  originalFilename: string;
10759
- }[] | [string, string] | undefined> | undefined;
10760
- originalActionId?: string | undefined;
11495
+ }[] | [string, string] | undefined> | null | undefined;
11496
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10761
11497
  } | {
10762
11498
  type: "UNASSIGN";
10763
11499
  id: string;
@@ -10804,8 +11540,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10804
11540
  filename: string;
10805
11541
  originalFilename: string;
10806
11542
  }[] | [string, string] | undefined>;
10807
- createdAtLocation: string;
10808
11543
  assignedTo: null;
11544
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10809
11545
  annotation?: Record<string, string | number | boolean | {
10810
11546
  type: string;
10811
11547
  filename: string;
@@ -10843,8 +11579,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10843
11579
  option: string;
10844
11580
  filename: string;
10845
11581
  originalFilename: string;
10846
- }[] | [string, string] | undefined> | undefined;
10847
- originalActionId?: string | undefined;
11582
+ }[] | [string, string] | undefined> | null | undefined;
11583
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10848
11584
  } | {
10849
11585
  type: "REGISTER";
10850
11586
  id: string;
@@ -10891,7 +11627,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10891
11627
  filename: string;
10892
11628
  originalFilename: string;
10893
11629
  }[] | [string, string] | undefined>;
10894
- createdAtLocation: string;
11630
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10895
11631
  annotation?: Record<string, string | number | boolean | {
10896
11632
  type: string;
10897
11633
  filename: string;
@@ -10929,8 +11665,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10929
11665
  option: string;
10930
11666
  filename: string;
10931
11667
  originalFilename: string;
10932
- }[] | [string, string] | undefined> | undefined;
10933
- originalActionId?: string | undefined;
11668
+ }[] | [string, string] | undefined> | null | undefined;
11669
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10934
11670
  registrationNumber?: string | undefined;
10935
11671
  } | {
10936
11672
  type: "DECLARE";
@@ -10978,7 +11714,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
10978
11714
  filename: string;
10979
11715
  originalFilename: string;
10980
11716
  }[] | [string, string] | undefined>;
10981
- createdAtLocation: string;
11717
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10982
11718
  annotation?: Record<string, string | number | boolean | {
10983
11719
  type: string;
10984
11720
  filename: string;
@@ -11016,8 +11752,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11016
11752
  option: string;
11017
11753
  filename: string;
11018
11754
  originalFilename: string;
11019
- }[] | [string, string] | undefined> | undefined;
11020
- originalActionId?: string | undefined;
11755
+ }[] | [string, string] | undefined> | null | undefined;
11756
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11021
11757
  } | {
11022
11758
  type: "VALIDATE";
11023
11759
  id: string;
@@ -11064,7 +11800,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11064
11800
  filename: string;
11065
11801
  originalFilename: string;
11066
11802
  }[] | [string, string] | undefined>;
11067
- createdAtLocation: string;
11803
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11068
11804
  annotation?: Record<string, string | number | boolean | {
11069
11805
  type: string;
11070
11806
  filename: string;
@@ -11102,12 +11838,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11102
11838
  option: string;
11103
11839
  filename: string;
11104
11840
  originalFilename: string;
11105
- }[] | [string, string] | undefined> | undefined;
11106
- originalActionId?: string | undefined;
11841
+ }[] | [string, string] | undefined> | null | undefined;
11842
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11107
11843
  } | {
11108
11844
  type: "REJECT";
11109
11845
  id: string;
11110
11846
  status: "Rejected" | "Requested" | "Accepted";
11847
+ reason: {
11848
+ message: string;
11849
+ isDuplicate?: boolean | undefined;
11850
+ };
11111
11851
  transactionId: string;
11112
11852
  createdAt: string;
11113
11853
  createdBy: string;
@@ -11150,7 +11890,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11150
11890
  filename: string;
11151
11891
  originalFilename: string;
11152
11892
  }[] | [string, string] | undefined>;
11153
- createdAtLocation: string;
11893
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11154
11894
  annotation?: Record<string, string | number | boolean | {
11155
11895
  type: string;
11156
11896
  filename: string;
@@ -11188,8 +11928,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11188
11928
  option: string;
11189
11929
  filename: string;
11190
11930
  originalFilename: string;
11191
- }[] | [string, string] | undefined> | undefined;
11192
- originalActionId?: string | undefined;
11931
+ }[] | [string, string] | undefined> | null | undefined;
11932
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11193
11933
  } | {
11194
11934
  type: "MARKED_AS_DUPLICATE";
11195
11935
  id: string;
@@ -11236,7 +11976,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11236
11976
  filename: string;
11237
11977
  originalFilename: string;
11238
11978
  }[] | [string, string] | undefined>;
11239
- createdAtLocation: string;
11979
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11240
11980
  annotation?: Record<string, string | number | boolean | {
11241
11981
  type: string;
11242
11982
  filename: string;
@@ -11274,12 +12014,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11274
12014
  option: string;
11275
12015
  filename: string;
11276
12016
  originalFilename: string;
11277
- }[] | [string, string] | undefined> | undefined;
11278
- originalActionId?: string | undefined;
12017
+ }[] | [string, string] | undefined> | null | undefined;
12018
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11279
12019
  } | {
11280
12020
  type: "ARCHIVE";
11281
12021
  id: string;
11282
12022
  status: "Rejected" | "Requested" | "Accepted";
12023
+ reason: {
12024
+ message: string;
12025
+ isDuplicate?: boolean | undefined;
12026
+ };
11283
12027
  transactionId: string;
11284
12028
  createdAt: string;
11285
12029
  createdBy: string;
@@ -11322,7 +12066,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11322
12066
  filename: string;
11323
12067
  originalFilename: string;
11324
12068
  }[] | [string, string] | undefined>;
11325
- createdAtLocation: string;
12069
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11326
12070
  annotation?: Record<string, string | number | boolean | {
11327
12071
  type: string;
11328
12072
  filename: string;
@@ -11360,8 +12104,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11360
12104
  option: string;
11361
12105
  filename: string;
11362
12106
  originalFilename: string;
11363
- }[] | [string, string] | undefined> | undefined;
11364
- originalActionId?: string | undefined;
12107
+ }[] | [string, string] | undefined> | null | undefined;
12108
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11365
12109
  } | {
11366
12110
  type: "CREATE";
11367
12111
  id: string;
@@ -11408,7 +12152,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11408
12152
  filename: string;
11409
12153
  originalFilename: string;
11410
12154
  }[] | [string, string] | undefined>;
11411
- createdAtLocation: string;
12155
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11412
12156
  annotation?: Record<string, string | number | boolean | {
11413
12157
  type: string;
11414
12158
  filename: string;
@@ -11446,8 +12190,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11446
12190
  option: string;
11447
12191
  filename: string;
11448
12192
  originalFilename: string;
11449
- }[] | [string, string] | undefined> | undefined;
11450
- originalActionId?: string | undefined;
12193
+ }[] | [string, string] | undefined> | null | undefined;
12194
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11451
12195
  } | {
11452
12196
  type: "NOTIFY";
11453
12197
  id: string;
@@ -11494,7 +12238,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11494
12238
  filename: string;
11495
12239
  originalFilename: string;
11496
12240
  }[] | [string, string] | undefined>;
11497
- createdAtLocation: string;
12241
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11498
12242
  annotation?: Record<string, string | number | boolean | {
11499
12243
  type: string;
11500
12244
  filename: string;
@@ -11532,8 +12276,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11532
12276
  option: string;
11533
12277
  filename: string;
11534
12278
  originalFilename: string;
11535
- }[] | [string, string] | undefined> | undefined;
11536
- originalActionId?: string | undefined;
12279
+ }[] | [string, string] | undefined> | null | undefined;
12280
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11537
12281
  } | {
11538
12282
  type: "PRINT_CERTIFICATE";
11539
12283
  id: string;
@@ -11580,7 +12324,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11580
12324
  filename: string;
11581
12325
  originalFilename: string;
11582
12326
  }[] | [string, string] | undefined>;
11583
- createdAtLocation: string;
12327
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11584
12328
  annotation?: Record<string, string | number | boolean | {
11585
12329
  type: string;
11586
12330
  filename: string;
@@ -11618,8 +12362,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11618
12362
  option: string;
11619
12363
  filename: string;
11620
12364
  originalFilename: string;
11621
- }[] | [string, string] | undefined> | undefined;
11622
- originalActionId?: string | undefined;
12365
+ }[] | [string, string] | undefined> | null | undefined;
12366
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11623
12367
  } | {
11624
12368
  type: "REQUEST_CORRECTION";
11625
12369
  id: string;
@@ -11666,7 +12410,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11666
12410
  filename: string;
11667
12411
  originalFilename: string;
11668
12412
  }[] | [string, string] | undefined>;
11669
- createdAtLocation: string;
12413
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11670
12414
  annotation?: Record<string, string | number | boolean | {
11671
12415
  type: string;
11672
12416
  filename: string;
@@ -11704,8 +12448,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11704
12448
  option: string;
11705
12449
  filename: string;
11706
12450
  originalFilename: string;
11707
- }[] | [string, string] | undefined> | undefined;
11708
- originalActionId?: string | undefined;
12451
+ }[] | [string, string] | undefined> | null | undefined;
12452
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11709
12453
  } | {
11710
12454
  type: "APPROVE_CORRECTION";
11711
12455
  id: string;
@@ -11752,8 +12496,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11752
12496
  filename: string;
11753
12497
  originalFilename: string;
11754
12498
  }[] | [string, string] | undefined>;
11755
- createdAtLocation: string;
11756
12499
  requestId: string;
12500
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11757
12501
  annotation?: Record<string, string | number | boolean | {
11758
12502
  type: string;
11759
12503
  filename: string;
@@ -11791,8 +12535,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11791
12535
  option: string;
11792
12536
  filename: string;
11793
12537
  originalFilename: string;
11794
- }[] | [string, string] | undefined> | undefined;
11795
- originalActionId?: string | undefined;
12538
+ }[] | [string, string] | undefined> | null | undefined;
12539
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11796
12540
  } | {
11797
12541
  type: "REJECT_CORRECTION";
11798
12542
  id: string;
@@ -11839,8 +12583,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11839
12583
  filename: string;
11840
12584
  originalFilename: string;
11841
12585
  }[] | [string, string] | undefined>;
11842
- createdAtLocation: string;
11843
12586
  requestId: string;
12587
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11844
12588
  annotation?: Record<string, string | number | boolean | {
11845
12589
  type: string;
11846
12590
  filename: string;
@@ -11878,8 +12622,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11878
12622
  option: string;
11879
12623
  filename: string;
11880
12624
  originalFilename: string;
11881
- }[] | [string, string] | undefined> | undefined;
11882
- originalActionId?: string | undefined;
12625
+ }[] | [string, string] | undefined> | null | undefined;
12626
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11883
12627
  } | {
11884
12628
  type: "READ";
11885
12629
  id: string;
@@ -11926,7 +12670,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11926
12670
  filename: string;
11927
12671
  originalFilename: string;
11928
12672
  }[] | [string, string] | undefined>;
11929
- createdAtLocation: string;
12673
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11930
12674
  annotation?: Record<string, string | number | boolean | {
11931
12675
  type: string;
11932
12676
  filename: string;
@@ -11964,8 +12708,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11964
12708
  option: string;
11965
12709
  filename: string;
11966
12710
  originalFilename: string;
11967
- }[] | [string, string] | undefined> | undefined;
11968
- originalActionId?: string | undefined;
12711
+ }[] | [string, string] | undefined> | null | undefined;
12712
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11969
12713
  } | {
11970
12714
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
11971
12715
  id: string;
@@ -11974,13 +12718,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
11974
12718
  createdAt: string;
11975
12719
  createdBy: string;
11976
12720
  createdByRole: string;
11977
- createdAtLocation: string;
11978
- originalActionId?: string | undefined;
12721
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12722
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
11979
12723
  })[];
11980
12724
  trackingId: string;
11981
- dateOfEvent?: {
11982
- fieldId: string;
11983
- } | undefined;
11984
12725
  };
11985
12726
  }>;
11986
12727
  unassign: import("@trpc/server").TRPCMutationProcedure<{
@@ -12070,7 +12811,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12070
12811
  };
12071
12812
  output: {
12072
12813
  type: string;
12073
- id: string;
12814
+ id: string & import("zod").BRAND<"UUID">;
12074
12815
  createdAt: string;
12075
12816
  updatedAt: string;
12076
12817
  actions: ({
@@ -12119,8 +12860,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12119
12860
  filename: string;
12120
12861
  originalFilename: string;
12121
12862
  }[] | [string, string] | undefined>;
12122
- createdAtLocation: string;
12123
12863
  assignedTo: string;
12864
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12124
12865
  annotation?: Record<string, string | number | boolean | {
12125
12866
  type: string;
12126
12867
  filename: string;
@@ -12158,8 +12899,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12158
12899
  option: string;
12159
12900
  filename: string;
12160
12901
  originalFilename: string;
12161
- }[] | [string, string] | undefined> | undefined;
12162
- originalActionId?: string | undefined;
12902
+ }[] | [string, string] | undefined> | null | undefined;
12903
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12163
12904
  } | {
12164
12905
  type: "UNASSIGN";
12165
12906
  id: string;
@@ -12206,8 +12947,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12206
12947
  filename: string;
12207
12948
  originalFilename: string;
12208
12949
  }[] | [string, string] | undefined>;
12209
- createdAtLocation: string;
12210
12950
  assignedTo: null;
12951
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12211
12952
  annotation?: Record<string, string | number | boolean | {
12212
12953
  type: string;
12213
12954
  filename: string;
@@ -12245,8 +12986,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12245
12986
  option: string;
12246
12987
  filename: string;
12247
12988
  originalFilename: string;
12248
- }[] | [string, string] | undefined> | undefined;
12249
- originalActionId?: string | undefined;
12989
+ }[] | [string, string] | undefined> | null | undefined;
12990
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12250
12991
  } | {
12251
12992
  type: "REGISTER";
12252
12993
  id: string;
@@ -12293,7 +13034,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12293
13034
  filename: string;
12294
13035
  originalFilename: string;
12295
13036
  }[] | [string, string] | undefined>;
12296
- createdAtLocation: string;
13037
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12297
13038
  annotation?: Record<string, string | number | boolean | {
12298
13039
  type: string;
12299
13040
  filename: string;
@@ -12331,8 +13072,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12331
13072
  option: string;
12332
13073
  filename: string;
12333
13074
  originalFilename: string;
12334
- }[] | [string, string] | undefined> | undefined;
12335
- originalActionId?: string | undefined;
13075
+ }[] | [string, string] | undefined> | null | undefined;
13076
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12336
13077
  registrationNumber?: string | undefined;
12337
13078
  } | {
12338
13079
  type: "DECLARE";
@@ -12380,7 +13121,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12380
13121
  filename: string;
12381
13122
  originalFilename: string;
12382
13123
  }[] | [string, string] | undefined>;
12383
- createdAtLocation: string;
13124
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12384
13125
  annotation?: Record<string, string | number | boolean | {
12385
13126
  type: string;
12386
13127
  filename: string;
@@ -12418,8 +13159,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12418
13159
  option: string;
12419
13160
  filename: string;
12420
13161
  originalFilename: string;
12421
- }[] | [string, string] | undefined> | undefined;
12422
- originalActionId?: string | undefined;
13162
+ }[] | [string, string] | undefined> | null | undefined;
13163
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12423
13164
  } | {
12424
13165
  type: "VALIDATE";
12425
13166
  id: string;
@@ -12466,7 +13207,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12466
13207
  filename: string;
12467
13208
  originalFilename: string;
12468
13209
  }[] | [string, string] | undefined>;
12469
- createdAtLocation: string;
13210
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12470
13211
  annotation?: Record<string, string | number | boolean | {
12471
13212
  type: string;
12472
13213
  filename: string;
@@ -12504,12 +13245,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12504
13245
  option: string;
12505
13246
  filename: string;
12506
13247
  originalFilename: string;
12507
- }[] | [string, string] | undefined> | undefined;
12508
- originalActionId?: string | undefined;
13248
+ }[] | [string, string] | undefined> | null | undefined;
13249
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12509
13250
  } | {
12510
13251
  type: "REJECT";
12511
13252
  id: string;
12512
13253
  status: "Rejected" | "Requested" | "Accepted";
13254
+ reason: {
13255
+ message: string;
13256
+ isDuplicate?: boolean | undefined;
13257
+ };
12513
13258
  transactionId: string;
12514
13259
  createdAt: string;
12515
13260
  createdBy: string;
@@ -12552,7 +13297,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12552
13297
  filename: string;
12553
13298
  originalFilename: string;
12554
13299
  }[] | [string, string] | undefined>;
12555
- createdAtLocation: string;
13300
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12556
13301
  annotation?: Record<string, string | number | boolean | {
12557
13302
  type: string;
12558
13303
  filename: string;
@@ -12590,8 +13335,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12590
13335
  option: string;
12591
13336
  filename: string;
12592
13337
  originalFilename: string;
12593
- }[] | [string, string] | undefined> | undefined;
12594
- originalActionId?: string | undefined;
13338
+ }[] | [string, string] | undefined> | null | undefined;
13339
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12595
13340
  } | {
12596
13341
  type: "MARKED_AS_DUPLICATE";
12597
13342
  id: string;
@@ -12638,7 +13383,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12638
13383
  filename: string;
12639
13384
  originalFilename: string;
12640
13385
  }[] | [string, string] | undefined>;
12641
- createdAtLocation: string;
13386
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12642
13387
  annotation?: Record<string, string | number | boolean | {
12643
13388
  type: string;
12644
13389
  filename: string;
@@ -12676,12 +13421,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12676
13421
  option: string;
12677
13422
  filename: string;
12678
13423
  originalFilename: string;
12679
- }[] | [string, string] | undefined> | undefined;
12680
- originalActionId?: string | undefined;
13424
+ }[] | [string, string] | undefined> | null | undefined;
13425
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12681
13426
  } | {
12682
13427
  type: "ARCHIVE";
12683
13428
  id: string;
12684
13429
  status: "Rejected" | "Requested" | "Accepted";
13430
+ reason: {
13431
+ message: string;
13432
+ isDuplicate?: boolean | undefined;
13433
+ };
12685
13434
  transactionId: string;
12686
13435
  createdAt: string;
12687
13436
  createdBy: string;
@@ -12724,7 +13473,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12724
13473
  filename: string;
12725
13474
  originalFilename: string;
12726
13475
  }[] | [string, string] | undefined>;
12727
- createdAtLocation: string;
13476
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12728
13477
  annotation?: Record<string, string | number | boolean | {
12729
13478
  type: string;
12730
13479
  filename: string;
@@ -12762,8 +13511,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12762
13511
  option: string;
12763
13512
  filename: string;
12764
13513
  originalFilename: string;
12765
- }[] | [string, string] | undefined> | undefined;
12766
- originalActionId?: string | undefined;
13514
+ }[] | [string, string] | undefined> | null | undefined;
13515
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12767
13516
  } | {
12768
13517
  type: "CREATE";
12769
13518
  id: string;
@@ -12810,7 +13559,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12810
13559
  filename: string;
12811
13560
  originalFilename: string;
12812
13561
  }[] | [string, string] | undefined>;
12813
- createdAtLocation: string;
13562
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12814
13563
  annotation?: Record<string, string | number | boolean | {
12815
13564
  type: string;
12816
13565
  filename: string;
@@ -12848,8 +13597,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12848
13597
  option: string;
12849
13598
  filename: string;
12850
13599
  originalFilename: string;
12851
- }[] | [string, string] | undefined> | undefined;
12852
- originalActionId?: string | undefined;
13600
+ }[] | [string, string] | undefined> | null | undefined;
13601
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12853
13602
  } | {
12854
13603
  type: "NOTIFY";
12855
13604
  id: string;
@@ -12896,7 +13645,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12896
13645
  filename: string;
12897
13646
  originalFilename: string;
12898
13647
  }[] | [string, string] | undefined>;
12899
- createdAtLocation: string;
13648
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12900
13649
  annotation?: Record<string, string | number | boolean | {
12901
13650
  type: string;
12902
13651
  filename: string;
@@ -12934,8 +13683,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12934
13683
  option: string;
12935
13684
  filename: string;
12936
13685
  originalFilename: string;
12937
- }[] | [string, string] | undefined> | undefined;
12938
- originalActionId?: string | undefined;
13686
+ }[] | [string, string] | undefined> | null | undefined;
13687
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12939
13688
  } | {
12940
13689
  type: "PRINT_CERTIFICATE";
12941
13690
  id: string;
@@ -12982,7 +13731,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
12982
13731
  filename: string;
12983
13732
  originalFilename: string;
12984
13733
  }[] | [string, string] | undefined>;
12985
- createdAtLocation: string;
13734
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
12986
13735
  annotation?: Record<string, string | number | boolean | {
12987
13736
  type: string;
12988
13737
  filename: string;
@@ -13020,8 +13769,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13020
13769
  option: string;
13021
13770
  filename: string;
13022
13771
  originalFilename: string;
13023
- }[] | [string, string] | undefined> | undefined;
13024
- originalActionId?: string | undefined;
13772
+ }[] | [string, string] | undefined> | null | undefined;
13773
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13025
13774
  } | {
13026
13775
  type: "REQUEST_CORRECTION";
13027
13776
  id: string;
@@ -13068,7 +13817,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13068
13817
  filename: string;
13069
13818
  originalFilename: string;
13070
13819
  }[] | [string, string] | undefined>;
13071
- createdAtLocation: string;
13820
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13072
13821
  annotation?: Record<string, string | number | boolean | {
13073
13822
  type: string;
13074
13823
  filename: string;
@@ -13106,8 +13855,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13106
13855
  option: string;
13107
13856
  filename: string;
13108
13857
  originalFilename: string;
13109
- }[] | [string, string] | undefined> | undefined;
13110
- originalActionId?: string | undefined;
13858
+ }[] | [string, string] | undefined> | null | undefined;
13859
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13111
13860
  } | {
13112
13861
  type: "APPROVE_CORRECTION";
13113
13862
  id: string;
@@ -13154,8 +13903,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13154
13903
  filename: string;
13155
13904
  originalFilename: string;
13156
13905
  }[] | [string, string] | undefined>;
13157
- createdAtLocation: string;
13158
13906
  requestId: string;
13907
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13159
13908
  annotation?: Record<string, string | number | boolean | {
13160
13909
  type: string;
13161
13910
  filename: string;
@@ -13193,8 +13942,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13193
13942
  option: string;
13194
13943
  filename: string;
13195
13944
  originalFilename: string;
13196
- }[] | [string, string] | undefined> | undefined;
13197
- originalActionId?: string | undefined;
13945
+ }[] | [string, string] | undefined> | null | undefined;
13946
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13198
13947
  } | {
13199
13948
  type: "REJECT_CORRECTION";
13200
13949
  id: string;
@@ -13241,8 +13990,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13241
13990
  filename: string;
13242
13991
  originalFilename: string;
13243
13992
  }[] | [string, string] | undefined>;
13244
- createdAtLocation: string;
13245
13993
  requestId: string;
13994
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13246
13995
  annotation?: Record<string, string | number | boolean | {
13247
13996
  type: string;
13248
13997
  filename: string;
@@ -13280,8 +14029,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13280
14029
  option: string;
13281
14030
  filename: string;
13282
14031
  originalFilename: string;
13283
- }[] | [string, string] | undefined> | undefined;
13284
- originalActionId?: string | undefined;
14032
+ }[] | [string, string] | undefined> | null | undefined;
14033
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13285
14034
  } | {
13286
14035
  type: "READ";
13287
14036
  id: string;
@@ -13328,7 +14077,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13328
14077
  filename: string;
13329
14078
  originalFilename: string;
13330
14079
  }[] | [string, string] | undefined>;
13331
- createdAtLocation: string;
14080
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13332
14081
  annotation?: Record<string, string | number | boolean | {
13333
14082
  type: string;
13334
14083
  filename: string;
@@ -13366,8 +14115,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13366
14115
  option: string;
13367
14116
  filename: string;
13368
14117
  originalFilename: string;
13369
- }[] | [string, string] | undefined> | undefined;
13370
- originalActionId?: string | undefined;
14118
+ }[] | [string, string] | undefined> | null | undefined;
14119
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13371
14120
  } | {
13372
14121
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
13373
14122
  id: string;
@@ -13376,13 +14125,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13376
14125
  createdAt: string;
13377
14126
  createdBy: string;
13378
14127
  createdByRole: string;
13379
- createdAtLocation: string;
13380
- originalActionId?: string | undefined;
14128
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
14129
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13381
14130
  })[];
13382
14131
  trackingId: string;
13383
- dateOfEvent?: {
13384
- fieldId: string;
13385
- } | undefined;
13386
14132
  };
13387
14133
  }>;
13388
14134
  }>>;
@@ -13658,7 +14404,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13658
14404
  input: void;
13659
14405
  output: {
13660
14406
  type: string;
13661
- id: string;
14407
+ id: string & import("zod").BRAND<"UUID">;
13662
14408
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
13663
14409
  createdAt: string;
13664
14410
  createdBy: string;
@@ -13700,7 +14446,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13700
14446
  filename: string;
13701
14447
  originalFilename: string;
13702
14448
  }[] | [string, string] | undefined>;
13703
- createdAtLocation: string;
13704
14449
  updatedAt: string;
13705
14450
  trackingId: string;
13706
14451
  legalStatuses: {
@@ -13708,185 +14453,35 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13708
14453
  createdAt: string;
13709
14454
  createdBy: string;
13710
14455
  createdByRole: string;
13711
- createdAtLocation: string;
13712
14456
  acceptedAt: string;
14457
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13713
14458
  } | null | undefined;
13714
14459
  REGISTERED?: {
13715
14460
  createdAt: string;
13716
14461
  createdBy: string;
13717
14462
  createdByRole: string;
13718
- createdAtLocation: string;
13719
14463
  registrationNumber: string;
13720
14464
  acceptedAt: string;
14465
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13721
14466
  } | null | undefined;
13722
14467
  };
13723
14468
  updatedByUserRole: string;
13724
14469
  flags: string[];
14470
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13725
14471
  assignedTo?: string | null | undefined;
13726
14472
  dateOfEvent?: string | null | undefined;
13727
- updatedAtLocation?: string | null | undefined;
14473
+ updatedAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13728
14474
  updatedBy?: string | null | undefined;
13729
14475
  }[];
13730
14476
  }>;
13731
14477
  search: import("@trpc/server").TRPCQueryProcedure<{
13732
14478
  input: {
13733
- type: "or";
13734
- clauses: {
13735
- status?: {
13736
- type: "exact";
13737
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
13738
- } | {
13739
- type: "anyOf";
13740
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
13741
- } | undefined;
13742
- data?: any;
13743
- createdAt?: {
13744
- type: "exact";
13745
- term: string;
13746
- } | {
13747
- type: "range";
13748
- gte: string;
13749
- lte: string;
13750
- } | undefined;
13751
- createdBy?: {
13752
- type: "exact";
13753
- term: string;
13754
- } | undefined;
13755
- updatedAt?: {
13756
- type: "exact";
13757
- term: string;
13758
- } | {
13759
- type: "range";
13760
- gte: string;
13761
- lte: string;
13762
- } | undefined;
13763
- trackingId?: {
13764
- type: "exact";
13765
- term: string;
13766
- } | undefined;
13767
- eventType?: string | undefined;
13768
- "legalStatus.REGISTERED.createdAt"?: {
13769
- type: "exact";
13770
- term: string;
13771
- } | {
13772
- type: "range";
13773
- gte: string;
13774
- lte: string;
13775
- } | undefined;
13776
- "legalStatus.REGISTERED.createdAtLocation"?: {
13777
- type: "exact";
13778
- term: string;
13779
- } | {
13780
- type: "within";
13781
- location: string;
13782
- } | undefined;
13783
- updatedAtLocation?: {
13784
- type: "exact";
13785
- term: string;
13786
- } | {
13787
- type: "within";
13788
- location: string;
13789
- } | undefined;
13790
- updatedBy?: {
13791
- type: "exact";
13792
- term: string;
13793
- } | undefined;
13794
- flags?: ({
13795
- type: "anyOf";
13796
- terms: string[];
13797
- } | {
13798
- type: "not";
13799
- term: string;
13800
- })[] | undefined;
13801
- createAtLocation?: {
13802
- type: "exact";
13803
- term: string;
13804
- } | {
13805
- type: "within";
13806
- location: string;
13807
- } | undefined;
13808
- }[];
13809
- } | {
13810
- type: "and";
13811
- clauses: {
13812
- status?: {
13813
- type: "exact";
13814
- term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
13815
- } | {
13816
- type: "anyOf";
13817
- terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
13818
- } | undefined;
13819
- data?: any;
13820
- createdAt?: {
13821
- type: "exact";
13822
- term: string;
13823
- } | {
13824
- type: "range";
13825
- gte: string;
13826
- lte: string;
13827
- } | undefined;
13828
- createdBy?: {
13829
- type: "exact";
13830
- term: string;
13831
- } | undefined;
13832
- updatedAt?: {
13833
- type: "exact";
13834
- term: string;
13835
- } | {
13836
- type: "range";
13837
- gte: string;
13838
- lte: string;
13839
- } | undefined;
13840
- trackingId?: {
13841
- type: "exact";
13842
- term: string;
13843
- } | undefined;
13844
- eventType?: string | undefined;
13845
- "legalStatus.REGISTERED.createdAt"?: {
13846
- type: "exact";
13847
- term: string;
13848
- } | {
13849
- type: "range";
13850
- gte: string;
13851
- lte: string;
13852
- } | undefined;
13853
- "legalStatus.REGISTERED.createdAtLocation"?: {
13854
- type: "exact";
13855
- term: string;
13856
- } | {
13857
- type: "within";
13858
- location: string;
13859
- } | undefined;
13860
- updatedAtLocation?: {
13861
- type: "exact";
13862
- term: string;
13863
- } | {
13864
- type: "within";
13865
- location: string;
13866
- } | undefined;
13867
- updatedBy?: {
13868
- type: "exact";
13869
- term: string;
13870
- } | undefined;
13871
- flags?: ({
13872
- type: "anyOf";
13873
- terms: string[];
13874
- } | {
13875
- type: "not";
13876
- term: string;
13877
- })[] | undefined;
13878
- createAtLocation?: {
13879
- type: "exact";
13880
- term: string;
13881
- } | {
13882
- type: "within";
13883
- location: string;
13884
- } | undefined;
13885
- }[];
14479
+ type: "and" | "or";
14480
+ clauses?: unknown;
13886
14481
  };
13887
14482
  output: {
13888
14483
  type: string;
13889
- id: string;
14484
+ id: string & import("zod").BRAND<"UUID">;
13890
14485
  status: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
13891
14486
  createdAt: string;
13892
14487
  createdBy: string;
@@ -13928,7 +14523,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13928
14523
  filename: string;
13929
14524
  originalFilename: string;
13930
14525
  }[] | [string, string] | undefined>;
13931
- createdAtLocation: string;
13932
14526
  updatedAt: string;
13933
14527
  trackingId: string;
13934
14528
  legalStatuses: {
@@ -13936,23 +14530,24 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
13936
14530
  createdAt: string;
13937
14531
  createdBy: string;
13938
14532
  createdByRole: string;
13939
- createdAtLocation: string;
13940
14533
  acceptedAt: string;
14534
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13941
14535
  } | null | undefined;
13942
14536
  REGISTERED?: {
13943
14537
  createdAt: string;
13944
14538
  createdBy: string;
13945
14539
  createdByRole: string;
13946
- createdAtLocation: string;
13947
14540
  registrationNumber: string;
13948
14541
  acceptedAt: string;
14542
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13949
14543
  } | null | undefined;
13950
14544
  };
13951
14545
  updatedByUserRole: string;
13952
14546
  flags: string[];
14547
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13953
14548
  assignedTo?: string | null | undefined;
13954
14549
  dateOfEvent?: string | null | undefined;
13955
- updatedAtLocation?: string | null | undefined;
14550
+ updatedAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
13956
14551
  updatedBy?: string | null | undefined;
13957
14552
  }[];
13958
14553
  }>;
@@ -14008,8 +14603,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14008
14603
  filename: string;
14009
14604
  originalFilename: string;
14010
14605
  }[] | [string, string] | undefined>;
14011
- createdAtLocation: string;
14012
14606
  assignedTo: string;
14607
+ createdAtLocation?: string | null | undefined;
14013
14608
  annotation?: Record<string, string | number | boolean | {
14014
14609
  type: string;
14015
14610
  filename: string;
@@ -14047,8 +14642,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14047
14642
  option: string;
14048
14643
  filename: string;
14049
14644
  originalFilename: string;
14050
- }[] | [string, string] | undefined> | undefined;
14051
- originalActionId?: string | undefined;
14645
+ }[] | [string, string] | undefined> | null | undefined;
14646
+ originalActionId?: string | null | undefined;
14052
14647
  } | {
14053
14648
  type: "UNASSIGN";
14054
14649
  id: string;
@@ -14095,8 +14690,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14095
14690
  filename: string;
14096
14691
  originalFilename: string;
14097
14692
  }[] | [string, string] | undefined>;
14098
- createdAtLocation: string;
14099
14693
  assignedTo: null;
14694
+ createdAtLocation?: string | null | undefined;
14100
14695
  annotation?: Record<string, string | number | boolean | {
14101
14696
  type: string;
14102
14697
  filename: string;
@@ -14134,8 +14729,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14134
14729
  option: string;
14135
14730
  filename: string;
14136
14731
  originalFilename: string;
14137
- }[] | [string, string] | undefined> | undefined;
14138
- originalActionId?: string | undefined;
14732
+ }[] | [string, string] | undefined> | null | undefined;
14733
+ originalActionId?: string | null | undefined;
14139
14734
  } | {
14140
14735
  type: "REGISTER";
14141
14736
  id: string;
@@ -14182,7 +14777,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14182
14777
  filename: string;
14183
14778
  originalFilename: string;
14184
14779
  }[] | [string, string] | undefined>;
14185
- createdAtLocation: string;
14780
+ createdAtLocation?: string | null | undefined;
14186
14781
  annotation?: Record<string, string | number | boolean | {
14187
14782
  type: string;
14188
14783
  filename: string;
@@ -14220,8 +14815,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14220
14815
  option: string;
14221
14816
  filename: string;
14222
14817
  originalFilename: string;
14223
- }[] | [string, string] | undefined> | undefined;
14224
- originalActionId?: string | undefined;
14818
+ }[] | [string, string] | undefined> | null | undefined;
14819
+ originalActionId?: string | null | undefined;
14225
14820
  registrationNumber?: string | undefined;
14226
14821
  } | {
14227
14822
  type: "DECLARE";
@@ -14269,7 +14864,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14269
14864
  filename: string;
14270
14865
  originalFilename: string;
14271
14866
  }[] | [string, string] | undefined>;
14272
- createdAtLocation: string;
14867
+ createdAtLocation?: string | null | undefined;
14273
14868
  annotation?: Record<string, string | number | boolean | {
14274
14869
  type: string;
14275
14870
  filename: string;
@@ -14307,8 +14902,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14307
14902
  option: string;
14308
14903
  filename: string;
14309
14904
  originalFilename: string;
14310
- }[] | [string, string] | undefined> | undefined;
14311
- originalActionId?: string | undefined;
14905
+ }[] | [string, string] | undefined> | null | undefined;
14906
+ originalActionId?: string | null | undefined;
14312
14907
  } | {
14313
14908
  type: "VALIDATE";
14314
14909
  id: string;
@@ -14355,7 +14950,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14355
14950
  filename: string;
14356
14951
  originalFilename: string;
14357
14952
  }[] | [string, string] | undefined>;
14358
- createdAtLocation: string;
14953
+ createdAtLocation?: string | null | undefined;
14359
14954
  annotation?: Record<string, string | number | boolean | {
14360
14955
  type: string;
14361
14956
  filename: string;
@@ -14393,12 +14988,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14393
14988
  option: string;
14394
14989
  filename: string;
14395
14990
  originalFilename: string;
14396
- }[] | [string, string] | undefined> | undefined;
14397
- originalActionId?: string | undefined;
14991
+ }[] | [string, string] | undefined> | null | undefined;
14992
+ originalActionId?: string | null | undefined;
14398
14993
  } | {
14399
14994
  type: "REJECT";
14400
14995
  id: string;
14401
14996
  status: "Rejected" | "Requested" | "Accepted";
14997
+ reason: {
14998
+ message: string;
14999
+ isDuplicate?: boolean | undefined;
15000
+ };
14402
15001
  transactionId: string;
14403
15002
  createdAt: string;
14404
15003
  createdBy: string;
@@ -14441,7 +15040,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14441
15040
  filename: string;
14442
15041
  originalFilename: string;
14443
15042
  }[] | [string, string] | undefined>;
14444
- createdAtLocation: string;
15043
+ createdAtLocation?: string | null | undefined;
14445
15044
  annotation?: Record<string, string | number | boolean | {
14446
15045
  type: string;
14447
15046
  filename: string;
@@ -14479,8 +15078,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14479
15078
  option: string;
14480
15079
  filename: string;
14481
15080
  originalFilename: string;
14482
- }[] | [string, string] | undefined> | undefined;
14483
- originalActionId?: string | undefined;
15081
+ }[] | [string, string] | undefined> | null | undefined;
15082
+ originalActionId?: string | null | undefined;
14484
15083
  } | {
14485
15084
  type: "MARKED_AS_DUPLICATE";
14486
15085
  id: string;
@@ -14527,7 +15126,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14527
15126
  filename: string;
14528
15127
  originalFilename: string;
14529
15128
  }[] | [string, string] | undefined>;
14530
- createdAtLocation: string;
15129
+ createdAtLocation?: string | null | undefined;
14531
15130
  annotation?: Record<string, string | number | boolean | {
14532
15131
  type: string;
14533
15132
  filename: string;
@@ -14565,12 +15164,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14565
15164
  option: string;
14566
15165
  filename: string;
14567
15166
  originalFilename: string;
14568
- }[] | [string, string] | undefined> | undefined;
14569
- originalActionId?: string | undefined;
15167
+ }[] | [string, string] | undefined> | null | undefined;
15168
+ originalActionId?: string | null | undefined;
14570
15169
  } | {
14571
15170
  type: "ARCHIVE";
14572
15171
  id: string;
14573
15172
  status: "Rejected" | "Requested" | "Accepted";
15173
+ reason: {
15174
+ message: string;
15175
+ isDuplicate?: boolean | undefined;
15176
+ };
14574
15177
  transactionId: string;
14575
15178
  createdAt: string;
14576
15179
  createdBy: string;
@@ -14613,7 +15216,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14613
15216
  filename: string;
14614
15217
  originalFilename: string;
14615
15218
  }[] | [string, string] | undefined>;
14616
- createdAtLocation: string;
15219
+ createdAtLocation?: string | null | undefined;
14617
15220
  annotation?: Record<string, string | number | boolean | {
14618
15221
  type: string;
14619
15222
  filename: string;
@@ -14651,8 +15254,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14651
15254
  option: string;
14652
15255
  filename: string;
14653
15256
  originalFilename: string;
14654
- }[] | [string, string] | undefined> | undefined;
14655
- originalActionId?: string | undefined;
15257
+ }[] | [string, string] | undefined> | null | undefined;
15258
+ originalActionId?: string | null | undefined;
14656
15259
  } | {
14657
15260
  type: "CREATE";
14658
15261
  id: string;
@@ -14699,7 +15302,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14699
15302
  filename: string;
14700
15303
  originalFilename: string;
14701
15304
  }[] | [string, string] | undefined>;
14702
- createdAtLocation: string;
15305
+ createdAtLocation?: string | null | undefined;
14703
15306
  annotation?: Record<string, string | number | boolean | {
14704
15307
  type: string;
14705
15308
  filename: string;
@@ -14737,8 +15340,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14737
15340
  option: string;
14738
15341
  filename: string;
14739
15342
  originalFilename: string;
14740
- }[] | [string, string] | undefined> | undefined;
14741
- originalActionId?: string | undefined;
15343
+ }[] | [string, string] | undefined> | null | undefined;
15344
+ originalActionId?: string | null | undefined;
14742
15345
  } | {
14743
15346
  type: "NOTIFY";
14744
15347
  id: string;
@@ -14785,7 +15388,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14785
15388
  filename: string;
14786
15389
  originalFilename: string;
14787
15390
  }[] | [string, string] | undefined>;
14788
- createdAtLocation: string;
15391
+ createdAtLocation?: string | null | undefined;
14789
15392
  annotation?: Record<string, string | number | boolean | {
14790
15393
  type: string;
14791
15394
  filename: string;
@@ -14823,8 +15426,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14823
15426
  option: string;
14824
15427
  filename: string;
14825
15428
  originalFilename: string;
14826
- }[] | [string, string] | undefined> | undefined;
14827
- originalActionId?: string | undefined;
15429
+ }[] | [string, string] | undefined> | null | undefined;
15430
+ originalActionId?: string | null | undefined;
14828
15431
  } | {
14829
15432
  type: "PRINT_CERTIFICATE";
14830
15433
  id: string;
@@ -14871,7 +15474,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14871
15474
  filename: string;
14872
15475
  originalFilename: string;
14873
15476
  }[] | [string, string] | undefined>;
14874
- createdAtLocation: string;
15477
+ createdAtLocation?: string | null | undefined;
14875
15478
  annotation?: Record<string, string | number | boolean | {
14876
15479
  type: string;
14877
15480
  filename: string;
@@ -14909,8 +15512,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14909
15512
  option: string;
14910
15513
  filename: string;
14911
15514
  originalFilename: string;
14912
- }[] | [string, string] | undefined> | undefined;
14913
- originalActionId?: string | undefined;
15515
+ }[] | [string, string] | undefined> | null | undefined;
15516
+ originalActionId?: string | null | undefined;
14914
15517
  } | {
14915
15518
  type: "REQUEST_CORRECTION";
14916
15519
  id: string;
@@ -14957,7 +15560,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14957
15560
  filename: string;
14958
15561
  originalFilename: string;
14959
15562
  }[] | [string, string] | undefined>;
14960
- createdAtLocation: string;
15563
+ createdAtLocation?: string | null | undefined;
14961
15564
  annotation?: Record<string, string | number | boolean | {
14962
15565
  type: string;
14963
15566
  filename: string;
@@ -14995,8 +15598,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
14995
15598
  option: string;
14996
15599
  filename: string;
14997
15600
  originalFilename: string;
14998
- }[] | [string, string] | undefined> | undefined;
14999
- originalActionId?: string | undefined;
15601
+ }[] | [string, string] | undefined> | null | undefined;
15602
+ originalActionId?: string | null | undefined;
15000
15603
  } | {
15001
15604
  type: "APPROVE_CORRECTION";
15002
15605
  id: string;
@@ -15043,8 +15646,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15043
15646
  filename: string;
15044
15647
  originalFilename: string;
15045
15648
  }[] | [string, string] | undefined>;
15046
- createdAtLocation: string;
15047
15649
  requestId: string;
15650
+ createdAtLocation?: string | null | undefined;
15048
15651
  annotation?: Record<string, string | number | boolean | {
15049
15652
  type: string;
15050
15653
  filename: string;
@@ -15082,8 +15685,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15082
15685
  option: string;
15083
15686
  filename: string;
15084
15687
  originalFilename: string;
15085
- }[] | [string, string] | undefined> | undefined;
15086
- originalActionId?: string | undefined;
15688
+ }[] | [string, string] | undefined> | null | undefined;
15689
+ originalActionId?: string | null | undefined;
15087
15690
  } | {
15088
15691
  type: "REJECT_CORRECTION";
15089
15692
  id: string;
@@ -15130,8 +15733,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15130
15733
  filename: string;
15131
15734
  originalFilename: string;
15132
15735
  }[] | [string, string] | undefined>;
15133
- createdAtLocation: string;
15134
15736
  requestId: string;
15737
+ createdAtLocation?: string | null | undefined;
15135
15738
  annotation?: Record<string, string | number | boolean | {
15136
15739
  type: string;
15137
15740
  filename: string;
@@ -15169,8 +15772,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15169
15772
  option: string;
15170
15773
  filename: string;
15171
15774
  originalFilename: string;
15172
- }[] | [string, string] | undefined> | undefined;
15173
- originalActionId?: string | undefined;
15775
+ }[] | [string, string] | undefined> | null | undefined;
15776
+ originalActionId?: string | null | undefined;
15174
15777
  } | {
15175
15778
  type: "READ";
15176
15779
  id: string;
@@ -15217,7 +15820,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15217
15820
  filename: string;
15218
15821
  originalFilename: string;
15219
15822
  }[] | [string, string] | undefined>;
15220
- createdAtLocation: string;
15823
+ createdAtLocation?: string | null | undefined;
15221
15824
  annotation?: Record<string, string | number | boolean | {
15222
15825
  type: string;
15223
15826
  filename: string;
@@ -15255,8 +15858,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15255
15858
  option: string;
15256
15859
  filename: string;
15257
15860
  originalFilename: string;
15258
- }[] | [string, string] | undefined> | undefined;
15259
- originalActionId?: string | undefined;
15861
+ }[] | [string, string] | undefined> | null | undefined;
15862
+ originalActionId?: string | null | undefined;
15260
15863
  } | {
15261
15864
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
15262
15865
  id: string;
@@ -15265,17 +15868,14 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15265
15868
  createdAt: string;
15266
15869
  createdBy: string;
15267
15870
  createdByRole: string;
15268
- createdAtLocation: string;
15269
- originalActionId?: string | undefined;
15871
+ createdAtLocation?: string | null | undefined;
15872
+ originalActionId?: string | null | undefined;
15270
15873
  })[];
15271
15874
  trackingId: string;
15272
- dateOfEvent?: {
15273
- fieldId: string;
15274
- } | undefined;
15275
15875
  };
15276
15876
  output: {
15277
15877
  type: string;
15278
- id: string;
15878
+ id: string & import("zod").BRAND<"UUID">;
15279
15879
  createdAt: string;
15280
15880
  updatedAt: string;
15281
15881
  actions: ({
@@ -15324,8 +15924,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15324
15924
  filename: string;
15325
15925
  originalFilename: string;
15326
15926
  }[] | [string, string] | undefined>;
15327
- createdAtLocation: string;
15328
15927
  assignedTo: string;
15928
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15329
15929
  annotation?: Record<string, string | number | boolean | {
15330
15930
  type: string;
15331
15931
  filename: string;
@@ -15363,8 +15963,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15363
15963
  option: string;
15364
15964
  filename: string;
15365
15965
  originalFilename: string;
15366
- }[] | [string, string] | undefined> | undefined;
15367
- originalActionId?: string | undefined;
15966
+ }[] | [string, string] | undefined> | null | undefined;
15967
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15368
15968
  } | {
15369
15969
  type: "UNASSIGN";
15370
15970
  id: string;
@@ -15411,8 +16011,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15411
16011
  filename: string;
15412
16012
  originalFilename: string;
15413
16013
  }[] | [string, string] | undefined>;
15414
- createdAtLocation: string;
15415
16014
  assignedTo: null;
16015
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15416
16016
  annotation?: Record<string, string | number | boolean | {
15417
16017
  type: string;
15418
16018
  filename: string;
@@ -15450,8 +16050,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15450
16050
  option: string;
15451
16051
  filename: string;
15452
16052
  originalFilename: string;
15453
- }[] | [string, string] | undefined> | undefined;
15454
- originalActionId?: string | undefined;
16053
+ }[] | [string, string] | undefined> | null | undefined;
16054
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15455
16055
  } | {
15456
16056
  type: "REGISTER";
15457
16057
  id: string;
@@ -15498,7 +16098,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15498
16098
  filename: string;
15499
16099
  originalFilename: string;
15500
16100
  }[] | [string, string] | undefined>;
15501
- createdAtLocation: string;
16101
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15502
16102
  annotation?: Record<string, string | number | boolean | {
15503
16103
  type: string;
15504
16104
  filename: string;
@@ -15536,8 +16136,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15536
16136
  option: string;
15537
16137
  filename: string;
15538
16138
  originalFilename: string;
15539
- }[] | [string, string] | undefined> | undefined;
15540
- originalActionId?: string | undefined;
16139
+ }[] | [string, string] | undefined> | null | undefined;
16140
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15541
16141
  registrationNumber?: string | undefined;
15542
16142
  } | {
15543
16143
  type: "DECLARE";
@@ -15585,7 +16185,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15585
16185
  filename: string;
15586
16186
  originalFilename: string;
15587
16187
  }[] | [string, string] | undefined>;
15588
- createdAtLocation: string;
16188
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15589
16189
  annotation?: Record<string, string | number | boolean | {
15590
16190
  type: string;
15591
16191
  filename: string;
@@ -15623,8 +16223,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15623
16223
  option: string;
15624
16224
  filename: string;
15625
16225
  originalFilename: string;
15626
- }[] | [string, string] | undefined> | undefined;
15627
- originalActionId?: string | undefined;
16226
+ }[] | [string, string] | undefined> | null | undefined;
16227
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15628
16228
  } | {
15629
16229
  type: "VALIDATE";
15630
16230
  id: string;
@@ -15671,7 +16271,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15671
16271
  filename: string;
15672
16272
  originalFilename: string;
15673
16273
  }[] | [string, string] | undefined>;
15674
- createdAtLocation: string;
16274
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15675
16275
  annotation?: Record<string, string | number | boolean | {
15676
16276
  type: string;
15677
16277
  filename: string;
@@ -15709,12 +16309,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15709
16309
  option: string;
15710
16310
  filename: string;
15711
16311
  originalFilename: string;
15712
- }[] | [string, string] | undefined> | undefined;
15713
- originalActionId?: string | undefined;
16312
+ }[] | [string, string] | undefined> | null | undefined;
16313
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15714
16314
  } | {
15715
16315
  type: "REJECT";
15716
16316
  id: string;
15717
16317
  status: "Rejected" | "Requested" | "Accepted";
16318
+ reason: {
16319
+ message: string;
16320
+ isDuplicate?: boolean | undefined;
16321
+ };
15718
16322
  transactionId: string;
15719
16323
  createdAt: string;
15720
16324
  createdBy: string;
@@ -15757,7 +16361,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15757
16361
  filename: string;
15758
16362
  originalFilename: string;
15759
16363
  }[] | [string, string] | undefined>;
15760
- createdAtLocation: string;
16364
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15761
16365
  annotation?: Record<string, string | number | boolean | {
15762
16366
  type: string;
15763
16367
  filename: string;
@@ -15795,8 +16399,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15795
16399
  option: string;
15796
16400
  filename: string;
15797
16401
  originalFilename: string;
15798
- }[] | [string, string] | undefined> | undefined;
15799
- originalActionId?: string | undefined;
16402
+ }[] | [string, string] | undefined> | null | undefined;
16403
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15800
16404
  } | {
15801
16405
  type: "MARKED_AS_DUPLICATE";
15802
16406
  id: string;
@@ -15843,7 +16447,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15843
16447
  filename: string;
15844
16448
  originalFilename: string;
15845
16449
  }[] | [string, string] | undefined>;
15846
- createdAtLocation: string;
16450
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15847
16451
  annotation?: Record<string, string | number | boolean | {
15848
16452
  type: string;
15849
16453
  filename: string;
@@ -15881,12 +16485,16 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15881
16485
  option: string;
15882
16486
  filename: string;
15883
16487
  originalFilename: string;
15884
- }[] | [string, string] | undefined> | undefined;
15885
- originalActionId?: string | undefined;
16488
+ }[] | [string, string] | undefined> | null | undefined;
16489
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15886
16490
  } | {
15887
16491
  type: "ARCHIVE";
15888
16492
  id: string;
15889
16493
  status: "Rejected" | "Requested" | "Accepted";
16494
+ reason: {
16495
+ message: string;
16496
+ isDuplicate?: boolean | undefined;
16497
+ };
15890
16498
  transactionId: string;
15891
16499
  createdAt: string;
15892
16500
  createdBy: string;
@@ -15929,7 +16537,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15929
16537
  filename: string;
15930
16538
  originalFilename: string;
15931
16539
  }[] | [string, string] | undefined>;
15932
- createdAtLocation: string;
16540
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15933
16541
  annotation?: Record<string, string | number | boolean | {
15934
16542
  type: string;
15935
16543
  filename: string;
@@ -15967,8 +16575,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
15967
16575
  option: string;
15968
16576
  filename: string;
15969
16577
  originalFilename: string;
15970
- }[] | [string, string] | undefined> | undefined;
15971
- originalActionId?: string | undefined;
16578
+ }[] | [string, string] | undefined> | null | undefined;
16579
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
15972
16580
  } | {
15973
16581
  type: "CREATE";
15974
16582
  id: string;
@@ -16015,7 +16623,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16015
16623
  filename: string;
16016
16624
  originalFilename: string;
16017
16625
  }[] | [string, string] | undefined>;
16018
- createdAtLocation: string;
16626
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16019
16627
  annotation?: Record<string, string | number | boolean | {
16020
16628
  type: string;
16021
16629
  filename: string;
@@ -16053,8 +16661,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16053
16661
  option: string;
16054
16662
  filename: string;
16055
16663
  originalFilename: string;
16056
- }[] | [string, string] | undefined> | undefined;
16057
- originalActionId?: string | undefined;
16664
+ }[] | [string, string] | undefined> | null | undefined;
16665
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16058
16666
  } | {
16059
16667
  type: "NOTIFY";
16060
16668
  id: string;
@@ -16101,7 +16709,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16101
16709
  filename: string;
16102
16710
  originalFilename: string;
16103
16711
  }[] | [string, string] | undefined>;
16104
- createdAtLocation: string;
16712
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16105
16713
  annotation?: Record<string, string | number | boolean | {
16106
16714
  type: string;
16107
16715
  filename: string;
@@ -16139,8 +16747,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16139
16747
  option: string;
16140
16748
  filename: string;
16141
16749
  originalFilename: string;
16142
- }[] | [string, string] | undefined> | undefined;
16143
- originalActionId?: string | undefined;
16750
+ }[] | [string, string] | undefined> | null | undefined;
16751
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16144
16752
  } | {
16145
16753
  type: "PRINT_CERTIFICATE";
16146
16754
  id: string;
@@ -16187,7 +16795,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16187
16795
  filename: string;
16188
16796
  originalFilename: string;
16189
16797
  }[] | [string, string] | undefined>;
16190
- createdAtLocation: string;
16798
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16191
16799
  annotation?: Record<string, string | number | boolean | {
16192
16800
  type: string;
16193
16801
  filename: string;
@@ -16225,8 +16833,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16225
16833
  option: string;
16226
16834
  filename: string;
16227
16835
  originalFilename: string;
16228
- }[] | [string, string] | undefined> | undefined;
16229
- originalActionId?: string | undefined;
16836
+ }[] | [string, string] | undefined> | null | undefined;
16837
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16230
16838
  } | {
16231
16839
  type: "REQUEST_CORRECTION";
16232
16840
  id: string;
@@ -16273,7 +16881,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16273
16881
  filename: string;
16274
16882
  originalFilename: string;
16275
16883
  }[] | [string, string] | undefined>;
16276
- createdAtLocation: string;
16884
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16277
16885
  annotation?: Record<string, string | number | boolean | {
16278
16886
  type: string;
16279
16887
  filename: string;
@@ -16311,8 +16919,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16311
16919
  option: string;
16312
16920
  filename: string;
16313
16921
  originalFilename: string;
16314
- }[] | [string, string] | undefined> | undefined;
16315
- originalActionId?: string | undefined;
16922
+ }[] | [string, string] | undefined> | null | undefined;
16923
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16316
16924
  } | {
16317
16925
  type: "APPROVE_CORRECTION";
16318
16926
  id: string;
@@ -16359,8 +16967,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16359
16967
  filename: string;
16360
16968
  originalFilename: string;
16361
16969
  }[] | [string, string] | undefined>;
16362
- createdAtLocation: string;
16363
16970
  requestId: string;
16971
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16364
16972
  annotation?: Record<string, string | number | boolean | {
16365
16973
  type: string;
16366
16974
  filename: string;
@@ -16398,8 +17006,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16398
17006
  option: string;
16399
17007
  filename: string;
16400
17008
  originalFilename: string;
16401
- }[] | [string, string] | undefined> | undefined;
16402
- originalActionId?: string | undefined;
17009
+ }[] | [string, string] | undefined> | null | undefined;
17010
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16403
17011
  } | {
16404
17012
  type: "REJECT_CORRECTION";
16405
17013
  id: string;
@@ -16446,8 +17054,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16446
17054
  filename: string;
16447
17055
  originalFilename: string;
16448
17056
  }[] | [string, string] | undefined>;
16449
- createdAtLocation: string;
16450
17057
  requestId: string;
17058
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16451
17059
  annotation?: Record<string, string | number | boolean | {
16452
17060
  type: string;
16453
17061
  filename: string;
@@ -16485,8 +17093,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16485
17093
  option: string;
16486
17094
  filename: string;
16487
17095
  originalFilename: string;
16488
- }[] | [string, string] | undefined> | undefined;
16489
- originalActionId?: string | undefined;
17096
+ }[] | [string, string] | undefined> | null | undefined;
17097
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16490
17098
  } | {
16491
17099
  type: "READ";
16492
17100
  id: string;
@@ -16533,7 +17141,7 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16533
17141
  filename: string;
16534
17142
  originalFilename: string;
16535
17143
  }[] | [string, string] | undefined>;
16536
- createdAtLocation: string;
17144
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16537
17145
  annotation?: Record<string, string | number | boolean | {
16538
17146
  type: string;
16539
17147
  filename: string;
@@ -16571,8 +17179,8 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16571
17179
  option: string;
16572
17180
  filename: string;
16573
17181
  originalFilename: string;
16574
- }[] | [string, string] | undefined> | undefined;
16575
- originalActionId?: string | undefined;
17182
+ }[] | [string, string] | undefined> | null | undefined;
17183
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16576
17184
  } | {
16577
17185
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
16578
17186
  id: string;
@@ -16581,13 +17189,10 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16581
17189
  createdAt: string;
16582
17190
  createdBy: string;
16583
17191
  createdByRole: string;
16584
- createdAtLocation: string;
16585
- originalActionId?: string | undefined;
17192
+ createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
17193
+ originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
16586
17194
  })[];
16587
17195
  trackingId: string;
16588
- dateOfEvent?: {
16589
- fieldId: string;
16590
- } | undefined;
16591
17196
  };
16592
17197
  }>;
16593
17198
  }>>;
@@ -16642,11 +17247,214 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
16642
17247
  get: import("@trpc/server").TRPCQueryProcedure<{
16643
17248
  input: void;
16644
17249
  output: {
16645
- id: string;
17250
+ id: string & import("zod").BRAND<"UUID">;
16646
17251
  name: string;
16647
17252
  externalId: string | null;
16648
- partOf: string | null;
17253
+ partOf: (string & import("zod").BRAND<"UUID">) | null;
17254
+ }[];
17255
+ }>;
17256
+ }>>;
17257
+ workqueue: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
17258
+ ctx: import("./middleware").Context;
17259
+ meta: import("trpc-to-openapi").OpenApiMeta;
17260
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
17261
+ transformer: true;
17262
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
17263
+ config: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
17264
+ ctx: import("./middleware").Context;
17265
+ meta: import("trpc-to-openapi").OpenApiMeta;
17266
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
17267
+ transformer: true;
17268
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
17269
+ list: import("@trpc/server").TRPCQueryProcedure<{
17270
+ input: void;
17271
+ output: {
17272
+ name: import("../commons").TranslationConfig;
17273
+ actions: {
17274
+ type: string;
17275
+ conditionals?: import("../commons").JSONSchema[] | undefined;
17276
+ }[];
17277
+ query: {
17278
+ type: "or";
17279
+ clauses: {
17280
+ status?: {
17281
+ type: "exact";
17282
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
17283
+ } | {
17284
+ type: "anyOf";
17285
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
17286
+ } | undefined;
17287
+ data?: any;
17288
+ createdAt?: {
17289
+ type: "exact";
17290
+ term: string;
17291
+ } | {
17292
+ type: "range";
17293
+ gte: string;
17294
+ lte: string;
17295
+ } | undefined;
17296
+ createdBy?: {
17297
+ type: "exact";
17298
+ term: string | {
17299
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17300
+ };
17301
+ } | undefined;
17302
+ createdAtLocation?: {
17303
+ type: "exact";
17304
+ term: string | {
17305
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17306
+ };
17307
+ } | {
17308
+ type: "within";
17309
+ location: string | {
17310
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17311
+ };
17312
+ } | undefined;
17313
+ assignedTo?: {
17314
+ type: "exact";
17315
+ term: string | {
17316
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17317
+ };
17318
+ } | undefined;
17319
+ updatedAt?: {
17320
+ type: "exact";
17321
+ term: string;
17322
+ } | {
17323
+ type: "range";
17324
+ gte: string;
17325
+ lte: string;
17326
+ } | undefined;
17327
+ trackingId?: {
17328
+ type: "exact";
17329
+ term: string;
17330
+ } | undefined;
17331
+ updatedAtLocation?: {
17332
+ type: "exact";
17333
+ term: string | {
17334
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17335
+ };
17336
+ } | {
17337
+ type: "within";
17338
+ location: string | {
17339
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17340
+ };
17341
+ } | undefined;
17342
+ updatedBy?: {
17343
+ type: "exact";
17344
+ term: string | {
17345
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17346
+ };
17347
+ } | undefined;
17348
+ flags?: ({
17349
+ type: "anyOf";
17350
+ terms: string[];
17351
+ } | {
17352
+ type: "not";
17353
+ term: string;
17354
+ })[] | undefined;
17355
+ eventType?: string | undefined;
17356
+ }[];
17357
+ } | {
17358
+ type: "and";
17359
+ clauses: {
17360
+ status?: {
17361
+ type: "exact";
17362
+ term: "ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED";
17363
+ } | {
17364
+ type: "anyOf";
17365
+ terms: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
17366
+ } | undefined;
17367
+ data?: any;
17368
+ createdAt?: {
17369
+ type: "exact";
17370
+ term: string;
17371
+ } | {
17372
+ type: "range";
17373
+ gte: string;
17374
+ lte: string;
17375
+ } | undefined;
17376
+ createdBy?: {
17377
+ type: "exact";
17378
+ term: string | {
17379
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17380
+ };
17381
+ } | undefined;
17382
+ createdAtLocation?: {
17383
+ type: "exact";
17384
+ term: string | {
17385
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17386
+ };
17387
+ } | {
17388
+ type: "within";
17389
+ location: string | {
17390
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17391
+ };
17392
+ } | undefined;
17393
+ assignedTo?: {
17394
+ type: "exact";
17395
+ term: string | {
17396
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17397
+ };
17398
+ } | undefined;
17399
+ updatedAt?: {
17400
+ type: "exact";
17401
+ term: string;
17402
+ } | {
17403
+ type: "range";
17404
+ gte: string;
17405
+ lte: string;
17406
+ } | undefined;
17407
+ trackingId?: {
17408
+ type: "exact";
17409
+ term: string;
17410
+ } | undefined;
17411
+ updatedAtLocation?: {
17412
+ type: "exact";
17413
+ term: string | {
17414
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17415
+ };
17416
+ } | {
17417
+ type: "within";
17418
+ location: string | {
17419
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17420
+ };
17421
+ } | undefined;
17422
+ updatedBy?: {
17423
+ type: "exact";
17424
+ term: string | {
17425
+ $userField: "id" | "name" | "role" | "signatureFilename" | "primaryOfficeId";
17426
+ };
17427
+ } | undefined;
17428
+ flags?: ({
17429
+ type: "anyOf";
17430
+ terms: string[];
17431
+ } | {
17432
+ type: "not";
17433
+ term: string;
17434
+ })[] | undefined;
17435
+ eventType?: string | undefined;
17436
+ }[];
17437
+ };
17438
+ slug: string;
17439
+ columns: {
17440
+ value: {
17441
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
17442
+ };
17443
+ label: import("../commons").TranslationConfig;
17444
+ }[];
17445
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "DownloadSimple" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
17446
+ }[];
17447
+ }>;
17448
+ }>>;
17449
+ count: import("@trpc/server").TRPCQueryProcedure<{
17450
+ input: {
17451
+ query: {
17452
+ type: "and" | "or";
17453
+ clauses?: unknown;
17454
+ };
17455
+ slug: string;
16649
17456
  }[];
17457
+ output: Record<string, number>;
16650
17458
  }>;
16651
17459
  }>>;
16652
17460
  }>>;