@51eat/sdk 0.0.42 → 0.0.44

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 (220) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/business/resources/products/client/Client.js +7 -2
  4. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +69 -0
  5. package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +259 -0
  6. package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.js +17 -0
  8. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
  9. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.js +3 -0
  10. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
  11. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.js +3 -0
  12. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
  13. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.js +3 -0
  14. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.d.ts +3 -0
  15. package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.js +2 -0
  16. package/dist/cjs/api/resources/business/resources/products/resources/images/exports.d.ts +2 -0
  17. package/dist/cjs/api/resources/business/resources/products/resources/images/exports.js +21 -0
  18. package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/business/resources/products/resources/images/index.js +18 -0
  20. package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +9 -0
  21. package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +10 -0
  22. package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +9 -0
  23. package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +10 -0
  24. package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +4 -0
  25. package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.js +3 -0
  26. package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +3 -0
  27. package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.js +19 -0
  28. package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
  29. package/dist/cjs/api/resources/business/resources/products/resources/index.js +4 -1
  30. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +3 -0
  31. package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +5 -0
  32. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.d.ts +1 -0
  33. package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.js +1 -0
  34. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/business/resources/products/resources/variants/index.js +1 -0
  36. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +69 -0
  37. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +259 -0
  38. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.js +17 -0
  40. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
  41. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.js +3 -0
  42. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
  43. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.js +3 -0
  44. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
  45. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.js +3 -0
  46. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.ts +3 -0
  47. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.d.ts +2 -0
  49. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.js +21 -0
  50. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +2 -0
  51. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +18 -0
  52. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +9 -0
  53. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +10 -0
  54. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +9 -0
  55. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +10 -0
  56. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +4 -0
  57. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js +3 -0
  58. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +3 -0
  59. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +19 -0
  60. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -0
  61. package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +42 -0
  62. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +6 -6
  63. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +24 -24
  64. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -2
  65. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -2
  66. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +2 -2
  67. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +2 -2
  68. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -2
  69. package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -2
  70. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +1 -1
  71. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +4 -4
  72. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +2 -2
  73. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +4 -4
  74. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +16 -16
  75. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +2 -2
  76. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +2 -2
  77. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +2 -2
  78. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.ts +2 -2
  79. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +4 -4
  80. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +16 -16
  81. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +2 -2
  82. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +2 -2
  83. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +2 -2
  84. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/StoreEventRsvpRequest.d.ts +2 -2
  85. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +43 -35
  86. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +105 -92
  87. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -2
  88. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +3 -0
  89. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +10 -0
  90. package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.js +3 -0
  91. package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +3 -0
  92. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +10 -0
  93. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.js +3 -0
  94. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
  95. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +3 -3
  96. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +12 -12
  97. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -2
  98. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -2
  99. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +2 -2
  100. package/dist/cjs/api/types/BusinessProduct.d.ts +1 -1
  101. package/dist/cjs/api/types/BusinessProductVariant.d.ts +2 -0
  102. package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +12 -0
  103. package/dist/cjs/api/types/ReorderProductImagesRequest.js +3 -0
  104. package/dist/cjs/api/types/StoreProductImageRequest.d.ts +4 -0
  105. package/dist/cjs/api/types/StoreProductImageRequest.js +3 -0
  106. package/dist/cjs/api/types/index.d.ts +2 -0
  107. package/dist/cjs/api/types/index.js +2 -0
  108. package/dist/cjs/version.d.ts +1 -1
  109. package/dist/cjs/version.js +1 -1
  110. package/dist/esm/BaseClient.mjs +2 -2
  111. package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +3 -0
  112. package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
  113. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +69 -0
  114. package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +222 -0
  115. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.d.mts +1 -0
  116. package/dist/esm/api/resources/business/resources/products/resources/images/client/index.mjs +1 -0
  117. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  118. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.mjs +2 -0
  119. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  120. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.mjs +2 -0
  121. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  122. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.mjs +2 -0
  123. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.d.mts +3 -0
  124. package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.mjs +1 -0
  125. package/dist/esm/api/resources/business/resources/products/resources/images/exports.d.mts +2 -0
  126. package/dist/esm/api/resources/business/resources/products/resources/images/exports.mjs +3 -0
  127. package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +2 -0
  128. package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +2 -0
  129. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  130. package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +7 -0
  131. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  132. package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +7 -0
  133. package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +4 -0
  134. package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.mjs +2 -0
  135. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +3 -0
  136. package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +3 -0
  137. package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
  138. package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
  139. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
  140. package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
  141. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +1 -0
  142. package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +1 -0
  143. package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +1 -0
  144. package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +1 -0
  145. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +69 -0
  146. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +222 -0
  147. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.mts +1 -0
  148. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.mjs +1 -0
  149. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
  150. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.mjs +2 -0
  151. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
  152. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.mjs +2 -0
  153. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
  154. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.mjs +2 -0
  155. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.mts +3 -0
  156. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.mjs +1 -0
  157. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.d.mts +2 -0
  158. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.mjs +3 -0
  159. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +2 -0
  160. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +2 -0
  161. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +9 -0
  162. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +7 -0
  163. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +9 -0
  164. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +7 -0
  165. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +4 -0
  166. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs +2 -0
  167. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +3 -0
  168. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +3 -0
  169. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
  170. package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
  171. package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +6 -6
  172. package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +24 -24
  173. package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -2
  174. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -2
  175. package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +2 -2
  176. package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +2 -2
  177. package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -2
  178. package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -2
  179. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +1 -1
  180. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +4 -4
  181. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +2 -2
  182. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +4 -4
  183. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +16 -16
  184. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +2 -2
  185. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +2 -2
  186. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +2 -2
  187. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.mts +2 -2
  188. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +4 -4
  189. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +16 -16
  190. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +2 -2
  191. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +2 -2
  192. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +2 -2
  193. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/StoreEventRsvpRequest.d.mts +2 -2
  194. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +43 -35
  195. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +105 -92
  196. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -2
  197. package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +3 -0
  198. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +10 -0
  199. package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.mjs +2 -0
  200. package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +3 -0
  201. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +10 -0
  202. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.mjs +2 -0
  203. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
  204. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +3 -3
  205. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +12 -12
  206. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -2
  207. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -2
  208. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +2 -2
  209. package/dist/esm/api/types/BusinessProduct.d.mts +1 -1
  210. package/dist/esm/api/types/BusinessProductVariant.d.mts +2 -0
  211. package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +12 -0
  212. package/dist/esm/api/types/ReorderProductImagesRequest.mjs +2 -0
  213. package/dist/esm/api/types/StoreProductImageRequest.d.mts +4 -0
  214. package/dist/esm/api/types/StoreProductImageRequest.mjs +2 -0
  215. package/dist/esm/api/types/index.d.mts +2 -0
  216. package/dist/esm/api/types/index.mjs +2 -0
  217. package/dist/esm/version.d.mts +1 -1
  218. package/dist/esm/version.mjs +1 -1
  219. package/package.json +23 -1
  220. package/reference.md +428 -82
