@51eat/sdk 0.0.42 → 0.0.44

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 (220) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/business/resources/products/client/Client.js +7 -2
  4. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +69 -0
  5. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +259 -0
  6. package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.js +17 -0
  8. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
  9. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.js +3 -0
  10. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
  11. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.js +3 -0
  12. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
  13. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.js +3 -0
  14. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.d.ts +3 -0
  15. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.js +2 -0
  16. package/dist/cjs/api/resources/business/resources/products/resources/images/exports.d.ts +2 -0
  17. package/dist/cjs/api/resources/business/resources/products/resources/images/exports.js +21 -0
  18. package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/business/resources/products/resources/images/index.js +18 -0
  20. package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +9 -0
  21. package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +10 -0
  22. package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +9 -0
  23. package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +10 -0
  24. package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +4 -0
  25. package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.js +3 -0
  26. package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +3 -0
  27. package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.js +19 -0
  28. package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
  29. package/dist/cjs/api/resources/business/resources/products/resources/index.js +4 -1
  30. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +3 -0
  31. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +5 -0
  32. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.d.ts +1 -0
  33. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.js +1 -0
  34. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.js +1 -0
  36. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +69 -0
  37. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +259 -0
  38. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.js +17 -0
  40. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
  41. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.js +3 -0
  42. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
  43. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.js +3 -0
  44. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
  45. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.js +3 -0
  46. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.ts +3 -0
  47. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.d.ts +2 -0
  49. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.js +21 -0
  50. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +2 -0
  51. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +18 -0
  52. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +9 -0
  53. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +10 -0
  54. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +9 -0
  55. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +10 -0
  56. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +4 -0
  57. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js +3 -0
  58. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +3 -0
  59. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +19 -0
  60. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -0
  61. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +42 -0
  62. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +6 -6
  63. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +24 -24
  64. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -2
  65. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -2
  66. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +2 -2
  67. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +2 -2
  68. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -2
  69. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -2
  70. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +1 -1
  71. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +4 -4
  72. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +2 -2
  73. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +4 -4
  74. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +16 -16
  75. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +2 -2
  76. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +2 -2
  77. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +2 -2
  78. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.ts +2 -2
  79. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +4 -4
  80. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +16 -16
  81. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +2 -2
  82. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +2 -2
  83. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +2 -2
  84. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/StoreEventRsvpRequest.d.ts +2 -2
  85. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +43 -35
  86. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +105 -92
  87. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -2
  88. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +3 -0
  89. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +10 -0
  90. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.js +3 -0
  91. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +3 -0
  92. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +10 -0
  93. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.js +3 -0
  94. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
  95. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +3 -3
  96. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +12 -12
  97. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -2
  98. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -2
  99. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +2 -2
  100. package/dist/cjs/api/types/BusinessProduct.d.ts +1 -1
  101. package/dist/cjs/api/types/BusinessProductVariant.d.ts +2 -0
  102. package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +12 -0
  103. package/dist/cjs/api/types/ReorderProductImagesRequest.js +3 -0
  104. package/dist/cjs/api/types/StoreProductImageRequest.d.ts +4 -0
  105. package/dist/cjs/api/types/StoreProductImageRequest.js +3 -0
  106. package/dist/cjs/api/types/index.d.ts +2 -0
  107. package/dist/cjs/api/types/index.js +2 -0
  108. package/dist/cjs/version.d.ts +1 -1
  109. package/dist/cjs/version.js +1 -1
  110. package/dist/esm/BaseClient.mjs +2 -2
  111. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +3 -0
  112. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
  113. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +69 -0
  114. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +222 -0
  115. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.d.mts +1 -0
  116. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.mjs +1 -0
  117. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  118. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.mjs +2 -0
  119. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  120. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.mjs +2 -0
  121. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  122. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.mjs +2 -0
  123. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.d.mts +3 -0
  124. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.mjs +1 -0
  125. package/dist/esm/api/resources/business/resources/products/resources/images/exports.d.mts +2 -0
  126. package/dist/esm/api/resources/business/resources/products/resources/images/exports.mjs +3 -0
  127. package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +2 -0
  128. package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +2 -0
  129. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  130. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +7 -0
  131. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  132. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +7 -0
  133. package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +4 -0
  134. package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.mjs +2 -0
  135. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +3 -0
  136. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +3 -0
  137. package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
  138. package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
  139. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
  140. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
  141. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +1 -0
  142. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +1 -0
  143. package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +1 -0
  144. package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +1 -0
  145. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +69 -0
  146. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +222 -0
  147. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.mts +1 -0
  148. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.mjs +1 -0
  149. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  150. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.mjs +2 -0
  151. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  152. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.mjs +2 -0
  153. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  154. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.mjs +2 -0
  155. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.mts +3 -0
  156. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.mjs +1 -0
  157. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.d.mts +2 -0
  158. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.mjs +3 -0
  159. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +2 -0
  160. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +2 -0
  161. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  162. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +7 -0
  163. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  164. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +7 -0
  165. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +4 -0
  166. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs +2 -0
  167. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +3 -0
  168. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +3 -0
  169. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
  170. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
  171. package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +6 -6
  172. package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +24 -24
  173. package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -2
  174. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -2
  175. package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +2 -2
  176. package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +2 -2
  177. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -2
  178. package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -2
  179. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +1 -1
  180. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +4 -4
  181. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +2 -2
  182. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +4 -4
  183. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +16 -16
  184. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +2 -2
  185. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +2 -2
  186. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +2 -2
  187. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.mts +2 -2
  188. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +4 -4
  189. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +16 -16
  190. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +2 -2
  191. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +2 -2
  192. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +2 -2
  193. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/StoreEventRsvpRequest.d.mts +2 -2
  194. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +43 -35
  195. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +105 -92
  196. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -2
  197. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +3 -0
  198. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +10 -0
  199. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.mjs +2 -0
  200. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +3 -0
  201. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +10 -0
  202. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.mjs +2 -0
  203. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
  204. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +3 -3
  205. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +12 -12
  206. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -2
  207. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -2
  208. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +2 -2
  209. package/dist/esm/api/types/BusinessProduct.d.mts +1 -1
  210. package/dist/esm/api/types/BusinessProductVariant.d.mts +2 -0
  211. package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +12 -0
  212. package/dist/esm/api/types/ReorderProductImagesRequest.mjs +2 -0
  213. package/dist/esm/api/types/StoreProductImageRequest.d.mts +4 -0
  214. package/dist/esm/api/types/StoreProductImageRequest.mjs +2 -0
  215. package/dist/esm/api/types/index.d.mts +2 -0
  216. package/dist/esm/api/types/index.mjs +2 -0
  217. package/dist/esm/version.d.mts +1 -1
  218. package/dist/esm/version.mjs +1 -1
  219. package/package.json +23 -1
  220. package/reference.md +428 -82
