@develemit/commerce-contracts 0.3.0 → 0.4.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.
package/dist/index.d.cts CHANGED
@@ -114,6 +114,7 @@ declare const checkoutRequestSchema: z.ZodObject<{
114
114
  productId: z.ZodString;
115
115
  quantity: z.ZodNumber;
116
116
  }, z.core.$strip>>;
117
+ discountCode: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
117
118
  }, z.core.$strip>;
118
119
  declare const checkoutResponseSchema: z.ZodObject<{
119
120
  url: z.ZodString;
@@ -167,6 +168,8 @@ declare const orderSummarySchema: z.ZodObject<{
167
168
  refunded: "refunded";
168
169
  }>;
169
170
  subtotalCents: z.ZodNumber;
171
+ discountCents: z.ZodDefault<z.ZodNumber>;
172
+ discountCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
170
173
  shippingCents: z.ZodNumber;
171
174
  shippingLabel: z.ZodNullable<z.ZodString>;
172
175
  totalCents: z.ZodNumber;
@@ -216,6 +219,8 @@ declare const orderDetailSchema: z.ZodObject<{
216
219
  refunded: "refunded";
217
220
  }>;
218
221
  subtotalCents: z.ZodNumber;
222
+ discountCents: z.ZodDefault<z.ZodNumber>;
223
+ discountCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
219
224
  shippingCents: z.ZodNumber;
220
225
  shippingLabel: z.ZodNullable<z.ZodString>;
221
226
  totalCents: z.ZodNumber;
@@ -333,6 +338,9 @@ declare const adminProductSchema: z.ZodObject<{
333
338
  declare const imageOrderInputSchema: z.ZodObject<{
334
339
  imageIds: z.ZodArray<z.ZodString>;
335
340
  }, z.core.$strip>;
341
+ declare const productImagePatchSchema: z.ZodObject<{
342
+ alt: z.ZodString;
343
+ }, z.core.$strip>;
336
344
  declare const adminProductListQuerySchema: z.ZodObject<{
337
345
  status: z.ZodOptional<z.ZodEnum<{
338
346
  active: "active";
@@ -379,6 +387,7 @@ type AdminProductInput = z.input<typeof adminProductInputSchema>;
379
387
  type AdminProductPatch = z.input<typeof adminProductPatchSchema>;
380
388
  type AdminProductImage = z.infer<typeof adminProductImageSchema>;
381
389
  type AdminProduct = z.infer<typeof adminProductSchema>;
390
+ type ProductImagePatch = z.infer<typeof productImagePatchSchema>;
382
391
  type ImageOrderInput = z.infer<typeof imageOrderInputSchema>;
383
392
  type AdminProductListQuery = z.input<typeof adminProductListQuerySchema>;
384
393
  type AdminProductPage = z.infer<typeof adminProductPageSchema>;
@@ -460,6 +469,8 @@ declare const adminOrderDetailSchema: z.ZodObject<{
460
469
  refunded: "refunded";
461
470
  }>;
462
471
  subtotalCents: z.ZodNumber;
472
+ discountCents: z.ZodDefault<z.ZodNumber>;
473
+ discountCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
463
474
  shippingCents: z.ZodNumber;
464
475
  shippingLabel: z.ZodNullable<z.ZodString>;
465
476
  totalCents: z.ZodNumber;
@@ -513,5 +524,144 @@ type AdminOrderDetail = z.infer<typeof adminOrderDetailSchema>;
513
524
  type ShipOrderInput = z.infer<typeof shipOrderInputSchema>;
514
525
  type RefundOrderInput = z.infer<typeof refundOrderInputSchema>;
515
526
 
516
- export { adminOrderDetailSchema, adminOrderListItemSchema, adminOrderListQuerySchema, adminOrderPageSchema, adminProductImageSchema, adminProductInputSchema, adminProductListQuerySchema, adminProductPageSchema, adminProductPatchSchema, adminProductSchema, availabilitySchema, cartLineSchema, categorySchema, checkoutConflictSchema, checkoutRequestSchema, checkoutResponseSchema, imageOrderInputSchema, moneySchema, orderAddressSchema, orderDetailSchema, orderFulfillmentSchema, orderRefundSchema, orderStatusSchema, orderSummarySchema, productCardPageSchema, productCardSchema, productImageSchema, productListQuerySchema, productSchema, productStatusSchema, refundOrderInputSchema, shipOrderInputSchema, shippingRateSchema, shippingRatesInputSchema };
517
- export type { AdminOrderDetail, AdminOrderListItem, AdminOrderListQuery, AdminOrderPage, AdminProduct, AdminProductImage, AdminProductInput, AdminProductListQuery, AdminProductPage, AdminProductPatch, CartLine, Category, CheckoutConflict, CheckoutRequest, CheckoutResponse, ImageOrderInput, Money, OrderAddress, OrderDetail, OrderFulfillment, OrderRefund, OrderStatus, OrderSummary, Product, ProductAvailability, ProductCard, ProductCardPage, ProductImage, ProductListQuery, ProductStatus, RefundOrderInput, ShipOrderInput, ShippingRate, ShippingRateInput };
527
+ declare const discountTypeSchema: z.ZodEnum<{
528
+ percent: "percent";
529
+ fixed: "fixed";
530
+ }>;
531
+ declare const discountCodeSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
532
+ declare const discountSchema: z.ZodObject<{
533
+ redeemedCount: z.ZodNumber;
534
+ reservedCount: z.ZodNumber;
535
+ createdAt: z.ZodString;
536
+ minSubtotalCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
537
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
538
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
+ maxRedemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
540
+ active: z.ZodBoolean;
541
+ type: z.ZodEnum<{
542
+ percent: "percent";
543
+ fixed: "fixed";
544
+ }>;
545
+ percentOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
546
+ amountOffCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
547
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ id: z.ZodString;
549
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
550
+ }, z.core.$strip>;
551
+ declare const discountInputSchema: z.ZodObject<{
552
+ active: z.ZodDefault<z.ZodBoolean>;
553
+ minSubtotalCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
554
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ maxRedemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
557
+ type: z.ZodEnum<{
558
+ percent: "percent";
559
+ fixed: "fixed";
560
+ }>;
561
+ percentOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
562
+ amountOffCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
563
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
565
+ }, z.core.$strip>;
566
+ declare const discountPatchSchema: z.ZodObject<{
567
+ minSubtotalCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
568
+ startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
569
+ endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
570
+ maxRedemptions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
571
+ active: z.ZodOptional<z.ZodBoolean>;
572
+ type: z.ZodOptional<z.ZodEnum<{
573
+ percent: "percent";
574
+ fixed: "fixed";
575
+ }>>;
576
+ percentOff: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
577
+ amountOffCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
578
+ currency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
579
+ code: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
580
+ }, z.core.$strip>;
581
+ declare const discountStatusSchema: z.ZodEnum<{
582
+ expired: "expired";
583
+ active: "active";
584
+ inactive: "inactive";
585
+ scheduled: "scheduled";
586
+ }>;
587
+ declare const adminDiscountListQuerySchema: z.ZodObject<{
588
+ status: z.ZodOptional<z.ZodEnum<{
589
+ expired: "expired";
590
+ active: "active";
591
+ inactive: "inactive";
592
+ scheduled: "scheduled";
593
+ }>>;
594
+ q: z.ZodOptional<z.ZodString>;
595
+ cursor: z.ZodOptional<z.ZodString>;
596
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
597
+ }, z.core.$strip>;
598
+ declare const adminDiscountPageSchema: z.ZodObject<{
599
+ items: z.ZodArray<z.ZodObject<{
600
+ redeemedCount: z.ZodNumber;
601
+ reservedCount: z.ZodNumber;
602
+ createdAt: z.ZodString;
603
+ minSubtotalCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
604
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
606
+ maxRedemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
607
+ active: z.ZodBoolean;
608
+ type: z.ZodEnum<{
609
+ percent: "percent";
610
+ fixed: "fixed";
611
+ }>;
612
+ percentOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
613
+ amountOffCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
614
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
+ id: z.ZodString;
616
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
617
+ }, z.core.$strip>>;
618
+ nextCursor: z.ZodNullable<z.ZodString>;
619
+ }, z.core.$strip>;
620
+ declare const discountPreviewRequestSchema: z.ZodObject<{
621
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
622
+ items: z.ZodArray<z.ZodObject<{
623
+ productId: z.ZodString;
624
+ quantity: z.ZodNumber;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strip>;
627
+ declare const discountPreviewSchema: z.ZodObject<{
628
+ code: z.ZodString;
629
+ discountCents: z.ZodNumber;
630
+ subtotalCents: z.ZodNumber;
631
+ currency: z.ZodString;
632
+ }, z.core.$strip>;
633
+ declare const discountRejectionReasonSchema: z.ZodEnum<{
634
+ currency: "currency";
635
+ expired: "expired";
636
+ inactive: "inactive";
637
+ not_found: "not_found";
638
+ not_started: "not_started";
639
+ min_subtotal: "min_subtotal";
640
+ exhausted: "exhausted";
641
+ }>;
642
+ declare const discountRejectionSchema: z.ZodObject<{
643
+ error: z.ZodLiteral<"DISCOUNT_INVALID">;
644
+ reason: z.ZodEnum<{
645
+ currency: "currency";
646
+ expired: "expired";
647
+ inactive: "inactive";
648
+ not_found: "not_found";
649
+ not_started: "not_started";
650
+ min_subtotal: "min_subtotal";
651
+ exhausted: "exhausted";
652
+ }>;
653
+ }, z.core.$strip>;
654
+ type DiscountType = z.infer<typeof discountTypeSchema>;
655
+ type Discount = z.infer<typeof discountSchema>;
656
+ type DiscountStatus = z.infer<typeof discountStatusSchema>;
657
+ type AdminDiscountListQuery = z.infer<typeof adminDiscountListQuerySchema>;
658
+ type AdminDiscountPage = z.infer<typeof adminDiscountPageSchema>;
659
+ type DiscountInput = z.input<typeof discountInputSchema>;
660
+ type DiscountPatch = z.input<typeof discountPatchSchema>;
661
+ type DiscountPreviewRequest = z.input<typeof discountPreviewRequestSchema>;
662
+ type DiscountPreview = z.infer<typeof discountPreviewSchema>;
663
+ type DiscountRejectionReason = z.infer<typeof discountRejectionReasonSchema>;
664
+ type DiscountRejection = z.infer<typeof discountRejectionSchema>;
665
+
666
+ export { adminDiscountListQuerySchema, adminDiscountPageSchema, adminOrderDetailSchema, adminOrderListItemSchema, adminOrderListQuerySchema, adminOrderPageSchema, adminProductImageSchema, adminProductInputSchema, adminProductListQuerySchema, adminProductPageSchema, adminProductPatchSchema, adminProductSchema, availabilitySchema, cartLineSchema, categorySchema, checkoutConflictSchema, checkoutRequestSchema, checkoutResponseSchema, discountCodeSchema, discountInputSchema, discountPatchSchema, discountPreviewRequestSchema, discountPreviewSchema, discountRejectionReasonSchema, discountRejectionSchema, discountSchema, discountStatusSchema, discountTypeSchema, imageOrderInputSchema, moneySchema, orderAddressSchema, orderDetailSchema, orderFulfillmentSchema, orderRefundSchema, orderStatusSchema, orderSummarySchema, productCardPageSchema, productCardSchema, productImagePatchSchema, productImageSchema, productListQuerySchema, productSchema, productStatusSchema, refundOrderInputSchema, shipOrderInputSchema, shippingRateSchema, shippingRatesInputSchema };
667
+ export type { AdminDiscountListQuery, AdminDiscountPage, AdminOrderDetail, AdminOrderListItem, AdminOrderListQuery, AdminOrderPage, AdminProduct, AdminProductImage, AdminProductInput, AdminProductListQuery, AdminProductPage, AdminProductPatch, CartLine, Category, CheckoutConflict, CheckoutRequest, CheckoutResponse, Discount, DiscountInput, DiscountPatch, DiscountPreview, DiscountPreviewRequest, DiscountRejection, DiscountRejectionReason, DiscountStatus, DiscountType, ImageOrderInput, Money, OrderAddress, OrderDetail, OrderFulfillment, OrderRefund, OrderStatus, OrderSummary, Product, ProductAvailability, ProductCard, ProductCardPage, ProductImage, ProductImagePatch, ProductListQuery, ProductStatus, RefundOrderInput, ShipOrderInput, ShippingRate, ShippingRateInput };
package/dist/index.d.ts CHANGED
@@ -114,6 +114,7 @@ declare const checkoutRequestSchema: z.ZodObject<{
114
114
  productId: z.ZodString;
115
115
  quantity: z.ZodNumber;
116
116
  }, z.core.$strip>>;
117
+ discountCode: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
117
118
  }, z.core.$strip>;
118
119
  declare const checkoutResponseSchema: z.ZodObject<{
119
120
  url: z.ZodString;
@@ -167,6 +168,8 @@ declare const orderSummarySchema: z.ZodObject<{
167
168
  refunded: "refunded";
168
169
  }>;
169
170
  subtotalCents: z.ZodNumber;
171
+ discountCents: z.ZodDefault<z.ZodNumber>;
172
+ discountCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
170
173
  shippingCents: z.ZodNumber;
171
174
  shippingLabel: z.ZodNullable<z.ZodString>;
172
175
  totalCents: z.ZodNumber;
@@ -216,6 +219,8 @@ declare const orderDetailSchema: z.ZodObject<{
216
219
  refunded: "refunded";
217
220
  }>;
218
221
  subtotalCents: z.ZodNumber;
222
+ discountCents: z.ZodDefault<z.ZodNumber>;
223
+ discountCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
219
224
  shippingCents: z.ZodNumber;
220
225
  shippingLabel: z.ZodNullable<z.ZodString>;
221
226
  totalCents: z.ZodNumber;
@@ -333,6 +338,9 @@ declare const adminProductSchema: z.ZodObject<{
333
338
  declare const imageOrderInputSchema: z.ZodObject<{
334
339
  imageIds: z.ZodArray<z.ZodString>;
335
340
  }, z.core.$strip>;
341
+ declare const productImagePatchSchema: z.ZodObject<{
342
+ alt: z.ZodString;
343
+ }, z.core.$strip>;
336
344
  declare const adminProductListQuerySchema: z.ZodObject<{
337
345
  status: z.ZodOptional<z.ZodEnum<{
338
346
  active: "active";
@@ -379,6 +387,7 @@ type AdminProductInput = z.input<typeof adminProductInputSchema>;
379
387
  type AdminProductPatch = z.input<typeof adminProductPatchSchema>;
380
388
  type AdminProductImage = z.infer<typeof adminProductImageSchema>;
381
389
  type AdminProduct = z.infer<typeof adminProductSchema>;
390
+ type ProductImagePatch = z.infer<typeof productImagePatchSchema>;
382
391
  type ImageOrderInput = z.infer<typeof imageOrderInputSchema>;
383
392
  type AdminProductListQuery = z.input<typeof adminProductListQuerySchema>;
384
393
  type AdminProductPage = z.infer<typeof adminProductPageSchema>;
@@ -460,6 +469,8 @@ declare const adminOrderDetailSchema: z.ZodObject<{
460
469
  refunded: "refunded";
461
470
  }>;
462
471
  subtotalCents: z.ZodNumber;
472
+ discountCents: z.ZodDefault<z.ZodNumber>;
473
+ discountCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
463
474
  shippingCents: z.ZodNumber;
464
475
  shippingLabel: z.ZodNullable<z.ZodString>;
465
476
  totalCents: z.ZodNumber;
@@ -513,5 +524,144 @@ type AdminOrderDetail = z.infer<typeof adminOrderDetailSchema>;
513
524
  type ShipOrderInput = z.infer<typeof shipOrderInputSchema>;
514
525
  type RefundOrderInput = z.infer<typeof refundOrderInputSchema>;
515
526
 
516
- export { adminOrderDetailSchema, adminOrderListItemSchema, adminOrderListQuerySchema, adminOrderPageSchema, adminProductImageSchema, adminProductInputSchema, adminProductListQuerySchema, adminProductPageSchema, adminProductPatchSchema, adminProductSchema, availabilitySchema, cartLineSchema, categorySchema, checkoutConflictSchema, checkoutRequestSchema, checkoutResponseSchema, imageOrderInputSchema, moneySchema, orderAddressSchema, orderDetailSchema, orderFulfillmentSchema, orderRefundSchema, orderStatusSchema, orderSummarySchema, productCardPageSchema, productCardSchema, productImageSchema, productListQuerySchema, productSchema, productStatusSchema, refundOrderInputSchema, shipOrderInputSchema, shippingRateSchema, shippingRatesInputSchema };
517
- export type { AdminOrderDetail, AdminOrderListItem, AdminOrderListQuery, AdminOrderPage, AdminProduct, AdminProductImage, AdminProductInput, AdminProductListQuery, AdminProductPage, AdminProductPatch, CartLine, Category, CheckoutConflict, CheckoutRequest, CheckoutResponse, ImageOrderInput, Money, OrderAddress, OrderDetail, OrderFulfillment, OrderRefund, OrderStatus, OrderSummary, Product, ProductAvailability, ProductCard, ProductCardPage, ProductImage, ProductListQuery, ProductStatus, RefundOrderInput, ShipOrderInput, ShippingRate, ShippingRateInput };
527
+ declare const discountTypeSchema: z.ZodEnum<{
528
+ percent: "percent";
529
+ fixed: "fixed";
530
+ }>;
531
+ declare const discountCodeSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
532
+ declare const discountSchema: z.ZodObject<{
533
+ redeemedCount: z.ZodNumber;
534
+ reservedCount: z.ZodNumber;
535
+ createdAt: z.ZodString;
536
+ minSubtotalCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
537
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
538
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
+ maxRedemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
540
+ active: z.ZodBoolean;
541
+ type: z.ZodEnum<{
542
+ percent: "percent";
543
+ fixed: "fixed";
544
+ }>;
545
+ percentOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
546
+ amountOffCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
547
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ id: z.ZodString;
549
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
550
+ }, z.core.$strip>;
551
+ declare const discountInputSchema: z.ZodObject<{
552
+ active: z.ZodDefault<z.ZodBoolean>;
553
+ minSubtotalCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
554
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ maxRedemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
557
+ type: z.ZodEnum<{
558
+ percent: "percent";
559
+ fixed: "fixed";
560
+ }>;
561
+ percentOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
562
+ amountOffCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
563
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
565
+ }, z.core.$strip>;
566
+ declare const discountPatchSchema: z.ZodObject<{
567
+ minSubtotalCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
568
+ startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
569
+ endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
570
+ maxRedemptions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
571
+ active: z.ZodOptional<z.ZodBoolean>;
572
+ type: z.ZodOptional<z.ZodEnum<{
573
+ percent: "percent";
574
+ fixed: "fixed";
575
+ }>>;
576
+ percentOff: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
577
+ amountOffCents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
578
+ currency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
579
+ code: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
580
+ }, z.core.$strip>;
581
+ declare const discountStatusSchema: z.ZodEnum<{
582
+ expired: "expired";
583
+ active: "active";
584
+ inactive: "inactive";
585
+ scheduled: "scheduled";
586
+ }>;
587
+ declare const adminDiscountListQuerySchema: z.ZodObject<{
588
+ status: z.ZodOptional<z.ZodEnum<{
589
+ expired: "expired";
590
+ active: "active";
591
+ inactive: "inactive";
592
+ scheduled: "scheduled";
593
+ }>>;
594
+ q: z.ZodOptional<z.ZodString>;
595
+ cursor: z.ZodOptional<z.ZodString>;
596
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
597
+ }, z.core.$strip>;
598
+ declare const adminDiscountPageSchema: z.ZodObject<{
599
+ items: z.ZodArray<z.ZodObject<{
600
+ redeemedCount: z.ZodNumber;
601
+ reservedCount: z.ZodNumber;
602
+ createdAt: z.ZodString;
603
+ minSubtotalCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
604
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
606
+ maxRedemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
607
+ active: z.ZodBoolean;
608
+ type: z.ZodEnum<{
609
+ percent: "percent";
610
+ fixed: "fixed";
611
+ }>;
612
+ percentOff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
613
+ amountOffCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
614
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
+ id: z.ZodString;
616
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
617
+ }, z.core.$strip>>;
618
+ nextCursor: z.ZodNullable<z.ZodString>;
619
+ }, z.core.$strip>;
620
+ declare const discountPreviewRequestSchema: z.ZodObject<{
621
+ code: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
622
+ items: z.ZodArray<z.ZodObject<{
623
+ productId: z.ZodString;
624
+ quantity: z.ZodNumber;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strip>;
627
+ declare const discountPreviewSchema: z.ZodObject<{
628
+ code: z.ZodString;
629
+ discountCents: z.ZodNumber;
630
+ subtotalCents: z.ZodNumber;
631
+ currency: z.ZodString;
632
+ }, z.core.$strip>;
633
+ declare const discountRejectionReasonSchema: z.ZodEnum<{
634
+ currency: "currency";
635
+ expired: "expired";
636
+ inactive: "inactive";
637
+ not_found: "not_found";
638
+ not_started: "not_started";
639
+ min_subtotal: "min_subtotal";
640
+ exhausted: "exhausted";
641
+ }>;
642
+ declare const discountRejectionSchema: z.ZodObject<{
643
+ error: z.ZodLiteral<"DISCOUNT_INVALID">;
644
+ reason: z.ZodEnum<{
645
+ currency: "currency";
646
+ expired: "expired";
647
+ inactive: "inactive";
648
+ not_found: "not_found";
649
+ not_started: "not_started";
650
+ min_subtotal: "min_subtotal";
651
+ exhausted: "exhausted";
652
+ }>;
653
+ }, z.core.$strip>;
654
+ type DiscountType = z.infer<typeof discountTypeSchema>;
655
+ type Discount = z.infer<typeof discountSchema>;
656
+ type DiscountStatus = z.infer<typeof discountStatusSchema>;
657
+ type AdminDiscountListQuery = z.infer<typeof adminDiscountListQuerySchema>;
658
+ type AdminDiscountPage = z.infer<typeof adminDiscountPageSchema>;
659
+ type DiscountInput = z.input<typeof discountInputSchema>;
660
+ type DiscountPatch = z.input<typeof discountPatchSchema>;
661
+ type DiscountPreviewRequest = z.input<typeof discountPreviewRequestSchema>;
662
+ type DiscountPreview = z.infer<typeof discountPreviewSchema>;
663
+ type DiscountRejectionReason = z.infer<typeof discountRejectionReasonSchema>;
664
+ type DiscountRejection = z.infer<typeof discountRejectionSchema>;
665
+
666
+ export { adminDiscountListQuerySchema, adminDiscountPageSchema, adminOrderDetailSchema, adminOrderListItemSchema, adminOrderListQuerySchema, adminOrderPageSchema, adminProductImageSchema, adminProductInputSchema, adminProductListQuerySchema, adminProductPageSchema, adminProductPatchSchema, adminProductSchema, availabilitySchema, cartLineSchema, categorySchema, checkoutConflictSchema, checkoutRequestSchema, checkoutResponseSchema, discountCodeSchema, discountInputSchema, discountPatchSchema, discountPreviewRequestSchema, discountPreviewSchema, discountRejectionReasonSchema, discountRejectionSchema, discountSchema, discountStatusSchema, discountTypeSchema, imageOrderInputSchema, moneySchema, orderAddressSchema, orderDetailSchema, orderFulfillmentSchema, orderRefundSchema, orderStatusSchema, orderSummarySchema, productCardPageSchema, productCardSchema, productImagePatchSchema, productImageSchema, productListQuerySchema, productSchema, productStatusSchema, refundOrderInputSchema, shipOrderInputSchema, shippingRateSchema, shippingRatesInputSchema };
667
+ export type { AdminDiscountListQuery, AdminDiscountPage, AdminOrderDetail, AdminOrderListItem, AdminOrderListQuery, AdminOrderPage, AdminProduct, AdminProductImage, AdminProductInput, AdminProductListQuery, AdminProductPage, AdminProductPatch, CartLine, Category, CheckoutConflict, CheckoutRequest, CheckoutResponse, Discount, DiscountInput, DiscountPatch, DiscountPreview, DiscountPreviewRequest, DiscountRejection, DiscountRejectionReason, DiscountStatus, DiscountType, ImageOrderInput, Money, OrderAddress, OrderDetail, OrderFulfillment, OrderRefund, OrderStatus, OrderSummary, Product, ProductAvailability, ProductCard, ProductCardPage, ProductImage, ProductImagePatch, ProductListQuery, ProductStatus, RefundOrderInput, ShipOrderInput, ShippingRate, ShippingRateInput };