@51eat/sdk 2.0.0 → 2.1.0

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 (420) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/resources/commerce/client/Client.d.ts +9 -0
  3. package/dist/cjs/api/resources/business/resources/commerce/client/Client.js +17 -2
  4. package/dist/cjs/api/resources/business/resources/commerce/resources/index.d.ts +10 -0
  5. package/dist/cjs/api/resources/business/resources/commerce/resources/index.js +14 -4
  6. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.d.ts +294 -1
  7. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.js +893 -1
  8. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.d.ts +1 -1
  9. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/index.js +15 -0
  10. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.ts +10 -0
  11. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.js +3 -0
  12. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.ts +10 -0
  13. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.js +3 -0
  14. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.ts +10 -0
  15. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.js +3 -0
  16. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.ts +10 -0
  17. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.js +3 -0
  18. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.ts +10 -0
  19. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.js +3 -0
  20. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.ts +10 -0
  21. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.js +3 -0
  22. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.ts +10 -0
  23. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.js +3 -0
  24. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.ts +52 -0
  25. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.js +3 -0
  26. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.ts +12 -0
  27. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.js +3 -0
  28. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.ts +68 -0
  29. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.js +38 -0
  30. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.ts +30 -0
  31. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.js +3 -0
  32. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.ts +46 -0
  33. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.js +3 -0
  34. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.ts +52 -0
  35. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.js +3 -0
  36. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.ts +13 -0
  37. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.js +5 -0
  38. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.ts +4 -0
  39. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.js +3 -0
  40. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.ts +4 -0
  41. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.js +3 -0
  42. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.ts +9 -0
  43. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.js +3 -0
  44. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.ts +4 -0
  45. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.js +3 -0
  46. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.ts +4 -0
  47. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.js +3 -0
  48. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.ts +4 -0
  49. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.js +3 -0
  50. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.ts +1 -0
  51. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.ts +8 -0
  52. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.js +3 -0
  53. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.ts +15 -0
  54. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.js +3 -0
  55. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.ts +4 -0
  56. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.js +3 -0
  57. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.ts +4 -0
  58. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.js +3 -0
  59. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.ts +4 -0
  60. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.js +3 -0
  61. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.ts +4 -0
  62. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.js +3 -0
  63. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.d.ts +12 -0
  64. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.js +12 -0
  65. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.d.ts +114 -0
  66. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/Client.js +401 -0
  67. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/index.js +17 -0
  69. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.ts +10 -0
  70. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.js +3 -0
  71. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.ts +10 -0
  72. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.js +3 -0
  73. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.ts +12 -0
  74. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.js +3 -0
  75. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.ts +49 -0
  76. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.js +17 -0
  77. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.ts +36 -0
  78. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.js +17 -0
  79. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.d.ts +5 -0
  80. package/dist/cjs/api/resources/business/resources/commerce/resources/products/client/requests/index.js +7 -0
  81. package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.d.ts +2 -0
  82. package/dist/cjs/api/resources/business/resources/commerce/resources/products/exports.js +21 -0
  83. package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.d.ts +2 -0
  84. package/dist/cjs/api/resources/business/resources/commerce/resources/products/index.js +18 -0
  85. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.ts +8 -0
  86. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.js +3 -0
  87. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.ts +8 -0
  88. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.js +3 -0
  89. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.ts +44 -0
  90. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.js +3 -0
  91. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.ts +8 -0
  92. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.js +3 -0
  93. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.d.ts +4 -0
  94. package/dist/cjs/api/resources/business/resources/commerce/resources/products/types/index.js +20 -0
  95. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.d.ts +104 -0
  96. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/Client.js +380 -0
  97. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.d.ts +1 -0
  98. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/index.js +17 -0
  99. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.ts +12 -0
  100. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.js +3 -0
  101. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.ts +12 -0
  102. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.js +3 -0
  103. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.ts +9 -0
  104. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.js +3 -0
  105. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.ts +3 -0
  106. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/client/requests/index.js +2 -0
  107. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.d.ts +2 -0
  108. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/exports.js +21 -0
  109. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.d.ts +2 -0
  110. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/index.js +18 -0
  111. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.ts +4 -0
  112. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.js +3 -0
  113. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.ts +4 -0
  114. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.js +3 -0
  115. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.ts +4 -0
  116. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.js +3 -0
  117. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.ts +4 -0
  118. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.js +3 -0
  119. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.ts +4 -0
  120. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.js +3 -0
  121. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.d.ts +5 -0
  122. package/dist/cjs/api/resources/business/resources/commerce/resources/selling/types/index.js +21 -0
  123. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.d.ts +163 -0
  124. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/Client.js +537 -0
  125. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.d.ts +1 -0
  126. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/index.js +17 -0
  127. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.ts +13 -0
  128. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.js +3 -0
  129. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.ts +13 -0
  130. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.js +3 -0
  131. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.ts +13 -0
  132. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.js +3 -0
  133. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.ts +10 -0
  134. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.js +3 -0
  135. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.ts +16 -0
  136. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.js +3 -0
  137. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.ts +54 -0
  138. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.js +17 -0
  139. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.ts +46 -0
  140. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.js +17 -0
  141. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.ts +7 -0
  142. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/client/requests/index.js +7 -0
  143. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.d.ts +2 -0
  144. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/exports.js +21 -0
  145. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.d.ts +2 -0
  146. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/index.js +18 -0
  147. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.ts +4 -0
  148. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.js +3 -0
  149. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.ts +8 -0
  150. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.js +3 -0
  151. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.ts +6 -0
  152. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.js +3 -0
  153. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.ts +4 -0
  154. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.js +3 -0
  155. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.ts +4 -0
  156. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.js +3 -0
  157. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.ts +8 -0
  158. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.js +3 -0
  159. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.d.ts +6 -0
  160. package/dist/cjs/api/resources/business/resources/commerce/resources/variants/types/index.js +22 -0
  161. package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.d.ts +9 -5
  162. package/dist/cjs/api/resources/commerce/resources/carts/resources/lines/client/Client.js +9 -5
  163. package/dist/cjs/api/types/BusinessCommerceLocation.d.ts +37 -3
  164. package/dist/cjs/api/types/BusinessEvent.d.ts +2 -0
  165. package/dist/cjs/api/types/BusinessLocation.d.ts +29 -0
  166. package/dist/cjs/api/types/BusinessLocation.js +11 -0
  167. package/dist/cjs/api/types/BusinessLocationDetails.d.ts +36 -0
  168. package/dist/cjs/api/types/BusinessLocationDetails.js +11 -0
  169. package/dist/cjs/api/types/BusinessLocationHourException.d.ts +14 -0
  170. package/dist/cjs/api/types/BusinessLocationHourException.js +3 -0
  171. package/dist/cjs/api/types/BusinessLocationOpeningHours.d.ts +17 -0
  172. package/dist/cjs/api/types/BusinessLocationOpeningHours.js +3 -0
  173. package/dist/cjs/api/types/BusinessLocationPickup.d.ts +25 -0
  174. package/dist/cjs/api/types/BusinessLocationPickup.js +14 -0
  175. package/dist/cjs/api/types/BusinessOpeningHourSlot.d.ts +10 -0
  176. package/dist/cjs/api/types/BusinessOpeningHourSlot.js +3 -0
  177. package/dist/cjs/api/types/BusinessPickupSchedule.d.ts +10 -0
  178. package/dist/cjs/api/types/BusinessPickupSchedule.js +3 -0
  179. package/dist/cjs/api/types/BusinessPickupWindow.d.ts +11 -0
  180. package/dist/cjs/api/types/BusinessPickupWindow.js +3 -0
  181. package/dist/cjs/api/types/BusinessSellerTerms.d.ts +10 -0
  182. package/dist/cjs/api/types/BusinessSellerTerms.js +3 -0
  183. package/dist/cjs/api/types/BusinessSelling.d.ts +61 -0
  184. package/dist/cjs/api/types/BusinessSelling.js +16 -0
  185. package/dist/cjs/api/types/Cart.d.ts +1 -1
  186. package/dist/cjs/api/types/CustomerEvent.d.ts +6 -0
  187. package/dist/cjs/api/types/CustomerEventDetail.d.ts +6 -0
  188. package/dist/cjs/api/types/CustomerEventTicketType.d.ts +7 -0
  189. package/dist/cjs/api/types/EventFeedItem.d.ts +6 -0
  190. package/dist/cjs/api/types/ImageResource.d.ts +7 -0
  191. package/dist/cjs/api/types/ImageResource.js +3 -0
  192. package/dist/cjs/api/types/LocationKind.d.ts +12 -0
  193. package/dist/cjs/api/types/LocationKind.js +15 -0
  194. package/dist/cjs/api/types/ProductResource.d.ts +41 -0
  195. package/dist/cjs/api/types/ProductResource.js +18 -0
  196. package/dist/cjs/api/types/Unit.d.ts +16 -0
  197. package/dist/cjs/api/types/Unit.js +19 -0
  198. package/dist/cjs/api/types/UpdateLocationRequest.d.ts +7 -0
  199. package/dist/cjs/api/types/UpdateLocationRequest.js +3 -0
  200. package/dist/cjs/api/types/VariantInventoryLevelResource.d.ts +9 -0
  201. package/dist/cjs/api/types/VariantInventoryLevelResource.js +3 -0
  202. package/dist/cjs/api/types/VariantResource.d.ts +26 -0
  203. package/dist/cjs/api/types/VariantResource.js +3 -0
  204. package/dist/cjs/api/types/VariantStockLocationResource.d.ts +15 -0
  205. package/dist/cjs/api/types/VariantStockLocationResource.js +11 -0
  206. package/dist/cjs/api/types/index.d.ts +18 -0
  207. package/dist/cjs/api/types/index.js +18 -0
  208. package/dist/cjs/version.d.ts +1 -1
  209. package/dist/cjs/version.js +1 -1
  210. package/dist/esm/BaseClient.mjs +2 -2
  211. package/dist/esm/api/resources/business/resources/commerce/client/Client.d.mts +9 -0
  212. package/dist/esm/api/resources/business/resources/commerce/client/Client.mjs +15 -0
  213. package/dist/esm/api/resources/business/resources/commerce/resources/index.d.mts +10 -0
  214. package/dist/esm/api/resources/business/resources/commerce/resources/index.mjs +10 -0
  215. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.d.mts +294 -1
  216. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.mjs +894 -2
  217. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.d.mts +1 -1
  218. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/index.mjs +1 -1
  219. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.d.mts +10 -0
  220. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/ArchiveLocationsRequest.mjs +2 -0
  221. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.d.mts +10 -0
  222. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/DeleteLocationsRequest.mjs +2 -0
  223. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.d.mts +10 -0
  224. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/FlyerLocationsRequest.mjs +2 -0
  225. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.d.mts +10 -0
  226. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetHoursLocationsRequest.mjs +2 -0
  227. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.d.mts +10 -0
  228. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetLocationsRequest.mjs +2 -0
  229. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.d.mts +10 -0
  230. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetPickupLocationsRequest.mjs +2 -0
  231. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.d.mts +10 -0
  232. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/OfferMainStoreProductsLocationsRequest.mjs +2 -0
  233. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.d.mts +52 -0
  234. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/PreviewPickupScheduleRequest.mjs +2 -0
  235. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.d.mts +12 -0
  236. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationActiveRequest.mjs +2 -0
  237. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.d.mts +68 -0
  238. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/StoreLocationRequest.mjs +35 -0
  239. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.d.mts +30 -0
  240. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateLocationsRequest.mjs +2 -0
  241. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.d.mts +46 -0
  242. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdateOpeningHoursRequest.mjs +2 -0
  243. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.d.mts +52 -0
  244. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/UpdatePickupScheduleRequest.mjs +2 -0
  245. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.mts +13 -0
  246. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.mjs +1 -0
  247. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.d.mts +4 -0
  248. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ArchiveLocationsResponse.mjs +2 -0
  249. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.d.mts +4 -0
  250. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/CreateLocationsResponse.mjs +2 -0
  251. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.d.mts +9 -0
  252. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/FlyerLocationsResponse.mjs +2 -0
  253. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.d.mts +4 -0
  254. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetHoursLocationsResponse.mjs +2 -0
  255. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.d.mts +4 -0
  256. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetLocationsResponse.mjs +2 -0
  257. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.d.mts +4 -0
  258. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetPickupLocationsResponse.mjs +2 -0
  259. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/ListLocationsResponse.d.mts +1 -0
  260. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.d.mts +8 -0
  261. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/OfferMainStoreProductsLocationsResponse.mjs +2 -0
  262. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.d.mts +15 -0
  263. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/PreviewPickupAffectedOrdersLocationsResponse.mjs +2 -0
  264. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.d.mts +4 -0
  265. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetActiveLocationsResponse.mjs +2 -0
  266. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.d.mts +4 -0
  267. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateHoursLocationsResponse.mjs +2 -0
  268. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.d.mts +4 -0
  269. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdateLocationsResponse.mjs +2 -0
  270. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.d.mts +4 -0
  271. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/UpdatePickupLocationsResponse.mjs +2 -0
  272. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.d.mts +12 -0
  273. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.mjs +12 -0
  274. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.d.mts +114 -0
  275. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/Client.mjs +364 -0
  276. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.d.mts +1 -0
  277. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/index.mjs +1 -0
  278. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.d.mts +10 -0
  279. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/DeleteProductsRequest.mjs +2 -0
  280. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.d.mts +10 -0
  281. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/GetProductsRequest.mjs +2 -0
  282. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.d.mts +12 -0
  283. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/ListProductsRequest.mjs +2 -0
  284. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.d.mts +49 -0
  285. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/StoreProductRequest.mjs +14 -0
  286. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.d.mts +36 -0
  287. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/UpdateProductRequest.mjs +14 -0
  288. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.d.mts +5 -0
  289. package/dist/esm/api/resources/business/resources/commerce/resources/products/client/requests/index.mjs +2 -0
  290. package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.d.mts +2 -0
  291. package/dist/esm/api/resources/business/resources/commerce/resources/products/exports.mjs +3 -0
  292. package/dist/esm/api/resources/business/resources/commerce/resources/products/index.d.mts +2 -0
  293. package/dist/esm/api/resources/business/resources/commerce/resources/products/index.mjs +2 -0
  294. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.d.mts +8 -0
  295. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/CreateProductsResponse.mjs +2 -0
  296. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.d.mts +8 -0
  297. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/GetProductsResponse.mjs +2 -0
  298. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.d.mts +44 -0
  299. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/ListProductsResponse.mjs +2 -0
  300. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.d.mts +8 -0
  301. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/UpdateProductsResponse.mjs +2 -0
  302. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.d.mts +4 -0
  303. package/dist/esm/api/resources/business/resources/commerce/resources/products/types/index.mjs +4 -0
  304. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.d.mts +104 -0
  305. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/Client.mjs +343 -0
  306. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.d.mts +1 -0
  307. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/index.mjs +1 -0
  308. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.d.mts +12 -0
  309. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/AcceptSellerTermsRequest.mjs +2 -0
  310. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.d.mts +12 -0
  311. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/RequestSellingApprovalRequest.mjs +2 -0
  312. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.d.mts +9 -0
  313. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/UpdateSellingRequest.mjs +2 -0
  314. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.d.mts +3 -0
  315. package/dist/esm/api/resources/business/resources/commerce/resources/selling/client/requests/index.mjs +1 -0
  316. package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.d.mts +2 -0
  317. package/dist/esm/api/resources/business/resources/commerce/resources/selling/exports.mjs +3 -0
  318. package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.d.mts +2 -0
  319. package/dist/esm/api/resources/business/resources/commerce/resources/selling/index.mjs +2 -0
  320. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.d.mts +4 -0
  321. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/AcceptSellerTermsSellingResponse.mjs +2 -0
  322. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.d.mts +4 -0
  323. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellerTermsSellingResponse.mjs +2 -0
  324. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.d.mts +4 -0
  325. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/GetSellingResponse.mjs +2 -0
  326. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.d.mts +4 -0
  327. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/RequestApprovalSellingResponse.mjs +2 -0
  328. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.d.mts +4 -0
  329. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/UpdateSellingResponse.mjs +2 -0
  330. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.d.mts +5 -0
  331. package/dist/esm/api/resources/business/resources/commerce/resources/selling/types/index.mjs +5 -0
  332. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.d.mts +163 -0
  333. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/Client.mjs +500 -0
  334. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.d.mts +1 -0
  335. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/index.mjs +1 -0
  336. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.d.mts +13 -0
  337. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ArchiveVariantsRequest.mjs +2 -0
  338. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.d.mts +13 -0
  339. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/DeleteVariantsRequest.mjs +2 -0
  340. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.d.mts +13 -0
  341. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/GetVariantsRequest.mjs +2 -0
  342. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.d.mts +10 -0
  343. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/ListVariantsRequest.mjs +2 -0
  344. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.d.mts +16 -0
  345. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/SetVariantPriceRequest.mjs +2 -0
  346. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.d.mts +54 -0
  347. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/StoreVariantRequest.mjs +14 -0
  348. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.d.mts +46 -0
  349. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/UpdateVariantRequest.mjs +14 -0
  350. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.d.mts +7 -0
  351. package/dist/esm/api/resources/business/resources/commerce/resources/variants/client/requests/index.mjs +2 -0
  352. package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.d.mts +2 -0
  353. package/dist/esm/api/resources/business/resources/commerce/resources/variants/exports.mjs +3 -0
  354. package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.d.mts +2 -0
  355. package/dist/esm/api/resources/business/resources/commerce/resources/variants/index.mjs +2 -0
  356. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.d.mts +4 -0
  357. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ArchiveVariantsResponse.mjs +2 -0
  358. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.d.mts +8 -0
  359. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/CreateVariantsResponse.mjs +2 -0
  360. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.d.mts +6 -0
  361. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/GetVariantsResponse.mjs +2 -0
  362. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.d.mts +4 -0
  363. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/ListVariantsResponse.mjs +2 -0
  364. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.d.mts +4 -0
  365. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/SetPriceVariantsResponse.mjs +2 -0
  366. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.d.mts +8 -0
  367. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/UpdateVariantsResponse.mjs +2 -0
  368. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.d.mts +6 -0
  369. package/dist/esm/api/resources/business/resources/commerce/resources/variants/types/index.mjs +6 -0
  370. package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.d.mts +9 -5
  371. package/dist/esm/api/resources/commerce/resources/carts/resources/lines/client/Client.mjs +9 -5
  372. package/dist/esm/api/types/BusinessCommerceLocation.d.mts +37 -3
  373. package/dist/esm/api/types/BusinessEvent.d.mts +2 -0
  374. package/dist/esm/api/types/BusinessLocation.d.mts +29 -0
  375. package/dist/esm/api/types/BusinessLocation.mjs +8 -0
  376. package/dist/esm/api/types/BusinessLocationDetails.d.mts +36 -0
  377. package/dist/esm/api/types/BusinessLocationDetails.mjs +8 -0
  378. package/dist/esm/api/types/BusinessLocationHourException.d.mts +14 -0
  379. package/dist/esm/api/types/BusinessLocationHourException.mjs +2 -0
  380. package/dist/esm/api/types/BusinessLocationOpeningHours.d.mts +17 -0
  381. package/dist/esm/api/types/BusinessLocationOpeningHours.mjs +2 -0
  382. package/dist/esm/api/types/BusinessLocationPickup.d.mts +25 -0
  383. package/dist/esm/api/types/BusinessLocationPickup.mjs +11 -0
  384. package/dist/esm/api/types/BusinessOpeningHourSlot.d.mts +10 -0
  385. package/dist/esm/api/types/BusinessOpeningHourSlot.mjs +2 -0
  386. package/dist/esm/api/types/BusinessPickupSchedule.d.mts +10 -0
  387. package/dist/esm/api/types/BusinessPickupSchedule.mjs +2 -0
  388. package/dist/esm/api/types/BusinessPickupWindow.d.mts +11 -0
  389. package/dist/esm/api/types/BusinessPickupWindow.mjs +2 -0
  390. package/dist/esm/api/types/BusinessSellerTerms.d.mts +10 -0
  391. package/dist/esm/api/types/BusinessSellerTerms.mjs +2 -0
  392. package/dist/esm/api/types/BusinessSelling.d.mts +61 -0
  393. package/dist/esm/api/types/BusinessSelling.mjs +13 -0
  394. package/dist/esm/api/types/Cart.d.mts +1 -1
  395. package/dist/esm/api/types/CustomerEvent.d.mts +6 -0
  396. package/dist/esm/api/types/CustomerEventDetail.d.mts +6 -0
  397. package/dist/esm/api/types/CustomerEventTicketType.d.mts +7 -0
  398. package/dist/esm/api/types/EventFeedItem.d.mts +6 -0
  399. package/dist/esm/api/types/ImageResource.d.mts +7 -0
  400. package/dist/esm/api/types/ImageResource.mjs +2 -0
  401. package/dist/esm/api/types/LocationKind.d.mts +12 -0
  402. package/dist/esm/api/types/LocationKind.mjs +12 -0
  403. package/dist/esm/api/types/ProductResource.d.mts +41 -0
  404. package/dist/esm/api/types/ProductResource.mjs +15 -0
  405. package/dist/esm/api/types/Unit.d.mts +16 -0
  406. package/dist/esm/api/types/Unit.mjs +16 -0
  407. package/dist/esm/api/types/UpdateLocationRequest.d.mts +7 -0
  408. package/dist/esm/api/types/UpdateLocationRequest.mjs +2 -0
  409. package/dist/esm/api/types/VariantInventoryLevelResource.d.mts +9 -0
  410. package/dist/esm/api/types/VariantInventoryLevelResource.mjs +2 -0
  411. package/dist/esm/api/types/VariantResource.d.mts +26 -0
  412. package/dist/esm/api/types/VariantResource.mjs +2 -0
  413. package/dist/esm/api/types/VariantStockLocationResource.d.mts +15 -0
  414. package/dist/esm/api/types/VariantStockLocationResource.mjs +8 -0
  415. package/dist/esm/api/types/index.d.mts +18 -0
  416. package/dist/esm/api/types/index.mjs +18 -0
  417. package/dist/esm/version.d.mts +1 -1
  418. package/dist/esm/version.mjs +1 -1
  419. package/package.json +34 -1
  420. package/reference.md +2115 -83
