@techzunction/sdk 0.6.3 → 0.6.5

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.cts CHANGED
@@ -841,6 +841,717 @@ interface PlatformPlan {
841
841
  features: Record<string, unknown>;
842
842
  isActive: boolean;
843
843
  }
844
+ interface AdminDashboardStats {
845
+ totalOrders: number;
846
+ ordersToday: number;
847
+ totalRevenue: number;
848
+ revenueToday: number;
849
+ activeOrders: number;
850
+ totalUsers: number;
851
+ totalMenuItems: number;
852
+ }
853
+ interface AdminDashboardData {
854
+ stats: AdminDashboardStats;
855
+ ordersByStatus: {
856
+ status: string;
857
+ count: number;
858
+ }[];
859
+ recentOrders: {
860
+ id: string;
861
+ status: string;
862
+ customerName: string;
863
+ totalAmount: number;
864
+ createdAt: string;
865
+ mode: string;
866
+ orderType: string;
867
+ }[];
868
+ }
869
+ interface AdminLoyaltyAccount {
870
+ id: string;
871
+ balance: number;
872
+ totalEarned: number;
873
+ totalRedeemed: number;
874
+ tier: string;
875
+ user: {
876
+ id: string;
877
+ name: string | null;
878
+ email: string | null;
879
+ phone: string | null;
880
+ };
881
+ transactions: {
882
+ id: string;
883
+ type: string;
884
+ coins: number;
885
+ description: string;
886
+ createdAt: string;
887
+ }[];
888
+ }
889
+ interface AdminLoyaltyData {
890
+ accounts: AdminLoyaltyAccount[];
891
+ summary: {
892
+ totalAccounts: number;
893
+ totalBalance: number;
894
+ totalEarned: number;
895
+ totalRedeemed: number;
896
+ };
897
+ tierCounts: {
898
+ tier: string;
899
+ count: number;
900
+ }[];
901
+ }
902
+ interface AdminRedemption {
903
+ id: string;
904
+ code: string;
905
+ rewardId: string;
906
+ rewardName: string;
907
+ coins: number;
908
+ status: string;
909
+ createdAt: string;
910
+ fulfilledAt: string | null;
911
+ user: {
912
+ id: string;
913
+ name: string | null;
914
+ phone: string | null;
915
+ email: string | null;
916
+ };
917
+ }
918
+ interface AdminFulfillResult {
919
+ success: boolean;
920
+ message: string;
921
+ redemption?: {
922
+ rewardName?: string;
923
+ customerName?: string;
924
+ coins?: number;
925
+ };
926
+ }
927
+ interface AdminDeliveryAgent {
928
+ id: string;
929
+ name: string;
930
+ phone: string;
931
+ status: string;
932
+ isActive: boolean;
933
+ createdAt: string;
934
+ }
935
+ interface AdminDeliveryZone {
936
+ id: string;
937
+ name: string;
938
+ pincodes: string[];
939
+ deliveryFee: number;
940
+ isActive: boolean;
941
+ createdAt: string;
942
+ }
943
+ interface AdminAffiliate {
944
+ id: string;
945
+ utmSource: string;
946
+ utmCampaign: string;
947
+ clicks: number;
948
+ conversions: number;
949
+ conversionRate: number;
950
+ }
951
+ interface AdminPopupSettings {
952
+ id: string;
953
+ content: string;
954
+ trigger: string;
955
+ isActive: boolean;
956
+ }
957
+ interface AdminInvoice {
958
+ id: string;
959
+ invoiceNumber: string;
960
+ orderId: string;
961
+ total: number;
962
+ createdAt: string;
963
+ }
964
+ interface AdminTaxSummary {
965
+ sgst: number;
966
+ cgst: number;
967
+ igst: number;
968
+ totalTax: number;
969
+ totalTaxableAmount: number;
970
+ }
971
+ interface AdminSettlement {
972
+ id: string;
973
+ paymentId: string;
974
+ amount: number;
975
+ status: string;
976
+ method: string;
977
+ settledAt: string;
978
+ }
979
+ interface AdminPayout {
980
+ id: string;
981
+ agentId: string;
982
+ agentName: string;
983
+ amount: number;
984
+ period: string;
985
+ orderCount: number;
986
+ isPaid: boolean;
987
+ createdAt: string;
988
+ }
989
+ interface AdminBroadcast {
990
+ id: string;
991
+ title: string;
992
+ body: string;
993
+ channel: string;
994
+ segment: string;
995
+ sentCount: number;
996
+ openCount: number;
997
+ status: string;
998
+ scheduledAt: string | null;
999
+ createdAt: string;
1000
+ }
1001
+ interface AdminScheduledOrder {
1002
+ id: string;
1003
+ orderID: string;
1004
+ customerName: string;
1005
+ customerPhone: string;
1006
+ scheduledAt: string;
1007
+ orderType: string;
1008
+ status: string;
1009
+ totalAmount: number;
1010
+ isCatering: boolean;
1011
+ createdAt: string;
1012
+ }
1013
+ interface AdminAbandonedCart {
1014
+ id: string;
1015
+ email: string | null;
1016
+ phone: string | null;
1017
+ subtotal: number;
1018
+ itemCount: number;
1019
+ recoveryEmailSent: boolean;
1020
+ recoveredAt: string | null;
1021
+ createdAt: string;
1022
+ }
1023
+ interface AdminWaitlistEntry {
1024
+ id: string;
1025
+ email: string | null;
1026
+ phone: string | null;
1027
+ createdAt: string;
1028
+ }
1029
+ interface AdminWaitlistGroup {
1030
+ menuItemId: string;
1031
+ menuItemName: string;
1032
+ menuItemImage: string | null;
1033
+ count: number;
1034
+ entries: AdminWaitlistEntry[];
1035
+ }
1036
+ interface AdminReservationSlot {
1037
+ id: string;
1038
+ dayOfWeek: number;
1039
+ startTime: string;
1040
+ endTime: string;
1041
+ maxCovers: number;
1042
+ isActive: boolean;
1043
+ }
1044
+ interface AdminOrder {
1045
+ id: string;
1046
+ status: string;
1047
+ posOrderId: string | null;
1048
+ mode: string;
1049
+ orderType: string;
1050
+ customerName: string;
1051
+ customerPhone: string;
1052
+ subtotal: number;
1053
+ totalAmount: number;
1054
+ paymentMethod: string | null;
1055
+ couponCode: string | null;
1056
+ itemCount: number;
1057
+ createdAt: string;
1058
+ }
1059
+ interface AdminOrderDetail {
1060
+ id: string;
1061
+ status: string;
1062
+ posOrderId: string | null;
1063
+ posRawStatus: string | null;
1064
+ mode: string;
1065
+ orderType: string;
1066
+ paymentMethod: string | null;
1067
+ paymentType: string;
1068
+ customerName: string;
1069
+ customerPhone: string;
1070
+ customerEmail: string | null;
1071
+ subtotal: number;
1072
+ taxAmount: number;
1073
+ deliveryFee: number;
1074
+ discountAmount: number;
1075
+ packingCharges: number;
1076
+ serviceCharge: number;
1077
+ totalAmount: number;
1078
+ specialInstructions: string | null;
1079
+ couponCode: string | null;
1080
+ coinsEarned: number;
1081
+ coinsRedeemed: number;
1082
+ createdAt: string;
1083
+ items: {
1084
+ id: string;
1085
+ itemName: string;
1086
+ quantity: number;
1087
+ unitPrice: number;
1088
+ totalPrice: number;
1089
+ mode: string;
1090
+ addons: {
1091
+ addonName: string;
1092
+ price: number;
1093
+ quantity: number;
1094
+ }[];
1095
+ }[];
1096
+ statusHistory: {
1097
+ status: string;
1098
+ source: string;
1099
+ note: string | null;
1100
+ createdAt: string;
1101
+ }[];
1102
+ address: {
1103
+ line1: string;
1104
+ line2: string | null;
1105
+ city: string;
1106
+ pincode: string;
1107
+ } | null;
1108
+ user: {
1109
+ id: string;
1110
+ name: string | null;
1111
+ email: string | null;
1112
+ phone: string | null;
1113
+ };
1114
+ }
1115
+ interface AdminCustomer {
1116
+ id: string;
1117
+ name: string;
1118
+ email: string | null;
1119
+ phone: string | null;
1120
+ ordersCount: number;
1121
+ loyaltyTier: string | null;
1122
+ createdAt: string;
1123
+ }
1124
+ interface AdminCustomerDetail {
1125
+ id: string;
1126
+ name: string;
1127
+ email: string | null;
1128
+ phone: string | null;
1129
+ loyaltyTier: string | null;
1130
+ ordersCount: number;
1131
+ createdAt: string;
1132
+ recentOrders: {
1133
+ id: string;
1134
+ status: string;
1135
+ totalAmount: number;
1136
+ itemCount: number;
1137
+ createdAt: string;
1138
+ }[];
1139
+ loyalty: {
1140
+ balance: number;
1141
+ tier: string;
1142
+ lifetimePoints: number;
1143
+ } | null;
1144
+ reviews: {
1145
+ id: string;
1146
+ rating: number;
1147
+ comment: string | null;
1148
+ status: string;
1149
+ createdAt: string;
1150
+ }[];
1151
+ supportTickets: {
1152
+ id: string;
1153
+ subject: string;
1154
+ status: string;
1155
+ createdAt: string;
1156
+ }[];
1157
+ notes: {
1158
+ id: string;
1159
+ content: string;
1160
+ author: string;
1161
+ createdAt: string;
1162
+ }[];
1163
+ }
1164
+ interface AdminBlogPost {
1165
+ id: string;
1166
+ slug: string;
1167
+ title: string;
1168
+ h1: string;
1169
+ excerpt: string | null;
1170
+ featuredImage: string | null;
1171
+ status: string;
1172
+ category: string | null;
1173
+ tags: string;
1174
+ author: string;
1175
+ viewCount: number;
1176
+ datePublished: string | null;
1177
+ dateModified: string | null;
1178
+ createdAt: string;
1179
+ _count: {
1180
+ media: number;
1181
+ reviews: number;
1182
+ };
1183
+ }
1184
+ interface AdminCoupon {
1185
+ id: string;
1186
+ code: string;
1187
+ name: string;
1188
+ description: string | null;
1189
+ discountType: string;
1190
+ discountValue: number;
1191
+ minOrderAmount: number | null;
1192
+ maxDiscount: number | null;
1193
+ maxUsageTotal: number | null;
1194
+ maxUsagePerUser: number;
1195
+ isActive: boolean;
1196
+ startDate: string | null;
1197
+ endDate: string | null;
1198
+ applicableModes: string;
1199
+ usageCount: number;
1200
+ createdAt: string;
1201
+ }
1202
+ interface AdminPromotion {
1203
+ id: string;
1204
+ title: string;
1205
+ subtitle: string | null;
1206
+ description: string | null;
1207
+ type: string;
1208
+ imageUrl: string | null;
1209
+ couponCode: string | null;
1210
+ isActive: boolean;
1211
+ priority: number;
1212
+ startDate: string | null;
1213
+ endDate: string | null;
1214
+ config: string | null;
1215
+ createdAt: string;
1216
+ }
1217
+ interface AdminGiftCardTransaction {
1218
+ id: string;
1219
+ type: string;
1220
+ amount: number;
1221
+ orderId: string | null;
1222
+ createdAt: string;
1223
+ }
1224
+ interface AdminGiftCard {
1225
+ id: string;
1226
+ code: string;
1227
+ denomination: number;
1228
+ balance: number;
1229
+ purchaserName: string | null;
1230
+ purchaserEmail: string | null;
1231
+ recipientName: string | null;
1232
+ recipientEmail: string | null;
1233
+ recipientPhone: string | null;
1234
+ personalMessage: string | null;
1235
+ status: string;
1236
+ expiresAt: string | null;
1237
+ createdAt: string;
1238
+ transactions?: AdminGiftCardTransaction[];
1239
+ }
1240
+ interface AdminReservation {
1241
+ id: string;
1242
+ guestName: string;
1243
+ guestPhone: string | null;
1244
+ guestEmail: string | null;
1245
+ partySize: number;
1246
+ date: string;
1247
+ timeSlot: string;
1248
+ status: string;
1249
+ table: string | null;
1250
+ notes: string | null;
1251
+ createdAt: string;
1252
+ }
1253
+ interface AdminReservationTable {
1254
+ id: string;
1255
+ tableNumber: string;
1256
+ capacity: number;
1257
+ locationId: string;
1258
+ locationName?: string;
1259
+ isActive: boolean;
1260
+ }
1261
+ interface AdminTicket {
1262
+ id: string;
1263
+ ticketNumber: string;
1264
+ customerName: string;
1265
+ customerEmail: string | null;
1266
+ subject: string;
1267
+ category: string;
1268
+ status: string;
1269
+ priority: string;
1270
+ assignedTo: string | null;
1271
+ createdAt: string;
1272
+ }
1273
+ interface AdminTicketMessage {
1274
+ id: string;
1275
+ body: string;
1276
+ sender: string;
1277
+ senderType: string;
1278
+ senderName: string;
1279
+ createdAt: string;
1280
+ }
1281
+ interface AdminTicketDetail {
1282
+ id: string;
1283
+ ticketNumber: string;
1284
+ customerName: string;
1285
+ customerEmail: string | null;
1286
+ customerPhone: string | null;
1287
+ subject: string;
1288
+ category: string;
1289
+ status: string;
1290
+ priority: string;
1291
+ assignedTo: string | null;
1292
+ orderId: string | null;
1293
+ messages: AdminTicketMessage[];
1294
+ createdAt: string;
1295
+ updatedAt: string;
1296
+ }
1297
+ interface AdminLocation {
1298
+ id: string;
1299
+ name: string;
1300
+ slug: string;
1301
+ address: string;
1302
+ city: string;
1303
+ state: string;
1304
+ pincode: string;
1305
+ lat: number | null;
1306
+ lng: number | null;
1307
+ phone: string | null;
1308
+ email: string | null;
1309
+ isActive: boolean;
1310
+ isPrimary: boolean;
1311
+ createdAt: string;
1312
+ }
1313
+ interface AdminLocationDetail extends AdminLocation {
1314
+ hours: {
1315
+ day: number;
1316
+ open: string;
1317
+ close: string;
1318
+ isClosed: boolean;
1319
+ }[];
1320
+ zones: AdminDeliveryZone[];
1321
+ menuItemIds: string[];
1322
+ }
1323
+ interface AdminSetting {
1324
+ key: string;
1325
+ value: unknown;
1326
+ type: string;
1327
+ label: string;
1328
+ description: string | null;
1329
+ group: string;
1330
+ }
1331
+ interface AdminStudentPass {
1332
+ id: string;
1333
+ status: string;
1334
+ studentIdNumber: string;
1335
+ idImageUrl: string | null;
1336
+ institutionId: string | null;
1337
+ institutionName: string | null;
1338
+ userName: string | null;
1339
+ userPhone: string | null;
1340
+ userEmail: string | null;
1341
+ flagged: boolean;
1342
+ expiresAt: string | null;
1343
+ createdAt: string;
1344
+ reviewedAt: string | null;
1345
+ user: {
1346
+ id: string;
1347
+ name: string | null;
1348
+ email: string | null;
1349
+ phone: string | null;
1350
+ };
1351
+ institution: {
1352
+ id: string;
1353
+ name: string;
1354
+ } | null;
1355
+ }
1356
+ interface AdminStudentPassDetail extends AdminStudentPass {
1357
+ rejectionReason: string | null;
1358
+ autoVerified: boolean;
1359
+ year: string | null;
1360
+ aadhaarLast4: string | null;
1361
+ internalNote: string | null;
1362
+ user: {
1363
+ id: string;
1364
+ name: string | null;
1365
+ email: string | null;
1366
+ phone: string | null;
1367
+ };
1368
+ institution: {
1369
+ id: string;
1370
+ name: string;
1371
+ shortCode: string;
1372
+ emailDomain: string | null;
1373
+ requiresManualReview: boolean;
1374
+ customValidityDays: number | null;
1375
+ } | null;
1376
+ fraudSignals: {
1377
+ dailyUsageCount: number;
1378
+ };
1379
+ usageHistory: {
1380
+ id: string;
1381
+ date: string;
1382
+ orderId: string;
1383
+ discountAmount: number;
1384
+ }[];
1385
+ }
1386
+ interface AdminStudentPassStats {
1387
+ totalByStatus: {
1388
+ status: string;
1389
+ count: number;
1390
+ }[];
1391
+ autoVerifiedPct: number;
1392
+ pendingCount: number;
1393
+ avgReviewTimeMs: number;
1394
+ topInstitutions: {
1395
+ id: string;
1396
+ name: string;
1397
+ activePassCount: number;
1398
+ }[];
1399
+ topDiscountRules: {
1400
+ id: string;
1401
+ name: string;
1402
+ totalDiscountGiven: number;
1403
+ }[];
1404
+ }
1405
+ interface AdminStudentDiscount {
1406
+ id: string;
1407
+ name: string;
1408
+ description: string | null;
1409
+ institutionId: string | null;
1410
+ institution: {
1411
+ id: string;
1412
+ name: string;
1413
+ } | null;
1414
+ priority: number;
1415
+ isActive: boolean;
1416
+ discountType: string;
1417
+ discountValue: number | null;
1418
+ maxDiscountCap: number | null;
1419
+ minDiscountFloor: number | null;
1420
+ maxDiscountPctOfOrder: number | null;
1421
+ minOrderAmount: number | null;
1422
+ maxOrderAmount: number | null;
1423
+ minItemCount: number | null;
1424
+ maxItemCount: number | null;
1425
+ orderTypes: string | null;
1426
+ cartModes: string | null;
1427
+ scope: string | null;
1428
+ categoryIds: string | null;
1429
+ itemIds: string | null;
1430
+ exclusionCategoryIds: string | null;
1431
+ exclusionItemIds: string | null;
1432
+ applicableModes: string | null;
1433
+ applicableCategories: string[] | null;
1434
+ validFrom: string | null;
1435
+ validTo: string | null;
1436
+ daysOfWeek: string | null;
1437
+ timeFrom: string | null;
1438
+ timeTo: string | null;
1439
+ blackoutDates: string | null;
1440
+ maxUsageTotal: number | null;
1441
+ maxUsagePerUser: number | null;
1442
+ maxUsagePerDay: number | null;
1443
+ maxUsagePerUserPerDay: number | null;
1444
+ maxUsagePerUserPerWeek: number | null;
1445
+ maxUsagePerUserPerMonth: number | null;
1446
+ stackWithCoupons: boolean;
1447
+ stackWithPromotions: boolean;
1448
+ stackWithLoyalty: boolean;
1449
+ stackWithOtherStudentDiscounts: boolean;
1450
+ earnLoyaltyCoins: boolean;
1451
+ loyaltyMultiplier: number | null;
1452
+ totalUses: number;
1453
+ totalDiscountGiven: number;
1454
+ createdAt: string;
1455
+ [key: string]: unknown;
1456
+ }
1457
+ interface AdminInstitution {
1458
+ id: string;
1459
+ name: string;
1460
+ shortCode: string;
1461
+ emailDomain: string | null;
1462
+ logoUrl: string | null;
1463
+ customValidityDays: number | null;
1464
+ requiresManualReview: boolean;
1465
+ isActive: boolean;
1466
+ passCount: number;
1467
+ _count?: {
1468
+ studentPasses: number;
1469
+ };
1470
+ createdAt: string;
1471
+ }
1472
+ interface AdminItemRating {
1473
+ itemName: string;
1474
+ rating: number;
1475
+ comment: string | null;
1476
+ }
1477
+ interface AdminReview {
1478
+ id: string;
1479
+ rating: number;
1480
+ comment: string | null;
1481
+ status: string;
1482
+ customerName: string | null;
1483
+ customerEmail: string | null;
1484
+ orderNumber: string | null;
1485
+ orderId: string | null;
1486
+ photos: string[] | null;
1487
+ itemRatings: AdminItemRating[] | null;
1488
+ item: {
1489
+ id: string;
1490
+ name: string;
1491
+ image: string | null;
1492
+ } | null;
1493
+ createdAt: string;
1494
+ }
1495
+ interface AdminHelpArticle {
1496
+ id: string;
1497
+ slug: string;
1498
+ title: string;
1499
+ body: string;
1500
+ category: string;
1501
+ sortOrder: number;
1502
+ isPublished: boolean;
1503
+ createdAt: string;
1504
+ }
1505
+ interface AdminMenuItem {
1506
+ id: string;
1507
+ posItemId: string;
1508
+ categoryId: string;
1509
+ category: {
1510
+ id: string;
1511
+ name: string;
1512
+ };
1513
+ diet: string;
1514
+ inStock: boolean;
1515
+ sortOrder: number;
1516
+ classicName: string;
1517
+ classicDescription: string;
1518
+ classicPrice: number;
1519
+ classicCalories: number;
1520
+ healthyName: string;
1521
+ healthyDescription: string;
1522
+ healthyPrice: number;
1523
+ healthyCalories: number;
1524
+ isBestseller: boolean;
1525
+ isNew: boolean;
1526
+ variations: {
1527
+ id: string;
1528
+ name: string;
1529
+ groupName: string;
1530
+ price: number;
1531
+ inStock: boolean;
1532
+ }[];
1533
+ addonGroups: {
1534
+ id: string;
1535
+ name: string;
1536
+ minSelection: number;
1537
+ maxSelection: number;
1538
+ addons: {
1539
+ id: string;
1540
+ name: string;
1541
+ price: number;
1542
+ inStock: boolean;
1543
+ }[];
1544
+ }[];
1545
+ }
1546
+ interface AdminSyncLog {
1547
+ id: string;
1548
+ source: string;
1549
+ success: boolean;
1550
+ itemCount: number;
1551
+ errorMsg: string | null;
1552
+ duration: number | null;
1553
+ createdAt: string;
1554
+ }
844
1555
 
