@mohasinac/appkit 4.41.16 → 4.42.0

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 (165) hide show
  1. package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +1 -1
  2. package/dist/_internal/server/features/checkout/actions.d.ts +16 -14
  3. package/dist/_internal/server/features/checkout/actions.js +145 -97
  4. package/dist/_internal/server/features/checkout/bundle-expansion.d.ts +1 -1
  5. package/dist/_internal/server/features/checkout/index.d.ts +1 -1
  6. package/dist/_internal/server/features/checkout/index.js +1 -1
  7. package/dist/_internal/server/features/checkout/locked-lines.js +1 -1
  8. package/dist/_internal/server/features/checkout/source-context.js +2 -2
  9. package/dist/_internal/server/features/maintenance/analyze.js +1 -1
  10. package/dist/_internal/server/features/refunds/actions.d.ts +4 -4
  11. package/dist/_internal/server/features/refunds/actions.js +9 -8
  12. package/dist/_internal/server/functions/scheduled.d.ts +1 -2
  13. package/dist/_internal/server/functions/scheduled.js +1 -9
  14. package/dist/_internal/server/jobs/core/index.d.ts +0 -1
  15. package/dist/_internal/server/jobs/core/index.js +0 -1
  16. package/dist/_internal/server/jobs/handlers/index.d.ts +0 -1
  17. package/dist/_internal/server/jobs/handlers/index.js +0 -1
  18. package/dist/_internal/shared/actions/action-registry.js +2 -2
  19. package/dist/_internal/shared/checkout/order-math.d.ts +1 -1
  20. package/dist/_internal/shared/checkout/order-math.js +1 -1
  21. package/dist/_internal/shared/checkout/rules/prize-draw.rule.js +2 -2
  22. package/dist/_internal/shared/features/blog/schema.d.ts +4 -4
  23. package/dist/_internal/shared/features/cart/schema.d.ts +6 -6
  24. package/dist/_internal/shared/features/orders/refund-copy.d.ts +1 -1
  25. package/dist/_internal/shared/features/orders/refund-copy.js +1 -1
  26. package/dist/_internal/shared/features/orders/schema.d.ts +5 -5
  27. package/dist/_internal/shared/features/orders/schema.js +1 -1
  28. package/dist/_internal/shared/features/products/schema.d.ts +2 -2
  29. package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
  30. package/dist/_internal/shared/features/reviews/schema.d.ts +1 -1
  31. package/dist/client.d.ts +1 -1
  32. package/dist/client.js +1 -1
  33. package/dist/configs/next.js +2 -2
  34. package/dist/constants/field-names.d.ts +1 -1
  35. package/dist/constants/field-names.js +1 -1
  36. package/dist/contracts/index.d.ts +0 -2
  37. package/dist/contracts/index.js +0 -1
  38. package/dist/contracts/payment.d.ts +13 -2
  39. package/dist/contracts/payment.js +2 -2
  40. package/dist/core/integration-keys.d.ts +7 -3
  41. package/dist/core/integration-keys.js +13 -7
  42. package/dist/core/money.d.ts +11 -0
  43. package/dist/core/money.js +15 -0
  44. package/dist/errors/index.d.ts +1 -1
  45. package/dist/errors/index.js +1 -1
  46. package/dist/errors/messages.d.ts +1 -0
  47. package/dist/errors/messages.js +1 -0
  48. package/dist/errors/{razorpay-unreachable.d.ts → payment-provider-unreachable.d.ts} +1 -1
  49. package/dist/errors/{razorpay-unreachable.js → payment-provider-unreachable.js} +1 -1
  50. package/dist/features/addresses/schemas/address-form.d.ts +20 -20
  51. package/dist/features/addresses/schemas/index.d.ts +2 -2
  52. package/dist/features/admin/components/AdminSiteSettingsView.js +32 -16
  53. package/dist/features/admin/constants/site-settings-tabs.d.ts +1 -1
  54. package/dist/features/admin/schemas/admin-ops-forms.d.ts +10 -10
  55. package/dist/features/admin/schemas/admin-user-form.d.ts +2 -2
  56. package/dist/features/admin/schemas/firestore.d.ts +17 -8
  57. package/dist/features/admin/schemas/firestore.js +1 -1
  58. package/dist/features/admin/schemas/nav-item-form.d.ts +2 -2
  59. package/dist/features/auctions/schemas/index.d.ts +2 -2
  60. package/dist/features/auth/schemas/index.d.ts +2 -2
  61. package/dist/features/before-after/schemas/index.d.ts +2 -2
  62. package/dist/features/blog/actions/blog-actions.d.ts +4 -4
  63. package/dist/features/blog/schemas/blog-form.d.ts +2 -2
  64. package/dist/features/blog/schemas/index.d.ts +4 -4
  65. package/dist/features/cart/schemas/index.d.ts +3 -3
  66. package/dist/features/catalogue/schemas/validation.d.ts +4 -4
  67. package/dist/features/categories/schemas/index.d.ts +2 -2
  68. package/dist/features/checkout/index.d.ts +0 -4
  69. package/dist/features/checkout/index.js +0 -3
  70. package/dist/features/checkout/types/index.d.ts +0 -25
  71. package/dist/features/checkout/types/index.js +1 -2
  72. package/dist/features/collections/schemas/index.d.ts +2 -2
  73. package/dist/features/consultation/schemas/index.d.ts +4 -4
  74. package/dist/features/corporate/schemas/index.d.ts +2 -2
  75. package/dist/features/events/schemas/index.d.ts +4 -4
  76. package/dist/features/grouped/schemas/index.d.ts +2 -2
  77. package/dist/features/homepage/schemas/index.d.ts +2 -2
  78. package/dist/features/lottery/schemas/zod.d.ts +4 -4
  79. package/dist/features/loyalty/schemas/index.d.ts +6 -6
  80. package/dist/features/orders/components/OrderPaymentSummary.d.ts +1 -1
  81. package/dist/features/orders/components/OrderPaymentSummary.js +5 -5
  82. package/dist/features/orders/components/RefundHistoryTable.js +1 -1
  83. package/dist/features/orders/repository/orders.repository.d.ts +10 -1
  84. package/dist/features/orders/repository/orders.repository.js +17 -1
  85. package/dist/features/orders/schemas/firestore.d.ts +11 -12
  86. package/dist/features/orders/schemas/firestore.js +0 -1
  87. package/dist/features/orders/schemas/index.d.ts +48 -48
  88. package/dist/features/orders/schemas/index.js +1 -1
  89. package/dist/features/orders/types/index.d.ts +1 -3
  90. package/dist/features/orders/types/index.js +1 -2
  91. package/dist/features/payments/manifest.js +1 -1
  92. package/dist/features/payments/repository/payout.repository.d.ts +1 -4
  93. package/dist/features/payments/repository/payout.repository.js +0 -29
  94. package/dist/features/payments/schemas/firestore.d.ts +8 -15
  95. package/dist/features/payments/schemas/firestore.js +7 -5
  96. package/dist/features/payments/schemas/index.d.ts +52 -125
  97. package/dist/features/payments/schemas/index.js +0 -58
  98. package/dist/features/payments/types/index.d.ts +2 -4
  99. package/dist/features/payments/types/index.js +1 -2
  100. package/dist/features/products/schemas/index.d.ts +14 -14
  101. package/dist/features/products/schemas/product-features.validators.d.ts +10 -10
  102. package/dist/features/promotions/schemas/index.d.ts +20 -20
  103. package/dist/features/reviews/schemas/index.d.ts +8 -8
  104. package/dist/features/scams/schemas/index.d.ts +10 -10
  105. package/dist/features/search/action-index/settings-entries.js +4 -4
  106. package/dist/features/seller/schemas/index.d.ts +12 -12
  107. package/dist/features/seller/schemas/order-forms.d.ts +4 -4
  108. package/dist/features/shipments/schemas/validation.d.ts +28 -28
  109. package/dist/features/store-extensions/schemas/payout-method-form.d.ts +50 -50
  110. package/dist/features/store-extensions/schemas/report-create-form.d.ts +2 -2
  111. package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +10 -10
  112. package/dist/features/support/schemas/index.d.ts +14 -14
  113. package/dist/features/tester/actions/checklist-item-actions.d.ts +4 -4
  114. package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
  115. package/dist/features/tester/seed-data/_money-flows.js +145 -0
  116. package/dist/features/tester/seed-data/authored/account-auth__signup-login.js +21 -2
  117. package/dist/features/tester/seed-data/authored/admin__site-system.js +38 -0
  118. package/dist/features/tester/seed-data/authored/buying__buying-checkout.js +10 -10
  119. package/dist/features/tester/seed-data/authored/buying__offers.js +11 -10
  120. package/dist/features/tester/seed-data/authored/cta-layout__checkout-bottom-bar.js +1 -1
  121. package/dist/features/tester/seed-data/tester-checklist-seed-data.js +24 -12
  122. package/dist/features/wishlist/schemas/index.d.ts +2 -2
  123. package/dist/index.d.ts +6 -28
  124. package/dist/index.js +8 -51
  125. package/dist/jobs.d.ts +1 -1
  126. package/dist/jobs.js +1 -1
  127. package/dist/providers/payment-phonepe/index.d.ts +117 -0
  128. package/dist/providers/payment-phonepe/index.js +221 -0
  129. package/dist/providers.d.ts +3 -2
  130. package/dist/providers.js +3 -2
  131. package/dist/schemas/registry.d.ts +163 -2623
  132. package/dist/schemas/registry.js +1 -6
  133. package/dist/seed/faq-seed-data.js +5 -5
  134. package/dist/seed/payouts-seed-data.js +3 -3
  135. package/dist/seed/site-settings-seed-data.js +7 -4
  136. package/dist/server-entry.d.ts +1 -2
  137. package/dist/server-entry.js +1 -3
  138. package/dist/server.d.ts +3 -9
  139. package/dist/server.js +5 -23
  140. package/dist/validation/schemas.d.ts +2 -2
  141. package/package.json +5 -4
  142. package/dist/_internal/server/features/payments/actions.d.ts +0 -30
  143. package/dist/_internal/server/features/payments/actions.js +0 -45
  144. package/dist/_internal/server/features/payments/data.d.ts +0 -13
  145. package/dist/_internal/server/features/payments/data.js +0 -20
  146. package/dist/_internal/server/features/payments/index.d.ts +0 -3
  147. package/dist/_internal/server/features/payments/index.js +0 -3
  148. package/dist/_internal/server/jobs/core/payoutBatch.d.ts +0 -2
  149. package/dist/_internal/server/jobs/core/payoutBatch.js +0 -120
  150. package/dist/_internal/server/jobs/handlers/payoutBatch.d.ts +0 -2
  151. package/dist/_internal/server/jobs/handlers/payoutBatch.js +0 -2
  152. package/dist/_internal/shared/features/payments/config.d.ts +0 -3
  153. package/dist/_internal/shared/features/payments/config.js +0 -3
  154. package/dist/contracts/client-payment-gateway.d.ts +0 -64
  155. package/dist/contracts/client-payment-gateway.js +0 -25
  156. package/dist/features/checkout/hooks/useCheckout.d.ts +0 -9
  157. package/dist/features/checkout/hooks/useCheckout.js +0 -24
  158. package/dist/features/checkout/hooks/useCheckoutApi.d.ts +0 -72
  159. package/dist/features/checkout/hooks/useCheckoutApi.js +0 -47
  160. package/dist/features/checkout/hooks/usePaymentCheckout.d.ts +0 -77
  161. package/dist/features/checkout/hooks/usePaymentCheckout.js +0 -192
  162. package/dist/providers/payment-razorpay/index.d.ts +0 -115
  163. package/dist/providers/payment-razorpay/index.js +0 -208
  164. package/dist/schemas/webhooks/razorpay.d.ts +0 -2634
  165. package/dist/schemas/webhooks/razorpay.js +0 -104
