@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +5 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/events/client/requests/UploadEventImageRequest.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.ts +22 -2
- package/dist/cjs/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.js +21 -0
- package/dist/cjs/api/resources/business/resources/profile/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/profile/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/business/resources/profile/resources/logo/client/requests/UploadLogoRequest.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/auth/client/Client.d.ts +19 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/Client.js +62 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/DeleteAccountRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/DeleteAccountAuthResponse.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/index.js +1 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.ts +22 -2
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.js +21 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.ts +5 -1
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.ts +5 -1
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.ts +5 -1
- package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.ts +6 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.ts +5 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +7 -7
- package/dist/cjs/api/resources/customer/resources/me/client/Client.d.ts +21 -1
- package/dist/cjs/api/resources/customer/resources/me/client/Client.js +75 -8
- package/dist/cjs/api/resources/customer/resources/me/client/requests/FavoritesMeRequest.d.ts +8 -4
- package/dist/cjs/api/resources/customer/resources/me/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/index.js +4 -1
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/Client.d.ts +122 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/Client.js +428 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/exports.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/exports.js +22 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/index.js +19 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/index.js +42 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.d.ts +73 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.js +266 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/exports.js +21 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/index.js +18 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/resources/items/types/index.js +18 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/lists/types/index.js +21 -0
- package/dist/cjs/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/me/types/FavoritesMeRequestSort.d.ts +6 -0
- package/dist/cjs/api/resources/customer/resources/me/types/FavoritesMeRequestSort.js +9 -0
- package/dist/cjs/api/resources/customer/resources/me/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/me/types/index.js +2 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/publicLists/client/Client.d.ts +34 -0
- package/dist/cjs/api/resources/publicLists/client/Client.js +116 -0
- package/dist/cjs/api/resources/publicLists/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/publicLists/client/index.js +17 -0
- package/dist/cjs/api/resources/publicLists/client/requests/GetPublicListsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/publicLists/client/requests/GetPublicListsRequest.js +3 -0
- package/dist/cjs/api/resources/publicLists/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/publicLists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/publicLists/exports.d.ts +2 -0
- package/dist/cjs/api/resources/publicLists/exports.js +21 -0
- package/dist/cjs/api/resources/publicLists/index.d.ts +2 -0
- package/dist/cjs/api/resources/publicLists/index.js +18 -0
- package/dist/cjs/api/resources/publicLists/types/GetPublicListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/publicLists/types/GetPublicListsResponse.js +3 -0
- package/dist/cjs/api/resources/publicLists/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/publicLists/types/index.js +17 -0
- package/dist/cjs/api/types/Address.d.ts +2 -2
- package/dist/cjs/api/types/BusinessAllergen.d.ts +2 -2
- package/dist/cjs/api/types/BusinessBulletin.d.ts +6 -6
- package/dist/cjs/api/types/BusinessConversation.d.ts +1 -1
- package/dist/cjs/api/types/BusinessEvent.d.ts +11 -11
- package/dist/cjs/api/types/BusinessEventRsvp.d.ts +3 -3
- package/dist/cjs/api/types/BusinessEventTicketType.d.ts +11 -11
- package/dist/cjs/api/types/BusinessList.d.ts +11 -0
- package/dist/cjs/api/types/BusinessList.js +3 -0
- package/dist/cjs/api/types/BusinessListCollection.d.ts +4 -0
- package/dist/cjs/api/types/BusinessListCollection.js +3 -0
- package/dist/cjs/api/types/BusinessListDetail.d.ts +12 -0
- package/dist/cjs/api/types/BusinessListDetail.js +3 -0
- package/dist/cjs/api/types/BusinessListItem.d.ts +7 -0
- package/dist/cjs/api/types/BusinessListItem.js +3 -0
- package/dist/cjs/api/types/BusinessListMembership.d.ts +14 -0
- package/dist/cjs/api/types/BusinessListMembership.js +3 -0
- package/dist/cjs/api/types/BusinessMenu.d.ts +2 -2
- package/dist/cjs/api/types/BusinessMenuGroup.d.ts +2 -2
- package/dist/cjs/api/types/BusinessMenuItem.d.ts +6 -24
- package/dist/cjs/api/types/BusinessMenuItemModifier.d.ts +3 -3
- package/dist/cjs/api/types/BusinessMenuItemVariation.d.ts +4 -4
- package/dist/cjs/api/types/BusinessProfile.d.ts +1 -1
- package/dist/cjs/api/types/BusinessStand.d.ts +2 -2
- package/dist/cjs/api/types/BusinessStripeConnection.d.ts +15 -15
- package/dist/cjs/api/types/BusinessTemporaryLocation.d.ts +2 -2
- package/dist/cjs/api/types/CartResource.d.ts +2 -2
- package/dist/cjs/api/types/Conversation.d.ts +1 -1
- package/dist/cjs/api/types/CustomerBulletin.d.ts +1 -1
- package/dist/cjs/api/types/CustomerComment.d.ts +2 -2
- package/dist/cjs/api/types/CustomerDiscoveryAllergen.d.ts +2 -2
- package/dist/cjs/api/types/CustomerEvent.d.ts +1 -1
- package/dist/cjs/api/types/CustomerEventRsvp.d.ts +2 -2
- package/dist/cjs/api/types/CustomerEventTicketType.d.ts +2 -2
- package/dist/cjs/api/types/DiscoveryBusiness.d.ts +3 -3
- package/dist/cjs/api/types/FavoriteFacets.d.ts +34 -0
- package/dist/cjs/api/types/FavoriteFacets.js +3 -0
- package/dist/cjs/api/types/ProductResource.d.ts +5 -5
- package/dist/cjs/api/types/PublicBusinessList.d.ts +10 -0
- package/dist/cjs/api/types/PublicBusinessList.js +3 -0
- package/dist/cjs/api/types/ShippingAccountResource.d.ts +5 -5
- package/dist/cjs/api/types/Transaction.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +7 -2
- package/dist/cjs/api/types/index.js +7 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/events/client/requests/UploadEventImageRequest.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.mts +22 -2
- package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.mjs +20 -1
- package/dist/esm/api/resources/business/resources/profile/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/profile/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/business/resources/profile/resources/logo/client/requests/UploadLogoRequest.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/StoreTemporaryLocationRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/temporaryLocations/client/requests/UpdateTemporaryLocationRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/auth/client/Client.d.mts +19 -0
- package/dist/esm/api/resources/customer/resources/auth/client/Client.mjs +62 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/DeleteAccountRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/auth/types/DeleteAccountAuthResponse.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/auth/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/auth/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.mts +22 -2
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.mjs +20 -1
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.mts +5 -1
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.mts +5 -1
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.mts +5 -1
- package/dist/esm/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.mts +6 -1
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.mts +5 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +7 -7
- package/dist/esm/api/resources/customer/resources/me/client/Client.d.mts +21 -1
- package/dist/esm/api/resources/customer/resources/me/client/Client.mjs +69 -2
- package/dist/esm/api/resources/customer/resources/me/client/requests/FavoritesMeRequest.d.mts +8 -4
- package/dist/esm/api/resources/customer/resources/me/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/Client.d.mts +122 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/Client.mjs +391 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/DeleteListsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/GetListsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/MembershipsListsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.d.mts +11 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/StoreBusinessListRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/UpdateBusinessListRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/exports.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/exports.mjs +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/index.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.d.mts +73 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/Client.mjs +229 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/AddListItemRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/RemoveItemsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/UpdateListItemNoteRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/exports.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/exports.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/AddItemsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/UpdateNoteItemsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/resources/items/types/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/CreateListsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/GetListsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/ListListsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/MembershipsListsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/UpdateListsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/index.d.mts +5 -0
- package/dist/esm/api/resources/customer/resources/me/resources/lists/types/index.mjs +5 -0
- package/dist/esm/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/types/FavoriteFacetsMeResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/me/types/FavoritesMeRequestSort.d.mts +6 -0
- package/dist/esm/api/resources/customer/resources/me/types/FavoritesMeRequestSort.mjs +6 -0
- package/dist/esm/api/resources/customer/resources/me/types/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/me/types/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/publicLists/client/Client.d.mts +34 -0
- package/dist/esm/api/resources/publicLists/client/Client.mjs +79 -0
- package/dist/esm/api/resources/publicLists/client/index.d.mts +1 -0
- package/dist/esm/api/resources/publicLists/client/index.mjs +1 -0
- package/dist/esm/api/resources/publicLists/client/requests/GetPublicListsRequest.d.mts +10 -0
- package/dist/esm/api/resources/publicLists/client/requests/GetPublicListsRequest.mjs +2 -0
- package/dist/esm/api/resources/publicLists/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/publicLists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/publicLists/exports.d.mts +2 -0
- package/dist/esm/api/resources/publicLists/exports.mjs +3 -0
- package/dist/esm/api/resources/publicLists/index.d.mts +2 -0
- package/dist/esm/api/resources/publicLists/index.mjs +2 -0
- package/dist/esm/api/resources/publicLists/types/GetPublicListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/publicLists/types/GetPublicListsResponse.mjs +2 -0
- package/dist/esm/api/resources/publicLists/types/index.d.mts +1 -0
- package/dist/esm/api/resources/publicLists/types/index.mjs +1 -0
- package/dist/esm/api/types/Address.d.mts +2 -2
- package/dist/esm/api/types/BusinessAllergen.d.mts +2 -2
- package/dist/esm/api/types/BusinessBulletin.d.mts +6 -6
- package/dist/esm/api/types/BusinessConversation.d.mts +1 -1
- package/dist/esm/api/types/BusinessEvent.d.mts +11 -11
- package/dist/esm/api/types/BusinessEventRsvp.d.mts +3 -3
- package/dist/esm/api/types/BusinessEventTicketType.d.mts +11 -11
- package/dist/esm/api/types/BusinessList.d.mts +11 -0
- package/dist/esm/api/types/BusinessList.mjs +2 -0
- package/dist/esm/api/types/BusinessListCollection.d.mts +4 -0
- package/dist/esm/api/types/BusinessListCollection.mjs +2 -0
- package/dist/esm/api/types/BusinessListDetail.d.mts +12 -0
- package/dist/esm/api/types/BusinessListDetail.mjs +2 -0
- package/dist/esm/api/types/BusinessListItem.d.mts +7 -0
- package/dist/esm/api/types/BusinessListItem.mjs +2 -0
- package/dist/esm/api/types/BusinessListMembership.d.mts +14 -0
- package/dist/esm/api/types/BusinessListMembership.mjs +2 -0
- package/dist/esm/api/types/BusinessMenu.d.mts +2 -2
- package/dist/esm/api/types/BusinessMenuGroup.d.mts +2 -2
- package/dist/esm/api/types/BusinessMenuItem.d.mts +6 -24
- package/dist/esm/api/types/BusinessMenuItemModifier.d.mts +3 -3
- package/dist/esm/api/types/BusinessMenuItemVariation.d.mts +4 -4
- package/dist/esm/api/types/BusinessProfile.d.mts +1 -1
- package/dist/esm/api/types/BusinessStand.d.mts +2 -2
- package/dist/esm/api/types/BusinessStripeConnection.d.mts +15 -15
- package/dist/esm/api/types/BusinessTemporaryLocation.d.mts +2 -2
- package/dist/esm/api/types/CartResource.d.mts +2 -2
- package/dist/esm/api/types/Conversation.d.mts +1 -1
- package/dist/esm/api/types/CustomerBulletin.d.mts +1 -1
- package/dist/esm/api/types/CustomerComment.d.mts +2 -2
- package/dist/esm/api/types/CustomerDiscoveryAllergen.d.mts +2 -2
- package/dist/esm/api/types/CustomerEvent.d.mts +1 -1
- package/dist/esm/api/types/CustomerEventRsvp.d.mts +2 -2
- package/dist/esm/api/types/CustomerEventTicketType.d.mts +2 -2
- package/dist/esm/api/types/DiscoveryBusiness.d.mts +3 -3
- package/dist/esm/api/types/FavoriteFacets.d.mts +34 -0
- package/dist/esm/api/types/FavoriteFacets.mjs +2 -0
- package/dist/esm/api/types/ProductResource.d.mts +5 -5
- package/dist/esm/api/types/PublicBusinessList.d.mts +10 -0
- package/dist/esm/api/types/PublicBusinessList.mjs +2 -0
- package/dist/esm/api/types/ShippingAccountResource.d.mts +5 -5
- package/dist/esm/api/types/Transaction.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +7 -2
- package/dist/esm/api/types/index.mjs +7 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +34 -1
- package/reference.md +857 -61
- package/dist/cjs/api/types/Allergen.d.ts +0 -10
- package/dist/cjs/api/types/Image.d.ts +0 -16
- package/dist/esm/api/types/Allergen.d.mts +0 -10
- package/dist/esm/api/types/Image.d.mts +0 -16
- /package/dist/cjs/api/{types/Allergen.js → resources/customer/resources/auth/client/requests/DeleteAccountRequest.js} +0 -0
- /package/dist/cjs/api/{types/Image.js → resources/customer/resources/auth/types/DeleteAccountAuthResponse.js} +0 -0
- /package/dist/esm/api/{types/Allergen.mjs → resources/customer/resources/auth/client/requests/DeleteAccountRequest.mjs} +0 -0
- /package/dist/esm/api/{types/Image.mjs → resources/customer/resources/auth/types/DeleteAccountAuthResponse.mjs} +0 -0
|
@@ -360,6 +360,68 @@ export class AuthClient {
|
|
|
360
360
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/customer/user");
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
|
+
/**
|
|
364
|
+
* Permanently delete the account and its associated data, cancel any billing,
|
|
365
|
+
* and revoke every API token. This cannot be undone. Requires the current
|
|
366
|
+
* password for confirmation. Accounts that manage a business cannot be deleted
|
|
367
|
+
* here and return a 422 explaining how to proceed.
|
|
368
|
+
*
|
|
369
|
+
* @param {FiveOneEat.customer.DeleteAccountRequest} request
|
|
370
|
+
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
371
|
+
*
|
|
372
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
373
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
374
|
+
*
|
|
375
|
+
* @example
|
|
376
|
+
* await client.customer.auth.deleteAccount({
|
|
377
|
+
* password: "password"
|
|
378
|
+
* })
|
|
379
|
+
*/
|
|
380
|
+
deleteAccount(request, requestOptions) {
|
|
381
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteAccount(request, requestOptions));
|
|
382
|
+
}
|
|
383
|
+
__deleteAccount(request, requestOptions) {
|
|
384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
386
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
387
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
388
|
+
const _response = yield core.fetcher({
|
|
389
|
+
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/user/delete"),
|
|
390
|
+
method: "POST",
|
|
391
|
+
headers: _headers,
|
|
392
|
+
contentType: "application/json",
|
|
393
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
394
|
+
requestType: "json",
|
|
395
|
+
body: request,
|
|
396
|
+
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,
|
|
397
|
+
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,
|
|
398
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
399
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
400
|
+
logging: this._options.logging,
|
|
401
|
+
});
|
|
402
|
+
if (_response.ok) {
|
|
403
|
+
return {
|
|
404
|
+
data: _response.body,
|
|
405
|
+
rawResponse: _response.rawResponse,
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
if (_response.error.reason === "status-code") {
|
|
409
|
+
switch (_response.error.statusCode) {
|
|
410
|
+
case 401:
|
|
411
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
412
|
+
case 422:
|
|
413
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
414
|
+
default:
|
|
415
|
+
throw new errors.FiveOneEatError({
|
|
416
|
+
statusCode: _response.error.statusCode,
|
|
417
|
+
body: _response.error.body,
|
|
418
|
+
rawResponse: _response.rawResponse,
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/user/delete");
|
|
423
|
+
});
|
|
424
|
+
}
|
|
363
425
|
/**
|
|
364
426
|
* Upload and replace the avatar for the authenticated customer. Any existing avatar file will be deleted.
|
|
365
427
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { AppHttpRequestsApiV1CustomerAuthForgotPasswordRequest } from "./AppHttpRequestsApiV1CustomerAuthForgotPasswordRequest.mjs";
|
|
2
2
|
export type { AppHttpRequestsApiV1CustomerAuthResetPasswordRequest } from "./AppHttpRequestsApiV1CustomerAuthResetPasswordRequest.mjs";
|
|
3
|
+
export type { DeleteAccountRequest } from "./DeleteAccountRequest.mjs";
|
|
3
4
|
export type { LoginCustomerRequest } from "./LoginCustomerRequest.mjs";
|
|
4
5
|
export type { LogoutAuthRequest } from "./LogoutAuthRequest.mjs";
|
|
5
6
|
export type { RegisterCustomerRequest } from "./RegisterCustomerRequest.mjs";
|
|
@@ -23,7 +23,9 @@ export interface StoreBusinessSubmissionRequest {
|
|
|
23
23
|
phone?: string | null;
|
|
24
24
|
website?: string | null;
|
|
25
25
|
description?: string | null;
|
|
26
|
+
category_slugs?: string[] | null;
|
|
26
27
|
hours?: string[] | null;
|
|
28
|
+
operating_months?: StoreBusinessSubmissionRequest.OperatingMonths.Item[] | null;
|
|
27
29
|
seasonal?: boolean | null;
|
|
28
30
|
has_location?: boolean | null;
|
|
29
31
|
facebook_url?: string | null;
|
|
@@ -32,6 +34,24 @@ export interface StoreBusinessSubmissionRequest {
|
|
|
32
34
|
tiktok_url?: string | null;
|
|
33
35
|
youtube_url?: string | null;
|
|
34
36
|
linkedin_url?: string | null;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
}
|
|
38
|
+
export declare namespace StoreBusinessSubmissionRequest {
|
|
39
|
+
type OperatingMonths = OperatingMonths.Item[];
|
|
40
|
+
namespace OperatingMonths {
|
|
41
|
+
const Item: {
|
|
42
|
+
readonly January: "january";
|
|
43
|
+
readonly February: "february";
|
|
44
|
+
readonly March: "march";
|
|
45
|
+
readonly April: "april";
|
|
46
|
+
readonly May: "may";
|
|
47
|
+
readonly June: "june";
|
|
48
|
+
readonly July: "july";
|
|
49
|
+
readonly August: "august";
|
|
50
|
+
readonly September: "september";
|
|
51
|
+
readonly October: "october";
|
|
52
|
+
readonly November: "november";
|
|
53
|
+
readonly December: "december";
|
|
54
|
+
};
|
|
55
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
56
|
+
}
|
|
37
57
|
}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var StoreBusinessSubmissionRequest;
|
|
3
|
+
(function (StoreBusinessSubmissionRequest) {
|
|
4
|
+
let OperatingMonths;
|
|
5
|
+
(function (OperatingMonths) {
|
|
6
|
+
OperatingMonths.Item = {
|
|
7
|
+
January: "january",
|
|
8
|
+
February: "february",
|
|
9
|
+
March: "march",
|
|
10
|
+
April: "april",
|
|
11
|
+
May: "may",
|
|
12
|
+
June: "june",
|
|
13
|
+
July: "july",
|
|
14
|
+
August: "august",
|
|
15
|
+
September: "september",
|
|
16
|
+
October: "october",
|
|
17
|
+
November: "november",
|
|
18
|
+
December: "december",
|
|
19
|
+
};
|
|
20
|
+
})(OperatingMonths = StoreBusinessSubmissionRequest.OperatingMonths || (StoreBusinessSubmissionRequest.OperatingMonths = {}));
|
|
21
|
+
})(StoreBusinessSubmissionRequest || (StoreBusinessSubmissionRequest = {}));
|
package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type { GetBusinessSubmissionsRequest } from "./GetBusinessSubmissionsRequest.mjs";
|
|
2
|
-
export
|
|
2
|
+
export { StoreBusinessSubmissionRequest } from "./StoreBusinessSubmissionRequest.mjs";
|
package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { StoreBusinessSubmissionRequest } from "./StoreBusinessSubmissionRequest.mjs";
|
|
@@ -9,6 +9,7 @@ import type * as core from "../../../../../../../../../core/index.mjs";
|
|
|
9
9
|
export interface UploadSubmissionPhotoRequest {
|
|
10
10
|
/** The business ID */
|
|
11
11
|
business: string;
|
|
12
|
+
/** Maximum file size: 10240 kilobytes. */
|
|
12
13
|
image: core.file.Uploadable;
|
|
13
14
|
alt_text?: string | null;
|
|
14
15
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type * as FiveOneEat from "../../../../../../../index.mjs";
|
|
2
2
|
export interface UploadPhotosResponse {
|
|
3
|
-
data:
|
|
3
|
+
data: UploadPhotosResponse.Data;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace UploadPhotosResponse {
|
|
6
|
+
interface Data extends FiveOneEat.CustomerBusinessSubmission {
|
|
7
|
+
}
|
|
4
8
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type * as FiveOneEat from "../../../../../index.mjs";
|
|
2
2
|
export interface CreateBusinessSubmissionsResponse {
|
|
3
|
-
data:
|
|
3
|
+
data: CreateBusinessSubmissionsResponse.Data;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace CreateBusinessSubmissionsResponse {
|
|
6
|
+
interface Data extends FiveOneEat.CustomerBusinessSubmission {
|
|
7
|
+
}
|
|
4
8
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type * as FiveOneEat from "../../../../../index.mjs";
|
|
2
2
|
export interface GetBusinessSubmissionsResponse {
|
|
3
|
-
data:
|
|
3
|
+
data: GetBusinessSubmissionsResponse.Data;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace GetBusinessSubmissionsResponse {
|
|
6
|
+
interface Data extends FiveOneEat.CustomerBusinessSubmission {
|
|
7
|
+
}
|
|
4
8
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type * as FiveOneEat from "../../../../../index.mjs";
|
|
2
2
|
export interface ListBusinessSubmissionsResponse {
|
|
3
|
-
data:
|
|
3
|
+
data: ListBusinessSubmissionsResponse.Data.Item[];
|
|
4
4
|
links: ListBusinessSubmissionsResponse.Links;
|
|
5
5
|
meta: ListBusinessSubmissionsResponse.Meta;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace ListBusinessSubmissionsResponse {
|
|
8
|
+
type Data = Data.Item[];
|
|
9
|
+
namespace Data {
|
|
10
|
+
interface Item extends FiveOneEat.CustomerBusinessSubmission {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
8
13
|
interface Links {
|
|
9
14
|
first: string | null;
|
|
10
15
|
last: string | null;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type * as FiveOneEat from "../../../../../../../index.mjs";
|
|
2
2
|
export interface ConfirmOrderTicketingResponse {
|
|
3
|
-
data:
|
|
3
|
+
data: ConfirmOrderTicketingResponse.Data;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace ConfirmOrderTicketingResponse {
|
|
6
|
+
interface Data extends FiveOneEat.TicketOrder {
|
|
7
|
+
}
|
|
4
8
|
}
|
|
@@ -2,18 +2,18 @@ export interface CreatePaymentIntentTicketingResponse {
|
|
|
2
2
|
status: string;
|
|
3
3
|
client_secret: string;
|
|
4
4
|
payment_intent_id: string;
|
|
5
|
-
subtotal:
|
|
6
|
-
tax_amount:
|
|
5
|
+
subtotal: number;
|
|
6
|
+
tax_amount: number;
|
|
7
7
|
tax_calculation: CreatePaymentIntentTicketingResponse.TaxCalculation | null;
|
|
8
|
-
shipping_amount:
|
|
8
|
+
shipping_amount: number;
|
|
9
9
|
shipping_method: unknown | null;
|
|
10
|
-
platform_fee:
|
|
11
|
-
total_amount:
|
|
10
|
+
platform_fee: number;
|
|
11
|
+
total_amount: number;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace CreatePaymentIntentTicketingResponse {
|
|
14
14
|
interface TaxCalculation {
|
|
15
15
|
id: string;
|
|
16
|
-
amount_total:
|
|
17
|
-
tax_amount_exclusive:
|
|
16
|
+
amount_total: number;
|
|
17
|
+
tax_amount_exclusive: number;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClie
|
|
|
3
3
|
import * as core from "../../../../../../core/index.mjs";
|
|
4
4
|
import * as FiveOneEat from "../../../../../index.mjs";
|
|
5
5
|
import { AddressesClient } from "../resources/addresses/client/Client.mjs";
|
|
6
|
+
import { ListsClient } from "../resources/lists/client/Client.mjs";
|
|
6
7
|
import { PaymentMethodsClient } from "../resources/paymentMethods/client/Client.mjs";
|
|
7
8
|
import { TicketOrdersClient } from "../resources/ticketOrders/client/Client.mjs";
|
|
8
9
|
import { TicketsClient } from "../resources/tickets/client/Client.mjs";
|
|
@@ -13,22 +14,41 @@ export declare namespace MeClient {
|
|
|
13
14
|
}
|
|
14
15
|
export declare class MeClient {
|
|
15
16
|
protected readonly _options: NormalizedClientOptionsWithAuth<MeClient.Options>;
|
|
17
|
+
protected _lists: ListsClient | undefined;
|
|
16
18
|
protected _tickets: TicketsClient | undefined;
|
|
17
19
|
protected _ticketOrders: TicketOrdersClient | undefined;
|
|
18
20
|
protected _addresses: AddressesClient | undefined;
|
|
19
21
|
protected _paymentMethods: PaymentMethodsClient | undefined;
|
|
20
22
|
constructor(options?: MeClient.Options);
|
|
23
|
+
get lists(): ListsClient;
|
|
21
24
|
get tickets(): TicketsClient;
|
|
22
25
|
get ticketOrders(): TicketOrdersClient;
|
|
23
26
|
get addresses(): AddressesClient;
|
|
24
27
|
get paymentMethods(): PaymentMethodsClient;
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
29
|
+
* The filter options available for this user's favorites — only taxonomies
|
|
30
|
+
* actually present among them, each with a count. An option that cannot
|
|
31
|
+
* match anything is never returned.
|
|
32
|
+
*
|
|
33
|
+
* @param {MeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.customer.me.favoriteFacets()
|
|
39
|
+
*/
|
|
40
|
+
favoriteFacets(requestOptions?: MeClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.FavoriteFacetsMeResponse>;
|
|
41
|
+
private __favoriteFacets;
|
|
42
|
+
/**
|
|
43
|
+
* The authenticated user's favorited businesses, optionally narrowed by
|
|
44
|
+
* search term and taxonomy facets. Values within one facet are OR; separate
|
|
45
|
+
* facets compose as AND.
|
|
27
46
|
*
|
|
28
47
|
* @param {FiveOneEat.customer.FavoritesMeRequest} request
|
|
29
48
|
* @param {MeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
49
|
*
|
|
31
50
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
51
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
32
52
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
33
53
|
*
|
|
34
54
|
* @example
|
|
@@ -16,6 +16,7 @@ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStat
|
|
|
16
16
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
17
|
import * as FiveOneEat from "../../../../../index.mjs";
|
|
18
18
|
import { AddressesClient } from "../resources/addresses/client/Client.mjs";
|
|
19
|
+
import { ListsClient } from "../resources/lists/client/Client.mjs";
|
|
19
20
|
import { PaymentMethodsClient } from "../resources/paymentMethods/client/Client.mjs";
|
|
20
21
|
import { TicketOrdersClient } from "../resources/ticketOrders/client/Client.mjs";
|
|
21
22
|
import { TicketsClient } from "../resources/tickets/client/Client.mjs";
|
|
@@ -23,6 +24,10 @@ export class MeClient {
|
|
|
23
24
|
constructor(options = {}) {
|
|
24
25
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
25
26
|
}
|
|
27
|
+
get lists() {
|
|
28
|
+
var _a;
|
|
29
|
+
return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new ListsClient(this._options)));
|
|
30
|
+
}
|
|
26
31
|
get tickets() {
|
|
27
32
|
var _a;
|
|
28
33
|
return ((_a = this._tickets) !== null && _a !== void 0 ? _a : (this._tickets = new TicketsClient(this._options)));
|
|
@@ -40,12 +45,67 @@ export class MeClient {
|
|
|
40
45
|
return ((_a = this._paymentMethods) !== null && _a !== void 0 ? _a : (this._paymentMethods = new PaymentMethodsClient(this._options)));
|
|
41
46
|
}
|
|
42
47
|
/**
|
|
43
|
-
*
|
|
48
|
+
* The filter options available for this user's favorites — only taxonomies
|
|
49
|
+
* actually present among them, each with a count. An option that cannot
|
|
50
|
+
* match anything is never returned.
|
|
51
|
+
*
|
|
52
|
+
* @param {MeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.customer.me.favoriteFacets()
|
|
58
|
+
*/
|
|
59
|
+
favoriteFacets(requestOptions) {
|
|
60
|
+
return core.HttpResponsePromise.fromPromise(this.__favoriteFacets(requestOptions));
|
|
61
|
+
}
|
|
62
|
+
__favoriteFacets(requestOptions) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
65
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
66
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
67
|
+
const _response = yield core.fetcher({
|
|
68
|
+
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/favorites/facets"),
|
|
69
|
+
method: "GET",
|
|
70
|
+
headers: _headers,
|
|
71
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
72
|
+
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,
|
|
73
|
+
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,
|
|
74
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
75
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
76
|
+
logging: this._options.logging,
|
|
77
|
+
});
|
|
78
|
+
if (_response.ok) {
|
|
79
|
+
return {
|
|
80
|
+
data: _response.body,
|
|
81
|
+
rawResponse: _response.rawResponse,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
if (_response.error.reason === "status-code") {
|
|
85
|
+
switch (_response.error.statusCode) {
|
|
86
|
+
case 401:
|
|
87
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
88
|
+
default:
|
|
89
|
+
throw new errors.FiveOneEatError({
|
|
90
|
+
statusCode: _response.error.statusCode,
|
|
91
|
+
body: _response.error.body,
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/favorites/facets");
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The authenticated user's favorited businesses, optionally narrowed by
|
|
101
|
+
* search term and taxonomy facets. Values within one facet are OR; separate
|
|
102
|
+
* facets compose as AND.
|
|
44
103
|
*
|
|
45
104
|
* @param {FiveOneEat.customer.FavoritesMeRequest} request
|
|
46
105
|
* @param {MeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
106
|
*
|
|
48
107
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
108
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
49
109
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
50
110
|
*
|
|
51
111
|
* @example
|
|
@@ -57,8 +117,13 @@ export class MeClient {
|
|
|
57
117
|
__favorites() {
|
|
58
118
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
59
119
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
60
|
-
const { page, per_page: perPage } = request;
|
|
120
|
+
const { search, categories, cuisines, certifications, sort, page, per_page: perPage } = request;
|
|
61
121
|
const _queryParams = {
|
|
122
|
+
search,
|
|
123
|
+
categories,
|
|
124
|
+
cuisines,
|
|
125
|
+
certifications,
|
|
126
|
+
sort: sort !== undefined ? sort : undefined,
|
|
62
127
|
page,
|
|
63
128
|
per_page: perPage,
|
|
64
129
|
};
|
|
@@ -90,6 +155,8 @@ export class MeClient {
|
|
|
90
155
|
switch (_response.error.statusCode) {
|
|
91
156
|
case 401:
|
|
92
157
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
158
|
+
case 403:
|
|
159
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
93
160
|
case 422:
|
|
94
161
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
95
162
|
default:
|
package/dist/esm/api/resources/customer/resources/me/client/requests/FavoritesMeRequest.d.mts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../../../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {}
|
|
4
5
|
*/
|
|
5
6
|
export interface FavoritesMeRequest {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
search?: string | null;
|
|
8
|
+
categories?: string | null;
|
|
9
|
+
cuisines?: string | null;
|
|
10
|
+
certifications?: string | null;
|
|
11
|
+
sort?: FiveOneEat.customer.FavoritesMeRequestSort | null;
|
|
12
|
+
page?: number | null;
|
|
13
|
+
per_page?: number | null;
|
|
10
14
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./addresses/client/requests/index.mjs";
|
|
2
2
|
export * as addresses from "./addresses/index.mjs";
|
|
3
3
|
export * from "./addresses/types/index.mjs";
|
|
4
|
+
export * from "./lists/client/requests/index.mjs";
|
|
5
|
+
export * as lists from "./lists/index.mjs";
|
|
6
|
+
export * from "./lists/types/index.mjs";
|
|
4
7
|
export * from "./paymentMethods/client/requests/index.mjs";
|
|
5
8
|
export * as paymentMethods from "./paymentMethods/index.mjs";
|
|
6
9
|
export * from "./paymentMethods/types/index.mjs";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./addresses/client/requests/index.mjs";
|
|
2
2
|
export * as addresses from "./addresses/index.mjs";
|
|
3
3
|
export * from "./addresses/types/index.mjs";
|
|
4
|
+
export * from "./lists/client/requests/index.mjs";
|
|
5
|
+
export * as lists from "./lists/index.mjs";
|
|
6
|
+
export * from "./lists/types/index.mjs";
|
|
4
7
|
export * from "./paymentMethods/client/requests/index.mjs";
|
|
5
8
|
export * as paymentMethods from "./paymentMethods/index.mjs";
|
|
6
9
|
export * from "./paymentMethods/types/index.mjs";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
4
|
+
import * as FiveOneEat from "../../../../../../../index.mjs";
|
|
5
|
+
import { ItemsClient } from "../resources/items/client/Client.mjs";
|
|
6
|
+
export declare namespace ListsClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class ListsClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ListsClient.Options>;
|
|
13
|
+
protected _items: ItemsClient | undefined;
|
|
14
|
+
constructor(options?: ListsClient.Options);
|
|
15
|
+
get items(): ItemsClient;
|
|
16
|
+
/**
|
|
17
|
+
* Every list the authenticated user owns, newest first, each carrying a
|
|
18
|
+
* cover image drawn from its most recently added business.
|
|
19
|
+
*
|
|
20
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
|
+
*
|
|
22
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.customer.me.lists.list()
|
|
26
|
+
*/
|
|
27
|
+
list(requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.me.ListListsResponse>;
|
|
28
|
+
private __list;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new list for the authenticated user. A public list is readable
|
|
31
|
+
* by anyone holding its share link.
|
|
32
|
+
*
|
|
33
|
+
* @param {FiveOneEat.customer.me.StoreBusinessListRequest} request
|
|
34
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
37
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
38
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.customer.me.lists.create({
|
|
42
|
+
* name: "name"
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
create(request: FiveOneEat.customer.me.StoreBusinessListRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.me.CreateListsResponse>;
|
|
46
|
+
private __create;
|
|
47
|
+
/**
|
|
48
|
+
* Which of the authenticated user's lists already contain this business.
|
|
49
|
+
* Backs the checkbox state in a save-to-list sheet.
|
|
50
|
+
*
|
|
51
|
+
* Scoped to the caller's own lists, so there is nothing here another user
|
|
52
|
+
* could learn.
|
|
53
|
+
*
|
|
54
|
+
* @param {FiveOneEat.customer.me.MembershipsListsRequest} request
|
|
55
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.customer.me.lists.memberships({
|
|
61
|
+
* business: "katzs-deli"
|
|
62
|
+
* })
|
|
63
|
+
*/
|
|
64
|
+
memberships(request: FiveOneEat.customer.me.MembershipsListsRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.me.MembershipsListsResponse>;
|
|
65
|
+
private __memberships;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieve one of the authenticated user's own lists with its businesses.
|
|
68
|
+
*
|
|
69
|
+
* Owner-only. `view` would return true for any public list, which would
|
|
70
|
+
* expose this owner-scoped payload — including delisted businesses — to a
|
|
71
|
+
* signed-in stranger. Strangers read a shared list through the public
|
|
72
|
+
* endpoint instead.
|
|
73
|
+
*
|
|
74
|
+
* @param {FiveOneEat.customer.me.GetListsRequest} request
|
|
75
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
78
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* await client.customer.me.lists.get({
|
|
82
|
+
* businessList: "businessList"
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
get(request: FiveOneEat.customer.me.GetListsRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.me.GetListsResponse>;
|
|
86
|
+
private __get;
|
|
87
|
+
/**
|
|
88
|
+
* Change a list's name, description, or visibility.
|
|
89
|
+
*
|
|
90
|
+
* @param {FiveOneEat.customer.me.UpdateBusinessListRequest} request
|
|
91
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
94
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
95
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* await client.customer.me.lists.update({
|
|
99
|
+
* businessList: "businessList",
|
|
100
|
+
* name: "name"
|
|
101
|
+
* })
|
|
102
|
+
*/
|
|
103
|
+
update(request: FiveOneEat.customer.me.UpdateBusinessListRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.me.UpdateListsResponse>;
|
|
104
|
+
private __update;
|
|
105
|
+
/**
|
|
106
|
+
* Permanently delete a list and its notes. The businesses themselves are
|
|
107
|
+
* unaffected.
|
|
108
|
+
*
|
|
109
|
+
* @param {FiveOneEat.customer.me.DeleteListsRequest} request
|
|
110
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
113
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.customer.me.lists.delete({
|
|
117
|
+
* businessList: "businessList"
|
|
118
|
+
* })
|
|
119
|
+
*/
|
|
120
|
+
delete(request: FiveOneEat.customer.me.DeleteListsRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
121
|
+
private __delete;
|
|
122
|
+
}
|