@51eat/sdk 0.0.42 → 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 (508) hide show
  1. package/README.md +11 -9
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -0
  4. package/dist/cjs/Client.js +18 -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/customer/client/Client.d.ts +2 -2
  58. package/dist/cjs/api/resources/customer/client/Client.js +4 -4
  59. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +13 -41
  60. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +62 -162
  61. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -3
  62. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -3
  63. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +2 -7
  64. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +2 -7
  65. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -3
  66. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -3
  67. package/dist/cjs/api/resources/customer/resources/businesses/index.d.ts +0 -1
  68. package/dist/cjs/api/resources/customer/resources/businesses/index.js +0 -1
  69. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +3 -8
  70. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +11 -36
  71. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +2 -7
  72. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.d.ts +0 -1
  73. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.js +0 -1
  74. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +17 -43
  75. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +50 -160
  76. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.ts +11 -0
  77. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +3 -9
  78. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +4 -11
  79. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.ts +13 -0
  80. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -2
  81. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.ts +0 -1
  82. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.js +0 -1
  83. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.ts +0 -1
  84. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.js +0 -1
  85. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +12 -33
  86. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +44 -126
  87. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +3 -5
  88. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +2 -4
  89. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +2 -7
  90. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.ts +11 -0
  91. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.ts +1 -1
  92. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.js +0 -3
  93. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.d.ts +0 -1
  94. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.js +0 -1
  95. package/dist/cjs/api/resources/customer/resources/businesses/resources/index.d.ts +0 -2
  96. package/dist/cjs/api/resources/customer/resources/businesses/resources/index.js +0 -2
  97. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +43 -35
  98. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +105 -92
  99. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -2
  100. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +3 -0
  101. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +10 -0
  102. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +3 -0
  103. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +10 -0
  104. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
  105. package/dist/cjs/api/resources/customer/resources/index.d.ts +0 -2
  106. package/dist/cjs/api/resources/customer/resources/index.js +0 -2
  107. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +7 -13
  108. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +31 -71
  109. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -4
  110. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -3
  111. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +2 -7
  112. package/dist/cjs/api/resources/customer/resources/shop/index.d.ts +0 -1
  113. package/dist/cjs/api/resources/customer/resources/shop/index.js +0 -1
  114. package/dist/cjs/api/resources/customerBusinesses/client/Client.d.ts +267 -0
  115. package/dist/cjs/api/resources/customerBusinesses/client/Client.js +982 -0
  116. package/dist/cjs/api/resources/customerBusinesses/client/index.d.ts +1 -0
  117. package/dist/cjs/api/resources/customerBusinesses/client/index.js +17 -0
  118. package/dist/cjs/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.ts +13 -0
  119. package/dist/cjs/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.ts +13 -0
  120. package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.ts +10 -0
  121. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.ts +20 -0
  122. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.ts +17 -0
  123. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.js +3 -0
  124. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.ts +14 -0
  125. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.js +3 -0
  126. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.ts +14 -0
  127. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.js +3 -0
  128. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.ts +14 -0
  129. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.js +3 -0
  130. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.ts +14 -0
  131. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.js +3 -0
  132. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.ts +10 -0
  133. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.js +3 -0
  134. package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.ts +10 -0
  135. package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.js +3 -0
  136. package/dist/cjs/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.js +3 -0
  137. package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.ts +10 -0
  138. package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.js +3 -0
  139. package/dist/cjs/api/resources/customerBusinesses/client/requests/index.d.ts +15 -0
  140. package/dist/cjs/api/resources/customerBusinesses/client/requests/index.js +5 -0
  141. package/dist/cjs/api/resources/customerBusinesses/exports.d.ts +2 -0
  142. package/dist/cjs/api/resources/{customer/resources/businesses/types/index.js → customerBusinesses/exports.js} +5 -5
  143. package/dist/cjs/api/resources/customerBusinesses/index.d.ts +2 -0
  144. package/dist/cjs/api/resources/customerBusinesses/index.js +18 -0
  145. package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.ts +4 -0
  146. package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.js +3 -0
  147. package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.ts +4 -0
  148. package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.js +3 -0
  149. package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.ts +3 -0
  150. package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.js +3 -0
  151. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.ts +4 -0
  152. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.js +3 -0
  153. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.ts +4 -0
  154. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.js +3 -0
  155. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.ts +4 -0
  156. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.js +3 -0
  157. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.ts +4 -0
  158. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.js +3 -0
  159. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.ts +4 -0
  160. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.js +3 -0
  161. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.ts +4 -0
  162. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.js +3 -0
  163. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.ts +4 -0
  164. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.js +3 -0
  165. package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.d.ts +4 -0
  166. package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.js +3 -0
  167. package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.ts +4 -0
  168. package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.js +3 -0
  169. package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.ts +4 -0
  170. package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.js +3 -0
  171. package/dist/cjs/api/resources/customerBusinesses/types/index.d.ts +13 -0
  172. package/dist/cjs/api/resources/customerBusinesses/types/index.js +29 -0
  173. package/dist/cjs/api/resources/customerShop/client/Client.d.ts +53 -0
  174. package/dist/cjs/api/resources/customerShop/client/Client.js +219 -0
  175. package/dist/cjs/api/resources/customerShop/client/index.d.ts +1 -0
  176. package/dist/cjs/api/resources/customerShop/client/index.js +17 -0
  177. package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.d.ts +13 -0
  178. package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.js +3 -0
  179. package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.ts +10 -0
  180. package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.js +3 -0
  181. package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.d.ts +14 -0
  182. package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.js +3 -0
  183. package/dist/cjs/api/resources/customerShop/client/requests/index.d.ts +3 -0
  184. package/dist/cjs/api/resources/customerShop/client/requests/index.js +2 -0
  185. package/dist/cjs/api/resources/customerShop/exports.d.ts +2 -0
  186. package/dist/cjs/api/resources/customerShop/exports.js +21 -0
  187. package/dist/cjs/api/resources/customerShop/index.d.ts +2 -0
  188. package/dist/cjs/api/resources/customerShop/index.js +18 -0
  189. package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.d.ts +4 -0
  190. package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.js +3 -0
  191. package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.d.ts +4 -0
  192. package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.js +3 -0
  193. package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.d.ts +4 -0
  194. package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.js +3 -0
  195. package/dist/cjs/api/resources/customerShop/types/index.d.ts +3 -0
  196. package/dist/cjs/api/resources/{customer/resources/shop → customerShop}/types/index.js +3 -3
  197. package/dist/cjs/api/resources/index.d.ts +6 -0
  198. package/dist/cjs/api/resources/index.js +7 -1
  199. package/dist/cjs/api/types/BusinessProduct.d.ts +1 -1
  200. package/dist/cjs/api/types/BusinessProductVariant.d.ts +2 -0
  201. package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +12 -0
  202. package/dist/cjs/api/types/ReorderProductImagesRequest.js +3 -0
  203. package/dist/cjs/api/types/StoreProductImageRequest.d.ts +4 -0
  204. package/dist/cjs/api/types/StoreProductImageRequest.js +3 -0
  205. package/dist/cjs/api/types/index.d.ts +2 -0
  206. package/dist/cjs/api/types/index.js +2 -0
  207. package/dist/cjs/version.d.ts +1 -1
  208. package/dist/cjs/version.js +1 -1
  209. package/dist/esm/BaseClient.mjs +2 -2
  210. package/dist/esm/Client.d.mts +6 -0
  211. package/dist/esm/Client.mjs +10 -0
  212. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +3 -0
  213. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
  214. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +69 -0
  215. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +222 -0
  216. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.d.mts +1 -0
  217. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.mjs +1 -0
  218. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  219. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  220. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  221. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.d.mts +3 -0
  222. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.mjs +1 -0
  223. package/dist/esm/api/resources/business/resources/products/resources/images/exports.d.mts +2 -0
  224. package/dist/esm/api/resources/business/resources/products/resources/images/exports.mjs +3 -0
  225. package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +2 -0
  226. package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +2 -0
  227. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  228. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +7 -0
  229. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  230. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +7 -0
  231. package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +4 -0
  232. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +3 -0
  233. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +3 -0
  234. package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
  235. package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
  236. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
  237. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
  238. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +1 -0
  239. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +1 -0
  240. package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +1 -0
  241. package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +1 -0
  242. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +69 -0
  243. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +222 -0
  244. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.mts +1 -0
  245. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.mjs +1 -0
  246. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  247. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  248. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  249. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.mts +3 -0
  250. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.mjs +1 -0
  251. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.d.mts +2 -0
  252. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.mjs +3 -0
  253. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +2 -0
  254. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +2 -0
  255. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  256. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +7 -0
  257. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  258. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +7 -0
  259. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +4 -0
  260. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +3 -0
  261. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +3 -0
  262. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
  263. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
  264. package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
  265. package/dist/esm/api/resources/customer/client/Client.mjs +4 -4
  266. package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +13 -41
  267. package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +62 -162
  268. package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -3
  269. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -3
  270. package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +2 -7
  271. package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +2 -7
  272. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -3
  273. package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -3
  274. package/dist/esm/api/resources/customer/resources/businesses/index.d.mts +0 -1
  275. package/dist/esm/api/resources/customer/resources/businesses/index.mjs +0 -1
  276. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +3 -8
  277. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +11 -36
  278. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +2 -7
  279. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.d.mts +0 -1
  280. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.mjs +0 -1
  281. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +17 -43
  282. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +50 -160
  283. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.mts +11 -0
  284. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +3 -9
  285. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +4 -11
  286. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.mts +13 -0
  287. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -2
  288. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.mts +0 -1
  289. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.mjs +0 -1
  290. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.mts +0 -1
  291. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.mjs +0 -1
  292. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +12 -33
  293. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +44 -126
  294. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +3 -5
  295. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +2 -4
  296. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +2 -7
  297. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.mts +11 -0
  298. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.mts +1 -1
  299. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.mjs +1 -1
  300. package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.d.mts +0 -1
  301. package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.mjs +0 -1
  302. package/dist/esm/api/resources/customer/resources/businesses/resources/index.d.mts +0 -2
  303. package/dist/esm/api/resources/customer/resources/businesses/resources/index.mjs +0 -2
  304. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +43 -35
  305. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +105 -92
  306. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -2
  307. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +3 -0
  308. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +10 -0
  309. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +3 -0
  310. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +10 -0
  311. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
  312. package/dist/esm/api/resources/customer/resources/index.d.mts +0 -2
  313. package/dist/esm/api/resources/customer/resources/index.mjs +0 -2
  314. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +7 -13
  315. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +31 -71
  316. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -4
  317. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -3
  318. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +2 -7
  319. package/dist/esm/api/resources/customer/resources/shop/index.d.mts +0 -1
  320. package/dist/esm/api/resources/customer/resources/shop/index.mjs +0 -1
  321. package/dist/esm/api/resources/customerBusinesses/client/Client.d.mts +267 -0
  322. package/dist/esm/api/resources/customerBusinesses/client/Client.mjs +945 -0
  323. package/dist/esm/api/resources/customerBusinesses/client/index.d.mts +1 -0
  324. package/dist/esm/api/resources/customerBusinesses/client/index.mjs +1 -0
  325. package/dist/esm/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.mts +13 -0
  326. package/dist/esm/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.mts +13 -0
  327. package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.mts +10 -0
  328. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.mts +20 -0
  329. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.mts +17 -0
  330. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.mjs +2 -0
  331. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.mts +14 -0
  332. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.mjs +2 -0
  333. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.mts +14 -0
  334. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.mjs +2 -0
  335. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.mts +14 -0
  336. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.mjs +2 -0
  337. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.mts +14 -0
  338. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.mjs +2 -0
  339. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.mts +10 -0
  340. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.mjs +2 -0
  341. package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.mts +10 -0
  342. package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.mjs +2 -0
  343. package/dist/esm/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.mjs +2 -0
  344. package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.mts +10 -0
  345. package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.mjs +2 -0
  346. package/dist/esm/api/resources/customerBusinesses/client/requests/index.d.mts +15 -0
  347. package/dist/esm/api/resources/customerBusinesses/client/requests/index.mjs +1 -0
  348. package/dist/esm/api/resources/customerBusinesses/exports.d.mts +2 -0
  349. package/dist/esm/api/resources/customerBusinesses/exports.mjs +3 -0
  350. package/dist/esm/api/resources/customerBusinesses/index.d.mts +2 -0
  351. package/dist/esm/api/resources/customerBusinesses/index.mjs +2 -0
  352. package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.mts +4 -0
  353. package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.mjs +2 -0
  354. package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.mts +4 -0
  355. package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.mjs +2 -0
  356. package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.mts +3 -0
  357. package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.mjs +2 -0
  358. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.mts +4 -0
  359. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.mjs +2 -0
  360. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.mts +4 -0
  361. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.mjs +2 -0
  362. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.mts +4 -0
  363. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.mjs +2 -0
  364. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.mts +4 -0
  365. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.mjs +2 -0
  366. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.mts +4 -0
  367. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.mjs +2 -0
  368. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.mts +4 -0
  369. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.mjs +2 -0
  370. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.mts +4 -0
  371. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.mjs +2 -0
  372. package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.d.mts +4 -0
  373. package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.mjs +2 -0
  374. package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.mts +4 -0
  375. package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.mjs +2 -0
  376. package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.mts +4 -0
  377. package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.mjs +2 -0
  378. package/dist/esm/api/resources/customerBusinesses/types/index.d.mts +13 -0
  379. package/dist/esm/api/resources/customerBusinesses/types/index.mjs +13 -0
  380. package/dist/esm/api/resources/customerShop/client/Client.d.mts +53 -0
  381. package/dist/esm/api/resources/customerShop/client/Client.mjs +182 -0
  382. package/dist/esm/api/resources/customerShop/client/index.d.mts +1 -0
  383. package/dist/esm/api/resources/customerShop/client/index.mjs +1 -0
  384. package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.d.mts +13 -0
  385. package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.mjs +2 -0
  386. package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.mts +10 -0
  387. package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.mjs +2 -0
  388. package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.d.mts +14 -0
  389. package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.mjs +2 -0
  390. package/dist/esm/api/resources/customerShop/client/requests/index.d.mts +3 -0
  391. package/dist/esm/api/resources/customerShop/client/requests/index.mjs +1 -0
  392. package/dist/esm/api/resources/customerShop/exports.d.mts +2 -0
  393. package/dist/esm/api/resources/customerShop/exports.mjs +3 -0
  394. package/dist/esm/api/resources/customerShop/index.d.mts +2 -0
  395. package/dist/esm/api/resources/customerShop/index.mjs +2 -0
  396. package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.d.mts +4 -0
  397. package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.mjs +2 -0
  398. package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.d.mts +4 -0
  399. package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.mjs +2 -0
  400. package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.d.mts +4 -0
  401. package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.mjs +2 -0
  402. package/dist/esm/api/resources/customerShop/types/index.d.mts +3 -0
  403. package/dist/esm/api/resources/customerShop/types/index.mjs +3 -0
  404. package/dist/esm/api/resources/index.d.mts +6 -0
  405. package/dist/esm/api/resources/index.mjs +6 -0
  406. package/dist/esm/api/types/BusinessProduct.d.mts +1 -1
  407. package/dist/esm/api/types/BusinessProductVariant.d.mts +2 -0
  408. package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +12 -0
  409. package/dist/esm/api/types/ReorderProductImagesRequest.mjs +2 -0
  410. package/dist/esm/api/types/StoreProductImageRequest.d.mts +4 -0
  411. package/dist/esm/api/types/StoreProductImageRequest.mjs +2 -0
  412. package/dist/esm/api/types/index.d.mts +2 -0
  413. package/dist/esm/api/types/index.mjs +2 -0
  414. package/dist/esm/version.d.mts +1 -1
  415. package/dist/esm/version.mjs +1 -1
  416. package/package.json +56 -12
  417. package/reference.md +3038 -1762
  418. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +0 -4
  419. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +0 -4
  420. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.ts +0 -4
  421. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.ts +0 -4
  422. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.ts +0 -4
  423. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.ts +0 -4
  424. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.ts +0 -1
  425. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.ts +0 -4
  426. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.ts +0 -4
  427. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.ts +0 -4
  428. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/index.d.ts +0 -3
  429. package/dist/cjs/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.ts +0 -3
  430. package/dist/cjs/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.ts +0 -4
  431. package/dist/cjs/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.ts +0 -4
  432. package/dist/cjs/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.ts +0 -4
  433. package/dist/cjs/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.ts +0 -4
  434. package/dist/cjs/api/resources/customer/resources/businesses/types/index.d.ts +0 -5
  435. package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +0 -4
  436. package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +0 -4
  437. package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +0 -4
  438. package/dist/cjs/api/resources/customer/resources/shop/types/index.d.ts +0 -3
  439. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +0 -4
  440. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +0 -4
  441. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.mts +0 -4
  442. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.mts +0 -4
  443. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.mts +0 -4
  444. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.mjs +0 -4
  445. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.mts +0 -4
  446. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.mts +0 -1
  447. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.mjs +0 -1
  448. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.mts +0 -4
  449. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.mts +0 -4
  450. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.mts +0 -4
  451. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.d.mts +0 -3
  452. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.mjs +0 -3
  453. package/dist/esm/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.mts +0 -3
  454. package/dist/esm/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.mts +0 -4
  455. package/dist/esm/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.mts +0 -4
  456. package/dist/esm/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.mts +0 -4
  457. package/dist/esm/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.mts +0 -4
  458. package/dist/esm/api/resources/customer/resources/businesses/types/index.d.mts +0 -5
  459. package/dist/esm/api/resources/customer/resources/businesses/types/index.mjs +0 -5
  460. package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +0 -4
  461. package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +0 -4
  462. package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +0 -4
  463. package/dist/esm/api/resources/customer/resources/shop/types/index.d.mts +0 -3
  464. package/dist/esm/api/resources/customer/resources/shop/types/index.mjs +0 -3
  465. /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
  466. /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
  467. /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
  468. /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
  469. /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
  470. /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
  471. /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
  472. /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
  473. /package/dist/cjs/api/resources/customer/resources/businesses/resources/{events/types/ListEventsResponse.js → bulletins/resources/comments/client/requests/CreateCommentsRequest.js} +0 -0
  474. /package/dist/cjs/api/resources/customer/resources/businesses/resources/{events/types/RsvpEventsResponse.js → bulletins/resources/comments/client/requests/ReplyCommentsRequest.js} +0 -0
  475. /package/dist/cjs/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.js → resources/events/client/requests/RsvpEventsRequest.js} +0 -0
  476. /package/dist/cjs/api/resources/customer/resources/{businesses/types/ListTemporaryLocationsBusinessesResponse.js → cart/client/requests/ClearCartRequest.js} +0 -0
  477. /package/dist/cjs/api/resources/customer/resources/{businesses/types/MenusBusinessesResponse.js → cart/client/requests/GetCartRequest.js} +0 -0
  478. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +0 -0
  479. /package/dist/cjs/api/resources/{customer/resources/businesses/types/PhotosBusinessesResponse.js → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js} +0 -0
  480. /package/dist/cjs/api/resources/{customer/resources/businesses/types/ProfileBusinessesResponse.js → customerBusinesses/client/requests/BusinessesEventShowRequest.js} +0 -0
  481. /package/dist/cjs/api/resources/{customer/resources/shop/types/GetProductShopResponse.js → customerBusinesses/client/requests/DestroyEventRsvpRequest.js} +0 -0
  482. /package/dist/cjs/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.js → customerBusinesses/client/requests/FavoritesBusinessRequest.js} +0 -0
  483. /package/dist/cjs/api/resources/{customer/resources/shop/types/ListProductsShopResponse.js → customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.js} +0 -0
  484. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.ts +0 -0
  485. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.ts +0 -0
  486. /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.js +0 -0
  487. /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
  488. /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
  489. /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
  490. /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
  491. /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
  492. /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
  493. /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
  494. /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
  495. /package/dist/esm/api/resources/customer/resources/businesses/resources/{events/types/ListEventsResponse.mjs → bulletins/resources/comments/client/requests/CreateCommentsRequest.mjs} +0 -0
  496. /package/dist/esm/api/resources/customer/resources/businesses/resources/{events/types/RsvpEventsResponse.mjs → bulletins/resources/comments/client/requests/ReplyCommentsRequest.mjs} +0 -0
  497. /package/dist/esm/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.mjs → resources/events/client/requests/RsvpEventsRequest.mjs} +0 -0
  498. /package/dist/esm/api/resources/customer/resources/{businesses/types/ListTemporaryLocationsBusinessesResponse.mjs → cart/client/requests/ClearCartRequest.mjs} +0 -0
  499. /package/dist/esm/api/resources/customer/resources/{businesses/types/MenusBusinessesResponse.mjs → cart/client/requests/GetCartRequest.mjs} +0 -0
  500. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +0 -0
  501. /package/dist/esm/api/resources/{customer/resources/businesses/types/PhotosBusinessesResponse.mjs → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs} +0 -0
  502. /package/dist/esm/api/resources/{customer/resources/businesses/types/ProfileBusinessesResponse.mjs → customerBusinesses/client/requests/BusinessesEventShowRequest.mjs} +0 -0
  503. /package/dist/esm/api/resources/{customer/resources/shop/types/GetProductShopResponse.mjs → customerBusinesses/client/requests/DestroyEventRsvpRequest.mjs} +0 -0
  504. /package/dist/esm/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.mjs → customerBusinesses/client/requests/FavoritesBusinessRequest.mjs} +0 -0
  505. /package/dist/esm/api/resources/{customer/resources/shop/types/ListProductsShopResponse.mjs → customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.mjs} +0 -0
  506. /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.mts +0 -0
  507. /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.mts +0 -0
  508. /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.mjs +0 -0