@@ -269,7 +269,7 @@ export declare const couponFirestoreSchema: z.ZodObject<{
269
269
  code: string;
270
270
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
271
271
  id: string;
272
- scope: "seller" | "admin";
272
+ scope: "admin" | "seller";
273
273
  name: string;
274
274
  createdAt: string | Date | z.objectOutputType<{
275
275
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
@@ -327,7 +327,7 @@ export declare const couponFirestoreSchema: z.ZodObject<{
327
327
  code: string;
328
328
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
329
329
  id: string;
330
- scope: "seller" | "admin";
330
+ scope: "admin" | "seller";
331
331
  name: string;
332
332
  createdAt: string | Date | z.objectInputType<{
333
333
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
@@ -397,22 +397,22 @@ export declare const couponUsageFirestoreSchema: z.ZodObject<{
397
397
  orders: z.ZodArray<z.ZodString, "many">;
398
398
  }, "strip", z.ZodTypeAny, {
399
399
  id: string;
400
+ orders: string[];
400
401
  userId: string;
402
+ couponCode: string;
403
+ usageCount: number;
401
404
  lastUsedAt: string | Date | z.objectOutputType<{
402
405
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
403
406
  }, z.ZodTypeAny, "passthrough">;
404
- orders: string[];
405
- couponCode: string;
406
- usageCount: number;
407
407
  }, {
408
408
  id: string;
409
+ orders: string[];
409
410
  userId: string;
411
+ couponCode: string;
412
+ usageCount: number;
410
413
  lastUsedAt: string | Date | z.objectInputType<{
411
414
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
412
415
  }, z.ZodTypeAny, "passthrough">;
413
- orders: string[];
414
- couponCode: string;
415
- usageCount: number;
416
416
  }>;
417
417
  export declare const claimedCouponStatusSchema: z.ZodEnum<["active", "expired", "used"]>;
418
418
  export declare const claimedCouponSourceSchema: z.ZodEnum<["manual", "promo", "spin", "raffle", "prize-draw"]>;
@@ -459,7 +459,7 @@ export declare const claimedCouponSnapshotSchema: z.ZodObject<{
459
459
  }>;
460
460
  }, "strip", z.ZodTypeAny, {
461
461
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
462
- scope: "seller" | "admin";
462
+ scope: "admin" | "seller";
463
463
  name: string;
464
464
  discount: {
465
465
  value: number;
@@ -478,7 +478,7 @@ export declare const claimedCouponSnapshotSchema: z.ZodObject<{
478
478
  description?: string | undefined;
479
479
  }, {
480
480
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
481
- scope: "seller" | "admin";
481
+ scope: "admin" | "seller";
482
482
  name: string;
483
483
  discount: {
484
484
  value: number;
@@ -545,7 +545,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
545
545
  }>;
546
546
  }, "strip", z.ZodTypeAny, {
547
547
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
548
- scope: "seller" | "admin";
548
+ scope: "admin" | "seller";
549
549
  name: string;
550
550
  discount: {
551
551
  value: number;
@@ -564,7 +564,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
564
564
  description?: string | undefined;
565
565
  }, {
566
566
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
567
- scope: "seller" | "admin";
567
+ scope: "admin" | "seller";
568
568
  name: string;
569
569
  discount: {
570
570
  value: number;
@@ -613,7 +613,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
613
613
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
614
614
  }, z.ZodTypeAny, "passthrough">>]>;
615
615
  }, "strip", z.ZodTypeAny, {
616
- status: "used" | "active" | "expired";
616
+ status: "active" | "expired" | "used";
617
617
  id: string;
618
618
  source: "manual" | "prize-draw" | "raffle" | "promo" | "spin";
619
619
  updatedAt: string | Date | z.objectOutputType<{
@@ -624,7 +624,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
624
624
  couponId: string;
625
625
  couponSnapshot: {
626
626
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
627
- scope: "seller" | "admin";
627
+ scope: "admin" | "seller";
628
628
  name: string;
629
629
  discount: {
630
630
  value: number;
@@ -653,7 +653,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
653
653
  }, z.ZodTypeAny, "passthrough"> | undefined;
654
654
  usedOrderId?: string | undefined;
655
655
  }, {
656
- status: "used" | "active" | "expired";
656
+ status: "active" | "expired" | "used";
657
657
  id: string;
658
658
  source: "manual" | "prize-draw" | "raffle" | "promo" | "spin";
659
659
  updatedAt: string | Date | z.objectInputType<{
@@ -664,7 +664,7 @@ export declare const claimedCouponFirestoreSchema: z.ZodObject<{
664
664
  couponId: string;
665
665
  couponSnapshot: {
666
666
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
667
- scope: "seller" | "admin";
667
+ scope: "admin" | "seller";
668
668
  name: string;
669
669
  discount: {
670
670
  value: number;
@@ -738,7 +738,7 @@ export declare const couponItemSchema: z.ZodObject<{
738
738
  code: string;
739
739
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
740
740
  id: string;
741
- scope: "seller" | "admin";
741
+ scope: "admin" | "seller";
742
742
  name: string;
743
743
  createdAt: string;
744
744
  updatedAt: string;
@@ -762,7 +762,7 @@ export declare const couponItemSchema: z.ZodObject<{
762
762
  code: string;
763
763
  type: "fixed" | "percentage" | "free_shipping" | "buy_x_get_y";
764
764
  id: string;
765
- scope: "seller" | "admin";
765
+ scope: "admin" | "seller";
766
766
  name: string;
767
767
  createdAt: string;
768
768
  updatedAt: string;
@@ -794,7 +794,7 @@ export declare const promotionsListParamsSchema: z.ZodObject<{
794
794
  }, "strip", z.ZodTypeAny, {
795
795
  sort?: string | undefined;
796
796
  page?: number | undefined;
797
- scope?: "seller" | "admin" | undefined;
797
+ scope?: "admin" | "seller" | undefined;
798
798
  pageSize?: number | undefined;
799
799
  storeId?: string | undefined;
800
800
  isActive?: boolean | undefined;
@@ -802,7 +802,7 @@ export declare const promotionsListParamsSchema: z.ZodObject<{
802
802
  }, {
803
803
  sort?: string | undefined;
804
804
  page?: number | undefined;
805
- scope?: "seller" | "admin" | undefined;
805
+ scope?: "admin" | "seller" | undefined;
806
806
  pageSize?: number | undefined;
807
807
  storeId?: string | undefined;
808
808
  isActive?: boolean | undefined;
@@ -109,11 +109,11 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
109
109
  updatedAt: string | Date | z.objectOutputType<{
110
110
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
111
111
  }, z.ZodTypeAny, "passthrough">;
112
- userId: string;
113
112
  rating: number;
114
113
  verified: boolean;
115
114
  productId: string;
116
115
  productTitle: string;
116
+ userId: string;
117
117
  userName: string;
118
118
  comment: string;
119
119
  helpfulCount: number;
@@ -125,9 +125,9 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
125
125
  trimEnd?: number | undefined;
126
126
  trimStart?: number | undefined;
127
127
  } | undefined;
128
- storeId?: string | undefined;
129
128
  listingType?: string | undefined;
130
129
  storeName?: string | undefined;
130
+ storeId?: string | undefined;
131
131
  images?: string[] | undefined;
132
132
  featured?: boolean | undefined;
133
133
  userAvatar?: string | undefined;
@@ -157,11 +157,11 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
157
157
  updatedAt: string | Date | z.objectInputType<{
158
158
  toDate: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodDate>;
159
159
  }, z.ZodTypeAny, "passthrough">;
160
- userId: string;
161
160
  rating: number;
162
161
  verified: boolean;
163
162
  productId: string;
164
163
  productTitle: string;
164
+ userId: string;
165
165
  userName: string;
166
166
  comment: string;
167
167
  helpfulCount: number;
@@ -173,9 +173,9 @@ export declare const reviewFirestoreSchema: z.ZodObject<{
173
173
  trimEnd?: number | undefined;
174
174
  trimStart?: number | undefined;
175
175
  } | undefined;
176
- storeId?: string | undefined;
177
176
  listingType?: string | undefined;
178
177
  storeName?: string | undefined;
178
+ storeId?: string | undefined;
179
179
  images?: string[] | undefined;
180
180
  featured?: boolean | undefined;
181
181
  userAvatar?: string | undefined;
@@ -292,9 +292,9 @@ export declare const reviewSchema: z.ZodObject<{
292
292
  }, "strip", z.ZodTypeAny, {
293
293
  status: "pending" | "approved" | "rejected";
294
294
  id: string;
295
- userId: string;
296
295
  rating: 3 | 1 | 2 | 4 | 5;
297
296
  productId: string;
297
+ userId: string;
298
298
  userName: string;
299
299
  title?: string | undefined;
300
300
  video?: {
@@ -323,9 +323,9 @@ export declare const reviewSchema: z.ZodObject<{
323
323
  }, {
324
324
  status: "pending" | "approved" | "rejected";
325
325
  id: string;
326
- userId: string;
327
326
  rating: 3 | 1 | 2 | 4 | 5;
328
327
  productId: string;
328
+ userId: string;
329
329
  userName: string;
330
330
  title?: string | undefined;
331
331
  video?: {
@@ -369,18 +369,18 @@ export declare const reviewListParamsSchema: z.ZodObject<{
369
369
  page?: number | undefined;
370
370
  perPage?: number | undefined;
371
371
  storeId?: string | undefined;
372
- userId?: string | undefined;
373
372
  rating?: number | undefined;
374
373
  featured?: boolean | undefined;
375
374
  productId?: string | undefined;
375
+ userId?: string | undefined;
376
376
  }, {
377
377
  sort?: string | undefined;
378
378
  status?: "pending" | "approved" | "rejected" | undefined;
379
379
  page?: number | undefined;
380
380
  perPage?: number | undefined;
381
381
  storeId?: string | undefined;
382
- userId?: string | undefined;
383
382
  rating?: number | undefined;
384
383
  featured?: boolean | undefined;
385
384
  productId?: string | undefined;
385
+ userId?: string | undefined;
386
386
  }>;
@@ -10,11 +10,11 @@ export declare const scammerSocialMediaSchema: z.ZodObject<{
10
10
  handle: z.ZodString;
11
11
  url: z.ZodOptional<z.ZodString>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- platform: "other" | "whatsapp" | "youtube" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
13
+ platform: "other" | "youtube" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
14
14
  handle: string;
15
15
  url?: string | undefined;
16
16
  }, {
17
- platform: "other" | "whatsapp" | "youtube" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
17
+ platform: "other" | "youtube" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
18
18
  handle: string;
19
19
  url?: string | undefined;
20
20
  }>;
@@ -44,11 +44,11 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
44
44
  handle: z.ZodString;
45
45
  url: z.ZodOptional<z.ZodString>;
46
46
  }, "strip", z.ZodTypeAny, {
47
- platform: "other" | "whatsapp" | "youtube" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
47
+ platform: "other" | "youtube" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
48
48
  handle: string;
49
49
  url?: string | undefined;
50
50
  }, {
51
- platform: "other" | "whatsapp" | "youtube" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
51
+ platform: "other" | "youtube" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
52
52
  handle: string;
53
53
  url?: string | undefined;
54
54
  }>, "many">;
@@ -93,7 +93,7 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
93
93
  scamType: string;
94
94
  reportedBy: string;
95
95
  reportedByAnon: boolean;
96
- scamPlatform: "other" | "whatsapp" | "letitrip" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
96
+ scamPlatform: "other" | "letitrip" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
97
97
  evidence: string[];
98
98
  phones: string[];
99
99
  upiIds: string[];
@@ -102,7 +102,7 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
102
102
  incidentCount: number;
103
103
  seoSlug: string;
104
104
  socialMedia: {
105
- platform: "other" | "whatsapp" | "youtube" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
105
+ platform: "other" | "youtube" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
106
106
  handle: string;
107
107
  url?: string | undefined;
108
108
  }[];
@@ -133,7 +133,7 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
133
133
  scamType: string;
134
134
  reportedBy: string;
135
135
  reportedByAnon: boolean;
136
- scamPlatform: "other" | "whatsapp" | "letitrip" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
136
+ scamPlatform: "other" | "letitrip" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
137
137
  evidence: string[];
138
138
  phones: string[];
139
139
  upiIds: string[];
@@ -142,7 +142,7 @@ export declare const scammerFirestoreSchema: z.ZodObject<{
142
142
  incidentCount: number;
143
143
  seoSlug: string;
144
144
  socialMedia: {
145
- platform: "other" | "whatsapp" | "youtube" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
145
+ platform: "other" | "youtube" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "linkedin";
146
146
  handle: string;
147
147
  url?: string | undefined;
148
148
  }[];
@@ -201,7 +201,7 @@ export declare const scammerIncidentFirestoreSchema: z.ZodObject<{
201
201
  reportedBy: string;
202
202
  scammerId: string;
203
203
  reportedByAnon: boolean;
204
- scamPlatform: "other" | "whatsapp" | "letitrip" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
204
+ scamPlatform: "other" | "letitrip" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
205
205
  evidence: string[];
206
206
  verifiedBy?: string | undefined;
207
207
  amountLost?: number | undefined;
@@ -224,7 +224,7 @@ export declare const scammerIncidentFirestoreSchema: z.ZodObject<{
224
224
  reportedBy: string;
225
225
  scammerId: string;
226
226
  reportedByAnon: boolean;
227
- scamPlatform: "other" | "whatsapp" | "letitrip" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
227
+ scamPlatform: "other" | "letitrip" | "whatsapp" | "instagram" | "facebook" | "telegram" | "twitter" | "olx" | "facebook_marketplace" | "in_person" | "phone_call";
228
228
  evidence: string[];
229
229
  verifiedBy?: string | undefined;
230
230
  amountLost?: number | undefined;
@@ -86,11 +86,11 @@ export const SITE_SETTINGS_ENTRIES = [
86
86
  kind: "toggle",
87
87
  },
88
88
  {
89
- slug: "razorpay-enabled",
89
+ slug: "phonepe-enabled",
90
90
  anchored: true,
91
- label: "Online payments (Razorpay)",
92
- description: "Accept cards and UPI through Razorpay. Off by default; manual payment is the default.",
93
- keywords: ["card payments", "razorpay", "online payment", "gateway", "upi"],
91
+ label: "Online payments (PhonePe)",
92
+ description: "Accept cards and UPI through PhonePe. Off by default; manual payment is the default.",
93
+ keywords: ["card payments", "phonepe", "online payment", "gateway", "upi"],
94
94
  tab: "fees",
95
95
  kind: "toggle",
96
96
  },
@@ -172,16 +172,16 @@ export declare const payoutRecordSchema: z.ZodObject<{
172
172
  id: string;
173
173
  createdAt: string;
174
174
  updatedAt: string;
175
- requestedAt: string;
175
+ amount: number;
176
+ sellerId: string;
176
177
  sellerName: string;
177
178
  sellerEmail: string;
178
- amount: number;
179
- grossAmount: number;
179
+ paymentMethod: "upi" | "bank_transfer";
180
180
  platformFee: number;
181
- platformFeeRate: number;
182
- paymentMethod: "bank_transfer" | "upi";
181
+ requestedAt: string;
183
182
  orderIds: string[];
184
- sellerId: string;
183
+ grossAmount: number;
184
+ platformFeeRate: number;
185
185
  processedAt?: string | undefined;
186
186
  }, {
187
187
  currency: string;
@@ -189,16 +189,16 @@ export declare const payoutRecordSchema: z.ZodObject<{
189
189
  id: string;
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
- requestedAt: string;
192
+ amount: number;
193
+ sellerId: string;
193
194
  sellerName: string;
194
195
  sellerEmail: string;
195
- amount: number;
196
- grossAmount: number;
196
+ paymentMethod: "upi" | "bank_transfer";
197
197
  platformFee: number;
198
- platformFeeRate: number;
199
- paymentMethod: "bank_transfer" | "upi";
198
+ requestedAt: string;
200
199
  orderIds: string[];
201
- sellerId: string;
200
+ grossAmount: number;
201
+ platformFeeRate: number;
202
202
  processedAt?: string | undefined;
203
203
  }>;
204
204
  export declare const sellerListParamsSchema: z.ZodObject<{
@@ -10,22 +10,22 @@ export declare const sellerOrderUpdateSchema: z.ZodEffects<z.ZodObject<{
10
10
  carrier: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
11
11
  trackingUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- status: "" | "cancelled" | "processing" | "delivered" | "confirmed" | "shipped";
13
+ status: "" | "delivered" | "confirmed" | "shipped" | "processing" | "cancelled";
14
14
  trackingNumber?: string | undefined;
15
15
  trackingUrl?: string | undefined;
16
16
  carrier?: string | undefined;
17
17
  }, {
18
- status: "" | "cancelled" | "processing" | "delivered" | "confirmed" | "shipped";
18
+ status: "" | "delivered" | "confirmed" | "shipped" | "processing" | "cancelled";
19
19
  trackingNumber?: string | undefined;
20
20
  trackingUrl?: string | undefined;
21
21
  carrier?: string | undefined;
22
22
  }>, {
23
- status: "" | "cancelled" | "processing" | "delivered" | "confirmed" | "shipped";
23
+ status: "" | "delivered" | "confirmed" | "shipped" | "processing" | "cancelled";
24
24
  trackingNumber?: string | undefined;
25
25
  trackingUrl?: string | undefined;
26
26
  carrier?: string | undefined;
27
27
  }, {
28
- status: "" | "cancelled" | "processing" | "delivered" | "confirmed" | "shipped";
28
+ status: "" | "delivered" | "confirmed" | "shipped" | "processing" | "cancelled";
29
29
  trackingNumber?: string | undefined;
30
30
  trackingUrl?: string | undefined;
31
31
  carrier?: string | undefined;
@@ -15,13 +15,13 @@ export declare const createShipmentSchema: z.ZodObject<{
15
15
  laborRatePerHour: z.ZodOptional<z.ZodNumber>;
16
16
  notes: z.ZodOptional<z.ZodString>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- status: "received" | "cancelled" | "processing" | "completed" | "ordered" | "planning" | "in_transit" | "customs";
18
+ status: "received" | "completed" | "processing" | "cancelled" | "ordered" | "planning" | "in_transit" | "customs";
19
19
  shipmentNumber: string;
20
20
  supplierName: string;
21
21
  customsTotal: number;
22
22
  shippingTotal: number;
23
- notes?: string | undefined;
24
23
  trackingNumber?: string | undefined;
24
+ notes?: string | undefined;
25
25
  carrier?: string | undefined;
26
26
  etaDate?: string | Date | undefined;
27
27
  originCountry?: string | undefined;
@@ -29,13 +29,13 @@ export declare const createShipmentSchema: z.ZodObject<{
29
29
  laborHoursSpent?: number | undefined;
30
30
  laborRatePerHour?: number | undefined;
31
31
  }, {
32
- status: "received" | "cancelled" | "processing" | "completed" | "ordered" | "planning" | "in_transit" | "customs";
32
+ status: "received" | "completed" | "processing" | "cancelled" | "ordered" | "planning" | "in_transit" | "customs";
33
33
  shipmentNumber: string;
34
34
  supplierName: string;
35
35
  customsTotal: number;
36
36
  shippingTotal: number;
37
- notes?: string | undefined;
38
37
  trackingNumber?: string | undefined;
38
+ notes?: string | undefined;
39
39
  carrier?: string | undefined;
40
40
  etaDate?: string | Date | undefined;
41
41
  originCountry?: string | undefined;
@@ -58,9 +58,9 @@ export declare const updateShipmentSchema: z.ZodObject<{
58
58
  laborRatePerHour: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
59
59
  notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
60
60
  }, "strip", z.ZodTypeAny, {
61
- status?: "received" | "cancelled" | "processing" | "completed" | "ordered" | "planning" | "in_transit" | "customs" | undefined;
62
- notes?: string | undefined;
61
+ status?: "received" | "completed" | "processing" | "cancelled" | "ordered" | "planning" | "in_transit" | "customs" | undefined;
63
62
  trackingNumber?: string | undefined;
63
+ notes?: string | undefined;
64
64
  carrier?: string | undefined;
65
65
  shipmentNumber?: string | undefined;
66
66
  etaDate?: string | Date | undefined;
@@ -72,9 +72,9 @@ export declare const updateShipmentSchema: z.ZodObject<{
72
72
  laborHoursSpent?: number | undefined;
73
73
  laborRatePerHour?: number | undefined;
74
74
  }, {
75
- status?: "received" | "cancelled" | "processing" | "completed" | "ordered" | "planning" | "in_transit" | "customs" | undefined;
76
- notes?: string | undefined;
75
+ status?: "received" | "completed" | "processing" | "cancelled" | "ordered" | "planning" | "in_transit" | "customs" | undefined;
77
76
  trackingNumber?: string | undefined;
77
+ notes?: string | undefined;
78
78
  carrier?: string | undefined;
79
79
  shipmentNumber?: string | undefined;
80
80
  etaDate?: string | Date | undefined;
@@ -229,38 +229,38 @@ export declare const createShipmentItemSchema: z.ZodEffects<z.ZodObject<{
229
229
  title: string;
230
230
  quantity: number;
231
231
  isForSelfUse: boolean;
232
- notes?: string | undefined;
233
232
  price?: number | undefined;
234
233
  brandSlug?: string | undefined;
235
234
  categorySlugs?: string[] | undefined;
236
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
235
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
236
+ notes?: string | undefined;
237
237
  }, {
238
238
  title: string;
239
239
  quantity: number;
240
240
  isForSelfUse: boolean;
241
- notes?: string | undefined;
242
241
  price?: number | undefined;
243
242
  brandSlug?: string | undefined;
244
243
  categorySlugs?: string[] | undefined;
245
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
244
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
245
+ notes?: string | undefined;
246
246
  }>, {
247
247
  title: string;
248
248
  quantity: number;
249
249
  isForSelfUse: boolean;
250
- notes?: string | undefined;
251
250
  price?: number | undefined;
252
251
  brandSlug?: string | undefined;
253
252
  categorySlugs?: string[] | undefined;
254
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
253
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
254
+ notes?: string | undefined;
255
255
  }, {
256
256
  title: string;
257
257
  quantity: number;
258
258
  isForSelfUse: boolean;
259
- notes?: string | undefined;
260
259
  price?: number | undefined;
261
260
  brandSlug?: string | undefined;
262
261
  categorySlugs?: string[] | undefined;
263
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
262
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
263
+ notes?: string | undefined;
264
264
  }>;
265
265
  /**
266
266
  * The four fields the add-item form actually offers, annotated for
@@ -318,24 +318,24 @@ export declare const updateShipmentItemSchema: z.ZodObject<{
318
318
  linkedProductListingType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["standard", "auction", "pre-order", "prize-draw", "classified", "digital-code", "live", "art", "stickers"]>>>;
319
319
  }, "strip", z.ZodTypeAny, {
320
320
  title?: string | undefined;
321
- notes?: string | undefined;
322
321
  price?: number | undefined;
323
322
  brandSlug?: string | undefined;
324
323
  quantity?: number | undefined;
325
324
  categorySlugs?: string[] | undefined;
326
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
325
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
326
+ notes?: string | undefined;
327
327
  isForSelfUse?: boolean | undefined;
328
328
  linkedProductId?: string | null | undefined;
329
329
  linkedProductSlug?: string | null | undefined;
330
330
  linkedProductListingType?: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | null | undefined;
331
331
  }, {
332
332
  title?: string | undefined;
333
- notes?: string | undefined;
334
333
  price?: number | undefined;
335
334
  brandSlug?: string | undefined;
336
335
  quantity?: number | undefined;
337
336
  categorySlugs?: string[] | undefined;
338
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
337
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
338
+ notes?: string | undefined;
339
339
  isForSelfUse?: boolean | undefined;
340
340
  linkedProductId?: string | null | undefined;
341
341
  linkedProductSlug?: string | null | undefined;
@@ -359,38 +359,38 @@ export declare const bulkShipmentItemsSchema: z.ZodEffects<z.ZodArray<z.ZodObjec
359
359
  title: string;
360
360
  quantity: number;
361
361
  isForSelfUse: boolean;
362
- notes?: string | undefined;
363
362
  price?: number | undefined;
364
363
  brandSlug?: string | undefined;
365
364
  categorySlugs?: string[] | undefined;
366
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
365
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
366
+ notes?: string | undefined;
367
367
  }, {
368
368
  title: string;
369
369
  quantity: number;
370
370
  isForSelfUse: boolean;
371
- notes?: string | undefined;
372
371
  price?: number | undefined;
373
372
  brandSlug?: string | undefined;
374
373
  categorySlugs?: string[] | undefined;
375
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
374
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
375
+ notes?: string | undefined;
376
376
  }>, "many">, {
377
377
  title: string;
378
378
  quantity: number;
379
379
  isForSelfUse: boolean;
380
- notes?: string | undefined;
381
380
  price?: number | undefined;
382
381
  brandSlug?: string | undefined;
383
382
  categorySlugs?: string[] | undefined;
384
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
383
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
384
+ notes?: string | undefined;
385
385
  }[], {
386
386
  title: string;
387
387
  quantity: number;
388
388
  isForSelfUse: boolean;
389
- notes?: string | undefined;
390
389
  price?: number | undefined;
391
390
  brandSlug?: string | undefined;
392
391
  categorySlugs?: string[] | undefined;
393
- condition?: "new" | "used" | "refurbished" | "like_new" | "good" | "fair" | "poor" | "broken" | "graded" | undefined;
392
+ condition?: "new" | "like_new" | "good" | "fair" | "poor" | "used" | "refurbished" | "broken" | "graded" | undefined;
393
+ notes?: string | undefined;
394
394
  }[]>;
395
395
  export type CreateShipmentInput = z.infer<typeof createShipmentSchema>;
396
396
  export type UpdateShipmentInput = z.infer<typeof updateShipmentSchema>;