@socotra/ec-react-schemas 2.15.0-next.5 → 2.15.0-next.6

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.
package/dist/index.d.ts CHANGED
@@ -1011,6 +1011,245 @@ export declare const ActivityHistoryInitialResponseSchema: z.ZodObject<{
1011
1011
 
1012
1012
  export declare type ActivityHistoryListResponse = z.infer<typeof ActivityHistoryListResponseSchema>;
1013
1013
 
1014
+ export declare const ActivityHistoryListResponseBffSchema: z.ZodObject<{
1015
+ listCompleted: z.ZodBoolean;
1016
+ items: z.ZodArray<z.ZodObject<{
1017
+ locator: z.ZodString;
1018
+ category: z.ZodString;
1019
+ type: z.ZodString;
1020
+ activityState: z.ZodEnum<["active", "pastDeadline", "completed", "cancelled"]>;
1021
+ underwritingFlagLocators: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1022
+ deadlineTime: z.ZodOptional<z.ZodString>;
1023
+ assignedTo: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1024
+ locator: z.ZodString;
1025
+ userName: z.ZodString;
1026
+ firstName: z.ZodOptional<z.ZodString>;
1027
+ lastName: z.ZodOptional<z.ZodString>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ locator: string;
1030
+ userName: string;
1031
+ firstName?: string | undefined;
1032
+ lastName?: string | undefined;
1033
+ }, {
1034
+ locator: string;
1035
+ userName: string;
1036
+ firstName?: string | undefined;
1037
+ lastName?: string | undefined;
1038
+ }>, z.ZodObject<{
1039
+ locator: z.ZodString;
1040
+ isDeleted: z.ZodBoolean;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ locator: string;
1043
+ isDeleted: boolean;
1044
+ }, {
1045
+ locator: string;
1046
+ isDeleted: boolean;
1047
+ }>]>>;
1048
+ createdBy: z.ZodUnion<[z.ZodObject<{
1049
+ locator: z.ZodString;
1050
+ userName: z.ZodString;
1051
+ firstName: z.ZodOptional<z.ZodString>;
1052
+ lastName: z.ZodOptional<z.ZodString>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ locator: string;
1055
+ userName: string;
1056
+ firstName?: string | undefined;
1057
+ lastName?: string | undefined;
1058
+ }, {
1059
+ locator: string;
1060
+ userName: string;
1061
+ firstName?: string | undefined;
1062
+ lastName?: string | undefined;
1063
+ }>, z.ZodObject<{
1064
+ locator: z.ZodString;
1065
+ isDeleted: z.ZodBoolean;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ locator: string;
1068
+ isDeleted: boolean;
1069
+ }, {
1070
+ locator: string;
1071
+ isDeleted: boolean;
1072
+ }>]>;
1073
+ createdAt: z.ZodString;
1074
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1075
+ locator: z.ZodString;
1076
+ userName: z.ZodString;
1077
+ firstName: z.ZodOptional<z.ZodString>;
1078
+ lastName: z.ZodOptional<z.ZodString>;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ locator: string;
1081
+ userName: string;
1082
+ firstName?: string | undefined;
1083
+ lastName?: string | undefined;
1084
+ }, {
1085
+ locator: string;
1086
+ userName: string;
1087
+ firstName?: string | undefined;
1088
+ lastName?: string | undefined;
1089
+ }>, z.ZodObject<{
1090
+ locator: z.ZodString;
1091
+ isDeleted: z.ZodBoolean;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ locator: string;
1094
+ isDeleted: boolean;
1095
+ }, {
1096
+ locator: string;
1097
+ isDeleted: boolean;
1098
+ }>]>>;
1099
+ updatedAt: z.ZodOptional<z.ZodString>;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ locator: string;
1102
+ type: string;
1103
+ createdBy: {
1104
+ locator: string;
1105
+ userName: string;
1106
+ firstName?: string | undefined;
1107
+ lastName?: string | undefined;
1108
+ } | {
1109
+ locator: string;
1110
+ isDeleted: boolean;
1111
+ };
1112
+ category: string;
1113
+ createdAt: string;
1114
+ activityState: "active" | "pastDeadline" | "completed" | "cancelled";
1115
+ deadlineTime?: string | undefined;
1116
+ underwritingFlagLocators?: string[] | undefined;
1117
+ assignedTo?: {
1118
+ locator: string;
1119
+ userName: string;
1120
+ firstName?: string | undefined;
1121
+ lastName?: string | undefined;
1122
+ } | {
1123
+ locator: string;
1124
+ isDeleted: boolean;
1125
+ } | undefined;
1126
+ updatedBy?: {
1127
+ locator: string;
1128
+ userName: string;
1129
+ firstName?: string | undefined;
1130
+ lastName?: string | undefined;
1131
+ } | {
1132
+ locator: string;
1133
+ isDeleted: boolean;
1134
+ } | undefined;
1135
+ updatedAt?: string | undefined;
1136
+ }, {
1137
+ locator: string;
1138
+ type: string;
1139
+ createdBy: {
1140
+ locator: string;
1141
+ userName: string;
1142
+ firstName?: string | undefined;
1143
+ lastName?: string | undefined;
1144
+ } | {
1145
+ locator: string;
1146
+ isDeleted: boolean;
1147
+ };
1148
+ category: string;
1149
+ createdAt: string;
1150
+ activityState: "active" | "pastDeadline" | "completed" | "cancelled";
1151
+ deadlineTime?: string | undefined;
1152
+ underwritingFlagLocators?: string[] | undefined;
1153
+ assignedTo?: {
1154
+ locator: string;
1155
+ userName: string;
1156
+ firstName?: string | undefined;
1157
+ lastName?: string | undefined;
1158
+ } | {
1159
+ locator: string;
1160
+ isDeleted: boolean;
1161
+ } | undefined;
1162
+ updatedBy?: {
1163
+ locator: string;
1164
+ userName: string;
1165
+ firstName?: string | undefined;
1166
+ lastName?: string | undefined;
1167
+ } | {
1168
+ locator: string;
1169
+ isDeleted: boolean;
1170
+ } | undefined;
1171
+ updatedAt?: string | undefined;
1172
+ }>, "many">;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ items: {
1175
+ locator: string;
1176
+ type: string;
1177
+ createdBy: {
1178
+ locator: string;
1179
+ userName: string;
1180
+ firstName?: string | undefined;
1181
+ lastName?: string | undefined;
1182
+ } | {
1183
+ locator: string;
1184
+ isDeleted: boolean;
1185
+ };
1186
+ category: string;
1187
+ createdAt: string;
1188
+ activityState: "active" | "pastDeadline" | "completed" | "cancelled";
1189
+ deadlineTime?: string | undefined;
1190
+ underwritingFlagLocators?: string[] | undefined;
1191
+ assignedTo?: {
1192
+ locator: string;
1193
+ userName: string;
1194
+ firstName?: string | undefined;
1195
+ lastName?: string | undefined;
1196
+ } | {
1197
+ locator: string;
1198
+ isDeleted: boolean;
1199
+ } | undefined;
1200
+ updatedBy?: {
1201
+ locator: string;
1202
+ userName: string;
1203
+ firstName?: string | undefined;
1204
+ lastName?: string | undefined;
1205
+ } | {
1206
+ locator: string;
1207
+ isDeleted: boolean;
1208
+ } | undefined;
1209
+ updatedAt?: string | undefined;
1210
+ }[];
1211
+ listCompleted: boolean;
1212
+ }, {
1213
+ items: {
1214
+ locator: string;
1215
+ type: string;
1216
+ createdBy: {
1217
+ locator: string;
1218
+ userName: string;
1219
+ firstName?: string | undefined;
1220
+ lastName?: string | undefined;
1221
+ } | {
1222
+ locator: string;
1223
+ isDeleted: boolean;
1224
+ };
1225
+ category: string;
1226
+ createdAt: string;
1227
+ activityState: "active" | "pastDeadline" | "completed" | "cancelled";
1228
+ deadlineTime?: string | undefined;
1229
+ underwritingFlagLocators?: string[] | undefined;
1230
+ assignedTo?: {
1231
+ locator: string;
1232
+ userName: string;
1233
+ firstName?: string | undefined;
1234
+ lastName?: string | undefined;
1235
+ } | {
1236
+ locator: string;
1237
+ isDeleted: boolean;
1238
+ } | undefined;
1239
+ updatedBy?: {
1240
+ locator: string;
1241
+ userName: string;
1242
+ firstName?: string | undefined;
1243
+ lastName?: string | undefined;
1244
+ } | {
1245
+ locator: string;
1246
+ isDeleted: boolean;
1247
+ } | undefined;
1248
+ updatedAt?: string | undefined;
1249
+ }[];
1250
+ listCompleted: boolean;
1251
+ }>;
1252
+
1014
1253
  export declare const ActivityHistoryListResponseSchema: z.ZodObject<{
1015
1254
  listCompleted: z.ZodBoolean;
1016
1255
  items: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
@@ -1135,6 +1374,166 @@ export declare const ActivityHistoryListResponseSchema: z.ZodObject<{
1135
1374
 
1136
1375
  export declare type ActivityHistoryResponse = z.infer<typeof ActivityHistoryResponseSchema>;
1137
1376
 
1377
+ export declare type ActivityHistoryResponseBff = z.infer<typeof ActivityHistoryResponseBffSchema>;
1378
+
1379
+ export declare const ActivityHistoryResponseBffSchema: z.ZodObject<{
1380
+ locator: z.ZodString;
1381
+ category: z.ZodString;
1382
+ type: z.ZodString;
1383
+ activityState: z.ZodEnum<["active", "pastDeadline", "completed", "cancelled"]>;
1384
+ underwritingFlagLocators: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1385
+ deadlineTime: z.ZodOptional<z.ZodString>;
1386
+ assignedTo: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1387
+ locator: z.ZodString;
1388
+ userName: z.ZodString;
1389
+ firstName: z.ZodOptional<z.ZodString>;
1390
+ lastName: z.ZodOptional<z.ZodString>;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ locator: string;
1393
+ userName: string;
1394
+ firstName?: string | undefined;
1395
+ lastName?: string | undefined;
1396
+ }, {
1397
+ locator: string;
1398
+ userName: string;
1399
+ firstName?: string | undefined;
1400
+ lastName?: string | undefined;
1401
+ }>, z.ZodObject<{
1402
+ locator: z.ZodString;
1403
+ isDeleted: z.ZodBoolean;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ locator: string;
1406
+ isDeleted: boolean;
1407
+ }, {
1408
+ locator: string;
1409
+ isDeleted: boolean;
1410
+ }>]>>;
1411
+ createdBy: z.ZodUnion<[z.ZodObject<{
1412
+ locator: z.ZodString;
1413
+ userName: z.ZodString;
1414
+ firstName: z.ZodOptional<z.ZodString>;
1415
+ lastName: z.ZodOptional<z.ZodString>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ locator: string;
1418
+ userName: string;
1419
+ firstName?: string | undefined;
1420
+ lastName?: string | undefined;
1421
+ }, {
1422
+ locator: string;
1423
+ userName: string;
1424
+ firstName?: string | undefined;
1425
+ lastName?: string | undefined;
1426
+ }>, z.ZodObject<{
1427
+ locator: z.ZodString;
1428
+ isDeleted: z.ZodBoolean;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ locator: string;
1431
+ isDeleted: boolean;
1432
+ }, {
1433
+ locator: string;
1434
+ isDeleted: boolean;
1435
+ }>]>;
1436
+ createdAt: z.ZodString;
1437
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1438
+ locator: z.ZodString;
1439
+ userName: z.ZodString;
1440
+ firstName: z.ZodOptional<z.ZodString>;
1441
+ lastName: z.ZodOptional<z.ZodString>;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ locator: string;
1444
+ userName: string;
1445
+ firstName?: string | undefined;
1446
+ lastName?: string | undefined;
1447
+ }, {
1448
+ locator: string;
1449
+ userName: string;
1450
+ firstName?: string | undefined;
1451
+ lastName?: string | undefined;
1452
+ }>, z.ZodObject<{
1453
+ locator: z.ZodString;
1454
+ isDeleted: z.ZodBoolean;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ locator: string;
1457
+ isDeleted: boolean;
1458
+ }, {
1459
+ locator: string;
1460
+ isDeleted: boolean;
1461
+ }>]>>;
1462
+ updatedAt: z.ZodOptional<z.ZodString>;
1463
+ }, "strip", z.ZodTypeAny, {
1464
+ locator: string;
1465
+ type: string;
1466
+ createdBy: {
1467
+ locator: string;
1468
+ userName: string;
1469
+ firstName?: string | undefined;
1470
+ lastName?: string | undefined;
1471
+ } | {
1472
+ locator: string;
1473
+ isDeleted: boolean;
1474
+ };
1475
+ category: string;
1476
+ createdAt: string;
1477
+ activityState: "active" | "pastDeadline" | "completed" | "cancelled";
1478
+ deadlineTime?: string | undefined;
1479
+ underwritingFlagLocators?: string[] | undefined;
1480
+ assignedTo?: {
1481
+ locator: string;
1482
+ userName: string;
1483
+ firstName?: string | undefined;
1484
+ lastName?: string | undefined;
1485
+ } | {
1486
+ locator: string;
1487
+ isDeleted: boolean;
1488
+ } | undefined;
1489
+ updatedBy?: {
1490
+ locator: string;
1491
+ userName: string;
1492
+ firstName?: string | undefined;
1493
+ lastName?: string | undefined;
1494
+ } | {
1495
+ locator: string;
1496
+ isDeleted: boolean;
1497
+ } | undefined;
1498
+ updatedAt?: string | undefined;
1499
+ }, {
1500
+ locator: string;
1501
+ type: string;
1502
+ createdBy: {
1503
+ locator: string;
1504
+ userName: string;
1505
+ firstName?: string | undefined;
1506
+ lastName?: string | undefined;
1507
+ } | {
1508
+ locator: string;
1509
+ isDeleted: boolean;
1510
+ };
1511
+ category: string;
1512
+ createdAt: string;
1513
+ activityState: "active" | "pastDeadline" | "completed" | "cancelled";
1514
+ deadlineTime?: string | undefined;
1515
+ underwritingFlagLocators?: string[] | undefined;
1516
+ assignedTo?: {
1517
+ locator: string;
1518
+ userName: string;
1519
+ firstName?: string | undefined;
1520
+ lastName?: string | undefined;
1521
+ } | {
1522
+ locator: string;
1523
+ isDeleted: boolean;
1524
+ } | undefined;
1525
+ updatedBy?: {
1526
+ locator: string;
1527
+ userName: string;
1528
+ firstName?: string | undefined;
1529
+ lastName?: string | undefined;
1530
+ } | {
1531
+ locator: string;
1532
+ isDeleted: boolean;
1533
+ } | undefined;
1534
+ updatedAt?: string | undefined;
1535
+ }>;
1536
+
1138
1537
  export declare const ActivityHistoryResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
1139
1538
  locator: z.ZodString;
1140
1539
  category: z.ZodString;