@@ -1,14 +1,9 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli"
4
+ * business: "business"
5
5
  * }
6
6
  */
7
7
  export interface ListBulletinsRequest {
8
- /** The business handle */
9
- handle: string;
10
- /** Page number for pagination */
11
- page?: number;
12
- /** Number of bulletins per page */
13
- per_page?: number;
8
+ business: string;
14
9
  }
@@ -1,3 +1,2 @@
1
1
  export * from "./client/index.js";
2
2
  export * from "./resources/index.js";
3
- export * from "./types/index.js";
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
18
  __exportStar(require("./resources/index.js"), exports);
19
- __exportStar(require("./types/index.js"), exports);
@@ -1,7 +1,7 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../../../BaseClient.js";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../../../../../core/index.js";
4
- import * as FiveOneEat from "../../../../../../../../../index.js";
4
+ import type * as FiveOneEat from "../../../../../../../../../index.js";
5
5
  export declare namespace CommentsClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
@@ -11,79 +11,53 @@ export declare class CommentsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<CommentsClient.Options>;
12
12
  constructor(options?: CommentsClient.Options);
13
13
  /**
14
- * Retrieve paginated comments for a published business bulletin.
15
- *
16
14
  * @param {FiveOneEat.customer.businesses.bulletins.ListCommentsRequest} request
17
15
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
18
16
  *
19
- * @throws {@link FiveOneEat.UnauthorizedError}
20
- * @throws {@link FiveOneEat.NotFoundError}
21
- * @throws {@link FiveOneEat.UnprocessableEntityError}
22
- *
23
17
  * @example
24
18
  * await client.customer.businesses.bulletins.comments.list({
25
- * handle: "katzs-deli",
26
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
19
+ * business: "business",
20
+ * bulletin: "bulletin"
27
21
  * })
28
22
  */
