@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
package/README.md CHANGED
@@ -45,10 +45,8 @@ Instantiate and use the client with the following:
45
45
  import { FiveOneEatClient } from "@51eat/sdk";
46
46
 
47
47
  const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
48
- await client.customerBusinesses.createBulletinComment({
49
- handle: "katzs-deli",
50
- bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
51
- body: "body"
48
+ await client.recordClick.adsRecordClick({
49
+ advertisement: "advertisement"
52
50
  });
53
51
  ```
54
52
 
@@ -86,7 +84,7 @@ will be thrown.
86
84
  import { FiveOneEatError } from "@51eat/sdk";
87
85
 
88
86
  try {
89
- await client.customerBusinesses.createBulletinComment(...);
87
+ await client.recordClick.adsRecordClick(...);
90
88
  } catch (err) {
91
89
  if (err instanceof FiveOneEatError) {
92
90
  console.log(err.statusCode);
@@ -168,7 +166,7 @@ const client = new FiveOneEatClient({
168
166
  }
169
167
  });
170
168
 
171
- const response = await client.customerBusinesses.createBulletinComment(..., {
169
+ const response = await client.recordClick.adsRecordClick(..., {
172
170
  headers: {
173
171
  'X-Custom-Header': 'custom value'
174
172
  }
@@ -180,7 +178,7 @@ const response = await client.customerBusinesses.createBulletinComment(..., {
180
178
  If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
181
179
 
182
180
  ```typescript
183
- const response = await client.customerBusinesses.createBulletinComment(..., {
181
+ const response = await client.recordClick.adsRecordClick(..., {
184
182
  queryParams: {
185
183
  'customQueryParamKey': 'custom query param value'
186
184
  }
@@ -202,7 +200,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
202
200
  Use the `maxRetries` request option to configure this behavior.
203
201
 
204
202
  ```typescript
205
- const response = await client.customerBusinesses.createBulletinComment(..., {
203
+ const response = await client.recordClick.adsRecordClick(..., {
206
204
  maxRetries: 0 // override maxRetries at the request level
207
205
  });
208
206
  ```
@@ -212,7 +210,7 @@ const response = await client.customerBusinesses.createBulletinComment(..., {
212
210
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
213
211
 
214
212
  ```typescript
215
- const response = await client.customerBusinesses.createBulletinComment(..., {
213
+ const response = await client.recordClick.adsRecordClick(..., {
216
214
  timeoutInSeconds: 30 // override timeout to 30s
217
215
  });
218
216
  ```
@@ -223,7 +221,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
223
221
 
224
222
  ```typescript
225
223
  const controller = new AbortController();
226
- const response = await client.customerBusinesses.createBulletinComment(..., {
224
+ const response = await client.recordClick.adsRecordClick(..., {
227
225
  abortSignal: controller.signal
228
226
  });
229
227
  controller.abort(); // aborts the request
@@ -235,7 +233,7 @@ The SDK provides access to raw response data, including headers, through the `.w
235
233
  The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
236
234
 
237
235
  ```typescript
238
- const { data, rawResponse } = await client.customerBusinesses.createBulletinComment(...).withRawResponse();
236
+ const { data, rawResponse } = await client.recordClick.adsRecordClick(...).withRawResponse();
239
237
 
240
238
  console.log(data);
241
239
  console.log(rawResponse.headers['X-My-Header']);
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@51eat/sdk",
46
- "X-Fern-SDK-Version": "0.0.43",
47
- "User-Agent": "@51eat/sdk/0.0.43",
46
+ "X-Fern-SDK-Version": "0.0.45",
47
+ "User-Agent": "@51eat/sdk/0.0.45",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,10 +1,8 @@
1
1
  import { BusinessClient } from "./api/resources/business/client/Client.js";
2
2
  import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.js";
3
3
  import { CustomerClient } from "./api/resources/customer/client/Client.js";
4
- import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.js";
5
4
  import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.js";
6
5
  import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
7
- import { CustomerShopClient } from "./api/resources/customerShop/client/Client.js";
8
6
  import { RecordClickClient } from "./api/resources/recordClick/client/Client.js";
9
7
  import { ServeAdClient } from "./api/resources/serveAd/client/Client.js";
10
8
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
@@ -18,21 +16,17 @@ export declare namespace FiveOneEatClient {
18
16
  export declare class FiveOneEatClient {
19
17
  protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
20
18
  protected _businessMessaging: BusinessMessagingClient | undefined;
21
- protected _customerBusinesses: CustomerBusinessesClient | undefined;
22
19
  protected _customerMessaging: CustomerMessagingClient | undefined;
23
20
  protected _customerMyAccount: CustomerMyAccountClient | undefined;
24
21
  protected _customer: CustomerClient | undefined;
25
- protected _customerShop: CustomerShopClient | undefined;
26
22
  protected _recordClick: RecordClickClient | undefined;
27
23
  protected _serveAd: ServeAdClient | undefined;
28
24
  protected _business: BusinessClient | undefined;
29
25
  constructor(options?: FiveOneEatClient.Options);
30
26
  get businessMessaging(): BusinessMessagingClient;
31
- get customerBusinesses(): CustomerBusinessesClient;
32
27
  get customerMessaging(): CustomerMessagingClient;
33
28
  get customerMyAccount(): CustomerMyAccountClient;
34
29
  get customer(): CustomerClient;
35
- get customerShop(): CustomerShopClient;
36
30
  get recordClick(): RecordClickClient;
37
31
  get serveAd(): ServeAdClient;
38
32
  get business(): BusinessClient;
@@ -47,12 +47,10 @@ exports.FiveOneEatClient = void 0;
47
47
  const Client_js_1 = require("./api/resources/business/client/Client.js");
48
48
  const Client_js_2 = require("./api/resources/businessMessaging/client/Client.js");
49
49
  const Client_js_3 = require("./api/resources/customer/client/Client.js");
50
- const Client_js_4 = require("./api/resources/customerBusinesses/client/Client.js");
51
- const Client_js_5 = require("./api/resources/customerMessaging/client/Client.js");
52
- const Client_js_6 = require("./api/resources/customerMyAccount/client/Client.js");
53
- const Client_js_7 = require("./api/resources/customerShop/client/Client.js");
54
- const Client_js_8 = require("./api/resources/recordClick/client/Client.js");
55
- const Client_js_9 = require("./api/resources/serveAd/client/Client.js");
50
+ const Client_js_4 = require("./api/resources/customerMessaging/client/Client.js");
51
+ const Client_js_5 = require("./api/resources/customerMyAccount/client/Client.js");
52
+ const Client_js_6 = require("./api/resources/recordClick/client/Client.js");
53
+ const Client_js_7 = require("./api/resources/serveAd/client/Client.js");
56
54
  const BaseClient_js_1 = require("./BaseClient.js");
57
55
  const core = __importStar(require("./core/index.js"));
58
56
  class FiveOneEatClient {
@@ -63,33 +61,25 @@ class FiveOneEatClient {
63
61
  var _a;
64
62
  return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new Client_js_2.BusinessMessagingClient(this._options)));
65
63
  }
66
- get customerBusinesses() {
67
- var _a;
68
- return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new Client_js_4.CustomerBusinessesClient(this._options)));
69
- }
70
64
  get customerMessaging() {
71
65
  var _a;
72
- return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_5.CustomerMessagingClient(this._options)));
66
+ return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_4.CustomerMessagingClient(this._options)));
73
67
  }
74
68
  get customerMyAccount() {
75
69
  var _a;
76
- return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_6.CustomerMyAccountClient(this._options)));
70
+ return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_5.CustomerMyAccountClient(this._options)));
77
71
  }
78
72
  get customer() {
79
73
  var _a;
80
74
  return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_3.CustomerClient(this._options)));
81
75
  }
82
- get customerShop() {
83
- var _a;
84
- return ((_a = this._customerShop) !== null && _a !== void 0 ? _a : (this._customerShop = new Client_js_7.CustomerShopClient(this._options)));
85
- }
86
76
  get recordClick() {
87
77
  var _a;
88
- return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_8.RecordClickClient(this._options)));
78
+ return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_6.RecordClickClient(this._options)));
89
79
  }
90
80
  get serveAd() {
91
81
  var _a;
92
- return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_9.ServeAdClient(this._options)));
82
+ return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_7.ServeAdClient(this._options)));
93
83
  }
94
84
  get business() {
95
85
  var _a;
@@ -30,6 +30,7 @@ export interface UpdateProductRequest {
30
30
  taxable?: boolean;
31
31
  tax_code?: string | null;
32
32
  is_active?: boolean;
33
+ published_at?: string | null;
33
34
  is_featured?: boolean;
34
35
  category_ids?: number[] | null;
35
36
  }
@@ -22,6 +22,7 @@ export declare namespace CustomerClient {
22
22
  export declare class CustomerClient {
23
23
  protected readonly _options: NormalizedClientOptionsWithAuth<CustomerClient.Options>;
24
24
  protected _auth: AuthClient | undefined;
25
+ protected _businesses: BusinessesClient | undefined;
25
26
  protected _cart: CartClient | undefined;
26
27
  protected _explore: ExploreClient | undefined;
27
28
  protected _discovery: DiscoveryClient | undefined;
@@ -31,10 +32,10 @@ export declare class CustomerClient {
31
32
  protected _me: MeClient | undefined;
32
33
  protected _productOrders: ProductOrdersClient | undefined;
33
34
  protected _pushNotifications: PushNotificationsClient | undefined;
34
- protected _businesses: BusinessesClient | undefined;
35
35
  protected _shop: ShopClient | undefined;
36
36
  constructor(options?: CustomerClient.Options);
37
37
  get auth(): AuthClient;
38
+ get businesses(): BusinessesClient;
38
39
  get cart(): CartClient;
39
40
  get explore(): ExploreClient;
40
41
  get discovery(): DiscoveryClient;
@@ -44,7 +45,6 @@ export declare class CustomerClient {
44
45
  get me(): MeClient;
45
46
  get productOrders(): ProductOrdersClient;
46
47
  get pushNotifications(): PushNotificationsClient;
47
- get businesses(): BusinessesClient;
48
48
  get shop(): ShopClient;
49
49
  /**
50
50
  * Returns grouped results for each type. Use per_type to control how many results
@@ -72,6 +72,10 @@ class CustomerClient {
72
72
  var _a;
73
73
  return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_1.AuthClient(this._options)));
74
74
  }
75
+ get businesses() {
76
+ var _a;
77
+ return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new Client_js_2.BusinessesClient(this._options)));
78
+ }
75
79
  get cart() {
76
80
  var _a;
77
81
  return ((_a = this._cart) !== null && _a !== void 0 ? _a : (this._cart = new Client_js_3.CartClient(this._options)));
@@ -108,10 +112,6 @@ class CustomerClient {
108
112
  var _a;
109
113
  return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new Client_js_11.PushNotificationsClient(this._options)));
110
114
  }
111
- get businesses() {
112
- var _a;
113
- return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new Client_js_2.BusinessesClient(this._options)));
114
- }
115
115
  get shop() {
116
116
  var _a;
117
117
  return ((_a = this._shop) !== null && _a !== void 0 ? _a : (this._shop = new Client_js_12.ShopClient(this._options)));
@@ -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
  import { BulletinsClient } from "../resources/bulletins/client/Client.js";
6
6
  import { EventsClient } from "../resources/events/client/Client.js";
7
7
  export declare namespace BusinessesClient {
@@ -17,69 +17,97 @@ export declare class BusinessesClient {
17
17
  get bulletins(): BulletinsClient;
18
18
  get events(): EventsClient;
19
19
  /**
20
+ * Retrieve core business information for the profile page.
21
+ *
20
22
  * @param {FiveOneEat.customer.ProfileBusinessesRequest} request
21
23
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
22
24
  *
25
+ * @throws {@link FiveOneEat.UnauthorizedError}
26
+ *
23
27
  * @example
24
28
  * await client.customer.businesses.profile({
25
- * business: "business"
29
+ * business: "katzs-deli"
26
30
  * })
27
31
  */
28
- profile(request: FiveOneEat.customer.ProfileBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
32
+ profile(request: FiveOneEat.customer.ProfileBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ProfileBusinessesResponse>;
29
33
  private __profile;
30
34
  /**
35
+ * Retrieve all menus organized by groups for the business.
36
+ *
31
37
  * @param {FiveOneEat.customer.MenusBusinessesRequest} request
32
38
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
33
39
  *
40
+ * @throws {@link FiveOneEat.UnauthorizedError}
41
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
42
+ *
34
43
  * @example
35
44
  * await client.customer.businesses.menus({
36
- * business: "business"
45
+ * business: "katzs-deli"
37
46
  * })
38
47
  */
39
- menus(request: FiveOneEat.customer.MenusBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
48
+ menus(request: FiveOneEat.customer.MenusBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.MenusBusinessesResponse>;
40
49
  private __menus;
41
50
  /**
51
+ * Retrieve photo gallery for the business with pagination.
52
+ *
42
53
  * @param {FiveOneEat.customer.PhotosBusinessesRequest} request
43
54
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
44
55
  *
56
+ * @throws {@link FiveOneEat.UnauthorizedError}
57
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
58
+ *
45
59
  * @example
46
60
  * await client.customer.businesses.photos({
47
- * business: "business"
61
+ * business: "katzs-deli"
48
62
  * })
49
63
  */
50
- photos(request: FiveOneEat.customer.PhotosBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
64
+ photos(request: FiveOneEat.customer.PhotosBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.PhotosBusinessesResponse>;
51
65
  private __photos;
52
66
  /**
67
+ * Add a business to the authenticated user's favorites.
68
+ *
53
69
  * @param {FiveOneEat.customer.FavoriteBusinessesRequest} request
54
70
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
55
71
  *
72
+ * @throws {@link FiveOneEat.UnauthorizedError}
73
+ * @throws {@link FiveOneEat.NotFoundError}
74
+ * @throws {@link FiveOneEat.ConflictError}
75
+ *
56
76
  * @example
57
77
  * await client.customer.businesses.favorite({
58
- * business: "business"
78
+ * business: "katzs-deli"
59
79
  * })
60
80
  */
61
- favorite(request: FiveOneEat.customer.FavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
81
+ favorite(request: FiveOneEat.customer.FavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.FavoriteBusinessesResponse>;
62
82
  private __favorite;
63
83
  /**
84
+ * Remove a business from the authenticated user's favorites.
85
+ *
64
86
  * @param {FiveOneEat.customer.UnfavoriteBusinessesRequest} request
65
87
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
66
88
  *
89
+ * @throws {@link FiveOneEat.UnauthorizedError}
90
+ *
67
91
  * @example
68
92
  * await client.customer.businesses.unfavorite({
69
- * business: "business"
93
+ * business: "katzs-deli"
70
94
  * })
71
95
  */
72
- unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
96
+ unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
73
97
  private __unfavorite;
74
98
  /**
99
+ * Retrieve active and upcoming temporary locations for a business.
100
+ *
75
101
  * @param {FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest} request
76
102
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
77
103
  *
104
+ * @throws {@link FiveOneEat.UnauthorizedError}
105
+ *
78
106
  * @example
79
107
  * await client.customer.businesses.listTemporaryLocations({
80
- * business: "business"
108
+ * business: "katzs-deli"
81
109
  * })
82
110
  */
83
- listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
111
+ listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListTemporaryLocationsBusinessesResponse>;
84
112
  private __listTemporaryLocations;
85
113
  }