@51eat/sdk 0.0.36 → 0.0.38

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 (656) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/errors/InternalServerError.d.ts +6 -0
  3. package/dist/cjs/api/errors/InternalServerError.js +54 -0
  4. package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +6 -0
  5. package/dist/cjs/api/errors/ServiceUnavailableError.js +54 -0
  6. package/dist/cjs/api/errors/index.d.ts +2 -0
  7. package/dist/cjs/api/errors/index.js +2 -0
  8. package/dist/cjs/api/resources/business/client/Client.d.ts +15 -0
  9. package/dist/cjs/api/resources/business/client/Client.js +39 -14
  10. package/dist/cjs/api/resources/business/resources/discounts/client/Client.d.ts +87 -0
  11. package/dist/cjs/api/resources/business/resources/discounts/client/Client.js +361 -0
  12. package/dist/cjs/api/resources/business/resources/discounts/client/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/business/resources/discounts/client/index.js +17 -0
  14. package/dist/cjs/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.ts +10 -0
  15. package/dist/cjs/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.ts +10 -0
  16. package/dist/cjs/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.js +3 -0
  17. package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.ts +39 -0
  18. package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.js +18 -0
  19. package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.ts +38 -0
  20. package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.js +18 -0
  21. package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.d.ts +4 -0
  22. package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.js +7 -0
  23. package/dist/cjs/api/resources/business/resources/discounts/exports.d.ts +2 -0
  24. package/dist/cjs/api/resources/business/resources/discounts/exports.js +21 -0
  25. package/dist/cjs/api/resources/business/resources/discounts/index.d.ts +2 -0
  26. package/dist/cjs/api/resources/business/resources/discounts/index.js +18 -0
  27. package/dist/cjs/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.ts +4 -0
  28. package/dist/cjs/api/resources/business/resources/discounts/types/CreateDiscountsResponse.js +3 -0
  29. package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.ts +9 -0
  30. package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.js +10 -0
  31. package/dist/cjs/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.ts +4 -0
  32. package/dist/cjs/api/resources/business/resources/discounts/types/GetDiscountsResponse.js +3 -0
  33. package/dist/cjs/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.ts +4 -0
  34. package/dist/cjs/api/resources/business/resources/discounts/types/ListDiscountsResponse.js +3 -0
  35. package/dist/cjs/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.ts +4 -0
  36. package/dist/cjs/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.js +3 -0
  37. package/dist/cjs/api/resources/business/resources/discounts/types/index.d.ts +5 -0
  38. package/dist/cjs/api/resources/business/resources/discounts/types/index.js +21 -0
  39. package/dist/cjs/api/resources/business/resources/index.d.ts +15 -0
  40. package/dist/cjs/api/resources/business/resources/index.js +16 -1
  41. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +68 -0
  42. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.js +297 -0
  43. package/dist/cjs/api/resources/business/resources/productCategories/client/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/business/resources/productCategories/client/index.js +17 -0
  45. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.ts +10 -0
  46. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.js +3 -0
  47. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.ts +12 -0
  48. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.js +3 -0
  49. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.ts +14 -0
  50. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.js +3 -0
  51. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/index.d.ts +3 -0
  52. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/index.js +2 -0
  53. package/dist/cjs/api/resources/business/resources/productCategories/exports.d.ts +2 -0
  54. package/dist/cjs/api/resources/business/resources/productCategories/exports.js +21 -0
  55. package/dist/cjs/api/resources/business/resources/productCategories/index.d.ts +2 -0
  56. package/dist/cjs/api/resources/business/resources/productCategories/index.js +18 -0
  57. package/dist/cjs/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.ts +4 -0
  58. package/dist/cjs/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.js +3 -0
  59. package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.ts +9 -0
  60. package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.js +10 -0
  61. package/dist/cjs/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.ts +4 -0
  62. package/dist/cjs/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.js +3 -0
  63. package/dist/cjs/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.ts +4 -0
  64. package/dist/cjs/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.js +3 -0
  65. package/dist/cjs/api/resources/business/resources/productCategories/types/index.d.ts +4 -0
  66. package/dist/cjs/api/resources/business/resources/productCategories/types/index.js +20 -0
  67. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +109 -0
  68. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +429 -0
  69. package/dist/cjs/api/resources/business/resources/productOrders/client/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/business/resources/productOrders/client/index.js +17 -0
  71. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.ts +10 -0
  72. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.js +3 -0
  73. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +10 -0
  74. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.js +3 -0
  75. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.ts +10 -0
  76. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.js +3 -0
  77. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.d.ts +12 -0
  78. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.js +3 -0
  79. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.ts +16 -0
  80. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.js +3 -0
  81. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +5 -0
  82. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.js +2 -0
  83. package/dist/cjs/api/resources/business/resources/productOrders/exports.d.ts +2 -0
  84. package/dist/cjs/api/resources/business/resources/productOrders/exports.js +21 -0
  85. package/dist/cjs/api/resources/business/resources/productOrders/index.d.ts +2 -0
  86. package/dist/cjs/api/resources/business/resources/productOrders/index.js +18 -0
  87. package/dist/cjs/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.ts +4 -0
  88. package/dist/cjs/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.js +3 -0
  89. package/dist/cjs/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.ts +4 -0
  90. package/dist/cjs/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.js +3 -0
  91. package/dist/cjs/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.ts +4 -0
  92. package/dist/cjs/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.js +3 -0
  93. package/dist/cjs/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.ts +4 -0
  94. package/dist/cjs/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.js +3 -0
  95. package/dist/cjs/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.ts +4 -0
  96. package/dist/cjs/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.js +3 -0
  97. package/dist/cjs/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.ts +4 -0
  98. package/dist/cjs/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.js +3 -0
  99. package/dist/cjs/api/resources/business/resources/productOrders/types/index.d.ts +6 -0
  100. package/dist/cjs/api/resources/business/resources/productOrders/types/index.js +22 -0
  101. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +89 -0
  102. package/dist/cjs/api/resources/business/resources/products/client/Client.js +365 -0
  103. package/dist/cjs/api/resources/business/resources/products/client/index.d.ts +1 -0
  104. package/dist/cjs/api/resources/business/resources/products/client/index.js +17 -0
  105. package/dist/cjs/api/resources/business/resources/products/client/requests/DeleteProductsRequest.d.ts +10 -0
  106. package/dist/cjs/api/resources/business/resources/products/client/requests/DeleteProductsRequest.js +3 -0
  107. package/dist/cjs/api/resources/business/resources/products/client/requests/GetProductsRequest.d.ts +10 -0
  108. package/dist/cjs/api/resources/business/resources/products/client/requests/GetProductsRequest.js +3 -0
  109. package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +65 -0
  110. package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.js +30 -0
  111. package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +65 -0
  112. package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.js +30 -0
  113. package/dist/cjs/api/resources/business/resources/products/client/requests/index.d.ts +4 -0
  114. package/dist/cjs/api/resources/business/resources/products/client/requests/index.js +7 -0
  115. package/dist/cjs/api/resources/business/resources/products/exports.d.ts +3 -0
  116. package/dist/cjs/api/resources/business/resources/products/exports.js +22 -0
  117. package/dist/cjs/api/resources/business/resources/products/index.d.ts +3 -0
  118. package/dist/cjs/api/resources/business/resources/products/index.js +19 -0
  119. package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
  120. package/dist/cjs/api/resources/business/resources/products/resources/index.js +42 -0
  121. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +62 -0
  122. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +258 -0
  123. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/index.d.ts +1 -0
  124. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/index.js +17 -0
  125. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/DeleteVariantsRequest.d.ts +10 -0
  126. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/DeleteVariantsRequest.js +3 -0
  127. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.ts +34 -0
  128. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.js +13 -0
  129. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.ts +32 -0
  130. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.js +13 -0
  131. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.d.ts +3 -0
  132. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.js +7 -0
  133. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.d.ts +2 -0
  134. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.js +21 -0
  135. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.d.ts +2 -0
  136. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.js +18 -0
  137. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.ts +4 -0
  138. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.js +3 -0
  139. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.ts +9 -0
  140. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.js +10 -0
  141. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.ts +4 -0
  142. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.js +3 -0
  143. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.d.ts +3 -0
  144. package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.js +19 -0
  145. package/dist/cjs/api/resources/business/resources/products/types/CreateProductsResponse.d.ts +4 -0
  146. package/dist/cjs/api/resources/business/resources/products/types/CreateProductsResponse.js +3 -0
  147. package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.d.ts +9 -0
  148. package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.js +10 -0
  149. package/dist/cjs/api/resources/business/resources/products/types/GetProductsResponse.d.ts +4 -0
  150. package/dist/cjs/api/resources/business/resources/products/types/GetProductsResponse.js +3 -0
  151. package/dist/cjs/api/resources/business/resources/products/types/ListProductsResponse.d.ts +4 -0
  152. package/dist/cjs/api/resources/business/resources/products/types/ListProductsResponse.js +3 -0
  153. package/dist/cjs/api/resources/business/resources/products/types/UpdateProductsResponse.d.ts +4 -0
  154. package/dist/cjs/api/resources/business/resources/products/types/UpdateProductsResponse.js +3 -0
  155. package/dist/cjs/api/resources/business/resources/products/types/index.d.ts +5 -0
  156. package/dist/cjs/api/resources/business/resources/products/types/index.js +21 -0
  157. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/Client.d.ts +87 -0
  158. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/Client.js +363 -0
  159. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/index.d.ts +1 -0
  160. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/index.js +17 -0
  161. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/DeleteTemporaryLocationsRequest.d.ts +10 -0
  162. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/DeleteTemporaryLocationsRequest.js +3 -0
  163. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/GetTemporaryLocationsRequest.d.ts +10 -0
  164. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/GetTemporaryLocationsRequest.js +3 -0
  165. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.d.ts +22 -0
  166. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.js +3 -0
  167. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.d.ts +22 -0
  168. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.js +3 -0
  169. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/index.d.ts +4 -0
  170. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/index.js +2 -0
  171. package/dist/cjs/api/resources/business/resources/temporaryLocations/exports.d.ts +2 -0
  172. package/dist/cjs/api/resources/business/resources/temporaryLocations/exports.js +21 -0
  173. package/dist/cjs/api/resources/business/resources/temporaryLocations/index.d.ts +2 -0
  174. package/dist/cjs/api/resources/business/resources/temporaryLocations/index.js +18 -0
  175. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/CreateTemporaryLocationsResponse.d.ts +4 -0
  176. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/CreateTemporaryLocationsResponse.js +3 -0
  177. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/DeleteTemporaryLocationsResponse.d.ts +9 -0
  178. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/DeleteTemporaryLocationsResponse.js +10 -0
  179. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/GetTemporaryLocationsResponse.d.ts +4 -0
  180. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/GetTemporaryLocationsResponse.js +3 -0
  181. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/ListTemporaryLocationsResponse.d.ts +4 -0
  182. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/ListTemporaryLocationsResponse.js +3 -0
  183. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/UpdateTemporaryLocationsResponse.d.ts +4 -0
  184. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/UpdateTemporaryLocationsResponse.js +3 -0
  185. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/index.d.ts +5 -0
  186. package/dist/cjs/api/resources/business/resources/temporaryLocations/types/index.js +21 -0
  187. package/dist/cjs/api/resources/customer/client/Client.d.ts +9 -0
  188. package/dist/cjs/api/resources/customer/client/Client.js +29 -14
  189. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +15 -0
  190. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +54 -0
  191. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +10 -0
  192. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.js +3 -0
  193. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/index.d.ts +1 -0
  194. package/dist/cjs/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.ts +4 -0
  195. package/dist/cjs/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.js +3 -0
  196. package/dist/cjs/api/resources/customer/resources/businesses/types/index.d.ts +1 -0
  197. package/dist/cjs/api/resources/customer/resources/businesses/types/index.js +1 -0
  198. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +127 -0
  199. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +477 -0
  200. package/dist/cjs/api/resources/customer/resources/cart/client/index.d.ts +1 -0
  201. package/dist/cjs/api/resources/customer/resources/cart/client/index.js +17 -0
  202. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +14 -0
  203. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.js +3 -0
  204. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +47 -0
  205. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.js +15 -0
  206. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +45 -0
  207. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.js +15 -0
  208. package/dist/cjs/api/resources/customer/resources/cart/client/requests/RemoveItemCartRequest.d.ts +10 -0
  209. package/dist/cjs/api/resources/customer/resources/cart/client/requests/RemoveItemCartRequest.js +3 -0
  210. package/dist/cjs/api/resources/customer/resources/cart/client/requests/UpdateCartItemRequest.d.ts +12 -0
  211. package/dist/cjs/api/resources/customer/resources/cart/client/requests/UpdateCartItemRequest.js +3 -0
  212. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +5 -0
  213. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.js +7 -0
  214. package/dist/cjs/api/resources/customer/resources/cart/exports.d.ts +2 -0
  215. package/dist/cjs/api/resources/customer/resources/cart/exports.js +21 -0
  216. package/dist/cjs/api/resources/customer/resources/cart/index.d.ts +2 -0
  217. package/dist/cjs/api/resources/customer/resources/cart/index.js +18 -0
  218. package/dist/cjs/api/resources/customer/resources/cart/types/AddItemCartResponse.d.ts +4 -0
  219. package/dist/cjs/api/resources/customer/resources/cart/types/AddItemCartResponse.js +3 -0
  220. package/dist/cjs/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.ts +4 -0
  221. package/dist/cjs/api/resources/customer/resources/cart/types/CheckoutCartResponse.js +3 -0
  222. package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.d.ts +9 -0
  223. package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.js +10 -0
  224. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +18 -0
  225. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.js +3 -0
  226. package/dist/cjs/api/resources/customer/resources/cart/types/GetCartResponse.d.ts +4 -0
  227. package/dist/cjs/api/resources/customer/resources/cart/types/GetCartResponse.js +3 -0
  228. package/dist/cjs/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.ts +4 -0
  229. package/dist/cjs/api/resources/customer/resources/cart/types/RemoveItemCartResponse.js +3 -0
  230. package/dist/cjs/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.ts +4 -0
  231. package/dist/cjs/api/resources/customer/resources/cart/types/UpdateItemCartResponse.js +3 -0
  232. package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +7 -0
  233. package/dist/cjs/api/resources/customer/resources/cart/types/index.js +23 -0
  234. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +2 -2
  235. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +1 -1
  236. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/{CreatePaymentIntentRequest.d.ts → AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts} +1 -1
  237. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.js +3 -0
  238. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.ts +1 -1
  239. package/dist/cjs/api/resources/customer/resources/index.d.ts +9 -0
  240. package/dist/cjs/api/resources/customer/resources/index.js +10 -1
  241. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.d.ts +37 -0
  242. package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.js +162 -0
  243. package/dist/cjs/api/resources/customer/resources/productOrders/client/index.d.ts +1 -0
  244. package/dist/cjs/api/resources/customer/resources/productOrders/client/index.js +17 -0
  245. package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +10 -0
  246. package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.js +3 -0
  247. package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/index.d.ts +1 -0
  248. package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/index.js +2 -0
  249. package/dist/cjs/api/resources/customer/resources/productOrders/exports.d.ts +2 -0
  250. package/dist/cjs/api/resources/customer/resources/productOrders/exports.js +21 -0
  251. package/dist/cjs/api/resources/customer/resources/productOrders/index.d.ts +2 -0
  252. package/dist/cjs/api/resources/customer/resources/productOrders/index.js +18 -0
  253. package/dist/cjs/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.ts +4 -0
  254. package/dist/cjs/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.js +3 -0
  255. package/dist/cjs/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.ts +4 -0
  256. package/dist/cjs/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.js +3 -0
  257. package/dist/cjs/api/resources/customer/resources/productOrders/types/index.d.ts +2 -0
  258. package/dist/cjs/api/resources/customer/resources/productOrders/types/index.js +18 -0
  259. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +53 -0
  260. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +225 -0
  261. package/dist/cjs/api/resources/customer/resources/shop/client/index.d.ts +1 -0
  262. package/dist/cjs/api/resources/customer/resources/shop/client/index.js +17 -0
  263. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +13 -0
  264. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.js +3 -0
  265. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +10 -0
  266. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.js +3 -0
  267. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +14 -0
  268. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.js +3 -0
  269. package/dist/cjs/api/resources/customer/resources/shop/client/requests/index.d.ts +3 -0
  270. package/dist/cjs/api/resources/customer/resources/shop/client/requests/index.js +2 -0
  271. package/dist/cjs/api/resources/customer/resources/shop/exports.d.ts +2 -0
  272. package/dist/cjs/api/resources/customer/resources/shop/exports.js +21 -0
  273. package/dist/cjs/api/resources/customer/resources/shop/index.d.ts +2 -0
  274. package/dist/cjs/api/resources/customer/resources/shop/index.js +18 -0
  275. package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +4 -0
  276. package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.js +3 -0
  277. package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +4 -0
  278. package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.js +3 -0
  279. package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +4 -0
  280. package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.js +3 -0
  281. package/dist/cjs/api/resources/customer/resources/shop/types/index.d.ts +3 -0
  282. package/dist/cjs/api/resources/customer/resources/shop/types/index.js +19 -0
  283. package/dist/cjs/api/types/BusinessDiscount.d.ts +19 -0
  284. package/dist/cjs/api/types/BusinessDiscount.js +3 -0
  285. package/dist/cjs/api/types/BusinessProduct.d.ts +32 -0
  286. package/dist/cjs/api/types/BusinessProduct.js +3 -0
  287. package/dist/cjs/api/types/BusinessProductCategory.d.ts +12 -0
  288. package/dist/cjs/api/types/BusinessProductCategory.js +3 -0
  289. package/dist/cjs/api/types/BusinessProductOrder.d.ts +48 -0
  290. package/dist/cjs/api/types/BusinessProductOrder.js +3 -0
  291. package/dist/cjs/api/types/BusinessProductOrderItem.d.ts +24 -0
  292. package/dist/cjs/api/types/BusinessProductOrderItem.js +3 -0
  293. package/dist/cjs/api/types/BusinessProductVariant.d.ts +20 -0
  294. package/dist/cjs/api/types/BusinessProductVariant.js +3 -0
  295. package/dist/cjs/api/types/BusinessTemporaryLocation.d.ts +18 -0
  296. package/dist/cjs/api/types/BusinessTemporaryLocation.js +3 -0
  297. package/dist/cjs/api/types/CustomerCart.d.ts +9 -0
  298. package/dist/cjs/api/types/CustomerCart.js +3 -0
  299. package/dist/cjs/api/types/CustomerCartItem.d.ts +24 -0
  300. package/dist/cjs/api/types/CustomerCartItem.js +3 -0
  301. package/dist/cjs/api/types/CustomerMenuItem.d.ts +3 -0
  302. package/dist/cjs/api/types/CustomerMenuItemModifier.d.ts +7 -0
  303. package/dist/cjs/api/types/CustomerMenuItemModifier.js +3 -0
  304. package/dist/cjs/api/types/CustomerMenuItemVariation.d.ts +8 -0
  305. package/dist/cjs/api/types/CustomerMenuItemVariation.js +3 -0
  306. package/dist/cjs/api/types/CustomerProductOrder.d.ts +29 -0
  307. package/dist/cjs/api/types/CustomerProductOrder.js +3 -0
  308. package/dist/cjs/api/types/CustomerProductOrderItem.d.ts +23 -0
  309. package/dist/cjs/api/types/CustomerProductOrderItem.js +3 -0
  310. package/dist/cjs/api/types/CustomerShopProduct.d.ts +21 -0
  311. package/dist/cjs/api/types/CustomerShopProduct.js +3 -0
  312. package/dist/cjs/api/types/CustomerShopProductCategory.d.ts +8 -0
  313. package/dist/cjs/api/types/CustomerShopProductCategory.js +3 -0
  314. package/dist/cjs/api/types/CustomerShopProductVariant.d.ts +13 -0
  315. package/dist/cjs/api/types/CustomerShopProductVariant.js +3 -0
  316. package/dist/cjs/api/types/ExploreResponse.d.ts +1 -0
  317. package/dist/cjs/api/types/ExploreTemporaryLocation.d.ts +26 -0
  318. package/dist/cjs/api/types/ExploreTemporaryLocation.js +3 -0
  319. package/dist/cjs/api/types/InternalServerErrorBody.d.ts +3 -0
  320. package/dist/cjs/api/types/InternalServerErrorBody.js +3 -0
  321. package/dist/cjs/api/types/ServiceUnavailableErrorBody.d.ts +3 -0
  322. package/dist/cjs/api/types/ServiceUnavailableErrorBody.js +3 -0
  323. package/dist/cjs/api/types/index.d.ts +19 -0
  324. package/dist/cjs/api/types/index.js +19 -0
  325. package/dist/cjs/version.d.ts +1 -1
  326. package/dist/cjs/version.js +1 -1
  327. package/dist/esm/BaseClient.mjs +2 -2
  328. package/dist/esm/api/errors/InternalServerError.d.mts +6 -0
  329. package/dist/esm/api/errors/InternalServerError.mjs +17 -0
  330. package/dist/esm/api/errors/ServiceUnavailableError.d.mts +6 -0
  331. package/dist/esm/api/errors/ServiceUnavailableError.mjs +17 -0
  332. package/dist/esm/api/errors/index.d.mts +2 -0
  333. package/dist/esm/api/errors/index.mjs +2 -0
  334. package/dist/esm/api/resources/business/client/Client.d.mts +15 -0
  335. package/dist/esm/api/resources/business/client/Client.mjs +25 -0
  336. package/dist/esm/api/resources/business/resources/discounts/client/Client.d.mts +87 -0
  337. package/dist/esm/api/resources/business/resources/discounts/client/Client.mjs +324 -0
  338. package/dist/esm/api/resources/business/resources/discounts/client/index.d.mts +1 -0
  339. package/dist/esm/api/resources/business/resources/discounts/client/index.mjs +1 -0
  340. package/dist/esm/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.mts +10 -0
  341. package/dist/esm/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.mts +10 -0
  342. package/dist/esm/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.mjs +2 -0
  343. package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.mts +39 -0
  344. package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.mjs +15 -0
  345. package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.mts +38 -0
  346. package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.mjs +15 -0
  347. package/dist/esm/api/resources/business/resources/discounts/client/requests/index.d.mts +4 -0
  348. package/dist/esm/api/resources/business/resources/discounts/client/requests/index.mjs +2 -0
  349. package/dist/esm/api/resources/business/resources/discounts/exports.d.mts +2 -0
  350. package/dist/esm/api/resources/business/resources/discounts/exports.mjs +3 -0
  351. package/dist/esm/api/resources/business/resources/discounts/index.d.mts +2 -0
  352. package/dist/esm/api/resources/business/resources/discounts/index.mjs +2 -0
  353. package/dist/esm/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.mts +4 -0
  354. package/dist/esm/api/resources/business/resources/discounts/types/CreateDiscountsResponse.mjs +2 -0
  355. package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.mts +9 -0
  356. package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.mjs +7 -0
  357. package/dist/esm/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.mts +4 -0
  358. package/dist/esm/api/resources/business/resources/discounts/types/GetDiscountsResponse.mjs +2 -0
  359. package/dist/esm/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.mts +4 -0
  360. package/dist/esm/api/resources/business/resources/discounts/types/ListDiscountsResponse.mjs +2 -0
  361. package/dist/esm/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.mts +4 -0
  362. package/dist/esm/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.mjs +2 -0
  363. package/dist/esm/api/resources/business/resources/discounts/types/index.d.mts +5 -0
  364. package/dist/esm/api/resources/business/resources/discounts/types/index.mjs +5 -0
  365. package/dist/esm/api/resources/business/resources/index.d.mts +15 -0
  366. package/dist/esm/api/resources/business/resources/index.mjs +15 -0
  367. package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +68 -0
  368. package/dist/esm/api/resources/business/resources/productCategories/client/Client.mjs +260 -0
  369. package/dist/esm/api/resources/business/resources/productCategories/client/index.d.mts +1 -0
  370. package/dist/esm/api/resources/business/resources/productCategories/client/index.mjs +1 -0
  371. package/dist/esm/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.mts +10 -0
  372. package/dist/esm/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.mjs +2 -0
  373. package/dist/esm/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.mts +12 -0
  374. package/dist/esm/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.mjs +2 -0
  375. package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.mts +14 -0
  376. package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.mjs +2 -0
  377. package/dist/esm/api/resources/business/resources/productCategories/client/requests/index.d.mts +3 -0
  378. package/dist/esm/api/resources/business/resources/productCategories/client/requests/index.mjs +1 -0
  379. package/dist/esm/api/resources/business/resources/productCategories/exports.d.mts +2 -0
  380. package/dist/esm/api/resources/business/resources/productCategories/exports.mjs +3 -0
  381. package/dist/esm/api/resources/business/resources/productCategories/index.d.mts +2 -0
  382. package/dist/esm/api/resources/business/resources/productCategories/index.mjs +2 -0
  383. package/dist/esm/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.mts +4 -0
  384. package/dist/esm/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.mjs +2 -0
  385. package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.mts +9 -0
  386. package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.mjs +7 -0
  387. package/dist/esm/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.mts +4 -0
  388. package/dist/esm/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.mjs +2 -0
  389. package/dist/esm/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.mts +4 -0
  390. package/dist/esm/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.mjs +2 -0
  391. package/dist/esm/api/resources/business/resources/productCategories/types/index.d.mts +4 -0
  392. package/dist/esm/api/resources/business/resources/productCategories/types/index.mjs +4 -0
  393. package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +109 -0
  394. package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +392 -0
  395. package/dist/esm/api/resources/business/resources/productOrders/client/index.d.mts +1 -0
  396. package/dist/esm/api/resources/business/resources/productOrders/client/index.mjs +1 -0
  397. package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.mts +10 -0
  398. package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.mjs +2 -0
  399. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +10 -0
  400. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.mjs +2 -0
  401. package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.mts +10 -0
  402. package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.mjs +2 -0
  403. package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.d.mts +12 -0
  404. package/dist/esm/api/resources/business/resources/productOrders/client/requests/RefundOrderRequest.mjs +2 -0
  405. package/dist/esm/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.mts +16 -0
  406. package/dist/esm/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.mjs +2 -0
  407. package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +5 -0
  408. package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.mjs +1 -0
  409. package/dist/esm/api/resources/business/resources/productOrders/exports.d.mts +2 -0
  410. package/dist/esm/api/resources/business/resources/productOrders/exports.mjs +3 -0
  411. package/dist/esm/api/resources/business/resources/productOrders/index.d.mts +2 -0
  412. package/dist/esm/api/resources/business/resources/productOrders/index.mjs +2 -0
  413. package/dist/esm/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.mts +4 -0
  414. package/dist/esm/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.mjs +2 -0
  415. package/dist/esm/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.mts +4 -0
  416. package/dist/esm/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.mjs +2 -0
  417. package/dist/esm/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.mts +4 -0
  418. package/dist/esm/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.mjs +2 -0
  419. package/dist/esm/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.mts +4 -0
  420. package/dist/esm/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.mjs +2 -0
  421. package/dist/esm/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.mts +4 -0
  422. package/dist/esm/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.mjs +2 -0
  423. package/dist/esm/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.mts +4 -0
  424. package/dist/esm/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.mjs +2 -0
  425. package/dist/esm/api/resources/business/resources/productOrders/types/index.d.mts +6 -0
  426. package/dist/esm/api/resources/business/resources/productOrders/types/index.mjs +6 -0
  427. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +89 -0
  428. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +328 -0
  429. package/dist/esm/api/resources/business/resources/products/client/index.d.mts +1 -0
  430. package/dist/esm/api/resources/business/resources/products/client/index.mjs +1 -0
  431. package/dist/esm/api/resources/business/resources/products/client/requests/DeleteProductsRequest.d.mts +10 -0
  432. package/dist/esm/api/resources/business/resources/products/client/requests/DeleteProductsRequest.mjs +2 -0
  433. package/dist/esm/api/resources/business/resources/products/client/requests/GetProductsRequest.d.mts +10 -0
  434. package/dist/esm/api/resources/business/resources/products/client/requests/GetProductsRequest.mjs +2 -0
  435. package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +65 -0
  436. package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.mjs +27 -0
  437. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +65 -0
  438. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.mjs +27 -0
  439. package/dist/esm/api/resources/business/resources/products/client/requests/index.d.mts +4 -0
  440. package/dist/esm/api/resources/business/resources/products/client/requests/index.mjs +2 -0
  441. package/dist/esm/api/resources/business/resources/products/exports.d.mts +3 -0
  442. package/dist/esm/api/resources/business/resources/products/exports.mjs +4 -0
  443. package/dist/esm/api/resources/business/resources/products/index.d.mts +3 -0
  444. package/dist/esm/api/resources/business/resources/products/index.mjs +3 -0
  445. package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
  446. package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
  447. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +62 -0
  448. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +221 -0
  449. package/dist/esm/api/resources/business/resources/products/resources/variants/client/index.d.mts +1 -0
  450. package/dist/esm/api/resources/business/resources/products/resources/variants/client/index.mjs +1 -0
  451. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/DeleteVariantsRequest.d.mts +10 -0
  452. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/DeleteVariantsRequest.mjs +2 -0
  453. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.mts +34 -0
  454. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.mjs +10 -0
  455. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.mts +32 -0
  456. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.mjs +10 -0
  457. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.d.mts +3 -0
  458. package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.mjs +2 -0
  459. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +2 -0
  460. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +3 -0
  461. package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +2 -0
  462. package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +2 -0
  463. package/dist/esm/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.mts +4 -0
  464. package/dist/esm/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.mjs +2 -0
  465. package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.mts +9 -0
  466. package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.mjs +7 -0
  467. package/dist/esm/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.mts +4 -0
  468. package/dist/esm/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.mjs +2 -0
  469. package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.d.mts +3 -0
  470. package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.mjs +3 -0
  471. package/dist/esm/api/resources/business/resources/products/types/CreateProductsResponse.d.mts +4 -0
  472. package/dist/esm/api/resources/business/resources/products/types/CreateProductsResponse.mjs +2 -0
  473. package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.d.mts +9 -0
  474. package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.mjs +7 -0
  475. package/dist/esm/api/resources/business/resources/products/types/GetProductsResponse.d.mts +4 -0
  476. package/dist/esm/api/resources/business/resources/products/types/GetProductsResponse.mjs +2 -0
  477. package/dist/esm/api/resources/business/resources/products/types/ListProductsResponse.d.mts +4 -0
  478. package/dist/esm/api/resources/business/resources/products/types/ListProductsResponse.mjs +2 -0
  479. package/dist/esm/api/resources/business/resources/products/types/UpdateProductsResponse.d.mts +4 -0
  480. package/dist/esm/api/resources/business/resources/products/types/UpdateProductsResponse.mjs +2 -0
  481. package/dist/esm/api/resources/business/resources/products/types/index.d.mts +5 -0
  482. package/dist/esm/api/resources/business/resources/products/types/index.mjs +5 -0
  483. package/dist/esm/api/resources/business/resources/temporaryLocations/client/Client.d.mts +87 -0
  484. package/dist/esm/api/resources/business/resources/temporaryLocations/client/Client.mjs +326 -0
  485. package/dist/esm/api/resources/business/resources/temporaryLocations/client/index.d.mts +1 -0
  486. package/dist/esm/api/resources/business/resources/temporaryLocations/client/index.mjs +1 -0
  487. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/DeleteTemporaryLocationsRequest.d.mts +10 -0
  488. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/DeleteTemporaryLocationsRequest.mjs +2 -0
  489. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/GetTemporaryLocationsRequest.d.mts +10 -0
  490. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/GetTemporaryLocationsRequest.mjs +2 -0
  491. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.d.mts +22 -0
  492. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.mjs +2 -0
  493. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.d.mts +22 -0
  494. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.mjs +2 -0
  495. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/index.d.mts +4 -0
  496. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/index.mjs +1 -0
  497. package/dist/esm/api/resources/business/resources/temporaryLocations/exports.d.mts +2 -0
  498. package/dist/esm/api/resources/business/resources/temporaryLocations/exports.mjs +3 -0
  499. package/dist/esm/api/resources/business/resources/temporaryLocations/index.d.mts +2 -0
  500. package/dist/esm/api/resources/business/resources/temporaryLocations/index.mjs +2 -0
  501. package/dist/esm/api/resources/business/resources/temporaryLocations/types/CreateTemporaryLocationsResponse.d.mts +4 -0
  502. package/dist/esm/api/resources/business/resources/temporaryLocations/types/CreateTemporaryLocationsResponse.mjs +2 -0
  503. package/dist/esm/api/resources/business/resources/temporaryLocations/types/DeleteTemporaryLocationsResponse.d.mts +9 -0
  504. package/dist/esm/api/resources/business/resources/temporaryLocations/types/DeleteTemporaryLocationsResponse.mjs +7 -0
  505. package/dist/esm/api/resources/business/resources/temporaryLocations/types/GetTemporaryLocationsResponse.d.mts +4 -0
  506. package/dist/esm/api/resources/business/resources/temporaryLocations/types/GetTemporaryLocationsResponse.mjs +2 -0
  507. package/dist/esm/api/resources/business/resources/temporaryLocations/types/ListTemporaryLocationsResponse.d.mts +4 -0
  508. package/dist/esm/api/resources/business/resources/temporaryLocations/types/ListTemporaryLocationsResponse.mjs +2 -0
  509. package/dist/esm/api/resources/business/resources/temporaryLocations/types/UpdateTemporaryLocationsResponse.d.mts +4 -0
  510. package/dist/esm/api/resources/business/resources/temporaryLocations/types/UpdateTemporaryLocationsResponse.mjs +2 -0
  511. package/dist/esm/api/resources/business/resources/temporaryLocations/types/index.d.mts +5 -0
  512. package/dist/esm/api/resources/business/resources/temporaryLocations/types/index.mjs +5 -0
  513. package/dist/esm/api/resources/customer/client/Client.d.mts +9 -0
  514. package/dist/esm/api/resources/customer/client/Client.mjs +15 -0
  515. package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +15 -0
  516. package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +54 -0
  517. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +10 -0
  518. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.mjs +2 -0
  519. package/dist/esm/api/resources/customer/resources/businesses/client/requests/index.d.mts +1 -0
  520. package/dist/esm/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.mts +4 -0
  521. package/dist/esm/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.mjs +2 -0
  522. package/dist/esm/api/resources/customer/resources/businesses/types/index.d.mts +1 -0
  523. package/dist/esm/api/resources/customer/resources/businesses/types/index.mjs +1 -0
  524. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +127 -0
  525. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +440 -0
  526. package/dist/esm/api/resources/customer/resources/cart/client/index.d.mts +1 -0
  527. package/dist/esm/api/resources/customer/resources/cart/client/index.mjs +1 -0
  528. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +14 -0
  529. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.mjs +2 -0
  530. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +47 -0
  531. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.mjs +12 -0
  532. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +45 -0
  533. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.mjs +12 -0
  534. package/dist/esm/api/resources/customer/resources/cart/client/requests/RemoveItemCartRequest.d.mts +10 -0
  535. package/dist/esm/api/resources/customer/resources/cart/client/requests/RemoveItemCartRequest.mjs +2 -0
  536. package/dist/esm/api/resources/customer/resources/cart/client/requests/UpdateCartItemRequest.d.mts +12 -0
  537. package/dist/esm/api/resources/customer/resources/cart/client/requests/UpdateCartItemRequest.mjs +2 -0
  538. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +5 -0
  539. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.mjs +2 -0
  540. package/dist/esm/api/resources/customer/resources/cart/exports.d.mts +2 -0
  541. package/dist/esm/api/resources/customer/resources/cart/exports.mjs +3 -0
  542. package/dist/esm/api/resources/customer/resources/cart/index.d.mts +2 -0
  543. package/dist/esm/api/resources/customer/resources/cart/index.mjs +2 -0
  544. package/dist/esm/api/resources/customer/resources/cart/types/AddItemCartResponse.d.mts +4 -0
  545. package/dist/esm/api/resources/customer/resources/cart/types/AddItemCartResponse.mjs +2 -0
  546. package/dist/esm/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.mts +4 -0
  547. package/dist/esm/api/resources/customer/resources/cart/types/CheckoutCartResponse.mjs +2 -0
  548. package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.d.mts +9 -0
  549. package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.mjs +7 -0
  550. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +18 -0
  551. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.mjs +2 -0
  552. package/dist/esm/api/resources/customer/resources/cart/types/GetCartResponse.d.mts +4 -0
  553. package/dist/esm/api/resources/customer/resources/cart/types/GetCartResponse.mjs +2 -0
  554. package/dist/esm/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.mts +4 -0
  555. package/dist/esm/api/resources/customer/resources/cart/types/RemoveItemCartResponse.mjs +2 -0
  556. package/dist/esm/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.mts +4 -0
  557. package/dist/esm/api/resources/customer/resources/cart/types/UpdateItemCartResponse.mjs +2 -0
  558. package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +7 -0
  559. package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +7 -0
  560. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +2 -2
  561. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +1 -1
  562. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/{CreatePaymentIntentRequest.d.mts → AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts} +1 -1
  563. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.mjs +2 -0
  564. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.mts +1 -1
  565. package/dist/esm/api/resources/customer/resources/index.d.mts +9 -0
  566. package/dist/esm/api/resources/customer/resources/index.mjs +9 -0
  567. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.d.mts +37 -0
  568. package/dist/esm/api/resources/customer/resources/productOrders/client/Client.mjs +125 -0
  569. package/dist/esm/api/resources/customer/resources/productOrders/client/index.d.mts +1 -0
  570. package/dist/esm/api/resources/customer/resources/productOrders/client/index.mjs +1 -0
  571. package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +10 -0
  572. package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.mjs +2 -0
  573. package/dist/esm/api/resources/customer/resources/productOrders/client/requests/index.d.mts +1 -0
  574. package/dist/esm/api/resources/customer/resources/productOrders/client/requests/index.mjs +1 -0
  575. package/dist/esm/api/resources/customer/resources/productOrders/exports.d.mts +2 -0
  576. package/dist/esm/api/resources/customer/resources/productOrders/exports.mjs +3 -0
  577. package/dist/esm/api/resources/customer/resources/productOrders/index.d.mts +2 -0
  578. package/dist/esm/api/resources/customer/resources/productOrders/index.mjs +2 -0
  579. package/dist/esm/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.mts +4 -0
  580. package/dist/esm/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.mjs +2 -0
  581. package/dist/esm/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.mts +4 -0
  582. package/dist/esm/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.mjs +2 -0
  583. package/dist/esm/api/resources/customer/resources/productOrders/types/index.d.mts +2 -0
  584. package/dist/esm/api/resources/customer/resources/productOrders/types/index.mjs +2 -0
  585. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +53 -0
  586. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +188 -0
  587. package/dist/esm/api/resources/customer/resources/shop/client/index.d.mts +1 -0
  588. package/dist/esm/api/resources/customer/resources/shop/client/index.mjs +1 -0
  589. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +13 -0
  590. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.mjs +2 -0
  591. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +10 -0
  592. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.mjs +2 -0
  593. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +14 -0
  594. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.mjs +2 -0
  595. package/dist/esm/api/resources/customer/resources/shop/client/requests/index.d.mts +3 -0
  596. package/dist/esm/api/resources/customer/resources/shop/client/requests/index.mjs +1 -0
  597. package/dist/esm/api/resources/customer/resources/shop/exports.d.mts +2 -0
  598. package/dist/esm/api/resources/customer/resources/shop/exports.mjs +3 -0
  599. package/dist/esm/api/resources/customer/resources/shop/index.d.mts +2 -0
  600. package/dist/esm/api/resources/customer/resources/shop/index.mjs +2 -0
  601. package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +4 -0
  602. package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.mjs +2 -0
  603. package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +4 -0
  604. package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.mjs +2 -0
  605. package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +4 -0
  606. package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.mjs +2 -0
  607. package/dist/esm/api/resources/customer/resources/shop/types/index.d.mts +3 -0
  608. package/dist/esm/api/resources/customer/resources/shop/types/index.mjs +3 -0
  609. package/dist/esm/api/types/BusinessDiscount.d.mts +19 -0
  610. package/dist/esm/api/types/BusinessDiscount.mjs +2 -0
  611. package/dist/esm/api/types/BusinessProduct.d.mts +32 -0
  612. package/dist/esm/api/types/BusinessProduct.mjs +2 -0
  613. package/dist/esm/api/types/BusinessProductCategory.d.mts +12 -0
  614. package/dist/esm/api/types/BusinessProductCategory.mjs +2 -0
  615. package/dist/esm/api/types/BusinessProductOrder.d.mts +48 -0
  616. package/dist/esm/api/types/BusinessProductOrder.mjs +2 -0
  617. package/dist/esm/api/types/BusinessProductOrderItem.d.mts +24 -0
  618. package/dist/esm/api/types/BusinessProductOrderItem.mjs +2 -0
  619. package/dist/esm/api/types/BusinessProductVariant.d.mts +20 -0
  620. package/dist/esm/api/types/BusinessProductVariant.mjs +2 -0
  621. package/dist/esm/api/types/BusinessTemporaryLocation.d.mts +18 -0
  622. package/dist/esm/api/types/BusinessTemporaryLocation.mjs +2 -0
  623. package/dist/esm/api/types/CustomerCart.d.mts +9 -0
  624. package/dist/esm/api/types/CustomerCart.mjs +2 -0
  625. package/dist/esm/api/types/CustomerCartItem.d.mts +24 -0
  626. package/dist/esm/api/types/CustomerCartItem.mjs +2 -0
  627. package/dist/esm/api/types/CustomerMenuItem.d.mts +3 -0
  628. package/dist/esm/api/types/CustomerMenuItemModifier.d.mts +7 -0
  629. package/dist/esm/api/types/CustomerMenuItemModifier.mjs +2 -0
  630. package/dist/esm/api/types/CustomerMenuItemVariation.d.mts +8 -0
  631. package/dist/esm/api/types/CustomerMenuItemVariation.mjs +2 -0
  632. package/dist/esm/api/types/CustomerProductOrder.d.mts +29 -0
  633. package/dist/esm/api/types/CustomerProductOrder.mjs +2 -0
  634. package/dist/esm/api/types/CustomerProductOrderItem.d.mts +23 -0
  635. package/dist/esm/api/types/CustomerProductOrderItem.mjs +2 -0
  636. package/dist/esm/api/types/CustomerShopProduct.d.mts +21 -0
  637. package/dist/esm/api/types/CustomerShopProduct.mjs +2 -0
  638. package/dist/esm/api/types/CustomerShopProductCategory.d.mts +8 -0
  639. package/dist/esm/api/types/CustomerShopProductCategory.mjs +2 -0
  640. package/dist/esm/api/types/CustomerShopProductVariant.d.mts +13 -0
  641. package/dist/esm/api/types/CustomerShopProductVariant.mjs +2 -0
  642. package/dist/esm/api/types/ExploreResponse.d.mts +1 -0
  643. package/dist/esm/api/types/ExploreTemporaryLocation.d.mts +26 -0
  644. package/dist/esm/api/types/ExploreTemporaryLocation.mjs +2 -0
  645. package/dist/esm/api/types/InternalServerErrorBody.d.mts +3 -0
  646. package/dist/esm/api/types/InternalServerErrorBody.mjs +2 -0
  647. package/dist/esm/api/types/ServiceUnavailableErrorBody.d.mts +3 -0
  648. package/dist/esm/api/types/ServiceUnavailableErrorBody.mjs +2 -0
  649. package/dist/esm/api/types/index.d.mts +19 -0
  650. package/dist/esm/api/types/index.mjs +19 -0
  651. package/dist/esm/version.d.mts +1 -1
  652. package/dist/esm/version.mjs +1 -1
  653. package/package.json +100 -1
  654. package/reference.md +2877 -743
  655. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.js → business/resources/discounts/client/requests/DeleteDiscountsRequest.js} +0 -0
  656. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentRequest.mjs → business/resources/discounts/client/requests/DeleteDiscountsRequest.mjs} +0 -0
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface UpdateDiscountsResponse {
3
+ data: FiveOneEat.BusinessDiscount;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from "./CreateDiscountsResponse.js";
2
+ export * from "./DeleteDiscountsResponse.js";
3
+ export * from "./GetDiscountsResponse.js";
4
+ export * from "./ListDiscountsResponse.js";
5
+ export * from "./UpdateDiscountsResponse.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateDiscountsResponse.js"), exports);
18
+ __exportStar(require("./DeleteDiscountsResponse.js"), exports);
19
+ __exportStar(require("./GetDiscountsResponse.js"), exports);
20
+ __exportStar(require("./ListDiscountsResponse.js"), exports);
21
+ __exportStar(require("./UpdateDiscountsResponse.js"), exports);
@@ -15,6 +15,9 @@ export * as certifications from "./certifications/index.js";
15
15
  export * from "./certifications/types/index.js";
