@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
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../../../../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../../../../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../../../../../../../errors/index.mjs";
|
|
17
|
+
import * as FiveOneEat from "../../../../../../../../../index.mjs";
|
|
18
|
+
export class ImagesClient {
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param {FiveOneEat.business.products.variants.UploadImagesRequest} request
|
|
24
|
+
* @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
27
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
28
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
29
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* import { createReadStream } from "fs";
|
|
33
|
+
* await client.business.products.variants.images.upload({
|
|
34
|
+
* image: fs.createReadStream("/path/to/your/file"),
|
|
35
|
+
* variant: "variant"
|
|
36
|
+
* })
|
|
37
|
+
*/
|
|
38
|
+
upload(request, requestOptions) {
|
|
39
|
+
return core.HttpResponsePromise.fromPromise(this.__upload(request, requestOptions));
|
|
40
|
+
}
|
|
41
|
+
__upload(request, requestOptions) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
44
|
+
const _body = yield core.newFormData();
|
|
45
|
+
yield _body.appendFile("image", request.image);
|
|
46
|
+
if (request.alt_text != null) {
|
|
47
|
+
_body.append("alt_text", request.alt_text);
|
|
48
|
+
}
|
|
49
|
+
const _maybeEncodedRequest = yield _body.getRequest();
|
|
50
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
51
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
52
|
+
const _response = yield core.fetcher({
|
|
53
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/products/variants/${core.url.encodePathParam(request.variant)}/images`),
|
|
54
|
+
method: "POST",
|
|
55
|
+
headers: _headers,
|
|
56
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
57
|
+
requestType: "file",
|
|
58
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
59
|
+
body: _maybeEncodedRequest.body,
|
|
60
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
61
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
62
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
63
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
64
|
+
logging: this._options.logging,
|
|
65
|
+
});
|
|
66
|
+
if (_response.ok) {
|
|
67
|
+
return {
|
|
68
|
+
data: _response.body,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
if (_response.error.reason === "status-code") {
|
|
73
|
+
switch (_response.error.statusCode) {
|
|
74
|
+
case 401:
|
|
75
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
76
|
+
case 403:
|
|
77
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
78
|
+
case 404:
|
|
79
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
80
|
+
case 422:
|
|
81
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
82
|
+
default:
|
|
83
|
+
throw new errors.FiveOneEatError({
|
|
84
|
+
statusCode: _response.error.statusCode,
|
|
85
|
+
body: _response.error.body,
|
|
86
|
+
rawResponse: _response.rawResponse,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/products/variants/{variant}/images");
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @param {FiveOneEat.business.products.variants.ReorderImagesRequest} request
|
|
95
|
+
* @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
98
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
99
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
100
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* await client.business.products.variants.images.reorder({
|
|
104
|
+
* variant: "variant",
|
|
105
|
+
* body: {
|
|
106
|
+
* images: [{
|
|
107
|
+
* id: "id",
|
|
108
|
+
* sort_order: 1
|
|
109
|
+
* }]
|
|
110
|
+
* }
|
|
111
|
+
* })
|
|
112
|
+
*/
|
|
113
|
+
reorder(request, requestOptions) {
|
|
114
|
+
return core.HttpResponsePromise.fromPromise(this.__reorder(request, requestOptions));
|
|
115
|
+
}
|
|
116
|
+
__reorder(request, requestOptions) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
119
|
+
const { variant, body: _body } = request;
|
|
120
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
121
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
122
|
+
const _response = yield core.fetcher({
|
|
123
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/products/variants/${core.url.encodePathParam(variant)}/images/reorder`),
|
|
124
|
+
method: "PUT",
|
|
125
|
+
headers: _headers,
|
|
126
|
+
contentType: "application/json",
|
|
127
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
128
|
+
requestType: "json",
|
|
129
|
+
body: _body,
|
|
130
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
131
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
132
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
133
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
134
|
+
logging: this._options.logging,
|
|
135
|
+
});
|
|
136
|
+
if (_response.ok) {
|
|
137
|
+
return {
|
|
138
|
+
data: _response.body,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
if (_response.error.reason === "status-code") {
|
|
143
|
+
switch (_response.error.statusCode) {
|
|
144
|
+
case 401:
|
|
145
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
146
|
+
case 403:
|
|
147
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
148
|
+
case 404:
|
|
149
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
150
|
+
case 422:
|
|
151
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
152
|
+
default:
|
|
153
|
+
throw new errors.FiveOneEatError({
|
|
154
|
+
statusCode: _response.error.statusCode,
|
|
155
|
+
body: _response.error.body,
|
|
156
|
+
rawResponse: _response.rawResponse,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/products/variants/{variant}/images/reorder");
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @param {FiveOneEat.business.products.variants.DeleteImagesRequest} request
|
|
165
|
+
* @param {ImagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
|
+
*
|
|
167
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
168
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
169
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* await client.business.products.variants.images.delete({
|
|
173
|
+
* variant: "variant",
|
|
174
|
+
* image: "image"
|
|
175
|
+
* })
|
|
176
|
+
*/
|
|
177
|
+
delete(request, requestOptions) {
|
|
178
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
179
|
+
}
|
|
180
|
+
__delete(request, requestOptions) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
183
|
+
const { variant, image } = request;
|
|
184
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
185
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
186
|
+
const _response = yield core.fetcher({
|
|
187
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/products/variants/${core.url.encodePathParam(variant)}/images/${core.url.encodePathParam(image)}`),
|
|
188
|
+
method: "DELETE",
|
|
189
|
+
headers: _headers,
|
|
190
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
191
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
192
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
193
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
194
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
195
|
+
logging: this._options.logging,
|
|
196
|
+
});
|
|
197
|
+
if (_response.ok) {
|
|
198
|
+
return {
|
|
199
|
+
data: _response.body,
|
|
200
|
+
rawResponse: _response.rawResponse,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
if (_response.error.reason === "status-code") {
|
|
204
|
+
switch (_response.error.statusCode) {
|
|
205
|
+
case 401:
|
|
206
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
207
|
+
case 403:
|
|
208
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
209
|
+
case 404:
|
|
210
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
211
|
+
default:
|
|
212
|
+
throw new errors.FiveOneEatError({
|
|
213
|
+
statusCode: _response.error.statusCode,
|
|
214
|
+
body: _response.error.body,
|
|
215
|
+
rawResponse: _response.rawResponse,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/business/products/variants/{variant}/images/{image}");
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../../../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* variant: "variant",
|
|
6
|
+
* body: {
|
|
7
|
+
* images: [{
|
|
8
|
+
* id: "id",
|
|
9
|
+
* sort_order: 1
|
|
10
|
+
* }]
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ReorderImagesRequest {
|
|
15
|
+
/** The variant ID */
|
|
16
|
+
variant: string;
|
|
17
|
+
body: FiveOneEat.ReorderProductImagesRequest;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as core from "../../../../../../../../../../../core/index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* image: fs.createReadStream("/path/to/your/file"),
|
|
6
|
+
* variant: "variant"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface UploadImagesRequest {
|
|
10
|
+
/** The variant ID */
|
|
11
|
+
variant: string;
|
|
12
|
+
image: core.file.Uploadable;
|
|
13
|
+
alt_text?: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DeleteImagesResponse {
|
|
2
|
+
message: DeleteImagesResponse.Message;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace DeleteImagesResponse {
|
|
5
|
+
const Message: {
|
|
6
|
+
readonly ImageDeletedSuccessfully: "Image deleted successfully.";
|
|
7
|
+
};
|
|
8
|
+
type Message = (typeof Message)[keyof typeof Message];
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var DeleteImagesResponse;
|
|
3
|
+
(function (DeleteImagesResponse) {
|
|
4
|
+
DeleteImagesResponse.Message = {
|
|
5
|
+
ImageDeletedSuccessfully: "Image deleted successfully.",
|
|
6
|
+
};
|
|
7
|
+
})(DeleteImagesResponse || (DeleteImagesResponse = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ReorderImagesResponse {
|
|
2
|
+
message: ReorderImagesResponse.Message;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ReorderImagesResponse {
|
|
5
|
+
const Message: {
|
|
6
|
+
readonly ImageOrderUpdatedSuccessfully: "Image order updated successfully.";
|
|
7
|
+
};
|
|
8
|
+
type Message = (typeof Message)[keyof typeof Message];
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var ReorderImagesResponse;
|
|
3
|
+
(function (ReorderImagesResponse) {
|
|
4
|
+
ReorderImagesResponse.Message = {
|
|
5
|
+
ImageOrderUpdatedSuccessfully: "Image order updated successfully.",
|
|
6
|
+
};
|
|
7
|
+
})(ReorderImagesResponse || (ReorderImagesResponse = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as FiveOneEat from "../../../index.mjs";
|
|
5
|
+
export declare namespace BusinessMessagingClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class BusinessMessagingClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<BusinessMessagingClient.Options>;
|
|
12
|
+
constructor(options?: BusinessMessagingClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {FiveOneEat.SearchBusinessConversationsRequest} request
|
|
15
|
+
* @param {BusinessMessagingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* await client.businessMessaging.searchBusinessConversations({
|
|
22
|
+
* q: "john"
|
|
23
|
+
* })
|
|
24
|
+
*/
|
|
25
|
+
searchBusinessConversations(request: FiveOneEat.SearchBusinessConversationsRequest, requestOptions?: BusinessMessagingClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.SearchBusinessConversationsResponse>;
|
|
26
|
+
private __searchBusinessConversations;
|
|
27
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
+
import * as FiveOneEat from "../../../index.mjs";
|
|
18
|
+
export class BusinessMessagingClient {
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param {FiveOneEat.SearchBusinessConversationsRequest} request
|
|
24
|
+
* @param {BusinessMessagingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
27
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* await client.businessMessaging.searchBusinessConversations({
|
|
31
|
+
* q: "john"
|
|
32
|
+
* })
|
|
33
|
+
*/
|
|
34
|
+
searchBusinessConversations(request, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__searchBusinessConversations(request, requestOptions));
|
|
36
|
+
}
|
|
37
|
+
__searchBusinessConversations(request, requestOptions) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
40
|
+
const { q, page, per_page: perPage } = request;
|
|
41
|
+
const _queryParams = {
|
|
42
|
+
q,
|
|
43
|
+
page,
|
|
44
|
+
per_page: perPage,
|
|
45
|
+
};
|
|
46
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
47
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
48
|
+
const _response = yield core.fetcher({
|
|
49
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/messaging/conversations/search"),
|
|
50
|
+
method: "GET",
|
|
51
|
+
headers: _headers,
|
|
52
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
53
|
+
queryString: core.url
|
|
54
|
+
.queryBuilder()
|
|
55
|
+
.addMany(_queryParams)
|
|
56
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
57
|
+
.build(),
|
|
58
|
+
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,
|
|
59
|
+
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,
|
|
60
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
61
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
62
|
+
logging: this._options.logging,
|
|
63
|
+
});
|
|
64
|
+
if (_response.ok) {
|
|
65
|
+
return {
|
|
66
|
+
data: _response.body,
|
|
67
|
+
rawResponse: _response.rawResponse,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
if (_response.error.reason === "status-code") {
|
|
71
|
+
switch (_response.error.statusCode) {
|
|
72
|
+
case 401:
|
|
73
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
74
|
+
case 422:
|
|
75
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
76
|
+
default:
|
|
77
|
+
throw new errors.FiveOneEatError({
|
|
78
|
+
statusCode: _response.error.statusCode,
|
|
79
|
+
body: _response.error.body,
|
|
80
|
+
rawResponse: _response.rawResponse,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/messaging/conversations/search");
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* q: "john"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface SearchBusinessConversationsRequest {
|
|
8
|
+
/** Customer name to search for */
|
|
9
|
+
q: string;
|
|
10
|
+
/** Page number for pagination */
|
|
11
|
+
page?: number;
|
|
12
|
+
/** Number of conversations per page */
|
|
13
|
+
per_page?: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SearchBusinessConversationsRequest } from "./SearchBusinessConversationsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SearchBusinessConversationsResponse.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SearchBusinessConversationsResponse.mjs";
|
|
@@ -22,7 +22,6 @@ export declare namespace CustomerClient {
|
|
|
22
22
|
export declare class CustomerClient {
|
|
23
23
|
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerClient.Options>;
|
|
24
24
|
protected _auth: AuthClient | undefined;
|
|
25
|
-
protected _businesses: BusinessesClient | undefined;
|
|
26
25
|
protected _cart: CartClient | undefined;
|
|
27
26
|
protected _explore: ExploreClient | undefined;
|
|
28
27
|
protected _discovery: DiscoveryClient | undefined;
|
|
@@ -32,10 +31,10 @@ export declare class CustomerClient {
|
|
|
32
31
|
protected _me: MeClient | undefined;
|
|
33
32
|
protected _productOrders: ProductOrdersClient | undefined;
|
|
34
33
|
protected _pushNotifications: PushNotificationsClient | undefined;
|
|
34
|
+
protected _businesses: BusinessesClient | undefined;
|
|
35
35
|
protected _shop: ShopClient | undefined;
|
|
36
36
|
constructor(options?: CustomerClient.Options);
|
|
37
37
|
get auth(): AuthClient;
|
|
38
|
-
get businesses(): BusinessesClient;
|
|
39
38
|
get cart(): CartClient;
|
|
40
39
|
get explore(): ExploreClient;
|
|
41
40
|
get discovery(): DiscoveryClient;
|
|
@@ -45,6 +44,7 @@ export declare class CustomerClient {
|
|
|
45
44
|
get me(): MeClient;
|
|
46
45
|
get productOrders(): ProductOrdersClient;
|
|
47
46
|
get pushNotifications(): PushNotificationsClient;
|
|
47
|
+
get businesses(): BusinessesClient;
|
|
48
48
|
get shop(): ShopClient;
|
|
49
49
|
/**
|
|
50
50
|
* Returns grouped results for each type. Use per_type to control how many results
|
|
@@ -36,10 +36,6 @@ export class CustomerClient {
|
|
|
36
36
|
var _a;
|
|
37
37
|
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new AuthClient(this._options)));
|
|
38
38
|
}
|
|
39
|
-
get businesses() {
|
|
40
|
-
var _a;
|
|
41
|
-
return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new BusinessesClient(this._options)));
|
|
42
|
-
}
|
|
43
39
|
get cart() {
|
|
44
40
|
var _a;
|
|
45
41
|
return ((_a = this._cart) !== null && _a !== void 0 ? _a : (this._cart = new CartClient(this._options)));
|
|
@@ -76,6 +72,10 @@ export class CustomerClient {
|
|
|
76
72
|
var _a;
|
|
77
73
|
return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new PushNotificationsClient(this._options)));
|
|
78
74
|
}
|
|
75
|
+
get businesses() {
|
|
76
|
+
var _a;
|
|
77
|
+
return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new BusinessesClient(this._options)));
|
|
78
|
+
}
|
|
79
79
|
get shop() {
|
|
80
80
|
var _a;
|
|
81
81
|
return ((_a = this._shop) !== null && _a !== void 0 ? _a : (this._shop = new ShopClient(this._options)));
|