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
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AssociatedOption,
|
|
12
|
+
AssociatedOption$inboundSchema,
|
|
13
|
+
AssociatedOption$Outbound,
|
|
14
|
+
AssociatedOption$outboundSchema,
|
|
15
|
+
} from "./associatedoption.js";
|
|
10
16
|
import {
|
|
11
17
|
ProductImage,
|
|
12
18
|
ProductImage$inboundSchema,
|
|
@@ -38,13 +44,6 @@ import {
|
|
|
38
44
|
ProductSubscription$outboundSchema,
|
|
39
45
|
} from "./productsubscription.js";
|
|
40
46
|
|
|
41
|
-
export type AssociatedOptions = {};
|
|
42
|
-
|
|
43
|
-
export type Metadata = {
|
|
44
|
-
key?: string | undefined;
|
|
45
|
-
value?: string | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
47
|
export type Variant = {
|
|
49
48
|
/**
|
|
50
49
|
* variant id
|
|
@@ -62,7 +61,7 @@ export type Variant = {
|
|
|
62
61
|
active?: boolean | undefined;
|
|
63
62
|
onPromotion?: boolean | undefined;
|
|
64
63
|
onSubscription?: boolean | undefined;
|
|
65
|
-
associatedOptions?:
|
|
64
|
+
associatedOptions?: { [k: string]: AssociatedOption } | undefined;
|
|
66
65
|
stockAvailable?: boolean | undefined;
|
|
67
66
|
shortDescription?: string | undefined;
|
|
68
67
|
isDefault?: boolean | undefined;
|
|
@@ -71,110 +70,9 @@ export type Variant = {
|
|
|
71
70
|
subscription?: Array<ProductSubscription> | undefined;
|
|
72
71
|
promotion?: Array<ProductPromotion> | undefined;
|
|
73
72
|
shipping?: ProductShipping | undefined;
|
|
74
|
-
metadata?:
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export const AssociatedOptions$inboundSchema: z.ZodType<
|
|
79
|
-
AssociatedOptions,
|
|
80
|
-
z.ZodTypeDef,
|
|
81
|
-
unknown
|
|
82
|
-
> = z.object({});
|
|
83
|
-
|
|
84
|
-
/** @internal */
|
|
85
|
-
export type AssociatedOptions$Outbound = {};
|
|
86
|
-
|
|
87
|
-
/** @internal */
|
|
88
|
-
export const AssociatedOptions$outboundSchema: z.ZodType<
|
|
89
|
-
AssociatedOptions$Outbound,
|
|
90
|
-
z.ZodTypeDef,
|
|
91
|
-
AssociatedOptions
|
|
92
|
-
> = z.object({});
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
-
*/
|
|
98
|
-
export namespace AssociatedOptions$ {
|
|
99
|
-
/** @deprecated use `AssociatedOptions$inboundSchema` instead. */
|
|
100
|
-
export const inboundSchema = AssociatedOptions$inboundSchema;
|
|
101
|
-
/** @deprecated use `AssociatedOptions$outboundSchema` instead. */
|
|
102
|
-
export const outboundSchema = AssociatedOptions$outboundSchema;
|
|
103
|
-
/** @deprecated use `AssociatedOptions$Outbound` instead. */
|
|
104
|
-
export type Outbound = AssociatedOptions$Outbound;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function associatedOptionsToJSON(
|
|
108
|
-
associatedOptions: AssociatedOptions,
|
|
109
|
-
): string {
|
|
110
|
-
return JSON.stringify(
|
|
111
|
-
AssociatedOptions$outboundSchema.parse(associatedOptions),
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function associatedOptionsFromJSON(
|
|
116
|
-
jsonString: string,
|
|
117
|
-
): SafeParseResult<AssociatedOptions, SDKValidationError> {
|
|
118
|
-
return safeParse(
|
|
119
|
-
jsonString,
|
|
120
|
-
(x) => AssociatedOptions$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
-
`Failed to parse 'AssociatedOptions' from JSON`,
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const Metadata$inboundSchema: z.ZodType<
|
|
127
|
-
Metadata,
|
|
128
|
-
z.ZodTypeDef,
|
|
129
|
-
unknown
|
|
130
|
-
> = z.object({
|
|
131
|
-
key: z.string().optional(),
|
|
132
|
-
value: z.string().optional(),
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
/** @internal */
|
|
136
|
-
export type Metadata$Outbound = {
|
|
137
|
-
key?: string | undefined;
|
|
138
|
-
value?: string | undefined;
|
|
73
|
+
metadata?: { [k: string]: string } | undefined;
|
|
139
74
|
};
|
|
140
75
|
|
|
141
|
-
/** @internal */
|
|
142
|
-
export const Metadata$outboundSchema: z.ZodType<
|
|
143
|
-
Metadata$Outbound,
|
|
144
|
-
z.ZodTypeDef,
|
|
145
|
-
Metadata
|
|
146
|
-
> = z.object({
|
|
147
|
-
key: z.string().optional(),
|
|
148
|
-
value: z.string().optional(),
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @internal
|
|
153
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
|
-
*/
|
|
155
|
-
export namespace Metadata$ {
|
|
156
|
-
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
157
|
-
export const inboundSchema = Metadata$inboundSchema;
|
|
158
|
-
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
159
|
-
export const outboundSchema = Metadata$outboundSchema;
|
|
160
|
-
/** @deprecated use `Metadata$Outbound` instead. */
|
|
161
|
-
export type Outbound = Metadata$Outbound;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export function metadataToJSON(metadata: Metadata): string {
|
|
165
|
-
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export function metadataFromJSON(
|
|
169
|
-
jsonString: string,
|
|
170
|
-
): SafeParseResult<Metadata, SDKValidationError> {
|
|
171
|
-
return safeParse(
|
|
172
|
-
jsonString,
|
|
173
|
-
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
-
`Failed to parse 'Metadata' from JSON`,
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
76
|
/** @internal */
|
|
179
77
|
export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
|
|
180
78
|
z.object({
|
|
@@ -185,8 +83,7 @@ export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
|
|
|
185
83
|
active: z.boolean().optional(),
|
|
186
84
|
on_promotion: z.boolean().optional(),
|
|
187
85
|
on_subscription: z.boolean().optional(),
|
|
188
|
-
associated_options: z.
|
|
189
|
-
.optional(),
|
|
86
|
+
associated_options: z.record(AssociatedOption$inboundSchema).optional(),
|
|
190
87
|
stock_available: z.boolean().optional(),
|
|
191
88
|
short_description: z.string().optional(),
|
|
192
89
|
is_default: z.boolean().optional(),
|
|
@@ -195,8 +92,7 @@ export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
|
|
|
195
92
|
subscription: z.array(ProductSubscription$inboundSchema).optional(),
|
|
196
93
|
promotion: z.array(ProductPromotion$inboundSchema).optional(),
|
|
197
94
|
shipping: ProductShipping$inboundSchema.optional(),
|
|
198
|
-
metadata: z.
|
|
199
|
-
.optional(),
|
|
95
|
+
metadata: z.record(z.string()).optional(),
|
|
200
96
|
}).transform((v) => {
|
|
201
97
|
return remap$(v, {
|
|
202
98
|
"on_promotion": "onPromotion",
|
|
@@ -217,7 +113,7 @@ export type Variant$Outbound = {
|
|
|
217
113
|
active?: boolean | undefined;
|
|
218
114
|
on_promotion?: boolean | undefined;
|
|
219
115
|
on_subscription?: boolean | undefined;
|
|
220
|
-
associated_options?:
|
|
116
|
+
associated_options?: { [k: string]: AssociatedOption$Outbound } | undefined;
|
|
221
117
|
stock_available?: boolean | undefined;
|
|
222
118
|
short_description?: string | undefined;
|
|
223
119
|
is_default?: boolean | undefined;
|
|
@@ -226,7 +122,7 @@ export type Variant$Outbound = {
|
|
|
226
122
|
subscription?: Array<ProductSubscription$Outbound> | undefined;
|
|
227
123
|
promotion?: Array<ProductPromotion$Outbound> | undefined;
|
|
228
124
|
shipping?: ProductShipping$Outbound | undefined;
|
|
229
|
-
metadata?:
|
|
125
|
+
metadata?: { [k: string]: string } | undefined;
|
|
230
126
|
};
|
|
231
127
|
|
|
232
128
|
/** @internal */
|
|
@@ -242,7 +138,7 @@ export const Variant$outboundSchema: z.ZodType<
|
|
|
242
138
|
active: z.boolean().optional(),
|
|
243
139
|
onPromotion: z.boolean().optional(),
|
|
244
140
|
onSubscription: z.boolean().optional(),
|
|
245
|
-
associatedOptions: z.
|
|
141
|
+
associatedOptions: z.record(AssociatedOption$outboundSchema).optional(),
|
|
246
142
|
stockAvailable: z.boolean().optional(),
|
|
247
143
|
shortDescription: z.string().optional(),
|
|
248
144
|
isDefault: z.boolean().optional(),
|
|
@@ -251,8 +147,7 @@ export const Variant$outboundSchema: z.ZodType<
|
|
|
251
147
|
subscription: z.array(ProductSubscription$outboundSchema).optional(),
|
|
252
148
|
promotion: z.array(ProductPromotion$outboundSchema).optional(),
|
|
253
149
|
shipping: ProductShipping$outboundSchema.optional(),
|
|
254
|
-
metadata: z.
|
|
255
|
-
.optional(),
|
|
150
|
+
metadata: z.record(z.string()).optional(),
|
|
256
151
|
}).transform((v) => {
|
|
257
152
|
return remap$(v, {
|
|
258
153
|
onPromotion: "on_promotion",
|
|
@@ -7,18 +7,24 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AssociatedOption,
|
|
12
|
+
AssociatedOption$inboundSchema,
|
|
13
|
+
AssociatedOption$Outbound,
|
|
14
|
+
AssociatedOption$outboundSchema,
|
|
15
|
+
} from "./associatedoption.js";
|
|
16
|
+
import {
|
|
17
|
+
ProductAttribute,
|
|
18
|
+
ProductAttribute$inboundSchema,
|
|
19
|
+
ProductAttribute$Outbound,
|
|
20
|
+
ProductAttribute$outboundSchema,
|
|
21
|
+
} from "./productattribute.js";
|
|
10
22
|
import {
|
|
11
23
|
ProductImage,
|
|
12
24
|
ProductImage$inboundSchema,
|
|
13
25
|
ProductImage$Outbound,
|
|
14
26
|
ProductImage$outboundSchema,
|
|
15
27
|
} from "./productimage.js";
|
|
16
|
-
import {
|
|
17
|
-
ProductPackaging,
|
|
18
|
-
ProductPackaging$inboundSchema,
|
|
19
|
-
ProductPackaging$Outbound,
|
|
20
|
-
ProductPackaging$outboundSchema,
|
|
21
|
-
} from "./productpackaging.js";
|
|
22
28
|
import {
|
|
23
29
|
ProductPricing,
|
|
24
30
|
ProductPricing$inboundSchema,
|
|
@@ -56,149 +62,43 @@ import {
|
|
|
56
62
|
Seo$outboundSchema,
|
|
57
63
|
} from "./seo.js";
|
|
58
64
|
|
|
59
|
-
export type VariantDetailAssociatedOptions = {};
|
|
60
|
-
|
|
61
|
-
export type VariantDetailMetadata = {
|
|
62
|
-
key?: string | undefined;
|
|
63
|
-
value?: string | undefined;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
65
|
export type VariantDetail = {
|
|
67
66
|
/**
|
|
68
67
|
* variant id
|
|
69
68
|
*/
|
|
70
69
|
id?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* product id
|
|
72
|
+
*/
|
|
73
|
+
productId?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* variant sku
|
|
76
|
+
*/
|
|
77
|
+
sku?: string | undefined;
|
|
71
78
|
/**
|
|
72
79
|
* variant name
|
|
73
80
|
*/
|
|
74
81
|
name?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* product name
|
|
84
|
+
*/
|
|
85
|
+
productName?: string | undefined;
|
|
75
86
|
shortDescription?: string | undefined;
|
|
76
87
|
description?: string | undefined;
|
|
77
88
|
stockAvailable?: boolean | undefined;
|
|
78
89
|
isDefault?: boolean | undefined;
|
|
79
|
-
associatedOptions
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* variant sku
|
|
83
|
-
*/
|
|
84
|
-
sku?: string | undefined;
|
|
90
|
+
associatedOptions: { [k: string]: AssociatedOption };
|
|
91
|
+
variantAttributes?: Array<ProductAttribute> | null | undefined;
|
|
85
92
|
pricing?: ProductPricing | undefined;
|
|
86
93
|
videos?: Array<ProductVideo> | undefined;
|
|
87
94
|
images?: Array<ProductImage> | undefined;
|
|
88
95
|
shipping?: ProductShipping | undefined;
|
|
89
|
-
packaging?: ProductPackaging | undefined;
|
|
90
96
|
promotion?: Array<ProductPromotion> | undefined;
|
|
91
97
|
subscription?: Array<ProductSubscription> | undefined;
|
|
92
98
|
seo?: Seo | undefined;
|
|
99
|
+
metadata?: { [k: string]: string } | undefined;
|
|
93
100
|
};
|
|
94
101
|
|
|
95
|
-
/** @internal */
|
|
96
|
-
export const VariantDetailAssociatedOptions$inboundSchema: z.ZodType<
|
|
97
|
-
VariantDetailAssociatedOptions,
|
|
98
|
-
z.ZodTypeDef,
|
|
99
|
-
unknown
|
|
100
|
-
> = z.object({});
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export type VariantDetailAssociatedOptions$Outbound = {};
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const VariantDetailAssociatedOptions$outboundSchema: z.ZodType<
|
|
107
|
-
VariantDetailAssociatedOptions$Outbound,
|
|
108
|
-
z.ZodTypeDef,
|
|
109
|
-
VariantDetailAssociatedOptions
|
|
110
|
-
> = z.object({});
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
115
|
-
*/
|
|
116
|
-
export namespace VariantDetailAssociatedOptions$ {
|
|
117
|
-
/** @deprecated use `VariantDetailAssociatedOptions$inboundSchema` instead. */
|
|
118
|
-
export const inboundSchema = VariantDetailAssociatedOptions$inboundSchema;
|
|
119
|
-
/** @deprecated use `VariantDetailAssociatedOptions$outboundSchema` instead. */
|
|
120
|
-
export const outboundSchema = VariantDetailAssociatedOptions$outboundSchema;
|
|
121
|
-
/** @deprecated use `VariantDetailAssociatedOptions$Outbound` instead. */
|
|
122
|
-
export type Outbound = VariantDetailAssociatedOptions$Outbound;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export function variantDetailAssociatedOptionsToJSON(
|
|
126
|
-
variantDetailAssociatedOptions: VariantDetailAssociatedOptions,
|
|
127
|
-
): string {
|
|
128
|
-
return JSON.stringify(
|
|
129
|
-
VariantDetailAssociatedOptions$outboundSchema.parse(
|
|
130
|
-
variantDetailAssociatedOptions,
|
|
131
|
-
),
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export function variantDetailAssociatedOptionsFromJSON(
|
|
136
|
-
jsonString: string,
|
|
137
|
-
): SafeParseResult<VariantDetailAssociatedOptions, SDKValidationError> {
|
|
138
|
-
return safeParse(
|
|
139
|
-
jsonString,
|
|
140
|
-
(x) => VariantDetailAssociatedOptions$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
-
`Failed to parse 'VariantDetailAssociatedOptions' from JSON`,
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/** @internal */
|
|
146
|
-
export const VariantDetailMetadata$inboundSchema: z.ZodType<
|
|
147
|
-
VariantDetailMetadata,
|
|
148
|
-
z.ZodTypeDef,
|
|
149
|
-
unknown
|
|
150
|
-
> = z.object({
|
|
151
|
-
key: z.string().optional(),
|
|
152
|
-
value: z.string().optional(),
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
/** @internal */
|
|
156
|
-
export type VariantDetailMetadata$Outbound = {
|
|
157
|
-
key?: string | undefined;
|
|
158
|
-
value?: string | undefined;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
/** @internal */
|
|
162
|
-
export const VariantDetailMetadata$outboundSchema: z.ZodType<
|
|
163
|
-
VariantDetailMetadata$Outbound,
|
|
164
|
-
z.ZodTypeDef,
|
|
165
|
-
VariantDetailMetadata
|
|
166
|
-
> = z.object({
|
|
167
|
-
key: z.string().optional(),
|
|
168
|
-
value: z.string().optional(),
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @internal
|
|
173
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
174
|
-
*/
|
|
175
|
-
export namespace VariantDetailMetadata$ {
|
|
176
|
-
/** @deprecated use `VariantDetailMetadata$inboundSchema` instead. */
|
|
177
|
-
export const inboundSchema = VariantDetailMetadata$inboundSchema;
|
|
178
|
-
/** @deprecated use `VariantDetailMetadata$outboundSchema` instead. */
|
|
179
|
-
export const outboundSchema = VariantDetailMetadata$outboundSchema;
|
|
180
|
-
/** @deprecated use `VariantDetailMetadata$Outbound` instead. */
|
|
181
|
-
export type Outbound = VariantDetailMetadata$Outbound;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export function variantDetailMetadataToJSON(
|
|
185
|
-
variantDetailMetadata: VariantDetailMetadata,
|
|
186
|
-
): string {
|
|
187
|
-
return JSON.stringify(
|
|
188
|
-
VariantDetailMetadata$outboundSchema.parse(variantDetailMetadata),
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export function variantDetailMetadataFromJSON(
|
|
193
|
-
jsonString: string,
|
|
194
|
-
): SafeParseResult<VariantDetailMetadata, SDKValidationError> {
|
|
195
|
-
return safeParse(
|
|
196
|
-
jsonString,
|
|
197
|
-
(x) => VariantDetailMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
198
|
-
`Failed to parse 'VariantDetailMetadata' from JSON`,
|
|
199
|
-
);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
102
|
/** @internal */
|
|
203
103
|
export const VariantDetail$inboundSchema: z.ZodType<
|
|
204
104
|
VariantDetail,
|
|
@@ -206,53 +106,58 @@ export const VariantDetail$inboundSchema: z.ZodType<
|
|
|
206
106
|
unknown
|
|
207
107
|
> = z.object({
|
|
208
108
|
id: z.string().optional(),
|
|
109
|
+
product_id: z.string().optional(),
|
|
110
|
+
sku: z.string().optional(),
|
|
209
111
|
name: z.string().optional(),
|
|
112
|
+
product_name: z.string().optional(),
|
|
210
113
|
short_description: z.string().optional(),
|
|
211
114
|
description: z.string().optional(),
|
|
212
115
|
stock_available: z.boolean().optional(),
|
|
213
116
|
is_default: z.boolean().optional(),
|
|
214
|
-
associated_options: z.
|
|
117
|
+
associated_options: z.record(AssociatedOption$inboundSchema),
|
|
118
|
+
variant_attributes: z.nullable(z.array(ProductAttribute$inboundSchema))
|
|
215
119
|
.optional(),
|
|
216
|
-
metadata: z.nullable(
|
|
217
|
-
z.array(z.lazy(() => VariantDetailMetadata$inboundSchema)),
|
|
218
|
-
).optional(),
|
|
219
|
-
sku: z.string().optional(),
|
|
220
120
|
pricing: ProductPricing$inboundSchema.optional(),
|
|
221
121
|
videos: z.array(ProductVideo$inboundSchema).optional(),
|
|
222
122
|
images: z.array(ProductImage$inboundSchema).optional(),
|
|
223
123
|
shipping: ProductShipping$inboundSchema.optional(),
|
|
224
|
-
packaging: ProductPackaging$inboundSchema.optional(),
|
|
225
124
|
promotion: z.array(ProductPromotion$inboundSchema).optional(),
|
|
226
125
|
subscription: z.array(ProductSubscription$inboundSchema).optional(),
|
|
227
126
|
seo: Seo$inboundSchema.optional(),
|
|
127
|
+
metadata: z.record(z.string()).optional(),
|
|
228
128
|
}).transform((v) => {
|
|
229
129
|
return remap$(v, {
|
|
130
|
+
"product_id": "productId",
|
|
131
|
+
"product_name": "productName",
|
|
230
132
|
"short_description": "shortDescription",
|
|
231
133
|
"stock_available": "stockAvailable",
|
|
232
134
|
"is_default": "isDefault",
|
|
233
135
|
"associated_options": "associatedOptions",
|
|
136
|
+
"variant_attributes": "variantAttributes",
|
|
234
137
|
});
|
|
235
138
|
});
|
|
236
139
|
|
|
237
140
|
/** @internal */
|
|
238
141
|
export type VariantDetail$Outbound = {
|
|
239
142
|
id?: string | undefined;
|
|
143
|
+
product_id?: string | undefined;
|
|
144
|
+
sku?: string | undefined;
|
|
240
145
|
name?: string | undefined;
|
|
146
|
+
product_name?: string | undefined;
|
|
241
147
|
short_description?: string | undefined;
|
|
242
148
|
description?: string | undefined;
|
|
243
149
|
stock_available?: boolean | undefined;
|
|
244
150
|
is_default?: boolean | undefined;
|
|
245
|
-
associated_options
|
|
246
|
-
|
|
247
|
-
sku?: string | undefined;
|
|
151
|
+
associated_options: { [k: string]: AssociatedOption$Outbound };
|
|
152
|
+
variant_attributes?: Array<ProductAttribute$Outbound> | null | undefined;
|
|
248
153
|
pricing?: ProductPricing$Outbound | undefined;
|
|
249
154
|
videos?: Array<ProductVideo$Outbound> | undefined;
|
|
250
155
|
images?: Array<ProductImage$Outbound> | undefined;
|
|
251
156
|
shipping?: ProductShipping$Outbound | undefined;
|
|
252
|
-
packaging?: ProductPackaging$Outbound | undefined;
|
|
253
157
|
promotion?: Array<ProductPromotion$Outbound> | undefined;
|
|
254
158
|
subscription?: Array<ProductSubscription$Outbound> | undefined;
|
|
255
159
|
seo?: Seo$Outbound | undefined;
|
|
160
|
+
metadata?: { [k: string]: string } | undefined;
|
|
256
161
|
};
|
|
257
162
|
|
|
258
163
|
/** @internal */
|
|
@@ -262,31 +167,34 @@ export const VariantDetail$outboundSchema: z.ZodType<
|
|
|
262
167
|
VariantDetail
|
|
263
168
|
> = z.object({
|
|
264
169
|
id: z.string().optional(),
|
|
170
|
+
productId: z.string().optional(),
|
|
171
|
+
sku: z.string().optional(),
|
|
265
172
|
name: z.string().optional(),
|
|
173
|
+
productName: z.string().optional(),
|
|
266
174
|
shortDescription: z.string().optional(),
|
|
267
175
|
description: z.string().optional(),
|
|
268
176
|
stockAvailable: z.boolean().optional(),
|
|
269
177
|
isDefault: z.boolean().optional(),
|
|
270
|
-
associatedOptions: z.
|
|
178
|
+
associatedOptions: z.record(AssociatedOption$outboundSchema),
|
|
179
|
+
variantAttributes: z.nullable(z.array(ProductAttribute$outboundSchema))
|
|
271
180
|
.optional(),
|
|
272
|
-
metadata: z.nullable(
|
|
273
|
-
z.array(z.lazy(() => VariantDetailMetadata$outboundSchema)),
|
|
274
|
-
).optional(),
|
|
275
|
-
sku: z.string().optional(),
|
|
276
181
|
pricing: ProductPricing$outboundSchema.optional(),
|
|
277
182
|
videos: z.array(ProductVideo$outboundSchema).optional(),
|
|
278
183
|
images: z.array(ProductImage$outboundSchema).optional(),
|
|
279
184
|
shipping: ProductShipping$outboundSchema.optional(),
|
|
280
|
-
packaging: ProductPackaging$outboundSchema.optional(),
|
|
281
185
|
promotion: z.array(ProductPromotion$outboundSchema).optional(),
|
|
282
186
|
subscription: z.array(ProductSubscription$outboundSchema).optional(),
|
|
283
187
|
seo: Seo$outboundSchema.optional(),
|
|
188
|
+
metadata: z.record(z.string()).optional(),
|
|
284
189
|
}).transform((v) => {
|
|
285
190
|
return remap$(v, {
|
|
191
|
+
productId: "product_id",
|
|
192
|
+
productName: "product_name",
|
|
286
193
|
shortDescription: "short_description",
|
|
287
194
|
stockAvailable: "stock_available",
|
|
288
195
|
isDefault: "is_default",
|
|
289
196
|
associatedOptions: "associated_options",
|
|
197
|
+
variantAttributes: "variant_attributes",
|
|
290
198
|
});
|
|
291
199
|
});
|
|
292
200
|
|