@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
@@ -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({
@@ -39,6 +39,8 @@ export class BulletinsClient {
39
39
  * @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
40
40
  *
41
41
  * @throws {@link FiveOneEat.UnauthorizedError}
42
+ * @throws {@link FiveOneEat.ForbiddenError}
43
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
42
44
  *
43
45
  * @example
44
46
  * await client.business.bulletins.list()
@@ -72,6 +74,10 @@ export class BulletinsClient {
72
74
  switch (_response.error.statusCode) {
73
75
  case 401:
74
76
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
77
+ case 403:
78
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
79
+ case 422:
80
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
75
81
  default:
76
82
  throw new errors.FiveOneEatError({
77
83
  statusCode: _response.error.statusCode,
@@ -88,6 +94,7 @@ export class BulletinsClient {
88
94
  * @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
89
95
  *
90
96
  * @throws {@link FiveOneEat.UnauthorizedError}
97
+ * @throws {@link FiveOneEat.ForbiddenError}
91
98
  * @throws {@link FiveOneEat.UnprocessableEntityError}
92
99
  *
93
100
  * @example
@@ -129,6 +136,8 @@ export class BulletinsClient {
129
136
  switch (_response.error.statusCode) {
130
137
  case 401:
131
138
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
139
+ case 403:
140
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
132
141
  case 422:
133
142
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
134
143
  default:
@@ -149,6 +158,7 @@ export class BulletinsClient {
149
158
  * @throws {@link FiveOneEat.UnauthorizedError}
150
159
  * @throws {@link FiveOneEat.ForbiddenError}
151
160
  * @throws {@link FiveOneEat.NotFoundError}
161
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
152
162
  *
153
163
  * @example
154
164
  * await client.business.bulletins.get({
@@ -189,6 +199,8 @@ export class BulletinsClient {
189
199
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
190
200
  case 404:
191
201
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
202
+ case 422:
203
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
192
204
  default:
193
205
  throw new errors.FiveOneEatError({
194
206
  statusCode: _response.error.statusCode,
@@ -274,6 +286,7 @@ export class BulletinsClient {
274
286
  * @throws {@link FiveOneEat.UnauthorizedError}
275
287
  * @throws {@link FiveOneEat.ForbiddenError}
276
288
  * @throws {@link FiveOneEat.NotFoundError}
289
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
277
290
  *
278
291
  * @example
279
292
  * await client.business.bulletins.delete({
@@ -314,6 +327,8 @@ export class BulletinsClient {
314
327
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
315
328
  case 404:
316
329
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
330
+ case 422:
331
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
317
332
  default:
318
333
  throw new errors.FiveOneEatError({
319
334
  statusCode: _response.error.statusCode,
@@ -332,6 +347,7 @@ export class BulletinsClient {
332
347
  * @throws {@link FiveOneEat.UnauthorizedError}
333
348
  * @throws {@link FiveOneEat.ForbiddenError}
334
349
  * @throws {@link FiveOneEat.NotFoundError}
350
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
335
351
  *
336
352
  * @example
337
353
  * await client.business.bulletins.togglePinned({
@@ -372,6 +388,8 @@ export class BulletinsClient {
372
388
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
373
389
  case 404:
374
390
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
391
+ case 422:
392
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
375
393
  default:
376
394
  throw new errors.FiveOneEatError({
377
395
  statusCode: _response.error.statusCode,
@@ -390,6 +408,7 @@ export class BulletinsClient {
390
408
  * @throws {@link FiveOneEat.UnauthorizedError}
391
409
  * @throws {@link FiveOneEat.ForbiddenError}
392
410
  * @throws {@link FiveOneEat.NotFoundError}
411
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
393
412
  *
394
413
  * @example
395
414
  * await client.business.bulletins.togglePublished({
@@ -430,6 +449,8 @@ export class BulletinsClient {
430
449
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
431
450
  case 404:
432
451
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
452
+ case 422:
453
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
433
454
  default:
434
455
  throw new errors.FiveOneEatError({
435
456
  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({
@@ -52,6 +52,7 @@ export class EventsClient {
52
52
  *
53
53
  * @throws {@link FiveOneEat.UnauthorizedError}
54
54
  * @throws {@link FiveOneEat.ForbiddenError}
55
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
55
56
  *
56
57
  * @example
57
58
  * await client.business.events.list()
@@ -87,6 +88,8 @@ export class EventsClient {
87
88
  throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
88
89
  case 403:
89
90
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
91
+ case 422:
92
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
90
93
  default:
91
94
  throw new errors.FiveOneEatError({
92
95
  statusCode: _response.error.statusCode,
@@ -167,6 +170,7 @@ export class EventsClient {
167
170
  * @throws {@link FiveOneEat.UnauthorizedError}
168
171
  * @throws {@link FiveOneEat.ForbiddenError}
169
172
  * @throws {@link FiveOneEat.NotFoundError}
173
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
170
174
  *
171
175
  * @example
172
176
  * await client.business.events.get({
@@ -207,6 +211,8 @@ export class EventsClient {
207
211
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
208
212
  case 404:
209
213
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
214
+ case 422:
215
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
210
216
  default:
211
217
  throw new errors.FiveOneEatError({
212
218
  statusCode: _response.error.statusCode,
@@ -289,6 +295,7 @@ export class EventsClient {
289
295
  * @throws {@link FiveOneEat.UnauthorizedError}
290
296
  * @throws {@link FiveOneEat.ForbiddenError}
291
297
  * @throws {@link FiveOneEat.NotFoundError}
298
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
292
299
  *
293
300
  * @example
294
301
  * await client.business.events.delete({
@@ -329,6 +336,8 @@ export class EventsClient {
329
336
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
330
337
  case 404:
331
338
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
339
+ case 422:
340
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
332
341
  default:
333
342
  throw new errors.FiveOneEatError({
334
343
  statusCode: _response.error.statusCode,
@@ -347,6 +356,7 @@ export class EventsClient {
347
356
  * @throws {@link FiveOneEat.UnauthorizedError}
348
357
  * @throws {@link FiveOneEat.ForbiddenError}
349
358
  * @throws {@link FiveOneEat.NotFoundError}
359
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
350
360
  *
351
361
  * @example
352
362
  * await client.business.events.togglePublished({
@@ -387,6 +397,8 @@ export class EventsClient {
387
397
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
388
398
  case 404:
389
399
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
400
+ case 422:
401
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
390
402
  default:
391
403
  throw new errors.FiveOneEatError({
392
404
  statusCode: _response.error.statusCode,
@@ -478,6 +490,7 @@ export class EventsClient {
478
490
  * @throws {@link FiveOneEat.UnauthorizedError}
479
491
  * @throws {@link FiveOneEat.ForbiddenError}
480
492
  * @throws {@link FiveOneEat.NotFoundError}
493
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
481
494
  *
482
495
  * @example
483
496
  * await client.business.events.deleteImage({
@@ -518,6 +531,8 @@ export class EventsClient {
518
531
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
519
532
  case 404:
520
533
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
534
+ case 422:
535
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
521
536
  default:
522
537
  throw new errors.FiveOneEatError({
523
538
  statusCode: _response.error.statusCode,
@@ -538,6 +553,7 @@ export class EventsClient {
538
553
  * @throws {@link FiveOneEat.UnauthorizedError}
539
554
  * @throws {@link FiveOneEat.ForbiddenError}
540
555
  * @throws {@link FiveOneEat.NotFoundError}
556
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
541
557
  *
542
558
  * @example
543
559
  * await client.business.events.listRsvps({
@@ -578,6 +594,8 @@ export class EventsClient {
578
594
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
579
595
  case 404:
580
596
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
597
+ case 422:
598
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
581
599
  default:
582
600
  throw new errors.FiveOneEatError({
583
601
  statusCode: _response.error.statusCode,
@@ -599,6 +617,7 @@ export class EventsClient {
599
617
  * @throws {@link FiveOneEat.UnauthorizedError}
600
618
  * @throws {@link FiveOneEat.ForbiddenError}
601
619
  * @throws {@link FiveOneEat.NotFoundError}
620
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
602
621
  *
603
622
  * @example
604
623
  * await client.business.events.listAttendees({
@@ -639,6 +658,8 @@ export class EventsClient {
639
658
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
640
659
  case 404:
641
660
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
661
+ case 422:
662
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
642
663
  default:
643
664
  throw new errors.FiveOneEatError({
644
665
  statusCode: _response.error.statusCode,
@@ -660,6 +681,7 @@ export class EventsClient {
660
681
  * @throws {@link FiveOneEat.UnauthorizedError}
661
682
  * @throws {@link FiveOneEat.ForbiddenError}
662
683
  * @throws {@link FiveOneEat.NotFoundError}
684
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
663
685
  *
664
686
  * @example
665
687
  * await client.business.events.salesSummary({
@@ -700,6 +722,8 @@ export class EventsClient {
700
722
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
701
723
  case 404:
702
724
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
725
+ case 422:
726
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
703
727
  default:
704
728
  throw new errors.FiveOneEatError({
705
729
  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;
@@ -9,9 +9,9 @@ export interface UpdateEventRequest {
9
9
  event: string;
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;
@@ -62,6 +62,7 @@ export declare class CheckInClient {
62
62
  * @throws {@link FiveOneEat.UnauthorizedError}
63
63
  * @throws {@link FiveOneEat.ForbiddenError}
64
64
  * @throws {@link FiveOneEat.NotFoundError}
65
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
65
66
  *
66
67
  * @example
67
68
  * await client.business.events.checkIn.stats({
@@ -80,6 +81,7 @@ export declare class CheckInClient {
80
81
  * @throws {@link FiveOneEat.UnauthorizedError}
81
82
  * @throws {@link FiveOneEat.ForbiddenError}
82
83
  * @throws {@link FiveOneEat.NotFoundError}
84
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
83
85
  *
84
86
  * @example
85
87
  * await client.business.events.checkIn.recent({
@@ -178,6 +178,7 @@ export class CheckInClient {
178
178
  * @throws {@link FiveOneEat.UnauthorizedError}
179
179
  * @throws {@link FiveOneEat.ForbiddenError}
180
180
  * @throws {@link FiveOneEat.NotFoundError}
181
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
181
182
  *
182
183
  * @example
183
184
  * await client.business.events.checkIn.stats({
@@ -218,6 +219,8 @@ export class CheckInClient {
218
219
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
219
220
  case 404:
220
221
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
222
+ case 422:
223
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
221
224
  default:
222
225
  throw new errors.FiveOneEatError({
223
226
  statusCode: _response.error.statusCode,
@@ -239,6 +242,7 @@ export class CheckInClient {
239
242
  * @throws {@link FiveOneEat.UnauthorizedError}
240
243
  * @throws {@link FiveOneEat.ForbiddenError}
241
244
  * @throws {@link FiveOneEat.NotFoundError}
245
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
242
246
  *
243
247
  * @example
244
248
  * await client.business.events.checkIn.recent({
@@ -279,6 +283,8 @@ export class CheckInClient {
279
283
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
280
284
  case 404:
281
285
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
286
+ case 422:
287
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
282
288
  default:
283
289
  throw new errors.FiveOneEatError({
284
290
  statusCode: _response.error.statusCode,
@@ -19,6 +19,7 @@ export declare class OrdersClient {
19
19
  * @throws {@link FiveOneEat.UnauthorizedError}
20
20
  * @throws {@link FiveOneEat.ForbiddenError}
21
21
  * @throws {@link FiveOneEat.NotFoundError}
22
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
22
23
  *
23
24
  * @example
24
25
  * await client.business.events.orders.list({
@@ -34,6 +35,7 @@ export declare class OrdersClient {
34
35
  * @throws {@link FiveOneEat.UnauthorizedError}
35
36
  * @throws {@link FiveOneEat.ForbiddenError}
36
37
  * @throws {@link FiveOneEat.NotFoundError}
38
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
37
39
  *
38
40
  * @example
39
41
  * await client.business.events.orders.get({
@@ -28,6 +28,7 @@ export class OrdersClient {
28
28
  * @throws {@link FiveOneEat.UnauthorizedError}
29
29
  * @throws {@link FiveOneEat.ForbiddenError}
30
30
  * @throws {@link FiveOneEat.NotFoundError}
31
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
31
32
  *
32
33
  * @example
33
34
  * await client.business.events.orders.list({
@@ -68,6 +69,8 @@ export class OrdersClient {
68
69
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
69
70
  case 404:
70
71
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
72
+ case 422:
73
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
71
74
  default:
72
75
  throw new errors.FiveOneEatError({
73
76
  statusCode: _response.error.statusCode,
@@ -86,6 +89,7 @@ export class OrdersClient {
86
89
  * @throws {@link FiveOneEat.UnauthorizedError}
87
90
  * @throws {@link FiveOneEat.ForbiddenError}
88
91
  * @throws {@link FiveOneEat.NotFoundError}
92
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
89
93
  *
90
94
  * @example
91
95
  * await client.business.events.orders.get({
@@ -127,6 +131,8 @@ export class OrdersClient {
127
131
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
128
132
  case 404:
129
133
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
134
+ case 422:
135
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
130
136
  default:
131
137
  throw new errors.FiveOneEatError({
132
138
  statusCode: _response.error.statusCode,
@@ -17,6 +17,7 @@ export declare class TicketTypesClient {
17
17
  * @throws {@link FiveOneEat.UnauthorizedError}
18
18
  * @throws {@link FiveOneEat.ForbiddenError}
19
19
  * @throws {@link FiveOneEat.NotFoundError}
20
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
20
21
  *
21
22
  * @example
22
23
  * await client.business.events.ticketTypes.list({
@@ -51,6 +52,7 @@ export declare class TicketTypesClient {
51
52
  * @throws {@link FiveOneEat.UnauthorizedError}
52
53
  * @throws {@link FiveOneEat.ForbiddenError}
53
54
  * @throws {@link FiveOneEat.NotFoundError}
55
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
54
56
  *
55
57
  * @example
56
58
  * await client.business.events.ticketTypes.get({
@@ -37,6 +37,7 @@ export class TicketTypesClient {
37
37
  * @throws {@link FiveOneEat.UnauthorizedError}
38
38
  * @throws {@link FiveOneEat.ForbiddenError}
39
39
  * @throws {@link FiveOneEat.NotFoundError}
40
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
40
41
  *
41
42
  * @example
42
43
  * await client.business.events.ticketTypes.list({
@@ -77,6 +78,8 @@ export class TicketTypesClient {
77
78
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
78
79
  case 404:
79
80
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
81
+ case 422:
82
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
80
83
  default:
81
84
  throw new errors.FiveOneEatError({
82
85
  statusCode: _response.error.statusCode,
@@ -162,6 +165,7 @@ export class TicketTypesClient {
162
165
  * @throws {@link FiveOneEat.UnauthorizedError}
163
166
  * @throws {@link FiveOneEat.ForbiddenError}
164
167
  * @throws {@link FiveOneEat.NotFoundError}
168
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
165
169
  *
166
170
  * @example
167
171
  * await client.business.events.ticketTypes.get({
@@ -202,6 +206,8 @@ export class TicketTypesClient {
202
206
  throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
203
207
  case 404:
204
208
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
209
+ case 422:
210
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
205
211
  default:
206
212
  throw new errors.FiveOneEatError({
207
213
  statusCode: _response.error.statusCode,
@@ -17,5 +17,5 @@ export interface StoreTicketTypeRequest {
17
17
  sales_start_at?: string | null;
18
18
  sales_end_at?: string | null;
19
19
  is_active?: boolean;
20
- sort_order?: number | null;
20
+ sort_order?: number;
21
21
  }
@@ -14,5 +14,5 @@ export interface UpdateTicketTypeRequest {
14
14
  sales_start_at?: string | null;
15
15
  sales_end_at?: string | null;
16
16
  is_active?: boolean;
17
- sort_order?: number | null;
17
+ sort_order?: number;
18
18
  }
@@ -22,6 +22,8 @@ export declare class MenusClient {
22
22
  * @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
23
23
  *
24
24
  * @throws {@link FiveOneEat.UnauthorizedError}
25
+ * @throws {@link FiveOneEat.ForbiddenError}
26
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
25
27
  *
26
28
  * @example
27
29
  * await client.business.menus.list()
@@ -33,6 +35,7 @@ export declare class MenusClient {
33
35
  * @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
34
36
  *
35
37
  * @throws {@link FiveOneEat.UnauthorizedError}
38
+ * @throws {@link FiveOneEat.ForbiddenError}
36
39
  * @throws {@link FiveOneEat.UnprocessableEntityError}
37
40
  *
38
41
  * @example
@@ -49,6 +52,7 @@ export declare class MenusClient {
49
52
  * @throws {@link FiveOneEat.UnauthorizedError}
50
53
  * @throws {@link FiveOneEat.ForbiddenError}
51
54
  * @throws {@link FiveOneEat.NotFoundError}
55
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
52
56
  *
53
57
  * @example
54
58
  * await client.business.menus.get({
@@ -81,6 +85,7 @@ export declare class MenusClient {
81
85
  * @throws {@link FiveOneEat.UnauthorizedError}
82
86
  * @throws {@link FiveOneEat.ForbiddenError}
83
87
  * @throws {@link FiveOneEat.NotFoundError}
88
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
84
89
  *
85
90
  * @example
86
91
  * await client.business.menus.delete({