@opencrvs/toolkit 2.0.0-rc.5d74df4 → 2.0.0-rc.5f2b416
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.
|
@@ -1195,6 +1195,342 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1195
1195
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1196
1196
|
}>;
|
|
1197
1197
|
}>>;
|
|
1198
|
+
createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
|
|
1199
|
+
ctx: Partial<{
|
|
1200
|
+
token: `Bearer ${string}`;
|
|
1201
|
+
user: {
|
|
1202
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1203
|
+
type: "system";
|
|
1204
|
+
signature?: undefined;
|
|
1205
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1206
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1207
|
+
} | {
|
|
1208
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1209
|
+
type: "user";
|
|
1210
|
+
role: string;
|
|
1211
|
+
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1212
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1213
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1214
|
+
};
|
|
1215
|
+
}>;
|
|
1216
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1217
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
1218
|
+
transformer: true;
|
|
1219
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1220
|
+
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
1221
|
+
input: {
|
|
1222
|
+
transactionId: string;
|
|
1223
|
+
eventType: string;
|
|
1224
|
+
createdAtLocation: string;
|
|
1225
|
+
declaration?: Record<string, unknown> | undefined;
|
|
1226
|
+
annotation?: Record<string, unknown> | undefined;
|
|
1227
|
+
originalActionId?: string | undefined;
|
|
1228
|
+
keepAssignment?: boolean | undefined;
|
|
1229
|
+
};
|
|
1230
|
+
output: {
|
|
1231
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1232
|
+
type: string;
|
|
1233
|
+
createdAt: string;
|
|
1234
|
+
updatedAt: string;
|
|
1235
|
+
actions: ({
|
|
1236
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1237
|
+
transactionId: string;
|
|
1238
|
+
createdByUserType: "system" | "user";
|
|
1239
|
+
createdAt: string;
|
|
1240
|
+
createdBy: string;
|
|
1241
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1242
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1243
|
+
type: "CREATE";
|
|
1244
|
+
createdByRole?: string | undefined;
|
|
1245
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1246
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1247
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1248
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1249
|
+
} | {
|
|
1250
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1251
|
+
transactionId: string;
|
|
1252
|
+
createdByUserType: "system" | "user";
|
|
1253
|
+
createdAt: string;
|
|
1254
|
+
createdBy: string;
|
|
1255
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1256
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1257
|
+
type: "REJECT";
|
|
1258
|
+
content: {
|
|
1259
|
+
reason: string;
|
|
1260
|
+
};
|
|
1261
|
+
createdByRole?: string | undefined;
|
|
1262
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1263
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1264
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1265
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1266
|
+
} | {
|
|
1267
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1268
|
+
transactionId: string;
|
|
1269
|
+
createdByUserType: "system" | "user";
|
|
1270
|
+
createdAt: string;
|
|
1271
|
+
createdBy: string;
|
|
1272
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1273
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1274
|
+
type: "DUPLICATE_DETECTED";
|
|
1275
|
+
content: {
|
|
1276
|
+
duplicates: {
|
|
1277
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1278
|
+
trackingId: string;
|
|
1279
|
+
}[];
|
|
1280
|
+
};
|
|
1281
|
+
createdByRole?: string | undefined;
|
|
1282
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1283
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1284
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1285
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1286
|
+
} | {
|
|
1287
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1288
|
+
transactionId: string;
|
|
1289
|
+
createdByUserType: "system" | "user";
|
|
1290
|
+
createdAt: string;
|
|
1291
|
+
createdBy: string;
|
|
1292
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1293
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1294
|
+
type: "MARK_AS_NOT_DUPLICATE";
|
|
1295
|
+
createdByRole?: string | undefined;
|
|
1296
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1297
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1298
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1299
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1300
|
+
} | {
|
|
1301
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1302
|
+
transactionId: string;
|
|
1303
|
+
createdByUserType: "system" | "user";
|
|
1304
|
+
createdAt: string;
|
|
1305
|
+
createdBy: string;
|
|
1306
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1307
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1308
|
+
type: "MARK_AS_DUPLICATE";
|
|
1309
|
+
createdByRole?: string | undefined;
|
|
1310
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1311
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1312
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1313
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1314
|
+
content?: {
|
|
1315
|
+
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
1316
|
+
} | undefined;
|
|
1317
|
+
} | {
|
|
1318
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1319
|
+
transactionId: string;
|
|
1320
|
+
createdByUserType: "system" | "user";
|
|
1321
|
+
createdAt: string;
|
|
1322
|
+
createdBy: string;
|
|
1323
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1324
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1325
|
+
type: "ARCHIVE";
|
|
1326
|
+
content: {
|
|
1327
|
+
reason: string;
|
|
1328
|
+
};
|
|
1329
|
+
createdByRole?: string | undefined;
|
|
1330
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1331
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1332
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1333
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1334
|
+
} | {
|
|
1335
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1336
|
+
transactionId: string;
|
|
1337
|
+
createdByUserType: "system" | "user";
|
|
1338
|
+
createdAt: string;
|
|
1339
|
+
createdBy: string;
|
|
1340
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1341
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1342
|
+
type: "NOTIFY";
|
|
1343
|
+
createdByRole?: string | undefined;
|
|
1344
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1345
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1346
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1347
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1348
|
+
} | {
|
|
1349
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1350
|
+
transactionId: string;
|
|
1351
|
+
createdByUserType: "system" | "user";
|
|
1352
|
+
createdAt: string;
|
|
1353
|
+
createdBy: string;
|
|
1354
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1355
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1356
|
+
type: "REGISTER";
|
|
1357
|
+
createdByRole?: string | undefined;
|
|
1358
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1359
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1360
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1361
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1362
|
+
registrationNumber?: string | undefined;
|
|
1363
|
+
} | {
|
|
1364
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1365
|
+
transactionId: string;
|
|
1366
|
+
createdByUserType: "system" | "user";
|
|
1367
|
+
createdAt: string;
|
|
1368
|
+
createdBy: string;
|
|
1369
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1370
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1371
|
+
type: "DECLARE";
|
|
1372
|
+
createdByRole?: string | undefined;
|
|
1373
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1374
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1375
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1376
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1377
|
+
} | {
|
|
1378
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1379
|
+
transactionId: string;
|
|
1380
|
+
createdByUserType: "system" | "user";
|
|
1381
|
+
createdAt: string;
|
|
1382
|
+
createdBy: string;
|
|
1383
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1384
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1385
|
+
type: "ASSIGN";
|
|
1386
|
+
assignedTo: string;
|
|
1387
|
+
createdByRole?: string | undefined;
|
|
1388
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1389
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1390
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1391
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1392
|
+
} | {
|
|
1393
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1394
|
+
transactionId: string;
|
|
1395
|
+
createdByUserType: "system" | "user";
|
|
1396
|
+
createdAt: string;
|
|
1397
|
+
createdBy: string;
|
|
1398
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1399
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1400
|
+
type: "REQUEST_CORRECTION";
|
|
1401
|
+
createdByRole?: string | undefined;
|
|
1402
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1403
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1404
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1405
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1406
|
+
} | {
|
|
1407
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1408
|
+
transactionId: string;
|
|
1409
|
+
createdByUserType: "system" | "user";
|
|
1410
|
+
createdAt: string;
|
|
1411
|
+
createdBy: string;
|
|
1412
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1413
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1414
|
+
type: "APPROVE_CORRECTION";
|
|
1415
|
+
requestId: string;
|
|
1416
|
+
createdByRole?: string | undefined;
|
|
1417
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1418
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1419
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1420
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1421
|
+
} | {
|
|
1422
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1423
|
+
transactionId: string;
|
|
1424
|
+
createdByUserType: "system" | "user";
|
|
1425
|
+
createdAt: string;
|
|
1426
|
+
createdBy: string;
|
|
1427
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1428
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1429
|
+
type: "REJECT_CORRECTION";
|
|
1430
|
+
requestId: string;
|
|
1431
|
+
content: {
|
|
1432
|
+
reason: string;
|
|
1433
|
+
};
|
|
1434
|
+
createdByRole?: string | undefined;
|
|
1435
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1436
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1437
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1438
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1439
|
+
} | {
|
|
1440
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1441
|
+
transactionId: string;
|
|
1442
|
+
createdByUserType: "system" | "user";
|
|
1443
|
+
createdAt: string;
|
|
1444
|
+
createdBy: string;
|
|
1445
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1446
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1447
|
+
type: "UNASSIGN";
|
|
1448
|
+
createdByRole?: string | undefined;
|
|
1449
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1450
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1451
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1452
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1453
|
+
} | {
|
|
1454
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1455
|
+
transactionId: string;
|
|
1456
|
+
createdByUserType: "system" | "user";
|
|
1457
|
+
createdAt: string;
|
|
1458
|
+
createdBy: string;
|
|
1459
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1460
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1461
|
+
type: "PRINT_CERTIFICATE";
|
|
1462
|
+
createdByRole?: string | undefined;
|
|
1463
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1464
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1465
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1466
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1467
|
+
content?: {
|
|
1468
|
+
templateId?: string | undefined;
|
|
1469
|
+
} | null | undefined;
|
|
1470
|
+
} | {
|
|
1471
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1472
|
+
transactionId: string;
|
|
1473
|
+
createdByUserType: "system" | "user";
|
|
1474
|
+
createdAt: string;
|
|
1475
|
+
createdBy: string;
|
|
1476
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1477
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1478
|
+
type: "READ";
|
|
1479
|
+
createdByRole?: string | undefined;
|
|
1480
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1481
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1482
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1483
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1484
|
+
} | {
|
|
1485
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1486
|
+
transactionId: string;
|
|
1487
|
+
createdByUserType: "system" | "user";
|
|
1488
|
+
createdAt: string;
|
|
1489
|
+
createdBy: string;
|
|
1490
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1491
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1492
|
+
type: "EDIT";
|
|
1493
|
+
content: {
|
|
1494
|
+
comment?: string | undefined;
|
|
1495
|
+
};
|
|
1496
|
+
createdByRole?: string | undefined;
|
|
1497
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1498
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1499
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1500
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1501
|
+
} | {
|
|
1502
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1503
|
+
transactionId: string;
|
|
1504
|
+
createdByUserType: "system" | "user";
|
|
1505
|
+
createdAt: string;
|
|
1506
|
+
createdBy: string;
|
|
1507
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1508
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1509
|
+
type: "CUSTOM";
|
|
1510
|
+
customActionType: string;
|
|
1511
|
+
createdByRole?: string | undefined;
|
|
1512
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1513
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1514
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1515
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1516
|
+
} | {
|
|
1517
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1518
|
+
transactionId: string;
|
|
1519
|
+
createdByUserType: "system" | "user";
|
|
1520
|
+
createdAt: string;
|
|
1521
|
+
createdBy: string;
|
|
1522
|
+
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
|
|
1523
|
+
status: "Rejected";
|
|
1524
|
+
createdByRole?: string | undefined;
|
|
1525
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1526
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1527
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1528
|
+
})[];
|
|
1529
|
+
trackingId: string;
|
|
1530
|
+
};
|
|
1531
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1532
|
+
}>;
|
|
1533
|
+
}>>;
|
|
1198
1534
|
declare: import("@trpc/server").TRPCBuiltRouter<{
|
|
1199
1535
|
ctx: Partial<{
|
|
1200
1536
|
token: `Bearer ${string}`;
|
|
Binary file
|