@@ -0,0 +1,3 @@
1
+ export * from "./DeleteImagesResponse.mjs";
2
+ export * from "./ReorderImagesResponse.mjs";
3
+ export * from "./UploadImagesResponse.mjs";
@@ -1,3 +1,6 @@
1
+ export * from "./images/client/requests/index.mjs";
2
+ export * as images from "./images/index.mjs";
3
+ export * from "./images/types/index.mjs";
1
4
  export * from "./variants/client/requests/index.mjs";
2
5
  export * as variants from "./variants/index.mjs";
3
6
  export * from "./variants/types/index.mjs";
@@ -1,3 +1,6 @@
1
+ export * from "./images/client/requests/index.mjs";
2
+ export * as images from "./images/index.mjs";
3
+ export * from "./images/types/index.mjs";
1
4
  export * from "./variants/client/requests/index.mjs";
2
5
  export * as variants from "./variants/index.mjs";
3
6
  export * from "./variants/types/index.mjs";
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../..
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../../../../../core/index.mjs";
4
4
  import * as FiveOneEat from "../../../../../../../index.mjs";
5
+ import { ImagesClient } from "../resources/images/client/Client.mjs";
5
6
  export declare namespace VariantsClient {
6
7
  type Options = BaseClientOptions;
7
8
  interface RequestOptions extends BaseRequestOptions {
@@ -9,7 +10,9 @@ export declare namespace VariantsClient {
9
10
  }
10
11
  export declare class VariantsClient {
11
12
  protected readonly _options: NormalizedClientOptionsWithAuth<VariantsClient.Options>;
13
+ protected _images: ImagesClient | undefined;
12
14
  constructor(options?: VariantsClient.Options);
15
+ get images(): ImagesClient;
13
16
  /**
14
17
  * @param {FiveOneEat.business.products.StoreProductVariantRequest} request
15
18
  * @param {VariantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -26,10 +26,15 @@ import * as environments from "../../../../../../../../environments.mjs";
26
26
  import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
27
27
  import * as errors from "../../../../../../../../errors/index.mjs";
28
28
  import * as FiveOneEat from "../../../../../../../index.mjs";
29
+ import { ImagesClient } from "../resources/images/client/Client.mjs";
29
30
  export class VariantsClient {
30
31
  constructor(options = {}) {
31
32
  this._options = normalizeClientOptionsWithAuth(options);
32
33
  }
34
+ get images() {
35
+ var _a;
36
+ return ((_a = this._images) !== null && _a !== void 0 ? _a : (this._images = new ImagesClient(this._options)));
37
+ }
33
38
  /**
34
39
  * @param {FiveOneEat.business.products.StoreProductVariantRequest} request
35
40
  * @param {VariantsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,2 +1,3 @@
1
1
  export { VariantsClient } from "./client/Client.mjs";
2
2
  export * from "./client/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -1,3 +1,4 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export { VariantsClient } from "./client/Client.mjs";
3
3
  export * from "./client/index.mjs";
4
+ export * from "./resources/index.mjs";
@@ -1,2 +1,3 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
2
3
  export * from "./types/index.mjs";
@@ -1,2 +1,3 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
2
3
  export * from "./types/index.mjs";
@@ -0,0 +1,69 @@
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 ImagesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ImagesClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ImagesClient.Options>;
12
+ constructor(options?: ImagesClient.Options);
13
+ /**
14
+ * @param {FiveOneEat.business.products.variants.UploadImagesRequest} request
15
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link FiveOneEat.UnauthorizedError}
18
+ * @throws {@link FiveOneEat.ForbiddenError}
19
+ * @throws {@link FiveOneEat.NotFoundError}
20
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
21
+ *
22
+ * @example
23
+ * import { createReadStream } from "fs";
24
+ * await client.business.products.variants.images.upload({
25
+ * image: fs.createReadStream("/path/to/your/file"),
26
+ * variant: "variant"
27
+ * })
28
+ */
29
+ upload(request: FiveOneEat.business.products.variants.UploadImagesRequest, requestOptions?: ImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.products.variants.UploadImagesResponse>;
30
+ private __upload;
31
+ /**
32
+ * @param {FiveOneEat.business.products.variants.ReorderImagesRequest} request
33
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link FiveOneEat.UnauthorizedError}
36
+ * @throws {@link FiveOneEat.ForbiddenError}
37
+ * @throws {@link FiveOneEat.NotFoundError}
38
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
39
+ *
40
+ * @example
41
+ * await client.business.products.variants.images.reorder({
42
+ * variant: "variant",
43
+ * body: {
44
+ * images: [{
45
+ * id: "id",
46
+ * sort_order: 1
47
+ * }]
48
+ * }
49
+ * })
50
+ */
51
+ reorder(request: FiveOneEat.business.products.variants.ReorderImagesRequest, requestOptions?: ImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.products.variants.ReorderImagesResponse>;
52
+ private __reorder;
53
+ /**
54
+ * @param {FiveOneEat.business.products.variants.DeleteImagesRequest} request
55
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link FiveOneEat.UnauthorizedError}
58
+ * @throws {@link FiveOneEat.ForbiddenError}
59
+ * @throws {@link FiveOneEat.NotFoundError}
60
+ *
61
+ * @example
62
+ * await client.business.products.variants.images.delete({
63
+ * variant: "variant",
64
+ * image: "image"
65
+ * })
66
+ */
67
+ delete(request: FiveOneEat.business.products.variants.DeleteImagesRequest, requestOptions?: ImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.products.variants.DeleteImagesResponse>;
68
+ private __delete;
69
+ }
@@ -0,0 +1,222 @@
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
+ import { normalizeClientOptionsWithAuth, } from "../../../../../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../../../../../core/index.mjs";
14
+ import * as environments from "../../../../../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../../../../../errors/index.mjs";
17
+ import * as FiveOneEat from "../../../../../../../../../index.mjs";
18
+ export class ImagesClient {
19
+ constructor(options = {}) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * @param {FiveOneEat.business.products.variants.UploadImagesRequest} request
24
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
25
+ *
26
+ * @throws {@link FiveOneEat.UnauthorizedError}
27
+ * @throws {@link FiveOneEat.ForbiddenError}
28
+ * @throws {@link FiveOneEat.NotFoundError}
29
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * import { createReadStream } from "fs";
33
+ * await client.business.products.variants.images.upload({
34
+ * image: fs.createReadStream("/path/to/your/file"),
35
+ * variant: "variant"
36
+ * })
37
+ */
38
+ upload(request, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__upload(request, requestOptions));
40
+ }
41
+ __upload(request, requestOptions) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
44
+ const _body = yield core.newFormData();
45
+ yield _body.appendFile("image", request.image);
46
+ if (request.alt_text != null) {
47
+ _body.append("alt_text", request.alt_text);
48
+ }
49
+ const _maybeEncodedRequest = yield _body.getRequest();
50
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
51
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
52
+ const _response = yield core.fetcher({
53
+ 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/products/variants/${core.url.encodePathParam(request.variant)}/images`),
54
+ method: "POST",
55
+ headers: _headers,
56
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
57
+ requestType: "file",
58
+ duplex: _maybeEncodedRequest.duplex,
59
+ body: _maybeEncodedRequest.body,
60
+ 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,
61
+ 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,
62
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
64
+ logging: this._options.logging,
65
+ });
66
+ if (_response.ok) {
67
+ return {
68
+ data: _response.body,
69
+ rawResponse: _response.rawResponse,
70
+ };
71
+ }
72
+ if (_response.error.reason === "status-code") {
73
+ switch (_response.error.statusCode) {
74
+ case 401:
75
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
76
+ case 403:
77
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
78
+ case 404:
79
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
80
+ case 422:
81
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
82
+ default:
83
+ throw new errors.FiveOneEatError({
84
+ statusCode: _response.error.statusCode,
85
+ body: _response.error.body,
86
+ rawResponse: _response.rawResponse,
87
+ });
88
+ }
89
+ }
90
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/products/variants/{variant}/images");
91
+ });
92
+ }
93
+ /**
94
+ * @param {FiveOneEat.business.products.variants.ReorderImagesRequest} request
95
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link FiveOneEat.UnauthorizedError}
98
+ * @throws {@link FiveOneEat.ForbiddenError}
99
+ * @throws {@link FiveOneEat.NotFoundError}
100
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
101
+ *
102
+ * @example
103
+ * await client.business.products.variants.images.reorder({
104
+ * variant: "variant",
105
+ * body: {
106
+ * images: [{
107
+ * id: "id",
108
+ * sort_order: 1
109
+ * }]
110
+ * }
111
+ * })
112
+ */
113
+ reorder(request, requestOptions) {
114
+ return core.HttpResponsePromise.fromPromise(this.__reorder(request, requestOptions));
115
+ }
116
+ __reorder(request, requestOptions) {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
119
+ const { variant, body: _body } = request;
120
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
121
+ 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);
122
+ const _response = yield core.fetcher({
123
+ 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/products/variants/${core.url.encodePathParam(variant)}/images/reorder`),
124
+ method: "PUT",
125
+ headers: _headers,
126
+ contentType: "application/json",
127
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
128
+ requestType: "json",
129
+ body: _body,
130
+ 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,
131
+ 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,
132
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
133
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
134
+ logging: this._options.logging,
135
+ });
136
+ if (_response.ok) {
137
+ return {
138
+ data: _response.body,
139
+ rawResponse: _response.rawResponse,
140
+ };
141
+ }
142
+ if (_response.error.reason === "status-code") {
143
+ switch (_response.error.statusCode) {
144
+ case 401:
145
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
146
+ case 403:
147
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
148
+ case 404:
149
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
150
+ case 422:
151
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
152
+ default:
153
+ throw new errors.FiveOneEatError({
154
+ statusCode: _response.error.statusCode,
155
+ body: _response.error.body,
156
+ rawResponse: _response.rawResponse,
157
+ });
158
+ }
159
+ }
160
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/products/variants/{variant}/images/reorder");
161
+ });
162
+ }
163
+ /**
164
+ * @param {FiveOneEat.business.products.variants.DeleteImagesRequest} request
165
+ * @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
166
+ *
167
+ * @throws {@link FiveOneEat.UnauthorizedError}
168
+ * @throws {@link FiveOneEat.ForbiddenError}
169
+ * @throws {@link FiveOneEat.NotFoundError}
170
+ *
171
+ * @example
172
+ * await client.business.products.variants.images.delete({
173
+ * variant: "variant",
174
+ * image: "image"
175
+ * })
176
+ */
177
+ delete(request, requestOptions) {
178
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
179
+ }
180
+ __delete(request, requestOptions) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
183
+ const { variant, image } = request;
184
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
185
+ 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);
186
+ const _response = yield core.fetcher({
187
+ 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/products/variants/${core.url.encodePathParam(variant)}/images/${core.url.encodePathParam(image)}`),
188
+ method: "DELETE",
189
+ headers: _headers,
190
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
191
+ 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,
192
+ 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,
193
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
195
+ logging: this._options.logging,
196
+ });
197
+ if (_response.ok) {
198
+ return {
199
+ data: _response.body,
200
+ rawResponse: _response.rawResponse,
201
+ };
202
+ }
203
+ if (_response.error.reason === "status-code") {
204
+ switch (_response.error.statusCode) {
205
+ case 401:
206
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
207
+ case 403:
208
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
209
+ case 404:
210
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
211
+ default:
212
+ throw new errors.FiveOneEatError({
213
+ statusCode: _response.error.statusCode,
214
+ body: _response.error.body,
215
+ rawResponse: _response.rawResponse,
216
+ });
217
+ }
218
+ }
219
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/business/products/variants/{variant}/images/{image}");
220
+ });
221
+ }
222
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * variant: "variant",
5
+ * image: "image"
6
+ * }
7
+ */
8
+ export interface DeleteImagesRequest {
9
+ /** The variant ID */
10
+ variant: string;
11
+ /** The image ID */
12
+ image: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,18 @@
1
+ import type * as FiveOneEat from "../../../../../../../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * variant: "variant",
6
+ * body: {
7
+ * images: [{
8
+ * id: "id",
9
+ * sort_order: 1
10
+ * }]
11
+ * }
12
+ * }
13
+ */
14
+ export interface ReorderImagesRequest {
15
+ /** The variant ID */
16
+ variant: string;
17
+ body: FiveOneEat.ReorderProductImagesRequest;
18
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ import type * as core from "../../../../../../../../../../../core/index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * image: fs.createReadStream("/path/to/your/file"),
6
+ * variant: "variant"
7
+ * }
8
+ */
9
+ export interface UploadImagesRequest {
10
+ /** The variant ID */
11
+ variant: string;
12
+ image: core.file.Uploadable;
13
+ alt_text?: string | null;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export type { DeleteImagesRequest } from "./DeleteImagesRequest.mjs";
2
+ export type { ReorderImagesRequest } from "./ReorderImagesRequest.mjs";
3
+ export type { UploadImagesRequest } from "./UploadImagesRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { ImagesClient } 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 { ImagesClient } 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,9 @@
1
+ export interface DeleteImagesResponse {
2
+ message: DeleteImagesResponse.Message;
3
+ }
4
+ export declare namespace DeleteImagesResponse {
5
+ const Message: {
6
+ readonly ImageDeletedSuccessfully: "Image deleted successfully.";
7
+ };
8
+ type Message = (typeof Message)[keyof typeof Message];
9
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var DeleteImagesResponse;
3
+ (function (DeleteImagesResponse) {
4
+ DeleteImagesResponse.Message = {
5
+ ImageDeletedSuccessfully: "Image deleted successfully.",
6
+ };
7
+ })(DeleteImagesResponse || (DeleteImagesResponse = {}));
@@ -0,0 +1,9 @@
1
+ export interface ReorderImagesResponse {
2
+ message: ReorderImagesResponse.Message;
3
+ }
4
+ export declare namespace ReorderImagesResponse {
5
+ const Message: {
6
+ readonly ImageOrderUpdatedSuccessfully: "Image order updated successfully.";
7
+ };
8
+ type Message = (typeof Message)[keyof typeof Message];
9
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ReorderImagesResponse;
3
+ (function (ReorderImagesResponse) {
4
+ ReorderImagesResponse.Message = {
5
+ ImageOrderUpdatedSuccessfully: "Image order updated successfully.",
6
+ };
7
+ })(ReorderImagesResponse || (ReorderImagesResponse = {}));
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../../../index.mjs";
2
+ export interface UploadImagesResponse {
3
+ data: FiveOneEat.BusinessPhoto;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./DeleteImagesResponse.mjs";
2
+ export * from "./ReorderImagesResponse.mjs";
3
+ export * from "./UploadImagesResponse.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./DeleteImagesResponse.mjs";
2
+ export * from "./ReorderImagesResponse.mjs";
3
+ export * from "./UploadImagesResponse.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./images/client/requests/index.mjs";
2
+ export * as images from "./images/index.mjs";
3
+ export * from "./images/types/index.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./images/client/requests/index.mjs";
2
+ export * as images from "./images/index.mjs";
3
+ export * from "./images/types/index.mjs";
@@ -26,7 +26,7 @@ export declare class BusinessesClient {
26
26
  *
27
27
  * @example
28
28
  * await client.customer.businesses.profile({
29
- * handle: "katzs-deli"
29
+ * business: "katzs-deli"
30
30
  * })
31
31
  */
32
32
  profile(request: FiveOneEat.customer.ProfileBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ProfileBusinessesResponse>;
@@ -42,7 +42,7 @@ export declare class BusinessesClient {
42
42
  *
43
43
  * @example
44
44
  * await client.customer.businesses.menus({
45
- * handle: "katzs-deli"
45
+ * business: "katzs-deli"
46
46
  * })
47
47
  */
48
48
  menus(request: FiveOneEat.customer.MenusBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.MenusBusinessesResponse>;
@@ -58,7 +58,7 @@ export declare class BusinessesClient {
58
58
  *
59
59
  * @example
60
60
  * await client.customer.businesses.photos({
61
- * handle: "katzs-deli"
61
+ * business: "katzs-deli"
62
62
  * })
63
63
  */
64
64
  photos(request: FiveOneEat.customer.PhotosBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.PhotosBusinessesResponse>;
@@ -75,7 +75,7 @@ export declare class BusinessesClient {
75
75
  *
76
76
  * @example
77
77
  * await client.customer.businesses.favorite({
78
- * handle: "katzs-deli"
78
+ * business: "katzs-deli"
79
79
  * })
80
80
  */
81
81
  favorite(request: FiveOneEat.customer.FavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.FavoriteBusinessesResponse>;
@@ -90,7 +90,7 @@ export declare class BusinessesClient {
90
90
  *
91
91
  * @example
92
92
  * await client.customer.businesses.unfavorite({
93
- * handle: "katzs-deli"
93
+ * business: "katzs-deli"
94
94
  * })
95
95
  */
96
96
  unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
@@ -105,7 +105,7 @@ export declare class BusinessesClient {
105
105
  *
106
106
  * @example
107
107
  * await client.customer.businesses.listTemporaryLocations({
108
- * handle: "katzs-deli"
108
+ * business: "katzs-deli"
109
109
  * })
110
110
  */
111
111
  listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListTemporaryLocationsBusinessesResponse>;