@techzunction/sdk 0.6.4 → 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
@@ -1275,6 +1275,7 @@ interface AdminTicketMessage {
1275
1275
  body: string;
1276
1276
  sender: string;
1277
1277
  senderType: string;
1278
+ senderName: string;
1278
1279
  createdAt: string;
1279
1280
  }
1280
1281
  interface AdminTicketDetail {
@@ -1291,10 +1292,12 @@ interface AdminTicketDetail {
1291
1292
  orderId: string | null;
1292
1293
  messages: AdminTicketMessage[];
1293
1294
  createdAt: string;
1295
+ updatedAt: string;
1294
1296
  }
1295
1297
  interface AdminLocation {
1296
1298
  id: string;
1297
1299
  name: string;
1300
+ slug: string;
1298
1301
  address: string;
1299
1302
  city: string;
1300
1303
  state: string;
@@ -1339,10 +1342,23 @@ interface AdminStudentPass {
1339
1342
  expiresAt: string | null;
1340
1343
  createdAt: string;
1341
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;
1342
1355
  }
1343
1356
  interface AdminStudentPassDetail extends AdminStudentPass {
1344
1357
  rejectionReason: string | null;
1345
1358
  autoVerified: boolean;
1359
+ year: string | null;
1360
+ aadhaarLast4: string | null;
1361
+ internalNote: string | null;
1346
1362
  user: {
1347
1363
  id: string;
1348
1364
  name: string | null;
@@ -1352,20 +1368,38 @@ interface AdminStudentPassDetail extends AdminStudentPass {
1352
1368
  institution: {
1353
1369
  id: string;
1354
1370
  name: string;
1371
+ shortCode: string;
1372
+ emailDomain: string | null;
1373
+ requiresManualReview: boolean;
1374
+ customValidityDays: number | null;
1355
1375
  } | null;
1376
+ fraudSignals: {
1377
+ dailyUsageCount: number;
1378
+ };
1379
+ usageHistory: {
1380
+ id: string;
1381
+ date: string;
1382
+ orderId: string;
1383
+ discountAmount: number;
1384
+ }[];
1356
1385
  }
1357
1386
  interface AdminStudentPassStats {
1358
- totalByStatus: Record<string, number>;
1387
+ totalByStatus: {
1388
+ status: string;
1389
+ count: number;
1390
+ }[];
1359
1391
  autoVerifiedPct: number;
1360
1392
  pendingCount: number;
1361
1393
  avgReviewTimeMs: number;
1362
1394
  topInstitutions: {
1395
+ id: string;
1363
1396
  name: string;
1364
- count: number;
1397
+ activePassCount: number;
1365
1398
  }[];
1366
1399
  topDiscountRules: {
1400
+ id: string;
1367
1401
  name: string;
1368
- count: number;
1402
+ totalDiscountGiven: number;
1369
1403
  }[];
1370
1404
  }
1371
1405
  interface AdminStudentDiscount {
@@ -1382,31 +1416,75 @@ interface AdminStudentDiscount {
1382
1416
  discountType: string;
1383
1417
  discountValue: number | null;
1384
1418
  maxDiscountCap: number | null;
1419
+ minDiscountFloor: number | null;
1420
+ maxDiscountPctOfOrder: number | null;
1385
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;
1386
1432
  applicableModes: string | null;
1387
1433
  applicableCategories: string[] | null;
1388
1434
  validFrom: string | null;
1389
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;
1390
1454
  createdAt: string;
1391
1455
  [key: string]: unknown;
1392
1456
  }
1393
1457
  interface AdminInstitution {
1394
1458
  id: string;
1395
1459
  name: string;
1396
- shortCode: string | null;
1460
+ shortCode: string;
1397
1461
  emailDomain: string | null;
1398
1462
  logoUrl: string | null;
1399
1463
  customValidityDays: number | null;
1464
+ requiresManualReview: boolean;
1400
1465
  isActive: boolean;
1401
1466
  passCount: number;
1467
+ _count?: {
1468
+ studentPasses: number;
1469
+ };
1402
1470
  createdAt: string;
1403
1471
  }
1472
+ interface AdminItemRating {
1473
+ itemName: string;
1474
+ rating: number;
1475
+ comment: string | null;
1476
+ }
1404
1477
  interface AdminReview {
1405
1478
  id: string;
1406
1479
  rating: number;
1407
1480
  comment: string | null;
1408
1481
  status: string;
1409
1482
  customerName: string | null;
1483
+ customerEmail: string | null;
1484
+ orderNumber: string | null;
1485
+ orderId: string | null;
1486
+ photos: string[] | null;
1487
+ itemRatings: AdminItemRating[] | null;
1410
1488
  item: {
1411
1489
  id: string;
1412
1490
  name: string;
package/dist/index.d.ts CHANGED
@@ -1275,6 +1275,7 @@ interface AdminTicketMessage {
1275
1275
  body: string;
1276
1276
  sender: string;
1277
1277
  senderType: string;
1278
+ senderName: string;
1278
1279
  createdAt: string;
1279
1280
  }
1280
1281
  interface AdminTicketDetail {
@@ -1291,10 +1292,12 @@ interface AdminTicketDetail {
1291
1292
  orderId: string | null;
1292
1293
  messages: AdminTicketMessage[];
1293
1294
  createdAt: string;
1295
+ updatedAt: string;
1294
1296
  }
1295
1297
  interface AdminLocation {
1296
1298
  id: string;
1297
1299
  name: string;
1300
+ slug: string;
1298
1301
  address: string;
1299
1302
  city: string;
1300
1303
  state: string;
@@ -1339,10 +1342,23 @@ interface AdminStudentPass {
1339
1342
  expiresAt: string | null;
1340
1343
  createdAt: string;
1341
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;
1342
1355
  }
1343
1356
  interface AdminStudentPassDetail extends AdminStudentPass {
1344
1357
  rejectionReason: string | null;
1345
1358
  autoVerified: boolean;
1359
+ year: string | null;
1360
+ aadhaarLast4: string | null;
1361
+ internalNote: string | null;
1346
1362
  user: {
1347
1363
  id: string;
1348
1364
  name: string | null;
@@ -1352,20 +1368,38 @@ interface AdminStudentPassDetail extends AdminStudentPass {
1352
1368
  institution: {
1353
1369
  id: string;
1354
1370
  name: string;
1371
+ shortCode: string;
1372
+ emailDomain: string | null;
1373
+ requiresManualReview: boolean;
1374
+ customValidityDays: number | null;
1355
1375
  } | null;
1376
+ fraudSignals: {
1377
+ dailyUsageCount: number;
1378
+ };
1379
+ usageHistory: {
1380
+ id: string;
1381
+ date: string;
1382
+ orderId: string;
1383
+ discountAmount: number;
1384
+ }[];
1356
1385
  }
1357
1386
  interface AdminStudentPassStats {
1358
- totalByStatus: Record<string, number>;
1387
+ totalByStatus: {
1388
+ status: string;
1389
+ count: number;
1390
+ }[];
1359
1391
  autoVerifiedPct: number;
1360
1392
  pendingCount: number;
1361
1393
  avgReviewTimeMs: number;
1362
1394
  topInstitutions: {
1395
+ id: string;
1363
1396
  name: string;
1364
- count: number;
1397
+ activePassCount: number;
1365
1398
  }[];
1366
1399
  topDiscountRules: {
1400
+ id: string;
1367
1401
  name: string;
1368
- count: number;
1402
+ totalDiscountGiven: number;
1369
1403
  }[];
1370
1404
  }
1371
1405
  interface AdminStudentDiscount {
@@ -1382,31 +1416,75 @@ interface AdminStudentDiscount {
1382
1416
  discountType: string;
1383
1417
  discountValue: number | null;
1384
1418
  maxDiscountCap: number | null;
1419
+ minDiscountFloor: number | null;
1420
+ maxDiscountPctOfOrder: number | null;
1385
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;
1386
1432
  applicableModes: string | null;
1387
1433
  applicableCategories: string[] | null;
1388
1434
  validFrom: string | null;
1389
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;
1390
1454
  createdAt: string;
1391
1455
  [key: string]: unknown;
1392
1456
  }
1393
1457
  interface AdminInstitution {
1394
1458
  id: string;
1395
1459
  name: string;
1396
- shortCode: string | null;
1460
+ shortCode: string;
1397
1461
  emailDomain: string | null;
1398
1462
  logoUrl: string | null;
1399
1463
  customValidityDays: number | null;
1464
+ requiresManualReview: boolean;
1400
1465
  isActive: boolean;
1401
1466
  passCount: number;
1467
+ _count?: {
1468
+ studentPasses: number;
1469
+ };
1402
1470
  createdAt: string;
1403
1471
  }
1472
+ interface AdminItemRating {
1473
+ itemName: string;
1474
+ rating: number;
1475
+ comment: string | null;
1476
+ }
1404
1477
  interface AdminReview {
1405
1478
  id: string;
1406
1479
  rating: number;
1407
1480
  comment: string | null;
1408
1481
  status: string;
1409
1482
  customerName: string | null;
1483
+ customerEmail: string | null;
1484
+ orderNumber: string | null;
1485
+ orderId: string | null;
1486
+ photos: string[] | null;
1487
+ itemRatings: AdminItemRating[] | null;
1410
1488
  item: {
1411
1489
  id: string;
1412
1490
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techzunction/sdk",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "TechZunction Platform SDK — centralized API client for all frontend projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",