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,368 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
ProductAttribute,
|
|
13
|
-
ProductAttribute$inboundSchema,
|
|
14
|
-
ProductAttribute$Outbound,
|
|
15
|
-
ProductAttribute$outboundSchema,
|
|
16
|
-
} from "./productattribute.js";
|
|
17
|
-
import {
|
|
18
|
-
ProductBundleItem,
|
|
19
|
-
ProductBundleItem$inboundSchema,
|
|
20
|
-
ProductBundleItem$Outbound,
|
|
21
|
-
ProductBundleItem$outboundSchema,
|
|
22
|
-
} from "./productbundleitem.js";
|
|
23
|
-
import {
|
|
24
|
-
ProductImage,
|
|
25
|
-
ProductImage$inboundSchema,
|
|
26
|
-
ProductImage$Outbound,
|
|
27
|
-
ProductImage$outboundSchema,
|
|
28
|
-
} from "./productimage.js";
|
|
29
|
-
import {
|
|
30
|
-
ProductPricing,
|
|
31
|
-
ProductPricing$inboundSchema,
|
|
32
|
-
ProductPricing$Outbound,
|
|
33
|
-
ProductPricing$outboundSchema,
|
|
34
|
-
} from "./productpricing.js";
|
|
35
|
-
import {
|
|
36
|
-
ProductPromotion,
|
|
37
|
-
ProductPromotion$inboundSchema,
|
|
38
|
-
ProductPromotion$Outbound,
|
|
39
|
-
ProductPromotion$outboundSchema,
|
|
40
|
-
} from "./productpromotion.js";
|
|
41
|
-
import {
|
|
42
|
-
ProductShipping,
|
|
43
|
-
ProductShipping$inboundSchema,
|
|
44
|
-
ProductShipping$Outbound,
|
|
45
|
-
ProductShipping$outboundSchema,
|
|
46
|
-
} from "./productshipping.js";
|
|
47
|
-
import {
|
|
48
|
-
ProductSubscription,
|
|
49
|
-
ProductSubscription$inboundSchema,
|
|
50
|
-
ProductSubscription$Outbound,
|
|
51
|
-
ProductSubscription$outboundSchema,
|
|
52
|
-
} from "./productsubscription.js";
|
|
53
|
-
import {
|
|
54
|
-
Variant,
|
|
55
|
-
Variant$inboundSchema,
|
|
56
|
-
Variant$Outbound,
|
|
57
|
-
Variant$outboundSchema,
|
|
58
|
-
} from "./variant.js";
|
|
59
|
-
|
|
60
|
-
export const ProductType = {
|
|
61
|
-
Physical: "physical",
|
|
62
|
-
Digital: "digital",
|
|
63
|
-
Bundle: "bundle",
|
|
64
|
-
} as const;
|
|
65
|
-
export type ProductType = ClosedEnum<typeof ProductType>;
|
|
66
|
-
|
|
67
|
-
export type VariantOptions = {
|
|
68
|
-
optionName?: string | undefined;
|
|
69
|
-
optionValue?: Array<string> | undefined;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export type ProductList = {
|
|
73
|
-
/**
|
|
74
|
-
* The ULID of the product
|
|
75
|
-
*/
|
|
76
|
-
id?: string | undefined;
|
|
77
|
-
name?: string | undefined;
|
|
78
|
-
description?: string | undefined;
|
|
79
|
-
shortDescription?: string | undefined;
|
|
80
|
-
productType?: ProductType | undefined;
|
|
81
|
-
active?: boolean | undefined;
|
|
82
|
-
sku?: string | undefined;
|
|
83
|
-
stockAvailable?: boolean | undefined;
|
|
84
|
-
isFeatured?: boolean | undefined;
|
|
85
|
-
onOffer?: boolean | undefined;
|
|
86
|
-
onSubscription?: boolean | undefined;
|
|
87
|
-
onPromotion?: boolean | undefined;
|
|
88
|
-
hasVariant?: boolean | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* this will be used if has_variant is true, to auto set default values.
|
|
91
|
-
*/
|
|
92
|
-
variantOptions?: Array<VariantOptions> | null | undefined;
|
|
93
|
-
attributes?: Array<ProductAttribute> | undefined;
|
|
94
|
-
images?: Array<ProductImage> | undefined;
|
|
95
|
-
pricing?: ProductPricing | undefined;
|
|
96
|
-
shipping?: ProductShipping | undefined;
|
|
97
|
-
tags?: Array<string> | null | undefined;
|
|
98
|
-
categoryIds?: Array<string> | undefined;
|
|
99
|
-
reviewsRatingSum?: number | undefined;
|
|
100
|
-
reviewsCount?: number | undefined;
|
|
101
|
-
hsnCode?: string | undefined;
|
|
102
|
-
createdAt?: Date | undefined;
|
|
103
|
-
modifiedAt?: Date | undefined;
|
|
104
|
-
promotion?: Array<ProductPromotion> | undefined;
|
|
105
|
-
subscription?: Array<ProductSubscription> | undefined;
|
|
106
|
-
bundleItems?: Array<ProductBundleItem> | undefined;
|
|
107
|
-
variants?: Array<Variant> | undefined;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const ProductType$inboundSchema: z.ZodNativeEnum<typeof ProductType> = z
|
|
112
|
-
.nativeEnum(ProductType);
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const ProductType$outboundSchema: z.ZodNativeEnum<typeof ProductType> =
|
|
116
|
-
ProductType$inboundSchema;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
121
|
-
*/
|
|
122
|
-
export namespace ProductType$ {
|
|
123
|
-
/** @deprecated use `ProductType$inboundSchema` instead. */
|
|
124
|
-
export const inboundSchema = ProductType$inboundSchema;
|
|
125
|
-
/** @deprecated use `ProductType$outboundSchema` instead. */
|
|
126
|
-
export const outboundSchema = ProductType$outboundSchema;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** @internal */
|
|
130
|
-
export const VariantOptions$inboundSchema: z.ZodType<
|
|
131
|
-
VariantOptions,
|
|
132
|
-
z.ZodTypeDef,
|
|
133
|
-
unknown
|
|
134
|
-
> = z.object({
|
|
135
|
-
option_name: z.string().optional(),
|
|
136
|
-
option_value: z.array(z.string()).optional(),
|
|
137
|
-
}).transform((v) => {
|
|
138
|
-
return remap$(v, {
|
|
139
|
-
"option_name": "optionName",
|
|
140
|
-
"option_value": "optionValue",
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
/** @internal */
|
|
145
|
-
export type VariantOptions$Outbound = {
|
|
146
|
-
option_name?: string | undefined;
|
|
147
|
-
option_value?: Array<string> | undefined;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
/** @internal */
|
|
151
|
-
export const VariantOptions$outboundSchema: z.ZodType<
|
|
152
|
-
VariantOptions$Outbound,
|
|
153
|
-
z.ZodTypeDef,
|
|
154
|
-
VariantOptions
|
|
155
|
-
> = z.object({
|
|
156
|
-
optionName: z.string().optional(),
|
|
157
|
-
optionValue: z.array(z.string()).optional(),
|
|
158
|
-
}).transform((v) => {
|
|
159
|
-
return remap$(v, {
|
|
160
|
-
optionName: "option_name",
|
|
161
|
-
optionValue: "option_value",
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
-
*/
|
|
169
|
-
export namespace VariantOptions$ {
|
|
170
|
-
/** @deprecated use `VariantOptions$inboundSchema` instead. */
|
|
171
|
-
export const inboundSchema = VariantOptions$inboundSchema;
|
|
172
|
-
/** @deprecated use `VariantOptions$outboundSchema` instead. */
|
|
173
|
-
export const outboundSchema = VariantOptions$outboundSchema;
|
|
174
|
-
/** @deprecated use `VariantOptions$Outbound` instead. */
|
|
175
|
-
export type Outbound = VariantOptions$Outbound;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export function variantOptionsToJSON(variantOptions: VariantOptions): string {
|
|
179
|
-
return JSON.stringify(VariantOptions$outboundSchema.parse(variantOptions));
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export function variantOptionsFromJSON(
|
|
183
|
-
jsonString: string,
|
|
184
|
-
): SafeParseResult<VariantOptions, SDKValidationError> {
|
|
185
|
-
return safeParse(
|
|
186
|
-
jsonString,
|
|
187
|
-
(x) => VariantOptions$inboundSchema.parse(JSON.parse(x)),
|
|
188
|
-
`Failed to parse 'VariantOptions' from JSON`,
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/** @internal */
|
|
193
|
-
export const ProductList$inboundSchema: z.ZodType<
|
|
194
|
-
ProductList,
|
|
195
|
-
z.ZodTypeDef,
|
|
196
|
-
unknown
|
|
197
|
-
> = z.object({
|
|
198
|
-
id: z.string().optional(),
|
|
199
|
-
name: z.string().optional(),
|
|
200
|
-
description: z.string().optional(),
|
|
201
|
-
short_description: z.string().optional(),
|
|
202
|
-
product_type: ProductType$inboundSchema.optional(),
|
|
203
|
-
active: z.boolean().default(true),
|
|
204
|
-
sku: z.string().optional(),
|
|
205
|
-
stock_available: z.boolean().default(true),
|
|
206
|
-
is_featured: z.boolean().default(false),
|
|
207
|
-
on_offer: z.boolean().default(false),
|
|
208
|
-
on_subscription: z.boolean().default(false),
|
|
209
|
-
on_promotion: z.boolean().default(false),
|
|
210
|
-
has_variant: z.boolean().default(false),
|
|
211
|
-
variant_options: z.nullable(
|
|
212
|
-
z.array(z.lazy(() => VariantOptions$inboundSchema)),
|
|
213
|
-
).optional(),
|
|
214
|
-
attributes: z.array(ProductAttribute$inboundSchema).optional(),
|
|
215
|
-
images: z.array(ProductImage$inboundSchema).optional(),
|
|
216
|
-
pricing: ProductPricing$inboundSchema.optional(),
|
|
217
|
-
shipping: ProductShipping$inboundSchema.optional(),
|
|
218
|
-
tags: z.nullable(z.array(z.string())).optional(),
|
|
219
|
-
category_ids: z.array(z.string()).optional(),
|
|
220
|
-
reviews_rating_sum: z.number().optional(),
|
|
221
|
-
reviews_count: z.number().int().optional(),
|
|
222
|
-
hsn_code: z.string().optional(),
|
|
223
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
224
|
-
.optional(),
|
|
225
|
-
modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
226
|
-
.optional(),
|
|
227
|
-
promotion: z.array(ProductPromotion$inboundSchema).optional(),
|
|
228
|
-
subscription: z.array(ProductSubscription$inboundSchema).optional(),
|
|
229
|
-
bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
|
|
230
|
-
variants: z.array(Variant$inboundSchema).optional(),
|
|
231
|
-
}).transform((v) => {
|
|
232
|
-
return remap$(v, {
|
|
233
|
-
"short_description": "shortDescription",
|
|
234
|
-
"product_type": "productType",
|
|
235
|
-
"stock_available": "stockAvailable",
|
|
236
|
-
"is_featured": "isFeatured",
|
|
237
|
-
"on_offer": "onOffer",
|
|
238
|
-
"on_subscription": "onSubscription",
|
|
239
|
-
"on_promotion": "onPromotion",
|
|
240
|
-
"has_variant": "hasVariant",
|
|
241
|
-
"variant_options": "variantOptions",
|
|
242
|
-
"category_ids": "categoryIds",
|
|
243
|
-
"reviews_rating_sum": "reviewsRatingSum",
|
|
244
|
-
"reviews_count": "reviewsCount",
|
|
245
|
-
"hsn_code": "hsnCode",
|
|
246
|
-
"created_at": "createdAt",
|
|
247
|
-
"modified_at": "modifiedAt",
|
|
248
|
-
"bundle_items": "bundleItems",
|
|
249
|
-
});
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
/** @internal */
|
|
253
|
-
export type ProductList$Outbound = {
|
|
254
|
-
id?: string | undefined;
|
|
255
|
-
name?: string | undefined;
|
|
256
|
-
description?: string | undefined;
|
|
257
|
-
short_description?: string | undefined;
|
|
258
|
-
product_type?: string | undefined;
|
|
259
|
-
active: boolean;
|
|
260
|
-
sku?: string | undefined;
|
|
261
|
-
stock_available: boolean;
|
|
262
|
-
is_featured: boolean;
|
|
263
|
-
on_offer: boolean;
|
|
264
|
-
on_subscription: boolean;
|
|
265
|
-
on_promotion: boolean;
|
|
266
|
-
has_variant: boolean;
|
|
267
|
-
variant_options?: Array<VariantOptions$Outbound> | null | undefined;
|
|
268
|
-
attributes?: Array<ProductAttribute$Outbound> | undefined;
|
|
269
|
-
images?: Array<ProductImage$Outbound> | undefined;
|
|
270
|
-
pricing?: ProductPricing$Outbound | undefined;
|
|
271
|
-
shipping?: ProductShipping$Outbound | undefined;
|
|
272
|
-
tags?: Array<string> | null | undefined;
|
|
273
|
-
category_ids?: Array<string> | undefined;
|
|
274
|
-
reviews_rating_sum?: number | undefined;
|
|
275
|
-
reviews_count?: number | undefined;
|
|
276
|
-
hsn_code?: string | undefined;
|
|
277
|
-
created_at?: string | undefined;
|
|
278
|
-
modified_at?: string | undefined;
|
|
279
|
-
promotion?: Array<ProductPromotion$Outbound> | undefined;
|
|
280
|
-
subscription?: Array<ProductSubscription$Outbound> | undefined;
|
|
281
|
-
bundle_items?: Array<ProductBundleItem$Outbound> | undefined;
|
|
282
|
-
variants?: Array<Variant$Outbound> | undefined;
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
/** @internal */
|
|
286
|
-
export const ProductList$outboundSchema: z.ZodType<
|
|
287
|
-
ProductList$Outbound,
|
|
288
|
-
z.ZodTypeDef,
|
|
289
|
-
ProductList
|
|
290
|
-
> = z.object({
|
|
291
|
-
id: z.string().optional(),
|
|
292
|
-
name: z.string().optional(),
|
|
293
|
-
description: z.string().optional(),
|
|
294
|
-
shortDescription: z.string().optional(),
|
|
295
|
-
productType: ProductType$outboundSchema.optional(),
|
|
296
|
-
active: z.boolean().default(true),
|
|
297
|
-
sku: z.string().optional(),
|
|
298
|
-
stockAvailable: z.boolean().default(true),
|
|
299
|
-
isFeatured: z.boolean().default(false),
|
|
300
|
-
onOffer: z.boolean().default(false),
|
|
301
|
-
onSubscription: z.boolean().default(false),
|
|
302
|
-
onPromotion: z.boolean().default(false),
|
|
303
|
-
hasVariant: z.boolean().default(false),
|
|
304
|
-
variantOptions: z.nullable(
|
|
305
|
-
z.array(z.lazy(() => VariantOptions$outboundSchema)),
|
|
306
|
-
).optional(),
|
|
307
|
-
attributes: z.array(ProductAttribute$outboundSchema).optional(),
|
|
308
|
-
images: z.array(ProductImage$outboundSchema).optional(),
|
|
309
|
-
pricing: ProductPricing$outboundSchema.optional(),
|
|
310
|
-
shipping: ProductShipping$outboundSchema.optional(),
|
|
311
|
-
tags: z.nullable(z.array(z.string())).optional(),
|
|
312
|
-
categoryIds: z.array(z.string()).optional(),
|
|
313
|
-
reviewsRatingSum: z.number().optional(),
|
|
314
|
-
reviewsCount: z.number().int().optional(),
|
|
315
|
-
hsnCode: z.string().optional(),
|
|
316
|
-
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
317
|
-
modifiedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
318
|
-
promotion: z.array(ProductPromotion$outboundSchema).optional(),
|
|
319
|
-
subscription: z.array(ProductSubscription$outboundSchema).optional(),
|
|
320
|
-
bundleItems: z.array(ProductBundleItem$outboundSchema).optional(),
|
|
321
|
-
variants: z.array(Variant$outboundSchema).optional(),
|
|
322
|
-
}).transform((v) => {
|
|
323
|
-
return remap$(v, {
|
|
324
|
-
shortDescription: "short_description",
|
|
325
|
-
productType: "product_type",
|
|
326
|
-
stockAvailable: "stock_available",
|
|
327
|
-
isFeatured: "is_featured",
|
|
328
|
-
onOffer: "on_offer",
|
|
329
|
-
onSubscription: "on_subscription",
|
|
330
|
-
onPromotion: "on_promotion",
|
|
331
|
-
hasVariant: "has_variant",
|
|
332
|
-
variantOptions: "variant_options",
|
|
333
|
-
categoryIds: "category_ids",
|
|
334
|
-
reviewsRatingSum: "reviews_rating_sum",
|
|
335
|
-
reviewsCount: "reviews_count",
|
|
336
|
-
hsnCode: "hsn_code",
|
|
337
|
-
createdAt: "created_at",
|
|
338
|
-
modifiedAt: "modified_at",
|
|
339
|
-
bundleItems: "bundle_items",
|
|
340
|
-
});
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @internal
|
|
345
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
346
|
-
*/
|
|
347
|
-
export namespace ProductList$ {
|
|
348
|
-
/** @deprecated use `ProductList$inboundSchema` instead. */
|
|
349
|
-
export const inboundSchema = ProductList$inboundSchema;
|
|
350
|
-
/** @deprecated use `ProductList$outboundSchema` instead. */
|
|
351
|
-
export const outboundSchema = ProductList$outboundSchema;
|
|
352
|
-
/** @deprecated use `ProductList$Outbound` instead. */
|
|
353
|
-
export type Outbound = ProductList$Outbound;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export function productListToJSON(productList: ProductList): string {
|
|
357
|
-
return JSON.stringify(ProductList$outboundSchema.parse(productList));
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export function productListFromJSON(
|
|
361
|
-
jsonString: string,
|
|
362
|
-
): SafeParseResult<ProductList, SDKValidationError> {
|
|
363
|
-
return safeParse(
|
|
364
|
-
jsonString,
|
|
365
|
-
(x) => ProductList$inboundSchema.parse(JSON.parse(x)),
|
|
366
|
-
`Failed to parse 'ProductList' from JSON`,
|
|
367
|
-
);
|
|
368
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type ProductPackaging = {
|
|
12
|
-
/**
|
|
13
|
-
* in cm
|
|
14
|
-
*/
|
|
15
|
-
packWidth?: number | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* in cm
|
|
18
|
-
*/
|
|
19
|
-
packHeight?: number | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* in cm
|
|
22
|
-
*/
|
|
23
|
-
packLength?: number | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* in kg
|
|
26
|
-
*/
|
|
27
|
-
packDryWeight?: number | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* in kg
|
|
30
|
-
*/
|
|
31
|
-
calculatedWeight?: number | undefined;
|
|
32
|
-
unitsPerPack?: number | undefined;
|
|
33
|
-
volumeOfPacksize?: number | undefined;
|
|
34
|
-
verticalRotation?: boolean | undefined;
|
|
35
|
-
shipperWidth?: number | undefined;
|
|
36
|
-
shipperHeight?: number | undefined;
|
|
37
|
-
shipperLength?: number | undefined;
|
|
38
|
-
shipperDryWeight?: number | undefined;
|
|
39
|
-
unitsPerShipper?: number | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const ProductPackaging$inboundSchema: z.ZodType<
|
|
44
|
-
ProductPackaging,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
unknown
|
|
47
|
-
> = z.object({
|
|
48
|
-
pack_width: z.number().optional(),
|
|
49
|
-
pack_height: z.number().optional(),
|
|
50
|
-
pack_length: z.number().optional(),
|
|
51
|
-
pack_dry_weight: z.number().optional(),
|
|
52
|
-
calculated_weight: z.number().optional(),
|
|
53
|
-
units_per_pack: z.number().int().optional(),
|
|
54
|
-
volume_of_packsize: z.number().optional(),
|
|
55
|
-
vertical_rotation: z.boolean().optional(),
|
|
56
|
-
shipper_width: z.number().optional(),
|
|
57
|
-
shipper_height: z.number().optional(),
|
|
58
|
-
shipper_length: z.number().optional(),
|
|
59
|
-
shipper_dry_weight: z.number().optional(),
|
|
60
|
-
units_per_shipper: z.number().int().optional(),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return remap$(v, {
|
|
63
|
-
"pack_width": "packWidth",
|
|
64
|
-
"pack_height": "packHeight",
|
|
65
|
-
"pack_length": "packLength",
|
|
66
|
-
"pack_dry_weight": "packDryWeight",
|
|
67
|
-
"calculated_weight": "calculatedWeight",
|
|
68
|
-
"units_per_pack": "unitsPerPack",
|
|
69
|
-
"volume_of_packsize": "volumeOfPacksize",
|
|
70
|
-
"vertical_rotation": "verticalRotation",
|
|
71
|
-
"shipper_width": "shipperWidth",
|
|
72
|
-
"shipper_height": "shipperHeight",
|
|
73
|
-
"shipper_length": "shipperLength",
|
|
74
|
-
"shipper_dry_weight": "shipperDryWeight",
|
|
75
|
-
"units_per_shipper": "unitsPerShipper",
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
/** @internal */
|
|
80
|
-
export type ProductPackaging$Outbound = {
|
|
81
|
-
pack_width?: number | undefined;
|
|
82
|
-
pack_height?: number | undefined;
|
|
83
|
-
pack_length?: number | undefined;
|
|
84
|
-
pack_dry_weight?: number | undefined;
|
|
85
|
-
calculated_weight?: number | undefined;
|
|
86
|
-
units_per_pack?: number | undefined;
|
|
87
|
-
volume_of_packsize?: number | undefined;
|
|
88
|
-
vertical_rotation?: boolean | undefined;
|
|
89
|
-
shipper_width?: number | undefined;
|
|
90
|
-
shipper_height?: number | undefined;
|
|
91
|
-
shipper_length?: number | undefined;
|
|
92
|
-
shipper_dry_weight?: number | undefined;
|
|
93
|
-
units_per_shipper?: number | undefined;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const ProductPackaging$outboundSchema: z.ZodType<
|
|
98
|
-
ProductPackaging$Outbound,
|
|
99
|
-
z.ZodTypeDef,
|
|
100
|
-
ProductPackaging
|
|
101
|
-
> = z.object({
|
|
102
|
-
packWidth: z.number().optional(),
|
|
103
|
-
packHeight: z.number().optional(),
|
|
104
|
-
packLength: z.number().optional(),
|
|
105
|
-
packDryWeight: z.number().optional(),
|
|
106
|
-
calculatedWeight: z.number().optional(),
|
|
107
|
-
unitsPerPack: z.number().int().optional(),
|
|
108
|
-
volumeOfPacksize: z.number().optional(),
|
|
109
|
-
verticalRotation: z.boolean().optional(),
|
|
110
|
-
shipperWidth: z.number().optional(),
|
|
111
|
-
shipperHeight: z.number().optional(),
|
|
112
|
-
shipperLength: z.number().optional(),
|
|
113
|
-
shipperDryWeight: z.number().optional(),
|
|
114
|
-
unitsPerShipper: z.number().int().optional(),
|
|
115
|
-
}).transform((v) => {
|
|
116
|
-
return remap$(v, {
|
|
117
|
-
packWidth: "pack_width",
|
|
118
|
-
packHeight: "pack_height",
|
|
119
|
-
packLength: "pack_length",
|
|
120
|
-
packDryWeight: "pack_dry_weight",
|
|
121
|
-
calculatedWeight: "calculated_weight",
|
|
122
|
-
unitsPerPack: "units_per_pack",
|
|
123
|
-
volumeOfPacksize: "volume_of_packsize",
|
|
124
|
-
verticalRotation: "vertical_rotation",
|
|
125
|
-
shipperWidth: "shipper_width",
|
|
126
|
-
shipperHeight: "shipper_height",
|
|
127
|
-
shipperLength: "shipper_length",
|
|
128
|
-
shipperDryWeight: "shipper_dry_weight",
|
|
129
|
-
unitsPerShipper: "units_per_shipper",
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
136
|
-
*/
|
|
137
|
-
export namespace ProductPackaging$ {
|
|
138
|
-
/** @deprecated use `ProductPackaging$inboundSchema` instead. */
|
|
139
|
-
export const inboundSchema = ProductPackaging$inboundSchema;
|
|
140
|
-
/** @deprecated use `ProductPackaging$outboundSchema` instead. */
|
|
141
|
-
export const outboundSchema = ProductPackaging$outboundSchema;
|
|
142
|
-
/** @deprecated use `ProductPackaging$Outbound` instead. */
|
|
143
|
-
export type Outbound = ProductPackaging$Outbound;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export function productPackagingToJSON(
|
|
147
|
-
productPackaging: ProductPackaging,
|
|
148
|
-
): string {
|
|
149
|
-
return JSON.stringify(
|
|
150
|
-
ProductPackaging$outboundSchema.parse(productPackaging),
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export function productPackagingFromJSON(
|
|
155
|
-
jsonString: string,
|
|
156
|
-
): SafeParseResult<ProductPackaging, SDKValidationError> {
|
|
157
|
-
return safeParse(
|
|
158
|
-
jsonString,
|
|
159
|
-
(x) => ProductPackaging$inboundSchema.parse(JSON.parse(x)),
|
|
160
|
-
`Failed to parse 'ProductPackaging' from JSON`,
|
|
161
|
-
);
|
|
162
|
-
}
|