@@ -41,7 +41,7 @@ export class EventsClient {
41
41
  *
42
42
  * @example
43
43
  * await client.customer.businesses.events.list({
44
- * handle: "katzs-deli"
44
+ * business: "katzs-deli"
45
45
  * })
46
46
  */
47
47
  list(request, requestOptions) {
@@ -50,7 +50,7 @@ export class EventsClient {
50
50
  __list(request, requestOptions) {
51
51
  return __awaiter(this, void 0, void 0, function* () {
52
52
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
53
- const { handle, page, per_page: perPage } = request;
53
+ const { business, page, per_page: perPage } = request;
54
54
  const _queryParams = {
55
55
  page,
56
56
  per_page: perPage,
@@ -58,7 +58,7 @@ export class EventsClient {
58
58
  const _authRequest = yield this._options.authProvider.getAuthRequest();
59
59
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
60
60
  const _response = yield core.fetcher({
61
- 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, `customer/businesses/${core.url.encodePathParam(handle)}/events`),
61
+ 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, `customer/businesses/${core.url.encodePathParam(business)}/events`),
62
62
  method: "GET",
63
63
  headers: _headers,
64
64
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -93,7 +93,7 @@ export class EventsClient {
93
93
  });
94
94
  }
95
95
  }
96
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{handle}/events");
96
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events");
97
97
  });
98
98
  }
99
99
  /**
@@ -106,7 +106,7 @@ export class EventsClient {
106
106
  *
107
107
  * @example
108
108
  * await client.customer.businesses.events.get({
109
- * handle: "katzs-deli",
109
+ * business: "katzs-deli",
110
110
  * event: "event"
111
111
  * })
112
112
  */
@@ -116,11 +116,11 @@ export class EventsClient {
116
116
  __get(request, requestOptions) {
117
117
  return __awaiter(this, void 0, void 0, function* () {
118
118
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
119
- const { handle, event } = request;
119
+ const { business, event } = request;
120
120
  const _authRequest = yield this._options.authProvider.getAuthRequest();
121
121
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
122
122
  const _response = yield core.fetcher({
123
- 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, `customer/businesses/${core.url.encodePathParam(handle)}/events/${core.url.encodePathParam(event)}`),
123
+ 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, `customer/businesses/${core.url.encodePathParam(business)}/events/${core.url.encodePathParam(event)}`),
124
124
  method: "GET",
125
125
  headers: _headers,
126
126
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -148,7 +148,7 @@ export class EventsClient {
148
148
  });
149
149
  }
150
150
  }
151
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{handle}/events/{event}");
151
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events/{event}");
152
152
  });
153
153
  }
