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
|
@@ -32,180 +32,195 @@ import {
|
|
|
32
32
|
ProductPromotion$Outbound,
|
|
33
33
|
ProductPromotion$outboundSchema,
|
|
34
34
|
} from "./productpromotion.js";
|
|
35
|
-
import {
|
|
36
|
-
ProductShipping,
|
|
37
|
-
ProductShipping$inboundSchema,
|
|
38
|
-
ProductShipping$Outbound,
|
|
39
|
-
ProductShipping$outboundSchema,
|
|
40
|
-
} from "./productshipping.js";
|
|
41
35
|
import {
|
|
42
36
|
ProductSubscription,
|
|
43
37
|
ProductSubscription$inboundSchema,
|
|
44
38
|
ProductSubscription$Outbound,
|
|
45
39
|
ProductSubscription$outboundSchema,
|
|
46
40
|
} from "./productsubscription.js";
|
|
41
|
+
import {
|
|
42
|
+
Variant,
|
|
43
|
+
Variant$inboundSchema,
|
|
44
|
+
Variant$Outbound,
|
|
45
|
+
Variant$outboundSchema,
|
|
46
|
+
} from "./variant.js";
|
|
47
|
+
import {
|
|
48
|
+
VariantOption,
|
|
49
|
+
VariantOption$inboundSchema,
|
|
50
|
+
VariantOption$Outbound,
|
|
51
|
+
VariantOption$outboundSchema,
|
|
52
|
+
} from "./variantoption.js";
|
|
47
53
|
|
|
48
|
-
export const
|
|
54
|
+
export const ProductType = {
|
|
49
55
|
Physical: "physical",
|
|
50
56
|
Digital: "digital",
|
|
51
57
|
Bundle: "bundle",
|
|
52
58
|
} as const;
|
|
53
|
-
export type
|
|
59
|
+
export type ProductType = ClosedEnum<typeof ProductType>;
|
|
54
60
|
|
|
55
|
-
export type
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
productType?: SkuInfoProductType | undefined;
|
|
61
|
+
export type Product = {
|
|
62
|
+
/**
|
|
63
|
+
* The ULID of the product
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
61
66
|
sku?: string | undefined;
|
|
67
|
+
name: string;
|
|
68
|
+
slug: string;
|
|
69
|
+
shortDescription?: string | undefined;
|
|
70
|
+
productType: ProductType;
|
|
71
|
+
active?: boolean | undefined;
|
|
62
72
|
stockAvailable?: boolean | undefined;
|
|
63
|
-
isFeatured?: boolean | undefined;
|
|
64
73
|
onOffer?: boolean | undefined;
|
|
65
74
|
onSubscription?: boolean | undefined;
|
|
66
75
|
onPromotion?: boolean | undefined;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
pricing?: ProductPricing | undefined;
|
|
70
|
-
shipping?: ProductShipping | undefined;
|
|
71
|
-
tags?: Array<string> | undefined;
|
|
76
|
+
hasVariant?: boolean | undefined;
|
|
77
|
+
tags?: Array<string> | null | undefined;
|
|
72
78
|
categoryIds?: Array<string> | undefined;
|
|
73
79
|
reviewsRatingSum?: number | undefined;
|
|
74
80
|
reviewsCount?: number | undefined;
|
|
75
|
-
|
|
81
|
+
attributes?: Array<ProductAttribute> | undefined;
|
|
82
|
+
pricing?: ProductPricing | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* this will be used if has_variant is true, to auto set default values.
|
|
85
|
+
*/
|
|
86
|
+
variantOptions?: Array<VariantOption> | null | undefined;
|
|
87
|
+
promotion?: ProductPromotion | null | undefined;
|
|
88
|
+
images?: Array<ProductImage> | undefined;
|
|
76
89
|
subscription?: Array<ProductSubscription> | undefined;
|
|
90
|
+
variants?: Array<Variant> | undefined;
|
|
77
91
|
};
|
|
78
92
|
|
|
79
93
|
/** @internal */
|
|
80
|
-
export const
|
|
81
|
-
|
|
82
|
-
> = z.nativeEnum(SkuInfoProductType);
|
|
94
|
+
export const ProductType$inboundSchema: z.ZodNativeEnum<typeof ProductType> = z
|
|
95
|
+
.nativeEnum(ProductType);
|
|
83
96
|
|
|
84
97
|
/** @internal */
|
|
85
|
-
export const
|
|
86
|
-
|
|
87
|
-
> = SkuInfoProductType$inboundSchema;
|
|
98
|
+
export const ProductType$outboundSchema: z.ZodNativeEnum<typeof ProductType> =
|
|
99
|
+
ProductType$inboundSchema;
|
|
88
100
|
|
|
89
101
|
/**
|
|
90
102
|
* @internal
|
|
91
103
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
104
|
*/
|
|
93
|
-
export namespace
|
|
94
|
-
/** @deprecated use `
|
|
95
|
-
export const inboundSchema =
|
|
96
|
-
/** @deprecated use `
|
|
97
|
-
export const outboundSchema =
|
|
105
|
+
export namespace ProductType$ {
|
|
106
|
+
/** @deprecated use `ProductType$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema = ProductType$inboundSchema;
|
|
108
|
+
/** @deprecated use `ProductType$outboundSchema` instead. */
|
|
109
|
+
export const outboundSchema = ProductType$outboundSchema;
|
|
98
110
|
}
|
|
99
111
|
|
|
100
112
|
/** @internal */
|
|
101
|
-
export const
|
|
113
|
+
export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
|
|
102
114
|
z.object({
|
|
103
|
-
|
|
104
|
-
product_name: z.string().optional(),
|
|
105
|
-
variant_id: z.string().optional(),
|
|
106
|
-
variant_name: z.string().optional(),
|
|
107
|
-
product_type: SkuInfoProductType$inboundSchema.optional(),
|
|
115
|
+
id: z.string(),
|
|
108
116
|
sku: z.string().optional(),
|
|
117
|
+
name: z.string(),
|
|
118
|
+
slug: z.string(),
|
|
119
|
+
short_description: z.string().optional(),
|
|
120
|
+
product_type: ProductType$inboundSchema,
|
|
121
|
+
active: z.boolean().default(true),
|
|
109
122
|
stock_available: z.boolean().default(true),
|
|
110
|
-
is_featured: z.boolean().default(false),
|
|
111
123
|
on_offer: z.boolean().default(false),
|
|
112
124
|
on_subscription: z.boolean().default(false),
|
|
113
125
|
on_promotion: z.boolean().default(false),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
pricing: ProductPricing$inboundSchema.optional(),
|
|
117
|
-
shipping: ProductShipping$inboundSchema.optional(),
|
|
118
|
-
tags: z.array(z.string()).optional(),
|
|
126
|
+
has_variant: z.boolean().default(false),
|
|
127
|
+
tags: z.nullable(z.array(z.string())).optional(),
|
|
119
128
|
category_ids: z.array(z.string()).optional(),
|
|
120
129
|
reviews_rating_sum: z.number().optional(),
|
|
121
130
|
reviews_count: z.number().int().optional(),
|
|
122
|
-
|
|
131
|
+
attributes: z.array(ProductAttribute$inboundSchema).optional(),
|
|
132
|
+
pricing: ProductPricing$inboundSchema.optional(),
|
|
133
|
+
variant_options: z.nullable(z.array(VariantOption$inboundSchema))
|
|
134
|
+
.optional(),
|
|
135
|
+
promotion: z.nullable(ProductPromotion$inboundSchema).optional(),
|
|
136
|
+
images: z.array(ProductImage$inboundSchema).optional(),
|
|
123
137
|
subscription: z.array(ProductSubscription$inboundSchema).optional(),
|
|
138
|
+
variants: z.array(Variant$inboundSchema).optional(),
|
|
124
139
|
}).transform((v) => {
|
|
125
140
|
return remap$(v, {
|
|
126
|
-
"
|
|
127
|
-
"product_name": "productName",
|
|
128
|
-
"variant_id": "variantId",
|
|
129
|
-
"variant_name": "variantName",
|
|
141
|
+
"short_description": "shortDescription",
|
|
130
142
|
"product_type": "productType",
|
|
131
143
|
"stock_available": "stockAvailable",
|
|
132
|
-
"is_featured": "isFeatured",
|
|
133
144
|
"on_offer": "onOffer",
|
|
134
145
|
"on_subscription": "onSubscription",
|
|
135
146
|
"on_promotion": "onPromotion",
|
|
147
|
+
"has_variant": "hasVariant",
|
|
136
148
|
"category_ids": "categoryIds",
|
|
137
149
|
"reviews_rating_sum": "reviewsRatingSum",
|
|
138
150
|
"reviews_count": "reviewsCount",
|
|
151
|
+
"variant_options": "variantOptions",
|
|
139
152
|
});
|
|
140
153
|
});
|
|
141
154
|
|
|
142
155
|
/** @internal */
|
|
143
|
-
export type
|
|
144
|
-
|
|
145
|
-
product_name?: string | undefined;
|
|
146
|
-
variant_id?: string | undefined;
|
|
147
|
-
variant_name?: string | undefined;
|
|
148
|
-
product_type?: string | undefined;
|
|
156
|
+
export type Product$Outbound = {
|
|
157
|
+
id: string;
|
|
149
158
|
sku?: string | undefined;
|
|
159
|
+
name: string;
|
|
160
|
+
slug: string;
|
|
161
|
+
short_description?: string | undefined;
|
|
162
|
+
product_type: string;
|
|
163
|
+
active: boolean;
|
|
150
164
|
stock_available: boolean;
|
|
151
|
-
is_featured: boolean;
|
|
152
165
|
on_offer: boolean;
|
|
153
166
|
on_subscription: boolean;
|
|
154
167
|
on_promotion: boolean;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
pricing?: ProductPricing$Outbound | undefined;
|
|
158
|
-
shipping?: ProductShipping$Outbound | undefined;
|
|
159
|
-
tags?: Array<string> | undefined;
|
|
168
|
+
has_variant: boolean;
|
|
169
|
+
tags?: Array<string> | null | undefined;
|
|
160
170
|
category_ids?: Array<string> | undefined;
|
|
161
171
|
reviews_rating_sum?: number | undefined;
|
|
162
172
|
reviews_count?: number | undefined;
|
|
163
|
-
|
|
173
|
+
attributes?: Array<ProductAttribute$Outbound> | undefined;
|
|
174
|
+
pricing?: ProductPricing$Outbound | undefined;
|
|
175
|
+
variant_options?: Array<VariantOption$Outbound> | null | undefined;
|
|
176
|
+
promotion?: ProductPromotion$Outbound | null | undefined;
|
|
177
|
+
images?: Array<ProductImage$Outbound> | undefined;
|
|
164
178
|
subscription?: Array<ProductSubscription$Outbound> | undefined;
|
|
179
|
+
variants?: Array<Variant$Outbound> | undefined;
|
|
165
180
|
};
|
|
166
181
|
|
|
167
182
|
/** @internal */
|
|
168
|
-
export const
|
|
169
|
-
|
|
183
|
+
export const Product$outboundSchema: z.ZodType<
|
|
184
|
+
Product$Outbound,
|
|
170
185
|
z.ZodTypeDef,
|
|
171
|
-
|
|
186
|
+
Product
|
|
172
187
|
> = z.object({
|
|
173
|
-
|
|
174
|
-
productName: z.string().optional(),
|
|
175
|
-
variantId: z.string().optional(),
|
|
176
|
-
variantName: z.string().optional(),
|
|
177
|
-
productType: SkuInfoProductType$outboundSchema.optional(),
|
|
188
|
+
id: z.string(),
|
|
178
189
|
sku: z.string().optional(),
|
|
190
|
+
name: z.string(),
|
|
191
|
+
slug: z.string(),
|
|
192
|
+
shortDescription: z.string().optional(),
|
|
193
|
+
productType: ProductType$outboundSchema,
|
|
194
|
+
active: z.boolean().default(true),
|
|
179
195
|
stockAvailable: z.boolean().default(true),
|
|
180
|
-
isFeatured: z.boolean().default(false),
|
|
181
196
|
onOffer: z.boolean().default(false),
|
|
182
197
|
onSubscription: z.boolean().default(false),
|
|
183
198
|
onPromotion: z.boolean().default(false),
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
pricing: ProductPricing$outboundSchema.optional(),
|
|
187
|
-
shipping: ProductShipping$outboundSchema.optional(),
|
|
188
|
-
tags: z.array(z.string()).optional(),
|
|
199
|
+
hasVariant: z.boolean().default(false),
|
|
200
|
+
tags: z.nullable(z.array(z.string())).optional(),
|
|
189
201
|
categoryIds: z.array(z.string()).optional(),
|
|
190
202
|
reviewsRatingSum: z.number().optional(),
|
|
191
203
|
reviewsCount: z.number().int().optional(),
|
|
192
|
-
|
|
204
|
+
attributes: z.array(ProductAttribute$outboundSchema).optional(),
|
|
205
|
+
pricing: ProductPricing$outboundSchema.optional(),
|
|
206
|
+
variantOptions: z.nullable(z.array(VariantOption$outboundSchema)).optional(),
|
|
207
|
+
promotion: z.nullable(ProductPromotion$outboundSchema).optional(),
|
|
208
|
+
images: z.array(ProductImage$outboundSchema).optional(),
|
|
193
209
|
subscription: z.array(ProductSubscription$outboundSchema).optional(),
|
|
210
|
+
variants: z.array(Variant$outboundSchema).optional(),
|
|
194
211
|
}).transform((v) => {
|
|
195
212
|
return remap$(v, {
|
|
196
|
-
|
|
197
|
-
productName: "product_name",
|
|
198
|
-
variantId: "variant_id",
|
|
199
|
-
variantName: "variant_name",
|
|
213
|
+
shortDescription: "short_description",
|
|
200
214
|
productType: "product_type",
|
|
201
215
|
stockAvailable: "stock_available",
|
|
202
|
-
isFeatured: "is_featured",
|
|
203
216
|
onOffer: "on_offer",
|
|
204
217
|
onSubscription: "on_subscription",
|
|
205
218
|
onPromotion: "on_promotion",
|
|
219
|
+
hasVariant: "has_variant",
|
|
206
220
|
categoryIds: "category_ids",
|
|
207
221
|
reviewsRatingSum: "reviews_rating_sum",
|
|
208
222
|
reviewsCount: "reviews_count",
|
|
223
|
+
variantOptions: "variant_options",
|
|
209
224
|
});
|
|
210
225
|
});
|
|
211
226
|
|
|
@@ -213,25 +228,25 @@ export const SkuInfo$outboundSchema: z.ZodType<
|
|
|
213
228
|
* @internal
|
|
214
229
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
215
230
|
*/
|
|
216
|
-
export namespace
|
|
217
|
-
/** @deprecated use `
|
|
218
|
-
export const inboundSchema =
|
|
219
|
-
/** @deprecated use `
|
|
220
|
-
export const outboundSchema =
|
|
221
|
-
/** @deprecated use `
|
|
222
|
-
export type Outbound =
|
|
231
|
+
export namespace Product$ {
|
|
232
|
+
/** @deprecated use `Product$inboundSchema` instead. */
|
|
233
|
+
export const inboundSchema = Product$inboundSchema;
|
|
234
|
+
/** @deprecated use `Product$outboundSchema` instead. */
|
|
235
|
+
export const outboundSchema = Product$outboundSchema;
|
|
236
|
+
/** @deprecated use `Product$Outbound` instead. */
|
|
237
|
+
export type Outbound = Product$Outbound;
|
|
223
238
|
}
|
|
224
239
|
|
|
225
|
-
export function
|
|
226
|
-
return JSON.stringify(
|
|
240
|
+
export function productToJSON(product: Product): string {
|
|
241
|
+
return JSON.stringify(Product$outboundSchema.parse(product));
|
|
227
242
|
}
|
|
228
243
|
|
|
229
|
-
export function
|
|
244
|
+
export function productFromJSON(
|
|
230
245
|
jsonString: string,
|
|
231
|
-
): SafeParseResult<
|
|
246
|
+
): SafeParseResult<Product, SDKValidationError> {
|
|
232
247
|
return safeParse(
|
|
233
248
|
jsonString,
|
|
234
|
-
(x) =>
|
|
235
|
-
`Failed to parse '
|
|
249
|
+
(x) => Product$inboundSchema.parse(JSON.parse(x)),
|
|
250
|
+
`Failed to parse 'Product' from JSON`,
|
|
236
251
|
);
|
|
237
252
|
}
|