29
- list(request: FiveOneEat.customer.businesses.bulletins.ListCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.ListCommentsResponse>;
23
+ list(request: FiveOneEat.customer.businesses.bulletins.ListCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
30
24
  private __list;
31
25
  /**
32
- * Post a comment on a business bulletin. Requires authentication.
33
- *
34
- * @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
26
+ * @param {FiveOneEat.customer.businesses.bulletins.CreateCommentsRequest} request
35
27
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
36
28
  *
37
- * @throws {@link FiveOneEat.UnauthorizedError}
38
- * @throws {@link FiveOneEat.NotFoundError}
39
- * @throws {@link FiveOneEat.UnprocessableEntityError}
40
- *
41
29
  * @example
42
30
  * await client.customer.businesses.bulletins.comments.create({
43
- * handle: "katzs-deli",
44
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
45
- * body: "body"
31
+ * business: "business",
32
+ * bulletin: "bulletin"
46
33
  * })
47
34
  */
48
- create(request: FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.CreateCommentsResponse>;
35
+ create(request: FiveOneEat.customer.businesses.bulletins.CreateCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
49
36
  private __create;
50
37
  /**
51
- * Retrieve paginated replies for a top-level comment on a published bulletin.
52
- *
53
38
  * @param {FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest} request
54
39
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
55
40
  *
56
- * @throws {@link FiveOneEat.UnauthorizedError}
57
- * @throws {@link FiveOneEat.NotFoundError}
58
- * @throws {@link FiveOneEat.UnprocessableEntityError}
59
- *
60
41
  * @example
61
42
  * await client.customer.businesses.bulletins.comments.listReplies({
62
- * handle: "katzs-deli",
63
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
64
- * comment: "01950e7d-5678-7000-abcd-ef0123456789"
43
+ * business: "business",
44
+ * bulletin: "bulletin",
45
+ * comment: "comment"
65
46
  * })
66
47
  */
67
- listReplies(request: FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsResponse>;
48
+ listReplies(request: FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
68
49
  private __listReplies;
69
50
  /**
70
- * Post a reply to a top-level comment on a published bulletin. Requires authentication.
71
- *
72
- * @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest} request
51
+ * @param {FiveOneEat.customer.businesses.bulletins.ReplyCommentsRequest} request
73
52
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
74
53
  *
75
- * @throws {@link FiveOneEat.UnauthorizedError}
76
- * @throws {@link FiveOneEat.NotFoundError}
77
- * @throws {@link FiveOneEat.UnprocessableEntityError}
78
- *
79
54
  * @example
80
55
  * await client.customer.businesses.bulletins.comments.reply({
81
- * handle: "katzs-deli",
82
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
83
- * comment: "01950e7d-5678-7000-abcd-ef0123456789",
84
- * body: "body"
56
+ * business: "business",
57
+ * bulletin: "bulletin",
58
+ * comment: "comment"
85
59
  * })
86
60
  */
87
- reply(request: FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.ReplyCommentsResponse>;
61
+ reply(request: FiveOneEat.customer.businesses.bulletins.ReplyCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
88
62
  private __reply;
89
63
  }
@@ -42,17 +42,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
42
42
  step((generator = generator.apply(thisArg, _arguments || [])).next());
43
43
  });
44
44
  };
45
- var __rest = (this && this.__rest) || function (s, e) {
46
- var t = {};
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
- t[p] = s[p];
49
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
- t[p[i]] = s[p[i]];
53
- }
54
- return t;
55
- };
56
45
  Object.defineProperty(exports, "__esModule", { value: true });
57
46
  exports.CommentsClient = void 0;
58
47
  const BaseClient_js_1 = require("../../../../../../../../../../BaseClient.js");
@@ -61,25 +50,18 @@ const core = __importStar(require("../../../../../../../../../../core/index.js")
61
50
  const environments = __importStar(require("../../../../../../../../../../environments.js"));
62
51
  const handleNonStatusCodeError_js_1 = require("../../../../../../../../../../errors/handleNonStatusCodeError.js");
63
52
  const errors = __importStar(require("../../../../../../../../../../errors/index.js"));
64
- const FiveOneEat = __importStar(require("../../../../../../../../../index.js"));
65
53
  class CommentsClient {
66
54
  constructor(options = {}) {
67
55
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
68
56
  }
69
57
  /**
70
- * Retrieve paginated comments for a published business bulletin.
71
- *
72
58
  * @param {FiveOneEat.customer.businesses.bulletins.ListCommentsRequest} request
73
59
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
74
60
  *
75
- * @throws {@link FiveOneEat.UnauthorizedError}
76
- * @throws {@link FiveOneEat.NotFoundError}
77
- * @throws {@link FiveOneEat.UnprocessableEntityError}
78
- *
79
61
  * @example
80
62
  * await client.customer.businesses.bulletins.comments.list({
81
- * handle: "katzs-deli",
82
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
63
+ * business: "business",
64
+ * bulletin: "bulletin"
83
65
  * })
84
66
  */
85
67
  list(request, requestOptions) {
@@ -88,23 +70,14 @@ class CommentsClient {
88
70
  __list(request, requestOptions) {
89
71
  return __awaiter(this, void 0, void 0, function* () {
90
72
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
91
- const { handle, bulletin, page, per_page: perPage } = request;
92
- const _queryParams = {
93
- page,
94
- per_page: perPage,
95
- };
73
+ const { business, bulletin } = request;
96
74
  const _authRequest = yield this._options.authProvider.getAuthRequest();
97
75
  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);
98
76
  const _response = yield core.fetcher({
99
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(handle)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
77
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
100
78
  method: "GET",
101
79
  headers: _headers,
102
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
103
- queryString: core.url
104
- .queryBuilder()
105
- .addMany(_queryParams)
106
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
107
- .build(),
80
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
108
81
  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,
109
82
  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,
110
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -112,45 +85,26 @@ class CommentsClient {
112
85
  logging: this._options.logging,
113
86
  });
114
87
  if (_response.ok) {
115
- return {
116
- data: _response.body,
117
- rawResponse: _response.rawResponse,
118
- };
88
+ return { data: undefined, rawResponse: _response.rawResponse };
119
89
  }
120
90
  if (_response.error.reason === "status-code") {
121
- switch (_response.error.statusCode) {
122
- case 401:
123
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
124
- case 404:
125
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
126
- case 422:
127
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
128
- default:
129
- throw new errors.FiveOneEatError({
130
- statusCode: _response.error.statusCode,
131
- body: _response.error.body,
132
- rawResponse: _response.rawResponse,
133
- });
134
- }
91
+ throw new errors.FiveOneEatError({
92
+ statusCode: _response.error.statusCode,
93
+ body: _response.error.body,
94
+ rawResponse: _response.rawResponse,
95
+ });
135
96
  }
136
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{handle}/bulletins/{bulletin}/comments");
97
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/bulletins/{bulletin}/comments");
137
98
  });
138
99
  }
139
100
  /**
140
- * Post a comment on a business bulletin. Requires authentication.
141
- *
142
- * @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
101
+ * @param {FiveOneEat.customer.businesses.bulletins.CreateCommentsRequest} request
143
102
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
144
103
  *
145
- * @throws {@link FiveOneEat.UnauthorizedError}
146
- * @throws {@link FiveOneEat.NotFoundError}
147
- * @throws {@link FiveOneEat.UnprocessableEntityError}
148
- *
149
104
  * @example
150
105
  * await client.customer.businesses.bulletins.comments.create({
151
- * handle: "katzs-deli",
152
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
153
- * body: "body"
106
+ * business: "business",
107
+ * bulletin: "bulletin"
154
108
  * })
155
109
  */
156
110
  create(request, requestOptions) {
@@ -159,17 +113,14 @@ class CommentsClient {
159
113
  __create(request, requestOptions) {
160
114
  return __awaiter(this, void 0, void 0, function* () {
161
115
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
162
- const { handle, bulletin } = request, _body = __rest(request, ["handle", "bulletin"]);
116
+ const { business, bulletin } = request;
163
117
  const _authRequest = yield this._options.authProvider.getAuthRequest();
164
118
  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);
165
119
  const _response = yield core.fetcher({
166
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(handle)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
120
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
167
121
  method: "POST",
168
122
  headers: _headers,
169
- contentType: "application/json",
170
123
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
171
- requestType: "json",
172
- body: _body,
173
124
  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,
174
125
  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,
175
126
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -177,45 +128,27 @@ class CommentsClient {
177
128
  logging: this._options.logging,
178
129
  });
179
130
  if (_response.ok) {
180
- return {
181
- data: _response.body,
182
- rawResponse: _response.rawResponse,
183
- };
131
+ return { data: undefined, rawResponse: _response.rawResponse };
184
132
  }
185
133
  if (_response.error.reason === "status-code") {
186
- switch (_response.error.statusCode) {
187
- case 401:
188
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
189
- case 404:
190
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
191
- case 422:
192
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
193
- default:
194
- throw new errors.FiveOneEatError({
195
- statusCode: _response.error.statusCode,
196
- body: _response.error.body,
197
- rawResponse: _response.rawResponse,
198
- });
199
- }
134
+ throw new errors.FiveOneEatError({
135
+ statusCode: _response.error.statusCode,
136
+ body: _response.error.body,
137
+ rawResponse: _response.rawResponse,
138
+ });
200
139
  }
201
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{handle}/bulletins/{bulletin}/comments");
140
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/bulletins/{bulletin}/comments");
202
141
  });
203
142
  }
204
143
  /**
205
- * Retrieve paginated replies for a top-level comment on a published bulletin.
206
- *
207
144
  * @param {FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest} request
208
145
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
209
146
  *
210
- * @throws {@link FiveOneEat.UnauthorizedError}
211
- * @throws {@link FiveOneEat.NotFoundError}
212
- * @throws {@link FiveOneEat.UnprocessableEntityError}
213
- *
214
147
  * @example
215
148
  * await client.customer.businesses.bulletins.comments.listReplies({
216
- * handle: "katzs-deli",
217
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
218
- * comment: "01950e7d-5678-7000-abcd-ef0123456789"
149
+ * business: "business",
150
+ * bulletin: "bulletin",
151
+ * comment: "comment"
219
152
  * })
220
153
  */
221
154
  listReplies(request, requestOptions) {
@@ -224,23 +157,14 @@ class CommentsClient {
224
157
  __listReplies(request, requestOptions) {
225
158
  return __awaiter(this, void 0, void 0, function* () {
226
159
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
227
- const { handle, bulletin, comment, page, per_page: perPage } = request;
228
- const _queryParams = {
229
- page,
230
- per_page: perPage,
231
- };
160
+ const { business, bulletin, comment } = request;
232
161
  const _authRequest = yield this._options.authProvider.getAuthRequest();
233
162
  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);
234
163
  const _response = yield core.fetcher({
235
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(handle)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
164
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
236
165
  method: "GET",
237
166
  headers: _headers,
238
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
239
- queryString: core.url
240
- .queryBuilder()
241
- .addMany(_queryParams)
242
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
243
- .build(),
167
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
244
168
  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,
245
169
  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,
246
170
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -248,46 +172,27 @@ class CommentsClient {
248
172
  logging: this._options.logging,
249
173
  });
250
174
  if (_response.ok) {
251
- return {
252
- data: _response.body,
253
- rawResponse: _response.rawResponse,
254
- };
175
+ return { data: undefined, rawResponse: _response.rawResponse };
255
176
  }
256
177
  if (_response.error.reason === "status-code") {
257
- switch (_response.error.statusCode) {
258
- case 401:
259
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
260
- case 404:
261
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
262
- case 422:
263
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
264
- default:
265
- throw new errors.FiveOneEatError({
266
- statusCode: _response.error.statusCode,
267
- body: _response.error.body,
268
- rawResponse: _response.rawResponse,
269
- });
270
- }
178
+ throw new errors.FiveOneEatError({
179
+ statusCode: _response.error.statusCode,
180
+ body: _response.error.body,
181
+ rawResponse: _response.rawResponse,
182
+ });
271
183
  }
272
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{handle}/bulletins/{bulletin}/comments/{comment}/replies");
184
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/bulletins/{bulletin}/comments/{comment}/replies");
273
185
  });
274
186
  }
275
187
  /**
276
- * Post a reply to a top-level comment on a published bulletin. Requires authentication.
277
- *
278
- * @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest} request
188
+ * @param {FiveOneEat.customer.businesses.bulletins.ReplyCommentsRequest} request
279
189
  * @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
280
190
  *
281
- * @throws {@link FiveOneEat.UnauthorizedError}
282
- * @throws {@link FiveOneEat.NotFoundError}
283
- * @throws {@link FiveOneEat.UnprocessableEntityError}
284
- *
285
191
  * @example
286
192
  * await client.customer.businesses.bulletins.comments.reply({
287
- * handle: "katzs-deli",
288
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
289
- * comment: "01950e7d-5678-7000-abcd-ef0123456789",
290
- * body: "body"
193
+ * business: "business",
194
+ * bulletin: "bulletin",
195
+ * comment: "comment"
291
196
  * })
292
197
  */
293
198
  reply(request, requestOptions) {
@@ -296,17 +201,14 @@ class CommentsClient {
296
201
  __reply(request, requestOptions) {
297
202
  return __awaiter(this, void 0, void 0, function* () {
298
203
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
299
- const { handle, bulletin, comment } = request, _body = __rest(request, ["handle", "bulletin", "comment"]);
204
+ const { business, bulletin, comment } = request;
300
205
  const _authRequest = yield this._options.authProvider.getAuthRequest();
301
206
  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);
302
207
  const _response = yield core.fetcher({
303
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(handle)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
208
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
304
209
  method: "POST",
305
210
  headers: _headers,
306
- contentType: "application/json",
307
211
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
308
- requestType: "json",
309
- body: _body,
310
212
  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,
311
213
  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,
312
214
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -314,28 +216,16 @@ class CommentsClient {
314
216
  logging: this._options.logging,
315
217
  });
316
218
  if (_response.ok) {
317
- return {
318
- data: _response.body,
319
- rawResponse: _response.rawResponse,
320
- };
219
+ return { data: undefined, rawResponse: _response.rawResponse };
321
220
  }
322
221
  if (_response.error.reason === "status-code") {
323
- switch (_response.error.statusCode) {
324
- case 401:
325
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
326
- case 404:
327
- throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
328
- case 422:
329
- throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
330
- default:
331
- throw new errors.FiveOneEatError({
332
- statusCode: _response.error.statusCode,
333
- body: _response.error.body,
334
- rawResponse: _response.rawResponse,
335
- });
336
- }
222
+ throw new errors.FiveOneEatError({
223
+ statusCode: _response.error.statusCode,
224
+ body: _response.error.body,
225
+ rawResponse: _response.rawResponse,
226
+ });
337
227
  }
338
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{handle}/bulletins/{bulletin}/comments/{comment}/replies");
228
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/bulletins/{bulletin}/comments/{comment}/replies");
339
229
  });
340
230
  }
341
231
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * business: "business",
5
+ * bulletin: "bulletin"
6
+ * }
7
+ */
8
+ export interface CreateCommentsRequest {
9
+ business: string;
10
+ bulletin: string;
11
+ }
@@ -1,17 +1,11 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
5
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
4
+ * business: "business",
5
+ * bulletin: "bulletin"
6
6
  * }
7
7
  */
8
8
  export interface ListCommentsRequest {
9
- /** The business handle */
10
- handle: string;
11
- /** The bulletin ID */
9
+ business: string;
12
10
  bulletin: string;
13
- /** Page number for pagination */
14
- page?: number;
15
- /** Number of comments per page */
16
- per_page?: number;
17
11
  }
@@ -1,20 +1,13 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
5
- * bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
6
- * comment: "01950e7d-5678-7000-abcd-ef0123456789"
4
+ * business: "business",
5
+ * bulletin: "bulletin",
6
+ * comment: "comment"
7
7
  * }
8
8
  */
9
9
  export interface ListRepliesCommentsRequest {
10
- /** The business handle */
11
- handle: string;
12
- /** The bulletin ID */
10
+ business: string;
13
11
  bulletin: string;
14
- /** The comment ID */
15
12
  comment: string;
16
- /** Page number for pagination */
17
- page?: number;
18
- /** Number of replies per page */
19
- per_page?: number;
20
13
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * business: "business",
5
+ * bulletin: "bulletin",
6
+ * comment: "comment"
7
+ * }
8
+ */
9
+ export interface ReplyCommentsRequest {
10
+ business: string;
11
+ bulletin: string;
12
+ comment: string;
13
+ }
@@ -1,4 +1,4 @@
1
- export type { AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest } from "./AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js";
1
+ export type { CreateCommentsRequest } from "./CreateCommentsRequest.js";
2
2
  export type { ListCommentsRequest } from "./ListCommentsRequest.js";
3
3
  export type { ListRepliesCommentsRequest } from "./ListRepliesCommentsRequest.js";
4
- export type { StoreBulletinCommentReplyRequest } from "./StoreBulletinCommentReplyRequest.js";
4
+ export type { ReplyCommentsRequest } from "./ReplyCommentsRequest.js";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.js";
2
- export * from "./types/index.js";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
- __exportStar(require("./types/index.js"), exports);
@@ -1,3 +1,2 @@
1
1
  export * from "./comments/client/requests/index.js";
2
2
  export * as comments from "./comments/index.js";
3
- export * from "./comments/types/index.js";
@@ -39,4 +39,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.comments = void 0;
40
40
  __exportStar(require("./comments/client/requests/index.js"), exports);
41
41
  exports.comments = __importStar(require("./comments/index.js"));
42
- __exportStar(require("./comments/types/index.js"), exports);