@51eat/sdk 0.0.61 → 0.0.63

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 (329) hide show
  1. package/README.md +13 -15
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +9 -0
  4. package/dist/cjs/Client.js +35 -20
  5. package/dist/cjs/api/resources/business/resources/bulletins/client/Client.d.ts +7 -0
  6. package/dist/cjs/api/resources/business/resources/bulletins/client/Client.js +21 -0
  7. package/dist/cjs/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.ts +0 -12
  8. package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.ts +0 -12
  9. package/dist/cjs/api/resources/business/resources/events/client/Client.d.ts +8 -0
  10. package/dist/cjs/api/resources/business/resources/events/client/Client.js +24 -0
  11. package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.d.ts +1 -1
  12. package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts +1 -1
  13. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.d.ts +2 -0
  14. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.js +6 -0
  15. package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.d.ts +2 -0
  16. package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.js +6 -0
  17. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.ts +2 -0
  18. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.js +6 -0
  19. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.ts +1 -1
  20. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +1 -1
  21. package/dist/cjs/api/resources/business/resources/menus/client/Client.d.ts +5 -0
  22. package/dist/cjs/api/resources/business/resources/menus/client/Client.js +15 -0
  23. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/Client.d.ts +5 -2
  24. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/Client.js +10 -1
  25. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.d.ts → ReorderMenuGroupsRequest.d.ts} +3 -3
  26. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/index.d.ts +1 -1
  27. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/Client.d.ts +7 -4
  28. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/Client.js +11 -2
  29. package/dist/{esm/api/resources/business/resources/menus/resources/items/client/requests/MoveItemsRequest.d.mts → cjs/api/resources/business/resources/menus/resources/items/client/requests/MoveMenuItemRequest.d.ts} +1 -1
  30. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.d.ts → ReorderMenuItemsRequest.d.ts} +3 -3
  31. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/index.d.ts +2 -2
  32. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.d.ts +2 -0
  33. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.js +6 -0
  34. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.d.ts +2 -0
  35. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.js +6 -0
  36. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +4 -0
  37. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.js +12 -0
  38. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +4 -0
  39. package/dist/cjs/api/resources/business/resources/products/client/Client.js +12 -0
  40. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +1 -0
  41. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +3 -0
  42. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +1 -0
  43. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +3 -0
  44. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +1 -0
  45. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +3 -0
  46. package/dist/cjs/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.ts +0 -13
  47. package/dist/cjs/api/resources/businessHours/client/Client.d.ts +91 -0
  48. package/dist/cjs/api/resources/businessHours/client/Client.js +361 -0
  49. package/dist/cjs/api/resources/businessHours/client/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/businessHours/client/index.js +17 -0
  51. package/dist/cjs/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.d.ts +10 -0
  52. package/dist/cjs/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.js +3 -0
  53. package/dist/cjs/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.d.ts +16 -0
  54. package/dist/cjs/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.js +3 -0
  55. package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.d.ts +19 -0
  56. package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.js +3 -0
  57. package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.d.ts +25 -0
  58. package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.js +3 -0
  59. package/dist/cjs/api/resources/businessHours/client/requests/index.d.ts +4 -0
  60. package/dist/cjs/api/resources/businessHours/client/requests/index.js +2 -0
  61. package/dist/cjs/api/resources/businessHours/exports.d.ts +2 -0
  62. package/dist/cjs/api/resources/businessHours/exports.js +21 -0
  63. package/dist/cjs/api/resources/businessHours/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/businessHours/index.js +18 -0
  65. package/dist/cjs/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.d.ts +4 -0
  66. package/dist/cjs/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.js +3 -0
  67. package/dist/cjs/api/resources/businessHours/types/GetBusinessHoursResponse.d.ts +4 -0
  68. package/dist/cjs/api/resources/businessHours/types/GetBusinessHoursResponse.js +3 -0
  69. package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.d.ts +4 -0
  70. package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.js +3 -0
  71. package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHoursResponse.d.ts +4 -0
  72. package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHoursResponse.js +3 -0
  73. package/dist/cjs/api/resources/businessHours/types/index.d.ts +4 -0
  74. package/dist/cjs/api/resources/businessHours/types/index.js +20 -0
  75. package/dist/cjs/api/resources/businessProducts/client/Client.d.ts +2 -0
  76. package/dist/cjs/api/resources/businessProducts/client/Client.js +6 -0
  77. package/dist/cjs/api/resources/businessStands/client/Client.d.ts +106 -0
  78. package/dist/cjs/api/resources/businessStands/client/Client.js +421 -0
  79. package/dist/cjs/api/resources/businessStands/client/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/businessStands/client/index.js +17 -0
  81. package/dist/cjs/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.ts +10 -0
  82. package/dist/cjs/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.js +3 -0
  83. package/dist/cjs/api/resources/businessStands/client/requests/GetBusinessStandRequest.d.ts +10 -0
  84. package/dist/cjs/api/resources/businessStands/client/requests/GetBusinessStandRequest.js +3 -0
  85. package/dist/cjs/api/resources/businessStands/client/requests/StoreStandRequest.d.ts +18 -0
  86. package/dist/cjs/api/resources/businessStands/client/requests/StoreStandRequest.js +3 -0
  87. package/dist/cjs/api/resources/businessStands/client/requests/SyncStandProductsRequest.d.ts +12 -0
  88. package/dist/cjs/api/resources/businessStands/client/requests/SyncStandProductsRequest.js +3 -0
  89. package/dist/cjs/api/resources/businessStands/client/requests/UpdateStandRequest.d.ts +20 -0
  90. package/dist/cjs/api/resources/businessStands/client/requests/UpdateStandRequest.js +3 -0
  91. package/dist/cjs/api/resources/businessStands/client/requests/index.d.ts +5 -0
  92. package/dist/cjs/api/resources/businessStands/client/requests/index.js +2 -0
  93. package/dist/cjs/api/resources/businessStands/exports.d.ts +2 -0
  94. package/dist/cjs/api/resources/businessStands/exports.js +21 -0
  95. package/dist/cjs/api/resources/businessStands/index.d.ts +2 -0
  96. package/dist/cjs/api/resources/businessStands/index.js +18 -0
  97. package/dist/cjs/api/resources/businessStands/types/CreateBusinessStandResponse.d.ts +4 -0
  98. package/dist/cjs/api/resources/businessStands/types/CreateBusinessStandResponse.js +3 -0
  99. package/dist/cjs/api/resources/businessStands/types/GetBusinessStandResponse.d.ts +4 -0
  100. package/dist/cjs/api/resources/businessStands/types/GetBusinessStandResponse.js +3 -0
  101. package/dist/cjs/api/resources/businessStands/types/ListBusinessStandsResponse.d.ts +4 -0
  102. package/dist/cjs/api/resources/businessStands/types/ListBusinessStandsResponse.js +3 -0
  103. package/dist/cjs/api/resources/businessStands/types/UpdateBusinessStandResponse.d.ts +4 -0
  104. package/dist/cjs/api/resources/businessStands/types/UpdateBusinessStandResponse.js +3 -0
  105. package/dist/cjs/api/resources/businessStands/types/index.d.ts +4 -0
  106. package/dist/cjs/api/resources/businessStands/types/index.js +20 -0
  107. package/dist/cjs/api/resources/customerStands/client/Client.d.ts +63 -0
  108. package/dist/cjs/api/resources/customerStands/client/Client.js +245 -0
  109. package/dist/cjs/api/resources/customerStands/client/index.d.ts +1 -0
  110. package/dist/cjs/api/resources/customerStands/client/index.js +17 -0
  111. package/dist/cjs/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.d.ts +11 -0
  112. package/dist/cjs/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.js +3 -0
  113. package/dist/cjs/api/resources/customerStands/client/requests/ScanStandRequest.d.ts +10 -0
  114. package/dist/cjs/api/resources/customerStands/client/requests/ScanStandRequest.js +3 -0
  115. package/dist/cjs/api/resources/customerStands/client/requests/SelfCheckoutRequest.d.ts +12 -0
  116. package/dist/cjs/api/resources/customerStands/client/requests/SelfCheckoutRequest.js +3 -0
  117. package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +3 -0
  118. package/dist/cjs/api/resources/customerStands/client/requests/index.js +2 -0
  119. package/dist/cjs/api/resources/customerStands/exports.d.ts +2 -0
  120. package/dist/cjs/api/resources/customerStands/exports.js +21 -0
  121. package/dist/cjs/api/resources/customerStands/index.d.ts +2 -0
  122. package/dist/cjs/api/resources/customerStands/index.js +18 -0
  123. package/dist/cjs/api/resources/customerStands/types/CreateStandPaymentIntentResponse.d.ts +6 -0
  124. package/dist/cjs/api/resources/customerStands/types/CreateStandPaymentIntentResponse.js +3 -0
  125. package/dist/cjs/api/resources/customerStands/types/ScanStandResponse.d.ts +4 -0
  126. package/dist/cjs/api/resources/customerStands/types/ScanStandResponse.js +3 -0
  127. package/dist/cjs/api/resources/customerStands/types/StandCheckoutResponse.d.ts +4 -0
  128. package/dist/cjs/api/resources/customerStands/types/StandCheckoutResponse.js +3 -0
  129. package/dist/cjs/api/resources/customerStands/types/index.d.ts +3 -0
  130. package/dist/cjs/api/resources/customerStands/types/index.js +19 -0
  131. package/dist/cjs/api/resources/index.d.ts +9 -0
  132. package/dist/cjs/api/resources/index.js +10 -1
  133. package/dist/cjs/api/types/BusinessEvent.d.ts +3 -0
  134. package/dist/cjs/api/types/BusinessHourExceptionResource.d.ts +10 -0
  135. package/dist/cjs/api/types/BusinessHourExceptionResource.js +3 -0
  136. package/dist/cjs/api/types/BusinessHourSlotResource.d.ts +6 -0
  137. package/dist/cjs/api/types/BusinessHourSlotResource.js +3 -0
  138. package/dist/cjs/api/types/BusinessHoursResource.d.ts +7 -0
  139. package/dist/cjs/api/types/BusinessHoursResource.js +3 -0
  140. package/dist/cjs/api/types/BusinessInventoryLog.d.ts +2 -2
  141. package/dist/cjs/api/types/BusinessMenu.d.ts +1 -0
  142. package/dist/cjs/api/types/BusinessMenuItem.d.ts +5 -1
  143. package/dist/cjs/api/types/BusinessProduct.d.ts +14 -0
  144. package/dist/cjs/api/types/BusinessProductCategory.d.ts +1 -0
  145. package/dist/cjs/api/types/BusinessProfile.d.ts +6 -9
  146. package/dist/cjs/api/types/BusinessScheduleDayResource.d.ts +5 -0
  147. package/dist/cjs/api/types/BusinessScheduleDayResource.js +3 -0
  148. package/dist/cjs/api/types/BusinessStand.d.ts +16 -0
  149. package/dist/cjs/api/types/BusinessStand.js +3 -0
  150. package/dist/cjs/api/types/CustomerBusinessProfile.d.ts +6 -10
  151. package/dist/cjs/api/types/CustomerCartItem.d.ts +1 -1
  152. package/dist/cjs/api/types/CustomerEventDetail.d.ts +1 -1
  153. package/dist/cjs/api/types/EventFeedItem.d.ts +1 -1
  154. package/dist/cjs/api/types/ExploreEvent.d.ts +2 -1
  155. package/dist/cjs/api/types/ExploreTemporaryLocation.d.ts +2 -1
  156. package/dist/cjs/api/types/StandShop.d.ts +24 -0
  157. package/dist/cjs/api/types/StandShop.js +3 -0
  158. package/dist/cjs/api/types/index.d.ts +6 -0
  159. package/dist/cjs/api/types/index.js +6 -0
  160. package/dist/cjs/version.d.ts +1 -1
  161. package/dist/cjs/version.js +1 -1
  162. package/dist/esm/BaseClient.mjs +2 -2
  163. package/dist/esm/Client.d.mts +9 -0
  164. package/dist/esm/Client.mjs +15 -0
  165. package/dist/esm/api/resources/business/resources/bulletins/client/Client.d.mts +7 -0
  166. package/dist/esm/api/resources/business/resources/bulletins/client/Client.mjs +21 -0
  167. package/dist/esm/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.mts +0 -12
  168. package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.mts +0 -12
  169. package/dist/esm/api/resources/business/resources/events/client/Client.d.mts +8 -0
  170. package/dist/esm/api/resources/business/resources/events/client/Client.mjs +24 -0
  171. package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts +1 -1
  172. package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts +1 -1
  173. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.d.mts +2 -0
  174. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.mjs +6 -0
  175. package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.d.mts +2 -0
  176. package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.mjs +6 -0
  177. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.mts +2 -0
  178. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.mjs +6 -0
  179. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.mts +1 -1
  180. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.mts +1 -1
  181. package/dist/esm/api/resources/business/resources/menus/client/Client.d.mts +5 -0
  182. package/dist/esm/api/resources/business/resources/menus/client/Client.mjs +15 -0
  183. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/Client.d.mts +5 -2
  184. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/Client.mjs +10 -1
  185. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.d.mts → ReorderMenuGroupsRequest.d.mts} +3 -3
  186. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/index.d.mts +1 -1
  187. package/dist/esm/api/resources/business/resources/menus/resources/items/client/Client.d.mts +7 -4
  188. package/dist/esm/api/resources/business/resources/menus/resources/items/client/Client.mjs +11 -2
  189. package/dist/{cjs/api/resources/business/resources/menus/resources/items/client/requests/MoveItemsRequest.d.ts → esm/api/resources/business/resources/menus/resources/items/client/requests/MoveMenuItemRequest.d.mts} +1 -1
  190. package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.d.mts → ReorderMenuItemsRequest.d.mts} +3 -3
  191. package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/index.d.mts +2 -2
  192. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.d.mts +2 -0
  193. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.mjs +6 -0
  194. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.d.mts +2 -0
  195. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.mjs +6 -0
  196. package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +4 -0
  197. package/dist/esm/api/resources/business/resources/productCategories/client/Client.mjs +12 -0
  198. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +4 -0
  199. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +12 -0
  200. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +1 -0
  201. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +3 -0
  202. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +1 -0
  203. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +3 -0
  204. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +1 -0
  205. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +3 -0
  206. package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.mts +0 -13
  207. package/dist/esm/api/resources/businessHours/client/Client.d.mts +91 -0
  208. package/dist/esm/api/resources/businessHours/client/Client.mjs +324 -0
  209. package/dist/esm/api/resources/businessHours/client/index.d.mts +1 -0
  210. package/dist/esm/api/resources/businessHours/client/index.mjs +1 -0
  211. package/dist/esm/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.d.mts +10 -0
  212. package/dist/esm/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.mjs +2 -0
  213. package/dist/esm/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.d.mts +16 -0
  214. package/dist/esm/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.mjs +2 -0
  215. package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.d.mts +19 -0
  216. package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.mjs +2 -0
  217. package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.d.mts +25 -0
  218. package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.mjs +2 -0
  219. package/dist/esm/api/resources/businessHours/client/requests/index.d.mts +4 -0
  220. package/dist/esm/api/resources/businessHours/client/requests/index.mjs +1 -0
  221. package/dist/esm/api/resources/businessHours/exports.d.mts +2 -0
  222. package/dist/esm/api/resources/businessHours/exports.mjs +3 -0
  223. package/dist/esm/api/resources/businessHours/index.d.mts +2 -0
  224. package/dist/esm/api/resources/businessHours/index.mjs +2 -0
  225. package/dist/esm/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.d.mts +4 -0
  226. package/dist/esm/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.mjs +2 -0
  227. package/dist/esm/api/resources/businessHours/types/GetBusinessHoursResponse.d.mts +4 -0
  228. package/dist/esm/api/resources/businessHours/types/GetBusinessHoursResponse.mjs +2 -0
  229. package/dist/esm/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.d.mts +4 -0
  230. package/dist/esm/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.mjs +2 -0
  231. package/dist/esm/api/resources/businessHours/types/UpdateBusinessHoursResponse.d.mts +4 -0
  232. package/dist/esm/api/resources/businessHours/types/UpdateBusinessHoursResponse.mjs +2 -0
  233. package/dist/esm/api/resources/businessHours/types/index.d.mts +4 -0
  234. package/dist/esm/api/resources/businessHours/types/index.mjs +4 -0
  235. package/dist/esm/api/resources/businessProducts/client/Client.d.mts +2 -0
  236. package/dist/esm/api/resources/businessProducts/client/Client.mjs +6 -0
  237. package/dist/esm/api/resources/businessStands/client/Client.d.mts +106 -0
  238. package/dist/esm/api/resources/businessStands/client/Client.mjs +384 -0
  239. package/dist/esm/api/resources/businessStands/client/index.d.mts +1 -0
  240. package/dist/esm/api/resources/businessStands/client/index.mjs +1 -0
  241. package/dist/esm/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.mts +10 -0
  242. package/dist/esm/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.mjs +2 -0
  243. package/dist/esm/api/resources/businessStands/client/requests/GetBusinessStandRequest.d.mts +10 -0
  244. package/dist/esm/api/resources/businessStands/client/requests/GetBusinessStandRequest.mjs +2 -0
  245. package/dist/esm/api/resources/businessStands/client/requests/StoreStandRequest.d.mts +18 -0
  246. package/dist/esm/api/resources/businessStands/client/requests/StoreStandRequest.mjs +2 -0
  247. package/dist/esm/api/resources/businessStands/client/requests/SyncStandProductsRequest.d.mts +12 -0
  248. package/dist/esm/api/resources/businessStands/client/requests/SyncStandProductsRequest.mjs +2 -0
  249. package/dist/esm/api/resources/businessStands/client/requests/UpdateStandRequest.d.mts +20 -0
  250. package/dist/esm/api/resources/businessStands/client/requests/UpdateStandRequest.mjs +2 -0
  251. package/dist/esm/api/resources/businessStands/client/requests/index.d.mts +5 -0
  252. package/dist/esm/api/resources/businessStands/client/requests/index.mjs +1 -0
  253. package/dist/esm/api/resources/businessStands/exports.d.mts +2 -0
  254. package/dist/esm/api/resources/businessStands/exports.mjs +3 -0
  255. package/dist/esm/api/resources/businessStands/index.d.mts +2 -0
  256. package/dist/esm/api/resources/businessStands/index.mjs +2 -0
  257. package/dist/esm/api/resources/businessStands/types/CreateBusinessStandResponse.d.mts +4 -0
  258. package/dist/esm/api/resources/businessStands/types/CreateBusinessStandResponse.mjs +2 -0
  259. package/dist/esm/api/resources/businessStands/types/GetBusinessStandResponse.d.mts +4 -0
  260. package/dist/esm/api/resources/businessStands/types/GetBusinessStandResponse.mjs +2 -0
  261. package/dist/esm/api/resources/businessStands/types/ListBusinessStandsResponse.d.mts +4 -0
  262. package/dist/esm/api/resources/businessStands/types/ListBusinessStandsResponse.mjs +2 -0
  263. package/dist/esm/api/resources/businessStands/types/UpdateBusinessStandResponse.d.mts +4 -0
  264. package/dist/esm/api/resources/businessStands/types/UpdateBusinessStandResponse.mjs +2 -0
  265. package/dist/esm/api/resources/businessStands/types/index.d.mts +4 -0
  266. package/dist/esm/api/resources/businessStands/types/index.mjs +4 -0
  267. package/dist/esm/api/resources/customerStands/client/Client.d.mts +63 -0
  268. package/dist/esm/api/resources/customerStands/client/Client.mjs +208 -0
  269. package/dist/esm/api/resources/customerStands/client/index.d.mts +1 -0
  270. package/dist/esm/api/resources/customerStands/client/index.mjs +1 -0
  271. package/dist/esm/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.d.mts +11 -0
  272. package/dist/esm/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.mjs +2 -0
  273. package/dist/esm/api/resources/customerStands/client/requests/ScanStandRequest.d.mts +10 -0
  274. package/dist/esm/api/resources/customerStands/client/requests/ScanStandRequest.mjs +2 -0
  275. package/dist/esm/api/resources/customerStands/client/requests/SelfCheckoutRequest.d.mts +12 -0
  276. package/dist/esm/api/resources/customerStands/client/requests/SelfCheckoutRequest.mjs +2 -0
  277. package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +3 -0
  278. package/dist/esm/api/resources/customerStands/client/requests/index.mjs +1 -0
  279. package/dist/esm/api/resources/customerStands/exports.d.mts +2 -0
  280. package/dist/esm/api/resources/customerStands/exports.mjs +3 -0
  281. package/dist/esm/api/resources/customerStands/index.d.mts +2 -0
  282. package/dist/esm/api/resources/customerStands/index.mjs +2 -0
  283. package/dist/esm/api/resources/customerStands/types/CreateStandPaymentIntentResponse.d.mts +6 -0
  284. package/dist/esm/api/resources/customerStands/types/CreateStandPaymentIntentResponse.mjs +2 -0
  285. package/dist/esm/api/resources/customerStands/types/ScanStandResponse.d.mts +4 -0
  286. package/dist/esm/api/resources/customerStands/types/ScanStandResponse.mjs +2 -0
  287. package/dist/esm/api/resources/customerStands/types/StandCheckoutResponse.d.mts +4 -0
  288. package/dist/esm/api/resources/customerStands/types/StandCheckoutResponse.mjs +2 -0
  289. package/dist/esm/api/resources/customerStands/types/index.d.mts +3 -0
  290. package/dist/esm/api/resources/customerStands/types/index.mjs +3 -0
  291. package/dist/esm/api/resources/index.d.mts +9 -0
  292. package/dist/esm/api/resources/index.mjs +9 -0
  293. package/dist/esm/api/types/BusinessEvent.d.mts +3 -0
  294. package/dist/esm/api/types/BusinessHourExceptionResource.d.mts +10 -0
  295. package/dist/esm/api/types/BusinessHourExceptionResource.mjs +2 -0
  296. package/dist/esm/api/types/BusinessHourSlotResource.d.mts +6 -0
  297. package/dist/esm/api/types/BusinessHourSlotResource.mjs +2 -0
  298. package/dist/esm/api/types/BusinessHoursResource.d.mts +7 -0
  299. package/dist/esm/api/types/BusinessHoursResource.mjs +2 -0
  300. package/dist/esm/api/types/BusinessInventoryLog.d.mts +2 -2
  301. package/dist/esm/api/types/BusinessMenu.d.mts +1 -0
  302. package/dist/esm/api/types/BusinessMenuItem.d.mts +5 -1
  303. package/dist/esm/api/types/BusinessProduct.d.mts +14 -0
  304. package/dist/esm/api/types/BusinessProductCategory.d.mts +1 -0
  305. package/dist/esm/api/types/BusinessProfile.d.mts +6 -9
  306. package/dist/esm/api/types/BusinessScheduleDayResource.d.mts +5 -0
  307. package/dist/esm/api/types/BusinessScheduleDayResource.mjs +2 -0
  308. package/dist/esm/api/types/BusinessStand.d.mts +16 -0
  309. package/dist/esm/api/types/BusinessStand.mjs +2 -0
  310. package/dist/esm/api/types/CustomerBusinessProfile.d.mts +6 -10
  311. package/dist/esm/api/types/CustomerCartItem.d.mts +1 -1
  312. package/dist/esm/api/types/CustomerEventDetail.d.mts +1 -1
  313. package/dist/esm/api/types/EventFeedItem.d.mts +1 -1
  314. package/dist/esm/api/types/ExploreEvent.d.mts +2 -1
  315. package/dist/esm/api/types/ExploreTemporaryLocation.d.mts +2 -1
  316. package/dist/esm/api/types/StandShop.d.mts +24 -0
  317. package/dist/esm/api/types/StandShop.mjs +2 -0
  318. package/dist/esm/api/types/index.d.mts +6 -0
  319. package/dist/esm/api/types/index.mjs +6 -0
  320. package/dist/esm/version.d.mts +1 -1
  321. package/dist/esm/version.mjs +1 -1
  322. package/package.json +34 -1
  323. package/reference.md +809 -57
  324. /package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.js → ReorderMenuGroupsRequest.js} +0 -0
  325. /package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{MoveItemsRequest.js → MoveMenuItemRequest.js} +0 -0
  326. /package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.js → ReorderMenuItemsRequest.js} +0 -0
  327. /package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.mjs → ReorderMenuGroupsRequest.mjs} +0 -0
  328. /package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{MoveItemsRequest.mjs → MoveMenuItemRequest.mjs} +0 -0
  329. /package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.mjs → ReorderMenuItemsRequest.mjs} +0 -0
package/README.md CHANGED
@@ -45,11 +45,9 @@ 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.businessProducts.adjustVariantInventory({
49
- variant: "variant",
50
- type: "add",
51
- quantity: 1,
52
- reason: "restock"
48
+ await client.businessHours.createBusinessHourException({
49
+ starts_on: "2024-01-15T09:30:00Z",
50
+ is_closed: true
53
51
  });
54
52
  ```
55
53
 
@@ -73,7 +71,7 @@ following namespace:
73
71
  ```typescript
74
72
  import { FiveOneEat } from "@51eat/sdk";
75
73
 
76
- const request: FiveOneEat.SearchBusinessConversationsRequest = {
74
+ const request: FiveOneEat.UpdateBusinessHoursRequest = {
77
75
  ...
78
76
  };
79
77
  ```
@@ -87,7 +85,7 @@ will be thrown.
87
85
  import { FiveOneEatError } from "@51eat/sdk";
88
86
 
89
87
  try {
90
- await client.businessProducts.adjustVariantInventory(...);
88
+ await client.businessHours.createBusinessHourException(...);
91
89
  } catch (err) {
92
90
  if (err instanceof FiveOneEatError) {
93
91
  console.log(err.statusCode);
@@ -150,9 +148,9 @@ For example, `fs.ReadStream` has a `path` property which the SDK uses to retriev
150
148
  This SDK supports direct imports of subpackage clients, which allows JavaScript bundlers to tree-shake and include only the imported subpackage code. This results in much smaller bundle sizes.
151
149
 
152
150
  ```typescript
153
- import { BusinessMessagingClient } from '@51eat/sdk/businessMessaging';
151
+ import { BusinessHoursClient } from '@51eat/sdk/businessHours';
154
152
 
155
- const client = new BusinessMessagingClient({...});
153
+ const client = new BusinessHoursClient({...});
156
154
  ```
157
155
 
158
156
  ### Additional Headers
@@ -169,7 +167,7 @@ const client = new FiveOneEatClient({
169
167
  }
170
168
  });
171
169
 
172
- const response = await client.businessProducts.adjustVariantInventory(..., {
170
+ const response = await client.businessHours.createBusinessHourException(..., {
173
171
  headers: {
174
172
  'X-Custom-Header': 'custom value'
175
173
  }
@@ -181,7 +179,7 @@ const response = await client.businessProducts.adjustVariantInventory(..., {
181
179
  If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
182
180
 
183
181
  ```typescript
184
- const response = await client.businessProducts.adjustVariantInventory(..., {
182
+ const response = await client.businessHours.createBusinessHourException(..., {
185
183
  queryParams: {
186
184
  'customQueryParamKey': 'custom query param value'
187
185
  }
@@ -203,7 +201,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
203
201
  Use the `maxRetries` request option to configure this behavior.
204
202
 
205
203
  ```typescript
206
- const response = await client.businessProducts.adjustVariantInventory(..., {
204
+ const response = await client.businessHours.createBusinessHourException(..., {
207
205
  maxRetries: 0 // override maxRetries at the request level
208
206
  });
209
207
  ```
@@ -213,7 +211,7 @@ const response = await client.businessProducts.adjustVariantInventory(..., {
213
211
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
214
212
 
215
213
  ```typescript
216
- const response = await client.businessProducts.adjustVariantInventory(..., {
214
+ const response = await client.businessHours.createBusinessHourException(..., {
217
215
  timeoutInSeconds: 30 // override timeout to 30s
218
216
  });
219
217
  ```
@@ -224,7 +222,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
224
222
 
225
223
  ```typescript
226
224
  const controller = new AbortController();
227
- const response = await client.businessProducts.adjustVariantInventory(..., {
225
+ const response = await client.businessHours.createBusinessHourException(..., {
228
226
  abortSignal: controller.signal
229
227
  });
230
228
  controller.abort(); // aborts the request
@@ -236,7 +234,7 @@ The SDK provides access to raw response data, including headers, through the `.w
236
234
  The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
237
235
 
238
236
  ```typescript
239
- const { data, rawResponse } = await client.businessProducts.adjustVariantInventory(...).withRawResponse();
237
+ const { data, rawResponse } = await client.businessHours.createBusinessHourException(...).withRawResponse();
240
238
 
241
239
  console.log(data);
242
240
  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.61",
47
- "User-Agent": "@51eat/sdk/0.0.61",
46
+ "X-Fern-SDK-Version": "0.0.63",
47
+ "User-Agent": "@51eat/sdk/0.0.63",
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,12 +1,15 @@
1
1
  import { BusinessClient } from "./api/resources/business/client/Client.js";
2
+ import { BusinessHoursClient } from "./api/resources/businessHours/client/Client.js";
2
3
  import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.js";
3
4
  import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.js";
4
5
  import { BusinessShippingClient } from "./api/resources/businessShipping/client/Client.js";
6
+ import { BusinessStandsClient } from "./api/resources/businessStands/client/Client.js";
5
7
  import { CustomerClient } from "./api/resources/customer/client/Client.js";
6
8
  import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.js";
7
9
  import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.js";
8
10
  import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.js";
9
11
  import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
12
+ import { CustomerStandsClient } from "./api/resources/customerStands/client/Client.js";
10
13
  import { RecordClickClient } from "./api/resources/recordClick/client/Client.js";
11
14
  import { ServeAdClient } from "./api/resources/serveAd/client/Client.js";
12
15
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
@@ -19,26 +22,32 @@ export declare namespace FiveOneEatClient {
19
22
  }
20
23
  export declare class FiveOneEatClient {
21
24
  protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
25
+ protected _businessHours: BusinessHoursClient | undefined;
22
26
  protected _businessMessaging: BusinessMessagingClient | undefined;
23
27
  protected _businessProducts: BusinessProductsClient | undefined;
24
28
  protected _businessShipping: BusinessShippingClient | undefined;
29
+ protected _businessStands: BusinessStandsClient | undefined;
25
30
  protected _customerBusinesses: CustomerBusinessesClient | undefined;
26
31
  protected _customerEvents: CustomerEventsClient | undefined;
27
32
  protected _customerMessaging: CustomerMessagingClient | undefined;
28
33
  protected _customerMyAccount: CustomerMyAccountClient | undefined;
29
34
  protected _customer: CustomerClient | undefined;
35
+ protected _customerStands: CustomerStandsClient | undefined;
30
36
  protected _recordClick: RecordClickClient | undefined;
31
37
  protected _serveAd: ServeAdClient | undefined;
32
38
  protected _business: BusinessClient | undefined;
33
39
  constructor(options?: FiveOneEatClient.Options);
40
+ get businessHours(): BusinessHoursClient;
34
41
  get businessMessaging(): BusinessMessagingClient;
35
42
  get businessProducts(): BusinessProductsClient;
36
43
  get businessShipping(): BusinessShippingClient;
44
+ get businessStands(): BusinessStandsClient;
37
45
  get customerBusinesses(): CustomerBusinessesClient;
38
46
  get customerEvents(): CustomerEventsClient;
39
47
  get customerMessaging(): CustomerMessagingClient;
40
48
  get customerMyAccount(): CustomerMyAccountClient;
41
49
  get customer(): CustomerClient;
50
+ get customerStands(): CustomerStandsClient;
42
51
  get recordClick(): RecordClickClient;
43
52
  get serveAd(): ServeAdClient;
44
53
  get business(): BusinessClient;
@@ -45,61 +45,76 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.FiveOneEatClient = void 0;
47
47
  const Client_js_1 = require("./api/resources/business/client/Client.js");
48
- const Client_js_2 = require("./api/resources/businessMessaging/client/Client.js");
49
- const Client_js_3 = require("./api/resources/businessProducts/client/Client.js");
50
- const Client_js_4 = require("./api/resources/businessShipping/client/Client.js");
51
- const Client_js_5 = require("./api/resources/customer/client/Client.js");
52
- const Client_js_6 = require("./api/resources/customerBusinesses/client/Client.js");
53
- const Client_js_7 = require("./api/resources/customerEvents/client/Client.js");
54
- const Client_js_8 = require("./api/resources/customerMessaging/client/Client.js");
55
- const Client_js_9 = require("./api/resources/customerMyAccount/client/Client.js");
56
- const Client_js_10 = require("./api/resources/recordClick/client/Client.js");
57
- const Client_js_11 = require("./api/resources/serveAd/client/Client.js");
48
+ const Client_js_2 = require("./api/resources/businessHours/client/Client.js");
49
+ const Client_js_3 = require("./api/resources/businessMessaging/client/Client.js");
50
+ const Client_js_4 = require("./api/resources/businessProducts/client/Client.js");
51
+ const Client_js_5 = require("./api/resources/businessShipping/client/Client.js");
52
+ const Client_js_6 = require("./api/resources/businessStands/client/Client.js");
53
+ const Client_js_7 = require("./api/resources/customer/client/Client.js");
54
+ const Client_js_8 = require("./api/resources/customerBusinesses/client/Client.js");
55
+ const Client_js_9 = require("./api/resources/customerEvents/client/Client.js");
56
+ const Client_js_10 = require("./api/resources/customerMessaging/client/Client.js");
57
+ const Client_js_11 = require("./api/resources/customerMyAccount/client/Client.js");
58
+ const Client_js_12 = require("./api/resources/customerStands/client/Client.js");
59
+ const Client_js_13 = require("./api/resources/recordClick/client/Client.js");
60
+ const Client_js_14 = require("./api/resources/serveAd/client/Client.js");
58
61
  const BaseClient_js_1 = require("./BaseClient.js");
59
62
  const core = __importStar(require("./core/index.js"));
60
63
  class FiveOneEatClient {
61
64
  constructor(options = {}) {
62
65
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
63
66
  }
67
+ get businessHours() {
68
+ var _a;
69
+ return ((_a = this._businessHours) !== null && _a !== void 0 ? _a : (this._businessHours = new Client_js_2.BusinessHoursClient(this._options)));
70
+ }
64
71
  get businessMessaging() {
65
72
  var _a;
66
- return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new Client_js_2.BusinessMessagingClient(this._options)));
73
+ return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new Client_js_3.BusinessMessagingClient(this._options)));
67
74
  }
68
75
  get businessProducts() {
69
76
  var _a;
70
- return ((_a = this._businessProducts) !== null && _a !== void 0 ? _a : (this._businessProducts = new Client_js_3.BusinessProductsClient(this._options)));
77
+ return ((_a = this._businessProducts) !== null && _a !== void 0 ? _a : (this._businessProducts = new Client_js_4.BusinessProductsClient(this._options)));
71
78
  }
72
79
  get businessShipping() {
73
80
  var _a;
74
- return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new Client_js_4.BusinessShippingClient(this._options)));
81
+ return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new Client_js_5.BusinessShippingClient(this._options)));
82
+ }
83
+ get businessStands() {
84
+ var _a;
85
+ return ((_a = this._businessStands) !== null && _a !== void 0 ? _a : (this._businessStands = new Client_js_6.BusinessStandsClient(this._options)));
75
86
  }
76
87
  get customerBusinesses() {
77
88
  var _a;
78
- return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new Client_js_6.CustomerBusinessesClient(this._options)));
89
+ return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new Client_js_8.CustomerBusinessesClient(this._options)));
79
90
  }
80
91
  get customerEvents() {
81
92
  var _a;
82
- return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new Client_js_7.CustomerEventsClient(this._options)));
93
+ return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new Client_js_9.CustomerEventsClient(this._options)));
83
94
  }
84
95
  get customerMessaging() {
85
96
  var _a;
86
- return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_8.CustomerMessagingClient(this._options)));
97
+ return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_10.CustomerMessagingClient(this._options)));
87
98
  }
88
99
  get customerMyAccount() {
89
100
  var _a;
90
- return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_9.CustomerMyAccountClient(this._options)));
101
+ return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_11.CustomerMyAccountClient(this._options)));
91
102
  }
92
103
  get customer() {
93
104
  var _a;
94
- return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_5.CustomerClient(this._options)));
105
+ return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_7.CustomerClient(this._options)));
106
+ }
107
+ get customerStands() {
108
+ var _a;
109
+ return ((_a = this._customerStands) !== null && _a !== void 0 ? _a : (this._customerStands = new Client_js_12.CustomerStandsClient(this._options)));
95
110
  }
96
111
  get recordClick() {
97
112
  var _a;
98
- return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_10.RecordClickClient(this._options)));
113
+ return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_13.RecordClickClient(this._options)));
99
114
  }
100
115
  get serveAd() {
101
116
  var _a;
102
- return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_11.ServeAdClient(this._options)));
117
+ return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_14.ServeAdClient(this._options)));
103
118
  }
104
119
  get business() {
105
120
  var _a;
@@ -17,6 +17,8 @@ export declare class BulletinsClient {
17
17
  * @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
19
  * @throws {@link FiveOneEat.UnauthorizedError}
20
+ * @throws {@link FiveOneEat.ForbiddenError}
21
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
20
22
  *
21
23
  * @example
22
24
  * await client.business.bulletins.list()
@@ -28,6 +30,7 @@ export declare class BulletinsClient {
28
30
  * @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
29
31
  *
30
32
  * @throws {@link FiveOneEat.UnauthorizedError}
33
+ * @throws {@link FiveOneEat.ForbiddenError}
31
34
  * @throws {@link FiveOneEat.UnprocessableEntityError}
32
35
  *
33
36
  * @example
@@ -46,6 +49,7 @@ export declare class BulletinsClient {
46
49
  * @throws {@link FiveOneEat.UnauthorizedError}
47
50
  * @throws {@link FiveOneEat.ForbiddenError}
48
51
  * @throws {@link FiveOneEat.NotFoundError}
52
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
49
53
  *
50
54
  * @example
51
55
  * await client.business.bulletins.get({
@@ -80,6 +84,7 @@ export declare class BulletinsClient {
80
84
  * @throws {@link FiveOneEat.UnauthorizedError}
81
85
  * @throws {@link FiveOneEat.ForbiddenError}
82
86
  * @throws {@link FiveOneEat.NotFoundError}
87
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
83
88
  *
84
89
  * @example
85
90
  * await client.business.bulletins.delete({
@@ -95,6 +100,7 @@ export declare class BulletinsClient {
95
100
  * @throws {@link FiveOneEat.UnauthorizedError}
96
101
  * @throws {@link FiveOneEat.ForbiddenError}
97
102
  * @throws {@link FiveOneEat.NotFoundError}
103
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
98
104
  *
99
105
  * @example
100
106
  * await client.business.bulletins.togglePinned({
@@ -110,6 +116,7 @@ export declare class BulletinsClient {
110
116
  * @throws {@link FiveOneEat.UnauthorizedError}
111
117
  * @throws {@link FiveOneEat.ForbiddenError}
112
118
  * @throws {@link FiveOneEat.NotFoundError}
119
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
113
120
  *
114
121
  * @example
115
122
  * await client.business.bulletins.togglePublished({
@@ -75,6 +75,8 @@ class BulletinsClient {
75
75
  * @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
77
77
  * @throws {@link FiveOneEat.UnauthorizedError}
78
+ * @throws {@link FiveOneEat.ForbiddenError}
79
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
78
80
  *
79
81
  * @example
80
82
  * await client.business.bulletins.list()
@@ -108,6 +110,10 @@ class BulletinsClient {
108
110
  switch (_response.error.statusCode) {
109
111
  case 401:
110
112
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
113
+ case 403:
114
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
115
+ case 422:
116
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
111
117
  default:
112
118
  throw new errors.FiveOneEatError({
113
119
  statusCode: _response.error.statusCode,
@@ -124,6 +130,7 @@ class BulletinsClient {
124
130
  * @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
125
131
  *
126
132
  * @throws {@link FiveOneEat.UnauthorizedError}
133
+ * @throws {@link FiveOneEat.ForbiddenError}
127
134
  * @throws {@link FiveOneEat.UnprocessableEntityError}
128
135
  *
129
136
  * @example
@@ -165,6 +172,8 @@ class BulletinsClient {
165
172
  switch (_response.error.statusCode) {
166
173
  case 401:
167
174
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
175
+ case 403:
176
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
168
177
  case 422:
169
178
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
170
179
  default:
@@ -185,6 +194,7 @@ class BulletinsClient {
185
194
  * @throws {@link FiveOneEat.UnauthorizedError}
186
195
  * @throws {@link FiveOneEat.ForbiddenError}
187
196
  * @throws {@link FiveOneEat.NotFoundError}
197
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
188
198
  *
189
199
  * @example
190
200
  * await client.business.bulletins.get({
@@ -225,6 +235,8 @@ class BulletinsClient {
225
235
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
226
236
  case 404:
227
237
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
238
+ case 422:
239
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
228
240
  default:
229
241
  throw new errors.FiveOneEatError({
230
242
  statusCode: _response.error.statusCode,
@@ -310,6 +322,7 @@ class BulletinsClient {
310
322
  * @throws {@link FiveOneEat.UnauthorizedError}
311
323
  * @throws {@link FiveOneEat.ForbiddenError}
312
324
  * @throws {@link FiveOneEat.NotFoundError}
325
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
313
326
  *
314
327
  * @example
315
328
  * await client.business.bulletins.delete({
@@ -350,6 +363,8 @@ class BulletinsClient {
350
363
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
351
364
  case 404:
352
365
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
366
+ case 422:
367
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
353
368
  default:
354
369
  throw new errors.FiveOneEatError({
355
370
  statusCode: _response.error.statusCode,
@@ -368,6 +383,7 @@ class BulletinsClient {
368
383
  * @throws {@link FiveOneEat.UnauthorizedError}
369
384
  * @throws {@link FiveOneEat.ForbiddenError}
370
385
  * @throws {@link FiveOneEat.NotFoundError}
386
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
371
387
  *
372
388
  * @example
373
389
  * await client.business.bulletins.togglePinned({
@@ -408,6 +424,8 @@ class BulletinsClient {
408
424
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
409
425
  case 404:
410
426
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
427
+ case 422:
428
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
411
429
  default:
412
430
  throw new errors.FiveOneEatError({
413
431
  statusCode: _response.error.statusCode,
@@ -426,6 +444,7 @@ class BulletinsClient {
426
444
  * @throws {@link FiveOneEat.UnauthorizedError}
427
445
  * @throws {@link FiveOneEat.ForbiddenError}
428
446
  * @throws {@link FiveOneEat.NotFoundError}
447
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
429
448
  *
430
449
  * @example
431
450
  * await client.business.bulletins.togglePublished({
@@ -466,6 +485,8 @@ class BulletinsClient {
466
485
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
467
486
  case 404:
468
487
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
488
+ case 422:
489
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
469
490
  default:
470
491
  throw new errors.FiveOneEatError({
471
492
  statusCode: _response.error.statusCode,
@@ -21,23 +21,11 @@ export interface StoreBusinessRequest {
21
21
  latitude?: number | null;
22
22
  longitude?: number | null;
23
23
  has_location?: boolean;
24
- metadata?: string[] | null;
25
- badges?: string[] | null;
26
24
  seasonal?: boolean;
27
- ownership?: string[] | null;
28
25
  category_ids: number[];
29
- hours?: StoreBusinessRequest.Hours.Item[] | null;
30
26
  operating_months?: StoreBusinessRequest.OperatingMonths.Item[] | null;
31
27
  }
32
28
  export declare namespace StoreBusinessRequest {
33
- type Hours = Hours.Item[];
34
- namespace Hours {
35
- interface Item {
36
- isOpen?: boolean | undefined;
37
- openTime?: (string | null) | undefined;
38
- closeTime?: (string | null) | undefined;
39
- }
40
- }
41
29
  type OperatingMonths = OperatingMonths.Item[];
42
30
  namespace OperatingMonths {
43
31
  const Item: {
@@ -31,25 +31,13 @@ export interface UpdateBusinessRequest {
31
31
  latitude?: number | null;
32
32
  longitude?: number | null;
33
33
  has_location?: boolean;
34
- metadata?: string[] | null;
35
- badges?: string[] | null;
36
34
  seasonal?: boolean;
37
- ownership?: string[] | null;
38
35
  category_ids: number[];
39
- hours?: UpdateBusinessRequest.Hours.Item[] | null;
40
36
  operating_months?: UpdateBusinessRequest.OperatingMonths.Item[] | null;
41
37
  certification_ids?: number[] | null;
42
38
  cuisine_ids?: number[] | null;
43
39
  }
44
40
  export declare namespace UpdateBusinessRequest {
45
- type Hours = Hours.Item[];
46
- namespace Hours {
47
- interface Item {
48
- isOpen?: boolean | undefined;
49
- openTime?: (string | null) | undefined;
50
- closeTime?: (string | null) | undefined;
51
- }
52
- }
53
41
  type OperatingMonths = OperatingMonths.Item[];
54
42
  namespace OperatingMonths {
55
43
  const Item: {
@@ -26,6 +26,7 @@ export declare class EventsClient {
26
26
  *
27
27
  * @throws {@link FiveOneEat.UnauthorizedError}
28
28
  * @throws {@link FiveOneEat.ForbiddenError}
29
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
29
30
  *
30
31
  * @example
31
32
  * await client.business.events.list()
@@ -56,6 +57,7 @@ export declare class EventsClient {
56
57
  * @throws {@link FiveOneEat.UnauthorizedError}
57
58
  * @throws {@link FiveOneEat.ForbiddenError}
58
59
  * @throws {@link FiveOneEat.NotFoundError}
60
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
59
61
  *
60
62
  * @example
61
63
  * await client.business.events.get({
@@ -87,6 +89,7 @@ export declare class EventsClient {
87
89
  * @throws {@link FiveOneEat.UnauthorizedError}
88
90
  * @throws {@link FiveOneEat.ForbiddenError}
89
91
  * @throws {@link FiveOneEat.NotFoundError}
92
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
90
93
  *
91
94
  * @example
92
95
  * await client.business.events.delete({
@@ -102,6 +105,7 @@ export declare class EventsClient {
102
105
  * @throws {@link FiveOneEat.UnauthorizedError}
103
106
  * @throws {@link FiveOneEat.ForbiddenError}
104
107
  * @throws {@link FiveOneEat.NotFoundError}
108
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
105
109
  *
106
110
  * @example
107
111
  * await client.business.events.togglePublished({
@@ -137,6 +141,7 @@ export declare class EventsClient {
137
141
  * @throws {@link FiveOneEat.UnauthorizedError}
138
142
  * @throws {@link FiveOneEat.ForbiddenError}
139
143
  * @throws {@link FiveOneEat.NotFoundError}
144
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
140
145
  *
141
146
  * @example
142
147
  * await client.business.events.deleteImage({
@@ -154,6 +159,7 @@ export declare class EventsClient {
154
159
  * @throws {@link FiveOneEat.UnauthorizedError}
155
160
  * @throws {@link FiveOneEat.ForbiddenError}
156
161
  * @throws {@link FiveOneEat.NotFoundError}
162
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
157
163
  *
158
164
  * @example
159
165
  * await client.business.events.listRsvps({
@@ -172,6 +178,7 @@ export declare class EventsClient {
172
178
  * @throws {@link FiveOneEat.UnauthorizedError}
173
179
  * @throws {@link FiveOneEat.ForbiddenError}
174
180
  * @throws {@link FiveOneEat.NotFoundError}
181
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
175
182
  *
176
183
  * @example
177
184
  * await client.business.events.listAttendees({
@@ -190,6 +197,7 @@ export declare class EventsClient {
190
197
  * @throws {@link FiveOneEat.UnauthorizedError}
191
198
  * @throws {@link FiveOneEat.ForbiddenError}
192
199
  * @throws {@link FiveOneEat.NotFoundError}
200
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
193
201
  *
194
202
  * @example
195
203
  * await client.business.events.salesSummary({
@@ -88,6 +88,7 @@ class EventsClient {
88
88
  *
89
89
  * @throws {@link FiveOneEat.UnauthorizedError}
90
90
  * @throws {@link FiveOneEat.ForbiddenError}
91
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
91
92
  *
92
93
  * @example
93
94
  * await client.business.events.list()
@@ -123,6 +124,8 @@ class EventsClient {
123
124
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
124
125
  case 403:
125
126
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
127
+ case 422:
128
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
126
129
  default:
127
130
  throw new errors.FiveOneEatError({
128
131
  statusCode: _response.error.statusCode,
@@ -203,6 +206,7 @@ class EventsClient {
203
206
  * @throws {@link FiveOneEat.UnauthorizedError}
204
207
  * @throws {@link FiveOneEat.ForbiddenError}
205
208
  * @throws {@link FiveOneEat.NotFoundError}
209
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
206
210
  *
207
211
  * @example
208
212
  * await client.business.events.get({
@@ -243,6 +247,8 @@ class EventsClient {
243
247
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
244
248
  case 404:
245
249
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
250
+ case 422:
251
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
246
252
  default:
247
253
  throw new errors.FiveOneEatError({
248
254
  statusCode: _response.error.statusCode,
@@ -325,6 +331,7 @@ class EventsClient {
325
331
  * @throws {@link FiveOneEat.UnauthorizedError}
326
332
  * @throws {@link FiveOneEat.ForbiddenError}
327
333
  * @throws {@link FiveOneEat.NotFoundError}
334
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
328
335
  *
329
336
  * @example
330
337
  * await client.business.events.delete({
@@ -365,6 +372,8 @@ class EventsClient {
365
372
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
366
373
  case 404:
367
374
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
375
+ case 422:
376
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
368
377
  default:
369
378
  throw new errors.FiveOneEatError({
370
379
  statusCode: _response.error.statusCode,
@@ -383,6 +392,7 @@ class EventsClient {
383
392
  * @throws {@link FiveOneEat.UnauthorizedError}
384
393
  * @throws {@link FiveOneEat.ForbiddenError}
385
394
  * @throws {@link FiveOneEat.NotFoundError}
395
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
386
396
  *
387
397
  * @example
388
398
  * await client.business.events.togglePublished({
@@ -423,6 +433,8 @@ class EventsClient {
423
433
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
424
434
  case 404:
425
435
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
436
+ case 422:
437
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
426
438
  default:
427
439
  throw new errors.FiveOneEatError({
428
440
  statusCode: _response.error.statusCode,
@@ -514,6 +526,7 @@ class EventsClient {
514
526
  * @throws {@link FiveOneEat.UnauthorizedError}
515
527
  * @throws {@link FiveOneEat.ForbiddenError}
516
528
  * @throws {@link FiveOneEat.NotFoundError}
529
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
517
530
  *
518
531
  * @example
519
532
  * await client.business.events.deleteImage({
@@ -554,6 +567,8 @@ class EventsClient {
554
567
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
555
568
  case 404:
556
569
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
570
+ case 422:
571
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
557
572
  default:
558
573
  throw new errors.FiveOneEatError({
559
574
  statusCode: _response.error.statusCode,
@@ -574,6 +589,7 @@ class EventsClient {
574
589
  * @throws {@link FiveOneEat.UnauthorizedError}
575
590
  * @throws {@link FiveOneEat.ForbiddenError}
576
591
  * @throws {@link FiveOneEat.NotFoundError}
592
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
577
593
  *
578
594
  * @example
579
595
  * await client.business.events.listRsvps({
@@ -614,6 +630,8 @@ class EventsClient {
614
630
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
615
631
  case 404:
616
632
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
633
+ case 422:
634
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
617
635
  default:
618
636
  throw new errors.FiveOneEatError({
619
637
  statusCode: _response.error.statusCode,
@@ -635,6 +653,7 @@ class EventsClient {
635
653
  * @throws {@link FiveOneEat.UnauthorizedError}
636
654
  * @throws {@link FiveOneEat.ForbiddenError}
637
655
  * @throws {@link FiveOneEat.NotFoundError}
656
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
638
657
  *
639
658
  * @example
640
659
  * await client.business.events.listAttendees({
@@ -675,6 +694,8 @@ class EventsClient {
675
694
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
676
695
  case 404:
677
696
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
697
+ case 422:
698
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
678
699
  default:
679
700
  throw new errors.FiveOneEatError({
680
701
  statusCode: _response.error.statusCode,
@@ -696,6 +717,7 @@ class EventsClient {
696
717
  * @throws {@link FiveOneEat.UnauthorizedError}
697
718
  * @throws {@link FiveOneEat.ForbiddenError}
698
719
  * @throws {@link FiveOneEat.NotFoundError}
720
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
699
721
  *
700
722
  * @example
701
723
  * await client.business.events.salesSummary({
@@ -736,6 +758,8 @@ class EventsClient {
736
758
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
737
759
  case 404:
738
760
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
761
+ case 422:
762
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
739
763
  default:
740
764
  throw new errors.FiveOneEatError({
741
765
  statusCode: _response.error.statusCode,
@@ -9,9 +9,9 @@
9
9
  export interface StoreEventRequest {
10
10
  title: string;
11
11
  description?: string | null;
12
+ location?: string | null;
12
13
  starts_at: string;
13
14
  ends_at: string;
14
- location?: string | null;
15
15
  is_all_day?: boolean;
16
16
  is_featured?: boolean;
17
17
  ticket_sales_enabled?: boolean;