@51eat/sdk 0.0.73 → 0.0.75

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 (340) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +5 -0
  4. package/dist/cjs/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.ts +1 -1
  5. package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.ts +1 -1
  6. package/dist/cjs/api/resources/business/resources/events/client/requests/UploadEventImageRequest.d.ts +1 -0
  7. package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.ts +1 -0
  8. package/dist/cjs/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.ts +1 -1
  9. package/dist/cjs/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.ts +22 -2
  10. package/dist/cjs/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.js +21 -0
  11. package/dist/cjs/api/resources/business/resources/profile/client/requests/index.d.ts +1 -1
  12. package/dist/cjs/api/resources/business/resources/profile/client/requests/index.js +3 -0
  13. package/dist/cjs/api/resources/business/resources/profile/resources/logo/client/requests/UploadLogoRequest.d.ts +1 -0
  14. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.d.ts +1 -1
  15. package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/customer/resources/auth/client/Client.d.ts +19 -0
  17. package/dist/cjs/api/resources/customer/resources/auth/client/Client.js +62 -0
  18. package/dist/cjs/api/resources/customer/resources/auth/client/requests/DeleteAccountRequest.d.ts +9 -0
  19. package/dist/cjs/api/resources/customer/resources/auth/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/customer/resources/auth/types/DeleteAccountAuthResponse.d.ts +3 -0
  21. package/dist/cjs/api/resources/customer/resources/auth/types/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/customer/resources/auth/types/index.js +1 -0
  23. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.ts +22 -2
  24. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.js +21 -0
  25. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.d.ts +1 -1
  26. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.js +3 -0
  27. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.ts +1 -0
  28. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.ts +5 -1
  29. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.ts +5 -1
  30. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.ts +5 -1
  31. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.ts +6 -1
  32. package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +1 -1
  33. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.ts +5 -1
  34. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +7 -7
  35. package/dist/cjs/api/resources/customer/resources/me/client/Client.d.ts +21 -1
  36. package/dist/cjs/api/resources/customer/resources/me/client/Client.js +75 -8
  37. package/dist/cjs/api/resources/customer/resources/me/client/requests/FavoritesMeRequest.d.ts +8 -4
  38. package/dist/cjs/api/resources/customer/resources/me/resources/index.d.ts +3 -0
  39. package/dist/cjs/api/resources/customer/resources/me/resources/index.js +4 -1
  40. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/Client.d.ts +122 -0
  41. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/Client.js +428 -0
  42. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/index.js +17 -0
  44. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.d.ts +10 -0
  45. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.js +3 -0
  46. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.d.ts +10 -0
  47. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.js +3 -0
  48. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.d.ts +10 -0
  49. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.js +3 -0
  50. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.d.ts +11 -0
  51. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.js +3 -0
  52. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.d.ts +14 -0
  53. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.js +3 -0
  54. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/index.d.ts +5 -0
  55. package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/index.js +2 -0
  56. package/dist/cjs/api/resources/customer/resources/me/resources/lists/exports.d.ts +3 -0
  57. package/dist/cjs/api/resources/customer/resources/me/resources/lists/exports.js +22 -0
  58. package/dist/cjs/api/resources/customer/resources/me/resources/lists/index.d.ts +3 -0
  59. package/dist/cjs/api/resources/customer/resources/me/resources/lists/index.js +19 -0
  60. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/index.d.ts +3 -0
  61. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/index.js +42 -0
  62. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.d.ts +73 -0
  63. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.js +266 -0
  64. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/index.js +17 -0
  66. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.d.ts +13 -0
  67. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.js +3 -0
  68. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.d.ts +13 -0
  69. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.js +3 -0
  70. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.d.ts +14 -0
  71. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.js +3 -0
  72. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.d.ts +3 -0
  73. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.js +2 -0
  74. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/exports.d.ts +2 -0
  75. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/exports.js +21 -0
  76. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/index.d.ts +2 -0
  77. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/index.js +18 -0
  78. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.d.ts +3 -0
  79. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.js +3 -0
  80. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.d.ts +3 -0
  81. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.js +3 -0
  82. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/index.d.ts +2 -0
  83. package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/index.js +18 -0
  84. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.d.ts +4 -0
  85. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.js +3 -0
  86. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.d.ts +4 -0
  87. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.js +3 -0
  88. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.d.ts +4 -0
  89. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.js +3 -0
  90. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.d.ts +4 -0
  91. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.js +3 -0
  92. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.d.ts +4 -0
  93. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.js +3 -0
  94. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/index.d.ts +5 -0
  95. package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/index.js +21 -0
  96. package/dist/cjs/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.d.ts +4 -0
  97. package/dist/cjs/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.js +3 -0
  98. package/dist/cjs/api/resources/customer/resources/me/types/FavoritesMeRequestSort.d.ts +6 -0
  99. package/dist/cjs/api/resources/customer/resources/me/types/FavoritesMeRequestSort.js +9 -0
  100. package/dist/cjs/api/resources/customer/resources/me/types/index.d.ts +2 -0
  101. package/dist/cjs/api/resources/customer/resources/me/types/index.js +2 -0
  102. package/dist/cjs/api/resources/index.d.ts +3 -0
  103. package/dist/cjs/api/resources/index.js +4 -1
  104. package/dist/cjs/api/resources/publicLists/client/Client.d.ts +34 -0
  105. package/dist/cjs/api/resources/publicLists/client/Client.js +116 -0
  106. package/dist/cjs/api/resources/publicLists/client/index.d.ts +1 -0
  107. package/dist/cjs/api/resources/publicLists/client/index.js +17 -0
  108. package/dist/cjs/api/resources/publicLists/client/requests/GetPublicListsRequest.d.ts +10 -0
  109. package/dist/cjs/api/resources/publicLists/client/requests/GetPublicListsRequest.js +3 -0
  110. package/dist/cjs/api/resources/publicLists/client/requests/index.d.ts +1 -0
  111. package/dist/cjs/api/resources/publicLists/client/requests/index.js +2 -0
  112. package/dist/cjs/api/resources/publicLists/exports.d.ts +2 -0
  113. package/dist/cjs/api/resources/publicLists/exports.js +21 -0
  114. package/dist/cjs/api/resources/publicLists/index.d.ts +2 -0
  115. package/dist/cjs/api/resources/publicLists/index.js +18 -0
  116. package/dist/cjs/api/resources/publicLists/types/GetPublicListsResponse.d.ts +4 -0
  117. package/dist/cjs/api/resources/publicLists/types/GetPublicListsResponse.js +3 -0
  118. package/dist/cjs/api/resources/publicLists/types/index.d.ts +1 -0
  119. package/dist/cjs/api/resources/publicLists/types/index.js +17 -0
  120. package/dist/cjs/api/types/Address.d.ts +2 -2
  121. package/dist/cjs/api/types/BusinessAllergen.d.ts +2 -2
  122. package/dist/cjs/api/types/BusinessBulletin.d.ts +6 -6
  123. package/dist/cjs/api/types/BusinessConversation.d.ts +1 -1
  124. package/dist/cjs/api/types/BusinessEvent.d.ts +11 -11
  125. package/dist/cjs/api/types/BusinessEventRsvp.d.ts +3 -3
  126. package/dist/cjs/api/types/BusinessEventTicketType.d.ts +11 -11
  127. package/dist/cjs/api/types/BusinessList.d.ts +11 -0
  128. package/dist/cjs/api/types/BusinessList.js +3 -0
  129. package/dist/cjs/api/types/BusinessListCollection.d.ts +4 -0
  130. package/dist/cjs/api/types/BusinessListCollection.js +3 -0
  131. package/dist/cjs/api/types/BusinessListDetail.d.ts +12 -0
  132. package/dist/cjs/api/types/BusinessListDetail.js +3 -0
  133. package/dist/cjs/api/types/BusinessListItem.d.ts +7 -0
  134. package/dist/cjs/api/types/BusinessListItem.js +3 -0
  135. package/dist/cjs/api/types/BusinessListMembership.d.ts +14 -0
  136. package/dist/cjs/api/types/BusinessListMembership.js +3 -0
  137. package/dist/cjs/api/types/BusinessMenu.d.ts +2 -2
  138. package/dist/cjs/api/types/BusinessMenuGroup.d.ts +2 -2
  139. package/dist/cjs/api/types/BusinessMenuItem.d.ts +6 -24
  140. package/dist/cjs/api/types/BusinessMenuItemModifier.d.ts +3 -3
  141. package/dist/cjs/api/types/BusinessMenuItemVariation.d.ts +4 -4
  142. package/dist/cjs/api/types/BusinessProfile.d.ts +1 -1
  143. package/dist/cjs/api/types/BusinessStand.d.ts +2 -2
  144. package/dist/cjs/api/types/BusinessStripeConnection.d.ts +15 -15
  145. package/dist/cjs/api/types/BusinessTemporaryLocation.d.ts +2 -2
  146. package/dist/cjs/api/types/CartResource.d.ts +2 -2
  147. package/dist/cjs/api/types/Conversation.d.ts +1 -1
  148. package/dist/cjs/api/types/CustomerBulletin.d.ts +1 -1
  149. package/dist/cjs/api/types/CustomerComment.d.ts +2 -2
  150. package/dist/cjs/api/types/CustomerDiscoveryAllergen.d.ts +2 -2
  151. package/dist/cjs/api/types/CustomerEvent.d.ts +1 -1
  152. package/dist/cjs/api/types/CustomerEventRsvp.d.ts +2 -2
  153. package/dist/cjs/api/types/CustomerEventTicketType.d.ts +2 -2
  154. package/dist/cjs/api/types/DiscoveryBusiness.d.ts +3 -3
  155. package/dist/cjs/api/types/FavoriteFacets.d.ts +34 -0
  156. package/dist/cjs/api/types/FavoriteFacets.js +3 -0
  157. package/dist/cjs/api/types/ProductResource.d.ts +5 -5
  158. package/dist/cjs/api/types/PublicBusinessList.d.ts +10 -0
  159. package/dist/cjs/api/types/PublicBusinessList.js +3 -0
  160. package/dist/cjs/api/types/ShippingAccountResource.d.ts +5 -5
  161. package/dist/cjs/api/types/Transaction.d.ts +2 -2
  162. package/dist/cjs/api/types/index.d.ts +7 -2
  163. package/dist/cjs/api/types/index.js +7 -2
  164. package/dist/cjs/version.d.ts +1 -1
  165. package/dist/cjs/version.js +1 -1
  166. package/dist/esm/BaseClient.mjs +2 -2
  167. package/dist/esm/Client.d.mts +3 -0
  168. package/dist/esm/Client.mjs +5 -0
  169. package/dist/esm/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.mts +1 -1
  170. package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.mts +1 -1
  171. package/dist/esm/api/resources/business/resources/events/client/requests/UploadEventImageRequest.d.mts +1 -0
  172. package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.mts +1 -0
  173. package/dist/esm/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.mts +1 -1
  174. package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.mts +22 -2
  175. package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.mjs +20 -1
  176. package/dist/esm/api/resources/business/resources/profile/client/requests/index.d.mts +1 -1
  177. package/dist/esm/api/resources/business/resources/profile/client/requests/index.mjs +1 -1
  178. package/dist/esm/api/resources/business/resources/profile/resources/logo/client/requests/UploadLogoRequest.d.mts +1 -0
  179. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.d.mts +1 -1
  180. package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.d.mts +1 -1
  181. package/dist/esm/api/resources/customer/resources/auth/client/Client.d.mts +19 -0
  182. package/dist/esm/api/resources/customer/resources/auth/client/Client.mjs +62 -0
  183. package/dist/esm/api/resources/customer/resources/auth/client/requests/DeleteAccountRequest.d.mts +9 -0
  184. package/dist/esm/api/resources/customer/resources/auth/client/requests/index.d.mts +1 -0
  185. package/dist/esm/api/resources/customer/resources/auth/types/DeleteAccountAuthResponse.d.mts +3 -0
  186. package/dist/esm/api/resources/customer/resources/auth/types/index.d.mts +1 -0
  187. package/dist/esm/api/resources/customer/resources/auth/types/index.mjs +1 -0
  188. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.mts +22 -2
  189. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.mjs +20 -1
  190. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.d.mts +1 -1
  191. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.mjs +1 -1
  192. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.mts +1 -0
  193. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.mts +5 -1
  194. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.mts +5 -1
  195. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.mts +5 -1
  196. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.mts +6 -1
  197. package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +1 -1
  198. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.mts +5 -1
  199. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +7 -7
  200. package/dist/esm/api/resources/customer/resources/me/client/Client.d.mts +21 -1
  201. package/dist/esm/api/resources/customer/resources/me/client/Client.mjs +69 -2
  202. package/dist/esm/api/resources/customer/resources/me/client/requests/FavoritesMeRequest.d.mts +8 -4
  203. package/dist/esm/api/resources/customer/resources/me/resources/index.d.mts +3 -0
  204. package/dist/esm/api/resources/customer/resources/me/resources/index.mjs +3 -0
  205. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/Client.d.mts +122 -0
  206. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/Client.mjs +391 -0
  207. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/index.d.mts +1 -0
  208. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/index.mjs +1 -0
  209. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.d.mts +10 -0
  210. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.mjs +2 -0
  211. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.d.mts +10 -0
  212. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.mjs +2 -0
  213. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.d.mts +10 -0
  214. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.mjs +2 -0
  215. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.d.mts +11 -0
  216. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.mjs +2 -0
  217. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.d.mts +14 -0
  218. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.mjs +2 -0
  219. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/index.d.mts +5 -0
  220. package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/index.mjs +1 -0
  221. package/dist/esm/api/resources/customer/resources/me/resources/lists/exports.d.mts +3 -0
  222. package/dist/esm/api/resources/customer/resources/me/resources/lists/exports.mjs +4 -0
  223. package/dist/esm/api/resources/customer/resources/me/resources/lists/index.d.mts +3 -0
  224. package/dist/esm/api/resources/customer/resources/me/resources/lists/index.mjs +3 -0
  225. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/index.d.mts +3 -0
  226. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/index.mjs +3 -0
  227. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.d.mts +73 -0
  228. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.mjs +229 -0
  229. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/index.d.mts +1 -0
  230. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/index.mjs +1 -0
  231. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.d.mts +13 -0
  232. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.mjs +2 -0
  233. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.d.mts +13 -0
  234. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.mjs +2 -0
  235. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.d.mts +14 -0
  236. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.mjs +2 -0
  237. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.d.mts +3 -0
  238. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.mjs +1 -0
  239. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/exports.d.mts +2 -0
  240. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/exports.mjs +3 -0
  241. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/index.d.mts +2 -0
  242. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/index.mjs +2 -0
  243. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.d.mts +3 -0
  244. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.mjs +2 -0
  245. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.d.mts +3 -0
  246. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.mjs +2 -0
  247. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/index.d.mts +2 -0
  248. package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/index.mjs +2 -0
  249. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.d.mts +4 -0
  250. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.mjs +2 -0
  251. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.d.mts +4 -0
  252. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.mjs +2 -0
  253. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.d.mts +4 -0
  254. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.mjs +2 -0
  255. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.d.mts +4 -0
  256. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.mjs +2 -0
  257. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.d.mts +4 -0
  258. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.mjs +2 -0
  259. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/index.d.mts +5 -0
  260. package/dist/esm/api/resources/customer/resources/me/resources/lists/types/index.mjs +5 -0
  261. package/dist/esm/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.d.mts +4 -0
  262. package/dist/esm/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.mjs +2 -0
  263. package/dist/esm/api/resources/customer/resources/me/types/FavoritesMeRequestSort.d.mts +6 -0
  264. package/dist/esm/api/resources/customer/resources/me/types/FavoritesMeRequestSort.mjs +6 -0
  265. package/dist/esm/api/resources/customer/resources/me/types/index.d.mts +2 -0
  266. package/dist/esm/api/resources/customer/resources/me/types/index.mjs +2 -0
  267. package/dist/esm/api/resources/index.d.mts +3 -0
  268. package/dist/esm/api/resources/index.mjs +3 -0
  269. package/dist/esm/api/resources/publicLists/client/Client.d.mts +34 -0
  270. package/dist/esm/api/resources/publicLists/client/Client.mjs +79 -0
  271. package/dist/esm/api/resources/publicLists/client/index.d.mts +1 -0
  272. package/dist/esm/api/resources/publicLists/client/index.mjs +1 -0
  273. package/dist/esm/api/resources/publicLists/client/requests/GetPublicListsRequest.d.mts +10 -0
  274. package/dist/esm/api/resources/publicLists/client/requests/GetPublicListsRequest.mjs +2 -0
  275. package/dist/esm/api/resources/publicLists/client/requests/index.d.mts +1 -0
  276. package/dist/esm/api/resources/publicLists/client/requests/index.mjs +1 -0
  277. package/dist/esm/api/resources/publicLists/exports.d.mts +2 -0
  278. package/dist/esm/api/resources/publicLists/exports.mjs +3 -0
  279. package/dist/esm/api/resources/publicLists/index.d.mts +2 -0
  280. package/dist/esm/api/resources/publicLists/index.mjs +2 -0
  281. package/dist/esm/api/resources/publicLists/types/GetPublicListsResponse.d.mts +4 -0
  282. package/dist/esm/api/resources/publicLists/types/GetPublicListsResponse.mjs +2 -0
  283. package/dist/esm/api/resources/publicLists/types/index.d.mts +1 -0
  284. package/dist/esm/api/resources/publicLists/types/index.mjs +1 -0
  285. package/dist/esm/api/types/Address.d.mts +2 -2
  286. package/dist/esm/api/types/BusinessAllergen.d.mts +2 -2
  287. package/dist/esm/api/types/BusinessBulletin.d.mts +6 -6
  288. package/dist/esm/api/types/BusinessConversation.d.mts +1 -1
  289. package/dist/esm/api/types/BusinessEvent.d.mts +11 -11
  290. package/dist/esm/api/types/BusinessEventRsvp.d.mts +3 -3
  291. package/dist/esm/api/types/BusinessEventTicketType.d.mts +11 -11
  292. package/dist/esm/api/types/BusinessList.d.mts +11 -0
  293. package/dist/esm/api/types/BusinessList.mjs +2 -0
  294. package/dist/esm/api/types/BusinessListCollection.d.mts +4 -0
  295. package/dist/esm/api/types/BusinessListCollection.mjs +2 -0
  296. package/dist/esm/api/types/BusinessListDetail.d.mts +12 -0
  297. package/dist/esm/api/types/BusinessListDetail.mjs +2 -0
  298. package/dist/esm/api/types/BusinessListItem.d.mts +7 -0
  299. package/dist/esm/api/types/BusinessListItem.mjs +2 -0
  300. package/dist/esm/api/types/BusinessListMembership.d.mts +14 -0
  301. package/dist/esm/api/types/BusinessListMembership.mjs +2 -0
  302. package/dist/esm/api/types/BusinessMenu.d.mts +2 -2
  303. package/dist/esm/api/types/BusinessMenuGroup.d.mts +2 -2
  304. package/dist/esm/api/types/BusinessMenuItem.d.mts +6 -24
  305. package/dist/esm/api/types/BusinessMenuItemModifier.d.mts +3 -3
  306. package/dist/esm/api/types/BusinessMenuItemVariation.d.mts +4 -4
  307. package/dist/esm/api/types/BusinessProfile.d.mts +1 -1
  308. package/dist/esm/api/types/BusinessStand.d.mts +2 -2
  309. package/dist/esm/api/types/BusinessStripeConnection.d.mts +15 -15
  310. package/dist/esm/api/types/BusinessTemporaryLocation.d.mts +2 -2
  311. package/dist/esm/api/types/CartResource.d.mts +2 -2
  312. package/dist/esm/api/types/Conversation.d.mts +1 -1
  313. package/dist/esm/api/types/CustomerBulletin.d.mts +1 -1
  314. package/dist/esm/api/types/CustomerComment.d.mts +2 -2
  315. package/dist/esm/api/types/CustomerDiscoveryAllergen.d.mts +2 -2
  316. package/dist/esm/api/types/CustomerEvent.d.mts +1 -1
  317. package/dist/esm/api/types/CustomerEventRsvp.d.mts +2 -2
  318. package/dist/esm/api/types/CustomerEventTicketType.d.mts +2 -2
  319. package/dist/esm/api/types/DiscoveryBusiness.d.mts +3 -3
  320. package/dist/esm/api/types/FavoriteFacets.d.mts +34 -0
  321. package/dist/esm/api/types/FavoriteFacets.mjs +2 -0
  322. package/dist/esm/api/types/ProductResource.d.mts +5 -5
  323. package/dist/esm/api/types/PublicBusinessList.d.mts +10 -0
  324. package/dist/esm/api/types/PublicBusinessList.mjs +2 -0
  325. package/dist/esm/api/types/ShippingAccountResource.d.mts +5 -5
  326. package/dist/esm/api/types/Transaction.d.mts +2 -2
  327. package/dist/esm/api/types/index.d.mts +7 -2
  328. package/dist/esm/api/types/index.mjs +7 -2
  329. package/dist/esm/version.d.mts +1 -1
  330. package/dist/esm/version.mjs +1 -1
  331. package/package.json +34 -1
  332. package/reference.md +857 -61
  333. package/dist/cjs/api/types/Allergen.d.ts +0 -10
  334. package/dist/cjs/api/types/Image.d.ts +0 -16
  335. package/dist/esm/api/types/Allergen.d.mts +0 -10
  336. package/dist/esm/api/types/Image.d.mts +0 -16
  337. /package/dist/cjs/api/{types/Allergen.js → resources/customer/resources/auth/client/requests/DeleteAccountRequest.js} +0 -0
  338. /package/dist/cjs/api/{types/Image.js → resources/customer/resources/auth/types/DeleteAccountAuthResponse.js} +0 -0
  339. /package/dist/esm/api/{types/Allergen.mjs → resources/customer/resources/auth/client/requests/DeleteAccountRequest.mjs} +0 -0
  340. /package/dist/esm/api/{types/Image.mjs → resources/customer/resources/auth/types/DeleteAccountAuthResponse.mjs} +0 -0
