@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
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
4
+ * business: "katzs-deli",
5
5
  * bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
6
6
  * }
7
7
  */
8
8
  export interface ListCommentsRequest {
9
9
  /** The business handle */
10
- handle: string;
10
+ business: string;
11
11
  /** The bulletin ID */
12
12
  bulletin: string;
13
13
  /** Page number for pagination */
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
4
+ * business: "katzs-deli",
5
5
  * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
6
6
  * comment: "01950e7d-5678-7000-abcd-ef0123456789"
7
7
  * }
8
8
  */
9
9
  export interface ListRepliesCommentsRequest {
10
10
  /** The business handle */
11
- handle: string;
11
+ business: string;
12
12
  /** The bulletin ID */
13
13
  bulletin: string;
14
14
  /** The comment ID */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
4
+ * business: "katzs-deli",
5
5
  * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
6
6
  * comment: "01950e7d-5678-7000-abcd-ef0123456789",
7
7
  * body: "body"
@@ -9,7 +9,7 @@
9
9
  */
10
10
  export interface StoreBulletinCommentReplyRequest {
11
11
  /** The business handle */
12
- handle: string;
12
+ business: string;
13
13
  /** The bulletin ID */
14
14
  bulletin: string;
15
15
  /** The comment ID */
@@ -21,7 +21,7 @@ export declare class EventsClient {
21
21
  *
22
22
  * @example
23
23
  * await client.customer.businesses.events.list({
24
- * handle: "katzs-deli"
24
+ * business: "katzs-deli"
25
25
  * })
26
26
  */
27
27
  list(request: FiveOneEat.customer.businesses.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.ListEventsResponse>;
@@ -36,7 +36,7 @@ export declare class EventsClient {
36
36
  *
37
37
  * @example
38
38
  * await client.customer.businesses.events.get({
39
- * handle: "katzs-deli",
39
+ * business: "katzs-deli",
40
40
  * event: "event"
41
41
  * })
42
42
  */
@@ -54,7 +54,7 @@ export declare class EventsClient {
54
54
  *
55
55
  * @example
56
56
  * await client.customer.businesses.events.rsvp({
57
- * handle: "katzs-deli",
57
+ * business: "katzs-deli",
58
58
  * event: "01950e7d-1234-7000-abcd-ef0123456789",
59
59
  * status: "attending"
60
60
  * })
@@ -72,7 +72,7 @@ export declare class EventsClient {
72
72
  *
73
73
  * @example
74
74
  * await client.customer.businesses.events.cancelRsvp({
75
- * handle: "katzs-deli",
75
+ * business: "katzs-deli",
76
76
  * event: "01950e7d-1234-7000-abcd-ef0123456789"
77
77
  * })
78
78
  */
@@ -77,7 +77,7 @@ class EventsClient {
77
77
  *
78
78
  * @example
79
79
  * await client.customer.businesses.events.list({
80
- * handle: "katzs-deli"
80
+ * business: "katzs-deli"
81
81
  * })
82
82
  */
83
83
  list(request, requestOptions) {
@@ -86,7 +86,7 @@ class EventsClient {
86
86
  __list(request, requestOptions) {
87
87
  return __awaiter(this, void 0, void 0, function* () {
88
88
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
89
- const { handle, page, per_page: perPage } = request;
89
+ const { business, page, per_page: perPage } = request;
90
90
  const _queryParams = {
91
91
  page,
92
92
  per_page: perPage,
@@ -94,7 +94,7 @@ class EventsClient {
94
94
  const _authRequest = yield this._options.authProvider.getAuthRequest();
95
95
  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);
96
96
  const _response = yield core.fetcher({
97
- 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`),
97
+ 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`),
98
98
  method: "GET",
99
99
  headers: _headers,
100
100
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -129,7 +129,7 @@ class EventsClient {
129
129
  });
130
130
  }
131
131
  }
132
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{handle}/events");
132
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events");
133
133
  });
134
134
  }
135
135
  /**
@@ -142,7 +142,7 @@ class EventsClient {
142
142
  *
143
143
  * @example
144
144
  * await client.customer.businesses.events.get({
145
- * handle: "katzs-deli",
145
+ * business: "katzs-deli",
146
146
  * event: "event"
147
147
  * })
148
148
  */
@@ -152,11 +152,11 @@ class EventsClient {
152
152
  __get(request, requestOptions) {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
154
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
155
- const { handle, event } = request;
155
+ const { business, event } = request;
156
156
  const _authRequest = yield this._options.authProvider.getAuthRequest();
157
157
  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);
158
158
  const _response = yield core.fetcher({
159
- 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)}`),
159
+ 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)}`),
160
160
  method: "GET",
161
161
  headers: _headers,
162
162
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -184,7 +184,7 @@ class EventsClient {
184
184
  });
185
185
  }
186
186
  }
187
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{handle}/events/{event}");
187
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events/{event}");
188
188
  });
189
189
  }
190
190
  /**
@@ -199,7 +199,7 @@ class EventsClient {
199
199
  *
200
200
  * @example
201
201
  * await client.customer.businesses.events.rsvp({
202
- * handle: "katzs-deli",
202
+ * business: "katzs-deli",
203
203
  * event: "01950e7d-1234-7000-abcd-ef0123456789",
204
204
  * status: "attending"
205
205
  * })
@@ -210,11 +210,11 @@ class EventsClient {
210
210
  __rsvp(request, requestOptions) {
211
211
  return __awaiter(this, void 0, void 0, function* () {
212
212
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
213
- const { handle, event } = request, _body = __rest(request, ["handle", "event"]);
213
+ const { business, event } = request, _body = __rest(request, ["business", "event"]);
214
214
  const _authRequest = yield this._options.authProvider.getAuthRequest();
215
215
  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);
216
216
  const _response = yield core.fetcher({
217
- 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`),
217
+ 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`),
218
218
  method: "POST",
219
219
  headers: _headers,
220
220
  contentType: "application/json",
@@ -249,7 +249,7 @@ class EventsClient {
249
249
  });
250
250
  }
251
251
  }
252
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{handle}/events/{event}/rsvp");
252
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/events/{event}/rsvp");
253
253
  });
254
254
  }
255
255
  /**
@@ -263,7 +263,7 @@ class EventsClient {
263
263
  *
264
264
  * @example
265
265
  * await client.customer.businesses.events.cancelRsvp({
266
- * handle: "katzs-deli",
266
+ * business: "katzs-deli",
267
267
  * event: "01950e7d-1234-7000-abcd-ef0123456789"
268
268
  * })
269
269
  */
@@ -273,11 +273,11 @@ class EventsClient {
273
273
  __cancelRsvp(request, requestOptions) {
274
274
  return __awaiter(this, void 0, void 0, function* () {
275
275
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
276
- const { handle, event } = request;
276
+ const { business, event } = request;
277
277
  const _authRequest = yield this._options.authProvider.getAuthRequest();
278
278
  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);
279
279
  const _response = yield core.fetcher({
280
- 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`),
280
+ 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`),
281
281
  method: "DELETE",
282
282
  headers: _headers,
283
283
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -304,7 +304,7 @@ class EventsClient {
304
304
  });
305
305
  }
306
306
  }
307
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{handle}/events/{event}/rsvp");
307
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{business}/events/{event}/rsvp");
308
308
  });
309
309
  }
310
310
  }
@@ -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
  }