@@ -0,0 +1,11 @@
1
+ export interface BusinessPickupWindow {
2
+ /** 0 is Sunday. */
3
+ day_of_week: number;
4
+ /** `H:i` */
5
+ opens_at: string;
6
+ /** `H:i` */
7
+ closes_at: string;
8
+ /** Orders a slot takes; null for no limit. */
9
+ slot_capacity: number | null;
10
+ sort_order: number;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface BusinessSellerTerms {
2
+ /** Send it back as `version_id` to accept this version. */
3
+ id: string;
4
+ version: number;
5
+ published_at: string;
6
+ /** The text as safe HTML. */
7
+ html: string;
8
+ /** Whether the business has accepted this version. */
9
+ accepted: boolean;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,61 @@
1
+ export interface BusinessSelling {
2
+ selling_enabled: boolean;
3
+ /** Why the main store can't sell yet, besides the switch and the seller terms. */
4
+ blocker: BusinessSelling.Blocker | null;
5
+ /** The seller terms, which let 51Eat debit the business's Stripe account for a lost dispute (51EAT-287). */
6
+ seller_terms: BusinessSelling.SellerTerms;
7
+ locations: BusinessSelling.Locations;
8
+ /** Where 51Eat's approval to sell stands: `not_requested`, `pending`, `approved` or `rejected`. */
9
+ approval: BusinessSelling.Approval;
10
+ /** The seller terms 51Eat has announced but not yet published, as the web dashboard's notice shows them: the date they take effect, what changes in the fees and where to read the new version (the page the announcement email links to). Null when nothing is announced or the terms don't apply to the business. */
11
+ upcoming_seller_terms: BusinessSelling.UpcomingSellerTerms | null;
12
+ }
13
+ export declare namespace BusinessSelling {
14
+ /**
15
+ * Why the main store can't sell yet, besides the switch and the seller terms.
16
+ */
17
+ interface Blocker {
18
+ reason: string;
19
+ message: string;
20
+ }
21
+ /**
22
+ * The seller terms, which let 51Eat debit the business's Stripe account for a lost dispute (51EAT-287).
23
+ */
24
+ interface SellerTerms {
25
+ current_version: number | null;
26
+ accepted_version: number | null;
27
+ accepted_at: string | null;
28
+ due: boolean;
29
+ url: string;
30
+ }
31
+ interface Locations {
32
+ stores: number;
33
+ stands: number;
34
+ switched_off: number;
35
+ }
36
+ /**
37
+ * Where 51Eat's approval to sell stands: `not_requested`, `pending`, `approved` or `rejected`.
38
+ */
39
+ interface Approval {
40
+ status: Approval.Status;
41
+ requested_at: string | null;
42
+ rejected_reason: string | null;
43
+ }
44
+ namespace Approval {
45
+ const Status: {
46
+ readonly NotRequested: "not_requested";
47
+ readonly Pending: "pending";
48
+ readonly Approved: "approved";
49
+ readonly Rejected: "rejected";
50
+ };
51
+ type Status = (typeof Status)[keyof typeof Status];
52
+ }
53
+ /**
54
+ * The seller terms 51Eat has announced but not yet published, as the web dashboard's notice shows them: the date they take effect, what changes in the fees and where to read the new version (the page the announcement email links to). Null when nothing is announced or the terms don't apply to the business.
55
+ */
56
+ interface UpcomingSellerTerms {
57
+ effective_on: string;
58
+ fee_changes: string[];
59
+ url: string;
60
+ }
61
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BusinessSelling = void 0;
5
+ var BusinessSelling;
6
+ (function (BusinessSelling) {
7
+ let Approval;
8
+ (function (Approval) {
9
+ Approval.Status = {
10
+ NotRequested: "not_requested",
11
+ Pending: "pending",
12
+ Approved: "approved",
13
+ Rejected: "rejected",
14
+ };
15
+ })(Approval = BusinessSelling.Approval || (BusinessSelling.Approval = {}));
16
+ })(BusinessSelling || (exports.BusinessSelling = BusinessSelling = {}));
@@ -96,7 +96,7 @@ export declare namespace Cart {
96
96
  price_source: string;
97
97
  /** Whether the product is offered at the cart's location, the cart's way; null before a location is chosen. */
98
98
  offered_here: boolean | null;
99
- /** False when the variant is archived or unpriced, or the product unpublished: remove the line. */
99
+ /** False when the variant is archived or unpriced, or the product unpublished or without a tax code: remove the line. */
100
100
  purchasable: boolean;
101
101
  /** At the cart's location: `in_stock`, `sold_out` or `backorder`; null before a location is chosen. */
102
102
  stock_status: Item.StockStatus | null;
@@ -17,5 +17,11 @@ export interface CustomerEvent {
17
17
  rsvp_count: number;
18
18
  user_rsvp_status?: string | undefined;
19
19
  user_has_tickets?: boolean | undefined;
20
+ /**
21
+ * The cheapest ticket's all-in price: before tax, 51Eat's booking fee included.
22
+ * Absent once the event is cancelled.
23
+ */
20
24
  ticket_price_from?: string | undefined;
25
+ /** The organizer cancelled the event: tickets aren't sold and every buyer is refunded in full. */
26
+ is_cancelled: boolean;
21
27
  }
@@ -18,6 +18,12 @@ export interface CustomerEventDetail {
18
18
  rsvp_count: number;
19
19
  user_rsvp_status?: (string | null) | undefined;
20
20
  user_has_tickets?: boolean | undefined;
21
+ /**
22
+ * The cheapest ticket's all-in price: before tax, 51Eat's booking fee included.
23
+ * Absent once the event is cancelled.
24
+ */
21
25
  ticket_price_from?: string | undefined;
26
+ /** The organizer cancelled the event: tickets aren't sold and every buyer is refunded in full. */
27
+ is_cancelled: boolean;
22
28
  ticket_types?: FiveOneEat.CustomerEventTicketType[] | undefined;
23
29
  }
@@ -2,7 +2,14 @@ export interface CustomerEventTicketType {
2
2
  id: string;
3
3
  name: string;
4
4
  description: string | null;
5
+ /** The organizer's price, before 51Eat's booking fee. */
5
6
  price: string;
7
+ /**
8
+ * What one ticket costs the buyer before tax, 51Eat's booking fee
9
+ * included. Show this as the ticket's price: an order never costs
10
+ * more than this times the quantity, plus tax.
11
+ */
12
+ all_in_price: string;
6
13
  remaining_quantity: number | null;
7
14
  is_available_for_sale: boolean;
8
15
  sales_start_at: string | null;
@@ -17,7 +17,13 @@ export interface EventFeedItem {
17
17
  rsvp_count: number;
18
18
  user_rsvp_status?: (string | null) | undefined;
19
19
  user_has_tickets?: boolean | undefined;
20
+ /**
21
+ * The cheapest ticket's all-in price: before tax, 51Eat's booking fee included.
22
+ * Absent once the event is cancelled.
23
+ */
20
24
  ticket_price_from?: string | undefined;
25
+ /** The organizer cancelled the event: tickets aren't sold and every buyer is refunded in full. */
26
+ is_cancelled: boolean;
21
27
  business: EventFeedItem.Business;
22
28
  }
23
29
  export declare namespace EventFeedItem {
@@ -0,0 +1,7 @@
1
+ export interface ImageResource {
2
+ id: string;
3
+ url: string | null;
4
+ srcset: string | null;
5
+ alt_text: string | null;
6
+ sort_order: number;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * What a location is. Pop-ups join later.
3
+ * | |
4
+ * |---|
5
+ * | `store` <br/> A place the business sells from for pickup. |
6
+ * | `stand` <br/> A roadside table with a QR code buyers scan to pay. |
7
+ */
8
+ export declare const LocationKind: {
9
+ readonly Store: "store";
10
+ readonly Stand: "stand";
11
+ };
12
+ export type LocationKind = (typeof LocationKind)[keyof typeof LocationKind];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LocationKind = void 0;
5
+ /**
6
+ * What a location is. Pop-ups join later.
7
+ * | |
8
+ * |---|
9
+ * | `store` <br/> A place the business sells from for pickup. |
10
+ * | `stand` <br/> A roadside table with a QR code buyers scan to pay. |
11
+ */
12
+ exports.LocationKind = {
13
+ Store: "store",
14
+ Stand: "stand",
15
+ };
@@ -0,0 +1,41 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface ProductResource {
3
+ id: string;
4
+ name: string;
5
+ slug: string;
6
+ description: string | null;
7
+ is_active: boolean;
8
+ published_at: string | null;
9
+ metadata: unknown[] | null;
10
+ product_category_id: string | null;
11
+ /**
12
+ * Owner-only: shared with the customer stand shop, so it appears only
13
+ * when the business controller loaded the `taxCode` relation.
14
+ */
15
+ tax_code?: (string | null) | undefined;
16
+ category?: FiveOneEat.ProductCategoryResource | undefined;
17
+ images?: FiveOneEat.ImageResource[] | undefined;
18
+ variants?: FiveOneEat.VariantResource[] | undefined;
19
+ /** Where it's offered: each of the business's locations and a way of buying there. */
20
+ availability?: ProductResource.Availability.Item[] | undefined;
21
+ default_variant?: FiveOneEat.VariantResource | undefined;
22
+ created_at: string | null;
23
+ updated_at: string | null;
24
+ }
25
+ export declare namespace ProductResource {
26
+ type Availability = Availability.Item[];
27
+ namespace Availability {
28
+ interface Item {
29
+ location_id: string;
30
+ channel: Item.Channel;
31
+ }
32
+ namespace Item {
33
+ const Channel: {
34
+ readonly Online: "online";
35
+ readonly InPerson: "in_person";
36
+ readonly Wholesale: "wholesale";
37
+ };
38
+ type Channel = (typeof Channel)[keyof typeof Channel];
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProductResource = void 0;
5
+ var ProductResource;
6
+ (function (ProductResource) {
7
+ let Availability;
8
+ (function (Availability) {
9
+ let Item;
10
+ (function (Item) {
11
+ Item.Channel = {
12
+ Online: "online",
13
+ InPerson: "in_person",
14
+ Wholesale: "wholesale",
15
+ };
16
+ })(Item = Availability.Item || (Availability.Item = {}));
17
+ })(Availability = ProductResource.Availability || (ProductResource.Availability = {}));
18
+ })(ProductResource || (exports.ProductResource = ProductResource = {}));
@@ -0,0 +1,16 @@
1
+ /** What one of a variant is sold by (decision 43). Every unit at relaunch is a count; weight units come after it (decision 4). Pint, quart and bushel are counted containers and never convert to weight. */
2
+ export declare const Unit: {
3
+ readonly Each: "each";
4
+ readonly Dozen: "dozen";
5
+ readonly HalfDozen: "half_dozen";
6
+ readonly Bunch: "bunch";
7
+ readonly Head: "head";
8
+ readonly Pint: "pint";
9
+ readonly Quart: "quart";
10
+ readonly Flat: "flat";
11
+ readonly Bag: "bag";
12
+ readonly Crate: "crate";
13
+ readonly HalfBushel: "half_bushel";
14
+ readonly Bushel: "bushel";
15
+ };
16
+ export type Unit = (typeof Unit)[keyof typeof Unit];
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Unit = void 0;
5
+ /** What one of a variant is sold by (decision 43). Every unit at relaunch is a count; weight units come after it (decision 4). Pint, quart and bushel are counted containers and never convert to weight. */
6
+ exports.Unit = {
7
+ Each: "each",
8
+ Dozen: "dozen",
9
+ HalfDozen: "half_dozen",
10
+ Bunch: "bunch",
11
+ Head: "head",
12
+ Pint: "pint",
13
+ Quart: "quart",
14
+ Flat: "flat",
15
+ Bag: "bag",
16
+ Crate: "crate",
17
+ HalfBushel: "half_bushel",
18
+ Bushel: "bushel",
19
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Editing a store or stand. The main store's form has only its name: it
3
+ * reads its address, timezone and phone from the business.
4
+ */
5
+ export interface UpdateLocationRequest {
6
+ name: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface VariantInventoryLevelResource {
2
+ id: string;
3
+ location_id: string;
4
+ on_hand: number;
5
+ committed: number;
6
+ available: number;
7
+ /** Set when on hand fell below zero; a count clears it. */
8
+ needs_recount_since: string | null;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface VariantResource {
3
+ id: string;
4
+ name: string | null;
5
+ sku: string | null;
6
+ is_default: boolean;
7
+ weight: number | null;
8
+ weight_unit: string;
9
+ length: number | null;
10
+ width: number | null;
11
+ height: number | null;
12
+ dimension_unit: string;
13
+ sort_order: number;
14
+ /** Dollars, as the owner typed them; null when it has no price yet. */
15
+ price: number | null;
16
+ compare_at_price: number | null;
17
+ unit: string;
18
+ price_suffix: string;
19
+ quantity_step: number;
20
+ archived_at: string | null;
21
+ tracks_inventory: boolean;
22
+ allow_backorder: boolean;
23
+ inventory_levels?: FiveOneEat.VariantInventoryLevelResource[] | undefined;
24
+ created_at: string | null;
25
+ updated_at: string | null;
26
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import type * as FiveOneEat from "../index.js";
2
+ export interface VariantStockLocationResource {
3
+ id: string;
4
+ name: string;
5
+ kind: VariantStockLocationResource.Kind;
6
+ is_main: boolean;
7
+ level: FiveOneEat.VariantInventoryLevelResource | null;
8
+ }
9
+ export declare namespace VariantStockLocationResource {
10
+ const Kind: {
11
+ readonly Store: "store";
12
+ readonly Stand: "stand";
13
+ };
14
+ type Kind = (typeof Kind)[keyof typeof Kind];
15
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VariantStockLocationResource = void 0;
5
+ var VariantStockLocationResource;
6
+ (function (VariantStockLocationResource) {
7
+ VariantStockLocationResource.Kind = {
8
+ Store: "store",
9
+ Stand: "stand",
10
+ };
11
+ })(VariantStockLocationResource || (exports.VariantStockLocationResource = VariantStockLocationResource = {}));
@@ -59,6 +59,11 @@ export * from "./BusinessListCollection.js";
59
59
  export * from "./BusinessListDetail.js";
60
60
  export * from "./BusinessListItem.js";
61
61
  export * from "./BusinessListMembership.js";
62
+ export * from "./BusinessLocation.js";
63
+ export * from "./BusinessLocationDetails.js";
64
+ export * from "./BusinessLocationHourException.js";
65
+ export * from "./BusinessLocationOpeningHours.js";
66
+ export * from "./BusinessLocationPickup.js";
62
67
  export * from "./BusinessLoginResponse.js";
63
68
  export * from "./BusinessMe.js";
64
69
  export * from "./BusinessMenu.js";
@@ -67,10 +72,15 @@ export * from "./BusinessMenuItem.js";
67
72
  export * from "./BusinessMenuItemModifier.js";
68
73
  export * from "./BusinessMenuItemVariation.js";
69
74
  export * from "./BusinessMessage.js";
75
+ export * from "./BusinessOpeningHourSlot.js";
70
76
  export * from "./BusinessPhoto.js";
77
+ export * from "./BusinessPickupSchedule.js";
78
+ export * from "./BusinessPickupWindow.js";
71
79
  export * from "./BusinessProfile.js";
72
80
  export * from "./BusinessScheduleDayResource.js";
73
81
  export * from "./BusinessSearchResult.js";
82
+ export * from "./BusinessSellerTerms.js";
83
+ export * from "./BusinessSelling.js";
74
84
  export * from "./BusinessStand.js";
75
85
  export * from "./BusinessStripeConnection.js";
76
86
  export * from "./BusinessSummary.js";
@@ -133,7 +143,9 @@ export * from "./FavoriteFacets.js";
133
143
  export * from "./FavoriteResponse.js";
134
144
  export * from "./ForbiddenErrorBody.js";
135
145
  export * from "./Image.js";
146
+ export * from "./ImageResource.js";
136
147
  export * from "./InternalServerErrorBody.js";
148
+ export * from "./LocationKind.js";
137
149
  export * from "./MenuItemSearchResult.js";
138
150
  export * from "./Message.js";
139
151
  export * from "./NearbyStand.js";
@@ -144,6 +156,7 @@ export * from "./PaginationResource.js";
144
156
  export * from "./PaymentMethod.js";
145
157
  export * from "./PayResult.js";
146
158
  export * from "./ProductCategoryResource.js";
159
+ export * from "./ProductResource.js";
147
160
  export * from "./ProductSearchResult.js";
148
161
  export * from "./PublicBusinessList.js";
149
162
  export * from "./RsvpEvent.js";
@@ -159,4 +172,9 @@ export * from "./TicketOrderResponse.js";
159
172
  export * from "./TicketResponse.js";
160
173
  export * from "./Transaction.js";
161
174
  export * from "./UnauthorizedErrorBody.js";
175
+ export * from "./Unit.js";
162
176
  export * from "./UnprocessableEntityErrorBody.js";
177
+ export * from "./UpdateLocationRequest.js";
178
+ export * from "./VariantInventoryLevelResource.js";
179
+ export * from "./VariantResource.js";
180
+ export * from "./VariantStockLocationResource.js";
@@ -75,6 +75,11 @@ __exportStar(require("./BusinessListCollection.js"), exports);
75
75
  __exportStar(require("./BusinessListDetail.js"), exports);
76
76
  __exportStar(require("./BusinessListItem.js"), exports);
77
77
  __exportStar(require("./BusinessListMembership.js"), exports);
78
+ __exportStar(require("./BusinessLocation.js"), exports);
79
+ __exportStar(require("./BusinessLocationDetails.js"), exports);
80
+ __exportStar(require("./BusinessLocationHourException.js"), exports);
81
+ __exportStar(require("./BusinessLocationOpeningHours.js"), exports);
82
+ __exportStar(require("./BusinessLocationPickup.js"), exports);
78
83
  __exportStar(require("./BusinessLoginResponse.js"), exports);
79
84
  __exportStar(require("./BusinessMe.js"), exports);
80
85
  __exportStar(require("./BusinessMenu.js"), exports);
@@ -83,10 +88,15 @@ __exportStar(require("./BusinessMenuItem.js"), exports);
83
88
  __exportStar(require("./BusinessMenuItemModifier.js"), exports);
84
89
  __exportStar(require("./BusinessMenuItemVariation.js"), exports);
85
90
  __exportStar(require("./BusinessMessage.js"), exports);
91
+ __exportStar(require("./BusinessOpeningHourSlot.js"), exports);
86
92
  __exportStar(require("./BusinessPhoto.js"), exports);
93
+ __exportStar(require("./BusinessPickupSchedule.js"), exports);
94
+ __exportStar(require("./BusinessPickupWindow.js"), exports);
87
95
  __exportStar(require("./BusinessProfile.js"), exports);
88
96
  __exportStar(require("./BusinessScheduleDayResource.js"), exports);
89
97
  __exportStar(require("./BusinessSearchResult.js"), exports);
98
+ __exportStar(require("./BusinessSellerTerms.js"), exports);
99
+ __exportStar(require("./BusinessSelling.js"), exports);
90
100
  __exportStar(require("./BusinessStand.js"), exports);
91
101
  __exportStar(require("./BusinessStripeConnection.js"), exports);
92
102
  __exportStar(require("./BusinessSummary.js"), exports);
@@ -149,7 +159,9 @@ __exportStar(require("./FavoriteFacets.js"), exports);
149
159
  __exportStar(require("./FavoriteResponse.js"), exports);
150
160
  __exportStar(require("./ForbiddenErrorBody.js"), exports);
151
161
  __exportStar(require("./Image.js"), exports);
162
+ __exportStar(require("./ImageResource.js"), exports);
152
163
  __exportStar(require("./InternalServerErrorBody.js"), exports);
164
+ __exportStar(require("./LocationKind.js"), exports);
153
165
  __exportStar(require("./MenuItemSearchResult.js"), exports);
154
166
  __exportStar(require("./Message.js"), exports);
155
167
  __exportStar(require("./NearbyStand.js"), exports);
@@ -160,6 +172,7 @@ __exportStar(require("./PaginationResource.js"), exports);
160
172
  __exportStar(require("./PaymentMethod.js"), exports);
161
173
  __exportStar(require("./PayResult.js"), exports);
162
174
  __exportStar(require("./ProductCategoryResource.js"), exports);
175
+ __exportStar(require("./ProductResource.js"), exports);
163
176
  __exportStar(require("./ProductSearchResult.js"), exports);
164
177
  __exportStar(require("./PublicBusinessList.js"), exports);
165
178
  __exportStar(require("./RsvpEvent.js"), exports);
@@ -175,4 +188,9 @@ __exportStar(require("./TicketOrderResponse.js"), exports);
175
188
  __exportStar(require("./TicketResponse.js"), exports);
176
189
  __exportStar(require("./Transaction.js"), exports);
177
190
  __exportStar(require("./UnauthorizedErrorBody.js"), exports);
191
+ __exportStar(require("./Unit.js"), exports);
178
192
  __exportStar(require("./UnprocessableEntityErrorBody.js"), exports);
193
+ __exportStar(require("./UpdateLocationRequest.js"), exports);
194
+ __exportStar(require("./VariantInventoryLevelResource.js"), exports);
195
+ __exportStar(require("./VariantResource.js"), exports);
196
+ __exportStar(require("./VariantStockLocationResource.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.0";
1
+ export declare const SDK_VERSION = "2.1.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.0.0";
4
+ exports.SDK_VERSION = "2.1.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@51eat/sdk",
9
- "X-Fern-SDK-Version": "2.0.0",
10
- "User-Agent": "@51eat/sdk/2.0.0",
9
+ "X-Fern-SDK-Version": "2.1.0",
10
+ "User-Agent": "@51eat/sdk/2.1.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,7 +2,10 @@ import type { BaseClientOptions } from "../../../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
3
  import { LocationsClient } from "../resources/locations/client/Client.mjs";
4
4
  import { OrdersClient } from "../resources/orders/client/Client.mjs";
5
+ import { ProductsClient } from "../resources/products/client/Client.mjs";
6
+ import { SellingClient } from "../resources/selling/client/Client.mjs";
5
7
  import { StockClient } from "../resources/stock/client/Client.mjs";
8
+ import { VariantsClient } from "../resources/variants/client/Client.mjs";
6
9
  export declare namespace CommerceClient {
7
10
  type Options = BaseClientOptions;
8
11
  }
@@ -10,9 +13,15 @@ export declare class CommerceClient {
10
13
  protected readonly _options: NormalizedClientOptionsWithAuth<CommerceClient.Options>;
11
14
  protected _locations: LocationsClient | undefined;
12
15
  protected _orders: OrdersClient | undefined;
16
+ protected _products: ProductsClient | undefined;
17
+ protected _variants: VariantsClient | undefined;
18
+ protected _selling: SellingClient | undefined;
13
19
  protected _stock: StockClient | undefined;
14
20
  constructor(options?: CommerceClient.Options);
15
21
  get locations(): LocationsClient;
16
22
  get orders(): OrdersClient;
23
+ get products(): ProductsClient;
24
+ get variants(): VariantsClient;
25
+ get selling(): SellingClient;
17
26
  get stock(): StockClient;
18
27
  }
@@ -2,7 +2,10 @@
2
2
  import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
3
  import { LocationsClient } from "../resources/locations/client/Client.mjs";
4
4
  import { OrdersClient } from "../resources/orders/client/Client.mjs";
5
+ import { ProductsClient } from "../resources/products/client/Client.mjs";
6
+ import { SellingClient } from "../resources/selling/client/Client.mjs";
5
7
  import { StockClient } from "../resources/stock/client/Client.mjs";
8
+ import { VariantsClient } from "../resources/variants/client/Client.mjs";
6
9
  export class CommerceClient {
7
10
  constructor(options = {}) {
8
11
  this._options = normalizeClientOptionsWithAuth(options);
@@ -15,6 +18,18 @@ export class CommerceClient {
15
18
  var _a;
16
19
  return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new OrdersClient(this._options)));
17
20
  }
21
+ get products() {
22
+ var _a;
23
+ return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new ProductsClient(this._options)));
24
+ }
25
+ get variants() {
26
+ var _a;
27
+ return ((_a = this._variants) !== null && _a !== void 0 ? _a : (this._variants = new VariantsClient(this._options)));
28
+ }
29
+ get selling() {
30
+ var _a;
31
+ return ((_a = this._selling) !== null && _a !== void 0 ? _a : (this._selling = new SellingClient(this._options)));
32
+ }
18
33
  get stock() {
19
34
  var _a;
20
35
  return ((_a = this._stock) !== null && _a !== void 0 ? _a : (this._stock = new StockClient(this._options)));
@@ -1,8 +1,18 @@
1
+ export * from "./locations/client/requests/index.mjs";
1
2
  export * as locations from "./locations/index.mjs";
2
3
  export * from "./locations/types/index.mjs";
3
4
  export * from "./orders/client/requests/index.mjs";
4
5
  export * as orders from "./orders/index.mjs";
5
6
  export * from "./orders/types/index.mjs";
7
+ export * from "./products/client/requests/index.mjs";
8
+ export * as products from "./products/index.mjs";
9
+ export * from "./products/types/index.mjs";
10
+ export * from "./selling/client/requests/index.mjs";
11
+ export * as selling from "./selling/index.mjs";
12
+ export * from "./selling/types/index.mjs";
6
13
  export * from "./stock/client/requests/index.mjs";
7
14
  export * as stock from "./stock/index.mjs";
8
15
  export * from "./stock/types/index.mjs";
16
+ export * from "./variants/client/requests/index.mjs";
17
+ export * as variants from "./variants/index.mjs";
18
+ export * from "./variants/types/index.mjs";