@51eat/sdk 0.0.68 → 0.0.70

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.
Files changed (741) hide show
  1. package/README.md +11 -13
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +3 -0
  4. package/dist/cjs/Client.js +5 -0
  5. package/dist/cjs/api/errors/InternalServerError.d.ts +2 -1
  6. package/dist/cjs/api/errors/index.d.ts +0 -1
  7. package/dist/cjs/api/errors/index.js +0 -1
  8. package/dist/cjs/api/resources/business/client/Client.d.ts +9 -9
  9. package/dist/cjs/api/resources/business/client/Client.js +25 -25
  10. package/dist/cjs/api/resources/business/resources/index.d.ts +3 -4
  11. package/dist/cjs/api/resources/business/resources/index.js +4 -5
  12. package/dist/cjs/api/resources/business/resources/priceLists/client/Client.d.ts +53 -0
  13. package/dist/cjs/api/resources/business/resources/priceLists/client/Client.js +222 -0
  14. package/dist/cjs/api/resources/business/resources/priceLists/client/requests/DeletePriceListsRequest.d.ts +10 -0
  15. package/dist/cjs/api/resources/business/resources/priceLists/client/requests/StorePriceListRequest.d.ts +9 -0
  16. package/dist/cjs/api/resources/business/resources/priceLists/client/requests/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/business/resources/priceLists/client/requests/index.js +2 -0
  18. package/dist/cjs/api/resources/business/resources/priceLists/exports.d.ts +2 -0
  19. package/dist/cjs/api/resources/business/resources/{discounts/types/index.js → priceLists/exports.js} +5 -5
  20. package/dist/cjs/api/resources/business/resources/priceLists/types/CreatePriceListsResponse.d.ts +4 -0
  21. package/dist/cjs/api/resources/business/resources/priceLists/types/ListPriceListsResponse.d.ts +4 -0
  22. package/dist/cjs/api/resources/business/resources/priceLists/types/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/business/resources/{shipping/resources/rates → priceLists}/types/index.js +2 -3
  24. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +7 -28
  25. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.js +30 -121
  26. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.ts +0 -1
  27. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.ts +9 -0
  28. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/index.d.ts +1 -2
  29. package/dist/cjs/api/resources/business/resources/productCategories/index.d.ts +0 -1
  30. package/dist/cjs/api/resources/business/resources/productCategories/index.js +0 -1
  31. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +10 -23
  32. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +21 -38
  33. package/dist/{esm/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.mts → cjs/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.ts} +4 -5
  34. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.ts +0 -1
  35. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.ts +0 -1
  36. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +0 -1
  37. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/ListProductOrdersRequest.d.ts +8 -0
  38. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.ts +0 -1
  39. package/dist/{esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.mts → cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.ts} +1 -2
  40. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/{RefundOrderRequest.d.ts → RefundProductOrdersRequest.d.ts} +1 -2
  41. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +4 -3
  42. package/dist/cjs/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.ts +1 -1
  43. package/dist/cjs/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.ts +1 -1
  44. package/dist/cjs/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.ts +1 -1
  45. package/dist/cjs/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.ts +1 -1
  46. package/dist/cjs/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.ts +1 -1
  47. package/dist/cjs/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.ts +1 -1
  48. package/dist/cjs/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.ts +1 -1
  49. package/dist/cjs/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.ts +1 -1
  50. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +6 -11
  51. package/dist/cjs/api/resources/business/resources/products/client/Client.js +8 -24
  52. package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +4 -56
  53. package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.js +0 -27
  54. package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +6 -56
  55. package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.js +0 -27
  56. package/dist/cjs/api/resources/business/resources/products/client/requests/index.d.ts +2 -2
  57. package/dist/cjs/api/resources/business/resources/products/client/requests/index.js +0 -5
  58. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +5 -28
  59. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +23 -100
  60. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +0 -2
  61. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +1 -10
  62. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +0 -5
  63. package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +0 -1
  64. package/dist/cjs/api/resources/business/resources/products/resources/images/index.js +0 -1
  65. package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +0 -1
  66. package/dist/cjs/api/resources/business/resources/products/resources/index.js +0 -1
  67. package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/Client.d.ts +0 -1
  68. package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/Client.js +0 -3
  69. package/dist/cjs/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.ts +1 -1
  70. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +13 -10
  71. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +13 -11
  72. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.d.ts +33 -0
  73. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.js +17 -0
  74. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.d.ts +33 -0
  75. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.js +17 -0
  76. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.d.ts +2 -2
  77. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.js +5 -5
  78. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +5 -28
  79. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +23 -100
  80. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +0 -2
  81. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +1 -10
  82. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +0 -5
  83. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +0 -1
  84. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +0 -1
  85. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -1
  86. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +4 -2
  87. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.ts +17 -5
  88. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.js +59 -21
  89. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.d.ts +4 -16
  90. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.js +0 -9
  91. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.ts +0 -2
  92. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.d.ts +15 -0
  93. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.ts +2 -1
  94. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.js +0 -3
  95. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.ts +1 -1
  96. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.d.ts +4 -0
  97. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.ts +1 -1
  98. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.js +1 -1
  99. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.d.ts +32 -0
  100. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.js +137 -0
  101. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/index.d.ts +1 -0
  102. package/dist/cjs/api/resources/business/resources/products/resources/{images/types → variants/resources/prices/client}/index.js +1 -3
  103. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/SetPriceRequest.d.ts +21 -0
  104. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.d.ts +1 -0
  105. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.js +2 -0
  106. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/exports.d.ts +2 -0
  107. package/dist/cjs/api/resources/business/resources/{discounts → products/resources/variants/resources/prices}/exports.js +2 -2
  108. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/index.d.ts +2 -0
  109. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/index.js +18 -0
  110. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/SetPricesResponse.d.ts +4 -0
  111. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/index.d.ts +1 -0
  112. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/index.js +17 -0
  113. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.ts +1 -1
  114. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.ts +1 -1
  115. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.d.ts +0 -1
  116. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.js +0 -1
  117. package/dist/cjs/api/resources/business/resources/products/types/CreateProductsResponse.d.ts +1 -1
  118. package/dist/cjs/api/resources/business/resources/products/types/GetProductsResponse.d.ts +1 -1
  119. package/dist/cjs/api/resources/business/resources/products/types/ListProductsResponse.d.ts +1 -1
  120. package/dist/cjs/api/resources/business/resources/products/types/UpdateProductsResponse.d.ts +1 -1
  121. package/dist/cjs/api/resources/business/resources/products/types/index.d.ts +0 -1
  122. package/dist/cjs/api/resources/business/resources/products/types/index.js +0 -1
  123. package/dist/cjs/api/resources/business/resources/shipping/resources/index.d.ts +0 -1
  124. package/dist/cjs/api/resources/business/resources/shipping/resources/index.js +0 -1
  125. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.d.ts +7 -28
  126. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.js +30 -112
  127. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.ts +0 -1
  128. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateRatesRequest.d.ts +9 -0
  129. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.ts +1 -2
  130. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/index.js +0 -5
  131. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/index.d.ts +0 -1
  132. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/index.js +0 -1
  133. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +49 -67
  134. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +87 -99
  135. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +14 -0
  136. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.ts +15 -0
  137. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +2 -2
  138. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.ts +10 -0
  139. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +2 -2
  140. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.ts +26 -0
  141. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.ts +14 -0
  142. package/dist/cjs/api/resources/customer/resources/cart/client/requests/{UpdateCartItemRequest.d.ts → UpdateItemCartRequest.d.ts} +1 -1
  143. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +6 -6
  144. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.js +0 -5
  145. package/dist/cjs/api/resources/customer/resources/cart/types/AddItemCartResponse.d.ts +1 -1
  146. package/dist/cjs/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.ts +1 -1
  147. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +6 -13
  148. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.js +7 -0
  149. package/dist/cjs/api/resources/customer/resources/cart/types/GetCartResponse.d.ts +1 -1
  150. package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +14 -0
  151. package/dist/cjs/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.ts +1 -1
  152. package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.ts +2 -4
  153. package/dist/cjs/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.ts +1 -1
  154. package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +1 -2
  155. package/dist/cjs/api/resources/customer/resources/cart/types/index.js +1 -2
  156. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +2 -2
  157. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +1 -1
  158. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/{AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts → CreatePaymentIntentRequest.d.ts} +3 -3
  159. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.ts +1 -1
  160. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.d.ts +1 -1
  161. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.js +3 -3
  162. package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +0 -1
  163. package/dist/cjs/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.ts +1 -1
  164. package/dist/cjs/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.ts +1 -1
  165. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +6 -3
  166. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +14 -6
  167. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -2
  168. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -2
  169. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +3 -6
  170. package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +1 -1
  171. package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +10 -4
  172. package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +1 -1
  173. package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +9 -21
  174. package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +28 -78
  175. package/dist/cjs/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.ts +9 -0
  176. package/dist/cjs/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.ts +0 -1
  177. package/dist/cjs/api/resources/customer/resources/stands/client/requests/index.d.ts +1 -1
  178. package/dist/cjs/api/resources/customer/resources/stands/types/index.d.ts +0 -2
  179. package/dist/cjs/api/resources/customer/resources/stands/types/index.js +0 -2
  180. package/dist/cjs/api/resources/customerStands/client/Client.d.ts +90 -0
  181. package/dist/cjs/api/resources/{business/resources/discounts → customerStands}/client/Client.js +83 -85
  182. package/dist/cjs/api/resources/customerStands/client/index.d.ts +1 -0
  183. package/dist/cjs/api/resources/customerStands/client/index.js +17 -0
  184. package/dist/cjs/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.ts +14 -0
  185. package/dist/cjs/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.ts +10 -0
  186. package/dist/cjs/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.ts +10 -0
  187. package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.ts +15 -0
  188. package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.ts +10 -0
  189. package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +5 -0
  190. package/dist/cjs/api/resources/customerStands/client/requests/index.js +2 -0
  191. package/dist/cjs/api/resources/customerStands/exports.d.ts +2 -0
  192. package/dist/cjs/api/resources/customerStands/exports.js +21 -0
  193. package/dist/cjs/api/resources/customerStands/index.d.ts +2 -0
  194. package/dist/cjs/api/resources/customerStands/index.js +18 -0
  195. package/dist/cjs/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.ts +4 -0
  196. package/dist/cjs/api/resources/customerStands/types/CustomerGetStandCartResponse.d.ts +4 -0
  197. package/dist/cjs/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.ts +4 -0
  198. package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.ts +12 -0
  199. package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.js +10 -0
  200. package/dist/cjs/api/resources/customerStands/types/index.d.ts +4 -0
  201. package/dist/cjs/api/resources/{business/resources/productCategories → customerStands}/types/index.js +4 -4
  202. package/dist/cjs/api/resources/index.d.ts +3 -0
  203. package/dist/cjs/api/resources/index.js +4 -1
  204. package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +13 -0
  205. package/dist/cjs/api/types/BusinessHoursResource.d.ts +2 -3
  206. package/dist/cjs/api/types/BusinessMenu.d.ts +1 -2
  207. package/dist/cjs/api/types/BusinessMenuGroup.d.ts +1 -2
  208. package/dist/cjs/api/types/BusinessMenuItem.d.ts +2 -3
  209. package/dist/cjs/api/types/CartResource.d.ts +21 -0
  210. package/dist/cjs/api/types/CheckoutRequest.d.ts +5 -0
  211. package/dist/cjs/api/types/ImageResource.d.ts +6 -0
  212. package/dist/cjs/api/types/InternalServerErrorBody.d.ts +1 -1
  213. package/dist/cjs/api/types/InternalServerErrorBody.js +1 -1
  214. package/dist/cjs/api/types/InventoryLevelResource.d.ts +7 -0
  215. package/dist/cjs/api/types/OrderResource.d.ts +27 -0
  216. package/dist/cjs/api/types/PriceListResource.d.ts +8 -0
  217. package/dist/cjs/api/types/PriceResource.d.ts +10 -0
  218. package/dist/cjs/api/types/ProductCategoryResource.d.ts +8 -0
  219. package/dist/cjs/api/types/ProductResource.d.ts +17 -0
  220. package/dist/cjs/api/types/StandShop.d.ts +1 -1
  221. package/dist/cjs/api/types/VariantResource.d.ts +14 -0
  222. package/dist/cjs/api/types/index.d.ts +11 -20
  223. package/dist/cjs/api/types/index.js +11 -20
  224. package/dist/cjs/version.d.ts +1 -1
  225. package/dist/cjs/version.js +1 -1
  226. package/dist/esm/BaseClient.mjs +2 -2
  227. package/dist/esm/Client.d.mts +3 -0
  228. package/dist/esm/Client.mjs +5 -0
  229. package/dist/esm/api/errors/InternalServerError.d.mts +2 -1
  230. package/dist/esm/api/errors/index.d.mts +0 -1
  231. package/dist/esm/api/errors/index.mjs +0 -1
  232. package/dist/esm/api/resources/business/client/Client.d.mts +9 -9
  233. package/dist/esm/api/resources/business/client/Client.mjs +15 -15
  234. package/dist/esm/api/resources/business/resources/index.d.mts +3 -4
  235. package/dist/esm/api/resources/business/resources/index.mjs +3 -4
  236. package/dist/esm/api/resources/business/resources/priceLists/client/Client.d.mts +53 -0
  237. package/dist/esm/api/resources/business/resources/priceLists/client/Client.mjs +185 -0
  238. package/dist/esm/api/resources/business/resources/priceLists/client/requests/DeletePriceListsRequest.d.mts +10 -0
  239. package/dist/esm/api/resources/business/resources/priceLists/client/requests/StorePriceListRequest.d.mts +9 -0
  240. package/dist/esm/api/resources/business/resources/priceLists/client/requests/index.d.mts +2 -0
  241. package/dist/esm/api/resources/business/resources/priceLists/client/requests/index.mjs +1 -0
  242. package/dist/esm/api/resources/business/resources/priceLists/exports.d.mts +2 -0
  243. package/dist/esm/api/resources/business/resources/priceLists/exports.mjs +3 -0
  244. package/dist/esm/api/resources/business/resources/priceLists/types/CreatePriceListsResponse.d.mts +4 -0
  245. package/dist/esm/api/resources/business/resources/priceLists/types/ListPriceListsResponse.d.mts +4 -0
  246. package/dist/esm/api/resources/business/resources/priceLists/types/index.d.mts +2 -0
  247. package/dist/esm/api/resources/business/resources/priceLists/types/index.mjs +2 -0
  248. package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +7 -28
  249. package/dist/esm/api/resources/business/resources/productCategories/client/Client.mjs +30 -121
  250. package/dist/esm/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.mts +0 -1
  251. package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.mts +9 -0
  252. package/dist/esm/api/resources/business/resources/productCategories/client/requests/index.d.mts +1 -2
  253. package/dist/esm/api/resources/business/resources/productCategories/index.d.mts +0 -1
  254. package/dist/esm/api/resources/business/resources/productCategories/index.mjs +0 -1
  255. package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +10 -23
  256. package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +21 -38
  257. package/dist/{cjs/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.ts → esm/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.mts} +4 -5
  258. package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.mts +0 -1
  259. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +0 -1
  260. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +0 -1
  261. package/dist/esm/api/resources/business/resources/productOrders/client/requests/ListProductOrdersRequest.d.mts +8 -0
  262. package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.mts +0 -1
  263. package/dist/{cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.ts → esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.mts} +1 -2
  264. package/dist/esm/api/resources/business/resources/productOrders/client/requests/{RefundOrderRequest.d.mts → RefundProductOrdersRequest.d.mts} +1 -2
  265. package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +4 -3
  266. package/dist/esm/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.mts +1 -1
  267. package/dist/esm/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.mts +1 -1
  268. package/dist/esm/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.mts +1 -1
  269. package/dist/esm/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.mts +1 -1
  270. package/dist/esm/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.mts +1 -1
  271. package/dist/esm/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.mts +1 -1
  272. package/dist/esm/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.mts +1 -1
  273. package/dist/esm/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.mts +1 -1
  274. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +6 -11
  275. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +8 -24
  276. package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +4 -56
  277. package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.mjs +1 -26
  278. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +6 -56
  279. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.mjs +1 -26
  280. package/dist/esm/api/resources/business/resources/products/client/requests/index.d.mts +2 -2
  281. package/dist/esm/api/resources/business/resources/products/client/requests/index.mjs +1 -2
  282. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +5 -28
  283. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +24 -101
  284. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +0 -2
  285. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +1 -10
  286. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +0 -5
  287. package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +0 -1
  288. package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +0 -1
  289. package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +0 -1
  290. package/dist/esm/api/resources/business/resources/products/resources/index.mjs +0 -1
  291. package/dist/esm/api/resources/business/resources/products/resources/inventory/client/Client.d.mts +0 -1
  292. package/dist/esm/api/resources/business/resources/products/resources/inventory/client/Client.mjs +0 -3
  293. package/dist/esm/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.mts +1 -1
  294. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +13 -10
  295. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +13 -11
  296. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.d.mts +33 -0
  297. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.mjs +14 -0
  298. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.d.mts +33 -0
  299. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.mjs +14 -0
  300. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.d.mts +2 -2
  301. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.mjs +2 -2
  302. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +5 -28
  303. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +24 -101
  304. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +0 -2
  305. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +1 -10
  306. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +0 -5
  307. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +0 -1
  308. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +0 -1
  309. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -1
  310. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -1
  311. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.mts +17 -5
  312. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.mjs +59 -21
  313. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.d.mts +4 -16
  314. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.mjs +1 -8
  315. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.mts +0 -2
  316. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.d.mts +15 -0
  317. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.mts +2 -1
  318. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.mjs +1 -1
  319. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.mts +1 -1
  320. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.d.mts +4 -0
  321. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.mts +1 -1
  322. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.mjs +1 -1
  323. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.d.mts +32 -0
  324. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.mjs +100 -0
  325. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/index.d.mts +1 -0
  326. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/index.mjs +1 -0
  327. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/SetPriceRequest.d.mts +21 -0
  328. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.d.mts +1 -0
  329. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.mjs +1 -0
  330. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/exports.d.mts +2 -0
  331. package/dist/esm/api/resources/business/resources/{discounts → products/resources/variants/resources/prices}/exports.mjs +1 -1
  332. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/index.d.mts +2 -0
  333. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/index.mjs +2 -0
  334. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/SetPricesResponse.d.mts +4 -0
  335. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/index.d.mts +1 -0
  336. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/index.mjs +1 -0
  337. package/dist/esm/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.mts +1 -1
  338. package/dist/esm/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.mts +1 -1
  339. package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.d.mts +0 -1
  340. package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.mjs +0 -1
  341. package/dist/esm/api/resources/business/resources/products/types/CreateProductsResponse.d.mts +1 -1
  342. package/dist/esm/api/resources/business/resources/products/types/GetProductsResponse.d.mts +1 -1
  343. package/dist/esm/api/resources/business/resources/products/types/ListProductsResponse.d.mts +1 -1
  344. package/dist/esm/api/resources/business/resources/products/types/UpdateProductsResponse.d.mts +1 -1
  345. package/dist/esm/api/resources/business/resources/products/types/index.d.mts +0 -1
  346. package/dist/esm/api/resources/business/resources/products/types/index.mjs +0 -1
  347. package/dist/esm/api/resources/business/resources/shipping/resources/index.d.mts +0 -1
  348. package/dist/esm/api/resources/business/resources/shipping/resources/index.mjs +0 -1
  349. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.d.mts +7 -28
  350. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.mjs +30 -112
  351. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.mts +0 -1
  352. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateRatesRequest.d.mts +9 -0
  353. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.mts +1 -2
  354. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/index.mjs +1 -2
  355. package/dist/esm/api/resources/business/resources/shipping/resources/rates/index.d.mts +0 -1
  356. package/dist/esm/api/resources/business/resources/shipping/resources/rates/index.mjs +0 -1
  357. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +49 -67
  358. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +87 -99
  359. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +14 -0
  360. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.mts +15 -0
  361. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +2 -2
  362. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.mts +10 -0
  363. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +2 -2
  364. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.mts +26 -0
  365. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.mts +14 -0
  366. package/dist/esm/api/resources/customer/resources/cart/client/requests/{UpdateCartItemRequest.d.mts → UpdateItemCartRequest.d.mts} +1 -1
  367. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +6 -6
  368. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.mjs +1 -2
  369. package/dist/esm/api/resources/customer/resources/cart/types/AddItemCartResponse.d.mts +1 -1
  370. package/dist/esm/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.mts +1 -1
  371. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +6 -13
  372. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.mjs +6 -1
  373. package/dist/esm/api/resources/customer/resources/cart/types/GetCartResponse.d.mts +1 -1
  374. package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +14 -0
  375. package/dist/esm/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.mts +1 -1
  376. package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.mts +2 -4
  377. package/dist/esm/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.mts +1 -1
  378. package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +1 -2
  379. package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +1 -2
  380. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +2 -2
  381. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +1 -1
  382. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/{AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts → CreatePaymentIntentRequest.d.mts} +3 -3
  383. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.mts +1 -1
  384. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.d.mts +1 -1
  385. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.mjs +3 -3
  386. package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +0 -1
  387. package/dist/esm/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.mts +1 -1
  388. package/dist/esm/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.mts +1 -1
  389. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +6 -3
  390. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +14 -6
  391. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -2
  392. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -2
  393. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +3 -6
  394. package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +1 -1
  395. package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +10 -4
  396. package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +1 -1
  397. package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +9 -21
  398. package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +28 -78
  399. package/dist/esm/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.mts +9 -0
  400. package/dist/esm/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.mts +0 -1
  401. package/dist/esm/api/resources/customer/resources/stands/client/requests/index.d.mts +1 -1
  402. package/dist/esm/api/resources/customer/resources/stands/types/index.d.mts +0 -2
  403. package/dist/esm/api/resources/customer/resources/stands/types/index.mjs +0 -2
  404. package/dist/esm/api/resources/customerStands/client/Client.d.mts +90 -0
  405. package/dist/esm/api/resources/{business/resources/discounts → customerStands}/client/Client.mjs +81 -83
  406. package/dist/esm/api/resources/customerStands/client/index.d.mts +1 -0
  407. package/dist/esm/api/resources/customerStands/client/index.mjs +1 -0
  408. package/dist/esm/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.mts +14 -0
  409. package/dist/esm/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.mts +10 -0
  410. package/dist/esm/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.mts +10 -0
  411. package/dist/esm/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.mts +15 -0
  412. package/dist/esm/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.mts +10 -0
  413. package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +5 -0
  414. package/dist/esm/api/resources/customerStands/client/requests/index.mjs +1 -0
  415. package/dist/esm/api/resources/customerStands/exports.d.mts +2 -0
  416. package/dist/esm/api/resources/customerStands/exports.mjs +3 -0
  417. package/dist/esm/api/resources/customerStands/index.d.mts +2 -0
  418. package/dist/esm/api/resources/customerStands/index.mjs +2 -0
  419. package/dist/esm/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.mts +4 -0
  420. package/dist/esm/api/resources/customerStands/types/CustomerGetStandCartResponse.d.mts +4 -0
  421. package/dist/esm/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.mts +4 -0
  422. package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.mts +12 -0
  423. package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.mjs +7 -0
  424. package/dist/esm/api/resources/customerStands/types/index.d.mts +4 -0
  425. package/dist/esm/api/resources/customerStands/types/index.mjs +4 -0
  426. package/dist/esm/api/resources/index.d.mts +3 -0
  427. package/dist/esm/api/resources/index.mjs +3 -0
  428. package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +13 -0
  429. package/dist/esm/api/types/BusinessHoursResource.d.mts +2 -3
  430. package/dist/esm/api/types/BusinessMenu.d.mts +1 -2
  431. package/dist/esm/api/types/BusinessMenuGroup.d.mts +1 -2
  432. package/dist/esm/api/types/BusinessMenuItem.d.mts +2 -3
  433. package/dist/esm/api/types/CartResource.d.mts +21 -0
  434. package/dist/esm/api/types/CheckoutRequest.d.mts +5 -0
  435. package/dist/esm/api/types/ImageResource.d.mts +6 -0
  436. package/dist/esm/api/types/InternalServerErrorBody.d.mts +1 -1
  437. package/dist/esm/api/types/InternalServerErrorBody.mjs +1 -1
  438. package/dist/esm/api/types/InventoryLevelResource.d.mts +7 -0
  439. package/dist/esm/api/types/OrderResource.d.mts +27 -0
  440. package/dist/esm/api/types/PriceListResource.d.mts +8 -0
  441. package/dist/esm/api/types/PriceResource.d.mts +10 -0
  442. package/dist/esm/api/types/ProductCategoryResource.d.mts +8 -0
  443. package/dist/esm/api/types/ProductResource.d.mts +17 -0
  444. package/dist/esm/api/types/StandShop.d.mts +1 -1
  445. package/dist/esm/api/types/VariantResource.d.mts +14 -0
  446. package/dist/esm/api/types/index.d.mts +11 -20
  447. package/dist/esm/api/types/index.mjs +11 -20
  448. package/dist/esm/version.d.mts +1 -1
  449. package/dist/esm/version.mjs +1 -1
  450. package/package.json +79 -57
  451. package/reference.md +1038 -936
  452. package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +0 -6
  453. package/dist/cjs/api/errors/ServiceUnavailableError.js +0 -54
  454. package/dist/cjs/api/resources/business/resources/discounts/client/Client.d.ts +0 -87
  455. package/dist/cjs/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.ts +0 -10
  456. package/dist/cjs/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.ts +0 -10
  457. package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.ts +0 -39
  458. package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.js +0 -18
  459. package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.ts +0 -38
  460. package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.js +0 -18
  461. package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.d.ts +0 -4
  462. package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.js +0 -7
  463. package/dist/cjs/api/resources/business/resources/discounts/exports.d.ts +0 -2
  464. package/dist/cjs/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.ts +0 -4
  465. package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.ts +0 -9
  466. package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.js +0 -10
  467. package/dist/cjs/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.ts +0 -4
  468. package/dist/cjs/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.ts +0 -4
  469. package/dist/cjs/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.ts +0 -4
  470. package/dist/cjs/api/resources/business/resources/discounts/types/index.d.ts +0 -5
  471. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.ts +0 -12
  472. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.ts +0 -14
  473. package/dist/cjs/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.ts +0 -4
  474. package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.ts +0 -9
  475. package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.js +0 -10
  476. package/dist/cjs/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.ts +0 -4
  477. package/dist/cjs/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.ts +0 -4
  478. package/dist/cjs/api/resources/business/resources/productCategories/types/index.d.ts +0 -4
  479. package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +0 -9
  480. package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +0 -10
  481. package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +0 -9
  482. package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +0 -10
  483. package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +0 -4
  484. package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +0 -3
  485. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.ts +0 -34
  486. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.js +0 -13
  487. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.ts +0 -32
  488. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.js +0 -13
  489. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +0 -9
  490. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +0 -10
  491. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +0 -9
  492. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +0 -10
  493. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +0 -4
  494. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +0 -3
  495. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +0 -19
  496. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.ts +0 -4
  497. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.ts +0 -9
  498. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.js +0 -10
  499. package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.d.ts +0 -9
  500. package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.js +0 -10
  501. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.d.ts +0 -23
  502. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.js +0 -11
  503. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.d.ts +0 -26
  504. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.js +0 -11
  505. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.ts +0 -4
  506. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.ts +0 -4
  507. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.ts +0 -4
  508. package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/index.d.ts +0 -3
  509. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +0 -15
  510. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +0 -45
  511. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.js +0 -11
  512. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +0 -43
  513. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.js +0 -11
  514. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.ts +0 -28
  515. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.ts +0 -12
  516. package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.d.ts +0 -9
  517. package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.js +0 -10
  518. package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.ts +0 -19
  519. package/dist/cjs/api/resources/customer/resources/stands/client/requests/SelfCheckoutRequest.d.ts +0 -12
  520. package/dist/cjs/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.ts +0 -4
  521. package/dist/cjs/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.ts +0 -9
  522. package/dist/cjs/api/types/BusinessDiscount.d.ts +0 -19
  523. package/dist/cjs/api/types/BusinessInventoryLog.d.ts +0 -15
  524. package/dist/cjs/api/types/BusinessProduct.d.ts +0 -46
  525. package/dist/cjs/api/types/BusinessProductCategory.d.ts +0 -13
  526. package/dist/cjs/api/types/BusinessProductInventorySummary.d.ts +0 -7
  527. package/dist/cjs/api/types/BusinessProductOrder.d.ts +0 -40
  528. package/dist/cjs/api/types/BusinessProductOrderItem.d.ts +0 -24
  529. package/dist/cjs/api/types/BusinessProductVariant.d.ts +0 -22
  530. package/dist/cjs/api/types/CustomerCart.d.ts +0 -9
  531. package/dist/cjs/api/types/CustomerCartItem.d.ts +0 -24
  532. package/dist/cjs/api/types/CustomerProductOrder.d.ts +0 -25
  533. package/dist/cjs/api/types/CustomerProductOrderItem.d.ts +0 -32
  534. package/dist/cjs/api/types/CustomerShopProduct.d.ts +0 -21
  535. package/dist/cjs/api/types/CustomerShopProductCategory.d.ts +0 -8
  536. package/dist/cjs/api/types/CustomerShopProductCategory.js +0 -3
  537. package/dist/cjs/api/types/CustomerShopProductVariant.d.ts +0 -13
  538. package/dist/cjs/api/types/CustomerShopProductVariant.js +0 -3
  539. package/dist/cjs/api/types/InventoryChangeType.d.ts +0 -9
  540. package/dist/cjs/api/types/InventoryChangeType.js +0 -12
  541. package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +0 -12
  542. package/dist/cjs/api/types/ReorderProductImagesRequest.js +0 -3
  543. package/dist/cjs/api/types/ServiceUnavailableErrorBody.d.ts +0 -3
  544. package/dist/cjs/api/types/ServiceUnavailableErrorBody.js +0 -3
  545. package/dist/cjs/api/types/ShippingRateResource.d.ts +0 -12
  546. package/dist/cjs/api/types/ShippingRateResource.js +0 -3
  547. package/dist/cjs/api/types/StoreProductImageRequest.d.ts +0 -4
  548. package/dist/cjs/api/types/StoreProductImageRequest.js +0 -3
  549. package/dist/esm/api/errors/ServiceUnavailableError.d.mts +0 -6
  550. package/dist/esm/api/errors/ServiceUnavailableError.mjs +0 -17
  551. package/dist/esm/api/resources/business/resources/discounts/client/Client.d.mts +0 -87
  552. package/dist/esm/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.mts +0 -10
  553. package/dist/esm/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.mts +0 -10
  554. package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.mts +0 -39
  555. package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.mjs +0 -15
  556. package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.mts +0 -38
  557. package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.mjs +0 -15
  558. package/dist/esm/api/resources/business/resources/discounts/client/requests/index.d.mts +0 -4
  559. package/dist/esm/api/resources/business/resources/discounts/client/requests/index.mjs +0 -2
  560. package/dist/esm/api/resources/business/resources/discounts/exports.d.mts +0 -2
  561. package/dist/esm/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.mts +0 -4
  562. package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.mts +0 -9
  563. package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.mjs +0 -7
  564. package/dist/esm/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.mts +0 -4
  565. package/dist/esm/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.mts +0 -4
  566. package/dist/esm/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.mts +0 -4
  567. package/dist/esm/api/resources/business/resources/discounts/types/index.d.mts +0 -5
  568. package/dist/esm/api/resources/business/resources/discounts/types/index.mjs +0 -5
  569. package/dist/esm/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.mts +0 -12
  570. package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.mts +0 -14
  571. package/dist/esm/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.mts +0 -4
  572. package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.mts +0 -9
  573. package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.mjs +0 -7
  574. package/dist/esm/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.mts +0 -4
  575. package/dist/esm/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.mts +0 -4
  576. package/dist/esm/api/resources/business/resources/productCategories/types/index.d.mts +0 -4
  577. package/dist/esm/api/resources/business/resources/productCategories/types/index.mjs +0 -4
  578. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +0 -9
  579. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +0 -7
  580. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +0 -9
  581. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +0 -7
  582. package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +0 -4
  583. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +0 -3
  584. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +0 -3
  585. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.mts +0 -34
  586. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.mjs +0 -10
  587. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.mts +0 -32
  588. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.mjs +0 -10
  589. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +0 -9
  590. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +0 -7
  591. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +0 -9
  592. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +0 -7
  593. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +0 -4
  594. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +0 -3
  595. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +0 -3
  596. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.mts +0 -4
  597. package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.mts +0 -9
  598. package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.mjs +0 -7
  599. package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.d.mts +0 -9
  600. package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.mjs +0 -7
  601. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.d.mts +0 -23
  602. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.mjs +0 -8
  603. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.d.mts +0 -26
  604. package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.mjs +0 -8
  605. package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.mts +0 -4
  606. package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.mts +0 -4
  607. package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.mts +0 -4
  608. package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.d.mts +0 -3
  609. package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.mjs +0 -3
  610. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +0 -15
  611. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +0 -45
  612. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.mjs +0 -8
  613. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +0 -43
  614. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.mjs +0 -8
  615. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.mts +0 -28
  616. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.mts +0 -12
  617. package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.d.mts +0 -9
  618. package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.mjs +0 -7
  619. package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.mts +0 -19
  620. package/dist/esm/api/resources/customer/resources/stands/client/requests/SelfCheckoutRequest.d.mts +0 -12
  621. package/dist/esm/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.mts +0 -4
  622. package/dist/esm/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.mts +0 -9
  623. package/dist/esm/api/types/BusinessDiscount.d.mts +0 -19
  624. package/dist/esm/api/types/BusinessInventoryLog.d.mts +0 -15
  625. package/dist/esm/api/types/BusinessProduct.d.mts +0 -46
  626. package/dist/esm/api/types/BusinessProductCategory.d.mts +0 -13
  627. package/dist/esm/api/types/BusinessProductInventorySummary.d.mts +0 -7
  628. package/dist/esm/api/types/BusinessProductOrder.d.mts +0 -40
  629. package/dist/esm/api/types/BusinessProductOrderItem.d.mts +0 -24
  630. package/dist/esm/api/types/BusinessProductVariant.d.mts +0 -22
  631. package/dist/esm/api/types/CustomerCart.d.mts +0 -9
  632. package/dist/esm/api/types/CustomerCartItem.d.mts +0 -24
  633. package/dist/esm/api/types/CustomerProductOrder.d.mts +0 -25
  634. package/dist/esm/api/types/CustomerProductOrderItem.d.mts +0 -32
  635. package/dist/esm/api/types/CustomerShopProduct.d.mts +0 -21
  636. package/dist/esm/api/types/CustomerShopProductCategory.d.mts +0 -8
  637. package/dist/esm/api/types/CustomerShopProductCategory.mjs +0 -2
  638. package/dist/esm/api/types/CustomerShopProductVariant.d.mts +0 -13
  639. package/dist/esm/api/types/CustomerShopProductVariant.mjs +0 -2
  640. package/dist/esm/api/types/InventoryChangeType.d.mts +0 -9
  641. package/dist/esm/api/types/InventoryChangeType.mjs +0 -9
  642. package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +0 -12
  643. package/dist/esm/api/types/ReorderProductImagesRequest.mjs +0 -2
  644. package/dist/esm/api/types/ServiceUnavailableErrorBody.d.mts +0 -3
  645. package/dist/esm/api/types/ServiceUnavailableErrorBody.mjs +0 -2
  646. package/dist/esm/api/types/ShippingRateResource.d.mts +0 -12
  647. package/dist/esm/api/types/ShippingRateResource.mjs +0 -2
  648. package/dist/esm/api/types/StoreProductImageRequest.d.mts +0 -4
  649. package/dist/esm/api/types/StoreProductImageRequest.mjs +0 -2
  650. /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/client/index.d.ts +0 -0
  651. /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/client/index.js +0 -0
  652. /package/dist/cjs/api/resources/business/resources/{discounts/client/requests/DeleteDiscountsRequest.js → priceLists/client/requests/DeletePriceListsRequest.js} +0 -0
  653. /package/dist/cjs/api/resources/business/resources/{discounts/client/requests/GetDiscountsRequest.js → priceLists/client/requests/StorePriceListRequest.js} +0 -0
  654. /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/index.d.ts +0 -0
  655. /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/index.js +0 -0
  656. /package/dist/cjs/api/resources/business/resources/{discounts/types/CreateDiscountsResponse.js → priceLists/types/CreatePriceListsResponse.js} +0 -0
  657. /package/dist/cjs/api/resources/business/resources/{discounts/types/GetDiscountsResponse.js → priceLists/types/ListPriceListsResponse.js} +0 -0
  658. /package/dist/cjs/api/resources/business/resources/{discounts/types/ListDiscountsResponse.js → productCategories/client/requests/UpdateProductCategoriesRequest.js} +0 -0
  659. /package/dist/cjs/api/resources/business/resources/{discounts/types/UpdateDiscountsResponse.js → productOrders/client/requests/AddTrackingProductOrdersRequest.js} +0 -0
  660. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/StoreProductCategoryRequest.js → productOrders/client/requests/ListProductOrdersRequest.js} +0 -0
  661. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoryRequest.js → productOrders/client/requests/PurchaseLabelProductOrdersRequest.js} +0 -0
  662. /package/dist/cjs/api/resources/business/resources/{productCategories/types/CreateProductCategoriesResponse.js → productOrders/client/requests/RefundProductOrdersRequest.js} +0 -0
  663. /package/dist/cjs/api/resources/business/resources/{productCategories/types/ListProductCategoriesResponse.js → products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.js} +0 -0
  664. /package/dist/cjs/api/resources/business/resources/{productCategories/types/UpdateProductCategoriesResponse.js → products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.js} +0 -0
  665. /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/PurchaseLabelRequest.js → products/resources/variants/resources/prices/client/requests/SetPriceRequest.js} +0 -0
  666. /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/RefundOrderRequest.js → products/resources/variants/resources/prices/types/SetPricesResponse.js} +0 -0
  667. /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/StoreTrackingRequest.js → shipping/resources/rates/client/requests/UpdateRatesRequest.js} +0 -0
  668. /package/dist/cjs/api/resources/{business/resources/products/resources/images/types/UploadImagesResponse.js → customer/resources/cart/client/requests/AddItemCartRequest.js} +0 -0
  669. /package/dist/cjs/api/resources/{business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js → customer/resources/cart/client/requests/CheckoutCartRequest.js} +0 -0
  670. /package/dist/cjs/api/resources/{business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.js → customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.js} +0 -0
  671. /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/CreateRatesResponse.js → customer/resources/cart/client/requests/GetShippingOptionsCartRequest.js} +0 -0
  672. /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/ListRatesResponse.js → customer/resources/cart/client/requests/SelectShippingOptionCartRequest.js} +0 -0
  673. /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/UpdateRatesResponse.js → customer/resources/cart/client/requests/UpdateItemCartRequest.js} +0 -0
  674. /package/dist/cjs/api/resources/customer/resources/cart/{client/requests/AddToCartRequest.js → types/GetShippingOptionsCartResponse.js} +0 -0
  675. /package/dist/cjs/api/resources/customer/resources/{cart/client/requests/GetShippingOptionsRequest.js → events/resources/ticketing/client/requests/CreatePaymentIntentRequest.js} +0 -0
  676. /package/dist/cjs/api/resources/customer/resources/{cart/client/requests/SelectShippingOptionRequest.js → stands/client/requests/CheckoutStandsRequest.js} +0 -0
  677. /package/dist/cjs/api/resources/{customer/resources/cart/client/requests/UpdateCartItemRequest.js → customerStands/client/requests/CustomerAddStandCartItemRequest.js} +0 -0
  678. /package/dist/cjs/api/resources/{customer/resources/cart/types/GetShippingOptionsCartResponseItem.js → customerStands/client/requests/CustomerClearStandCartRequest.js} +0 -0
  679. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.js → customerStands/client/requests/CustomerGetStandCartRequest.js} +0 -0
  680. /package/dist/cjs/api/resources/{customer/resources/stands/client/requests/SelfCheckoutRequest.js → customerStands/client/requests/CustomerStandCheckoutRequest.js} +0 -0
  681. /package/dist/cjs/api/resources/{customer/resources/stands/types/CheckoutStandsResponse.js → customerStands/client/requests/CustomerStandPaymentIntentRequest.js} +0 -0
  682. /package/dist/cjs/api/resources/{customer/resources/stands/types/CreatePaymentIntentStandsResponse.js → customerStands/types/CustomerAddStandCartItemResponse.js} +0 -0
  683. /package/dist/cjs/api/{types/BusinessDiscount.js → resources/customerStands/types/CustomerGetStandCartResponse.js} +0 -0
  684. /package/dist/cjs/api/{types/BusinessInventoryLog.js → resources/customerStands/types/CustomerStandCheckoutResponse.js} +0 -0
  685. /package/dist/cjs/api/types/{BusinessProduct.js → AppHttpResourcesApiV1BusinessCommerceProductResource.js} +0 -0
  686. /package/dist/cjs/api/types/{BusinessProductCategory.js → CartResource.js} +0 -0
  687. /package/dist/cjs/api/types/{BusinessProductInventorySummary.js → CheckoutRequest.js} +0 -0
  688. /package/dist/cjs/api/types/{BusinessProductOrder.js → ImageResource.js} +0 -0
  689. /package/dist/cjs/api/types/{BusinessProductOrderItem.js → InventoryLevelResource.js} +0 -0
  690. /package/dist/cjs/api/types/{BusinessProductVariant.js → OrderResource.js} +0 -0
  691. /package/dist/cjs/api/types/{CustomerCart.js → PriceListResource.js} +0 -0
  692. /package/dist/cjs/api/types/{CustomerCartItem.js → PriceResource.js} +0 -0
  693. /package/dist/cjs/api/types/{CustomerProductOrder.js → ProductCategoryResource.js} +0 -0
  694. /package/dist/cjs/api/types/{CustomerProductOrderItem.js → ProductResource.js} +0 -0
  695. /package/dist/cjs/api/types/{CustomerShopProduct.js → VariantResource.js} +0 -0
  696. /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/client/index.d.mts +0 -0
  697. /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/client/index.mjs +0 -0
  698. /package/dist/esm/api/resources/business/resources/{discounts/client/requests/DeleteDiscountsRequest.mjs → priceLists/client/requests/DeletePriceListsRequest.mjs} +0 -0
  699. /package/dist/esm/api/resources/business/resources/{discounts/client/requests/GetDiscountsRequest.mjs → priceLists/client/requests/StorePriceListRequest.mjs} +0 -0
  700. /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/index.d.mts +0 -0
  701. /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/index.mjs +0 -0
  702. /package/dist/esm/api/resources/business/resources/{discounts/types/CreateDiscountsResponse.mjs → priceLists/types/CreatePriceListsResponse.mjs} +0 -0
  703. /package/dist/esm/api/resources/business/resources/{discounts/types/GetDiscountsResponse.mjs → priceLists/types/ListPriceListsResponse.mjs} +0 -0
  704. /package/dist/esm/api/resources/business/resources/{discounts/types/ListDiscountsResponse.mjs → productCategories/client/requests/UpdateProductCategoriesRequest.mjs} +0 -0
  705. /package/dist/esm/api/resources/business/resources/{discounts/types/UpdateDiscountsResponse.mjs → productOrders/client/requests/AddTrackingProductOrdersRequest.mjs} +0 -0
  706. /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/StoreProductCategoryRequest.mjs → productOrders/client/requests/ListProductOrdersRequest.mjs} +0 -0
  707. /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoryRequest.mjs → productOrders/client/requests/PurchaseLabelProductOrdersRequest.mjs} +0 -0
  708. /package/dist/esm/api/resources/business/resources/{productCategories/types/CreateProductCategoriesResponse.mjs → productOrders/client/requests/RefundProductOrdersRequest.mjs} +0 -0
  709. /package/dist/esm/api/resources/business/resources/{productCategories/types/ListProductCategoriesResponse.mjs → products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.mjs} +0 -0
  710. /package/dist/esm/api/resources/business/resources/{productCategories/types/UpdateProductCategoriesResponse.mjs → products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.mjs} +0 -0
  711. /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/PurchaseLabelRequest.mjs → products/resources/variants/resources/prices/client/requests/SetPriceRequest.mjs} +0 -0
  712. /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/RefundOrderRequest.mjs → products/resources/variants/resources/prices/types/SetPricesResponse.mjs} +0 -0
  713. /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/StoreTrackingRequest.mjs → shipping/resources/rates/client/requests/UpdateRatesRequest.mjs} +0 -0
  714. /package/dist/esm/api/resources/{business/resources/products/resources/images/types/UploadImagesResponse.mjs → customer/resources/cart/client/requests/AddItemCartRequest.mjs} +0 -0
  715. /package/dist/esm/api/resources/{business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs → customer/resources/cart/client/requests/CheckoutCartRequest.mjs} +0 -0
  716. /package/dist/esm/api/resources/{business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.mjs → customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.mjs} +0 -0
  717. /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/CreateRatesResponse.mjs → customer/resources/cart/client/requests/GetShippingOptionsCartRequest.mjs} +0 -0
  718. /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/ListRatesResponse.mjs → customer/resources/cart/client/requests/SelectShippingOptionCartRequest.mjs} +0 -0
  719. /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/UpdateRatesResponse.mjs → customer/resources/cart/client/requests/UpdateItemCartRequest.mjs} +0 -0
  720. /package/dist/esm/api/resources/customer/resources/cart/{client/requests/AddToCartRequest.mjs → types/GetShippingOptionsCartResponse.mjs} +0 -0
  721. /package/dist/esm/api/resources/customer/resources/{cart/client/requests/GetShippingOptionsRequest.mjs → events/resources/ticketing/client/requests/CreatePaymentIntentRequest.mjs} +0 -0
  722. /package/dist/esm/api/resources/customer/resources/{cart/client/requests/SelectShippingOptionRequest.mjs → stands/client/requests/CheckoutStandsRequest.mjs} +0 -0
  723. /package/dist/esm/api/resources/{customer/resources/cart/client/requests/UpdateCartItemRequest.mjs → customerStands/client/requests/CustomerAddStandCartItemRequest.mjs} +0 -0
  724. /package/dist/esm/api/resources/{customer/resources/cart/types/GetShippingOptionsCartResponseItem.mjs → customerStands/client/requests/CustomerClearStandCartRequest.mjs} +0 -0
  725. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.mjs → customerStands/client/requests/CustomerGetStandCartRequest.mjs} +0 -0
  726. /package/dist/esm/api/resources/{customer/resources/stands/client/requests/SelfCheckoutRequest.mjs → customerStands/client/requests/CustomerStandCheckoutRequest.mjs} +0 -0
  727. /package/dist/esm/api/resources/{customer/resources/stands/types/CheckoutStandsResponse.mjs → customerStands/client/requests/CustomerStandPaymentIntentRequest.mjs} +0 -0
  728. /package/dist/esm/api/resources/{customer/resources/stands/types/CreatePaymentIntentStandsResponse.mjs → customerStands/types/CustomerAddStandCartItemResponse.mjs} +0 -0
  729. /package/dist/esm/api/{types/BusinessDiscount.mjs → resources/customerStands/types/CustomerGetStandCartResponse.mjs} +0 -0
  730. /package/dist/esm/api/{types/BusinessInventoryLog.mjs → resources/customerStands/types/CustomerStandCheckoutResponse.mjs} +0 -0
  731. /package/dist/esm/api/types/{BusinessProduct.mjs → AppHttpResourcesApiV1BusinessCommerceProductResource.mjs} +0 -0
  732. /package/dist/esm/api/types/{BusinessProductCategory.mjs → CartResource.mjs} +0 -0
  733. /package/dist/esm/api/types/{BusinessProductInventorySummary.mjs → CheckoutRequest.mjs} +0 -0
  734. /package/dist/esm/api/types/{BusinessProductOrder.mjs → ImageResource.mjs} +0 -0
  735. /package/dist/esm/api/types/{BusinessProductOrderItem.mjs → InventoryLevelResource.mjs} +0 -0
  736. /package/dist/esm/api/types/{BusinessProductVariant.mjs → OrderResource.mjs} +0 -0
  737. /package/dist/esm/api/types/{CustomerCart.mjs → PriceListResource.mjs} +0 -0
  738. /package/dist/esm/api/types/{CustomerCartItem.mjs → PriceResource.mjs} +0 -0
  739. /package/dist/esm/api/types/{CustomerProductOrder.mjs → ProductCategoryResource.mjs} +0 -0
  740. /package/dist/esm/api/types/{CustomerProductOrderItem.mjs → ProductResource.mjs} +0 -0
  741. /package/dist/esm/api/types/{CustomerShopProduct.mjs → VariantResource.mjs} +0 -0