845
1556
  interface RawResponse<T> {
846
1557
  data: T;
@@ -1562,6 +2273,85 @@ interface UpdateHelpArticleDto {
1562
2273
  sortOrder?: number;
1563
2274
  isPublished?: boolean;
1564
2275
  }
2276
+ interface AdminDashboardQuery {
2277
+ startDate?: string;
2278
+ endDate?: string;
2279
+ }
2280
+ interface CreateDeliveryAgentDto {
2281
+ name: string;
2282
+ phone: string;
2283
+ [key: string]: unknown;
2284
+ }
2285
+ interface UpdateDeliveryAgentDto {
2286
+ name?: string;
2287
+ phone?: string;
2288
+ isActive?: boolean;
2289
+ [key: string]: unknown;
2290
+ }
2291
+ interface CreateDeliveryZoneDto {
2292
+ name: string;
2293
+ pincodes: string[];
2294
+ deliveryFee: number;
2295
+ isActive?: boolean;
2296
+ }
2297
+ interface UpdateDeliveryZoneDto {
2298
+ name?: string;
2299
+ pincodes?: string[];
2300
+ deliveryFee?: number;
2301
+ isActive?: boolean;
2302
+ }
2303
+ interface UpdatePopupSettingsDto {
2304
+ content?: string;
2305
+ trigger?: string;
2306
+ isActive?: boolean;
2307
+ }
2308
+ interface AdminFinanceQuery extends PaginatedQuery {
2309
+ startDate?: string;
2310
+ endDate?: string;
2311
+ status?: string;
2312
+ }
2313
+ interface CreateBroadcastDto {
2314
+ title: string;
2315
+ body: string;
2316
+ channel: string;
2317
+ segment?: string;
2318
+ scheduledAt?: string;
2319
+ }
2320
+ interface CreateReservationSlotDto {
2321
+ dayOfWeek: number;
2322
+ startTime: string;
2323
+ endTime: string;
2324
+ maxCovers: number;
2325
+ isActive?: boolean;
2326
+ }
2327
+ interface UpdateReservationSlotDto {
2328
+ dayOfWeek?: number;
2329
+ startTime?: string;
2330
+ endTime?: string;
2331
+ maxCovers?: number;
2332
+ isActive?: boolean;
2333
+ }
2334
+ interface CreateReservationTableDto {
2335
+ tableNumber: string;
2336
+ capacity: number;
2337
+ locationId: string;
2338
+ isActive?: boolean;
2339
+ }
2340
+ interface UpdateReservationTableDto {
2341
+ tableNumber?: string;
2342
+ capacity?: number;
2343
+ locationId?: string;
2344
+ isActive?: boolean;
2345
+ }
2346
+ interface AdminAbandonedCartsQuery extends PaginatedQuery {
2347
+ filter?: string;
2348
+ }
2349
+ interface AdminScheduledOrdersQuery extends PaginatedQuery {
2350
+ date?: string;
2351
+ }
2352
+ interface FulfillRewardDto {
2353
+ code: string;
2354
+ }
1565
2355
 
1566
2356
  interface SuperAdminLoginDto {
1567
2357
  email: string;
@@ -2356,6 +3146,84 @@ declare const TZ: {
2356
3146
  update(id: string, data: UpdateHelpArticleDto): TZQuery<HelpArticle>;
2357
3147
  remove(id: string): TZQuery<void>;
2358
3148
  };
3149
+ dashboard: {
3150
+ get(params?: AdminDashboardQuery): TZQuery<AdminDashboardData>;
3151
+ };
3152
+ loyaltyAdmin: {
3153
+ get(params?: {
3154
+ search?: string;
3155
+ }): TZQuery<AdminLoyaltyData>;
3156
+ };
3157
+ redemptions: {
3158
+ list(params?: {
3159
+ status?: string;
3160
+ }): TZQuery<AdminRedemption[]>;
3161
+ fulfill(data: FulfillRewardDto): TZQuery<AdminFulfillResult>;
3162
+ };
3163
+ deliveryAgents: {
3164
+ list(): TZQuery<AdminDeliveryAgent[]>;
3165
+ create(data: CreateDeliveryAgentDto): TZQuery<AdminDeliveryAgent>;
3166
+ update(id: string, data: UpdateDeliveryAgentDto): TZQuery<AdminDeliveryAgent>;
3167
+ remove(id: string): TZQuery<void>;
3168
+ };
3169
+ deliveryZones: {
3170
+ list(): TZQuery<AdminDeliveryZone[]>;
3171
+ create(data: CreateDeliveryZoneDto): TZQuery<AdminDeliveryZone>;
3172
+ update(id: string, data: UpdateDeliveryZoneDto): TZQuery<AdminDeliveryZone>;
3173
+ remove(id: string): TZQuery<void>;
3174
+ };
3175
+ affiliates: {
3176
+ list(): TZQuery<AdminAffiliate[]>;
3177
+ update(id: string, data: Record<string, unknown>): TZQuery<AdminAffiliate>;
3178
+ };
3179
+ popups: {
3180
+ get(): TZQuery<AdminPopupSettings>;
3181
+ update(data: UpdatePopupSettingsDto): TZQuery<AdminPopupSettings>;
3182
+ };
3183
+ finance: {
3184
+ invoices(params?: AdminFinanceQuery): TZPaginatedQuery<AdminInvoice>;
3185
+ tax(params?: {
3186
+ startDate?: string;
3187
+ endDate?: string;
3188
+ }): TZQuery<AdminTaxSummary>;
3189
+ settlements(params?: AdminFinanceQuery): TZPaginatedQuery<AdminSettlement>;
3190
+ payouts(params?: AdminFinanceQuery): TZPaginatedQuery<AdminPayout>;
3191
+ markPaid(id: string): TZQuery<void>;
3192
+ exportReport(params?: Record<string, unknown>): TZQuery<{
3193
+ url: string;
3194
+ }>;
3195
+ };
3196
+ reports: {
3197
+ get(type: string, params?: Record<string, unknown>): TZQuery<Record<string, unknown>>;
3198
+ };
3199
+ broadcast: {
3200
+ list(): TZQuery<AdminBroadcast[]>;
3201
+ send(data: CreateBroadcastDto): TZQuery<AdminBroadcast>;
3202
+ };
3203
+ scheduledOrders: {
3204
+ list(params?: AdminScheduledOrdersQuery): TZQuery<AdminScheduledOrder[]>;
3205
+ catering(): TZQuery<AdminScheduledOrder[]>;
3206
+ };
3207
+ abandonedCarts: {
3208
+ list(params?: AdminAbandonedCartsQuery): TZPaginatedQuery<AdminAbandonedCart>;
3209
+ recover(id: string): TZQuery<void>;
3210
+ };
3211
+ waitlists: {
3212
+ list(): TZQuery<AdminWaitlistGroup[]>;
3213
+ notify(menuItemId: string): TZQuery<void>;
3214
+ };
3215
+ reservationSlots: {
3216
+ list(): TZQuery<AdminReservationSlot[]>;
3217
+ create(data: CreateReservationSlotDto): TZQuery<AdminReservationSlot>;
3218
+ update(id: string, data: UpdateReservationSlotDto): TZQuery<AdminReservationSlot>;
3219
+ remove(id: string): TZQuery<void>;
3220
+ };
3221
+ reservationTables: {
3222
+ list(): TZQuery<AdminReservationTable[]>;
3223
+ create(data: CreateReservationTableDto): TZQuery<AdminReservationTable>;
3224
+ update(id: string, data: UpdateReservationTableDto): TZQuery<AdminReservationTable>;
3225
+ remove(id: string): TZQuery<void>;
3226
+ };
2359
3227
  };
2360
3228
  /** Super Admin namespace — platform-wide management APIs */
2361
3229
  readonly superAdmin: {
@@ -3100,6 +3968,84 @@ declare function createTZ(options?: TZInitOptions): {
3100
3968
  update(id: string, data: UpdateHelpArticleDto): TZQuery<HelpArticle>;
3101
3969
  remove(id: string): TZQuery<void>;
3102
3970
  };
3971
+ dashboard: {
3972
+ get(params?: AdminDashboardQuery): TZQuery<AdminDashboardData>;
3973
+ };
3974
+ loyaltyAdmin: {
3975
+ get(params?: {
3976
+ search?: string;
3977
+ }): TZQuery<AdminLoyaltyData>;
3978
+ };
3979
+ redemptions: {
3980
+ list(params?: {
3981
+ status?: string;
3982
+ }): TZQuery<AdminRedemption[]>;
3983
+ fulfill(data: FulfillRewardDto): TZQuery<AdminFulfillResult>;
3984
+ };
3985
+ deliveryAgents: {
3986
+ list(): TZQuery<AdminDeliveryAgent[]>;
3987
+ create(data: CreateDeliveryAgentDto): TZQuery<AdminDeliveryAgent>;
3988
+ update(id: string, data: UpdateDeliveryAgentDto): TZQuery<AdminDeliveryAgent>;
3989
+ remove(id: string): TZQuery<void>;
3990
+ };
3991
+ deliveryZones: {
3992
+ list(): TZQuery<AdminDeliveryZone[]>;
3993
+ create(data: CreateDeliveryZoneDto): TZQuery<AdminDeliveryZone>;
3994
+ update(id: string, data: UpdateDeliveryZoneDto): TZQuery<AdminDeliveryZone>;
3995
+ remove(id: string): TZQuery<void>;
3996
+ };
3997
+ affiliates: {
3998
+ list(): TZQuery<AdminAffiliate[]>;
3999
+ update(id: string, data: Record<string, unknown>): TZQuery<AdminAffiliate>;
4000
+ };
4001
+ popups: {
4002
+ get(): TZQuery<AdminPopupSettings>;
4003
+ update(data: UpdatePopupSettingsDto): TZQuery<AdminPopupSettings>;
4004
+ };
4005
+ finance: {
4006
+ invoices(params?: AdminFinanceQuery): TZPaginatedQuery<AdminInvoice>;
4007
+ tax(params?: {
4008
+ startDate?: string;
4009
+ endDate?: string;
4010
+ }): TZQuery<AdminTaxSummary>;
4011
+ settlements(params?: AdminFinanceQuery): TZPaginatedQuery<AdminSettlement>;
4012
+ payouts(params?: AdminFinanceQuery): TZPaginatedQuery<AdminPayout>;
4013
+ markPaid(id: string): TZQuery<void>;
4014
+ exportReport(params?: Record<string, unknown>): TZQuery<{
4015
+ url: string;
4016
+ }>;
4017
+ };
4018
+ reports: {
4019
+ get(type: string, params?: Record<string, unknown>): TZQuery<Record<string, unknown>>;
4020
+ };
4021
+ broadcast: {
4022
+ list(): TZQuery<AdminBroadcast[]>;
4023
+ send(data: CreateBroadcastDto): TZQuery<AdminBroadcast>;
4024
+ };
4025
+ scheduledOrders: {
4026
+ list(params?: AdminScheduledOrdersQuery): TZQuery<AdminScheduledOrder[]>;
4027
+ catering(): TZQuery<AdminScheduledOrder[]>;
4028
+ };
4029
+ abandonedCarts: {
4030
+ list(params?: AdminAbandonedCartsQuery): TZPaginatedQuery<AdminAbandonedCart>;
4031
+ recover(id: string): TZQuery<void>;
4032
+ };
4033
+ waitlists: {
4034
+ list(): TZQuery<AdminWaitlistGroup[]>;
4035
+ notify(menuItemId: string): TZQuery<void>;
4036
+ };
4037
+ reservationSlots: {
4038
+ list(): TZQuery<AdminReservationSlot[]>;
4039
+ create(data: CreateReservationSlotDto): TZQuery<AdminReservationSlot>;
4040
+ update(id: string, data: UpdateReservationSlotDto): TZQuery<AdminReservationSlot>;
4041
+ remove(id: string): TZQuery<void>;
4042
+ };
4043
+ reservationTables: {
4044
+ list(): TZQuery<AdminReservationTable[]>;
4045
+ create(data: CreateReservationTableDto): TZQuery<AdminReservationTable>;
4046
+ update(id: string, data: UpdateReservationTableDto): TZQuery<AdminReservationTable>;
4047
+ remove(id: string): TZQuery<void>;
4048
+ };
3103
4049
  };
3104
4050
  superAdmin: {
3105
4051
  auth: {
@@ -3169,4 +4115,4 @@ declare function createTZ(options?: TZInitOptions): {
3169
4115
  }>;
3170
4116
  };
3171
4117
 
3172
- export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminCancelBookingDto, type AdminListOrdersQuery, type AdminMealSubscription, type AdminOrganization, type ApiError, type ApiKey, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type GetCatalogItemsQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type Institution, type InviteStaffUserDto, type JoinWatchRoomDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealSubscription, type Movie, type MovieDetail, type Notification, type Order, type OrderItem, type OrderStatus, type OrderType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PaymentMethod, type PaymentOrder, type PaymentVerification, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type TopUpWalletDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePurchaseOrderDto, type UpdateReservationStatusDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
4118
+ export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminAbandonedCart, type AdminAbandonedCartsQuery, type AdminAffiliate, type AdminBlogPost, type AdminBroadcast, type AdminCancelBookingDto, type AdminCoupon, type AdminCustomer, type AdminCustomerDetail, type AdminDashboardData, type AdminDashboardQuery, type AdminDashboardStats, type AdminDeliveryAgent, type AdminDeliveryZone, type AdminFinanceQuery, type AdminFulfillResult, type AdminGiftCard, type AdminGiftCardTransaction, type AdminHelpArticle, type AdminInstitution, type AdminInvoice, type AdminListOrdersQuery, type AdminLocation, type AdminLocationDetail, type AdminLoyaltyAccount, type AdminLoyaltyData, type AdminMealSubscription, type AdminMenuItem, type AdminOrder, type AdminOrderDetail, type AdminOrganization, type AdminPayout, type AdminPopupSettings, type AdminPromotion, type AdminRedemption, type AdminReservation, type AdminReservationSlot, type AdminReservationTable, type AdminReview, type AdminScheduledOrder, type AdminScheduledOrdersQuery, type AdminSetting, type AdminSettlement, type AdminStudentDiscount, type AdminStudentPass, type AdminStudentPassDetail, type AdminStudentPassStats, type AdminSyncLog, type AdminTaxSummary, type AdminTicket, type AdminTicketDetail, type AdminTicketMessage, type AdminWaitlistEntry, type AdminWaitlistGroup, type ApiError, type ApiKey, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateBroadcastDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateDeliveryAgentDto, type CreateDeliveryZoneDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReservationSlotDto, type CreateReservationTableDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type FulfillRewardDto, type GetCatalogItemsQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type Institution, type InviteStaffUserDto, type JoinWatchRoomDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealSubscription, type Movie, type MovieDetail, type Notification, type Order, type OrderItem, type OrderStatus, type OrderType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PaymentMethod, type PaymentOrder, type PaymentVerification, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type TopUpWalletDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateDeliveryAgentDto, type UpdateDeliveryZoneDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePopupSettingsDto, type UpdatePurchaseOrderDto, type UpdateReservationSlotDto, type UpdateReservationStatusDto, type UpdateReservationTableDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };