@51eat/sdk 0.0.41 → 0.0.43

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 (578) hide show
  1. package/README.md +14 -12
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +12 -0
  4. package/dist/cjs/Client.js +28 -8
  5. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +3 -0
  6. package/dist/cjs/api/resources/business/resources/products/client/Client.js +7 -2
  7. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +69 -0
  8. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +259 -0
  9. package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/types → business/resources/products/resources/images/client}/index.js +1 -1
  11. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
  12. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
  13. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +14 -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/{customer/resources/businesses/resources/events/types → business/resources/products/resources/images}/index.js +2 -3
  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/index.d.ts +3 -0
  26. package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → business/resources/products/resources/images}/types/index.js +3 -4
  27. package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
  28. package/dist/cjs/api/resources/business/resources/products/resources/index.js +4 -1
  29. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +3 -0
  30. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +5 -0
  31. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.d.ts +1 -0
  32. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.js +1 -0
  33. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.js +1 -0
  35. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +69 -0
  36. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +259 -0
  37. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.js +17 -0
  39. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
  40. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
  41. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
  42. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.ts +3 -0
  43. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.js +2 -0
  44. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.d.ts +2 -0
  45. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.js +21 -0
  46. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +2 -0
  47. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +18 -0
  48. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +9 -0
  49. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +10 -0
  50. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +9 -0
  51. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +10 -0
  52. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +4 -0
  53. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +3 -0
  54. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +19 -0
  55. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -0
  56. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +42 -0
  57. package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +27 -0
  58. package/dist/cjs/api/resources/businessMessaging/client/Client.js +124 -0
  59. package/dist/cjs/api/resources/businessMessaging/client/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/businessMessaging/client/index.js +17 -0
  61. package/dist/cjs/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.ts +14 -0
  62. package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +1 -0
  63. package/dist/cjs/api/resources/businessMessaging/client/requests/index.js +2 -0
  64. package/dist/cjs/api/resources/businessMessaging/exports.d.ts +2 -0
  65. package/dist/cjs/api/resources/{customer/resources/businesses/types/index.js → businessMessaging/exports.js} +5 -5
  66. package/dist/cjs/api/resources/businessMessaging/index.d.ts +2 -0
  67. package/dist/cjs/api/resources/businessMessaging/index.js +18 -0
  68. package/dist/cjs/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.ts +4 -0
  69. package/dist/cjs/api/resources/businessMessaging/types/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/businessMessaging/types/index.js +17 -0
  71. package/dist/cjs/api/resources/customer/client/Client.d.ts +2 -2
  72. package/dist/cjs/api/resources/customer/client/Client.js +4 -4
  73. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +13 -41
  74. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +62 -162
  75. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -3
  76. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -3
  77. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +2 -7
  78. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +2 -7
  79. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -3
  80. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -3
  81. package/dist/cjs/api/resources/customer/resources/businesses/index.d.ts +0 -1
  82. package/dist/cjs/api/resources/customer/resources/businesses/index.js +0 -1
  83. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +3 -8
  84. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +11 -36
  85. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +2 -7
  86. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.d.ts +0 -1
  87. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.js +0 -1
  88. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +17 -43
  89. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +50 -160
  90. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.ts +11 -0
  91. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +3 -9
  92. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +4 -11
  93. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.ts +13 -0
  94. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -2
  95. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.ts +0 -1
  96. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.js +0 -1
  97. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.ts +0 -1
  98. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.js +0 -1
  99. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +12 -33
  100. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +44 -126
  101. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +3 -5
  102. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +2 -4
  103. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +2 -7
  104. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.ts +11 -0
  105. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.ts +1 -1
  106. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.js +0 -3
  107. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.d.ts +0 -1
  108. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.js +0 -1
  109. package/dist/cjs/api/resources/customer/resources/businesses/resources/index.d.ts +0 -2
  110. package/dist/cjs/api/resources/customer/resources/businesses/resources/index.js +0 -2
  111. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +43 -35
  112. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +105 -92
  113. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -2
  114. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +3 -0
  115. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +10 -0
  116. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +3 -0
  117. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +10 -0
  118. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
  119. package/dist/cjs/api/resources/customer/resources/index.d.ts +0 -2
  120. package/dist/cjs/api/resources/customer/resources/index.js +0 -2
  121. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +7 -13
  122. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +31 -71
  123. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -4
  124. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -3
  125. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +2 -7
  126. package/dist/cjs/api/resources/customer/resources/shop/index.d.ts +0 -1
  127. package/dist/cjs/api/resources/customer/resources/shop/index.js +0 -1
  128. package/dist/cjs/api/resources/customerBusinesses/client/Client.d.ts +267 -0
  129. package/dist/cjs/api/resources/customerBusinesses/client/Client.js +982 -0
  130. package/dist/cjs/api/resources/customerBusinesses/client/index.d.ts +1 -0
  131. package/dist/cjs/api/resources/customerBusinesses/client/index.js +17 -0
  132. package/dist/cjs/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.ts +13 -0
  133. package/dist/cjs/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.ts +13 -0
  134. package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.ts +10 -0
  135. package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.js +3 -0
  136. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.ts +20 -0
  137. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.js +3 -0
  138. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.ts +17 -0
  139. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.js +3 -0
  140. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.ts +14 -0
  141. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.js +3 -0
  142. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.ts +14 -0
  143. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.js +3 -0
  144. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.ts +14 -0
  145. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.js +3 -0
  146. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.ts +14 -0
  147. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.js +3 -0
  148. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.ts +10 -0
  149. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.js +3 -0
  150. package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.ts +10 -0
  151. package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.js +3 -0
  152. package/dist/cjs/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.js +3 -0
  153. package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.ts +10 -0
  154. package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.js +3 -0
  155. package/dist/cjs/api/resources/customerBusinesses/client/requests/index.d.ts +15 -0
  156. package/dist/cjs/api/resources/customerBusinesses/client/requests/index.js +5 -0
  157. package/dist/cjs/api/resources/customerBusinesses/exports.d.ts +2 -0
  158. package/dist/cjs/api/resources/customerBusinesses/exports.js +21 -0
  159. package/dist/cjs/api/resources/customerBusinesses/index.d.ts +2 -0
  160. package/dist/cjs/api/resources/customerBusinesses/index.js +18 -0
  161. package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.ts +4 -0
  162. package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.js +3 -0
  163. package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.ts +4 -0
  164. package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.js +3 -0
  165. package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.ts +3 -0
  166. package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.js +3 -0
  167. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.ts +4 -0
  168. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.js +3 -0
  169. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.ts +4 -0
  170. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.js +3 -0
  171. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.ts +4 -0
  172. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.js +3 -0
  173. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.ts +4 -0
  174. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.js +3 -0
  175. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.ts +4 -0
  176. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.js +3 -0
  177. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.ts +4 -0
  178. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.js +3 -0
  179. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.ts +4 -0
  180. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.js +3 -0
  181. package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.d.ts +4 -0
  182. package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.js +3 -0
  183. package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.ts +4 -0
  184. package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.js +3 -0
  185. package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.ts +4 -0
  186. package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.js +3 -0
  187. package/dist/cjs/api/resources/customerBusinesses/types/index.d.ts +13 -0
  188. package/dist/cjs/api/resources/customerBusinesses/types/index.js +29 -0
  189. package/dist/cjs/api/resources/customerMessaging/client/Client.d.ts +27 -0
  190. package/dist/cjs/api/resources/customerMessaging/client/Client.js +124 -0
  191. package/dist/cjs/api/resources/customerMessaging/client/index.d.ts +1 -0
  192. package/dist/cjs/api/resources/customerMessaging/client/index.js +17 -0
  193. package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.ts +14 -0
  194. package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.js +3 -0
  195. package/dist/cjs/api/resources/customerMessaging/client/requests/index.d.ts +1 -0
  196. package/dist/cjs/api/resources/customerMessaging/client/requests/index.js +2 -0
  197. package/dist/cjs/api/resources/customerMessaging/exports.d.ts +2 -0
  198. package/dist/cjs/api/resources/customerMessaging/exports.js +21 -0
  199. package/dist/cjs/api/resources/customerMessaging/index.d.ts +2 -0
  200. package/dist/cjs/api/resources/customerMessaging/index.js +18 -0
  201. package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.ts +4 -0
  202. package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.js +3 -0
  203. package/dist/cjs/api/resources/customerMessaging/types/index.d.ts +1 -0
  204. package/dist/cjs/api/resources/customerMessaging/types/index.js +17 -0
  205. package/dist/cjs/api/resources/customerShop/client/Client.d.ts +53 -0
  206. package/dist/cjs/api/resources/customerShop/client/Client.js +219 -0
  207. package/dist/cjs/api/resources/customerShop/client/index.d.ts +1 -0
  208. package/dist/cjs/api/resources/customerShop/client/index.js +17 -0
  209. package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.d.ts +13 -0
  210. package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.js +3 -0
  211. package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.ts +10 -0
  212. package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.js +3 -0
  213. package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.d.ts +14 -0
  214. package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.js +3 -0
  215. package/dist/cjs/api/resources/customerShop/client/requests/index.d.ts +3 -0
  216. package/dist/cjs/api/resources/customerShop/client/requests/index.js +2 -0
  217. package/dist/cjs/api/resources/customerShop/exports.d.ts +2 -0
  218. package/dist/cjs/api/resources/customerShop/exports.js +21 -0
  219. package/dist/cjs/api/resources/customerShop/index.d.ts +2 -0
  220. package/dist/cjs/api/resources/customerShop/index.js +18 -0
  221. package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.d.ts +4 -0
  222. package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.js +3 -0
  223. package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.d.ts +4 -0
  224. package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.js +3 -0
  225. package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.d.ts +4 -0
  226. package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.js +3 -0
  227. package/dist/cjs/api/resources/customerShop/types/index.d.ts +3 -0
  228. package/dist/cjs/api/resources/{customer/resources/shop → customerShop}/types/index.js +3 -3
  229. package/dist/cjs/api/resources/index.d.ts +12 -0
  230. package/dist/cjs/api/resources/index.js +13 -1
  231. package/dist/cjs/api/types/BusinessProduct.d.ts +1 -1
  232. package/dist/cjs/api/types/BusinessProductVariant.d.ts +2 -0
  233. package/dist/cjs/api/types/ExploreEvent.d.ts +21 -0
  234. package/dist/cjs/api/types/ExploreEvent.js +3 -0
  235. package/dist/cjs/api/types/ExploreResponse.d.ts +1 -0
  236. package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +12 -0
  237. package/dist/cjs/api/types/ReorderProductImagesRequest.js +3 -0
  238. package/dist/cjs/api/types/StoreProductImageRequest.d.ts +4 -0
  239. package/dist/cjs/api/types/StoreProductImageRequest.js +3 -0
  240. package/dist/cjs/api/types/index.d.ts +3 -0
  241. package/dist/cjs/api/types/index.js +3 -0
  242. package/dist/cjs/version.d.ts +1 -1
  243. package/dist/cjs/version.js +1 -1
  244. package/dist/esm/BaseClient.mjs +2 -2
  245. package/dist/esm/Client.d.mts +12 -0
  246. package/dist/esm/Client.mjs +20 -0
  247. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +3 -0
  248. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
  249. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +69 -0
  250. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +222 -0
  251. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.d.mts +1 -0
  252. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.mjs +1 -0
  253. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  254. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  255. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  256. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.d.mts +3 -0
  257. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.mjs +1 -0
  258. package/dist/esm/api/resources/business/resources/products/resources/images/exports.d.mts +2 -0
  259. package/dist/esm/api/resources/business/resources/products/resources/images/exports.mjs +3 -0
  260. package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +2 -0
  261. package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +2 -0
  262. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  263. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +7 -0
  264. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  265. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +7 -0
  266. package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +4 -0
  267. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +3 -0
  268. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +3 -0
  269. package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
  270. package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
  271. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
  272. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
  273. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +1 -0
  274. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +1 -0
  275. package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +1 -0
  276. package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +1 -0
  277. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +69 -0
  278. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +222 -0
  279. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.mts +1 -0
  280. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.mjs +1 -0
  281. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  282. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  283. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  284. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.mts +3 -0
  285. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.mjs +1 -0
  286. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.d.mts +2 -0
  287. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.mjs +3 -0
  288. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +2 -0
  289. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +2 -0
  290. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  291. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +7 -0
  292. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  293. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +7 -0
  294. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +4 -0
  295. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +3 -0
  296. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +3 -0
  297. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
  298. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
  299. package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +27 -0
  300. package/dist/esm/api/resources/businessMessaging/client/Client.mjs +87 -0
  301. package/dist/esm/api/resources/businessMessaging/client/index.d.mts +1 -0
  302. package/dist/esm/api/resources/businessMessaging/client/index.mjs +1 -0
  303. package/dist/esm/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.mts +14 -0
  304. package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +1 -0
  305. package/dist/esm/api/resources/businessMessaging/client/requests/index.mjs +1 -0
  306. package/dist/esm/api/resources/businessMessaging/exports.d.mts +2 -0
  307. package/dist/esm/api/resources/businessMessaging/exports.mjs +3 -0
  308. package/dist/esm/api/resources/businessMessaging/index.d.mts +2 -0
  309. package/dist/esm/api/resources/businessMessaging/index.mjs +2 -0
  310. package/dist/esm/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.mts +4 -0
  311. package/dist/esm/api/resources/businessMessaging/types/index.d.mts +1 -0
  312. package/dist/esm/api/resources/businessMessaging/types/index.mjs +1 -0
  313. package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
  314. package/dist/esm/api/resources/customer/client/Client.mjs +4 -4
  315. package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +13 -41
  316. package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +62 -162
  317. package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -3
  318. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -3
  319. package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +2 -7
  320. package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +2 -7
  321. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -3
  322. package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -3
  323. package/dist/esm/api/resources/customer/resources/businesses/index.d.mts +0 -1
  324. package/dist/esm/api/resources/customer/resources/businesses/index.mjs +0 -1
  325. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +3 -8
  326. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +11 -36
  327. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +2 -7
  328. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.d.mts +0 -1
  329. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.mjs +0 -1
  330. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +17 -43
  331. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +50 -160
  332. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.mts +11 -0
  333. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +3 -9
  334. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +4 -11
  335. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.mts +13 -0
  336. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -2
  337. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.mts +0 -1
  338. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.mjs +0 -1
  339. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.mts +0 -1
  340. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.mjs +0 -1
  341. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +12 -33
  342. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +44 -126
  343. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +3 -5
  344. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +2 -4
  345. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +2 -7
  346. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.mts +11 -0
  347. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.mts +1 -1
  348. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.mjs +1 -1
  349. package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.d.mts +0 -1
  350. package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.mjs +0 -1
  351. package/dist/esm/api/resources/customer/resources/businesses/resources/index.d.mts +0 -2
  352. package/dist/esm/api/resources/customer/resources/businesses/resources/index.mjs +0 -2
  353. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +43 -35
  354. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +105 -92
  355. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -2
  356. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +3 -0
  357. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +10 -0
  358. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +3 -0
  359. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +10 -0
  360. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
  361. package/dist/esm/api/resources/customer/resources/index.d.mts +0 -2
  362. package/dist/esm/api/resources/customer/resources/index.mjs +0 -2
  363. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +7 -13
  364. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +31 -71
  365. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -4
  366. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -3
  367. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +2 -7
  368. package/dist/esm/api/resources/customer/resources/shop/index.d.mts +0 -1
  369. package/dist/esm/api/resources/customer/resources/shop/index.mjs +0 -1
  370. package/dist/esm/api/resources/customerBusinesses/client/Client.d.mts +267 -0
  371. package/dist/esm/api/resources/customerBusinesses/client/Client.mjs +945 -0
  372. package/dist/esm/api/resources/customerBusinesses/client/index.d.mts +1 -0
  373. package/dist/esm/api/resources/customerBusinesses/client/index.mjs +1 -0
  374. package/dist/esm/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.mts +13 -0
  375. package/dist/esm/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.mts +13 -0
  376. package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.mts +10 -0
  377. package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.mjs +2 -0
  378. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.mts +20 -0
  379. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.mjs +2 -0
  380. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.mts +17 -0
  381. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.mjs +2 -0
  382. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.mts +14 -0
  383. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.mjs +2 -0
  384. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.mts +14 -0
  385. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.mjs +2 -0
  386. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.mts +14 -0
  387. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.mjs +2 -0
  388. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.mts +14 -0
  389. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.mjs +2 -0
  390. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.mts +10 -0
  391. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.mjs +2 -0
  392. package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.mts +10 -0
  393. package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.mjs +2 -0
  394. package/dist/esm/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.mjs +2 -0
  395. package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.mts +10 -0
  396. package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.mjs +2 -0
  397. package/dist/esm/api/resources/customerBusinesses/client/requests/index.d.mts +15 -0
  398. package/dist/esm/api/resources/customerBusinesses/client/requests/index.mjs +1 -0
  399. package/dist/esm/api/resources/customerBusinesses/exports.d.mts +2 -0
  400. package/dist/esm/api/resources/customerBusinesses/exports.mjs +3 -0
  401. package/dist/esm/api/resources/customerBusinesses/index.d.mts +2 -0
  402. package/dist/esm/api/resources/customerBusinesses/index.mjs +2 -0
  403. package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.mts +4 -0
  404. package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.mjs +2 -0
  405. package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.mts +4 -0
  406. package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.mjs +2 -0
  407. package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.mts +3 -0
  408. package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.mjs +2 -0
  409. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.mts +4 -0
  410. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.mjs +2 -0
  411. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.mts +4 -0
  412. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.mjs +2 -0
  413. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.mts +4 -0
  414. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.mjs +2 -0
  415. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.mts +4 -0
  416. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.mjs +2 -0
  417. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.mts +4 -0
  418. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.mjs +2 -0
  419. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.mts +4 -0
  420. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.mjs +2 -0
  421. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.mts +4 -0
  422. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.mjs +2 -0
  423. package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.d.mts +4 -0
  424. package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.mjs +2 -0
  425. package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.mts +4 -0
  426. package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.mjs +2 -0
  427. package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.mts +4 -0
  428. package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.mjs +2 -0
  429. package/dist/esm/api/resources/customerBusinesses/types/index.d.mts +13 -0
  430. package/dist/esm/api/resources/customerBusinesses/types/index.mjs +13 -0
  431. package/dist/esm/api/resources/customerMessaging/client/Client.d.mts +27 -0
  432. package/dist/esm/api/resources/customerMessaging/client/Client.mjs +87 -0
  433. package/dist/esm/api/resources/customerMessaging/client/index.d.mts +1 -0
  434. package/dist/esm/api/resources/customerMessaging/client/index.mjs +1 -0
  435. package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.mts +14 -0
  436. package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.mjs +2 -0
  437. package/dist/esm/api/resources/customerMessaging/client/requests/index.d.mts +1 -0
  438. package/dist/esm/api/resources/customerMessaging/client/requests/index.mjs +1 -0
  439. package/dist/esm/api/resources/customerMessaging/exports.d.mts +2 -0
  440. package/dist/esm/api/resources/customerMessaging/exports.mjs +3 -0
  441. package/dist/esm/api/resources/customerMessaging/index.d.mts +2 -0
  442. package/dist/esm/api/resources/customerMessaging/index.mjs +2 -0
  443. package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.mts +4 -0
  444. package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.mjs +2 -0
  445. package/dist/esm/api/resources/customerMessaging/types/index.d.mts +1 -0
  446. package/dist/esm/api/resources/customerMessaging/types/index.mjs +1 -0
  447. package/dist/esm/api/resources/customerShop/client/Client.d.mts +53 -0
  448. package/dist/esm/api/resources/customerShop/client/Client.mjs +182 -0
  449. package/dist/esm/api/resources/customerShop/client/index.d.mts +1 -0
  450. package/dist/esm/api/resources/customerShop/client/index.mjs +1 -0
  451. package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.d.mts +13 -0
  452. package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.mjs +2 -0
  453. package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.mts +10 -0
  454. package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.mjs +2 -0
  455. package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.d.mts +14 -0
  456. package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.mjs +2 -0
  457. package/dist/esm/api/resources/customerShop/client/requests/index.d.mts +3 -0
  458. package/dist/esm/api/resources/customerShop/client/requests/index.mjs +1 -0
  459. package/dist/esm/api/resources/customerShop/exports.d.mts +2 -0
  460. package/dist/esm/api/resources/customerShop/exports.mjs +3 -0
  461. package/dist/esm/api/resources/customerShop/index.d.mts +2 -0
  462. package/dist/esm/api/resources/customerShop/index.mjs +2 -0
  463. package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.d.mts +4 -0
  464. package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.mjs +2 -0
  465. package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.d.mts +4 -0
  466. package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.mjs +2 -0
  467. package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.d.mts +4 -0
  468. package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.mjs +2 -0
  469. package/dist/esm/api/resources/customerShop/types/index.d.mts +3 -0
  470. package/dist/esm/api/resources/customerShop/types/index.mjs +3 -0
  471. package/dist/esm/api/resources/index.d.mts +12 -0
  472. package/dist/esm/api/resources/index.mjs +12 -0
  473. package/dist/esm/api/types/BusinessProduct.d.mts +1 -1
  474. package/dist/esm/api/types/BusinessProductVariant.d.mts +2 -0
  475. package/dist/esm/api/types/ExploreEvent.d.mts +21 -0
  476. package/dist/esm/api/types/ExploreEvent.mjs +2 -0
  477. package/dist/esm/api/types/ExploreResponse.d.mts +1 -0
  478. package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +12 -0
  479. package/dist/esm/api/types/ReorderProductImagesRequest.mjs +2 -0
  480. package/dist/esm/api/types/StoreProductImageRequest.d.mts +4 -0
  481. package/dist/esm/api/types/StoreProductImageRequest.mjs +2 -0
  482. package/dist/esm/api/types/index.d.mts +3 -0
  483. package/dist/esm/api/types/index.mjs +3 -0
  484. package/dist/esm/version.d.mts +1 -1
  485. package/dist/esm/version.mjs +1 -1
  486. package/package.json +78 -12
  487. package/reference.md +3236 -1856
  488. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +0 -4
  489. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +0 -4
  490. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.ts +0 -4
  491. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.ts +0 -4
  492. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.ts +0 -4
  493. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.ts +0 -4
  494. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.ts +0 -1
  495. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.ts +0 -4
  496. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.ts +0 -4
  497. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.ts +0 -4
  498. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/index.d.ts +0 -3
  499. package/dist/cjs/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.ts +0 -3
  500. package/dist/cjs/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.ts +0 -4
  501. package/dist/cjs/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.ts +0 -4
  502. package/dist/cjs/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.ts +0 -4
  503. package/dist/cjs/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.ts +0 -4
  504. package/dist/cjs/api/resources/customer/resources/businesses/types/index.d.ts +0 -5
  505. package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +0 -4
  506. package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +0 -4
  507. package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +0 -4
  508. package/dist/cjs/api/resources/customer/resources/shop/types/index.d.ts +0 -3
  509. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +0 -4
  510. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +0 -4
  511. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.mts +0 -4
  512. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.mts +0 -4
  513. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.mts +0 -4
  514. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.mjs +0 -4
  515. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.mts +0 -4
  516. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.mts +0 -1
  517. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.mjs +0 -1
  518. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.mts +0 -4
  519. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.mts +0 -4
  520. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.mts +0 -4
  521. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.d.mts +0 -3
  522. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.mjs +0 -3
  523. package/dist/esm/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.mts +0 -3
  524. package/dist/esm/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.mts +0 -4
  525. package/dist/esm/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.mts +0 -4
  526. package/dist/esm/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.mts +0 -4
  527. package/dist/esm/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.mts +0 -4
  528. package/dist/esm/api/resources/customer/resources/businesses/types/index.d.mts +0 -5
  529. package/dist/esm/api/resources/customer/resources/businesses/types/index.mjs +0 -5
  530. package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +0 -4
  531. package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +0 -4
  532. package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +0 -4
  533. package/dist/esm/api/resources/customer/resources/shop/types/index.d.mts +0 -3
  534. package/dist/esm/api/resources/customer/resources/shop/types/index.mjs +0 -3
  535. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js → business/resources/products/resources/images/client/requests/DeleteImagesRequest.js} +0 -0
  536. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.js → business/resources/products/resources/images/client/requests/ReorderImagesRequest.js} +0 -0
  537. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.js → business/resources/products/resources/images/client/requests/UploadImagesRequest.js} +0 -0
  538. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.js → business/resources/products/resources/images/types/UploadImagesResponse.js} +0 -0
  539. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.js} +0 -0
  540. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.js} +0 -0
  541. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.js} +0 -0
  542. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/GetEventsResponse.js → business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js} +0 -0
  543. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/ListEventsResponse.js → businessMessaging/client/requests/SearchBusinessConversationsRequest.js} +0 -0
  544. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/RsvpEventsResponse.js → businessMessaging/types/SearchBusinessConversationsResponse.js} +0 -0
  545. /package/dist/cjs/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.js → resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.js} +0 -0
  546. /package/dist/cjs/api/resources/customer/resources/businesses/{types/ListTemporaryLocationsBusinessesResponse.js → resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.js} +0 -0
  547. /package/dist/cjs/api/resources/customer/resources/businesses/{types/MenusBusinessesResponse.js → resources/events/client/requests/RsvpEventsRequest.js} +0 -0
  548. /package/dist/cjs/api/resources/customer/resources/{businesses/types/PhotosBusinessesResponse.js → cart/client/requests/ClearCartRequest.js} +0 -0
  549. /package/dist/cjs/api/resources/customer/resources/{businesses/types/ProfileBusinessesResponse.js → cart/client/requests/GetCartRequest.js} +0 -0
  550. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +0 -0
  551. /package/dist/cjs/api/resources/{customer/resources/shop/types/GetProductShopResponse.js → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js} +0 -0
  552. /package/dist/cjs/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.js → customerBusinesses/client/requests/BusinessesEventShowRequest.js} +0 -0
  553. /package/dist/cjs/api/resources/{customer/resources/shop/types/ListProductsShopResponse.js → customerBusinesses/client/requests/DestroyEventRsvpRequest.js} +0 -0
  554. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.ts +0 -0
  555. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.ts +0 -0
  556. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.js +0 -0
  557. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs → business/resources/products/resources/images/client/requests/DeleteImagesRequest.mjs} +0 -0
  558. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.mjs → business/resources/products/resources/images/client/requests/ReorderImagesRequest.mjs} +0 -0
  559. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.mjs → business/resources/products/resources/images/client/requests/UploadImagesRequest.mjs} +0 -0
  560. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.mjs → business/resources/products/resources/images/types/UploadImagesResponse.mjs} +0 -0
  561. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.mjs} +0 -0
  562. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.mjs} +0 -0
  563. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.mjs} +0 -0
  564. /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/GetEventsResponse.mjs → business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs} +0 -0
  565. /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/ListEventsResponse.mjs → businessMessaging/client/requests/SearchBusinessConversationsRequest.mjs} +0 -0
  566. /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/RsvpEventsResponse.mjs → businessMessaging/types/SearchBusinessConversationsResponse.mjs} +0 -0
  567. /package/dist/esm/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.mjs → resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.mjs} +0 -0
  568. /package/dist/esm/api/resources/customer/resources/businesses/{types/ListTemporaryLocationsBusinessesResponse.mjs → resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.mjs} +0 -0
  569. /package/dist/esm/api/resources/customer/resources/businesses/{types/MenusBusinessesResponse.mjs → resources/events/client/requests/RsvpEventsRequest.mjs} +0 -0
  570. /package/dist/esm/api/resources/customer/resources/{businesses/types/PhotosBusinessesResponse.mjs → cart/client/requests/ClearCartRequest.mjs} +0 -0
  571. /package/dist/esm/api/resources/customer/resources/{businesses/types/ProfileBusinessesResponse.mjs → cart/client/requests/GetCartRequest.mjs} +0 -0
  572. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +0 -0
  573. /package/dist/esm/api/resources/{customer/resources/shop/types/GetProductShopResponse.mjs → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs} +0 -0
  574. /package/dist/esm/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.mjs → customerBusinesses/client/requests/BusinessesEventShowRequest.mjs} +0 -0
  575. /package/dist/esm/api/resources/{customer/resources/shop/types/ListProductsShopResponse.mjs → customerBusinesses/client/requests/DestroyEventRsvpRequest.mjs} +0 -0
  576. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.mts +0 -0
  577. /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.mts +0 -0
  578. /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.mjs +0 -0
package/README.md CHANGED
@@ -45,8 +45,10 @@ Instantiate and use the client with the following:
45
45
  import { FiveOneEatClient } from "@51eat/sdk";
46
46
 
47
47
  const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
48
- await client.recordClick.adsRecordClick({
49
- advertisement: "advertisement"
48
+ await client.customerBusinesses.createBulletinComment({
49
+ handle: "katzs-deli",
50
+ bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
51
+ body: "body"
50
52
  });
51
53
  ```
52
54
 
@@ -70,7 +72,7 @@ following namespace:
70
72
  ```typescript
71
73
  import { FiveOneEat } from "@51eat/sdk";
72
74
 
73
- const request: FiveOneEat.GetMyTicketRequest = {
75
+ const request: FiveOneEat.SearchBusinessConversationsRequest = {
74
76
  ...
75
77
  };
76
78
  ```
@@ -84,7 +86,7 @@ will be thrown.
84
86
  import { FiveOneEatError } from "@51eat/sdk";
85
87
 
86
88
  try {
87
- await client.recordClick.adsRecordClick(...);
89
+ await client.customerBusinesses.createBulletinComment(...);
88
90
  } catch (err) {
89
91
  if (err instanceof FiveOneEatError) {
90
92
  console.log(err.statusCode);
@@ -147,9 +149,9 @@ For example, `fs.ReadStream` has a `path` property which the SDK uses to retriev
147
149
  This SDK supports direct imports of subpackage clients, which allows JavaScript bundlers to tree-shake and include only the imported subpackage code. This results in much smaller bundle sizes.
148
150
 
149
151
  ```typescript
150
- import { CustomerMyAccountClient } from '@51eat/sdk/customerMyAccount';
152
+ import { BusinessMessagingClient } from '@51eat/sdk/businessMessaging';
151
153
 
152
- const client = new CustomerMyAccountClient({...});
154
+ const client = new BusinessMessagingClient({...});
153
155
  ```
154
156
 
155
157
  ### Additional Headers
@@ -166,7 +168,7 @@ const client = new FiveOneEatClient({
166
168
  }
167
169
  });
168
170
 
169
- const response = await client.recordClick.adsRecordClick(..., {
171
+ const response = await client.customerBusinesses.createBulletinComment(..., {
170
172
  headers: {
171
173
  'X-Custom-Header': 'custom value'
172
174
  }
@@ -178,7 +180,7 @@ const response = await client.recordClick.adsRecordClick(..., {
178
180
  If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
179
181
 
180
182
  ```typescript
181
- const response = await client.recordClick.adsRecordClick(..., {
183
+ const response = await client.customerBusinesses.createBulletinComment(..., {
182
184
  queryParams: {
183
185
  'customQueryParamKey': 'custom query param value'
184
186
  }
@@ -200,7 +202,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
200
202
  Use the `maxRetries` request option to configure this behavior.
201
203
 
202
204
  ```typescript
203
- const response = await client.recordClick.adsRecordClick(..., {
205
+ const response = await client.customerBusinesses.createBulletinComment(..., {
204
206
  maxRetries: 0 // override maxRetries at the request level
205
207
  });
206
208
  ```
@@ -210,7 +212,7 @@ const response = await client.recordClick.adsRecordClick(..., {
210
212
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
211
213
 
212
214
  ```typescript
213
- const response = await client.recordClick.adsRecordClick(..., {
215
+ const response = await client.customerBusinesses.createBulletinComment(..., {
214
216
  timeoutInSeconds: 30 // override timeout to 30s
215
217
  });
216
218
  ```
@@ -221,7 +223,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
221
223
 
222
224
  ```typescript
223
225
  const controller = new AbortController();
224
- const response = await client.recordClick.adsRecordClick(..., {
226
+ const response = await client.customerBusinesses.createBulletinComment(..., {
225
227
  abortSignal: controller.signal
226
228
  });
227
229
  controller.abort(); // aborts the request
@@ -233,7 +235,7 @@ The SDK provides access to raw response data, including headers, through the `.w
233
235
  The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
234
236
 
235
237
  ```typescript
236
- const { data, rawResponse } = await client.recordClick.adsRecordClick(...).withRawResponse();
238
+ const { data, rawResponse } = await client.customerBusinesses.createBulletinComment(...).withRawResponse();
237
239
 
238
240
  console.log(data);
239
241
  console.log(rawResponse.headers['X-My-Header']);
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@51eat/sdk",
46
- "X-Fern-SDK-Version": "0.0.41",
47
- "User-Agent": "@51eat/sdk/0.0.41",
46
+ "X-Fern-SDK-Version": "0.0.43",
47
+ "User-Agent": "@51eat/sdk/0.0.43",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,6 +1,10 @@
1
1
  import { BusinessClient } from "./api/resources/business/client/Client.js";
2
+ import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.js";
2
3
  import { CustomerClient } from "./api/resources/customer/client/Client.js";
4
+ import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.js";
5
+ import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.js";
3
6
  import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
7
+ import { CustomerShopClient } from "./api/resources/customerShop/client/Client.js";
4
8
  import { RecordClickClient } from "./api/resources/recordClick/client/Client.js";
5
9
  import { ServeAdClient } from "./api/resources/serveAd/client/Client.js";
6
10
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
@@ -13,14 +17,22 @@ export declare namespace FiveOneEatClient {
13
17
  }
14
18
  export declare class FiveOneEatClient {
15
19
  protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
20
+ protected _businessMessaging: BusinessMessagingClient | undefined;
21
+ protected _customerBusinesses: CustomerBusinessesClient | undefined;
22
+ protected _customerMessaging: CustomerMessagingClient | undefined;
16
23
  protected _customerMyAccount: CustomerMyAccountClient | undefined;
17
24
  protected _customer: CustomerClient | undefined;
25
+ protected _customerShop: CustomerShopClient | undefined;
18
26
  protected _recordClick: RecordClickClient | undefined;
19
27
  protected _serveAd: ServeAdClient | undefined;
20
28
  protected _business: BusinessClient | undefined;
21
29
  constructor(options?: FiveOneEatClient.Options);
30
+ get businessMessaging(): BusinessMessagingClient;
31
+ get customerBusinesses(): CustomerBusinessesClient;
32
+ get customerMessaging(): CustomerMessagingClient;
22
33
  get customerMyAccount(): CustomerMyAccountClient;
23
34
  get customer(): CustomerClient;
35
+ get customerShop(): CustomerShopClient;
24
36
  get recordClick(): RecordClickClient;
25
37
  get serveAd(): ServeAdClient;
26
38
  get business(): BusinessClient;
@@ -45,31 +45,51 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.FiveOneEatClient = void 0;
47
47
  const Client_js_1 = require("./api/resources/business/client/Client.js");
48
- const Client_js_2 = require("./api/resources/customer/client/Client.js");
49
- const Client_js_3 = require("./api/resources/customerMyAccount/client/Client.js");
50
- const Client_js_4 = require("./api/resources/recordClick/client/Client.js");
51
- const Client_js_5 = require("./api/resources/serveAd/client/Client.js");
48
+ const Client_js_2 = require("./api/resources/businessMessaging/client/Client.js");
49
+ const Client_js_3 = require("./api/resources/customer/client/Client.js");
50
+ const Client_js_4 = require("./api/resources/customerBusinesses/client/Client.js");
51
+ const Client_js_5 = require("./api/resources/customerMessaging/client/Client.js");
52
+ const Client_js_6 = require("./api/resources/customerMyAccount/client/Client.js");
53
+ const Client_js_7 = require("./api/resources/customerShop/client/Client.js");
54
+ const Client_js_8 = require("./api/resources/recordClick/client/Client.js");
55
+ const Client_js_9 = require("./api/resources/serveAd/client/Client.js");
52
56
  const BaseClient_js_1 = require("./BaseClient.js");
53
57
  const core = __importStar(require("./core/index.js"));
54
58
  class FiveOneEatClient {
55
59
  constructor(options = {}) {
56
60
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
61
  }
62
+ get businessMessaging() {
63
+ var _a;
64
+ return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new Client_js_2.BusinessMessagingClient(this._options)));
65
+ }
66
+ get customerBusinesses() {
67
+ var _a;
68
+ return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new Client_js_4.CustomerBusinessesClient(this._options)));
69
+ }
70
+ get customerMessaging() {
71
+ var _a;
72
+ return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_5.CustomerMessagingClient(this._options)));
73
+ }
58
74
  get customerMyAccount() {
59
75
  var _a;
60
- return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_3.CustomerMyAccountClient(this._options)));
76
+ return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_6.CustomerMyAccountClient(this._options)));
61
77
  }
62
78
  get customer() {
63
79
  var _a;
64
- return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_2.CustomerClient(this._options)));
80
+ return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_3.CustomerClient(this._options)));
81
+ }
82
+ get customerShop() {
83
+ var _a;
84
+ return ((_a = this._customerShop) !== null && _a !== void 0 ? _a : (this._customerShop = new Client_js_7.CustomerShopClient(this._options)));
65
85
  }
66
86
  get recordClick() {
67
87
  var _a;
68
- return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_4.RecordClickClient(this._options)));
88
+ return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_8.RecordClickClient(this._options)));
69
89
  }
70
90
  get serveAd() {
71
91
  var _a;
72
- return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_5.ServeAdClient(this._options)));
92
+ return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_9.ServeAdClient(this._options)));
73
93
  }
74
94
  get business() {
75
95
  var _a;
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as FiveOneEat from "../../../../../index.js";
5
+ import { ImagesClient } from "../resources/images/client/Client.js";
5
6
  import { VariantsClient } from "../resources/variants/client/Client.js";
6
7
  export declare namespace ProductsClient {
7
8
  type Options = BaseClientOptions;
@@ -11,8 +12,10 @@ export declare namespace ProductsClient {
11
12
  export declare class ProductsClient {
12
13
  protected readonly _options: NormalizedClientOptionsWithAuth<ProductsClient.Options>;
13
14
  protected _variants: VariantsClient | undefined;
15
+ protected _images: ImagesClient | undefined;
14
16
  constructor(options?: ProductsClient.Options);
15
17
  get variants(): VariantsClient;
18
+ get images(): ImagesClient;
16
19
  /**
17
20
  * @param {ProductsClient.RequestOptions} requestOptions - Request-specific configuration.
18
21
  *
@@ -62,14 +62,19 @@ const environments = __importStar(require("../../../../../../environments.js"));
62
62
  const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
63
63
  const errors = __importStar(require("../../../../../../errors/index.js"));
64
64
  const FiveOneEat = __importStar(require("../../../../../index.js"));
65
- const Client_js_1 = require("../resources/variants/client/Client.js");
65
+ const Client_js_1 = require("../resources/images/client/Client.js");
66
+ const Client_js_2 = require("../resources/variants/client/Client.js");
66
67
  class ProductsClient {
67
68
  constructor(options = {}) {
68
69
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
69
70
  }
70
71
  get variants() {
71
72
  var _a;
72
- return ((_a = this._variants) !== null && _a !== void 0 ? _a : (this._variants = new Client_js_1.VariantsClient(this._options)));
73
+ return ((_a = this._variants) !== null && _a !== void 0 ? _a : (this._variants = new Client_js_2.VariantsClient(this._options)));
74
+ }
75
+ get images() {
76
+ var _a;
77
+ return ((_a = this._images) !== null && _a !== void 0 ? _a : (this._images = new Client_js_1.ImagesClient(this._options)));
73
78
  }
74
79
  /**
75
80
  * @param {ProductsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,69 @@
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 ImagesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ImagesClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ImagesClient.Options>;
12
+ constructor(options?: ImagesClient.Options);
13
+ /**
14
+ * @param {FiveOneEat.business.products.UploadImagesRequest} request
15
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link FiveOneEat.UnauthorizedError}
18
+ * @throws {@link FiveOneEat.ForbiddenError}
19
+ * @throws {@link FiveOneEat.NotFoundError}
20
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
21
+ *
22
+ * @example
23
+ * import { createReadStream } from "fs";
24
+ * await client.business.products.images.upload({
25
+ * image: fs.createReadStream("/path/to/your/file"),
26
+ * product: "product"
27
+ * })
28
+ */
29
+ upload(request: FiveOneEat.business.products.UploadImagesRequest, requestOptions?: ImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.products.UploadImagesResponse>;
30
+ private __upload;
31
+ /**
32
+ * @param {FiveOneEat.business.products.ReorderImagesRequest} request
33
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link FiveOneEat.UnauthorizedError}
36
+ * @throws {@link FiveOneEat.ForbiddenError}
37
+ * @throws {@link FiveOneEat.NotFoundError}
38
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
39
+ *
40
+ * @example
41
+ * await client.business.products.images.reorder({
42
+ * product: "product",
43
+ * body: {
44
+ * images: [{
45
+ * id: "id",
46
+ * sort_order: 1
47
+ * }]
48
+ * }
49
+ * })
50
+ */
51
+ reorder(request: FiveOneEat.business.products.ReorderImagesRequest, requestOptions?: ImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.products.ReorderImagesResponse>;
52
+ private __reorder;
53
+ /**
54
+ * @param {FiveOneEat.business.products.DeleteImagesRequest} request
55
+ * @param {ImagesClient.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.products.images.delete({
63
+ * product: "product",
64
+ * image: "image"
65
+ * })
66
+ */
67
+ delete(request: FiveOneEat.business.products.DeleteImagesRequest, requestOptions?: ImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.products.DeleteImagesResponse>;
68
+ private __delete;
69
+ }
@@ -0,0 +1,259 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.ImagesClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../../../../../errors/index.js"));
53
+ const FiveOneEat = __importStar(require("../../../../../../../index.js"));
54
+ class ImagesClient {
55
+ constructor(options = {}) {
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * @param {FiveOneEat.business.products.UploadImagesRequest} request
60
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @throws {@link FiveOneEat.UnauthorizedError}
63
+ * @throws {@link FiveOneEat.ForbiddenError}
64
+ * @throws {@link FiveOneEat.NotFoundError}
65
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * import { createReadStream } from "fs";
69
+ * await client.business.products.images.upload({
70
+ * image: fs.createReadStream("/path/to/your/file"),
71
+ * product: "product"
72
+ * })
73
+ */
74
+ upload(request, requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__upload(request, requestOptions));
76
+ }
77
+ __upload(request, requestOptions) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
80
+ const _body = yield core.newFormData();
81
+ yield _body.appendFile("image", request.image);
82
+ if (request.alt_text != null) {
83
+ _body.append("alt_text", request.alt_text);
84
+ }
85
+ const _maybeEncodedRequest = yield _body.getRequest();
86
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
87
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
+ const _response = yield core.fetcher({
89
+ 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/products/${core.url.encodePathParam(request.product)}/images`),
90
+ method: "POST",
91
+ headers: _headers,
92
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
93
+ requestType: "file",
94
+ duplex: _maybeEncodedRequest.duplex,
95
+ body: _maybeEncodedRequest.body,
96
+ 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,
97
+ 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,
98
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
100
+ logging: this._options.logging,
101
+ });
102
+ if (_response.ok) {
103
+ return {
104
+ data: _response.body,
105
+ rawResponse: _response.rawResponse,
106
+ };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 401:
111
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
112
+ case 403:
113
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
114
+ case 404:
115
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
116
+ case 422:
117
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
118
+ default:
119
+ throw new errors.FiveOneEatError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ rawResponse: _response.rawResponse,
123
+ });
124
+ }
125
+ }
126
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/business/products/{product}/images");
127
+ });
128
+ }
129
+ /**
130
+ * @param {FiveOneEat.business.products.ReorderImagesRequest} request
131
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link FiveOneEat.UnauthorizedError}
134
+ * @throws {@link FiveOneEat.ForbiddenError}
135
+ * @throws {@link FiveOneEat.NotFoundError}
136
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
137
+ *
138
+ * @example
139
+ * await client.business.products.images.reorder({
140
+ * product: "product",
141
+ * body: {
142
+ * images: [{
143
+ * id: "id",
144
+ * sort_order: 1
145
+ * }]
146
+ * }
147
+ * })
148
+ */
149
+ reorder(request, requestOptions) {
150
+ return core.HttpResponsePromise.fromPromise(this.__reorder(request, requestOptions));
151
+ }
152
+ __reorder(request, requestOptions) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
155
+ const { product, body: _body } = request;
156
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
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
+ 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, `business/products/${core.url.encodePathParam(product)}/images/reorder`),
160
+ method: "PUT",
161
+ headers: _headers,
162
+ contentType: "application/json",
163
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
164
+ requestType: "json",
165
+ body: _body,
166
+ 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,
167
+ 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,
168
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
169
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
170
+ logging: this._options.logging,
171
+ });
172
+ if (_response.ok) {
173
+ return {
174
+ data: _response.body,
175
+ rawResponse: _response.rawResponse,
176
+ };
177
+ }
178
+ if (_response.error.reason === "status-code") {
179
+ switch (_response.error.statusCode) {
180
+ case 401:
181
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
182
+ case 403:
183
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
184
+ case 404:
185
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
186
+ case 422:
187
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
188
+ default:
189
+ throw new errors.FiveOneEatError({
190
+ statusCode: _response.error.statusCode,
191
+ body: _response.error.body,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ }
195
+ }
196
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/business/products/{product}/images/reorder");
197
+ });
198
+ }
199
+ /**
200
+ * @param {FiveOneEat.business.products.DeleteImagesRequest} request
201
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
202
+ *
203
+ * @throws {@link FiveOneEat.UnauthorizedError}
204
+ * @throws {@link FiveOneEat.ForbiddenError}
205
+ * @throws {@link FiveOneEat.NotFoundError}
206
+ *
207
+ * @example
208
+ * await client.business.products.images.delete({
209
+ * product: "product",
210
+ * image: "image"
211
+ * })
212
+ */
213
+ delete(request, requestOptions) {
214
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
215
+ }
216
+ __delete(request, requestOptions) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
219
+ const { product, image } = request;
220
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
221
+ 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);
222
+ const _response = yield core.fetcher({
223
+ 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/products/${core.url.encodePathParam(product)}/images/${core.url.encodePathParam(image)}`),
224
+ method: "DELETE",
225
+ headers: _headers,
226
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
227
+ 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,
228
+ 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,
229
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
230
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
231
+ logging: this._options.logging,
232
+ });
233
+ if (_response.ok) {
234
+ return {
235
+ data: _response.body,
236
+ rawResponse: _response.rawResponse,
237
+ };
238
+ }
239
+ if (_response.error.reason === "status-code") {
240
+ switch (_response.error.statusCode) {
241
+ case 401:
242
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
243
+ case 403:
244
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
245
+ case 404:
246
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
247
+ default:
248
+ throw new errors.FiveOneEatError({
249
+ statusCode: _response.error.statusCode,
250
+ body: _response.error.body,
251
+ rawResponse: _response.rawResponse,
252
+ });
253
+ }
254
+ }
255
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/business/products/{product}/images/{image}");
256
+ });
257
+ }
258
+ }
259
+ exports.ImagesClient = ImagesClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ListBulletinsResponse.js"), exports);
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * product: "product",
5
+ * image: "image"
6
+ * }
7
+ */
8
+ export interface DeleteImagesRequest {
9
+ /** The product ID */
10
+ product: string;
11
+ /** The image ID */
12
+ image: string;
13
+ }
@@ -0,0 +1,18 @@
1
+ import type * as FiveOneEat from "../../../../../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * product: "product",
6
+ * body: {
7
+ * images: [{
8
+ * id: "id",
9
+ * sort_order: 1
10
+ * }]
11
+ * }
12
+ * }
13
+ */
14
+ export interface ReorderImagesRequest {
15
+ /** The product ID */
16
+ product: string;
17
+ body: FiveOneEat.ReorderProductImagesRequest;
18
+ }
@@ -0,0 +1,14 @@
1
+ import type * as core from "../../../../../../../../../core/index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * image: fs.createReadStream("/path/to/your/file"),
6
+ * product: "product"
7
+ * }
8
+ */
9
+ export interface UploadImagesRequest {
10
+ /** The product ID */
11
+ product: string;
12
+ image: core.file.Uploadable;
13
+ alt_text?: string | null;
14
+ }
@@ -0,0 +1,3 @@
1
+ export type { DeleteImagesRequest } from "./DeleteImagesRequest.js";
2
+ export type { ReorderImagesRequest } from "./ReorderImagesRequest.js";
3
+ export type { UploadImagesRequest } from "./UploadImagesRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ImagesClient } from "./client/Client.js";
2
+ export * from "./client/index.js";