@@ -8,24 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __rest = (this && this.__rest) || function (s, e) {
12
- var t = {};
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
- t[p] = s[p];
15
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
- t[p[i]] = s[p[i]];
19
- }
20
- return t;
21
- };
22
11
  import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
23
12
  import { mergeHeaders } from "../../../../../../core/headers.mjs";
24
13
  import * as core from "../../../../../../core/index.mjs";
25
14
  import * as environments from "../../../../../../environments.mjs";
26
15
  import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
27
16
  import * as errors from "../../../../../../errors/index.mjs";
28
- import * as FiveOneEat from "../../../../../index.mjs";
29
17
  export class ProductCategoriesClient {
30
18
  constructor(options = {}) {
31
19
  this._options = normalizeClientOptionsWithAuth(options);
@@ -33,10 +21,6 @@ export class ProductCategoriesClient {
33
21
  /**
34
22
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
35
23
  *
36
- * @throws {@link FiveOneEat.UnauthorizedError}
37
- * @throws {@link FiveOneEat.ForbiddenError}
38
- * @throws {@link FiveOneEat.UnprocessableEntityError}
39
- *
40
24
  * @example
41
25
  * await client.business.productCategories.list()
42
26
  */
@@ -60,47 +44,28 @@ export class ProductCategoriesClient {
60
44
  logging: this._options.logging,
61
45
  });
62
46
  if (_response.ok) {
63
- return {
64
- data: _response.body,
65
- rawResponse: _response.rawResponse,
66
- };
47
+ return { data: undefined, rawResponse: _response.rawResponse };
67
48
  }
68
49
  if (_response.error.reason === "status-code") {
69
- switch (_response.error.statusCode) {
70
- case 401:
71
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
72
- case 403:
73
- throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
74
- case 422:
75
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
76
- default:
77
- throw new errors.FiveOneEatError({
78
- statusCode: _response.error.statusCode,
79
- body: _response.error.body,
80
- rawResponse: _response.rawResponse,
81
- });
82
- }
50
+ throw new errors.FiveOneEatError({
51
+ statusCode: _response.error.statusCode,
52
+ body: _response.error.body,
53
+ rawResponse: _response.rawResponse,
54
+ });
83
55
  }
84
56
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/product-categories");
85
57
  });
