@mohasinac/appkit 2.7.10 → 2.7.12

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.
Files changed (148) hide show
  1. package/dist/_internal/server/jobs/core/assignSpinPrize.js +8 -7
  2. package/dist/_internal/server/jobs/core/bundleStockSync.js +11 -6
  3. package/dist/_internal/server/jobs/core/countersReconcile.js +3 -2
  4. package/dist/_internal/server/jobs/core/onProductStockChange.js +12 -7
  5. package/dist/_internal/server/jobs/core/onProductWrite.js +3 -2
  6. package/dist/_internal/server/jobs/core/prizeRevealClose.js +7 -5
  7. package/dist/_internal/server/jobs/core/prizeRevealExpiry.js +11 -6
  8. package/dist/_internal/server/jobs/core/prizeRevealOpen.js +13 -7
  9. package/dist/_internal/server/jobs/core/prizeRevealReminder.js +9 -4
  10. package/dist/_internal/server/jobs/core/triggerEventRaffle.js +3 -2
  11. package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
  12. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +32 -32
  13. package/dist/_internal/shared/features/events/schema.d.ts +4 -4
  14. package/dist/_internal/shared/features/products/schema.d.ts +20 -20
  15. package/dist/_internal/shared/features/promotions/schema.d.ts +2 -2
  16. package/dist/_internal/shared/features/reviews/schema.d.ts +1 -1
  17. package/dist/configs/next.js +17 -1
  18. package/dist/constants/field-names.d.ts +813 -0
  19. package/dist/constants/field-names.js +918 -0
  20. package/dist/constants/sort.d.ts +7 -0
  21. package/dist/constants/sort.js +5 -0
  22. package/dist/constants/table-keys.d.ts +48 -0
  23. package/dist/constants/table-keys.js +46 -0
  24. package/dist/features/account/components/AddressesIndexListing.js +9 -6
  25. package/dist/features/admin/components/AdminAllEventEntriesView.js +4 -1
  26. package/dist/features/admin/components/AdminBidsView.js +4 -1
  27. package/dist/features/admin/components/AdminBlogView.js +9 -2
  28. package/dist/features/admin/components/AdminBrandsView.js +9 -2
  29. package/dist/features/admin/components/AdminCarouselView.js +4 -1
  30. package/dist/features/admin/components/AdminCartsView.js +4 -1
  31. package/dist/features/admin/components/AdminCategoriesView.js +9 -2
  32. package/dist/features/admin/components/AdminContactView.js +4 -1
  33. package/dist/features/admin/components/AdminCouponsView.js +4 -1
  34. package/dist/features/admin/components/AdminFaqsView.js +5 -1
  35. package/dist/features/admin/components/AdminFeaturesView.js +5 -2
  36. package/dist/features/admin/components/AdminHistoryView.js +5 -1
  37. package/dist/features/admin/components/AdminNewsletterView.js +4 -1
  38. package/dist/features/admin/components/AdminNotificationsView.js +4 -1
  39. package/dist/features/admin/components/AdminOrdersView.js +14 -12
  40. package/dist/features/admin/components/AdminPayoutsView.js +4 -1
  41. package/dist/features/admin/components/AdminPrizeDrawsView.js +4 -1
  42. package/dist/features/admin/components/AdminProductsView.js +14 -3
  43. package/dist/features/admin/components/AdminReturnRequestsView.js +4 -1
  44. package/dist/features/admin/components/AdminReviewsView.js +4 -1
  45. package/dist/features/admin/components/AdminScammersView.js +4 -1
  46. package/dist/features/admin/components/AdminSessionsView.js +4 -1
  47. package/dist/features/admin/components/AdminStoreAddressesView.js +5 -1
  48. package/dist/features/admin/components/AdminStoresView.js +10 -3
  49. package/dist/features/admin/components/AdminSublistingCategoriesView.js +4 -1
  50. package/dist/features/admin/components/AdminSupportTicketsView.js +4 -1
  51. package/dist/features/admin/components/AdminTeamView.js +4 -1
  52. package/dist/features/admin/components/AdminUsersView.js +9 -12
  53. package/dist/features/admin/components/AdminViewCards.d.ts +12 -0
  54. package/dist/features/admin/components/AdminViewCards.js +53 -0
  55. package/dist/features/admin/components/AdminWishlistsView.js +4 -1
  56. package/dist/features/auctions/repository/bid.repository.js +1 -6
  57. package/dist/features/auctions/schemas/index.d.ts +4 -4
  58. package/dist/features/blog/actions/blog-actions.d.ts +16 -16
  59. package/dist/features/blog/components/BlogFilters.d.ts +28 -28
  60. package/dist/features/blog/components/BlogFilters.js +18 -15
  61. package/dist/features/blog/components/BlogIndexListing.js +24 -13
  62. package/dist/features/blog/schemas/index.d.ts +10 -10
  63. package/dist/features/categories/components/CategoriesIndexListing.js +30 -19
  64. package/dist/features/categories/schemas/index.d.ts +2 -2
  65. package/dist/features/events/components/AdminEventsView.js +5 -1
  66. package/dist/features/events/components/EventFilters.d.ts +24 -24
  67. package/dist/features/events/components/EventFilters.js +16 -13
  68. package/dist/features/events/components/EventStatusBadge.js +1 -0
  69. package/dist/features/events/components/EventsIndexListing.js +36 -24
  70. package/dist/features/events/components/EventsListPageView.js +13 -10
  71. package/dist/features/events/schemas/firestore.d.ts +1 -0
  72. package/dist/features/events/schemas/firestore.js +1 -0
  73. package/dist/features/events/schemas/index.d.ts +1 -1
  74. package/dist/features/events/types/index.d.ts +1 -1
  75. package/dist/features/faq/actions/faq-actions.d.ts +10 -10
  76. package/dist/features/faq/schemas/index.d.ts +4 -4
  77. package/dist/features/layout/TitleBarLayout.js +1 -1
  78. package/dist/features/orders/components/OrderFilters.d.ts +20 -20
  79. package/dist/features/orders/components/OrderFilters.js +33 -30
  80. package/dist/features/orders/repository/orders.repository.js +1 -15
  81. package/dist/features/orders/schemas/index.d.ts +2 -2
  82. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +44 -36
  83. package/dist/features/pre-orders/schemas/index.d.ts +3 -3
  84. package/dist/features/products/components/AuctionsIndexListing.js +63 -30
  85. package/dist/features/products/components/BidHistory.d.ts +0 -1
  86. package/dist/features/products/components/BidHistory.js +1 -1
  87. package/dist/features/products/components/PrizeDrawsIndexListing.js +44 -37
  88. package/dist/features/products/components/ProductDetailPageView.js +1 -1
  89. package/dist/features/products/components/ProductFilters.d.ts +20 -20
  90. package/dist/features/products/components/ProductFilters.js +62 -59
  91. package/dist/features/products/components/ProductsIndexListing.js +37 -29
  92. package/dist/features/products/components/ProductsIndexPageView.js +18 -10
  93. package/dist/features/products/hooks/useProducts.js +2 -0
  94. package/dist/features/products/repository/products.repository.js +2 -22
  95. package/dist/features/products/schemas/index.d.ts +28 -28
  96. package/dist/features/products/schemas/product-features.validators.d.ts +12 -12
  97. package/dist/features/products/types/index.d.ts +2 -0
  98. package/dist/features/promotions/components/CouponsIndexListing.js +21 -17
  99. package/dist/features/promotions/schemas/index.d.ts +4 -4
  100. package/dist/features/reviews/components/ReviewDetailShell.js +6 -5
  101. package/dist/features/reviews/components/ReviewFilters.d.ts +16 -16
  102. package/dist/features/reviews/components/ReviewFilters.js +10 -7
  103. package/dist/features/reviews/components/ReviewsIndexListing.js +25 -14
  104. package/dist/features/reviews/components/ReviewsList.d.ts +5 -2
  105. package/dist/features/reviews/components/ReviewsList.js +11 -5
  106. package/dist/features/reviews/schemas/firestore.d.ts +1 -0
  107. package/dist/features/reviews/schemas/index.d.ts +8 -8
  108. package/dist/features/reviews/types/index.d.ts +1 -0
  109. package/dist/features/search/schemas/index.d.ts +2 -2
  110. package/dist/features/seller/components/SellerAuctionsView.js +5 -1
  111. package/dist/features/seller/components/SellerBidsView.js +4 -1
  112. package/dist/features/seller/components/SellerCouponsView.js +4 -1
  113. package/dist/features/seller/components/SellerOffersView.js +5 -1
  114. package/dist/features/seller/components/SellerOrdersView.js +4 -1
  115. package/dist/features/seller/components/SellerPayoutsView.js +5 -1
  116. package/dist/features/seller/components/SellerPreOrdersView.js +4 -1
  117. package/dist/features/seller/components/SellerPrizeDrawsView.js +4 -1
  118. package/dist/features/seller/components/SellerProductsView.js +4 -1
  119. package/dist/features/seller/schemas/index.d.ts +10 -10
  120. package/dist/features/stores/api/route.js +10 -1
  121. package/dist/features/stores/components/StoreAuctionsListing.js +2 -1
  122. package/dist/features/stores/components/StorePreOrdersListing.js +2 -1
  123. package/dist/features/stores/components/StoreReviewsListing.js +1 -1
  124. package/dist/features/stores/components/StoresIndexListing.js +45 -27
  125. package/dist/features/stores/schemas/firestore.d.ts +1 -0
  126. package/dist/features/stores/schemas/index.d.ts +4 -4
  127. package/dist/index.d.ts +8 -1
  128. package/dist/index.js +12 -1
  129. package/dist/react/hooks/useUrlTable.js +2 -1
  130. package/dist/seed/bids-seed-data.js +45 -44
  131. package/dist/seed/categories-seed-data.js +41 -40
  132. package/dist/seed/coupons-seed-data.js +41 -40
  133. package/dist/seed/products-auctions-seed-data.js +54 -53
  134. package/dist/seed/products-preorders-seed-data.js +25 -24
  135. package/dist/seed/products-prize-draws-seed-data.js +24 -23
  136. package/dist/seed/products-standard-seed-data.js +294 -293
  137. package/dist/seed/reviews-seed-data.js +61 -60
  138. package/dist/seed/scammers-seed-data.js +3 -2
  139. package/dist/seed/stores-seed-data.js +9 -8
  140. package/dist/seed/support-tickets-seed-data.js +13 -12
  141. package/dist/seed/users-seed-data.js +28 -27
  142. package/dist/tailwind-utilities.css +1 -1
  143. package/dist/ui/components/ListingToolbar.d.ts +7 -4
  144. package/dist/ui/components/ListingToolbar.js +4 -3
  145. package/dist/ui/components/SiteLogo.js +1 -1
  146. package/dist/utils/sieve-builder.d.ts +41 -0
  147. package/dist/utils/sieve-builder.js +66 -0
  148. package/package.json +1 -1
