@51eat/sdk 0.0.62 → 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 (248) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +6 -0
  3. package/dist/cjs/Client.js +24 -14
  4. package/dist/cjs/api/resources/business/resources/bulletins/client/Client.d.ts +7 -0
  5. package/dist/cjs/api/resources/business/resources/bulletins/client/Client.js +21 -0
  6. package/dist/cjs/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.ts +0 -3
  7. package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.ts +0 -3
  8. package/dist/cjs/api/resources/business/resources/events/client/Client.d.ts +8 -0
  9. package/dist/cjs/api/resources/business/resources/events/client/Client.js +24 -0
  10. package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.d.ts +1 -1
  11. package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts +1 -1
  12. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.d.ts +2 -0
  13. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.js +6 -0
  14. package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.d.ts +2 -0
  15. package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.js +6 -0
  16. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.ts +2 -0
  17. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.js +6 -0
  18. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.ts +1 -1
  19. package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +1 -1
  20. package/dist/cjs/api/resources/business/resources/menus/client/Client.d.ts +5 -0
  21. package/dist/cjs/api/resources/business/resources/menus/client/Client.js +15 -0
  22. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/Client.d.ts +5 -2
  23. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/Client.js +10 -1
  24. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.d.ts → ReorderMenuGroupsRequest.d.ts} +3 -3
  25. package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/index.d.ts +1 -1
  26. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/Client.d.ts +7 -4
  27. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/Client.js +11 -2
  28. 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
  29. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.d.ts → ReorderMenuItemsRequest.d.ts} +3 -3
  30. package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/index.d.ts +2 -2
  31. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.d.ts +2 -0
  32. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.js +6 -0
  33. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.d.ts +2 -0
  34. package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.js +6 -0
  35. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +4 -0
  36. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.js +12 -0
  37. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +4 -0
  38. package/dist/cjs/api/resources/business/resources/products/client/Client.js +12 -0
  39. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +1 -0
  40. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +3 -0
  41. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +1 -0
  42. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +3 -0
  43. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +1 -0
  44. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +3 -0
  45. package/dist/cjs/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.ts +0 -2
  46. package/dist/cjs/api/resources/businessProducts/client/Client.d.ts +2 -0
  47. package/dist/cjs/api/resources/businessProducts/client/Client.js +6 -0
  48. package/dist/cjs/api/resources/businessStands/client/Client.d.ts +106 -0
  49. package/dist/cjs/api/resources/businessStands/client/Client.js +421 -0
  50. package/dist/cjs/api/resources/businessStands/client/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/businessStands/client/index.js +17 -0
  52. package/dist/cjs/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.ts +10 -0
  53. package/dist/cjs/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.js +3 -0
  54. package/dist/cjs/api/resources/businessStands/client/requests/GetBusinessStandRequest.d.ts +10 -0
  55. package/dist/cjs/api/resources/businessStands/client/requests/GetBusinessStandRequest.js +3 -0
  56. package/dist/cjs/api/resources/businessStands/client/requests/StoreStandRequest.d.ts +18 -0
  57. package/dist/cjs/api/resources/businessStands/client/requests/StoreStandRequest.js +3 -0
  58. package/dist/cjs/api/resources/businessStands/client/requests/SyncStandProductsRequest.d.ts +12 -0
  59. package/dist/cjs/api/resources/businessStands/client/requests/SyncStandProductsRequest.js +3 -0
  60. package/dist/cjs/api/resources/businessStands/client/requests/UpdateStandRequest.d.ts +20 -0
  61. package/dist/cjs/api/resources/businessStands/client/requests/UpdateStandRequest.js +3 -0
  62. package/dist/cjs/api/resources/businessStands/client/requests/index.d.ts +5 -0
  63. package/dist/cjs/api/resources/businessStands/client/requests/index.js +2 -0
  64. package/dist/cjs/api/resources/businessStands/exports.d.ts +2 -0
  65. package/dist/cjs/api/resources/businessStands/exports.js +21 -0
  66. package/dist/cjs/api/resources/businessStands/index.d.ts +2 -0
  67. package/dist/cjs/api/resources/businessStands/index.js +18 -0
  68. package/dist/cjs/api/resources/businessStands/types/CreateBusinessStandResponse.d.ts +4 -0
  69. package/dist/cjs/api/resources/businessStands/types/CreateBusinessStandResponse.js +3 -0
  70. package/dist/cjs/api/resources/businessStands/types/GetBusinessStandResponse.d.ts +4 -0
  71. package/dist/cjs/api/resources/businessStands/types/GetBusinessStandResponse.js +3 -0
  72. package/dist/cjs/api/resources/businessStands/types/ListBusinessStandsResponse.d.ts +4 -0
  73. package/dist/cjs/api/resources/businessStands/types/ListBusinessStandsResponse.js +3 -0
  74. package/dist/cjs/api/resources/businessStands/types/UpdateBusinessStandResponse.d.ts +4 -0
  75. package/dist/cjs/api/resources/businessStands/types/UpdateBusinessStandResponse.js +3 -0
  76. package/dist/cjs/api/resources/businessStands/types/index.d.ts +4 -0
  77. package/dist/cjs/api/resources/businessStands/types/index.js +20 -0
  78. package/dist/cjs/api/resources/customerStands/client/Client.d.ts +63 -0
  79. package/dist/cjs/api/resources/customerStands/client/Client.js +245 -0
  80. package/dist/cjs/api/resources/customerStands/client/index.d.ts +1 -0
  81. package/dist/cjs/api/resources/customerStands/client/index.js +17 -0
  82. package/dist/cjs/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.d.ts +11 -0
  83. package/dist/cjs/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.js +3 -0
  84. package/dist/cjs/api/resources/customerStands/client/requests/ScanStandRequest.d.ts +10 -0
  85. package/dist/cjs/api/resources/customerStands/client/requests/ScanStandRequest.js +3 -0
  86. package/dist/cjs/api/resources/customerStands/client/requests/SelfCheckoutRequest.d.ts +12 -0
  87. package/dist/cjs/api/resources/customerStands/client/requests/SelfCheckoutRequest.js +3 -0
  88. package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +3 -0
  89. package/dist/cjs/api/resources/customerStands/client/requests/index.js +2 -0
  90. package/dist/cjs/api/resources/customerStands/exports.d.ts +2 -0
  91. package/dist/cjs/api/resources/customerStands/exports.js +21 -0
  92. package/dist/cjs/api/resources/customerStands/index.d.ts +2 -0
  93. package/dist/cjs/api/resources/customerStands/index.js +18 -0
  94. package/dist/cjs/api/resources/customerStands/types/CreateStandPaymentIntentResponse.d.ts +6 -0
  95. package/dist/cjs/api/resources/customerStands/types/CreateStandPaymentIntentResponse.js +3 -0
  96. package/dist/cjs/api/resources/customerStands/types/ScanStandResponse.d.ts +4 -0
  97. package/dist/cjs/api/resources/customerStands/types/ScanStandResponse.js +3 -0
  98. package/dist/cjs/api/resources/customerStands/types/StandCheckoutResponse.d.ts +4 -0
  99. package/dist/cjs/api/resources/customerStands/types/StandCheckoutResponse.js +3 -0
  100. package/dist/cjs/api/resources/customerStands/types/index.d.ts +3 -0
  101. package/dist/cjs/api/resources/customerStands/types/index.js +19 -0
  102. package/dist/cjs/api/resources/index.d.ts +6 -0
  103. package/dist/cjs/api/resources/index.js +7 -1
  104. package/dist/cjs/api/types/BusinessEvent.d.ts +3 -0
  105. package/dist/cjs/api/types/BusinessMenu.d.ts +1 -0
  106. package/dist/cjs/api/types/BusinessMenuItem.d.ts +5 -1
  107. package/dist/cjs/api/types/BusinessProduct.d.ts +14 -0
  108. package/dist/cjs/api/types/BusinessProductCategory.d.ts +1 -0
  109. package/dist/cjs/api/types/BusinessProfile.d.ts +0 -2
  110. package/dist/cjs/api/types/BusinessStand.d.ts +16 -0
  111. package/dist/cjs/api/types/BusinessStand.js +3 -0
  112. package/dist/cjs/api/types/CustomerBusinessProfile.d.ts +0 -3
  113. package/dist/cjs/api/types/ExploreEvent.d.ts +2 -1
  114. package/dist/cjs/api/types/ExploreTemporaryLocation.d.ts +2 -1
  115. package/dist/cjs/api/types/StandShop.d.ts +24 -0
  116. package/dist/cjs/api/types/StandShop.js +3 -0
  117. package/dist/cjs/api/types/index.d.ts +2 -0
  118. package/dist/cjs/api/types/index.js +2 -0
  119. package/dist/cjs/version.d.ts +1 -1
  120. package/dist/cjs/version.js +1 -1
  121. package/dist/esm/BaseClient.mjs +2 -2
  122. package/dist/esm/Client.d.mts +6 -0
  123. package/dist/esm/Client.mjs +10 -0
  124. package/dist/esm/api/resources/business/resources/bulletins/client/Client.d.mts +7 -0
  125. package/dist/esm/api/resources/business/resources/bulletins/client/Client.mjs +21 -0
  126. package/dist/esm/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.mts +0 -3
  127. package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.mts +0 -3
  128. package/dist/esm/api/resources/business/resources/events/client/Client.d.mts +8 -0
  129. package/dist/esm/api/resources/business/resources/events/client/Client.mjs +24 -0
  130. package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts +1 -1
  131. package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts +1 -1
  132. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.d.mts +2 -0
  133. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.mjs +6 -0
  134. package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.d.mts +2 -0
  135. package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.mjs +6 -0
  136. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.mts +2 -0
  137. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.mjs +6 -0
  138. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.mts +1 -1
  139. package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.mts +1 -1
  140. package/dist/esm/api/resources/business/resources/menus/client/Client.d.mts +5 -0
  141. package/dist/esm/api/resources/business/resources/menus/client/Client.mjs +15 -0
  142. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/Client.d.mts +5 -2
  143. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/Client.mjs +10 -1
  144. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.d.mts → ReorderMenuGroupsRequest.d.mts} +3 -3
  145. package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/index.d.mts +1 -1
  146. package/dist/esm/api/resources/business/resources/menus/resources/items/client/Client.d.mts +7 -4
  147. package/dist/esm/api/resources/business/resources/menus/resources/items/client/Client.mjs +11 -2
  148. 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
  149. package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.d.mts → ReorderMenuItemsRequest.d.mts} +3 -3
  150. package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/index.d.mts +2 -2
  151. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.d.mts +2 -0
  152. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.mjs +6 -0
  153. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.d.mts +2 -0
  154. package/dist/esm/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.mjs +6 -0
  155. package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +4 -0
  156. package/dist/esm/api/resources/business/resources/productCategories/client/Client.mjs +12 -0
  157. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +4 -0
  158. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +12 -0
  159. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +1 -0
  160. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +3 -0
  161. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +1 -0
  162. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +3 -0
  163. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +1 -0
  164. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +3 -0
  165. package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.mts +0 -2
  166. package/dist/esm/api/resources/businessProducts/client/Client.d.mts +2 -0
  167. package/dist/esm/api/resources/businessProducts/client/Client.mjs +6 -0
  168. package/dist/esm/api/resources/businessStands/client/Client.d.mts +106 -0
  169. package/dist/esm/api/resources/businessStands/client/Client.mjs +384 -0
  170. package/dist/esm/api/resources/businessStands/client/index.d.mts +1 -0
  171. package/dist/esm/api/resources/businessStands/client/index.mjs +1 -0
  172. package/dist/esm/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.mts +10 -0
  173. package/dist/esm/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.mjs +2 -0
  174. package/dist/esm/api/resources/businessStands/client/requests/GetBusinessStandRequest.d.mts +10 -0
  175. package/dist/esm/api/resources/businessStands/client/requests/GetBusinessStandRequest.mjs +2 -0
  176. package/dist/esm/api/resources/businessStands/client/requests/StoreStandRequest.d.mts +18 -0
  177. package/dist/esm/api/resources/businessStands/client/requests/StoreStandRequest.mjs +2 -0
  178. package/dist/esm/api/resources/businessStands/client/requests/SyncStandProductsRequest.d.mts +12 -0
  179. package/dist/esm/api/resources/businessStands/client/requests/SyncStandProductsRequest.mjs +2 -0
  180. package/dist/esm/api/resources/businessStands/client/requests/UpdateStandRequest.d.mts +20 -0
  181. package/dist/esm/api/resources/businessStands/client/requests/UpdateStandRequest.mjs +2 -0
  182. package/dist/esm/api/resources/businessStands/client/requests/index.d.mts +5 -0
  183. package/dist/esm/api/resources/businessStands/client/requests/index.mjs +1 -0
  184. package/dist/esm/api/resources/businessStands/exports.d.mts +2 -0
  185. package/dist/esm/api/resources/businessStands/exports.mjs +3 -0
  186. package/dist/esm/api/resources/businessStands/index.d.mts +2 -0
  187. package/dist/esm/api/resources/businessStands/index.mjs +2 -0
  188. package/dist/esm/api/resources/businessStands/types/CreateBusinessStandResponse.d.mts +4 -0
  189. package/dist/esm/api/resources/businessStands/types/CreateBusinessStandResponse.mjs +2 -0
  190. package/dist/esm/api/resources/businessStands/types/GetBusinessStandResponse.d.mts +4 -0
  191. package/dist/esm/api/resources/businessStands/types/GetBusinessStandResponse.mjs +2 -0
  192. package/dist/esm/api/resources/businessStands/types/ListBusinessStandsResponse.d.mts +4 -0
  193. package/dist/esm/api/resources/businessStands/types/ListBusinessStandsResponse.mjs +2 -0
  194. package/dist/esm/api/resources/businessStands/types/UpdateBusinessStandResponse.d.mts +4 -0
  195. package/dist/esm/api/resources/businessStands/types/UpdateBusinessStandResponse.mjs +2 -0
  196. package/dist/esm/api/resources/businessStands/types/index.d.mts +4 -0
  197. package/dist/esm/api/resources/businessStands/types/index.mjs +4 -0
  198. package/dist/esm/api/resources/customerStands/client/Client.d.mts +63 -0
  199. package/dist/esm/api/resources/customerStands/client/Client.mjs +208 -0
  200. package/dist/esm/api/resources/customerStands/client/index.d.mts +1 -0
  201. package/dist/esm/api/resources/customerStands/client/index.mjs +1 -0
  202. package/dist/esm/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.d.mts +11 -0
  203. package/dist/esm/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.mjs +2 -0
  204. package/dist/esm/api/resources/customerStands/client/requests/ScanStandRequest.d.mts +10 -0
  205. package/dist/esm/api/resources/customerStands/client/requests/ScanStandRequest.mjs +2 -0
  206. package/dist/esm/api/resources/customerStands/client/requests/SelfCheckoutRequest.d.mts +12 -0
  207. package/dist/esm/api/resources/customerStands/client/requests/SelfCheckoutRequest.mjs +2 -0
  208. package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +3 -0
  209. package/dist/esm/api/resources/customerStands/client/requests/index.mjs +1 -0
  210. package/dist/esm/api/resources/customerStands/exports.d.mts +2 -0
  211. package/dist/esm/api/resources/customerStands/exports.mjs +3 -0
  212. package/dist/esm/api/resources/customerStands/index.d.mts +2 -0
  213. package/dist/esm/api/resources/customerStands/index.mjs +2 -0
  214. package/dist/esm/api/resources/customerStands/types/CreateStandPaymentIntentResponse.d.mts +6 -0
  215. package/dist/esm/api/resources/customerStands/types/CreateStandPaymentIntentResponse.mjs +2 -0
  216. package/dist/esm/api/resources/customerStands/types/ScanStandResponse.d.mts +4 -0
  217. package/dist/esm/api/resources/customerStands/types/ScanStandResponse.mjs +2 -0
  218. package/dist/esm/api/resources/customerStands/types/StandCheckoutResponse.d.mts +4 -0
  219. package/dist/esm/api/resources/customerStands/types/StandCheckoutResponse.mjs +2 -0
  220. package/dist/esm/api/resources/customerStands/types/index.d.mts +3 -0
  221. package/dist/esm/api/resources/customerStands/types/index.mjs +3 -0
  222. package/dist/esm/api/resources/index.d.mts +6 -0
  223. package/dist/esm/api/resources/index.mjs +6 -0
  224. package/dist/esm/api/types/BusinessEvent.d.mts +3 -0
  225. package/dist/esm/api/types/BusinessMenu.d.mts +1 -0
  226. package/dist/esm/api/types/BusinessMenuItem.d.mts +5 -1
  227. package/dist/esm/api/types/BusinessProduct.d.mts +14 -0
  228. package/dist/esm/api/types/BusinessProductCategory.d.mts +1 -0
  229. package/dist/esm/api/types/BusinessProfile.d.mts +0 -2
  230. package/dist/esm/api/types/BusinessStand.d.mts +16 -0
  231. package/dist/esm/api/types/BusinessStand.mjs +2 -0
  232. package/dist/esm/api/types/CustomerBusinessProfile.d.mts +0 -3
  233. package/dist/esm/api/types/ExploreEvent.d.mts +2 -1
  234. package/dist/esm/api/types/ExploreTemporaryLocation.d.mts +2 -1
  235. package/dist/esm/api/types/StandShop.d.mts +24 -0
  236. package/dist/esm/api/types/StandShop.mjs +2 -0
  237. package/dist/esm/api/types/index.d.mts +2 -0
  238. package/dist/esm/api/types/index.mjs +2 -0
  239. package/dist/esm/version.d.mts +1 -1
  240. package/dist/esm/version.mjs +1 -1
  241. package/package.json +23 -1
  242. package/reference.md +502 -3
  243. /package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.js → ReorderMenuGroupsRequest.js} +0 -0
  244. /package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{MoveItemsRequest.js → MoveMenuItemRequest.js} +0 -0
  245. /package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.js → ReorderMenuItemsRequest.js} +0 -0
  246. /package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.mjs → ReorderMenuGroupsRequest.mjs} +0 -0
  247. /package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{MoveItemsRequest.mjs → MoveMenuItemRequest.mjs} +0 -0
  248. /package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.mjs → ReorderMenuItemsRequest.mjs} +0 -0
