ce-storefront 0.3.4 → 0.3.6
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/README.md +26 -37
- package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
- package/docs/sdks/customers/README.md +236 -0
- package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
- package/docs/sdks/orders/README.md +80 -1
- package/docs/sdks/payments/README.md +242 -2
- package/docs/sdks/products/README.md +1 -1
- package/esm/funcs/catalogProductsGet.d.ts +1 -1
- package/esm/funcs/catalogProductsGet.js +1 -1
- package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
- package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
- package/esm/funcs/customersGetCustomersId.js.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
- package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
- package/esm/funcs/customersPostCustomers.js.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
- package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
- package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
- package/esm/funcs/paymentsGetMethods.d.ts +1 -1
- package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
- package/esm/funcs/paymentsGetMethods.js +3 -3
- package/esm/funcs/paymentsGetMethods.js.map +1 -1
- package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/analyticsevent.d.ts +8 -8
- package/esm/models/components/analyticsevent.d.ts.map +1 -1
- package/esm/models/components/analyticsevent.js +12 -12
- package/esm/models/components/analyticsevent.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +125 -0
- package/esm/models/components/associatedoption.d.ts.map +1 -0
- package/esm/models/components/associatedoption.js +107 -0
- package/esm/models/components/associatedoption.js.map +1 -0
- package/esm/models/components/cart.d.ts +16 -16
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +16 -16
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/createcustomer.d.ts +1 -1
- package/esm/models/components/createcustomer.d.ts.map +1 -1
- package/esm/models/components/createcustomer.js +1 -1
- package/esm/models/components/createcustomer.js.map +1 -1
- package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
- package/esm/models/components/customeraddress.d.ts.map +1 -0
- package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
- package/esm/models/components/customeraddress.js.map +1 -0
- package/esm/models/components/discountbasedpromotion.d.ts +0 -2
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +0 -4
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +0 -2
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +0 -4
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +2 -7
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +2 -6
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/index.d.ts +6 -8
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +6 -8
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -1
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +1 -1
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/{productlist.d.ts → product.d.ts} +38 -78
- package/esm/models/components/product.d.ts.map +1 -0
- package/esm/models/components/{productlist.js → product.js} +37 -98
- package/esm/models/components/product.js.map +1 -0
- package/esm/models/components/productattribute.d.ts +97 -64
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +67 -128
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +2 -2
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +2 -2
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +63 -165
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +70 -204
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productlistresponse.d.ts +24 -3
- package/esm/models/components/productlistresponse.d.ts.map +1 -1
- package/esm/models/components/productlistresponse.js +24 -3
- package/esm/models/components/productlistresponse.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +11 -5
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productshipping.d.ts +0 -2
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +0 -4
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/{promotion.d.ts → promotiondetail.d.ts} +29 -29
- package/esm/models/components/promotiondetail.d.ts.map +1 -0
- package/esm/models/components/{promotion.js → promotiondetail.js} +29 -29
- package/esm/models/components/promotiondetail.js.map +1 -0
- package/esm/models/components/seo.d.ts +6 -6
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +6 -19
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/{skuinfo.d.ts → sku.d.ts} +56 -48
- package/esm/models/components/sku.d.ts.map +1 -0
- package/esm/models/components/{skuinfo.js → sku.js} +65 -57
- package/esm/models/components/sku.js.map +1 -0
- package/esm/models/components/variant.d.ts +13 -52
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +5 -55
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +31 -60
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +20 -57
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +118 -0
- package/esm/models/components/variantoption.d.ts.map +1 -0
- package/esm/models/components/variantoption.js +114 -0
- package/esm/models/components/variantoption.js.map +1 -0
- package/esm/models/components/volumebasedpromotion.d.ts +0 -5
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +0 -4
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/operations/getpaymentmethods.d.ts +143 -0
- package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
- package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
- package/esm/models/operations/getpaymentmethods.js.map +1 -0
- package/esm/models/operations/getpromotions.d.ts +2 -2
- package/esm/models/operations/getpromotions.d.ts.map +1 -1
- package/esm/models/operations/getpromotions.js +2 -2
- package/esm/models/operations/getpromotions.js.map +1 -1
- package/esm/models/operations/getsimilar.d.ts +2 -27
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +2 -27
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/getskus.d.ts +2 -2
- package/esm/models/operations/getskus.d.ts.map +1 -1
- package/esm/models/operations/getskus.js +2 -2
- package/esm/models/operations/getskus.js.map +1 -1
- package/esm/models/operations/getwishtlist.d.ts +2 -2
- package/esm/models/operations/getwishtlist.d.ts.map +1 -1
- package/esm/models/operations/getwishtlist.js +2 -2
- package/esm/models/operations/getwishtlist.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/postcartitemid.d.ts +15 -15
- package/esm/models/operations/postcartitemid.d.ts.map +1 -1
- package/esm/models/operations/postcartitemid.js +15 -15
- package/esm/models/operations/postcartitemid.js.map +1 -1
- package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
- package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
- package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
- package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
- package/esm/sdk/customers.d.ts +24 -1
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +31 -0
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
- package/esm/sdk/juspay.d.ts.map +1 -0
- package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
- package/esm/sdk/juspay.js.map +1 -0
- package/esm/sdk/orders.d.ts +9 -2
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +12 -2
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +23 -1
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +31 -0
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +1 -1
- package/esm/sdk/products.js +1 -1
- package/esm/sdk/sdk.d.ts +3 -12
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -15
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogProductsGet.ts +1 -1
- package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
- package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
- package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
- package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
- package/src/funcs/paymentsGetMethods.ts +6 -7
- package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
- package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/analyticsevent.ts +16 -15
- package/src/models/components/associatedoption.ts +217 -0
- package/src/models/components/cart.ts +25 -25
- package/src/models/components/createcustomer.ts +1 -1
- package/src/models/components/discountbasedpromotion.ts +0 -6
- package/src/models/components/fixedpricepromotion.ts +0 -6
- package/src/models/components/freegoodspromotion.ts +4 -13
- package/src/models/components/index.ts +6 -8
- package/src/models/components/orderdetail.ts +1 -1
- package/src/models/components/{skuinfo.ts → product.ts} +111 -96
- package/src/models/components/productattribute.ts +162 -188
- package/src/models/components/productcategory.ts +4 -4
- package/src/models/components/productdetail.ts +143 -418
- package/src/models/components/productlistresponse.ts +55 -9
- package/src/models/components/productshipping.ts +0 -6
- package/src/models/components/{promotion.ts → promotiondetail.ts} +47 -45
- package/src/models/components/seo.ts +12 -25
- package/src/models/components/sku.ts +244 -0
- package/src/models/components/variant.ts +14 -119
- package/src/models/components/variantdetail.ts +51 -143
- package/src/models/components/variantoption.ts +214 -0
- package/src/models/components/volumebasedpromotion.ts +0 -9
- package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
- package/src/models/operations/getpromotions.ts +4 -4
- package/src/models/operations/getsimilar.ts +4 -62
- package/src/models/operations/getskus.ts +4 -4
- package/src/models/operations/getwishtlist.ts +4 -4
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/postcartitemid.ts +27 -25
- package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
- package/src/sdk/customers.ts +58 -1
- package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
- package/src/sdk/orders.ts +22 -4
- package/src/sdk/payments.ts +57 -2
- package/src/sdk/products.ts +1 -1
- package/src/sdk/sdk.ts +4 -22
- package/docs/sdks/customersapi/README.md +0 -321
- package/docs/sdks/ordersapi/README.md +0 -86
- package/docs/sdks/paymentsapi/README.md +0 -247
- package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
- package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
- package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
- package/esm/models/components/customeraddressinput.d.ts.map +0 -1
- package/esm/models/components/customeraddressinput.js.map +0 -1
- package/esm/models/components/productbundleitem.d.ts +0 -47
- package/esm/models/components/productbundleitem.d.ts.map +0 -1
- package/esm/models/components/productbundleitem.js +0 -66
- package/esm/models/components/productbundleitem.js.map +0 -1
- package/esm/models/components/productlist.d.ts.map +0 -1
- package/esm/models/components/productlist.js.map +0 -1
- package/esm/models/components/productpackaging.d.ts +0 -68
- package/esm/models/components/productpackaging.d.ts.map +0 -1
- package/esm/models/components/productpackaging.js +0 -88
- package/esm/models/components/productpackaging.js.map +0 -1
- package/esm/models/components/promotion.d.ts.map +0 -1
- package/esm/models/components/promotion.js.map +0 -1
- package/esm/models/components/recommendedproduct.d.ts +0 -155
- package/esm/models/components/recommendedproduct.d.ts.map +0 -1
- package/esm/models/components/recommendedproduct.js +0 -193
- package/esm/models/components/recommendedproduct.js.map +0 -1
- package/esm/models/components/saleschannel.d.ts +0 -39
- package/esm/models/components/saleschannel.d.ts.map +0 -1
- package/esm/models/components/saleschannel.js +0 -53
- package/esm/models/components/saleschannel.js.map +0 -1
- package/esm/models/components/skuinfo.d.ts.map +0 -1
- package/esm/models/components/skuinfo.js.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
- package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
- package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
- package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
- package/esm/models/operations/getrecommendedproducts.js +0 -87
- package/esm/models/operations/getrecommendedproducts.js.map +0 -1
- package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
- package/esm/sdk/cestorefrontpayments.js.map +0 -1
- package/esm/sdk/customersapi.d.ts +0 -34
- package/esm/sdk/customersapi.d.ts.map +0 -1
- package/esm/sdk/customersapi.js +0 -48
- package/esm/sdk/customersapi.js.map +0 -1
- package/esm/sdk/ordersapi.d.ts +0 -12
- package/esm/sdk/ordersapi.d.ts.map +0 -1
- package/esm/sdk/ordersapi.js +0 -18
- package/esm/sdk/ordersapi.js.map +0 -1
- package/esm/sdk/paymentsapi.d.ts +0 -27
- package/esm/sdk/paymentsapi.d.ts.map +0 -1
- package/esm/sdk/paymentsapi.js +0 -39
- package/esm/sdk/paymentsapi.js.map +0 -1
- package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
- package/esm/sdk/paymentsapijuspay.js.map +0 -1
- package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
- package/src/models/components/productbundleitem.ts +0 -127
- package/src/models/components/productlist.ts +0 -368
- package/src/models/components/productpackaging.ts +0 -162
- package/src/models/components/recommendedproduct.ts +0 -385
- package/src/models/components/saleschannel.ts +0 -96
- package/src/models/operations/getrecommendedproducts.ts +0 -206
- package/src/sdk/customersapi.ts +0 -82
- package/src/sdk/ordersapi.ts +0 -27
- package/src/sdk/paymentsapi.ts +0 -64
- package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
|
@@ -1,197 +1,95 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { ProductPromotion, ProductPromotion$Outbound } from "./productpromotion.js";
|
|
11
|
-
import { ProductReview, ProductReview$Outbound } from "./productreview.js";
|
|
12
|
-
import { ProductShipping, ProductShipping$Outbound } from "./productshipping.js";
|
|
13
|
-
import { ProductSubscription, ProductSubscription$Outbound } from "./productsubscription.js";
|
|
14
|
-
import { ProductVideo, ProductVideo$Outbound } from "./productvideo.js";
|
|
15
|
-
import { SalesChannel, SalesChannel$Outbound } from "./saleschannel.js";
|
|
16
|
-
import { Seo, Seo$Outbound } from "./seo.js";
|
|
17
|
-
import { Variant, Variant$Outbound } from "./variant.js";
|
|
18
|
-
export declare const ProductDetailProductType: {
|
|
19
|
-
readonly Physical: "physical";
|
|
20
|
-
readonly Digital: "digital";
|
|
21
|
-
readonly Bundle: "bundle";
|
|
22
|
-
};
|
|
23
|
-
export type ProductDetailProductType = ClosedEnum<typeof ProductDetailProductType>;
|
|
24
|
-
export type ProductDetailVariantOptions = {
|
|
25
|
-
optionName?: string | undefined;
|
|
26
|
-
optionValue?: Array<string> | undefined;
|
|
27
|
-
};
|
|
28
|
-
export type ProductDetailMetadata = {
|
|
29
|
-
name?: string | undefined;
|
|
30
|
-
value?: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
export type ProductDetail = {
|
|
33
|
-
/**
|
|
34
|
-
* The ULID of the product
|
|
35
|
-
*/
|
|
36
|
-
id?: string | undefined;
|
|
37
|
-
name?: string | undefined;
|
|
38
|
-
description?: string | undefined;
|
|
39
|
-
shortDescription?: string | undefined;
|
|
40
|
-
productType?: ProductDetailProductType | undefined;
|
|
41
|
-
active?: boolean | undefined;
|
|
42
|
-
sku?: string | undefined;
|
|
43
|
-
stockAvailable?: boolean | undefined;
|
|
44
|
-
isFeatured?: boolean | undefined;
|
|
45
|
-
onOffer?: boolean | undefined;
|
|
46
|
-
onSubscription?: boolean | undefined;
|
|
47
|
-
onPromotion?: boolean | undefined;
|
|
48
|
-
hasVariant?: boolean | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* this will be used if has_variant is true, to auto set default values.
|
|
51
|
-
*/
|
|
52
|
-
variantOptions?: Array<ProductDetailVariantOptions> | null | undefined;
|
|
53
|
-
attributes?: Array<ProductAttribute> | undefined;
|
|
54
|
-
images?: Array<ProductImage> | undefined;
|
|
55
|
-
pricing?: ProductPricing | undefined;
|
|
56
|
-
shipping?: ProductShipping | undefined;
|
|
57
|
-
tags?: Array<string> | null | undefined;
|
|
58
|
-
categoryIds?: Array<string> | undefined;
|
|
59
|
-
reviewsRatingSum?: number | undefined;
|
|
60
|
-
reviewsCount?: number | undefined;
|
|
61
|
-
hsnCode?: string | undefined;
|
|
62
|
-
createdAt?: Date | undefined;
|
|
63
|
-
modifiedAt?: Date | undefined;
|
|
64
|
-
videos?: Array<ProductVideo> | undefined;
|
|
65
|
-
promotion?: Array<ProductPromotion> | undefined;
|
|
66
|
-
subscription?: Array<ProductSubscription> | undefined;
|
|
67
|
-
packaging?: ProductPackaging | undefined;
|
|
68
|
-
variants?: Array<Variant> | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* An array of product ULIDs
|
|
71
|
-
*/
|
|
72
|
-
upsellingProductIds?: Array<string> | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* An array of product ULIDs
|
|
75
|
-
*/
|
|
76
|
-
crosssellingProductIds?: Array<string> | undefined;
|
|
77
|
-
reviews?: Array<ProductReview> | undefined;
|
|
78
|
-
bundleItems?: Array<ProductBundleItem> | undefined;
|
|
79
|
-
salesChannels?: Array<SalesChannel> | undefined;
|
|
80
|
-
metadata?: Array<ProductDetailMetadata> | null | undefined;
|
|
81
|
-
seo?: Seo | undefined;
|
|
82
|
-
reviewsTags?: Array<string> | undefined;
|
|
83
|
-
};
|
|
4
|
+
export type BundleProduct2 = {};
|
|
5
|
+
export type BundleProduct = BundleProduct2 | Array<any>;
|
|
6
|
+
export type Product2 = {};
|
|
7
|
+
export type ProductDetailProduct = Product2 | Array<any>;
|
|
8
|
+
export type ProductDetail = Product2 | Array<any> | BundleProduct2 | Array<any>;
|
|
84
9
|
/** @internal */
|
|
85
|
-
export declare const
|
|
10
|
+
export declare const BundleProduct2$inboundSchema: z.ZodType<BundleProduct2, z.ZodTypeDef, unknown>;
|
|
86
11
|
/** @internal */
|
|
87
|
-
export
|
|
12
|
+
export type BundleProduct2$Outbound = {};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const BundleProduct2$outboundSchema: z.ZodType<BundleProduct2$Outbound, z.ZodTypeDef, BundleProduct2>;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
+
*/
|
|
19
|
+
export declare namespace BundleProduct2$ {
|
|
20
|
+
/** @deprecated use `BundleProduct2$inboundSchema` instead. */
|
|
21
|
+
const inboundSchema: z.ZodType<BundleProduct2, z.ZodTypeDef, unknown>;
|
|
22
|
+
/** @deprecated use `BundleProduct2$outboundSchema` instead. */
|
|
23
|
+
const outboundSchema: z.ZodType<BundleProduct2$Outbound, z.ZodTypeDef, BundleProduct2>;
|
|
24
|
+
/** @deprecated use `BundleProduct2$Outbound` instead. */
|
|
25
|
+
type Outbound = BundleProduct2$Outbound;
|
|
26
|
+
}
|
|
27
|
+
export declare function bundleProduct2ToJSON(bundleProduct2: BundleProduct2): string;
|
|
28
|
+
export declare function bundleProduct2FromJSON(jsonString: string): SafeParseResult<BundleProduct2, SDKValidationError>;
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const BundleProduct$inboundSchema: z.ZodType<BundleProduct, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type BundleProduct$Outbound = BundleProduct2$Outbound | Array<any>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const BundleProduct$outboundSchema: z.ZodType<BundleProduct$Outbound, z.ZodTypeDef, BundleProduct>;
|
|
88
35
|
/**
|
|
89
36
|
* @internal
|
|
90
37
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
38
|
*/
|
|
92
|
-
export declare namespace
|
|
93
|
-
/** @deprecated use `
|
|
94
|
-
const inboundSchema: z.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/** @deprecated use `ProductDetailProductType$outboundSchema` instead. */
|
|
100
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
101
|
-
readonly Physical: "physical";
|
|
102
|
-
readonly Digital: "digital";
|
|
103
|
-
readonly Bundle: "bundle";
|
|
104
|
-
}>;
|
|
39
|
+
export declare namespace BundleProduct$ {
|
|
40
|
+
/** @deprecated use `BundleProduct$inboundSchema` instead. */
|
|
41
|
+
const inboundSchema: z.ZodType<BundleProduct, z.ZodTypeDef, unknown>;
|
|
42
|
+
/** @deprecated use `BundleProduct$outboundSchema` instead. */
|
|
43
|
+
const outboundSchema: z.ZodType<BundleProduct$Outbound, z.ZodTypeDef, BundleProduct>;
|
|
44
|
+
/** @deprecated use `BundleProduct$Outbound` instead. */
|
|
45
|
+
type Outbound = BundleProduct$Outbound;
|
|
105
46
|
}
|
|
47
|
+
export declare function bundleProductToJSON(bundleProduct: BundleProduct): string;
|
|
48
|
+
export declare function bundleProductFromJSON(jsonString: string): SafeParseResult<BundleProduct, SDKValidationError>;
|
|
106
49
|
/** @internal */
|
|
107
|
-
export declare const
|
|
50
|
+
export declare const Product2$inboundSchema: z.ZodType<Product2, z.ZodTypeDef, unknown>;
|
|
108
51
|
/** @internal */
|
|
109
|
-
export type
|
|
110
|
-
option_name?: string | undefined;
|
|
111
|
-
option_value?: Array<string> | undefined;
|
|
112
|
-
};
|
|
52
|
+
export type Product2$Outbound = {};
|
|
113
53
|
/** @internal */
|
|
114
|
-
export declare const
|
|
54
|
+
export declare const Product2$outboundSchema: z.ZodType<Product2$Outbound, z.ZodTypeDef, Product2>;
|
|
115
55
|
/**
|
|
116
56
|
* @internal
|
|
117
57
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
58
|
*/
|
|
119
|
-
export declare namespace
|
|
120
|
-
/** @deprecated use `
|
|
121
|
-
const inboundSchema: z.ZodType<
|
|
122
|
-
/** @deprecated use `
|
|
123
|
-
const outboundSchema: z.ZodType<
|
|
124
|
-
/** @deprecated use `
|
|
125
|
-
type Outbound =
|
|
59
|
+
export declare namespace Product2$ {
|
|
60
|
+
/** @deprecated use `Product2$inboundSchema` instead. */
|
|
61
|
+
const inboundSchema: z.ZodType<Product2, z.ZodTypeDef, unknown>;
|
|
62
|
+
/** @deprecated use `Product2$outboundSchema` instead. */
|
|
63
|
+
const outboundSchema: z.ZodType<Product2$Outbound, z.ZodTypeDef, Product2>;
|
|
64
|
+
/** @deprecated use `Product2$Outbound` instead. */
|
|
65
|
+
type Outbound = Product2$Outbound;
|
|
126
66
|
}
|
|
127
|
-
export declare function
|
|
128
|
-
export declare function
|
|
67
|
+
export declare function product2ToJSON(product2: Product2): string;
|
|
68
|
+
export declare function product2FromJSON(jsonString: string): SafeParseResult<Product2, SDKValidationError>;
|
|
129
69
|
/** @internal */
|
|
130
|
-
export declare const
|
|
70
|
+
export declare const ProductDetailProduct$inboundSchema: z.ZodType<ProductDetailProduct, z.ZodTypeDef, unknown>;
|
|
131
71
|
/** @internal */
|
|
132
|
-
export type
|
|
133
|
-
name?: string | undefined;
|
|
134
|
-
value?: string | undefined;
|
|
135
|
-
};
|
|
72
|
+
export type ProductDetailProduct$Outbound = Product2$Outbound | Array<any>;
|
|
136
73
|
/** @internal */
|
|
137
|
-
export declare const
|
|
74
|
+
export declare const ProductDetailProduct$outboundSchema: z.ZodType<ProductDetailProduct$Outbound, z.ZodTypeDef, ProductDetailProduct>;
|
|
138
75
|
/**
|
|
139
76
|
* @internal
|
|
140
77
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
141
78
|
*/
|
|
142
|
-
export declare namespace
|
|
143
|
-
/** @deprecated use `
|
|
144
|
-
const inboundSchema: z.ZodType<
|
|
145
|
-
/** @deprecated use `
|
|
146
|
-
const outboundSchema: z.ZodType<
|
|
147
|
-
/** @deprecated use `
|
|
148
|
-
type Outbound =
|
|
79
|
+
export declare namespace ProductDetailProduct$ {
|
|
80
|
+
/** @deprecated use `ProductDetailProduct$inboundSchema` instead. */
|
|
81
|
+
const inboundSchema: z.ZodType<ProductDetailProduct, z.ZodTypeDef, unknown>;
|
|
82
|
+
/** @deprecated use `ProductDetailProduct$outboundSchema` instead. */
|
|
83
|
+
const outboundSchema: z.ZodType<ProductDetailProduct$Outbound, z.ZodTypeDef, ProductDetailProduct>;
|
|
84
|
+
/** @deprecated use `ProductDetailProduct$Outbound` instead. */
|
|
85
|
+
type Outbound = ProductDetailProduct$Outbound;
|
|
149
86
|
}
|
|
150
|
-
export declare function
|
|
151
|
-
export declare function
|
|
87
|
+
export declare function productDetailProductToJSON(productDetailProduct: ProductDetailProduct): string;
|
|
88
|
+
export declare function productDetailProductFromJSON(jsonString: string): SafeParseResult<ProductDetailProduct, SDKValidationError>;
|
|
152
89
|
/** @internal */
|
|
153
90
|
export declare const ProductDetail$inboundSchema: z.ZodType<ProductDetail, z.ZodTypeDef, unknown>;
|
|
154
91
|
/** @internal */
|
|
155
|
-
export type ProductDetail$Outbound =
|
|
156
|
-
id?: string | undefined;
|
|
157
|
-
name?: string | undefined;
|
|
158
|
-
description?: string | undefined;
|
|
159
|
-
short_description?: string | undefined;
|
|
160
|
-
product_type?: string | undefined;
|
|
161
|
-
active: boolean;
|
|
162
|
-
sku?: string | undefined;
|
|
163
|
-
stock_available: boolean;
|
|
164
|
-
is_featured: boolean;
|
|
165
|
-
on_offer: boolean;
|
|
166
|
-
on_subscription: boolean;
|
|
167
|
-
on_promotion: boolean;
|
|
168
|
-
has_variant: boolean;
|
|
169
|
-
variant_options?: Array<ProductDetailVariantOptions$Outbound> | null | undefined;
|
|
170
|
-
attributes?: Array<ProductAttribute$Outbound> | undefined;
|
|
171
|
-
images?: Array<ProductImage$Outbound> | undefined;
|
|
172
|
-
pricing?: ProductPricing$Outbound | undefined;
|
|
173
|
-
shipping?: ProductShipping$Outbound | undefined;
|
|
174
|
-
tags?: Array<string> | null | undefined;
|
|
175
|
-
category_ids?: Array<string> | undefined;
|
|
176
|
-
reviews_rating_sum?: number | undefined;
|
|
177
|
-
reviews_count?: number | undefined;
|
|
178
|
-
hsn_code?: string | undefined;
|
|
179
|
-
created_at?: string | undefined;
|
|
180
|
-
modified_at?: string | undefined;
|
|
181
|
-
videos?: Array<ProductVideo$Outbound> | undefined;
|
|
182
|
-
promotion?: Array<ProductPromotion$Outbound> | undefined;
|
|
183
|
-
subscription?: Array<ProductSubscription$Outbound> | undefined;
|
|
184
|
-
packaging?: ProductPackaging$Outbound | undefined;
|
|
185
|
-
variants?: Array<Variant$Outbound> | undefined;
|
|
186
|
-
upselling_product_ids?: Array<string> | undefined;
|
|
187
|
-
crossselling_product_ids?: Array<string> | undefined;
|
|
188
|
-
reviews?: Array<ProductReview$Outbound> | undefined;
|
|
189
|
-
bundle_items?: Array<ProductBundleItem$Outbound> | undefined;
|
|
190
|
-
sales_channels?: Array<SalesChannel$Outbound> | undefined;
|
|
191
|
-
metadata?: Array<ProductDetailMetadata$Outbound> | null | undefined;
|
|
192
|
-
seo?: Seo$Outbound | undefined;
|
|
193
|
-
reviews_tags?: Array<string> | undefined;
|
|
194
|
-
};
|
|
92
|
+
export type ProductDetail$Outbound = Product2$Outbound | Array<any> | BundleProduct2$Outbound | Array<any>;
|
|
195
93
|
/** @internal */
|
|
196
94
|
export declare const ProductDetail$outboundSchema: z.ZodType<ProductDetail$Outbound, z.ZodTypeDef, ProductDetail>;
|
|
197
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productdetail.d.ts","sourceRoot":"","sources":["../../../src/models/components/productdetail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"productdetail.d.ts","sourceRoot":"","sources":["../../../src/models/components/productdetail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,EAAE,CAAC;AAEhC,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAExD,MAAM,MAAM,QAAQ,GAAG,EAAE,CAAC;AAE1B,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAEhF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CACO,CAAC;AAEjB,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAEzC,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CACA,CAAC;AAEjB;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CACkE,CAAC;AAE5E,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAE1E,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAC6D,CAAC;AAE7E;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD;AAED,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CACO,CAAC;AAEjB,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CACM,CAAC;AAEjB;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C;AAED,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAC4D,CAAC;AAEtE,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAE3E,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CACgD,CAAC;AAEvE;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D;AAED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAC9B,iBAAiB,GACjB,KAAK,CAAC,GAAG,CAAC,GACV,uBAAuB,GACvB,KAAK,CAAC,GAAG,CAAC,CAAC;AAEf,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAIb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -2,235 +2,101 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ProductAttribute$inboundSchema, ProductAttribute$outboundSchema, } from "./productattribute.js";
|
|
8
|
-
import { ProductBundleItem$inboundSchema, ProductBundleItem$outboundSchema, } from "./productbundleitem.js";
|
|
9
|
-
import { ProductImage$inboundSchema, ProductImage$outboundSchema, } from "./productimage.js";
|
|
10
|
-
import { ProductPackaging$inboundSchema, ProductPackaging$outboundSchema, } from "./productpackaging.js";
|
|
11
|
-
import { ProductPricing$inboundSchema, ProductPricing$outboundSchema, } from "./productpricing.js";
|
|
12
|
-
import { ProductPromotion$inboundSchema, ProductPromotion$outboundSchema, } from "./productpromotion.js";
|
|
13
|
-
import { ProductReview$inboundSchema, ProductReview$outboundSchema, } from "./productreview.js";
|
|
14
|
-
import { ProductShipping$inboundSchema, ProductShipping$outboundSchema, } from "./productshipping.js";
|
|
15
|
-
import { ProductSubscription$inboundSchema, ProductSubscription$outboundSchema, } from "./productsubscription.js";
|
|
16
|
-
import { ProductVideo$inboundSchema, ProductVideo$outboundSchema, } from "./productvideo.js";
|
|
17
|
-
import { SalesChannel$inboundSchema, SalesChannel$outboundSchema, } from "./saleschannel.js";
|
|
18
|
-
import { Seo$inboundSchema, Seo$outboundSchema, } from "./seo.js";
|
|
19
|
-
import { Variant$inboundSchema, Variant$outboundSchema, } from "./variant.js";
|
|
20
|
-
export const ProductDetailProductType = {
|
|
21
|
-
Physical: "physical",
|
|
22
|
-
Digital: "digital",
|
|
23
|
-
Bundle: "bundle",
|
|
24
|
-
};
|
|
25
6
|
/** @internal */
|
|
26
|
-
export const
|
|
7
|
+
export const BundleProduct2$inboundSchema = z.object({});
|
|
27
8
|
/** @internal */
|
|
28
|
-
export const
|
|
9
|
+
export const BundleProduct2$outboundSchema = z.object({});
|
|
29
10
|
/**
|
|
30
11
|
* @internal
|
|
31
12
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
13
|
*/
|
|
33
|
-
export var
|
|
34
|
-
(function (
|
|
35
|
-
/** @deprecated use `
|
|
36
|
-
|
|
37
|
-
/** @deprecated use `
|
|
38
|
-
|
|
39
|
-
})(
|
|
14
|
+
export var BundleProduct2$;
|
|
15
|
+
(function (BundleProduct2$) {
|
|
16
|
+
/** @deprecated use `BundleProduct2$inboundSchema` instead. */
|
|
17
|
+
BundleProduct2$.inboundSchema = BundleProduct2$inboundSchema;
|
|
18
|
+
/** @deprecated use `BundleProduct2$outboundSchema` instead. */
|
|
19
|
+
BundleProduct2$.outboundSchema = BundleProduct2$outboundSchema;
|
|
20
|
+
})(BundleProduct2$ || (BundleProduct2$ = {}));
|
|
21
|
+
export function bundleProduct2ToJSON(bundleProduct2) {
|
|
22
|
+
return JSON.stringify(BundleProduct2$outboundSchema.parse(bundleProduct2));
|
|
23
|
+
}
|
|
24
|
+
export function bundleProduct2FromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => BundleProduct2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BundleProduct2' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const BundleProduct$inboundSchema = z.union([z.lazy(() => BundleProduct2$inboundSchema), z.array(z.any())]);
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const BundleProduct$outboundSchema = z.union([z.lazy(() => BundleProduct2$outboundSchema), z.array(z.any())]);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
+
*/
|
|
35
|
+
export var BundleProduct$;
|
|
36
|
+
(function (BundleProduct$) {
|
|
37
|
+
/** @deprecated use `BundleProduct$inboundSchema` instead. */
|
|
38
|
+
BundleProduct$.inboundSchema = BundleProduct$inboundSchema;
|
|
39
|
+
/** @deprecated use `BundleProduct$outboundSchema` instead. */
|
|
40
|
+
BundleProduct$.outboundSchema = BundleProduct$outboundSchema;
|
|
41
|
+
})(BundleProduct$ || (BundleProduct$ = {}));
|
|
42
|
+
export function bundleProductToJSON(bundleProduct) {
|
|
43
|
+
return JSON.stringify(BundleProduct$outboundSchema.parse(bundleProduct));
|
|
44
|
+
}
|
|
45
|
+
export function bundleProductFromJSON(jsonString) {
|
|
46
|
+
return safeParse(jsonString, (x) => BundleProduct$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BundleProduct' from JSON`);
|
|
47
|
+
}
|
|
40
48
|
/** @internal */
|
|
41
|
-
export const
|
|
42
|
-
option_name: z.string().optional(),
|
|
43
|
-
option_value: z.array(z.string()).optional(),
|
|
44
|
-
}).transform((v) => {
|
|
45
|
-
return remap$(v, {
|
|
46
|
-
"option_name": "optionName",
|
|
47
|
-
"option_value": "optionValue",
|
|
48
|
-
});
|
|
49
|
-
});
|
|
49
|
+
export const Product2$inboundSchema = z.object({});
|
|
50
50
|
/** @internal */
|
|
51
|
-
export const
|
|
52
|
-
optionName: z.string().optional(),
|
|
53
|
-
optionValue: z.array(z.string()).optional(),
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
optionName: "option_name",
|
|
57
|
-
optionValue: "option_value",
|
|
58
|
-
});
|
|
59
|
-
});
|
|
51
|
+
export const Product2$outboundSchema = z.object({});
|
|
60
52
|
/**
|
|
61
53
|
* @internal
|
|
62
54
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
55
|
*/
|
|
64
|
-
export var
|
|
65
|
-
(function (
|
|
66
|
-
/** @deprecated use `
|
|
67
|
-
|
|
68
|
-
/** @deprecated use `
|
|
69
|
-
|
|
70
|
-
})(
|
|
71
|
-
export function
|
|
72
|
-
return JSON.stringify(
|
|
56
|
+
export var Product2$;
|
|
57
|
+
(function (Product2$) {
|
|
58
|
+
/** @deprecated use `Product2$inboundSchema` instead. */
|
|
59
|
+
Product2$.inboundSchema = Product2$inboundSchema;
|
|
60
|
+
/** @deprecated use `Product2$outboundSchema` instead. */
|
|
61
|
+
Product2$.outboundSchema = Product2$outboundSchema;
|
|
62
|
+
})(Product2$ || (Product2$ = {}));
|
|
63
|
+
export function product2ToJSON(product2) {
|
|
64
|
+
return JSON.stringify(Product2$outboundSchema.parse(product2));
|
|
73
65
|
}
|
|
74
|
-
export function
|
|
75
|
-
return safeParse(jsonString, (x) =>
|
|
66
|
+
export function product2FromJSON(jsonString) {
|
|
67
|
+
return safeParse(jsonString, (x) => Product2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Product2' from JSON`);
|
|
76
68
|
}
|
|
77
69
|
/** @internal */
|
|
78
|
-
export const
|
|
79
|
-
name: z.string().optional(),
|
|
80
|
-
value: z.string().optional(),
|
|
81
|
-
});
|
|
70
|
+
export const ProductDetailProduct$inboundSchema = z.union([z.lazy(() => Product2$inboundSchema), z.array(z.any())]);
|
|
82
71
|
/** @internal */
|
|
83
|
-
export const
|
|
84
|
-
name: z.string().optional(),
|
|
85
|
-
value: z.string().optional(),
|
|
86
|
-
});
|
|
72
|
+
export const ProductDetailProduct$outboundSchema = z.union([z.lazy(() => Product2$outboundSchema), z.array(z.any())]);
|
|
87
73
|
/**
|
|
88
74
|
* @internal
|
|
89
75
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
76
|
*/
|
|
91
|
-
export var
|
|
92
|
-
(function (
|
|
93
|
-
/** @deprecated use `
|
|
94
|
-
|
|
95
|
-
/** @deprecated use `
|
|
96
|
-
|
|
97
|
-
})(
|
|
98
|
-
export function
|
|
99
|
-
return JSON.stringify(
|
|
77
|
+
export var ProductDetailProduct$;
|
|
78
|
+
(function (ProductDetailProduct$) {
|
|
79
|
+
/** @deprecated use `ProductDetailProduct$inboundSchema` instead. */
|
|
80
|
+
ProductDetailProduct$.inboundSchema = ProductDetailProduct$inboundSchema;
|
|
81
|
+
/** @deprecated use `ProductDetailProduct$outboundSchema` instead. */
|
|
82
|
+
ProductDetailProduct$.outboundSchema = ProductDetailProduct$outboundSchema;
|
|
83
|
+
})(ProductDetailProduct$ || (ProductDetailProduct$ = {}));
|
|
84
|
+
export function productDetailProductToJSON(productDetailProduct) {
|
|
85
|
+
return JSON.stringify(ProductDetailProduct$outboundSchema.parse(productDetailProduct));
|
|
100
86
|
}
|
|
101
|
-
export function
|
|
102
|
-
return safeParse(jsonString, (x) =>
|
|
87
|
+
export function productDetailProductFromJSON(jsonString) {
|
|
88
|
+
return safeParse(jsonString, (x) => ProductDetailProduct$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductDetailProduct' from JSON`);
|
|
103
89
|
}
|
|
104
90
|
/** @internal */
|
|
105
|
-
export const ProductDetail$inboundSchema = z.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
short_description: z.string().optional(),
|
|
110
|
-
product_type: ProductDetailProductType$inboundSchema.optional(),
|
|
111
|
-
active: z.boolean().default(true),
|
|
112
|
-
sku: z.string().optional(),
|
|
113
|
-
stock_available: z.boolean().default(true),
|
|
114
|
-
is_featured: z.boolean().default(false),
|
|
115
|
-
on_offer: z.boolean().default(false),
|
|
116
|
-
on_subscription: z.boolean().default(false),
|
|
117
|
-
on_promotion: z.boolean().default(false),
|
|
118
|
-
has_variant: z.boolean().default(false),
|
|
119
|
-
variant_options: z.nullable(z.array(z.lazy(() => ProductDetailVariantOptions$inboundSchema))).optional(),
|
|
120
|
-
attributes: z.array(ProductAttribute$inboundSchema).optional(),
|
|
121
|
-
images: z.array(ProductImage$inboundSchema).optional(),
|
|
122
|
-
pricing: ProductPricing$inboundSchema.optional(),
|
|
123
|
-
shipping: ProductShipping$inboundSchema.optional(),
|
|
124
|
-
tags: z.nullable(z.array(z.string())).optional(),
|
|
125
|
-
category_ids: z.array(z.string()).optional(),
|
|
126
|
-
reviews_rating_sum: z.number().optional(),
|
|
127
|
-
reviews_count: z.number().int().optional(),
|
|
128
|
-
hsn_code: z.string().optional(),
|
|
129
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
130
|
-
.optional(),
|
|
131
|
-
modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
132
|
-
.optional(),
|
|
133
|
-
videos: z.array(ProductVideo$inboundSchema).optional(),
|
|
134
|
-
promotion: z.array(ProductPromotion$inboundSchema).optional(),
|
|
135
|
-
subscription: z.array(ProductSubscription$inboundSchema).optional(),
|
|
136
|
-
packaging: ProductPackaging$inboundSchema.optional(),
|
|
137
|
-
variants: z.array(Variant$inboundSchema).optional(),
|
|
138
|
-
upselling_product_ids: z.array(z.string()).optional(),
|
|
139
|
-
crossselling_product_ids: z.array(z.string()).optional(),
|
|
140
|
-
reviews: z.array(ProductReview$inboundSchema).optional(),
|
|
141
|
-
bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
|
|
142
|
-
sales_channels: z.array(SalesChannel$inboundSchema).optional(),
|
|
143
|
-
metadata: z.nullable(z.array(z.lazy(() => ProductDetailMetadata$inboundSchema))).optional(),
|
|
144
|
-
seo: Seo$inboundSchema.optional(),
|
|
145
|
-
reviews_tags: z.array(z.string()).optional(),
|
|
146
|
-
}).transform((v) => {
|
|
147
|
-
return remap$(v, {
|
|
148
|
-
"short_description": "shortDescription",
|
|
149
|
-
"product_type": "productType",
|
|
150
|
-
"stock_available": "stockAvailable",
|
|
151
|
-
"is_featured": "isFeatured",
|
|
152
|
-
"on_offer": "onOffer",
|
|
153
|
-
"on_subscription": "onSubscription",
|
|
154
|
-
"on_promotion": "onPromotion",
|
|
155
|
-
"has_variant": "hasVariant",
|
|
156
|
-
"variant_options": "variantOptions",
|
|
157
|
-
"category_ids": "categoryIds",
|
|
158
|
-
"reviews_rating_sum": "reviewsRatingSum",
|
|
159
|
-
"reviews_count": "reviewsCount",
|
|
160
|
-
"hsn_code": "hsnCode",
|
|
161
|
-
"created_at": "createdAt",
|
|
162
|
-
"modified_at": "modifiedAt",
|
|
163
|
-
"upselling_product_ids": "upsellingProductIds",
|
|
164
|
-
"crossselling_product_ids": "crosssellingProductIds",
|
|
165
|
-
"bundle_items": "bundleItems",
|
|
166
|
-
"sales_channels": "salesChannels",
|
|
167
|
-
"reviews_tags": "reviewsTags",
|
|
168
|
-
});
|
|
169
|
-
});
|
|
91
|
+
export const ProductDetail$inboundSchema = z.union([
|
|
92
|
+
z.union([z.lazy(() => Product2$inboundSchema), z.array(z.any())]),
|
|
93
|
+
z.union([z.lazy(() => BundleProduct2$inboundSchema), z.array(z.any())]),
|
|
94
|
+
]);
|
|
170
95
|
/** @internal */
|
|
171
|
-
export const ProductDetail$outboundSchema = z.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
shortDescription: z.string().optional(),
|
|
176
|
-
productType: ProductDetailProductType$outboundSchema.optional(),
|
|
177
|
-
active: z.boolean().default(true),
|
|
178
|
-
sku: z.string().optional(),
|
|
179
|
-
stockAvailable: z.boolean().default(true),
|
|
180
|
-
isFeatured: z.boolean().default(false),
|
|
181
|
-
onOffer: z.boolean().default(false),
|
|
182
|
-
onSubscription: z.boolean().default(false),
|
|
183
|
-
onPromotion: z.boolean().default(false),
|
|
184
|
-
hasVariant: z.boolean().default(false),
|
|
185
|
-
variantOptions: z.nullable(z.array(z.lazy(() => ProductDetailVariantOptions$outboundSchema))).optional(),
|
|
186
|
-
attributes: z.array(ProductAttribute$outboundSchema).optional(),
|
|
187
|
-
images: z.array(ProductImage$outboundSchema).optional(),
|
|
188
|
-
pricing: ProductPricing$outboundSchema.optional(),
|
|
189
|
-
shipping: ProductShipping$outboundSchema.optional(),
|
|
190
|
-
tags: z.nullable(z.array(z.string())).optional(),
|
|
191
|
-
categoryIds: z.array(z.string()).optional(),
|
|
192
|
-
reviewsRatingSum: z.number().optional(),
|
|
193
|
-
reviewsCount: z.number().int().optional(),
|
|
194
|
-
hsnCode: z.string().optional(),
|
|
195
|
-
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
196
|
-
modifiedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
197
|
-
videos: z.array(ProductVideo$outboundSchema).optional(),
|
|
198
|
-
promotion: z.array(ProductPromotion$outboundSchema).optional(),
|
|
199
|
-
subscription: z.array(ProductSubscription$outboundSchema).optional(),
|
|
200
|
-
packaging: ProductPackaging$outboundSchema.optional(),
|
|
201
|
-
variants: z.array(Variant$outboundSchema).optional(),
|
|
202
|
-
upsellingProductIds: z.array(z.string()).optional(),
|
|
203
|
-
crosssellingProductIds: z.array(z.string()).optional(),
|
|
204
|
-
reviews: z.array(ProductReview$outboundSchema).optional(),
|
|
205
|
-
bundleItems: z.array(ProductBundleItem$outboundSchema).optional(),
|
|
206
|
-
salesChannels: z.array(SalesChannel$outboundSchema).optional(),
|
|
207
|
-
metadata: z.nullable(z.array(z.lazy(() => ProductDetailMetadata$outboundSchema))).optional(),
|
|
208
|
-
seo: Seo$outboundSchema.optional(),
|
|
209
|
-
reviewsTags: z.array(z.string()).optional(),
|
|
210
|
-
}).transform((v) => {
|
|
211
|
-
return remap$(v, {
|
|
212
|
-
shortDescription: "short_description",
|
|
213
|
-
productType: "product_type",
|
|
214
|
-
stockAvailable: "stock_available",
|
|
215
|
-
isFeatured: "is_featured",
|
|
216
|
-
onOffer: "on_offer",
|
|
217
|
-
onSubscription: "on_subscription",
|
|
218
|
-
onPromotion: "on_promotion",
|
|
219
|
-
hasVariant: "has_variant",
|
|
220
|
-
variantOptions: "variant_options",
|
|
221
|
-
categoryIds: "category_ids",
|
|
222
|
-
reviewsRatingSum: "reviews_rating_sum",
|
|
223
|
-
reviewsCount: "reviews_count",
|
|
224
|
-
hsnCode: "hsn_code",
|
|
225
|
-
createdAt: "created_at",
|
|
226
|
-
modifiedAt: "modified_at",
|
|
227
|
-
upsellingProductIds: "upselling_product_ids",
|
|
228
|
-
crosssellingProductIds: "crossselling_product_ids",
|
|
229
|
-
bundleItems: "bundle_items",
|
|
230
|
-
salesChannels: "sales_channels",
|
|
231
|
-
reviewsTags: "reviews_tags",
|
|
232
|
-
});
|
|
233
|
-
});
|
|
96
|
+
export const ProductDetail$outboundSchema = z.union([
|
|
97
|
+
z.union([z.lazy(() => Product2$outboundSchema), z.array(z.any())]),
|
|
98
|
+
z.union([z.lazy(() => BundleProduct2$outboundSchema), z.array(z.any())]),
|
|
99
|
+
]);
|
|
234
100
|
/**
|
|
235
101
|
* @internal
|
|
236
102
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|