@51eat/sdk 0.0.43 → 0.0.45

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 (354) hide show
  1. package/README.md +9 -11
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +0 -6
  4. package/dist/cjs/Client.js +8 -18
  5. package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +1 -0
  6. package/dist/cjs/api/resources/customer/client/Client.d.ts +2 -2
  7. package/dist/cjs/api/resources/customer/client/Client.js +4 -4
  8. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +41 -13
  9. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +146 -46
  10. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -1
  11. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -1
  12. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +6 -1
  13. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +6 -1
  14. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -1
  15. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -1
  16. package/dist/cjs/api/resources/customer/resources/businesses/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/customer/resources/businesses/index.js +1 -0
  18. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +8 -3
  19. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +34 -9
  20. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +6 -1
  21. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.js +1 -0
  23. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +43 -17
  24. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +152 -42
  25. package/dist/cjs/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +2 -2
  26. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +8 -2
  27. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +10 -3
  28. package/dist/cjs/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/StoreBulletinCommentReplyRequest.d.ts +2 -2
  29. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -2
  30. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.js +1 -0
  32. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +4 -0
  33. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +4 -0
  34. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.ts +4 -0
  35. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.ts +4 -0
  36. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.ts +4 -0
  37. package/dist/cjs/api/resources/{customerShop → customer/resources/businesses/resources/bulletins/resources/comments/types}/index.js +4 -2
  38. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.js +1 -0
  40. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.ts +4 -0
  41. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/{customerBusinesses/client → customer/resources/businesses/resources/bulletins/types}/index.js +1 -1
  43. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +33 -12
  44. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +116 -34
  45. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +4 -2
  46. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +3 -1
  47. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +6 -1
  48. package/dist/cjs/api/resources/{customerBusinesses → customer/resources/businesses/resources/events}/client/requests/StoreEventRsvpRequest.d.ts +2 -2
  49. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.ts +1 -1
  50. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.js +3 -0
  51. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.js +1 -0
  53. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.ts +4 -0
  54. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.ts +4 -0
  55. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.ts +4 -0
  56. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/index.d.ts +3 -0
  57. package/dist/cjs/api/resources/{customerShop/client → customer/resources/businesses/resources/events/types}/index.js +3 -1
  58. package/dist/cjs/api/resources/customer/resources/businesses/resources/index.d.ts +2 -0
  59. package/dist/cjs/api/resources/customer/resources/businesses/resources/index.js +2 -0
  60. package/dist/cjs/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.ts +3 -0
  61. package/dist/cjs/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.ts +4 -0
  62. package/dist/cjs/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.ts +4 -0
  63. package/dist/cjs/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.ts +4 -0
  64. package/dist/cjs/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.ts +4 -0
  65. package/dist/cjs/api/resources/customer/resources/businesses/types/index.d.ts +5 -0
  66. package/dist/cjs/api/resources/{customerShop/exports.js → customer/resources/businesses/types/index.js} +5 -5
  67. package/dist/cjs/api/resources/customer/resources/index.d.ts +2 -0
  68. package/dist/cjs/api/resources/customer/resources/index.js +2 -0
  69. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +13 -7
  70. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +63 -23
  71. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +3 -1
  72. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -1
  73. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +6 -1
  74. package/dist/cjs/api/resources/customer/resources/shop/index.d.ts +1 -0
  75. package/dist/cjs/api/resources/customer/resources/shop/index.js +1 -0
  76. package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +4 -0
  77. package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +4 -0
  78. package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +4 -0
  79. package/dist/cjs/api/resources/customer/resources/shop/types/index.d.ts +3 -0
  80. package/dist/cjs/api/resources/{customerShop → customer/resources/shop}/types/index.js +3 -3
  81. package/dist/cjs/api/resources/index.d.ts +0 -6
  82. package/dist/cjs/api/resources/index.js +1 -7
  83. package/dist/cjs/version.d.ts +1 -1
  84. package/dist/cjs/version.js +1 -1
  85. package/dist/esm/BaseClient.mjs +2 -2
  86. package/dist/esm/Client.d.mts +0 -6
  87. package/dist/esm/Client.mjs +0 -10
  88. package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +1 -0
  89. package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
  90. package/dist/esm/api/resources/customer/client/Client.mjs +4 -4
  91. package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +41 -13
  92. package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +146 -46
  93. package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -1
  94. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -1
  95. package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +6 -1
  96. package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +6 -1
  97. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -1
  98. package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -1
  99. package/dist/esm/api/resources/customer/resources/businesses/index.d.mts +1 -0
  100. package/dist/esm/api/resources/customer/resources/businesses/index.mjs +1 -0
  101. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +8 -3
  102. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +34 -9
  103. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +6 -1
  104. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.d.mts +1 -0
  105. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.mjs +1 -0
  106. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +43 -17
  107. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +152 -42
  108. package/dist/esm/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +2 -2
  109. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +8 -2
  110. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +10 -3
  111. package/dist/esm/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/StoreBulletinCommentReplyRequest.d.mts +2 -2
  112. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -2
  113. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.mts +1 -0
  114. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.mjs +1 -0
  115. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +4 -0
  116. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +4 -0
  117. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.mts +4 -0
  118. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.mts +4 -0
  119. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.mts +4 -0
  120. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.mjs +4 -0
  121. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.mts +1 -0
  122. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.mjs +1 -0
  123. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.mts +4 -0
  124. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.mts +1 -0
  125. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.mjs +1 -0
  126. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +33 -12
  127. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +116 -34
  128. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +4 -2
  129. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +3 -1
  130. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +6 -1
  131. package/dist/esm/api/resources/{customerBusinesses → customer/resources/businesses/resources/events}/client/requests/StoreEventRsvpRequest.d.mts +2 -2
  132. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.mts +1 -1
  133. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.mjs +1 -1
  134. package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.d.mts +1 -0
  135. package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.mjs +1 -0
  136. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.mts +4 -0
  137. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.mts +4 -0
  138. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.mts +4 -0
  139. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.d.mts +3 -0
  140. package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.mjs +3 -0
  141. package/dist/esm/api/resources/customer/resources/businesses/resources/index.d.mts +2 -0
  142. package/dist/esm/api/resources/customer/resources/businesses/resources/index.mjs +2 -0
  143. package/dist/esm/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.mts +3 -0
  144. package/dist/esm/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.mts +4 -0
  145. package/dist/esm/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.mts +4 -0
  146. package/dist/esm/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.mts +4 -0
  147. package/dist/esm/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.mts +4 -0
  148. package/dist/esm/api/resources/customer/resources/businesses/types/index.d.mts +5 -0
  149. package/dist/esm/api/resources/customer/resources/businesses/types/index.mjs +5 -0
  150. package/dist/esm/api/resources/customer/resources/index.d.mts +2 -0
  151. package/dist/esm/api/resources/customer/resources/index.mjs +2 -0
  152. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +13 -7
  153. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +63 -23
  154. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +3 -1
  155. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -1
  156. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +6 -1
  157. package/dist/esm/api/resources/customer/resources/shop/index.d.mts +1 -0
  158. package/dist/esm/api/resources/customer/resources/shop/index.mjs +1 -0
  159. package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +4 -0
  160. package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +4 -0
  161. package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +4 -0
  162. package/dist/esm/api/resources/customer/resources/shop/types/index.d.mts +3 -0
  163. package/dist/esm/api/resources/customer/resources/shop/types/index.mjs +3 -0
  164. package/dist/esm/api/resources/index.d.mts +0 -6
  165. package/dist/esm/api/resources/index.mjs +0 -6
  166. package/dist/esm/version.d.mts +1 -1
  167. package/dist/esm/version.mjs +1 -1
  168. package/package.json +12 -34
  169. package/reference.md +693 -1623
  170. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.ts +0 -11
  171. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.ts +0 -13
  172. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.ts +0 -11
  173. package/dist/cjs/api/resources/customerBusinesses/client/Client.d.ts +0 -267
  174. package/dist/cjs/api/resources/customerBusinesses/client/Client.js +0 -982
  175. package/dist/cjs/api/resources/customerBusinesses/client/index.d.ts +0 -1
  176. package/dist/cjs/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.ts +0 -13
  177. package/dist/cjs/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.ts +0 -13
  178. package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.ts +0 -10
  179. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.ts +0 -20
  180. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.ts +0 -17
  181. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.ts +0 -14
  182. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.ts +0 -14
  183. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.ts +0 -14
  184. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.ts +0 -14
  185. package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.ts +0 -10
  186. package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.ts +0 -10
  187. package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.ts +0 -10
  188. package/dist/cjs/api/resources/customerBusinesses/client/requests/index.d.ts +0 -15
  189. package/dist/cjs/api/resources/customerBusinesses/client/requests/index.js +0 -5
  190. package/dist/cjs/api/resources/customerBusinesses/exports.d.ts +0 -2
  191. package/dist/cjs/api/resources/customerBusinesses/exports.js +0 -21
  192. package/dist/cjs/api/resources/customerBusinesses/index.d.ts +0 -2
  193. package/dist/cjs/api/resources/customerBusinesses/index.js +0 -18
  194. package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.ts +0 -4
  195. package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.ts +0 -4
  196. package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.js +0 -3
  197. package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.ts +0 -3
  198. package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.js +0 -3
  199. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.ts +0 -4
  200. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.js +0 -3
  201. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.ts +0 -4
  202. package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.js +0 -3
  203. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.ts +0 -4
  204. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.js +0 -3
  205. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.ts +0 -4
  206. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.js +0 -3
  207. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.ts +0 -4
  208. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.js +0 -3
  209. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.ts +0 -4
  210. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.js +0 -3
  211. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.ts +0 -4
  212. package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.js +0 -3
  213. package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.d.ts +0 -4
  214. package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.js +0 -3
  215. package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.ts +0 -4
  216. package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.js +0 -3
  217. package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.ts +0 -4
  218. package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.js +0 -3
  219. package/dist/cjs/api/resources/customerBusinesses/types/index.d.ts +0 -13
  220. package/dist/cjs/api/resources/customerBusinesses/types/index.js +0 -29
  221. package/dist/cjs/api/resources/customerShop/client/Client.d.ts +0 -53
  222. package/dist/cjs/api/resources/customerShop/client/Client.js +0 -219
  223. package/dist/cjs/api/resources/customerShop/client/index.d.ts +0 -1
  224. package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.d.ts +0 -13
  225. package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.js +0 -3
  226. package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.ts +0 -10
  227. package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.js +0 -3
  228. package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.d.ts +0 -14
  229. package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.js +0 -3
  230. package/dist/cjs/api/resources/customerShop/client/requests/index.d.ts +0 -3
  231. package/dist/cjs/api/resources/customerShop/client/requests/index.js +0 -2
  232. package/dist/cjs/api/resources/customerShop/exports.d.ts +0 -2
  233. package/dist/cjs/api/resources/customerShop/index.d.ts +0 -2
  234. package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.d.ts +0 -4
  235. package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.js +0 -3
  236. package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.d.ts +0 -4
  237. package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.js +0 -3
  238. package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.d.ts +0 -4
  239. package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.js +0 -3
  240. package/dist/cjs/api/resources/customerShop/types/index.d.ts +0 -3
  241. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.mts +0 -11
  242. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.mts +0 -13
  243. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.mts +0 -11
  244. package/dist/esm/api/resources/customerBusinesses/client/Client.d.mts +0 -267
  245. package/dist/esm/api/resources/customerBusinesses/client/Client.mjs +0 -945
  246. package/dist/esm/api/resources/customerBusinesses/client/index.d.mts +0 -1
  247. package/dist/esm/api/resources/customerBusinesses/client/index.mjs +0 -1
  248. package/dist/esm/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.mts +0 -13
  249. package/dist/esm/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.mts +0 -13
  250. package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.mts +0 -10
  251. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.mts +0 -20
  252. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.mts +0 -17
  253. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.mts +0 -14
  254. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.mts +0 -14
  255. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.mts +0 -14
  256. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.mts +0 -14
  257. package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.mts +0 -10
  258. package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.mts +0 -10
  259. package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.mts +0 -10
  260. package/dist/esm/api/resources/customerBusinesses/client/requests/index.d.mts +0 -15
  261. package/dist/esm/api/resources/customerBusinesses/client/requests/index.mjs +0 -1
  262. package/dist/esm/api/resources/customerBusinesses/exports.d.mts +0 -2
  263. package/dist/esm/api/resources/customerBusinesses/exports.mjs +0 -3
  264. package/dist/esm/api/resources/customerBusinesses/index.d.mts +0 -2
  265. package/dist/esm/api/resources/customerBusinesses/index.mjs +0 -2
  266. package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.mts +0 -4
  267. package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.mts +0 -4
  268. package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.mjs +0 -2
  269. package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.mts +0 -3
  270. package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.mjs +0 -2
  271. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.mts +0 -4
  272. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.mjs +0 -2
  273. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.mts +0 -4
  274. package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.mjs +0 -2
  275. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.mts +0 -4
  276. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.mjs +0 -2
  277. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.mts +0 -4
  278. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.mjs +0 -2
  279. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.mts +0 -4
  280. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.mjs +0 -2
  281. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.mts +0 -4
  282. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.mjs +0 -2
  283. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.mts +0 -4
  284. package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.mjs +0 -2
  285. package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.d.mts +0 -4
  286. package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.mjs +0 -2
  287. package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.mts +0 -4
  288. package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.mjs +0 -2
  289. package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.mts +0 -4
  290. package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.mjs +0 -2
  291. package/dist/esm/api/resources/customerBusinesses/types/index.d.mts +0 -13
  292. package/dist/esm/api/resources/customerBusinesses/types/index.mjs +0 -13
  293. package/dist/esm/api/resources/customerShop/client/Client.d.mts +0 -53
  294. package/dist/esm/api/resources/customerShop/client/Client.mjs +0 -182
  295. package/dist/esm/api/resources/customerShop/client/index.d.mts +0 -1
  296. package/dist/esm/api/resources/customerShop/client/index.mjs +0 -1
  297. package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.d.mts +0 -13
  298. package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.mjs +0 -2
  299. package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.mts +0 -10
  300. package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.mjs +0 -2
  301. package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.d.mts +0 -14
  302. package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.mjs +0 -2
  303. package/dist/esm/api/resources/customerShop/client/requests/index.d.mts +0 -3
  304. package/dist/esm/api/resources/customerShop/client/requests/index.mjs +0 -1
  305. package/dist/esm/api/resources/customerShop/exports.d.mts +0 -2
  306. package/dist/esm/api/resources/customerShop/exports.mjs +0 -3
  307. package/dist/esm/api/resources/customerShop/index.d.mts +0 -2
  308. package/dist/esm/api/resources/customerShop/index.mjs +0 -2
  309. package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.d.mts +0 -4
  310. package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.mjs +0 -2
  311. package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.d.mts +0 -4
  312. package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.mjs +0 -2
  313. package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.d.mts +0 -4
  314. package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.mjs +0 -2
  315. package/dist/esm/api/resources/customerShop/types/index.d.mts +0 -3
  316. package/dist/esm/api/resources/customerShop/types/index.mjs +0 -3
  317. /package/dist/cjs/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js +0 -0
  318. /package/dist/cjs/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/StoreBulletinCommentReplyRequest.js +0 -0
  319. /package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/{client/requests/CreateCommentsRequest.js → types/CreateCommentsResponse.js} +0 -0
  320. /package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/{client/requests/ReplyCommentsRequest.js → types/ListCommentsResponse.js} +0 -0
  321. /package/dist/cjs/api/resources/customer/resources/businesses/resources/{events/client/requests/RsvpEventsRequest.js → bulletins/resources/comments/types/ListRepliesCommentsResponse.js} +0 -0
  322. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/BusinessesEventShowRequest.js → customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.js} +0 -0
  323. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/DestroyEventRsvpRequest.js → customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.js} +0 -0
  324. /package/dist/cjs/api/resources/{customerBusinesses → customer/resources/businesses/resources/events}/client/requests/StoreEventRsvpRequest.js +0 -0
  325. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/FavoritesBusinessRequest.js → customer/resources/businesses/resources/events/types/GetEventsResponse.js} +0 -0
  326. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.js → customer/resources/businesses/resources/events/types/ListEventsResponse.js} +0 -0
  327. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBulletinCommentsRequest.js → customer/resources/businesses/resources/events/types/RsvpEventsResponse.js} +0 -0
  328. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBusinessBulletinsRequest.js → customer/resources/businesses/types/FavoriteBusinessesResponse.js} +0 -0
  329. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBusinessEventsRequest.js → customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.js} +0 -0
  330. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBusinessMenusRequest.js → customer/resources/businesses/types/MenusBusinessesResponse.js} +0 -0
  331. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBusinessPhotosRequest.js → customer/resources/businesses/types/PhotosBusinessesResponse.js} +0 -0
  332. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.js → customer/resources/businesses/types/ProfileBusinessesResponse.js} +0 -0
  333. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/ProfileShowRequest.js → customer/resources/shop/types/GetProductShopResponse.js} +0 -0
  334. /package/dist/cjs/api/resources/{customerBusinesses/client/requests/UnfavoritesBusinessRequest.js → customer/resources/shop/types/ListCategoriesShopResponse.js} +0 -0
  335. /package/dist/cjs/api/resources/{customerBusinesses/types/BusinessesEventShowResponse.js → customer/resources/shop/types/ListProductsShopResponse.js} +0 -0
  336. /package/dist/esm/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs +0 -0
  337. /package/dist/esm/api/resources/{customerBusinesses → customer/resources/businesses/resources/bulletins/resources/comments}/client/requests/StoreBulletinCommentReplyRequest.mjs +0 -0
  338. /package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/{client/requests/CreateCommentsRequest.mjs → types/CreateCommentsResponse.mjs} +0 -0
  339. /package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/{client/requests/ReplyCommentsRequest.mjs → types/ListCommentsResponse.mjs} +0 -0
  340. /package/dist/esm/api/resources/customer/resources/businesses/resources/{events/client/requests/RsvpEventsRequest.mjs → bulletins/resources/comments/types/ListRepliesCommentsResponse.mjs} +0 -0
  341. /package/dist/esm/api/resources/{customerBusinesses/client/requests/BusinessesEventShowRequest.mjs → customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.mjs} +0 -0
  342. /package/dist/esm/api/resources/{customerBusinesses/client/requests/DestroyEventRsvpRequest.mjs → customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.mjs} +0 -0
  343. /package/dist/esm/api/resources/{customerBusinesses → customer/resources/businesses/resources/events}/client/requests/StoreEventRsvpRequest.mjs +0 -0
  344. /package/dist/esm/api/resources/{customerBusinesses/client/requests/FavoritesBusinessRequest.mjs → customer/resources/businesses/resources/events/types/GetEventsResponse.mjs} +0 -0
  345. /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.mjs → customer/resources/businesses/resources/events/types/ListEventsResponse.mjs} +0 -0
  346. /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBulletinCommentsRequest.mjs → customer/resources/businesses/resources/events/types/RsvpEventsResponse.mjs} +0 -0
  347. /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBusinessBulletinsRequest.mjs → customer/resources/businesses/types/FavoriteBusinessesResponse.mjs} +0 -0
  348. /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBusinessEventsRequest.mjs → customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.mjs} +0 -0
  349. /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBusinessMenusRequest.mjs → customer/resources/businesses/types/MenusBusinessesResponse.mjs} +0 -0
  350. /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBusinessPhotosRequest.mjs → customer/resources/businesses/types/PhotosBusinessesResponse.mjs} +0 -0
  351. /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.mjs → customer/resources/businesses/types/ProfileBusinessesResponse.mjs} +0 -0
  352. /package/dist/esm/api/resources/{customerBusinesses/client/requests/ProfileShowRequest.mjs → customer/resources/shop/types/GetProductShopResponse.mjs} +0 -0
  353. /package/dist/esm/api/resources/{customerBusinesses/client/requests/UnfavoritesBusinessRequest.mjs → customer/resources/shop/types/ListCategoriesShopResponse.mjs} +0 -0
  354. /package/dist/esm/api/resources/{customerBusinesses/types/BusinessesEventShowResponse.mjs → customer/resources/shop/types/ListProductsShopResponse.mjs} +0 -0