@@ -0,0 +1,384 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
+ import { mergeHeaders } from "../../../../core/headers.mjs";
24
+ import * as core from "../../../../core/index.mjs";
25
+ import * as environments from "../../../../environments.mjs";
26
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
27
+ import * as errors from "../../../../errors/index.mjs";
28
+ import * as FiveOneEat from "../../../index.mjs";
29
+ export class BusinessStandsClient {
30
+ constructor(options = {}) {
31
+ this._options = normalizeClientOptionsWithAuth(options);
32
+ }
33
+ /**
34
+ * @param {BusinessStandsClient.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link FiveOneEat.UnauthorizedError}
37
+ * @throws {@link FiveOneEat.ForbiddenError}
38
+ *
39
+ * @example
40
+ * await client.businessStands.listBusinessStands()
41
+ */
42
+ listBusinessStands(requestOptions) {
43
+ return core.HttpResponsePromise.fromPromise(this.__listBusinessStands(requestOptions));
44
+ }
45
+ __listBusinessStands(requestOptions) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
48
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
49
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
50
+ const _response = yield core.fetcher({
51
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/stands"),
52
+ method: "GET",
53
+ headers: _headers,
54
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
55
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
56
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
57
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
58
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
59
+ logging: this._options.logging,
60
+ });
61
+ if (_response.ok) {
62
+ return {
63
+ data: _response.body,
64
+ rawResponse: _response.rawResponse,
65
+ };
66
+ }
67
+ if (_response.error.reason === "status-code") {
68
+ switch (_response.error.statusCode) {
69
+ case 401:
70
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
71
+ case 403:
72
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
73
+ default:
74
+ throw new errors.FiveOneEatError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.body,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ }
80
+ }
81
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/stands");
82
+ });
83
+ }
84
+ /**
85
+ * @param {FiveOneEat.StoreStandRequest} request
86
+ * @param {BusinessStandsClient.RequestOptions} requestOptions - Request-specific configuration.
87
+ *
88
+ * @throws {@link FiveOneEat.UnauthorizedError}
89
+ * @throws {@link FiveOneEat.ForbiddenError}
90
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
91
+ *
92
+ * @example
93
+ * await client.businessStands.createBusinessStand({
94
+ * name: "name"
95
+ * })
96
+ */
97
+ createBusinessStand(request, requestOptions) {
98
+ return core.HttpResponsePromise.fromPromise(this.__createBusinessStand(request, requestOptions));
99
+ }
100
+ __createBusinessStand(request, requestOptions) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
103
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
104
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
105
+ const _response = yield core.fetcher({
106
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/stands"),
107
+ method: "POST",
108
+ headers: _headers,
109
+ contentType: "application/json",
110
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
111
+ requestType: "json",
112
+ body: request,
113
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
114
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
115
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
116
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
117
+ logging: this._options.logging,
118
+ });
119
+ if (_response.ok) {
120
+ return {
121
+ data: _response.body,
122
+ rawResponse: _response.rawResponse,
123
+ };
124
+ }
125
+ if (_response.error.reason === "status-code") {
126
+ switch (_response.error.statusCode) {
127
+ case 401:
128
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
129
+ case 403:
130
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
131
+ case 422:
132
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
133
+ default:
134
+ throw new errors.FiveOneEatError({
135
+ statusCode: _response.error.statusCode,
136
+ body: _response.error.body,
137
+ rawResponse: _response.rawResponse,
138
+ });
139
+ }
140
+ }
141
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/stands");
142
+ });
143
+ }
144
+ /**
145
+ * @param {FiveOneEat.GetBusinessStandRequest} request
146
+ * @param {BusinessStandsClient.RequestOptions} requestOptions - Request-specific configuration.
147
+ *
148
+ * @throws {@link FiveOneEat.UnauthorizedError}
149
+ * @throws {@link FiveOneEat.ForbiddenError}
150
+ * @throws {@link FiveOneEat.NotFoundError}
151
+ *
152
+ * @example
153
+ * await client.businessStands.getBusinessStand({
154
+ * stand: "stand"
155
+ * })
156
+ */
157
+ getBusinessStand(request, requestOptions) {
158
+ return core.HttpResponsePromise.fromPromise(this.__getBusinessStand(request, requestOptions));
159
+ }
160
+ __getBusinessStand(request, requestOptions) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
163
+ const { stand } = request;
164
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
165
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
166
+ const _response = yield core.fetcher({
167
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/stands/${core.url.encodePathParam(stand)}`),
168
+ method: "GET",
169
+ headers: _headers,
170
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
171
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
172
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
173
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
174
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
175
+ logging: this._options.logging,
176
+ });
177
+ if (_response.ok) {
178
+ return { data: _response.body, rawResponse: _response.rawResponse };
179
+ }
180
+ if (_response.error.reason === "status-code") {
181
+ switch (_response.error.statusCode) {
182
+ case 401:
183
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
184
+ case 403:
185
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
186
+ case 404:
187
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
188
+ default:
189
+ throw new errors.FiveOneEatError({
190
+ statusCode: _response.error.statusCode,
191
+ body: _response.error.body,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ }
195
+ }
196
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/stands/{stand}");
197
+ });
198
+ }
199
+ /**
200
+ * @param {FiveOneEat.UpdateStandRequest} request
201
+ * @param {BusinessStandsClient.RequestOptions} requestOptions - Request-specific configuration.
202
+ *
203
+ * @throws {@link FiveOneEat.UnauthorizedError}
204
+ * @throws {@link FiveOneEat.ForbiddenError}
205
+ * @throws {@link FiveOneEat.NotFoundError}
206
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
207
+ *
208
+ * @example
209
+ * await client.businessStands.updateBusinessStand({
210
+ * stand: "stand"
211
+ * })
212
+ */
213
+ updateBusinessStand(request, requestOptions) {
214
+ return core.HttpResponsePromise.fromPromise(this.__updateBusinessStand(request, requestOptions));
215
+ }
216
+ __updateBusinessStand(request, requestOptions) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
219
+ const { stand } = request, _body = __rest(request, ["stand"]);
220
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
221
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
222
+ const _response = yield core.fetcher({
223
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/stands/${core.url.encodePathParam(stand)}`),
224
+ method: "PUT",
225
+ headers: _headers,
226
+ contentType: "application/json",
227
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
228
+ requestType: "json",
229
+ body: _body,
230
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
231
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
232
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
233
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
234
+ logging: this._options.logging,
235
+ });
236
+ if (_response.ok) {
237
+ return {
238
+ data: _response.body,
239
+ rawResponse: _response.rawResponse,
240
+ };
241
+ }
242
+ if (_response.error.reason === "status-code") {
243
+ switch (_response.error.statusCode) {
244
+ case 401:
245
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
246
+ case 403:
247
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
248
+ case 404:
249
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
250
+ case 422:
251
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
252
+ default:
253
+ throw new errors.FiveOneEatError({
254
+ statusCode: _response.error.statusCode,
255
+ body: _response.error.body,
256
+ rawResponse: _response.rawResponse,
257
+ });
258
+ }
259
+ }
260
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/stands/{stand}");
261
+ });
262
+ }
263
+ /**
264
+ * @param {FiveOneEat.DeleteBusinessStandRequest} request
265
+ * @param {BusinessStandsClient.RequestOptions} requestOptions - Request-specific configuration.
266
+ *
267
+ * @throws {@link FiveOneEat.UnauthorizedError}
268
+ * @throws {@link FiveOneEat.ForbiddenError}
269
+ * @throws {@link FiveOneEat.NotFoundError}
270
+ *
271
+ * @example
272
+ * await client.businessStands.deleteBusinessStand({
273
+ * stand: "stand"
274
+ * })
275
+ */
276
+ deleteBusinessStand(request, requestOptions) {
277
+ return core.HttpResponsePromise.fromPromise(this.__deleteBusinessStand(request, requestOptions));
278
+ }
279
+ __deleteBusinessStand(request, requestOptions) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
282
+ const { stand } = request;
283
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
284
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
285
+ const _response = yield core.fetcher({
286
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/stands/${core.url.encodePathParam(stand)}`),
287
+ method: "DELETE",
288
+ headers: _headers,
289
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
290
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
291
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
292
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
293
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
294
+ logging: this._options.logging,
295
+ });
296
+ if (_response.ok) {
297
+ return { data: undefined, rawResponse: _response.rawResponse };
298
+ }
299
+ if (_response.error.reason === "status-code") {
300
+ switch (_response.error.statusCode) {
301
+ case 401:
302
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
303
+ case 403:
304
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
305
+ case 404:
306
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
307
+ default:
308
+ throw new errors.FiveOneEatError({
309
+ statusCode: _response.error.statusCode,
310
+ body: _response.error.body,
311
+ rawResponse: _response.rawResponse,
312
+ });
313
+ }
314
+ }
315
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/business/stands/{stand}");
316
+ });
317
+ }
318
+ /**
319
+ * Replaces the stand's product list with the submitted set. Send an empty
320
+ * array to clear all assignments. Only products belonging to the
321
+ * authenticated business are accepted.
322
+ *
323
+ * @param {FiveOneEat.SyncStandProductsRequest} request
324
+ * @param {BusinessStandsClient.RequestOptions} requestOptions - Request-specific configuration.
325
+ *
326
+ * @throws {@link FiveOneEat.UnauthorizedError}
327
+ * @throws {@link FiveOneEat.ForbiddenError}
328
+ * @throws {@link FiveOneEat.NotFoundError}
329
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
330
+ *
331
+ * @example
332
+ * await client.businessStands.syncStandProducts({
333
+ * stand: "stand",
334
+ * product_ids: ["product_ids"]
335
+ * })
336
+ */
337
+ syncStandProducts(request, requestOptions) {
338
+ return core.HttpResponsePromise.fromPromise(this.__syncStandProducts(request, requestOptions));
339
+ }
340
+ __syncStandProducts(request, requestOptions) {
341
+ return __awaiter(this, void 0, void 0, function* () {
342
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
343
+ const { stand } = request, _body = __rest(request, ["stand"]);
344
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
345
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
346
+ const _response = yield core.fetcher({
347
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/stands/${core.url.encodePathParam(stand)}/products`),
348
+ method: "PUT",
349
+ headers: _headers,
350
+ contentType: "application/json",
351
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
352
+ requestType: "json",
353
+ body: _body,
354
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
355
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
356
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
357
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
358
+ logging: this._options.logging,
359
+ });
360
+ if (_response.ok) {
361
+ return { data: _response.body, rawResponse: _response.rawResponse };
362
+ }
363
+ if (_response.error.reason === "status-code") {
364
+ switch (_response.error.statusCode) {
365
+ case 401:
366
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
367
+ case 403:
368
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
369
+ case 404:
370
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
371
+ case 422:
372
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
373
+ default:
374
+ throw new errors.FiveOneEatError({
375
+ statusCode: _response.error.statusCode,
376
+ body: _response.error.body,
377
+ rawResponse: _response.rawResponse,
378
+ });
379
+ }
380
+ }
381
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/stands/{stand}/products");
382
+ });
383
+ }
384
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * stand: "stand"
5
+ * }
6
+ */
7
+ export interface DeleteBusinessStandRequest {
8
+ /** The stand ID */
9
+ stand: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * stand: "stand"
5
+ * }
6
+ */
7
+ export interface GetBusinessStandRequest {
8
+ /** The stand ID */
9
+ stand: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface StoreStandRequest {
8
+ name: string;
9
+ notes?: string | null;
10
+ address?: string | null;
11
+ city?: string | null;
12
+ state?: string | null;
13
+ zipcode?: string | null;
14
+ country?: string | null;
15
+ latitude?: number | null;
16
+ longitude?: number | null;
17
+ is_active?: boolean | null;
18
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * stand: "stand",
5
+ * product_ids: ["product_ids"]
6
+ * }
7
+ */
8
+ export interface SyncStandProductsRequest {
9
+ /** The stand ID */
10
+ stand: string;
11
+ product_ids: string[];
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * stand: "stand"
5
+ * }
6
+ */
7
+ export interface UpdateStandRequest {
8
+ /** The stand ID */
9
+ stand: string;
10
+ name?: string;
11
+ notes?: string | null;
12
+ address?: string | null;
13
+ city?: string | null;
14
+ state?: string | null;
15
+ zipcode?: string | null;
16
+ country?: string | null;
17
+ latitude?: number | null;
18
+ longitude?: number | null;
19
+ is_active?: boolean | null;
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export type { DeleteBusinessStandRequest } from "./DeleteBusinessStandRequest.mjs";
2
+ export type { GetBusinessStandRequest } from "./GetBusinessStandRequest.mjs";
3
+ export type { StoreStandRequest } from "./StoreStandRequest.mjs";
4
+ export type { SyncStandProductsRequest } from "./SyncStandProductsRequest.mjs";
5
+ export type { UpdateStandRequest } from "./UpdateStandRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { BusinessStandsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { BusinessStandsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../index.mjs";
2
+ export interface CreateBusinessStandResponse {
3
+ data: FiveOneEat.BusinessStand;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../index.mjs";
2
+ export interface GetBusinessStandResponse {
3
+ data: FiveOneEat.BusinessStand;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../index.mjs";
2
+ export interface ListBusinessStandsResponse {
3
+ data: FiveOneEat.BusinessStand[];
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../index.mjs";
2
+ export interface UpdateBusinessStandResponse {
3
+ data: FiveOneEat.BusinessStand;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./CreateBusinessStandResponse.mjs";
2
+ export * from "./GetBusinessStandResponse.mjs";
3
+ export * from "./ListBusinessStandsResponse.mjs";
4
+ export * from "./UpdateBusinessStandResponse.mjs";
@@ -0,0 +1,4 @@
1
+ export * from "./CreateBusinessStandResponse.mjs";
2
+ export * from "./GetBusinessStandResponse.mjs";
3
+ export * from "./ListBusinessStandsResponse.mjs";
4
+ export * from "./UpdateBusinessStandResponse.mjs";
@@ -0,0 +1,63 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as FiveOneEat from "../../../index.mjs";
5
+ export declare namespace CustomerStandsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class CustomerStandsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<CustomerStandsClient.Options>;
12
+ constructor(options?: CustomerStandsClient.Options);
13
+ /**
14
+ * Logs the scan (user id captured when authenticated) and returns the
15
+ * stand, its business, and the business's published products.
16
+ *
17
+ * @param {FiveOneEat.ScanStandRequest} request
18
+ * @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link FiveOneEat.NotFoundError}
21
+ *
22
+ * @example
23
+ * await client.customerStands.scanStand({
24
+ * stand: "stand"
25
+ * })
26
+ */
27
+ scanStand(request: FiveOneEat.ScanStandRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.ScanStandResponse>;
28
+ private __scanStand;
29
+ /**
30
+ * Returns client_secret, price breakdown, and tax calculation for use with Stripe SDK.
31
+ * Shipping is always zero for stand orders.
32
+ *
33
+ * @param {FiveOneEat.CreateStandPaymentIntentRequest} request
34
+ * @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link FiveOneEat.UnauthorizedError}
37
+ * @throws {@link FiveOneEat.NotFoundError}
38
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
39
+ *
40
+ * @example
41
+ * await client.customerStands.createStandPaymentIntent({
42
+ * stand: "stand"
43
+ * })
44
+ */
45
+ createStandPaymentIntent(request: FiveOneEat.CreateStandPaymentIntentRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CreateStandPaymentIntentResponse>;
46
+ private __createStandPaymentIntent;
47
+ /**
48
+ * @param {FiveOneEat.SelfCheckoutRequest} request
49
+ * @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @throws {@link FiveOneEat.UnauthorizedError}
52
+ * @throws {@link FiveOneEat.NotFoundError}
53
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
54
+ *
55
+ * @example
56
+ * await client.customerStands.standCheckout({
57
+ * stand: "stand",
58
+ * payment_intent_id: "payment_intent_id"
59
+ * })
60
+ */
61
+ standCheckout(request: FiveOneEat.SelfCheckoutRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.StandCheckoutResponse>;
62
+ private __standCheckout;
63
+ }