@51eat/sdk 0.0.41 → 0.0.43
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/README.md +14 -12
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +12 -0
- package/dist/cjs/Client.js +28 -8
- package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +7 -2
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +259 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/types → business/resources/products/resources/images/client}/index.js +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +2 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types → business/resources/products/resources/images}/index.js +2 -3
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → business/resources/products/resources/images}/types/index.js +3 -4
- package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/index.js +4 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +5 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/index.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +259 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +42 -0
- package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +27 -0
- package/dist/cjs/api/resources/businessMessaging/client/Client.js +124 -0
- package/dist/cjs/api/resources/businessMessaging/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/client/index.js +17 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/businessMessaging/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/types/index.js → businessMessaging/exports.js} +5 -5
- package/dist/cjs/api/resources/businessMessaging/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessMessaging/index.js +18 -0
- package/dist/cjs/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessMessaging/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/types/index.js +17 -0
- package/dist/cjs/api/resources/customer/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/client/Client.js +4 -4
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +13 -41
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +62 -162
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +3 -8
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +11 -36
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +17 -43
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +50 -160
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +3 -9
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +4 -11
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +12 -33
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +44 -126
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +3 -5
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +2 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/index.js +0 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +43 -35
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +105 -92
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/customer/resources/index.js +0 -2
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +7 -13
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +31 -71
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -4
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/shop/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/shop/index.js +0 -1
- package/dist/cjs/api/resources/customerBusinesses/client/Client.d.ts +267 -0
- package/dist/cjs/api/resources/customerBusinesses/client/Client.js +982 -0
- package/dist/cjs/api/resources/customerBusinesses/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerBusinesses/client/index.js +17 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.ts +20 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.ts +17 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/index.d.ts +15 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/customerBusinesses/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerBusinesses/exports.js +21 -0
- package/dist/cjs/api/resources/customerBusinesses/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerBusinesses/index.js +18 -0
- package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.ts +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/customerBusinesses/types/index.js +29 -0
- package/dist/cjs/api/resources/customerMessaging/client/Client.d.ts +27 -0
- package/dist/cjs/api/resources/customerMessaging/client/Client.js +124 -0
- package/dist/cjs/api/resources/customerMessaging/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerMessaging/client/index.js +17 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.js +3 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerMessaging/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerMessaging/exports.js +21 -0
- package/dist/cjs/api/resources/customerMessaging/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerMessaging/index.js +18 -0
- package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.js +3 -0
- package/dist/cjs/api/resources/customerMessaging/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerMessaging/types/index.js +17 -0
- package/dist/cjs/api/resources/customerShop/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/customerShop/client/Client.js +219 -0
- package/dist/cjs/api/resources/customerShop/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerShop/client/index.js +17 -0
- package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.js +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.js +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.js +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerShop/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerShop/exports.js +21 -0
- package/dist/cjs/api/resources/customerShop/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerShop/index.js +18 -0
- package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.js +3 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.js +3 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.js +3 -0
- package/dist/cjs/api/resources/customerShop/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/{customer/resources/shop → customerShop}/types/index.js +3 -3
- package/dist/cjs/api/resources/index.d.ts +12 -0
- package/dist/cjs/api/resources/index.js +13 -1
- package/dist/cjs/api/types/BusinessProduct.d.ts +1 -1
- package/dist/cjs/api/types/BusinessProductVariant.d.ts +2 -0
- package/dist/cjs/api/types/ExploreEvent.d.ts +21 -0
- package/dist/cjs/api/types/ExploreEvent.js +3 -0
- package/dist/cjs/api/types/ExploreResponse.d.ts +1 -0
- package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +12 -0
- package/dist/cjs/api/types/ReorderProductImagesRequest.js +3 -0
- package/dist/cjs/api/types/StoreProductImageRequest.d.ts +4 -0
- package/dist/cjs/api/types/StoreProductImageRequest.js +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- 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 +12 -0
- package/dist/esm/Client.mjs +20 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +222 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +222 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
- package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +27 -0
- package/dist/esm/api/resources/businessMessaging/client/Client.mjs +87 -0
- package/dist/esm/api/resources/businessMessaging/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.mts +14 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/businessMessaging/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessMessaging/exports.mjs +3 -0
- package/dist/esm/api/resources/businessMessaging/index.d.mts +2 -0
- package/dist/esm/api/resources/businessMessaging/index.mjs +2 -0
- package/dist/esm/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessMessaging/types/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/client/Client.mjs +4 -4
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +13 -41
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +62 -162
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +3 -8
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +11 -36
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +17 -43
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +50 -160
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.mts +11 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +3 -9
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +4 -11
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +12 -33
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +44 -126
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +3 -5
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +2 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.mts +11 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/index.mjs +0 -2
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +43 -35
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +105 -92
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/customer/resources/index.mjs +0 -2
- package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +7 -13
- package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +31 -71
- package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -4
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/shop/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/shop/index.mjs +0 -1
- package/dist/esm/api/resources/customerBusinesses/client/Client.d.mts +267 -0
- package/dist/esm/api/resources/customerBusinesses/client/Client.mjs +945 -0
- package/dist/esm/api/resources/customerBusinesses/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerBusinesses/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.mts +13 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.mts +13 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.mts +20 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.mts +17 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/index.d.mts +15 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerBusinesses/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerBusinesses/exports.mjs +3 -0
- package/dist/esm/api/resources/customerBusinesses/index.d.mts +2 -0
- package/dist/esm/api/resources/customerBusinesses/index.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.mts +3 -0
- package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/index.d.mts +13 -0
- package/dist/esm/api/resources/customerBusinesses/types/index.mjs +13 -0
- package/dist/esm/api/resources/customerMessaging/client/Client.d.mts +27 -0
- package/dist/esm/api/resources/customerMessaging/client/Client.mjs +87 -0
- package/dist/esm/api/resources/customerMessaging/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerMessaging/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerMessaging/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerMessaging/exports.mjs +3 -0
- package/dist/esm/api/resources/customerMessaging/index.d.mts +2 -0
- package/dist/esm/api/resources/customerMessaging/index.mjs +2 -0
- package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerMessaging/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customerMessaging/types/index.mjs +1 -0
- package/dist/esm/api/resources/customerShop/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/customerShop/client/Client.mjs +182 -0
- package/dist/esm/api/resources/customerShop/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerShop/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.d.mts +13 -0
- package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.mjs +2 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.mjs +2 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerShop/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/customerShop/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerShop/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerShop/exports.mjs +3 -0
- package/dist/esm/api/resources/customerShop/index.d.mts +2 -0
- package/dist/esm/api/resources/customerShop/index.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customerShop/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +12 -0
- package/dist/esm/api/resources/index.mjs +12 -0
- package/dist/esm/api/types/BusinessProduct.d.mts +1 -1
- package/dist/esm/api/types/BusinessProductVariant.d.mts +2 -0
- package/dist/esm/api/types/ExploreEvent.d.mts +21 -0
- package/dist/esm/api/types/ExploreEvent.mjs +2 -0
- package/dist/esm/api/types/ExploreResponse.d.mts +1 -0
- package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +12 -0
- package/dist/esm/api/types/ReorderProductImagesRequest.mjs +2 -0
- package/dist/esm/api/types/StoreProductImageRequest.d.mts +4 -0
- package/dist/esm/api/types/StoreProductImageRequest.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +78 -12
- package/reference.md +3236 -1856
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.ts +0 -3
- package/dist/cjs/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/index.d.ts +0 -5
- package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/shop/types/index.d.ts +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.mjs +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.d.mts +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.mjs +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.mts +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/index.d.mts +0 -5
- package/dist/esm/api/resources/customer/resources/businesses/types/index.mjs +0 -5
- package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/shop/types/index.d.mts +0 -3
- package/dist/esm/api/resources/customer/resources/shop/types/index.mjs +0 -3
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js → business/resources/products/resources/images/client/requests/DeleteImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.js → business/resources/products/resources/images/client/requests/ReorderImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.js → business/resources/products/resources/images/client/requests/UploadImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.js → business/resources/products/resources/images/types/UploadImagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/GetEventsResponse.js → business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/ListEventsResponse.js → businessMessaging/client/requests/SearchBusinessConversationsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/RsvpEventsResponse.js → businessMessaging/types/SearchBusinessConversationsResponse.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.js → resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/{types/ListTemporaryLocationsBusinessesResponse.js → resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/{types/MenusBusinessesResponse.js → resources/events/client/requests/RsvpEventsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{businesses/types/PhotosBusinessesResponse.js → cart/client/requests/ClearCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{businesses/types/ProfileBusinessesResponse.js → cart/client/requests/GetCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/GetProductShopResponse.js → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.js → customerBusinesses/client/requests/BusinessesEventShowRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/ListProductsShopResponse.js → customerBusinesses/client/requests/DestroyEventRsvpRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.js +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs → business/resources/products/resources/images/client/requests/DeleteImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.mjs → business/resources/products/resources/images/client/requests/ReorderImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.mjs → business/resources/products/resources/images/client/requests/UploadImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.mjs → business/resources/products/resources/images/types/UploadImagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/GetEventsResponse.mjs → business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/ListEventsResponse.mjs → businessMessaging/client/requests/SearchBusinessConversationsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/RsvpEventsResponse.mjs → businessMessaging/types/SearchBusinessConversationsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.mjs → resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/{types/ListTemporaryLocationsBusinessesResponse.mjs → resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/{types/MenusBusinessesResponse.mjs → resources/events/client/requests/RsvpEventsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{businesses/types/PhotosBusinessesResponse.mjs → cart/client/requests/ClearCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{businesses/types/ProfileBusinessesResponse.mjs → cart/client/requests/GetCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/GetProductShopResponse.mjs → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.mjs → customerBusinesses/client/requests/BusinessesEventShowRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/ListProductsShopResponse.mjs → customerBusinesses/client/requests/DestroyEventRsvpRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.mjs +0 -0
package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../../../core/index.js";
|
|
4
|
-
import * as FiveOneEat from "../../../../../../../index.js";
|
|
4
|
+
import type * as FiveOneEat from "../../../../../../../index.js";
|
|
5
5
|
export declare namespace EventsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -11,71 +11,50 @@ export declare class EventsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
|
|
12
12
|
constructor(options?: EventsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Retrieve upcoming events for the business with pagination.
|
|
15
|
-
*
|
|
16
14
|
* @param {FiveOneEat.customer.businesses.ListEventsRequest} request
|
|
17
15
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
16
|
*
|
|
19
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
21
|
-
*
|
|
22
17
|
* @example
|
|
23
18
|
* await client.customer.businesses.events.list({
|
|
24
|
-
*
|
|
19
|
+
* business: "business"
|
|
25
20
|
* })
|
|
26
21
|
*/
|
|
27
|
-
list(request: FiveOneEat.customer.businesses.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<
|
|
22
|
+
list(request: FiveOneEat.customer.businesses.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
28
23
|
private __list;
|
|
29
24
|
/**
|
|
30
|
-
* Retrieve full details for a single upcoming event belonging to the business.
|
|
31
|
-
*
|
|
32
25
|
* @param {FiveOneEat.customer.businesses.GetEventsRequest} request
|
|
33
26
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
27
|
*
|
|
35
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
36
|
-
*
|
|
37
28
|
* @example
|
|
38
29
|
* await client.customer.businesses.events.get({
|
|
39
|
-
*
|
|
30
|
+
* business: "business",
|
|
40
31
|
* event: "event"
|
|
41
32
|
* })
|
|
42
33
|
*/
|
|
43
|
-
get(request: FiveOneEat.customer.businesses.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<
|
|
34
|
+
get(request: FiveOneEat.customer.businesses.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
44
35
|
private __get;
|
|
45
36
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @param {FiveOneEat.customer.businesses.StoreEventRsvpRequest} request
|
|
37
|
+
* @param {FiveOneEat.customer.businesses.RsvpEventsRequest} request
|
|
49
38
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
39
|
*
|
|
51
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
52
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
53
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
54
|
-
*
|
|
55
40
|
* @example
|
|
56
41
|
* await client.customer.businesses.events.rsvp({
|
|
57
|
-
*
|
|
58
|
-
* event: "
|
|
59
|
-
* status: "attending"
|
|
42
|
+
* business: "business",
|
|
43
|
+
* event: "event"
|
|
60
44
|
* })
|
|
61
45
|
*/
|
|
62
|
-
rsvp(request: FiveOneEat.customer.businesses.
|
|
46
|
+
rsvp(request: FiveOneEat.customer.businesses.RsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
63
47
|
private __rsvp;
|
|
64
48
|
/**
|
|
65
|
-
* Cancel the authenticated user's RSVP for a business event.
|
|
66
|
-
*
|
|
67
49
|
* @param {FiveOneEat.customer.businesses.CancelRsvpEventsRequest} request
|
|
68
50
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
51
|
*
|
|
70
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
71
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
72
|
-
*
|
|
73
52
|
* @example
|
|
74
53
|
* await client.customer.businesses.events.cancelRsvp({
|
|
75
|
-
*
|
|
76
|
-
* event: "
|
|
54
|
+
* business: "business",
|
|
55
|
+
* event: "event"
|
|
77
56
|
* })
|
|
78
57
|
*/
|
|
79
|
-
cancelRsvp(request: FiveOneEat.customer.businesses.CancelRsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<
|
|
58
|
+
cancelRsvp(request: FiveOneEat.customer.businesses.CancelRsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
80
59
|
private __cancelRsvp;
|
|
81
60
|
}
|
package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js
CHANGED
|
@@ -42,17 +42,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
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
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
46
|
exports.EventsClient = void 0;
|
|
58
47
|
const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
|
|
@@ -61,23 +50,17 @@ const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
|
61
50
|
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
62
51
|
const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
|
|
63
52
|
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
64
|
-
const FiveOneEat = __importStar(require("../../../../../../../index.js"));
|
|
65
53
|
class EventsClient {
|
|
66
54
|
constructor(options = {}) {
|
|
67
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
68
56
|
}
|
|
69
57
|
/**
|
|
70
|
-
* Retrieve upcoming events for the business with pagination.
|
|
71
|
-
*
|
|
72
58
|
* @param {FiveOneEat.customer.businesses.ListEventsRequest} request
|
|
73
59
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
60
|
*
|
|
75
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
76
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
77
|
-
*
|
|
78
61
|
* @example
|
|
79
62
|
* await client.customer.businesses.events.list({
|
|
80
|
-
*
|
|
63
|
+
* business: "business"
|
|
81
64
|
* })
|
|
82
65
|
*/
|
|
83
66
|
list(request, requestOptions) {
|
|
@@ -86,23 +69,14 @@ class EventsClient {
|
|
|
86
69
|
__list(request, requestOptions) {
|
|
87
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
71
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
89
|
-
const {
|
|
90
|
-
const _queryParams = {
|
|
91
|
-
page,
|
|
92
|
-
per_page: perPage,
|
|
93
|
-
};
|
|
72
|
+
const { business } = request;
|
|
94
73
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
95
74
|
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);
|
|
96
75
|
const _response = yield core.fetcher({
|
|
97
|
-
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/businesses/${core.url.encodePathParam(
|
|
76
|
+
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/businesses/${core.url.encodePathParam(business)}/events`),
|
|
98
77
|
method: "GET",
|
|
99
78
|
headers: _headers,
|
|
100
|
-
queryParameters:
|
|
101
|
-
queryString: core.url
|
|
102
|
-
.queryBuilder()
|
|
103
|
-
.addMany(_queryParams)
|
|
104
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
105
|
-
.build(),
|
|
79
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
106
80
|
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,
|
|
107
81
|
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,
|
|
108
82
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -110,39 +84,25 @@ class EventsClient {
|
|
|
110
84
|
logging: this._options.logging,
|
|
111
85
|
});
|
|
112
86
|
if (_response.ok) {
|
|
113
|
-
return {
|
|
114
|
-
data: _response.body,
|
|
115
|
-
rawResponse: _response.rawResponse,
|
|
116
|
-
};
|
|
87
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
117
88
|
}
|
|
118
89
|
if (_response.error.reason === "status-code") {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
default:
|
|
125
|
-
throw new errors.FiveOneEatError({
|
|
126
|
-
statusCode: _response.error.statusCode,
|
|
127
|
-
body: _response.error.body,
|
|
128
|
-
rawResponse: _response.rawResponse,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
90
|
+
throw new errors.FiveOneEatError({
|
|
91
|
+
statusCode: _response.error.statusCode,
|
|
92
|
+
body: _response.error.body,
|
|
93
|
+
rawResponse: _response.rawResponse,
|
|
94
|
+
});
|
|
131
95
|
}
|
|
132
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{
|
|
96
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events");
|
|
133
97
|
});
|
|
134
98
|
}
|
|
135
99
|
/**
|
|
136
|
-
* Retrieve full details for a single upcoming event belonging to the business.
|
|
137
|
-
*
|
|
138
100
|
* @param {FiveOneEat.customer.businesses.GetEventsRequest} request
|
|
139
101
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
140
102
|
*
|
|
141
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
142
|
-
*
|
|
143
103
|
* @example
|
|
144
104
|
* await client.customer.businesses.events.get({
|
|
145
|
-
*
|
|
105
|
+
* business: "business",
|
|
146
106
|
* event: "event"
|
|
147
107
|
* })
|
|
148
108
|
*/
|
|
@@ -152,11 +112,11 @@ class EventsClient {
|
|
|
152
112
|
__get(request, requestOptions) {
|
|
153
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
114
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
155
|
-
const {
|
|
115
|
+
const { business, event } = request;
|
|
156
116
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
157
117
|
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);
|
|
158
118
|
const _response = yield core.fetcher({
|
|
159
|
-
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/businesses/${core.url.encodePathParam(
|
|
119
|
+
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/businesses/${core.url.encodePathParam(business)}/events/${core.url.encodePathParam(event)}`),
|
|
160
120
|
method: "GET",
|
|
161
121
|
headers: _headers,
|
|
162
122
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -167,41 +127,26 @@ class EventsClient {
|
|
|
167
127
|
logging: this._options.logging,
|
|
168
128
|
});
|
|
169
129
|
if (_response.ok) {
|
|
170
|
-
return {
|
|
171
|
-
data: _response.body,
|
|
172
|
-
rawResponse: _response.rawResponse,
|
|
173
|
-
};
|
|
130
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
174
131
|
}
|
|
175
132
|
if (_response.error.reason === "status-code") {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
statusCode: _response.error.statusCode,
|
|
182
|
-
body: _response.error.body,
|
|
183
|
-
rawResponse: _response.rawResponse,
|
|
184
|
-
});
|
|
185
|
-
}
|
|
133
|
+
throw new errors.FiveOneEatError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.body,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
186
138
|
}
|
|
187
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{
|
|
139
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events/{event}");
|
|
188
140
|
});
|
|
189
141
|
}
|
|
190
142
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* @param {FiveOneEat.customer.businesses.StoreEventRsvpRequest} request
|
|
143
|
+
* @param {FiveOneEat.customer.businesses.RsvpEventsRequest} request
|
|
194
144
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
145
|
*
|
|
196
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
197
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
198
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
199
|
-
*
|
|
200
146
|
* @example
|
|
201
147
|
* await client.customer.businesses.events.rsvp({
|
|
202
|
-
*
|
|
203
|
-
* event: "
|
|
204
|
-
* status: "attending"
|
|
148
|
+
* business: "business",
|
|
149
|
+
* event: "event"
|
|
205
150
|
* })
|
|
206
151
|
*/
|
|
207
152
|
rsvp(request, requestOptions) {
|
|
@@ -210,17 +155,14 @@ class EventsClient {
|
|
|
210
155
|
__rsvp(request, requestOptions) {
|
|
211
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
212
157
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
213
|
-
const {
|
|
158
|
+
const { business, event } = request;
|
|
214
159
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
215
160
|
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);
|
|
216
161
|
const _response = yield core.fetcher({
|
|
217
|
-
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/businesses/${core.url.encodePathParam(
|
|
162
|
+
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/businesses/${core.url.encodePathParam(business)}/events/${core.url.encodePathParam(event)}/rsvp`),
|
|
218
163
|
method: "POST",
|
|
219
164
|
headers: _headers,
|
|
220
|
-
contentType: "application/json",
|
|
221
165
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
222
|
-
requestType: "json",
|
|
223
|
-
body: _body,
|
|
224
166
|
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,
|
|
225
167
|
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,
|
|
226
168
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -228,43 +170,26 @@ class EventsClient {
|
|
|
228
170
|
logging: this._options.logging,
|
|
229
171
|
});
|
|
230
172
|
if (_response.ok) {
|
|
231
|
-
return {
|
|
232
|
-
data: _response.body,
|
|
233
|
-
rawResponse: _response.rawResponse,
|
|
234
|
-
};
|
|
173
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
235
174
|
}
|
|
236
175
|
if (_response.error.reason === "status-code") {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
case 422:
|
|
243
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
244
|
-
default:
|
|
245
|
-
throw new errors.FiveOneEatError({
|
|
246
|
-
statusCode: _response.error.statusCode,
|
|
247
|
-
body: _response.error.body,
|
|
248
|
-
rawResponse: _response.rawResponse,
|
|
249
|
-
});
|
|
250
|
-
}
|
|
176
|
+
throw new errors.FiveOneEatError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.body,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
251
181
|
}
|
|
252
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{
|
|
182
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/events/{event}/rsvp");
|
|
253
183
|
});
|
|
254
184
|
}
|
|
255
185
|
/**
|
|
256
|
-
* Cancel the authenticated user's RSVP for a business event.
|
|
257
|
-
*
|
|
258
186
|
* @param {FiveOneEat.customer.businesses.CancelRsvpEventsRequest} request
|
|
259
187
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
260
188
|
*
|
|
261
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
262
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
263
|
-
*
|
|
264
189
|
* @example
|
|
265
190
|
* await client.customer.businesses.events.cancelRsvp({
|
|
266
|
-
*
|
|
267
|
-
* event: "
|
|
191
|
+
* business: "business",
|
|
192
|
+
* event: "event"
|
|
268
193
|
* })
|
|
269
194
|
*/
|
|
270
195
|
cancelRsvp(request, requestOptions) {
|
|
@@ -273,11 +198,11 @@ class EventsClient {
|
|
|
273
198
|
__cancelRsvp(request, requestOptions) {
|
|
274
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
200
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
276
|
-
const {
|
|
201
|
+
const { business, event } = request;
|
|
277
202
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
278
203
|
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);
|
|
279
204
|
const _response = yield core.fetcher({
|
|
280
|
-
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/businesses/${core.url.encodePathParam(
|
|
205
|
+
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/businesses/${core.url.encodePathParam(business)}/events/${core.url.encodePathParam(event)}/rsvp`),
|
|
281
206
|
method: "DELETE",
|
|
282
207
|
headers: _headers,
|
|
283
208
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -288,23 +213,16 @@ class EventsClient {
|
|
|
288
213
|
logging: this._options.logging,
|
|
289
214
|
});
|
|
290
215
|
if (_response.ok) {
|
|
291
|
-
return { data:
|
|
216
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
292
217
|
}
|
|
293
218
|
if (_response.error.reason === "status-code") {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
default:
|
|
300
|
-
throw new errors.FiveOneEatError({
|
|
301
|
-
statusCode: _response.error.statusCode,
|
|
302
|
-
body: _response.error.body,
|
|
303
|
-
rawResponse: _response.rawResponse,
|
|
304
|
-
});
|
|
305
|
-
}
|
|
219
|
+
throw new errors.FiveOneEatError({
|
|
220
|
+
statusCode: _response.error.statusCode,
|
|
221
|
+
body: _response.error.body,
|
|
222
|
+
rawResponse: _response.rawResponse,
|
|
223
|
+
});
|
|
306
224
|
}
|
|
307
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{
|
|
225
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{business}/events/{event}/rsvp");
|
|
308
226
|
});
|
|
309
227
|
}
|
|
310
228
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
5
|
-
* event: "
|
|
4
|
+
* business: "business",
|
|
5
|
+
* event: "event"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface CancelRsvpEventsRequest {
|
|
9
|
-
|
|
10
|
-
handle: string;
|
|
11
|
-
/** The event ID */
|
|
9
|
+
business: string;
|
|
12
10
|
event: string;
|
|
13
11
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "business",
|
|
5
5
|
* event: "event"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface GetEventsRequest {
|
|
9
|
-
|
|
10
|
-
handle: string;
|
|
11
|
-
/** The event ID */
|
|
9
|
+
business: string;
|
|
12
10
|
event: string;
|
|
13
11
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "business"
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface ListEventsRequest {
|
|
8
|
-
|
|
9
|
-
handle: string;
|
|
10
|
-
/** Page number for pagination */
|
|
11
|
-
page?: number;
|
|
12
|
-
/** Number of events per page */
|
|
13
|
-
per_page?: number;
|
|
8
|
+
business: string;
|
|
14
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { CancelRsvpEventsRequest } from "./CancelRsvpEventsRequest.js";
|
|
2
2
|
export type { GetEventsRequest } from "./GetEventsRequest.js";
|
|
3
3
|
export type { ListEventsRequest } from "./ListEventsRequest.js";
|
|
4
|
-
export {
|
|
4
|
+
export type { RsvpEventsRequest } from "./RsvpEventsRequest.js";
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StoreEventRsvpRequest = void 0;
|
|
4
|
-
var StoreEventRsvpRequest_js_1 = require("./StoreEventRsvpRequest.js");
|
|
5
|
-
Object.defineProperty(exports, "StoreEventRsvpRequest", { enumerable: true, get: function () { return StoreEventRsvpRequest_js_1.StoreEventRsvpRequest; } });
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from "./bulletins/client/requests/index.js";
|
|
2
2
|
export * as bulletins from "./bulletins/index.js";
|
|
3
|
-
export * from "./bulletins/types/index.js";
|
|
4
3
|
export * from "./events/client/requests/index.js";
|
|
5
4
|
export * as events from "./events/index.js";
|
|
6
|
-
export * from "./events/types/index.js";
|
|
@@ -39,7 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.events = exports.bulletins = void 0;
|
|
40
40
|
__exportStar(require("./bulletins/client/requests/index.js"), exports);
|
|
41
41
|
exports.bulletins = __importStar(require("./bulletins/index.js"));
|
|
42
|
-
__exportStar(require("./bulletins/types/index.js"), exports);
|
|
43
42
|
__exportStar(require("./events/client/requests/index.js"), exports);
|
|
44
43
|
exports.events = __importStar(require("./events/index.js"));
|
|
45
|
-
__exportStar(require("./events/types/index.js"), exports);
|
|
@@ -11,14 +11,17 @@ export declare class CartClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CartClient.Options>;
|
|
12
12
|
constructor(options?: CartClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* @param {FiveOneEat.customer.GetCartRequest} request
|
|
14
15
|
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
16
|
*
|
|
16
17
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
|
-
* await client.customer.cart.get(
|
|
20
|
+
* await client.customer.cart.get({
|
|
21
|
+
* business: "katzs-deli"
|
|
22
|
+
* })
|
|
20
23
|
*/
|
|
21
|
-
get(requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetCartResponse>;
|
|
24
|
+
get(request: FiveOneEat.customer.GetCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetCartResponse>;
|
|
22
25
|
private __get;
|
|
23
26
|
/**
|
|
24
27
|
* @param {FiveOneEat.customer.AddToCartRequest} request
|
|
@@ -29,7 +32,7 @@ export declare class CartClient {
|
|
|
29
32
|
*
|
|
30
33
|
* @example
|
|
31
34
|
* await client.customer.cart.addItem({
|
|
32
|
-
*
|
|
35
|
+
* business: "katzs-deli",
|
|
33
36
|
* product_id: 1,
|
|
34
37
|
* quantity: 1
|
|
35
38
|
* })
|
|
@@ -37,45 +40,18 @@ export declare class CartClient {
|
|
|
37
40
|
addItem(request: FiveOneEat.customer.AddToCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.AddItemCartResponse>;
|
|
38
41
|
private __addItem;
|
|
39
42
|
/**
|
|
43
|
+
* @param {FiveOneEat.customer.ClearCartRequest} request
|
|
40
44
|
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
45
|
*
|
|
42
46
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
43
47
|
*
|
|
44
48
|
* @example
|
|
45
|
-
* await client.customer.cart.clear(
|
|
46
|
-
|
|
47
|
-
clear(requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ClearCartResponse>;
|
|
48
|
-
private __clear;
|
|
49
|
-
/**
|
|
50
|
-
* @param {FiveOneEat.customer.UpdateCartItemRequest} request
|
|
51
|
-
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
-
*
|
|
53
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
54
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
55
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* await client.customer.cart.updateItem({
|
|
59
|
-
* cartItem: "cartItem",
|
|
60
|
-
* quantity: 1
|
|
49
|
+
* await client.customer.cart.clear({
|
|
50
|
+
* business: "katzs-deli"
|
|
61
51
|
* })
|
|
62
52
|
*/
|
|
63
|
-
|
|
64
|
-
private
|
|
65
|
-
/**
|
|
66
|
-
* @param {FiveOneEat.customer.RemoveItemCartRequest} request
|
|
67
|
-
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
-
*
|
|
69
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
70
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* await client.customer.cart.removeItem({
|
|
74
|
-
* cartItem: "cartItem"
|
|
75
|
-
* })
|
|
76
|
-
*/
|
|
77
|
-
removeItem(request: FiveOneEat.customer.RemoveItemCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.RemoveItemCartResponse>;
|
|
78
|
-
private __removeItem;
|
|
53
|
+
clear(request: FiveOneEat.customer.ClearCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ClearCartResponse>;
|
|
54
|
+
private __clear;
|
|
79
55
|
/**
|
|
80
56
|
* Returns client_secret, price breakdown, and tax calculation for use with Stripe SDK.
|
|
81
57
|
*
|
|
@@ -89,6 +65,7 @@ export declare class CartClient {
|
|
|
89
65
|
*
|
|
90
66
|
* @example
|
|
91
67
|
* await client.customer.cart.createPaymentIntent({
|
|
68
|
+
* business: "katzs-deli",
|
|
92
69
|
* billing_address: {
|
|
93
70
|
* line1: "line1",
|
|
94
71
|
* city: "city",
|
|
@@ -112,6 +89,7 @@ export declare class CartClient {
|
|
|
112
89
|
*
|
|
113
90
|
* @example
|
|
114
91
|
* await client.customer.cart.checkout({
|
|
92
|
+
* business: "katzs-deli",
|
|
115
93
|
* payment_intent_id: "payment_intent_id",
|
|
116
94
|
* billing_address: {
|
|
117
95
|
* line1: "line1",
|
|
@@ -124,4 +102,34 @@ export declare class CartClient {
|
|
|
124
102
|
*/
|
|
125
103
|
checkout(request: FiveOneEat.customer.CheckoutRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.CheckoutCartResponse>;
|
|
126
104
|
private __checkout;
|
|
105
|
+
/**
|
|
106
|
+
* @param {FiveOneEat.customer.UpdateCartItemRequest} request
|
|
107
|
+
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
110
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
111
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.customer.cart.updateItem({
|
|
115
|
+
* cartItem: "cartItem",
|
|
116
|
+
* quantity: 1
|
|
117
|
+
* })
|
|
118
|
+
*/
|
|
119
|
+
updateItem(request: FiveOneEat.customer.UpdateCartItemRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.UpdateItemCartResponse>;
|
|
120
|
+
private __updateItem;
|
|
121
|
+
/**
|
|
122
|
+
* @param {FiveOneEat.customer.RemoveItemCartRequest} request
|
|
123
|
+
* @param {CartClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
126
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* await client.customer.cart.removeItem({
|
|
130
|
+
* cartItem: "cartItem"
|
|
131
|
+
* })
|
|
132
|
+
*/
|
|
133
|
+
removeItem(request: FiveOneEat.customer.RemoveItemCartRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.RemoveItemCartResponse>;
|
|
134
|
+
private __removeItem;
|
|
127
135
|
}
|