86
58
  }
87
59
  /**
88
- * @param {FiveOneEat.business.StoreProductCategoryRequest} request
89
60
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
90
61
  *
91
- * @throws {@link FiveOneEat.UnauthorizedError}
92
- * @throws {@link FiveOneEat.ForbiddenError}
93
- * @throws {@link FiveOneEat.UnprocessableEntityError}
94
- *
95
62
  * @example
96
- * await client.business.productCategories.create({
97
- * name: "name"
98
- * })
63
+ * await client.business.productCategories.create()
99
64
  */
100
- create(request, requestOptions) {
101
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
65
+ create(requestOptions) {
66
+ return core.HttpResponsePromise.fromPromise(this.__create(requestOptions));
102
67
  }
103
- __create(request, requestOptions) {
68
+ __create(requestOptions) {
104
69
  return __awaiter(this, void 0, void 0, function* () {
105
70
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
106
71
  const _authRequest = yield this._options.authProvider.getAuthRequest();
@@ -109,10 +74,7 @@ export class ProductCategoriesClient {
109
74
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/product-categories"),
110
75
  method: "POST",
111
76
  headers: _headers,
112
- contentType: "application/json",
113
77
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
114
- requestType: "json",
115
- body: request,
116
78
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
117
79
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
118
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -120,39 +82,22 @@ export class ProductCategoriesClient {
120
82
  logging: this._options.logging,
121
83
  });
122
84
  if (_response.ok) {
123
- return {
124
- data: _response.body,
125
- rawResponse: _response.rawResponse,
126
- };
85
+ return { data: undefined, rawResponse: _response.rawResponse };
127
86
  }
128
87
  if (_response.error.reason === "status-code") {
129
- switch (_response.error.statusCode) {
130
- case 401:
131
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
132
- case 403:
133
- throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
134
- case 422:
135
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
136
- default:
137
- throw new errors.FiveOneEatError({
138
- statusCode: _response.error.statusCode,
139
- body: _response.error.body,
140
- rawResponse: _response.rawResponse,
141
- });
142
- }
88
+ throw new errors.FiveOneEatError({
89
+ statusCode: _response.error.statusCode,
90
+ body: _response.error.body,
91
+ rawResponse: _response.rawResponse,
92
+ });
143
93
  }
144
94
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/product-categories");
145
95
  });
146
96
  }
147
97
  /**
148
- * @param {FiveOneEat.business.UpdateProductCategoryRequest} request
98
+ * @param {FiveOneEat.business.UpdateProductCategoriesRequest} request
149
99
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
150
100
  *
151
- * @throws {@link FiveOneEat.UnauthorizedError}
152
- * @throws {@link FiveOneEat.ForbiddenError}
153
- * @throws {@link FiveOneEat.NotFoundError}
154
- * @throws {@link FiveOneEat.UnprocessableEntityError}
155
- *
156
101
  * @example
157
102
  * await client.business.productCategories.update({
158
103
  * productCategory: "productCategory"
@@ -164,17 +109,14 @@ export class ProductCategoriesClient {
164
109
  __update(request, requestOptions) {
165
110
  return __awaiter(this, void 0, void 0, function* () {
166
111
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
167
- const { productCategory } = request, _body = __rest(request, ["productCategory"]);
112
+ const { productCategory } = request;
168
113
  const _authRequest = yield this._options.authProvider.getAuthRequest();
169
114
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
170
115
  const _response = yield core.fetcher({
171
116
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/product-categories/${core.url.encodePathParam(productCategory)}`),
172
117
  method: "PUT",
173
118
  headers: _headers,
174
- contentType: "application/json",
175
119
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
176
- requestType: "json",
177
- body: _body,
178
120
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
179
121
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
180
122
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -182,28 +124,14 @@ export class ProductCategoriesClient {
182
124
  logging: this._options.logging,
183
125
  });
184
126
  if (_response.ok) {
185
- return {
186
- data: _response.body,
187
- rawResponse: _response.rawResponse,
188
- };
127
+ return { data: undefined, rawResponse: _response.rawResponse };
189
128
  }
190
129
  if (_response.error.reason === "status-code") {
191
- switch (_response.error.statusCode) {
192
- case 401:
193
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
194
- case 403:
195
- throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
196
- case 404:
197
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
198
- case 422:
199
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
200
- default:
201
- throw new errors.FiveOneEatError({
202
- statusCode: _response.error.statusCode,
203
- body: _response.error.body,
204
- rawResponse: _response.rawResponse,
205
- });
206
- }
130
+ throw new errors.FiveOneEatError({
131
+ statusCode: _response.error.statusCode,
132
+ body: _response.error.body,
133
+ rawResponse: _response.rawResponse,
134
+ });
207
135
  }
208
136
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/product-categories/{productCategory}");
209
137
  });
@@ -212,11 +140,6 @@ export class ProductCategoriesClient {
212
140
  * @param {FiveOneEat.business.DeleteProductCategoriesRequest} request
213
141
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
214
142
  *
215
- * @throws {@link FiveOneEat.UnauthorizedError}
216
- * @throws {@link FiveOneEat.ForbiddenError}
217
- * @throws {@link FiveOneEat.NotFoundError}
218
- * @throws {@link FiveOneEat.UnprocessableEntityError}
219
- *
220
143
  * @example
221
144
  * await client.business.productCategories.delete({
222
145
  * productCategory: "productCategory"
@@ -243,28 +166,14 @@ export class ProductCategoriesClient {
243
166
  logging: this._options.logging,
244
167
  });
245
168
  if (_response.ok) {
246
- return {
247
- data: _response.body,
248
- rawResponse: _response.rawResponse,
249
- };
169
+ return { data: undefined, rawResponse: _response.rawResponse };
250
170
  }
251
171
  if (_response.error.reason === "status-code") {
252
- switch (_response.error.statusCode) {
253
- case 401:
254
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
255
- case 403:
256
- throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
257
- case 404:
258
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
259
- case 422:
260
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
261
- default:
262
- throw new errors.FiveOneEatError({
263
- statusCode: _response.error.statusCode,
264
- body: _response.error.body,
265
- rawResponse: _response.rawResponse,
266
- });
267
- }
172
+ throw new errors.FiveOneEatError({
173
+ statusCode: _response.error.statusCode,
174
+ body: _response.error.body,
175
+ rawResponse: _response.rawResponse,
176
+ });
268
177
  }
269
178
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/business/product-categories/{productCategory}");
270
179
  });
@@ -5,6 +5,5 @@
5
5
  * }
6
6
  */
7
7
  export interface DeleteProductCategoriesRequest {
8
- /** The product category ID */
9
8
  productCategory: string;
10
9
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * productCategory: "productCategory"
5
+ * }
6
+ */
7
+ export interface UpdateProductCategoriesRequest {
8
+ productCategory: string;
9
+ }
@@ -1,3 +1,2 @@
1
1
  export type { DeleteProductCategoriesRequest } from "./DeleteProductCategoriesRequest.mjs";
2
- export type { StoreProductCategoryRequest } from "./StoreProductCategoryRequest.mjs";
3
- export type { UpdateProductCategoryRequest } from "./UpdateProductCategoryRequest.mjs";
2
+ export type { UpdateProductCategoriesRequest } from "./UpdateProductCategoriesRequest.mjs";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -11,8 +11,7 @@ export declare class ProductOrdersClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ProductOrdersClient.Options>;
12
12
  constructor(options?: ProductOrdersClient.Options);
13
13
  /**
14
- * Accepts optional `status` and `fulfillment_status` query filters.
15
- *
14
+ * @param {FiveOneEat.business.ListProductOrdersRequest} request
16
15
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
17
16
  *
18
17
  * @throws {@link FiveOneEat.UnauthorizedError}
@@ -20,7 +19,7 @@ export declare class ProductOrdersClient {
20
19
  * @example
21
20
  * await client.business.productOrders.list()
22
21
  */
23
- list(requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListProductOrdersResponse>;
22
+ list(request?: FiveOneEat.business.ListProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListProductOrdersResponse>;
24
23
  private __list;
25
24
  /**
26
25
  * @param {FiveOneEat.business.GetProductOrdersRequest} request
@@ -28,7 +27,6 @@ export declare class ProductOrdersClient {
28
27
  *
29
28
  * @throws {@link FiveOneEat.UnauthorizedError}
30
29
  * @throws {@link FiveOneEat.ForbiddenError}
31
- * @throws {@link FiveOneEat.NotFoundError}
32
30
  *
33
31
  * @example
34
32
  * await client.business.productOrders.get({
@@ -43,7 +41,6 @@ export declare class ProductOrdersClient {
43
41
  *
44
42
  * @throws {@link FiveOneEat.UnauthorizedError}
45
43
  * @throws {@link FiveOneEat.ForbiddenError}
46
- * @throws {@link FiveOneEat.NotFoundError}
47
44
  *
48
45
  * @example
49
46
  * await client.business.productOrders.fulfill({
@@ -58,7 +55,6 @@ export declare class ProductOrdersClient {
58
55
  *
59
56
  * @throws {@link FiveOneEat.UnauthorizedError}
60
57
  * @throws {@link FiveOneEat.ForbiddenError}
61
- * @throws {@link FiveOneEat.NotFoundError}
62
58
  *
63
59
  * @example
64
60
  * await client.business.productOrders.markPickedUp({
@@ -68,35 +64,28 @@ export declare class ProductOrdersClient {
68
64
  markPickedUp(request: FiveOneEat.business.MarkPickedUpProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.MarkPickedUpProductOrdersResponse>;
69
65
  private __markPickedUp;
70
66
  /**
71
- * Creates a shipment record, marks the order as shipped and fulfilled,
72
- * and notifies the customer.
73
- *
74
- * @param {FiveOneEat.business.StoreTrackingRequest} request
67
+ * @param {FiveOneEat.business.AddTrackingProductOrdersRequest} request
75
68
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
76
69
  *
77
70
  * @throws {@link FiveOneEat.UnauthorizedError}
78
71
  * @throws {@link FiveOneEat.ForbiddenError}
79
- * @throws {@link FiveOneEat.NotFoundError}
80
72
  * @throws {@link FiveOneEat.UnprocessableEntityError}
81
73
  *
82
74
  * @example
83
75
  * await client.business.productOrders.addTracking({
84
76
  * productOrder: "productOrder",
85
- * tracking_number: "tracking_number",
86
- * carrier: "carrier"
77
+ * carrier: "carrier",
78
+ * tracking_number: "tracking_number"
87
79
  * })
88
80
  */
89
- addTracking(request: FiveOneEat.business.StoreTrackingRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.AddTrackingProductOrdersResponse>;
81
+ addTracking(request: FiveOneEat.business.AddTrackingProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.AddTrackingProductOrdersResponse>;
90
82
  private __addTracking;
91
83
  /**
92
- * Omit `amount` to issue a full refund.
93
- *
94
- * @param {FiveOneEat.business.RefundOrderRequest} request
84
+ * @param {FiveOneEat.business.RefundProductOrdersRequest} request
95
85
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
96
86
  *
97
87
  * @throws {@link FiveOneEat.UnauthorizedError}
98
88
  * @throws {@link FiveOneEat.ForbiddenError}
99
- * @throws {@link FiveOneEat.NotFoundError}
100
89
  * @throws {@link FiveOneEat.UnprocessableEntityError}
101
90
  *
102
91
  * @example
@@ -104,7 +93,7 @@ export declare class ProductOrdersClient {
104
93
  * productOrder: "productOrder"
105
94
  * })
106
95
  */
107
- refund(request: FiveOneEat.business.RefundOrderRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.RefundProductOrdersResponse>;
96
+ refund(request: FiveOneEat.business.RefundProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.RefundProductOrdersResponse>;
108
97
  private __refund;
109
98
  /**
110
99
  * @param {FiveOneEat.business.GetLabelRatesProductOrdersRequest} request
@@ -112,7 +101,6 @@ export declare class ProductOrdersClient {
112
101
  *
113
102
  * @throws {@link FiveOneEat.UnauthorizedError}
114
103
  * @throws {@link FiveOneEat.ForbiddenError}
115
- * @throws {@link FiveOneEat.NotFoundError}
116
104
  * @throws {@link FiveOneEat.UnprocessableEntityError}
117
105
  *
118
106
  * @example
@@ -123,12 +111,11 @@ export declare class ProductOrdersClient {
123
111
  getLabelRates(request: FiveOneEat.business.GetLabelRatesProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.GetLabelRatesProductOrdersResponseItem[]>;
124
112
  private __getLabelRates;
125
113
  /**
126
- * @param {FiveOneEat.business.PurchaseLabelRequest} request
114
+ * @param {FiveOneEat.business.PurchaseLabelProductOrdersRequest} request
127
115
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
128
116
  *
129
117
  * @throws {@link FiveOneEat.UnauthorizedError}
130
118
  * @throws {@link FiveOneEat.ForbiddenError}
131
- * @throws {@link FiveOneEat.NotFoundError}
132
119
  * @throws {@link FiveOneEat.UnprocessableEntityError}
133
120
  *
134
121
  * @example
@@ -137,6 +124,6 @@ export declare class ProductOrdersClient {
137
124
  * provider_rate_id: "provider_rate_id"
138
125
  * })
139
126
  */
140
- purchaseLabel(request: FiveOneEat.business.PurchaseLabelRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.PurchaseLabelProductOrdersResponse>;
127
+ purchaseLabel(request: FiveOneEat.business.PurchaseLabelProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.PurchaseLabelProductOrdersResponse>;
141
128
  private __purchaseLabel;
142
129
  }
@@ -31,8 +31,7 @@ export class ProductOrdersClient {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
34
- * Accepts optional `status` and `fulfillment_status` query filters.
35
- *
34
+ * @param {FiveOneEat.business.ListProductOrdersRequest} request
36
35
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
37
36
  *
38
37
  * @throws {@link FiveOneEat.UnauthorizedError}
@@ -40,19 +39,29 @@ export class ProductOrdersClient {
40
39
  * @example
41
40
  * await client.business.productOrders.list()
42
41
  */
43
- list(requestOptions) {
44
- return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
42
+ list(request = {}, requestOptions) {
43
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
45
44
  }
46
- __list(requestOptions) {
47
- return __awaiter(this, void 0, void 0, function* () {
45
+ __list() {
46
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
48
47
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
48
+ const { status, fulfillment_status: fulfillmentStatus } = request;
49
+ const _queryParams = {
50
+ status,
51
+ fulfillment_status: fulfillmentStatus,
52
+ };
49
53
  const _authRequest = yield this._options.authProvider.getAuthRequest();
50
54
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
51
55
  const _response = yield core.fetcher({
52
56
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/product-orders"),
53
57
  method: "GET",
54
58
  headers: _headers,
55
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
59
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
60
+ queryString: core.url
61
+ .queryBuilder()
62
+ .addMany(_queryParams)
63
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
64
+ .build(),
56
65
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
57
66
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
58
67
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -86,7 +95,6 @@ export class ProductOrdersClient {
86
95
  *
87
96
  * @throws {@link FiveOneEat.UnauthorizedError}
88
97
  * @throws {@link FiveOneEat.ForbiddenError}
89
- * @throws {@link FiveOneEat.NotFoundError}
90
98
  *
91
99
  * @example
92
100
  * await client.business.productOrders.get({
@@ -125,8 +133,6 @@ export class ProductOrdersClient {
125
133
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
126
134
  case 403:
127
135
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
128
- case 404:
129
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
130
136
  default:
131
137
  throw new errors.FiveOneEatError({
132
138
  statusCode: _response.error.statusCode,
@@ -144,7 +150,6 @@ export class ProductOrdersClient {
144
150
  *
145
151
  * @throws {@link FiveOneEat.UnauthorizedError}
146
152
  * @throws {@link FiveOneEat.ForbiddenError}
147
- * @throws {@link FiveOneEat.NotFoundError}
148
153
  *
149
154
  * @example
150
155
  * await client.business.productOrders.fulfill({
@@ -183,8 +188,6 @@ export class ProductOrdersClient {
183
188
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
184
189
  case 403:
185
190
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
186
- case 404:
187
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
188
191
  default:
189
192
  throw new errors.FiveOneEatError({
190
193
  statusCode: _response.error.statusCode,
@@ -202,7 +205,6 @@ export class ProductOrdersClient {
202
205
  *
203
206
  * @throws {@link FiveOneEat.UnauthorizedError}
204
207
  * @throws {@link FiveOneEat.ForbiddenError}
205
- * @throws {@link FiveOneEat.NotFoundError}
206
208
  *
207
209
  * @example
208
210
  * await client.business.productOrders.markPickedUp({
@@ -241,8 +243,6 @@ export class ProductOrdersClient {
241
243
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
242
244
  case 403:
243
245
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
244
- case 404:
245
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
246
246
  default:
247
247
  throw new errors.FiveOneEatError({
248
248
  statusCode: _response.error.statusCode,
@@ -255,22 +255,18 @@ export class ProductOrdersClient {
255
255
  });
256
256
  }
257
257
  /**
258
- * Creates a shipment record, marks the order as shipped and fulfilled,
259
- * and notifies the customer.
260
- *
261
- * @param {FiveOneEat.business.StoreTrackingRequest} request
258
+ * @param {FiveOneEat.business.AddTrackingProductOrdersRequest} request
262
259
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
263
260
  *
264
261
  * @throws {@link FiveOneEat.UnauthorizedError}
265
262
  * @throws {@link FiveOneEat.ForbiddenError}
266
- * @throws {@link FiveOneEat.NotFoundError}
267
263
  * @throws {@link FiveOneEat.UnprocessableEntityError}
268
264
  *
269
265
  * @example
270
266
  * await client.business.productOrders.addTracking({
271
267
  * productOrder: "productOrder",
272
- * tracking_number: "tracking_number",
273
- * carrier: "carrier"
268
+ * carrier: "carrier",
269
+ * tracking_number: "tracking_number"
274
270
  * })
275
271
  */
276
272
  addTracking(request, requestOptions) {
@@ -308,8 +304,6 @@ export class ProductOrdersClient {
308
304
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
309
305
  case 403:
310
306
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
311
- case 404:
312
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
313
307
  case 422:
314
308
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
315
309
  default:
@@ -324,14 +318,11 @@ export class ProductOrdersClient {
324
318
  });
325
319
  }
326
320
  /**
327
- * Omit `amount` to issue a full refund.
328
- *
329
- * @param {FiveOneEat.business.RefundOrderRequest} request
321
+ * @param {FiveOneEat.business.RefundProductOrdersRequest} request
330
322
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
331
323
  *
332
324
  * @throws {@link FiveOneEat.UnauthorizedError}
333
325
  * @throws {@link FiveOneEat.ForbiddenError}
334
- * @throws {@link FiveOneEat.NotFoundError}
335
326
  * @throws {@link FiveOneEat.UnprocessableEntityError}
336
327
  *
337
328
  * @example
@@ -374,8 +365,6 @@ export class ProductOrdersClient {
374
365
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
375
366
  case 403:
376
367
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
377
- case 404:
378
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
379
368
  case 422:
380
369
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
381
370
  default:
@@ -395,7 +384,6 @@ export class ProductOrdersClient {
395
384
  *
396
385
  * @throws {@link FiveOneEat.UnauthorizedError}
397
386
  * @throws {@link FiveOneEat.ForbiddenError}
398
- * @throws {@link FiveOneEat.NotFoundError}
399
387
  * @throws {@link FiveOneEat.UnprocessableEntityError}
400
388
  *
401
389
  * @example
@@ -435,8 +423,6 @@ export class ProductOrdersClient {
435
423
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
436
424
  case 403:
437
425
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
438
- case 404:
439
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
440
426
  case 422:
441
427
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
442
428
  default:
@@ -451,12 +437,11 @@ export class ProductOrdersClient {
451
437
  });
452
438
  }
453
439
  /**
454
- * @param {FiveOneEat.business.PurchaseLabelRequest} request
440
+ * @param {FiveOneEat.business.PurchaseLabelProductOrdersRequest} request
455
441
  * @param {ProductOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
456
442
  *
457
443
  * @throws {@link FiveOneEat.UnauthorizedError}
458
444
  * @throws {@link FiveOneEat.ForbiddenError}
459
- * @throws {@link FiveOneEat.NotFoundError}
460
445
  * @throws {@link FiveOneEat.UnprocessableEntityError}
461
446
  *
462
447
  * @example
@@ -500,8 +485,6 @@ export class ProductOrdersClient {
500
485
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
501
486
  case 403:
502
487
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
503
- case 404:
504
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
505
488
  case 422:
506
489
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
507
490
  default:
@@ -2,15 +2,14 @@
2
2
  * @example
3
3
  * {
4
4
  * productOrder: "productOrder",
5
- * tracking_number: "tracking_number",
6
- * carrier: "carrier"
5
+ * carrier: "carrier",
6
+ * tracking_number: "tracking_number"
7
7
  * }
8
8
  */
9
- export interface StoreTrackingRequest {
10
- /** The product order ID */
9
+ export interface AddTrackingProductOrdersRequest {
11
10
  productOrder: string;
12
- tracking_number: string;
13
11
  carrier: string;
12
+ tracking_number: string;
14
13
  tracking_url?: string | null;
15
14
  service?: string | null;
16
15
  }
@@ -5,6 +5,5 @@
5
5
  * }
6
6
  */
7
7
  export interface FulfillProductOrdersRequest {
8
- /** The product order ID */
9
8
  productOrder: string;
10
9
  }
@@ -5,6 +5,5 @@
5
5
  * }
6
6
  */
7
7
  export interface GetLabelRatesProductOrdersRequest {
8
- /** The product order ID */
9
8
  productOrder: string;
10
9
  }
@@ -5,6 +5,5 @@
5
5
  * }
6
6
  */
7
7
  export interface GetProductOrdersRequest {
8
- /** The product order ID */
9
8
  productOrder: string;
10
9
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListProductOrdersRequest {
6
+ status?: string;
7
+ fulfillment_status?: string;
8
+ }