16
16
  export * as cuisines from "./cuisines/index.js";
17
17
  export * from "./cuisines/types/index.js";
18
+ export * from "./discounts/client/requests/index.js";
19
+ export * as discounts from "./discounts/index.js";
20
+ export * from "./discounts/types/index.js";
18
21
  export * from "./events/client/requests/index.js";
19
22
  export * as events from "./events/index.js";
20
23
  export * from "./events/types/index.js";
@@ -26,6 +29,15 @@ export * as menus from "./menus/index.js";
26
29
  export * from "./menus/types/index.js";
27
30
  export * from "./messaging/client/requests/index.js";
28
31
  export * as messaging from "./messaging/index.js";
32
+ export * from "./productCategories/client/requests/index.js";
33
+ export * as productCategories from "./productCategories/index.js";
34
+ export * from "./productCategories/types/index.js";
35
+ export * from "./productOrders/client/requests/index.js";
36
+ export * as productOrders from "./productOrders/index.js";
37
+ export * from "./productOrders/types/index.js";
38
+ export * from "./products/client/requests/index.js";
39
+ export * as products from "./products/index.js";
40
+ export * from "./products/types/index.js";
29
41
  export * from "./profile/client/requests/index.js";
30
42
  export * as profile from "./profile/index.js";
31
43
  export * from "./profile/types/index.js";