@@ -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 type * as FiveOneEat from "../../../../../../../index.js";
4
+ import * as FiveOneEat from "../../../../../../../index.js";
5
5
  export declare namespace EventsClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
@@ -11,50 +11,71 @@ export declare class EventsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
12
12
  constructor(options?: EventsClient.Options);
13
13
  /**
14
+ * Retrieve upcoming events for the business with pagination.
15
+ *
14
16
  * @param {FiveOneEat.customer.businesses.ListEventsRequest} request
15
17
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
16
18
  *
19
+ * @throws {@link FiveOneEat.UnauthorizedError}
20
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
21
+ *
17
22
  * @example
18
23
  * await client.customer.businesses.events.list({
19
- * business: "business"
24
+ * business: "katzs-deli"
20
25
  * })
21
26
  */
22
- list(request: FiveOneEat.customer.businesses.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
27
+ list(request: FiveOneEat.customer.businesses.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.ListEventsResponse>;
23
28
  private __list;
24
29
  /**
30
+ * Retrieve full details for a single upcoming event belonging to the business.
31
+ *
25
32
  * @param {FiveOneEat.customer.businesses.GetEventsRequest} request
26
33
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
27
34
  *
35
+ * @throws {@link FiveOneEat.UnauthorizedError}
36
+ *
28
37
  * @example
29
38
  * await client.customer.businesses.events.get({
30
- * business: "business",
39
+ * business: "katzs-deli",
31
40
  * event: "event"
32
41
  * })
33
42
  */
34
- get(request: FiveOneEat.customer.businesses.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
43
+ get(request: FiveOneEat.customer.businesses.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.GetEventsResponse>;
35
44
  private __get;
36
45
  /**
37
- * @param {FiveOneEat.customer.businesses.RsvpEventsRequest} request
46
+ * Create or update the authenticated user's RSVP for a business event.
47
+ *
48
+ * @param {FiveOneEat.customer.businesses.StoreEventRsvpRequest} request
38
49
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
39
50
  *
51
+ * @throws {@link FiveOneEat.UnauthorizedError}
52
+ * @throws {@link FiveOneEat.NotFoundError}
53
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
54
+ *
40
55
  * @example
41
56
  * await client.customer.businesses.events.rsvp({
42
- * business: "business",
43
- * event: "event"
57
+ * business: "katzs-deli",
58
+ * event: "01950e7d-1234-7000-abcd-ef0123456789",
59
+ * status: "attending"
44
60
  * })
45
61
  */
46
- rsvp(request: FiveOneEat.customer.businesses.RsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
62
+ rsvp(request: FiveOneEat.customer.businesses.StoreEventRsvpRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.RsvpEventsResponse>;
47
63
  private __rsvp;
48
64
  /**
65
+ * Cancel the authenticated user's RSVP for a business event.
66
+ *
49
67
  * @param {FiveOneEat.customer.businesses.CancelRsvpEventsRequest} request
50
68
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
51
69
  *
70
+ * @throws {@link FiveOneEat.UnauthorizedError}
71
+ * @throws {@link FiveOneEat.NotFoundError}
72
+ *
52
73
  * @example
53
74
  * await client.customer.businesses.events.cancelRsvp({
54
- * business: "business",
55
- * event: "event"
75
+ * business: "katzs-deli",
76
+ * event: "01950e7d-1234-7000-abcd-ef0123456789"
56
77
  * })
57
78
  */
58
- cancelRsvp(request: FiveOneEat.customer.businesses.CancelRsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
79
+ cancelRsvp(request: FiveOneEat.customer.businesses.CancelRsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<number>;
59
80
  private __cancelRsvp;
60
81
  }
@@ -42,6 +42,17 @@ 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
+ };
45
56
  Object.defineProperty(exports, "__esModule", { value: true });
46
57
  exports.EventsClient = void 0;
47
58
  const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
@@ -50,17 +61,23 @@ const core = __importStar(require("../../../../../../../../core/index.js"));
50
61
  const environments = __importStar(require("../../../../../../../../environments.js"));
51
62
  const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
52
63
  const errors = __importStar(require("../../../../../../../../errors/index.js"));
64
+ const FiveOneEat = __importStar(require("../../../../../../../index.js"));
53
65
  class EventsClient {
54
66
  constructor(options = {}) {
55
67
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
56
68
  }
57
69
  /**
70
+ * Retrieve upcoming events for the business with pagination.
71
+ *
58
72
  * @param {FiveOneEat.customer.businesses.ListEventsRequest} request
59
73
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
60
74
  *
75
+ * @throws {@link FiveOneEat.UnauthorizedError}
76
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
77
+ *
61
78
  * @example
62
79
  * await client.customer.businesses.events.list({
63
- * business: "business"
80
+ * business: "katzs-deli"
64
81
  * })
65
82
  */
66
83
  list(request, requestOptions) {
@@ -69,14 +86,23 @@ class EventsClient {
69
86
  __list(request, requestOptions) {
70
87
  return __awaiter(this, void 0, void 0, function* () {
71
88
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
72
- const { business } = request;
89
+ const { business, page, per_page: perPage } = request;
90
+ const _queryParams = {
91
+ page,
92
+ per_page: perPage,
93
+ };
73
94
  const _authRequest = yield this._options.authProvider.getAuthRequest();
74
95
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
75
96
  const _response = yield core.fetcher({
76
97
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/events`),
77
98
  method: "GET",
78
99
  headers: _headers,
79
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
100
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
101
+ queryString: core.url
102
+ .queryBuilder()
103
+ .addMany(_queryParams)
104
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
105
+ .build(),
80
106
  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,
81
107
  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,
82
108
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -84,25 +110,39 @@ class EventsClient {
84
110
  logging: this._options.logging,
85
111
  });
86
112
  if (_response.ok) {
87
- return { data: undefined, rawResponse: _response.rawResponse };
113
+ return {
114
+ data: _response.body,
115
+ rawResponse: _response.rawResponse,
116
+ };
88
117
  }
89
118
  if (_response.error.reason === "status-code") {
90
- throw new errors.FiveOneEatError({
91
- statusCode: _response.error.statusCode,
92
- body: _response.error.body,
93
- rawResponse: _response.rawResponse,
94
- });
119
+ switch (_response.error.statusCode) {
120
+ case 401:
121
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
122
+ case 422:
123
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
124
+ default:
125
+ throw new errors.FiveOneEatError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.body,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ }
95
131
  }
96
132
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events");
97
133
  });
98
134
  }
99
135
  /**
136
+ * Retrieve full details for a single upcoming event belonging to the business.
137
+ *
100
138
  * @param {FiveOneEat.customer.businesses.GetEventsRequest} request
101
139
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
102
140
  *
141
+ * @throws {@link FiveOneEat.UnauthorizedError}
142
+ *
103
143
  * @example
104
144
  * await client.customer.businesses.events.get({
105
- * business: "business",
145
+ * business: "katzs-deli",
106
146
  * event: "event"
107
147
  * })
108
148
  */
@@ -127,26 +167,41 @@ class EventsClient {
127
167
  logging: this._options.logging,
128
168
  });
129
169
  if (_response.ok) {
130
- return { data: undefined, rawResponse: _response.rawResponse };
170
+ return {
171
+ data: _response.body,
172
+ rawResponse: _response.rawResponse,
173
+ };
131
174
  }
132
175
  if (_response.error.reason === "status-code") {
133
- throw new errors.FiveOneEatError({
134
- statusCode: _response.error.statusCode,
135
- body: _response.error.body,
136
- rawResponse: _response.rawResponse,
137
- });
176
+ switch (_response.error.statusCode) {
177
+ case 401:
178
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
179
+ default:
180
+ throw new errors.FiveOneEatError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.body,
183
+ rawResponse: _response.rawResponse,
184
+ });
185
+ }
138
186
  }
139
187
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events/{event}");
140
188
  });
141
189
  }
142
190
  /**
143
- * @param {FiveOneEat.customer.businesses.RsvpEventsRequest} request
191
+ * Create or update the authenticated user's RSVP for a business event.
192
+ *
193
+ * @param {FiveOneEat.customer.businesses.StoreEventRsvpRequest} request
144
194
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
145
195
  *
196
+ * @throws {@link FiveOneEat.UnauthorizedError}
197
+ * @throws {@link FiveOneEat.NotFoundError}
198
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
199
+ *
146
200
  * @example
147
201
  * await client.customer.businesses.events.rsvp({
148
- * business: "business",
149
- * event: "event"
202
+ * business: "katzs-deli",
203
+ * event: "01950e7d-1234-7000-abcd-ef0123456789",
204
+ * status: "attending"
150
205
  * })
151
206
  */
152
207
  rsvp(request, requestOptions) {
@@ -155,14 +210,17 @@ class EventsClient {
155
210
  __rsvp(request, requestOptions) {
156
211
  return __awaiter(this, void 0, void 0, function* () {
157
212
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
158
- const { business, event } = request;
213
+ const { business, event } = request, _body = __rest(request, ["business", "event"]);
159
214
  const _authRequest = yield this._options.authProvider.getAuthRequest();
160
215
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
161
216
  const _response = yield core.fetcher({
162
217
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/events/${core.url.encodePathParam(event)}/rsvp`),
163
218
  method: "POST",
164
219
  headers: _headers,
220
+ contentType: "application/json",
165
221
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
222
+ requestType: "json",
223
+ body: _body,
166
224
  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
225
  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
226
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -170,26 +228,43 @@ class EventsClient {
170
228
  logging: this._options.logging,
171
229
  });
172
230
  if (_response.ok) {
173
- return { data: undefined, rawResponse: _response.rawResponse };
231
+ return {
232
+ data: _response.body,
233
+ rawResponse: _response.rawResponse,
234
+ };
174
235
  }
175
236
  if (_response.error.reason === "status-code") {
176
- throw new errors.FiveOneEatError({
177
- statusCode: _response.error.statusCode,
178
- body: _response.error.body,
179
- rawResponse: _response.rawResponse,
180
- });
237
+ switch (_response.error.statusCode) {
238
+ case 401:
239
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
240
+ case 404:
241
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
242
+ case 422:
243
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
244
+ default:
245
+ throw new errors.FiveOneEatError({
246
+ statusCode: _response.error.statusCode,
247
+ body: _response.error.body,
248
+ rawResponse: _response.rawResponse,
249
+ });
250
+ }
181
251
  }
182
252
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/events/{event}/rsvp");
183
253
  });
184
254
  }
185
255
  /**
256
+ * Cancel the authenticated user's RSVP for a business event.
257
+ *
186
258
  * @param {FiveOneEat.customer.businesses.CancelRsvpEventsRequest} request
187
259
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
188
260
  *
261
+ * @throws {@link FiveOneEat.UnauthorizedError}
262
+ * @throws {@link FiveOneEat.NotFoundError}
263
+ *
189
264
  * @example
190
265
  * await client.customer.businesses.events.cancelRsvp({
191
- * business: "business",
192
- * event: "event"
266
+ * business: "katzs-deli",
267
+ * event: "01950e7d-1234-7000-abcd-ef0123456789"
193
268
  * })
194
269
  */
195
270
  cancelRsvp(request, requestOptions) {
@@ -213,14 +288,21 @@ class EventsClient {
213
288
  logging: this._options.logging,
214
289
  });
215
290
  if (_response.ok) {
216
- return { data: undefined, rawResponse: _response.rawResponse };
291
+ return { data: _response.body, rawResponse: _response.rawResponse };
217
292
  }
218
293
  if (_response.error.reason === "status-code") {
219
- throw new errors.FiveOneEatError({
220
- statusCode: _response.error.statusCode,
221
- body: _response.error.body,
222
- rawResponse: _response.rawResponse,
223
- });
294
+ switch (_response.error.statusCode) {
295
+ case 401:
296
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
297
+ case 404:
298
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
299
+ default:
300
+ throw new errors.FiveOneEatError({
301
+ statusCode: _response.error.statusCode,
302
+ body: _response.error.body,
303
+ rawResponse: _response.rawResponse,
304
+ });
305
+ }
224
306
  }
225
307
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{business}/events/{event}/rsvp");
226
308
  });
@@ -1,11 +1,13 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * business: "business",
5
- * event: "event"
4
+ * business: "katzs-deli",
5
+ * event: "01950e7d-1234-7000-abcd-ef0123456789"
6
6
  * }
7
7
  */
8
8
  export interface CancelRsvpEventsRequest {
9
+ /** The business handle */
9
10
  business: string;
11
+ /** The event ID */
10
12
  event: string;
11
13
  }
@@ -1,11 +1,13 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * business: "business",
4
+ * business: "katzs-deli",
5
5
  * event: "event"
6
6
  * }
7
7
  */
8
8
  export interface GetEventsRequest {
9
+ /** The business handle */
9
10
  business: string;
11
+ /** The event ID */
10
12
  event: string;
11
13
  }
@@ -1,9 +1,14 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * business: "business"
4
+ * business: "katzs-deli"
5
5
  * }
6
6
  */
7
7
  export interface ListEventsRequest {
8
+ /** The business handle */
8
9
  business: string;
10
+ /** Page number for pagination */
11
+ page?: number;
12
+ /** Number of events per page */
13
+ per_page?: number;
9
14
  }
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * handle: "katzs-deli",
4
+ * business: "katzs-deli",
5
5
  * event: "01950e7d-1234-7000-abcd-ef0123456789",
6
6
  * status: "attending"
7
7
  * }
8
8
  */
9
9
  export interface StoreEventRsvpRequest {
10
10
  /** The business handle */
11
- handle: string;
11
+ business: string;
12
12
  /** The event ID */
13
13
  event: string;
14
14
  status: StoreEventRsvpRequest.Status;
@@ -1,4 +1,4 @@
1
1
  export type { CancelRsvpEventsRequest } from "./CancelRsvpEventsRequest.js";
2
2
  export type { GetEventsRequest } from "./GetEventsRequest.js";
3
3
  export type { ListEventsRequest } from "./ListEventsRequest.js";
4
- export type { RsvpEventsRequest } from "./RsvpEventsRequest.js";
4
+ export { StoreEventRsvpRequest } from "./StoreEventRsvpRequest.js";
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreEventRsvpRequest = void 0;
4
+ var StoreEventRsvpRequest_js_1 = require("./StoreEventRsvpRequest.js");
5
+ Object.defineProperty(exports, "StoreEventRsvpRequest", { enumerable: true, get: function () { return StoreEventRsvpRequest_js_1.StoreEventRsvpRequest; } });
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -15,3 +15,4 @@ 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);
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../index.js";
2
+ export interface GetEventsResponse {
3
+ data: FiveOneEat.CustomerEventDetail;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../index.js";
2
+ export interface ListEventsResponse {
3
+ data: FiveOneEat.CustomerEventResponse;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../index.js";
2
+ export interface RsvpEventsResponse {
3
+ data: FiveOneEat.CustomerEventRsvp;
4
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./GetEventsResponse.js";
2
+ export * from "./ListEventsResponse.js";
3
+ export * from "./RsvpEventsResponse.js";
@@ -14,4 +14,6 @@ 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("./requests/index.js"), exports);
17
+ __exportStar(require("./GetEventsResponse.js"), exports);
18
+ __exportStar(require("./ListEventsResponse.js"), exports);
19
+ __exportStar(require("./RsvpEventsResponse.js"), exports);
@@ -1,4 +1,6 @@
1
1
  export * from "./bulletins/client/requests/index.js";
2
2
  export * as bulletins from "./bulletins/index.js";
3
+ export * from "./bulletins/types/index.js";
3
4
  export * from "./events/client/requests/index.js";
4
5
  export * as events from "./events/index.js";
6
+ export * from "./events/types/index.js";
@@ -39,5 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.events = exports.bulletins = void 0;
40
40
  __exportStar(require("./bulletins/client/requests/index.js"), exports);
41
41
  exports.bulletins = __importStar(require("./bulletins/index.js"));
42
+ __exportStar(require("./bulletins/types/index.js"), exports);
42
43
  __exportStar(require("./events/client/requests/index.js"), exports);
43
44
  exports.events = __importStar(require("./events/index.js"));
45
+ __exportStar(require("./events/types/index.js"), exports);
@@ -0,0 +1,3 @@
1
+ export interface FavoriteBusinessesResponse {
2
+ favorited: boolean;
3
+ }
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface ListTemporaryLocationsBusinessesResponse {
3
+ data: FiveOneEat.CustomerTemporaryLocation[];
4
+ }
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface MenusBusinessesResponse {
3
+ data: FiveOneEat.CustomerMenuResponse;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface PhotosBusinessesResponse {
3
+ data: FiveOneEat.CustomerPhotoResponse;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface ProfileBusinessesResponse {
3
+ data: FiveOneEat.CustomerBusinessProfile;
4
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./FavoriteBusinessesResponse.js";
2
+ export * from "./ListTemporaryLocationsBusinessesResponse.js";
3
+ export * from "./MenusBusinessesResponse.js";
4
+ export * from "./PhotosBusinessesResponse.js";
5
+ export * from "./ProfileBusinessesResponse.js";
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
3
  if (k2 === undefined) k2 = k;
5
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -15,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
15
  };
17
16
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.CustomerShopClient = void 0;
19
- var Client_js_1 = require("./client/Client.js");
20
- Object.defineProperty(exports, "CustomerShopClient", { enumerable: true, get: function () { return Client_js_1.CustomerShopClient; } });
21
- __exportStar(require("./client/index.js"), exports);
17
+ __exportStar(require("./FavoriteBusinessesResponse.js"), exports);
18
+ __exportStar(require("./ListTemporaryLocationsBusinessesResponse.js"), exports);
19
+ __exportStar(require("./MenusBusinessesResponse.js"), exports);
20
+ __exportStar(require("./PhotosBusinessesResponse.js"), exports);
21
+ __exportStar(require("./ProfileBusinessesResponse.js"), exports);
@@ -3,6 +3,7 @@ export * as auth from "./auth/index.js";
3
3
  export * from "./auth/types/index.js";
4
4
  export * from "./businesses/client/requests/index.js";
5
5
  export * as businesses from "./businesses/index.js";
6
+ export * from "./businesses/types/index.js";
6
7
  export * from "./cart/client/requests/index.js";
7
8
  export * as cart from "./cart/index.js";
8
9
  export * from "./cart/types/index.js";
@@ -31,3 +32,4 @@ export * as pushNotifications from "./pushNotifications/index.js";
31
32
  export * from "./pushNotifications/types/index.js";
32
33
  export * from "./shop/client/requests/index.js";
33
34
  export * as shop from "./shop/index.js";
35
+ export * from "./shop/types/index.js";
@@ -42,6 +42,7 @@ exports.auth = __importStar(require("./auth/index.js"));
42
42
  __exportStar(require("./auth/types/index.js"), exports);
43
43
  __exportStar(require("./businesses/client/requests/index.js"), exports);
44
44
  exports.businesses = __importStar(require("./businesses/index.js"));
45
+ __exportStar(require("./businesses/types/index.js"), exports);
45
46
  __exportStar(require("./cart/client/requests/index.js"), exports);
46
47
  exports.cart = __importStar(require("./cart/index.js"));
47
48
  __exportStar(require("./cart/types/index.js"), exports);
@@ -70,3 +71,4 @@ exports.pushNotifications = __importStar(require("./pushNotifications/index.js")
70
71
  __exportStar(require("./pushNotifications/types/index.js"), exports);
71
72
  __exportStar(require("./shop/client/requests/index.js"), exports);
72
73
  exports.shop = __importStar(require("./shop/index.js"));
74
+ __exportStar(require("./shop/types/index.js"), exports);