@@ -4,6 +4,7 @@
4
4
  * partially-used, and exhausted (limit reached).
5
5
  * coupon- prefix, id === code-based slug.
6
6
  */
7
+ import { COUPON_FIELDS } from "../constants/field-names";
7
8
  const NOW = new Date();
8
9
  const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
9
10
  const daysAhead = (n) => new Date(NOW.getTime() + n * 86400000);
@@ -14,8 +15,8 @@ export const couponsSeedData = [
14
15
  code: "WELCOME10",
15
16
  name: "Welcome Discount — 10% Off Your First Order",
16
17
  description: "10% off your first order on LetItRip. Valid on all categories. Maximum discount ₹200. First-time buyers only.",
17
- type: "percentage",
18
- scope: "admin",
18
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
19
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
19
20
  discount: {
20
21
  value: 10,
21
22
  maxDiscount: 20000,
@@ -50,8 +51,8 @@ export const couponsSeedData = [
50
51
  code: "POKEMON25",
51
52
  name: "Pokémon Collector's Discount — ₹250 Off",
52
53
  description: "₹250 off on any Pokémon TCG category purchase. Minimum order ₹1,000. Valid on trading cards, sealed products, and vintage Pokémon. Can be combined with seller coupons.",
53
- type: "fixed",
54
- scope: "admin",
54
+ type: COUPON_FIELDS.TYPE_VALUES.FIXED,
55
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
55
56
  discount: {
56
57
  value: 25000,
57
58
  maxDiscount: 25000,
@@ -87,8 +88,8 @@ export const couponsSeedData = [
87
88
  code: "FREESHIP999",
88
89
  name: "Free Shipping on Orders ₹999+",
89
90
  description: "Free standard shipping on any order above ₹999. No category restriction. Note: free shipping is already automatic above ₹999 — this coupon extends the same benefit and can be applied to orders that were manually discounted below ₹999.",
90
- type: "free_shipping",
91
- scope: "admin",
91
+ type: COUPON_FIELDS.TYPE_VALUES.FREE_SHIPPING,
92
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
92
93
  discount: {
93
94
  value: 100,
94
95
  minPurchase: 99900,
@@ -122,8 +123,8 @@ export const couponsSeedData = [
122
123
  code: "BLADER20",
123
124
  name: "Blader's Discount — 20% Off All Beyblade Products",
124
125
  description: "20% off all Beyblade X and Burst products. Maximum discount ₹500 per order. Limited to 50 uses total — 30 used so far. Created for the India launch promotion.",
125
- type: "percentage",
126
- scope: "admin",
126
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
127
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
127
128
  discount: {
128
129
  value: 20,
129
130
  maxDiscount: 50000,
@@ -159,8 +160,8 @@ export const couponsSeedData = [
159
160
  code: "VIP2026",
160
161
  name: "VIP Collector's Exclusive — 25% Off (Limit Reached)",
161
162
  description: "25% off any order — exclusive to LetItRip VIP program members. Limited to 10 uses total. This coupon is now exhausted. Watch for VIP2026B in the next newsletter.",
162
- type: "percentage",
163
- scope: "admin",
163
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
164
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
164
165
  discount: {
165
166
  value: 25,
166
167
  maxDiscount: 250000,
@@ -195,8 +196,8 @@ export const couponsSeedData = [
195
196
  code: "PALACE15",
196
197
  name: "Pokémon Palace — 15% Loyalty Discount",
197
198
  description: "15% off your next order at Pokémon Palace. Exclusively for repeat customers. Min order ₹1,500. Max discount ₹750.",
198
- type: "percentage",
199
- scope: "seller",
199
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
200
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
200
201
  storeId: "store-pokemon-palace",
201
202
  discount: {
202
203
  value: 15,
@@ -232,8 +233,8 @@ export const couponsSeedData = [
232
233
  code: "DIECAST10",
233
234
  name: "Diecast Depot — ₹100 Off Your Next Order",
234
235
  description: "₹100 flat off any order at Diecast Depot. Works on all Hot Wheels and Tomica cars. Min order ₹500.",
235
- type: "fixed",
236
- scope: "seller",
236
+ type: COUPON_FIELDS.TYPE_VALUES.FIXED,
237
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
237
238
  storeId: "store-diecast-depot",
238
239
  discount: {
239
240
  value: 10000,
@@ -269,8 +270,8 @@ export const couponsSeedData = [
269
270
  code: "BEYARENA20",
270
271
  name: "Beyblade Arena Launch Special — 20% Off",
271
272
  description: "20% off all Beyblade X products at Beyblade Arena. Limited launch promotion. Max discount ₹500. One use per customer.",
272
- type: "percentage",
273
- scope: "seller",
273
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
274
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
274
275
  storeId: "store-beyblade-arena",
275
276
  discount: {
276
277
  value: 20,
@@ -307,8 +308,8 @@ export const couponsSeedData = [
307
308
  code: "CARDGAME5",
308
309
  name: "CardGame Hub — Free Shipping",
309
310
  description: "Free shipping on any order from CardGame Hub. No minimum order. Available to all buyers.",
310
- type: "free_shipping",
311
- scope: "seller",
311
+ type: COUPON_FIELDS.TYPE_VALUES.FREE_SHIPPING,
312
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
312
313
  storeId: "store-cardgame-hub",
313
314
  discount: {
314
315
  value: 100,
@@ -343,8 +344,8 @@ export const couponsSeedData = [
343
344
  code: "TOKYOTOYS10",
344
345
  name: "Tokyo Toys India — 10% New Customer Discount",
345
346
  description: "10% off your first order at Tokyo Toys India. Valid on all anime figures, Gundam kits, and Funko Pops. Min order ₹2,000. Max discount ₹500.",
346
- type: "percentage",
347
- scope: "seller",
347
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
348
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
348
349
  storeId: "store-tokyo-toys-india",
349
350
  discount: {
350
351
  value: 10,
@@ -381,8 +382,8 @@ export const couponsSeedData = [
381
382
  code: "NEWUSER5",
382
383
  name: "₹50 Off First Order",
383
384
  description: "Flat ₹50 off your first order on LetItRip. No minimum purchase.",
384
- type: "fixed",
385
- scope: "admin",
385
+ type: COUPON_FIELDS.TYPE_VALUES.FIXED,
386
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
386
387
  discount: { value: 5000, minPurchase: 0 },
387
388
  usage: { totalLimit: undefined, perUserLimit: 1, currentUsage: 312 },
388
389
  validity: { startDate: daysAgo(90), endDate: daysAhead(180), isActive: true },
@@ -398,8 +399,8 @@ export const couponsSeedData = [
398
399
  code: "FLASH24",
399
400
  name: "24-Hour Flash Sale — 30% Off",
400
401
  description: "30% off everything for 24 hours only. Maximum discount ₹500.",
401
- type: "percentage",
402
- scope: "admin",
402
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
403
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
403
404
  discount: { value: 30, maxDiscount: 50000, minPurchase: 100000 },
404
405
  usage: { totalLimit: 200, perUserLimit: 1, currentUsage: 187 },
405
406
  validity: { startDate: daysAgo(40), endDate: daysAgo(39), isActive: false },
@@ -415,8 +416,8 @@ export const couponsSeedData = [
415
416
  code: "REFERRAL200",
416
417
  name: "Referral Reward — ₹200 Off",
417
418
  description: "Refer a friend, both get ₹200 off the next order. Min ₹1,000.",
418
- type: "fixed",
419
- scope: "admin",
419
+ type: COUPON_FIELDS.TYPE_VALUES.FIXED,
420
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
420
421
  discount: { value: 20000, minPurchase: 100000 },
421
422
  usage: { totalLimit: undefined, perUserLimit: 5, currentUsage: 89 },
422
423
  validity: { startDate: daysAgo(180), endDate: daysAhead(180), isActive: true },
@@ -432,8 +433,8 @@ export const couponsSeedData = [
432
433
  code: "PREPAID5",
433
434
  name: "5% Off Prepaid Orders",
434
435
  description: "Pay online (UPI/card) and get an extra 5% off. Max ₹300 discount.",
435
- type: "percentage",
436
- scope: "admin",
436
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
437
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
437
438
  discount: { value: 5, maxDiscount: 30000, minPurchase: 50000 },
438
439
  usage: { totalLimit: undefined, perUserLimit: undefined, currentUsage: 1024 },
439
440
  validity: { startDate: daysAgo(150), endDate: daysAhead(150), isActive: true },
@@ -449,8 +450,8 @@ export const couponsSeedData = [
449
450
  code: "GUNDAMGALAXY12",
450
451
  name: "Gundam Galaxy 12% Off",
451
452
  description: "12% off everything at Gundam Galaxy store. Max ₹400.",
452
- type: "percentage",
453
- scope: "seller",
453
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
454
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
454
455
  storeId: "store-gundam-galaxy",
455
456
  discount: { value: 12, maxDiscount: 40000, minPurchase: 250000 },
456
457
  usage: { totalLimit: 100, perUserLimit: 2, currentUsage: 24 },
@@ -467,8 +468,8 @@ export const couponsSeedData = [
467
468
  code: "VINTAGEVAULT8",
468
469
  name: "Vintage Vault 8% Off — Diwali Special",
469
470
  description: "Diwali special — 8% off vintage collectibles. Expired Nov 2025.",
470
- type: "percentage",
471
- scope: "seller",
471
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
472
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
472
473
  storeId: "store-vintage-vault",
473
474
  discount: { value: 8, maxDiscount: 50000, minPurchase: 500000 },
474
475
  usage: { totalLimit: 50, perUserLimit: 1, currentUsage: 28 },
@@ -485,8 +486,8 @@ export const couponsSeedData = [
485
486
  code: "AUCTION25",
486
487
  name: "25% Off Auction Wins (Shipping)",
487
488
  description: "Auction winners get 25% off shipping. Max ₹250 discount.",
488
- type: "percentage",
489
- scope: "admin",
489
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
490
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
490
491
  discount: { value: 25, maxDiscount: 25000, minPurchase: 0 },
491
492
  usage: { totalLimit: undefined, perUserLimit: undefined, currentUsage: 56 },
492
493
  validity: { startDate: daysAgo(60), endDate: daysAhead(120), isActive: true },
@@ -502,8 +503,8 @@ export const couponsSeedData = [
502
503
  code: "SUMMER15",
503
504
  name: "Summer Sale 15% Off",
504
505
  description: "15% off summer 2026 collectibles. Max ₹600. Starts in 2 weeks.",
505
- type: "percentage",
506
- scope: "admin",
506
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
507
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
507
508
  discount: { value: 15, maxDiscount: 60000, minPurchase: 200000 },
508
509
  usage: { totalLimit: 500, perUserLimit: 1, currentUsage: 0 },
509
510
  validity: { startDate: daysAhead(14), endDate: daysAhead(45), isActive: true },
@@ -519,8 +520,8 @@ export const couponsSeedData = [
519
520
  code: "RETROVAULT10",
520
521
  name: "Retro Vault 10% Off",
521
522
  description: "10% off retro collectibles at Vintage Vault. Max ₹350.",
522
- type: "percentage",
523
- scope: "seller",
523
+ type: COUPON_FIELDS.TYPE_VALUES.PERCENTAGE,
524
+ scope: COUPON_FIELDS.SCOPE_VALUES.SELLER,
524
525
  storeId: "store-vintage-vault",
525
526
  discount: { value: 10, maxDiscount: 35000, minPurchase: 200000 },
526
527
  usage: { totalLimit: 75, perUserLimit: 1, currentUsage: 19 },
@@ -537,8 +538,8 @@ export const couponsSeedData = [
537
538
  code: "BIGBANG2026",
538
539
  name: "₹1,000 Off Orders Above ₹10,000",
539
540
  description: "Flat ₹1,000 off orders ₹10,000+. Big-ticket promo. Once per user.",
540
- type: "fixed",
541
- scope: "admin",
541
+ type: COUPON_FIELDS.TYPE_VALUES.FIXED,
542
+ scope: COUPON_FIELDS.SCOPE_VALUES.ADMIN,
542
543
  discount: { value: 100000, minPurchase: 1000000 },
543
544
  usage: { totalLimit: 1000, perUserLimit: 1, currentUsage: 142 },
544
545
  validity: { startDate: daysAgo(75), endDate: daysAhead(90), isActive: true },