154
154
  /**
@@ -163,7 +163,7 @@ export class EventsClient {
163
163
  *
164
164
  * @example
165
165
  * await client.customer.businesses.events.rsvp({
166
- * handle: "katzs-deli",
166
+ * business: "katzs-deli",
167
167
  * event: "01950e7d-1234-7000-abcd-ef0123456789",
168
168
  * status: "attending"
169
169
  * })
@@ -174,11 +174,11 @@ export class EventsClient {
174
174
  __rsvp(request, requestOptions) {
175
175
  return __awaiter(this, void 0, void 0, function* () {
176
176
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
177
- const { handle, event } = request, _body = __rest(request, ["handle", "event"]);
177
+ const { business, event } = request, _body = __rest(request, ["business", "event"]);
178
178
  const _authRequest = yield this._options.authProvider.getAuthRequest();
179
179
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
180
180
  const _response = yield core.fetcher({
181
- 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, `customer/businesses/${core.url.encodePathParam(handle)}/events/${core.url.encodePathParam(event)}/rsvp`),
181
+ 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, `customer/businesses/${core.url.encodePathParam(business)}/events/${core.url.encodePathParam(event)}/rsvp`),
182
182
  method: "POST",
183
183
  headers: _headers,
184
184
  contentType: "application/json",
@@ -213,7 +213,7 @@ export class EventsClient {
213
213
  });
214
214
  }
215
215
  }
216
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/businesses/{handle}/events/{event}/rsvp");
216
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/events/{event}/rsvp");
217
217
  });
218
218
  }
219
219
  /**
@@ -227,7 +227,7 @@ export class EventsClient {
227
227
  *
228
228
  * @example
229
229
  * await client.customer.businesses.events.cancelRsvp({
230
- * handle: "katzs-deli",
230
+ * business: "katzs-deli",
231
231
  * event: "01950e7d-1234-7000-abcd-ef0123456789"
232
232
  * })
233
233
  */
@@ -237,11 +237,11 @@ export class EventsClient {
237
237
  __cancelRsvp(request, requestOptions) {
238
238
  return __awaiter(this, void 0, void 0, function* () {
239
239
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
240
- const { handle, event } = request;
240
+ const { business, event } = request;
241
241
  const _authRequest = yield this._options.authProvider.getAuthRequest();
242
242
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
243
243
  const _response = yield core.fetcher({
244
- 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, `customer/businesses/${core.url.encodePathParam(handle)}/events/${core.url.encodePathParam(event)}/rsvp`),
244
+ 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, `customer/businesses/${core.url.encodePathParam(business)}/events/${core.url.encodePathParam(event)}/rsvp`),
245
245
  method: "DELETE",
246
246
  headers: _headers,
247
247
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -268,7 +268,7 @@ export class EventsClient {
268
268
  });
269
269
  }
270
270
  }
271
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{handle}/events/{event}/rsvp");
271
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{business}/events/{event}/rsvp");
272
272
  });
273
273
  }
274
274
  }
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
4
+ * business: "katzs-deli",
5
5
  * event: "01950e7d-1234-7000-abcd-ef0123456789"
6
6
  * }
7
7
  */
8
8
  export interface CancelRsvpEventsRequest {
9
9
  /** The business handle */
10
- handle: string;
10
+ business: string;
11
11
  /** The event ID */
12
12
  event: string;
13
13
  }
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
4
+ * business: "katzs-deli",
5
5
  * event: "event"
6
6
  * }
7
7
  */
8
8
  export interface GetEventsRequest {
9
9
  /** The business handle */
10
- handle: string;
10
+ business: string;
11
11
  /** The event ID */
12
12
  event: string;
13
13
  }
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli"
4
+ * business: "katzs-deli"
5
5
  * }
6
6
  */
7
7
  export interface ListEventsRequest {
8
8
  /** The business handle */
9
- handle: string;
9
+ business: string;
10
10
  /** Page number for pagination */
11
11
  page?: number;
12
12
  /** Number of events per page */
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
4
+ * business: "katzs-deli",
5
5
  * event: "01950e7d-1234-7000-abcd-ef0123456789",
6
6
  * status: "attending"
7
7
  * }
8
8
  */
9
9
  export interface StoreEventRsvpRequest {
10
10
  /** The business handle */
11
- handle: string;
11
+ business: string;
12
12
  /** The event ID */
13
13
  event: string;
14
14
  status: StoreEventRsvpRequest.Status;
@@ -11,14 +11,17 @@ export declare class CartClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<CartClient.Options>;
12
12
  constructor(options?: CartClient.Options);
13
13
  /**
14
+ * @param {FiveOneEat.customer.GetCartRequest} request
14
15
  * @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
15
16
  *
16
17
  * @throws {@link FiveOneEat.UnauthorizedError}
17
18
  *
18
19
  * @example
19
- * await client.customer.cart.get()
20
+ * await client.customer.cart.get({
21
+ * business: "katzs-deli"
22
+ * })
20
23
  */
21
- get(requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetCartResponse>;
24
+ get(request: FiveOneEat.customer.GetCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetCartResponse>;
22
25
  private __get;
23
26
  /**
24
27
  * @param {FiveOneEat.customer.AddToCartRequest} request
@@ -29,7 +32,7 @@ export declare class CartClient {
29
32
  *
30
33
  * @example
31
34
  * await client.customer.cart.addItem({
32
- * business_id: 1,
35
+ * business: "katzs-deli",
33
36
  * product_id: 1,
34
37
  * quantity: 1
35
38
  * })
@@ -37,45 +40,18 @@ export declare class CartClient {
37
40
  addItem(request: FiveOneEat.customer.AddToCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.AddItemCartResponse>;
38
41
  private __addItem;
39
42
  /**
43
+ * @param {FiveOneEat.customer.ClearCartRequest} request
40
44
  * @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
41
45
  *
42
46
  * @throws {@link FiveOneEat.UnauthorizedError}
43
47
  *
44
48
  * @example
45
- * await client.customer.cart.clear()
46
- */
47
- clear(requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ClearCartResponse>;
48
- private __clear;
49
- /**
50
- * @param {FiveOneEat.customer.UpdateCartItemRequest} request
51
- * @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
52
- *
53
- * @throws {@link FiveOneEat.UnauthorizedError}
54
- * @throws {@link FiveOneEat.NotFoundError}
55
- * @throws {@link FiveOneEat.UnprocessableEntityError}
56
- *
57
- * @example
58
- * await client.customer.cart.updateItem({
59
- * cartItem: "cartItem",
60
- * quantity: 1
49
+ * await client.customer.cart.clear({
50
+ * business: "katzs-deli"
61
51
  * })
62
52
  */
63
- updateItem(request: FiveOneEat.customer.UpdateCartItemRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.UpdateItemCartResponse>;
64
- private __updateItem;
65
- /**
66
- * @param {FiveOneEat.customer.RemoveItemCartRequest} request
67
- * @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
68
- *
69
- * @throws {@link FiveOneEat.UnauthorizedError}
70
- * @throws {@link FiveOneEat.NotFoundError}
71
- *
72
- * @example
73
- * await client.customer.cart.removeItem({
74
- * cartItem: "cartItem"
75
- * })
76
- */
77
- removeItem(request: FiveOneEat.customer.RemoveItemCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.RemoveItemCartResponse>;
78
- private __removeItem;
53
+ clear(request: FiveOneEat.customer.ClearCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ClearCartResponse>;
54
+ private __clear;
79
55
  /**
80
56
  * Returns client_secret, price breakdown, and tax calculation for use with Stripe SDK.
81
57
  *
@@ -89,6 +65,7 @@ export declare class CartClient {
89
65
  *
90
66
  * @example
91
67
  * await client.customer.cart.createPaymentIntent({
68
+ * business: "katzs-deli",
92
69
  * billing_address: {
93
70
  * line1: "line1",
94
71
  * city: "city",
@@ -112,6 +89,7 @@ export declare class CartClient {
112
89
  *
113
90
  * @example
114
91
  * await client.customer.cart.checkout({
92
+ * business: "katzs-deli",
115
93
  * payment_intent_id: "payment_intent_id",
116
94
  * billing_address: {
117
95
  * line1: "line1",
@@ -124,4 +102,34 @@ export declare class CartClient {
124
102
  */
125
103
  checkout(request: FiveOneEat.customer.CheckoutRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.CheckoutCartResponse>;
126
104
  private __checkout;
105
+ /**
106
+ * @param {FiveOneEat.customer.UpdateCartItemRequest} request
107
+ * @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
108
+ *
109
+ * @throws {@link FiveOneEat.UnauthorizedError}
110
+ * @throws {@link FiveOneEat.NotFoundError}
111
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
112
+ *
113
+ * @example
114
+ * await client.customer.cart.updateItem({
115
+ * cartItem: "cartItem",
116
+ * quantity: 1
117
+ * })
118
+ */
119
+ updateItem(request: FiveOneEat.customer.UpdateCartItemRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.UpdateItemCartResponse>;
120
+ private __updateItem;
121
+ /**
122
+ * @param {FiveOneEat.customer.RemoveItemCartRequest} request
123
+ * @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @throws {@link FiveOneEat.UnauthorizedError}
126
+ * @throws {@link FiveOneEat.NotFoundError}
127
+ *
128
+ * @example
129
+ * await client.customer.cart.removeItem({
130
+ * cartItem: "cartItem"
131
+ * })
132
+ */
133
+ removeItem(request: FiveOneEat.customer.RemoveItemCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.RemoveItemCartResponse>;
134
+ private __removeItem;
127
135
  }