@@ -0,0 +1,428 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ exports.ListsClient = void 0;
58
+ const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
59
+ const headers_js_1 = require("../../../../../../../../core/headers.js");
60
+ const core = __importStar(require("../../../../../../../../core/index.js"));
61
+ const environments = __importStar(require("../../../../../../../../environments.js"));
62
+ const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
63
+ const errors = __importStar(require("../../../../../../../../errors/index.js"));
64
+ const FiveOneEat = __importStar(require("../../../../../../../index.js"));
65
+ const Client_js_1 = require("../resources/items/client/Client.js");
66
+ class ListsClient {
67
+ constructor(options = {}) {
68
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
69
+ }
70
+ get items() {
71
+ var _a;
72
+ return ((_a = this._items) !== null && _a !== void 0 ? _a : (this._items = new Client_js_1.ItemsClient(this._options)));
73
+ }
74
+ /**
75
+ * Every list the authenticated user owns, newest first, each carrying a
76
+ * cover image drawn from its most recently added business.
77
+ *
78
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link FiveOneEat.UnauthorizedError}
81
+ *
82
+ * @example
83
+ * await client.customer.me.lists.list()
84
+ */
85
+ list(requestOptions) {
86
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
87
+ }
88
+ __list(requestOptions) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
91
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
92
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
93
+ const _response = yield core.fetcher({
94
+ 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, "customer/lists"),
95
+ method: "GET",
96
+ headers: _headers,
97
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
98
+ 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,
99
+ 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,
100
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
101
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
102
+ logging: this._options.logging,
103
+ });
104
+ if (_response.ok) {
105
+ return {
106
+ data: _response.body,
107
+ rawResponse: _response.rawResponse,
108
+ };
109
+ }
110
+ if (_response.error.reason === "status-code") {
111
+ switch (_response.error.statusCode) {
112
+ case 401:
113
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
114
+ default:
115
+ throw new errors.FiveOneEatError({
116
+ statusCode: _response.error.statusCode,
117
+ body: _response.error.body,
118
+ rawResponse: _response.rawResponse,
119
+ });
120
+ }
121
+ }
122
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/lists");
123
+ });
124
+ }
125
+ /**
126
+ * Create a new list for the authenticated user. A public list is readable
127
+ * by anyone holding its share link.
128
+ *
129
+ * @param {FiveOneEat.customer.me.StoreBusinessListRequest} request
130
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link FiveOneEat.UnauthorizedError}
133
+ * @throws {@link FiveOneEat.ForbiddenError}
134
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
135
+ *
136
+ * @example
137
+ * await client.customer.me.lists.create({
138
+ * name: "name"
139
+ * })
140
+ */
141
+ create(request, requestOptions) {
142
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
143
+ }
144
+ __create(request, requestOptions) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
147
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
148
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
149
+ const _response = yield core.fetcher({
150
+ 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, "customer/lists"),
151
+ method: "POST",
152
+ headers: _headers,
153
+ contentType: "application/json",
154
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
155
+ requestType: "json",
156
+ body: request,
157
+ 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,
158
+ 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,
159
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
160
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
161
+ logging: this._options.logging,
162
+ });
163
+ if (_response.ok) {
164
+ return {
165
+ data: _response.body,
166
+ rawResponse: _response.rawResponse,
167
+ };
168
+ }
169
+ if (_response.error.reason === "status-code") {
170
+ switch (_response.error.statusCode) {
171
+ case 401:
172
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
173
+ case 403:
174
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
175
+ case 422:
176
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
177
+ default:
178
+ throw new errors.FiveOneEatError({
179
+ statusCode: _response.error.statusCode,
180
+ body: _response.error.body,
181
+ rawResponse: _response.rawResponse,
182
+ });
183
+ }
184
+ }
185
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/lists");
186
+ });
187
+ }
188
+ /**
189
+ * Which of the authenticated user's lists already contain this business.
190
+ * Backs the checkbox state in a save-to-list sheet.
191
+ *
192
+ * Scoped to the caller's own lists, so there is nothing here another user
193
+ * could learn.
194
+ *
195
+ * @param {FiveOneEat.customer.me.MembershipsListsRequest} request
196
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
197
+ *
198
+ * @throws {@link FiveOneEat.UnauthorizedError}
199
+ *
200
+ * @example
201
+ * await client.customer.me.lists.memberships({
202
+ * business: "katzs-deli"
203
+ * })
204
+ */
205
+ memberships(request, requestOptions) {
206
+ return core.HttpResponsePromise.fromPromise(this.__memberships(request, requestOptions));
207
+ }
208
+ __memberships(request, requestOptions) {
209
+ return __awaiter(this, void 0, void 0, function* () {
210
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
211
+ const { business } = request;
212
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
213
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
214
+ const _response = yield core.fetcher({
215
+ 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, `customer/lists/memberships/${core.url.encodePathParam(business)}`),
216
+ method: "GET",
217
+ headers: _headers,
218
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
219
+ 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,
220
+ 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,
221
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
222
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
223
+ logging: this._options.logging,
224
+ });
225
+ if (_response.ok) {
226
+ return {
227
+ data: _response.body,
228
+ rawResponse: _response.rawResponse,
229
+ };
230
+ }
231
+ if (_response.error.reason === "status-code") {
232
+ switch (_response.error.statusCode) {
233
+ case 401:
234
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
235
+ default:
236
+ throw new errors.FiveOneEatError({
237
+ statusCode: _response.error.statusCode,
238
+ body: _response.error.body,
239
+ rawResponse: _response.rawResponse,
240
+ });
241
+ }
242
+ }
243
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/lists/memberships/{business}");
244
+ });
245
+ }
246
+ /**
247
+ * Retrieve one of the authenticated user's own lists with its businesses.
248
+ *
249
+ * Owner-only. `view` would return true for any public list, which would
250
+ * expose this owner-scoped payload — including delisted businesses — to a
251
+ * signed-in stranger. Strangers read a shared list through the public
252
+ * endpoint instead.
253
+ *
254
+ * @param {FiveOneEat.customer.me.GetListsRequest} request
255
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
256
+ *
257
+ * @throws {@link FiveOneEat.UnauthorizedError}
258
+ * @throws {@link FiveOneEat.ForbiddenError}
259
+ *
260
+ * @example
261
+ * await client.customer.me.lists.get({
262
+ * businessList: "businessList"
263
+ * })
264
+ */
265
+ get(request, requestOptions) {
266
+ return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
267
+ }
268
+ __get(request, requestOptions) {
269
+ return __awaiter(this, void 0, void 0, function* () {
270
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
271
+ const { businessList } = request;
272
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
273
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
274
+ const _response = yield core.fetcher({
275
+ 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, `customer/lists/${core.url.encodePathParam(businessList)}`),
276
+ method: "GET",
277
+ headers: _headers,
278
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
279
+ 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,
280
+ 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,
281
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
282
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
283
+ logging: this._options.logging,
284
+ });
285
+ if (_response.ok) {
286
+ return {
287
+ data: _response.body,
288
+ rawResponse: _response.rawResponse,
289
+ };
290
+ }
291
+ if (_response.error.reason === "status-code") {
292
+ switch (_response.error.statusCode) {
293
+ case 401:
294
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
295
+ case 403:
296
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
297
+ default:
298
+ throw new errors.FiveOneEatError({
299
+ statusCode: _response.error.statusCode,
300
+ body: _response.error.body,
301
+ rawResponse: _response.rawResponse,
302
+ });
303
+ }
304
+ }
305
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/lists/{businessList}");
306
+ });
307
+ }
308
+ /**
309
+ * Change a list's name, description, or visibility.
310
+ *
311
+ * @param {FiveOneEat.customer.me.UpdateBusinessListRequest} request
312
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
313
+ *
314
+ * @throws {@link FiveOneEat.UnauthorizedError}
315
+ * @throws {@link FiveOneEat.ForbiddenError}
316
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
317
+ *
318
+ * @example
319
+ * await client.customer.me.lists.update({
320
+ * businessList: "businessList",
321
+ * name: "name"
322
+ * })
323
+ */
324
+ update(request, requestOptions) {
325
+ return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
326
+ }
327
+ __update(request, requestOptions) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
330
+ const { businessList } = request, _body = __rest(request, ["businessList"]);
331
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
332
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
333
+ const _response = yield core.fetcher({
334
+ 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, `customer/lists/${core.url.encodePathParam(businessList)}`),
335
+ method: "PUT",
336
+ headers: _headers,
337
+ contentType: "application/json",
338
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
339
+ requestType: "json",
340
+ body: _body,
341
+ 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,
342
+ 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,
343
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
344
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
345
+ logging: this._options.logging,
346
+ });
347
+ if (_response.ok) {
348
+ return {
349
+ data: _response.body,
350
+ rawResponse: _response.rawResponse,
351
+ };
352
+ }
353
+ if (_response.error.reason === "status-code") {
354
+ switch (_response.error.statusCode) {
355
+ case 401:
356
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
357
+ case 403:
358
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
359
+ case 422:
360
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
361
+ default:
362
+ throw new errors.FiveOneEatError({
363
+ statusCode: _response.error.statusCode,
364
+ body: _response.error.body,
365
+ rawResponse: _response.rawResponse,
366
+ });
367
+ }
368
+ }
369
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/customer/lists/{businessList}");
370
+ });
371
+ }
372
+ /**
373
+ * Permanently delete a list and its notes. The businesses themselves are
374
+ * unaffected.
375
+ *
376
+ * @param {FiveOneEat.customer.me.DeleteListsRequest} request
377
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
378
+ *
379
+ * @throws {@link FiveOneEat.UnauthorizedError}
380
+ * @throws {@link FiveOneEat.ForbiddenError}
381
+ *
382
+ * @example
383
+ * await client.customer.me.lists.delete({
384
+ * businessList: "businessList"
385
+ * })
386
+ */
387
+ delete(request, requestOptions) {
388
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
389
+ }
390
+ __delete(request, requestOptions) {
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
393
+ const { businessList } = request;
394
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
395
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
396
+ const _response = yield core.fetcher({
397
+ 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, `customer/lists/${core.url.encodePathParam(businessList)}`),
398
+ method: "DELETE",
399
+ headers: _headers,
400
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
401
+ 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,
402
+ 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,
403
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
404
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
405
+ logging: this._options.logging,
406
+ });
407
+ if (_response.ok) {
408
+ return { data: undefined, rawResponse: _response.rawResponse };
409
+ }
410
+ if (_response.error.reason === "status-code") {
411
+ switch (_response.error.statusCode) {
412
+ case 401:
413
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
414
+ case 403:
415
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
416
+ default:
417
+ throw new errors.FiveOneEatError({
418
+ statusCode: _response.error.statusCode,
419
+ body: _response.error.body,
420
+ rawResponse: _response.rawResponse,
421
+ });
422
+ }
423
+ }
424
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/customer/lists/{businessList}");
425
+ });
426
+ }
427
+ }
428
+ exports.ListsClient = ListsClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * businessList: "businessList"
5
+ * }
6
+ */
7
+ export interface DeleteListsRequest {
8
+ /** The list uuid */
9
+ businessList: string;
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,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * businessList: "businessList"
5
+ * }
6
+ */
7
+ export interface GetListsRequest {
8
+ /** The list uuid */
9
+ businessList: string;
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,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * business: "katzs-deli"
5
+ * }
6
+ */
7
+ export interface MembershipsListsRequest {
8
+ /** The business handle */
9
+ business: string;
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,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface StoreBusinessListRequest {
8
+ name: string;
9
+ description?: string | null;
10
+ is_public?: boolean | null;
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,14 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * businessList: "businessList",
5
+ * name: "name"
6
+ * }
7
+ */
8
+ export interface UpdateBusinessListRequest {
9
+ /** The list uuid */
10
+ businessList: string;
11
+ name: string;
12
+ description?: string | null;
13
+ is_public?: boolean | null;
14
+ }
@@ -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,5 @@
1
+ export type { DeleteListsRequest } from "./DeleteListsRequest.js";
2
+ export type { GetListsRequest } from "./GetListsRequest.js";
3
+ export type { MembershipsListsRequest } from "./MembershipsListsRequest.js";
4
+ export type { StoreBusinessListRequest } from "./StoreBusinessListRequest.js";
5
+ export type { UpdateBusinessListRequest } from "./UpdateBusinessListRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { ListsClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
3
+ export * from "./resources/index.js";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ListsClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ListsClient", { enumerable: true, get: function () { return Client_js_1.ListsClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
22
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,3 @@
1
+ export * from "./client/index.js";
2
+ export * from "./resources/index.js";
3
+ export * from "./types/index.js";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
19
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,3 @@
1
+ export * from "./items/client/requests/index.js";
2
+ export * as items from "./items/index.js";
3
+ export * from "./items/types/index.js";
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.items = void 0;
40
+ __exportStar(require("./items/client/requests/index.js"), exports);
41
+ exports.items = __importStar(require("./items/index.js"));
42
+ __exportStar(require("./items/types/index.js"), exports);