@@ -35,3 +47,6 @@ export * from "./pushNotifications/types/index.js";
35
47
  export * from "./stripeConnect/client/requests/index.js";
36
48
  export * as stripeConnect from "./stripeConnect/index.js";
37
49
  export * from "./stripeConnect/types/index.js";
50
+ export * from "./temporaryLocations/client/requests/index.js";
51
+ export * as temporaryLocations from "./temporaryLocations/index.js";
52
+ export * from "./temporaryLocations/types/index.js";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.stripeConnect = exports.pushNotifications = exports.profile = exports.messaging = exports.menus = exports.gallery = exports.events = exports.cuisines = exports.certifications = exports.categories = exports.businesses = exports.bulletins = exports.auth = exports.allergens = void 0;
39
+ exports.temporaryLocations = exports.stripeConnect = exports.pushNotifications = exports.profile = exports.products = exports.productOrders = exports.productCategories = exports.messaging = exports.menus = exports.gallery = exports.events = exports.discounts = exports.cuisines = exports.certifications = exports.categories = exports.businesses = exports.bulletins = exports.auth = exports.allergens = void 0;
40
40
  exports.allergens = __importStar(require("./allergens/index.js"));
41
41
  __exportStar(require("./allergens/types/index.js"), exports);
42
42
  __exportStar(require("./auth/client/requests/index.js"), exports);
@@ -54,6 +54,9 @@ exports.certifications = __importStar(require("./certifications/index.js"));
54
54
  __exportStar(require("./certifications/types/index.js"), exports);
55
55
  exports.cuisines = __importStar(require("./cuisines/index.js"));
56
56
  __exportStar(require("./cuisines/types/index.js"), exports);
57
+ __exportStar(require("./discounts/client/requests/index.js"), exports);
58
+ exports.discounts = __importStar(require("./discounts/index.js"));
59
+ __exportStar(require("./discounts/types/index.js"), exports);
57
60
  __exportStar(require("./events/client/requests/index.js"), exports);
58
61
  exports.events = __importStar(require("./events/index.js"));
59
62
  __exportStar(require("./events/types/index.js"), exports);
@@ -65,6 +68,15 @@ exports.menus = __importStar(require("./menus/index.js"));
65
68
  __exportStar(require("./menus/types/index.js"), exports);
66
69
  __exportStar(require("./messaging/client/requests/index.js"), exports);
67
70
  exports.messaging = __importStar(require("./messaging/index.js"));
71
+ __exportStar(require("./productCategories/client/requests/index.js"), exports);
72
+ exports.productCategories = __importStar(require("./productCategories/index.js"));
73
+ __exportStar(require("./productCategories/types/index.js"), exports);
74
+ __exportStar(require("./productOrders/client/requests/index.js"), exports);
75
+ exports.productOrders = __importStar(require("./productOrders/index.js"));
76
+ __exportStar(require("./productOrders/types/index.js"), exports);
77
+ __exportStar(require("./products/client/requests/index.js"), exports);
78
+ exports.products = __importStar(require("./products/index.js"));
79
+ __exportStar(require("./products/types/index.js"), exports);
68
80
  __exportStar(require("./profile/client/requests/index.js"), exports);
69
81
  exports.profile = __importStar(require("./profile/index.js"));
70
82
  __exportStar(require("./profile/types/index.js"), exports);
@@ -74,3 +86,6 @@ __exportStar(require("./pushNotifications/types/index.js"), exports);
74
86
  __exportStar(require("./stripeConnect/client/requests/index.js"), exports);
75
87
  exports.stripeConnect = __importStar(require("./stripeConnect/index.js"));
76
88
  __exportStar(require("./stripeConnect/types/index.js"), exports);
89
+ __exportStar(require("./temporaryLocations/client/requests/index.js"), exports);
90
+ exports.temporaryLocations = __importStar(require("./temporaryLocations/index.js"));
91
+ __exportStar(require("./temporaryLocations/types/index.js"), exports);
@@ -0,0 +1,68 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
+ import * as core from "../../../../../../core/index.js";
4
+ import * as FiveOneEat from "../../../../../index.js";
5
+ export declare namespace ProductCategoriesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ProductCategoriesClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ProductCategoriesClient.Options>;
12
+ constructor(options?: ProductCategoriesClient.Options);
13
+ /**
14
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
15
+ *
16
+ * @throws {@link FiveOneEat.UnauthorizedError}
17
+ *
18
+ * @example
19
+ * await client.business.productCategories.list()
20
+ */
21
+ list(requestOptions?: ProductCategoriesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListProductCategoriesResponse>;
22
+ private __list;
23
+ /**
24
+ * @param {FiveOneEat.business.StoreProductCategoryRequest} request
25
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
26
+ *
27
+ * @throws {@link FiveOneEat.UnauthorizedError}
28
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.business.productCategories.create({
32
+ * name: "name"
33
+ * })
34
+ */
35
+ create(request: FiveOneEat.business.StoreProductCategoryRequest, requestOptions?: ProductCategoriesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.CreateProductCategoriesResponse>;
36
+ private __create;
37
+ /**
38
+ * @param {FiveOneEat.business.UpdateProductCategoryRequest} request
39
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
40
+ *
41
+ * @throws {@link FiveOneEat.UnauthorizedError}
42
+ * @throws {@link FiveOneEat.ForbiddenError}
43
+ * @throws {@link FiveOneEat.NotFoundError}
44
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
45
+ *
46
+ * @example
47
+ * await client.business.productCategories.update({
48
+ * productCategory: "productCategory"
49
+ * })
50
+ */
51
+ update(request: FiveOneEat.business.UpdateProductCategoryRequest, requestOptions?: ProductCategoriesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.UpdateProductCategoriesResponse>;
52
+ private __update;
53
+ /**
54
+ * @param {FiveOneEat.business.DeleteProductCategoriesRequest} request
55
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link FiveOneEat.UnauthorizedError}
58
+ * @throws {@link FiveOneEat.ForbiddenError}
59
+ * @throws {@link FiveOneEat.NotFoundError}
60
+ *
61
+ * @example
62
+ * await client.business.productCategories.delete({
63
+ * productCategory: "productCategory"
64
+ * })
65
+ */
66
+ delete(request: FiveOneEat.business.DeleteProductCategoriesRequest, requestOptions?: ProductCategoriesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.DeleteProductCategoriesResponse>;
67
+ private __delete;
68
+ }
@@ -0,0 +1,297 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ exports.ProductCategoriesClient = void 0;
58
+ const BaseClient_js_1 = require("../../../../../../BaseClient.js");
59
+ const headers_js_1 = require("../../../../../../core/headers.js");
60
+ const core = __importStar(require("../../../../../../core/index.js"));
61
+ const environments = __importStar(require("../../../../../../environments.js"));
62
+ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
63
+ const errors = __importStar(require("../../../../../../errors/index.js"));
64
+ const FiveOneEat = __importStar(require("../../../../../index.js"));
65
+ class ProductCategoriesClient {
66
+ constructor(options = {}) {
67
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
68
+ }
69
+ /**
70
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link FiveOneEat.UnauthorizedError}
73
+ *
74
+ * @example
75
+ * await client.business.productCategories.list()
76
+ */
77
+ list(requestOptions) {
78
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
79
+ }
80
+ __list(requestOptions) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
83
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
84
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
85
+ const _response = yield core.fetcher({
86
+ 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"),
87
+ method: "GET",
88
+ headers: _headers,
89
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
90
+ 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,
91
+ 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,
92
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
93
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
94
+ logging: this._options.logging,
95
+ });
96
+ if (_response.ok) {
97
+ return {
98
+ data: _response.body,
99
+ rawResponse: _response.rawResponse,
100
+ };
101
+ }
102
+ if (_response.error.reason === "status-code") {
103
+ switch (_response.error.statusCode) {
104
+ case 401:
105
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
106
+ default:
107
+ throw new errors.FiveOneEatError({
108
+ statusCode: _response.error.statusCode,
109
+ body: _response.error.body,
110
+ rawResponse: _response.rawResponse,
111
+ });
112
+ }
113
+ }
114
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/business/product-categories");
115
+ });
116
+ }
117
+ /**
118
+ * @param {FiveOneEat.business.StoreProductCategoryRequest} request
119
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
120
+ *
121
+ * @throws {@link FiveOneEat.UnauthorizedError}
122
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
123
+ *
124
+ * @example
125
+ * await client.business.productCategories.create({
126
+ * name: "name"
127
+ * })
128
+ */
129
+ create(request, requestOptions) {
130
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
131
+ }
132
+ __create(request, requestOptions) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
135
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
136
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
137
+ const _response = yield core.fetcher({
138
+ 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"),
139
+ method: "POST",
140
+ headers: _headers,
141
+ contentType: "application/json",
142
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
143
+ requestType: "json",
144
+ body: request,
145
+ 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,
146
+ 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,
147
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
148
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
149
+ logging: this._options.logging,
150
+ });
151
+ if (_response.ok) {
152
+ return {
153
+ data: _response.body,
154
+ rawResponse: _response.rawResponse,
155
+ };
156
+ }
157
+ if (_response.error.reason === "status-code") {
158
+ switch (_response.error.statusCode) {
159
+ case 401:
160
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
161
+ case 422:
162
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
163
+ default:
164
+ throw new errors.FiveOneEatError({
165
+ statusCode: _response.error.statusCode,
166
+ body: _response.error.body,
167
+ rawResponse: _response.rawResponse,
168
+ });
169
+ }
170
+ }
171
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/business/product-categories");
172
+ });
173
+ }
174
+ /**
175
+ * @param {FiveOneEat.business.UpdateProductCategoryRequest} request
176
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
177
+ *
178
+ * @throws {@link FiveOneEat.UnauthorizedError}
179
+ * @throws {@link FiveOneEat.ForbiddenError}
180
+ * @throws {@link FiveOneEat.NotFoundError}
181
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
182
+ *
183
+ * @example
184
+ * await client.business.productCategories.update({
185
+ * productCategory: "productCategory"
186
+ * })
187
+ */
188
+ update(request, requestOptions) {
189
+ return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
190
+ }
191
+ __update(request, requestOptions) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
194
+ const { productCategory } = request, _body = __rest(request, ["productCategory"]);
195
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
196
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
197
+ const _response = yield core.fetcher({
198
+ 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)}`),
199
+ method: "PUT",
200
+ headers: _headers,
201
+ contentType: "application/json",
202
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
203
+ requestType: "json",
204
+ body: _body,
205
+ 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,
206
+ 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,
207
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
208
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
209
+ logging: this._options.logging,
210
+ });
211
+ if (_response.ok) {
212
+ return {
213
+ data: _response.body,
214
+ rawResponse: _response.rawResponse,
215
+ };
216
+ }
217
+ if (_response.error.reason === "status-code") {
218
+ switch (_response.error.statusCode) {
219
+ case 401:
220
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
221
+ case 403:
222
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
223
+ case 404:
224
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
225
+ case 422:
226
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
227
+ default:
228
+ throw new errors.FiveOneEatError({
229
+ statusCode: _response.error.statusCode,
230
+ body: _response.error.body,
231
+ rawResponse: _response.rawResponse,
232
+ });
233
+ }
234
+ }
235
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/business/product-categories/{productCategory}");
236
+ });
237
+ }
238
+ /**
239
+ * @param {FiveOneEat.business.DeleteProductCategoriesRequest} request
240
+ * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
241
+ *
242
+ * @throws {@link FiveOneEat.UnauthorizedError}
243
+ * @throws {@link FiveOneEat.ForbiddenError}
244
+ * @throws {@link FiveOneEat.NotFoundError}
245
+ *
246
+ * @example
247
+ * await client.business.productCategories.delete({
248
+ * productCategory: "productCategory"
249
+ * })
250
+ */
251
+ delete(request, requestOptions) {
252
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
253
+ }
254
+ __delete(request, requestOptions) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
257
+ const { productCategory } = request;
258
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
259
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
260
+ const _response = yield core.fetcher({
261
+ 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)}`),
262
+ method: "DELETE",
263
+ headers: _headers,
264
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
265
+ 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,
266
+ 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,
267
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
268
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
269
+ logging: this._options.logging,
270
+ });
271
+ if (_response.ok) {
272
+ return {
273
+ data: _response.body,
274
+ rawResponse: _response.rawResponse,
275
+ };
276
+ }
277
+ if (_response.error.reason === "status-code") {
278
+ switch (_response.error.statusCode) {
279
+ case 401:
280
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
281
+ case 403:
282
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
283
+ case 404:
284
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
285
+ default:
286
+ throw new errors.FiveOneEatError({
287
+ statusCode: _response.error.statusCode,
288
+ body: _response.error.body,
289
+ rawResponse: _response.rawResponse,
290
+ });
291
+ }
292
+ }
293
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/business/product-categories/{productCategory}");
294
+ });
295
+ }
296
+ }
297
+ exports.ProductCategoriesClient = ProductCategoriesClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * productCategory: "productCategory"
5
+ * }
6
+ */
7
+ export interface DeleteProductCategoriesRequest {
8
+ /** The product category ID */
9
+ productCategory: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface StoreProductCategoryRequest {
8
+ name: string;
9
+ description?: string | null;
10
+ parent_id?: number | null;
11
+ sort_order?: number;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * productCategory: "productCategory"
5
+ * }
6
+ */
7
+ export interface UpdateProductCategoryRequest {
8
+ /** The product category ID */
9
+ productCategory: string;
10
+ name?: string;
11
+ description?: string | null;
12
+ parent_id?: number | null;
13
+ sort_order?: number;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type { DeleteProductCategoriesRequest } from "./DeleteProductCategoriesRequest.js";
2
+ export type { StoreProductCategoryRequest } from "./StoreProductCategoryRequest.js";
3
+ export type { UpdateProductCategoryRequest } from "./UpdateProductCategoryRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ProductCategoriesClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ProductCategoriesClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ProductCategoriesClient", { enumerable: true, get: function () { return Client_js_1.ProductCategoriesClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface CreateProductCategoriesResponse {
3
+ data: FiveOneEat.BusinessProductCategory;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface DeleteProductCategoriesResponse {
2
+ message: DeleteProductCategoriesResponse.Message;
3
+ }
4
+ export declare namespace DeleteProductCategoriesResponse {
5
+ const Message: {
6
+ readonly CategoryDeletedSuccessfully: "Category deleted successfully.";
7
+ };
8
+ type Message = (typeof Message)[keyof typeof Message];
9
+ }