@51eat/sdk 0.0.42 → 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 +11 -9
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +18 -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/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/GetBulletinCommentRepliesRequest.d.ts +20 -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/{customer/resources/businesses/types/index.js → customerBusinesses/exports.js} +5 -5
- 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/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 +6 -0
- package/dist/cjs/api/resources/index.js +7 -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/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 +2 -0
- package/dist/cjs/api/types/index.js +2 -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 +6 -0
- package/dist/esm/Client.mjs +10 -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/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/GetBulletinCommentRepliesRequest.d.mts +20 -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/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 +6 -0
- package/dist/esm/api/resources/index.mjs +6 -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/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 +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +56 -12
- package/reference.md +3038 -1762
- 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 → bulletins/resources/comments/client/requests/CreateCommentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/resources/{events/types/RsvpEventsResponse.js → bulletins/resources/comments/client/requests/ReplyCommentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.js → resources/events/client/requests/RsvpEventsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{businesses/types/ListTemporaryLocationsBusinessesResponse.js → cart/client/requests/ClearCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{businesses/types/MenusBusinessesResponse.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/businesses/types/PhotosBusinessesResponse.js → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/types/ProfileBusinessesResponse.js → customerBusinesses/client/requests/BusinessesEventShowRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/GetProductShopResponse.js → customerBusinesses/client/requests/DestroyEventRsvpRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.js → customerBusinesses/client/requests/FavoritesBusinessRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/ListProductsShopResponse.js → customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.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 → bulletins/resources/comments/client/requests/CreateCommentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/resources/{events/types/RsvpEventsResponse.mjs → bulletins/resources/comments/client/requests/ReplyCommentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.mjs → resources/events/client/requests/RsvpEventsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{businesses/types/ListTemporaryLocationsBusinessesResponse.mjs → cart/client/requests/ClearCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{businesses/types/MenusBusinessesResponse.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/businesses/types/PhotosBusinessesResponse.mjs → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/types/ProfileBusinessesResponse.mjs → customerBusinesses/client/requests/BusinessesEventShowRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/GetProductShopResponse.mjs → customerBusinesses/client/requests/DestroyEventRsvpRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.mjs → customerBusinesses/client/requests/FavoritesBusinessRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/ListProductsShopResponse.mjs → customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.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
|
@@ -50,7 +50,6 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
50
50
|
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
51
|
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
52
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
-
const FiveOneEat = __importStar(require("../../../../../index.js"));
|
|
54
53
|
class ShopClient {
|
|
55
54
|
constructor(options = {}) {
|
|
56
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -59,11 +58,9 @@ class ShopClient {
|
|
|
59
58
|
* @param {FiveOneEat.customer.ListProductsShopRequest} request
|
|
60
59
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
60
|
*
|
|
62
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
63
|
-
*
|
|
64
61
|
* @example
|
|
65
62
|
* await client.customer.shop.listProducts({
|
|
66
|
-
*
|
|
63
|
+
* business: "business"
|
|
67
64
|
* })
|
|
68
65
|
*/
|
|
69
66
|
listProducts(request, requestOptions) {
|
|
@@ -72,23 +69,14 @@ class ShopClient {
|
|
|
72
69
|
__listProducts(request, requestOptions) {
|
|
73
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
71
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
75
|
-
const {
|
|
76
|
-
const _queryParams = {
|
|
77
|
-
category_id: categoryId,
|
|
78
|
-
featured,
|
|
79
|
-
};
|
|
72
|
+
const { business } = request;
|
|
80
73
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
81
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);
|
|
82
75
|
const _response = yield core.fetcher({
|
|
83
|
-
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)}/shop`),
|
|
84
77
|
method: "GET",
|
|
85
78
|
headers: _headers,
|
|
86
|
-
queryParameters:
|
|
87
|
-
queryString: core.url
|
|
88
|
-
.queryBuilder()
|
|
89
|
-
.addMany(_queryParams)
|
|
90
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
91
|
-
.build(),
|
|
79
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
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,
|
|
93
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,
|
|
94
82
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -96,35 +84,25 @@ class ShopClient {
|
|
|
96
84
|
logging: this._options.logging,
|
|
97
85
|
});
|
|
98
86
|
if (_response.ok) {
|
|
99
|
-
return {
|
|
100
|
-
data: _response.body,
|
|
101
|
-
rawResponse: _response.rawResponse,
|
|
102
|
-
};
|
|
87
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
103
88
|
}
|
|
104
89
|
if (_response.error.reason === "status-code") {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
statusCode: _response.error.statusCode,
|
|
111
|
-
body: _response.error.body,
|
|
112
|
-
rawResponse: _response.rawResponse,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
90
|
+
throw new errors.FiveOneEatError({
|
|
91
|
+
statusCode: _response.error.statusCode,
|
|
92
|
+
body: _response.error.body,
|
|
93
|
+
rawResponse: _response.rawResponse,
|
|
94
|
+
});
|
|
115
95
|
}
|
|
116
|
-
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}/shop");
|
|
117
97
|
});
|
|
118
98
|
}
|
|
119
99
|
/**
|
|
120
100
|
* @param {FiveOneEat.customer.GetProductShopRequest} request
|
|
121
101
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
102
|
*
|
|
123
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
124
|
-
*
|
|
125
103
|
* @example
|
|
126
104
|
* await client.customer.shop.getProduct({
|
|
127
|
-
*
|
|
105
|
+
* business: "business",
|
|
128
106
|
* product: "product"
|
|
129
107
|
* })
|
|
130
108
|
*/
|
|
@@ -134,11 +112,11 @@ class ShopClient {
|
|
|
134
112
|
__getProduct(request, requestOptions) {
|
|
135
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
114
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
137
|
-
const {
|
|
115
|
+
const { business, product } = request;
|
|
138
116
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
139
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);
|
|
140
118
|
const _response = yield core.fetcher({
|
|
141
|
-
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)}/shop/products/${core.url.encodePathParam(product)}`),
|
|
142
120
|
method: "GET",
|
|
143
121
|
headers: _headers,
|
|
144
122
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -149,35 +127,25 @@ class ShopClient {
|
|
|
149
127
|
logging: this._options.logging,
|
|
150
128
|
});
|
|
151
129
|
if (_response.ok) {
|
|
152
|
-
return {
|
|
153
|
-
data: _response.body,
|
|
154
|
-
rawResponse: _response.rawResponse,
|
|
155
|
-
};
|
|
130
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
156
131
|
}
|
|
157
132
|
if (_response.error.reason === "status-code") {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
statusCode: _response.error.statusCode,
|
|
164
|
-
body: _response.error.body,
|
|
165
|
-
rawResponse: _response.rawResponse,
|
|
166
|
-
});
|
|
167
|
-
}
|
|
133
|
+
throw new errors.FiveOneEatError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.body,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
168
138
|
}
|
|
169
|
-
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}/shop/products/{product}");
|
|
170
140
|
});
|
|
171
141
|
}
|
|
172
142
|
/**
|
|
173
143
|
* @param {FiveOneEat.customer.ListCategoriesShopRequest} request
|
|
174
144
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
175
145
|
*
|
|
176
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
177
|
-
*
|
|
178
146
|
* @example
|
|
179
147
|
* await client.customer.shop.listCategories({
|
|
180
|
-
*
|
|
148
|
+
* business: "business"
|
|
181
149
|
* })
|
|
182
150
|
*/
|
|
183
151
|
listCategories(request, requestOptions) {
|
|
@@ -186,11 +154,11 @@ class ShopClient {
|
|
|
186
154
|
__listCategories(request, requestOptions) {
|
|
187
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
156
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
189
|
-
const {
|
|
157
|
+
const { business } = request;
|
|
190
158
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
191
159
|
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);
|
|
192
160
|
const _response = yield core.fetcher({
|
|
193
|
-
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(
|
|
161
|
+
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)}/shop/categories`),
|
|
194
162
|
method: "GET",
|
|
195
163
|
headers: _headers,
|
|
196
164
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -201,24 +169,16 @@ class ShopClient {
|
|
|
201
169
|
logging: this._options.logging,
|
|
202
170
|
});
|
|
203
171
|
if (_response.ok) {
|
|
204
|
-
return {
|
|
205
|
-
data: _response.body,
|
|
206
|
-
rawResponse: _response.rawResponse,
|
|
207
|
-
};
|
|
172
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
208
173
|
}
|
|
209
174
|
if (_response.error.reason === "status-code") {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
statusCode: _response.error.statusCode,
|
|
216
|
-
body: _response.error.body,
|
|
217
|
-
rawResponse: _response.rawResponse,
|
|
218
|
-
});
|
|
219
|
-
}
|
|
175
|
+
throw new errors.FiveOneEatError({
|
|
176
|
+
statusCode: _response.error.statusCode,
|
|
177
|
+
body: _response.error.body,
|
|
178
|
+
rawResponse: _response.rawResponse,
|
|
179
|
+
});
|
|
220
180
|
}
|
|
221
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{
|
|
181
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/shop/categories");
|
|
222
182
|
});
|
|
223
183
|
}
|
|
224
184
|
}
|
package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "business",
|
|
5
5
|
* product: "product"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface GetProductShopRequest {
|
|
9
|
-
|
|
10
|
-
handle: string;
|
|
11
|
-
/** The product ID */
|
|
9
|
+
business: string;
|
|
12
10
|
product: string;
|
|
13
11
|
}
|
package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "business"
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface ListProductsShopRequest {
|
|
8
|
-
|
|
9
|
-
handle: string;
|
|
10
|
-
/** Filter by product category ID */
|
|
11
|
-
category_id?: string;
|
|
12
|
-
/** Return only featured products */
|
|
13
|
-
featured?: boolean;
|
|
8
|
+
business: string;
|
|
14
9
|
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as FiveOneEat from "../../../index.js";
|
|
5
|
+
export declare namespace CustomerBusinessesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class CustomerBusinessesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerBusinessesClient.Options>;
|
|
12
|
+
constructor(options?: CustomerBusinessesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve core business information for the profile page.
|
|
15
|
+
*
|
|
16
|
+
* @param {FiveOneEat.ProfileShowRequest} request
|
|
17
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.customerBusinesses.profileShow({
|
|
23
|
+
* handle: "katzs-deli"
|
|
24
|
+
* })
|
|
25
|
+
*/
|
|
26
|
+
profileShow(request: FiveOneEat.ProfileShowRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.ProfileShowResponse>;
|
|
27
|
+
private __profileShow;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve all menus organized by groups for the business.
|
|
30
|
+
*
|
|
31
|
+
* @param {FiveOneEat.GetBusinessMenusRequest} request
|
|
32
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
35
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.customerBusinesses.getBusinessMenus({
|
|
39
|
+
* handle: "katzs-deli"
|
|
40
|
+
* })
|
|
41
|
+
*/
|
|
42
|
+
getBusinessMenus(request: FiveOneEat.GetBusinessMenusRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBusinessMenusResponse>;
|
|
43
|
+
private __getBusinessMenus;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve photo gallery for the business with pagination.
|
|
46
|
+
*
|
|
47
|
+
* @param {FiveOneEat.GetBusinessPhotosRequest} request
|
|
48
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
51
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await client.customerBusinesses.getBusinessPhotos({
|
|
55
|
+
* handle: "katzs-deli"
|
|
56
|
+
* })
|
|
57
|
+
*/
|
|
58
|
+
getBusinessPhotos(request: FiveOneEat.GetBusinessPhotosRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBusinessPhotosResponse>;
|
|
59
|
+
private __getBusinessPhotos;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieve business announcements and updates with pagination.
|
|
62
|
+
*
|
|
63
|
+
* @param {FiveOneEat.GetBusinessBulletinsRequest} request
|
|
64
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
67
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.customerBusinesses.getBusinessBulletins({
|
|
71
|
+
* handle: "katzs-deli"
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
getBusinessBulletins(request: FiveOneEat.GetBusinessBulletinsRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBusinessBulletinsResponse>;
|
|
75
|
+
private __getBusinessBulletins;
|
|
76
|
+
/**
|
|
77
|
+
* Retrieve paginated comments for a published business bulletin.
|
|
78
|
+
*
|
|
79
|
+
* @param {FiveOneEat.GetBulletinCommentsRequest} request
|
|
80
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
83
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
84
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.customerBusinesses.getBulletinComments({
|
|
88
|
+
* handle: "katzs-deli",
|
|
89
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
getBulletinComments(request: FiveOneEat.GetBulletinCommentsRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBulletinCommentsResponse>;
|
|
93
|
+
private __getBulletinComments;
|
|
94
|
+
/**
|
|
95
|
+
* Post a comment on a business bulletin. Requires authentication.
|
|
96
|
+
*
|
|
97
|
+
* @param {FiveOneEat.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
|
|
98
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
101
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
102
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.customerBusinesses.createBulletinComment({
|
|
106
|
+
* handle: "katzs-deli",
|
|
107
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
108
|
+
* body: "body"
|
|
109
|
+
* })
|
|
110
|
+
*/
|
|
111
|
+
createBulletinComment(request: FiveOneEat.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CreateBulletinCommentResponse>;
|
|
112
|
+
private __createBulletinComment;
|
|
113
|
+
/**
|
|
114
|
+
* Retrieve paginated replies for a top-level comment on a published bulletin.
|
|
115
|
+
*
|
|
116
|
+
* @param {FiveOneEat.GetBulletinCommentRepliesRequest} request
|
|
117
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
120
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
121
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* await client.customerBusinesses.getBulletinCommentReplies({
|
|
125
|
+
* handle: "katzs-deli",
|
|
126
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
127
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789"
|
|
128
|
+
* })
|
|
129
|
+
*/
|
|
130
|
+
getBulletinCommentReplies(request: FiveOneEat.GetBulletinCommentRepliesRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBulletinCommentRepliesResponse>;
|
|
131
|
+
private __getBulletinCommentReplies;
|
|
132
|
+
/**
|
|
133
|
+
* Post a reply to a top-level comment on a published bulletin. Requires authentication.
|
|
134
|
+
*
|
|
135
|
+
* @param {FiveOneEat.StoreBulletinCommentReplyRequest} request
|
|
136
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
139
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
140
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* await client.customerBusinesses.replyToBulletinComment({
|
|
144
|
+
* handle: "katzs-deli",
|
|
145
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
146
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789",
|
|
147
|
+
* body: "body"
|
|
148
|
+
* })
|
|
149
|
+
*/
|
|
150
|
+
replyToBulletinComment(request: FiveOneEat.StoreBulletinCommentReplyRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.ReplyToBulletinCommentResponse>;
|
|
151
|
+
private __replyToBulletinComment;
|
|
152
|
+
/**
|
|
153
|
+
* Add a business to the authenticated user's favorites.
|
|
154
|
+
*
|
|
155
|
+
* @param {FiveOneEat.FavoritesBusinessRequest} request
|
|
156
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
159
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
160
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* await client.customerBusinesses.favoritesBusiness({
|
|
164
|
+
* handle: "katzs-deli"
|
|
165
|
+
* })
|
|
166
|
+
*/
|
|
167
|
+
favoritesBusiness(request: FiveOneEat.FavoritesBusinessRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.FavoritesBusinessResponse>;
|
|
168
|
+
private __favoritesBusiness;
|
|
169
|
+
/**
|
|
170
|
+
* Remove a business from the authenticated user's favorites.
|
|
171
|
+
*
|
|
172
|
+
* @param {FiveOneEat.UnfavoritesBusinessRequest} request
|
|
173
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.customerBusinesses.unfavoritesBusiness({
|
|
179
|
+
* handle: "katzs-deli"
|
|
180
|
+
* })
|
|
181
|
+
*/
|
|
182
|
+
unfavoritesBusiness(request: FiveOneEat.UnfavoritesBusinessRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
183
|
+
private __unfavoritesBusiness;
|
|
184
|
+
/**
|
|
185
|
+
* Retrieve upcoming events for the business with pagination.
|
|
186
|
+
*
|
|
187
|
+
* @param {FiveOneEat.GetBusinessEventsRequest} request
|
|
188
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
189
|
+
*
|
|
190
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
191
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* await client.customerBusinesses.getBusinessEvents({
|
|
195
|
+
* handle: "katzs-deli"
|
|
196
|
+
* })
|
|
197
|
+
*/
|
|
198
|
+
getBusinessEvents(request: FiveOneEat.GetBusinessEventsRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBusinessEventsResponse>;
|
|
199
|
+
private __getBusinessEvents;
|
|
200
|
+
/**
|
|
201
|
+
* Retrieve full details for a single upcoming event belonging to the business.
|
|
202
|
+
*
|
|
203
|
+
* @param {FiveOneEat.BusinessesEventShowRequest} request
|
|
204
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
|
+
*
|
|
206
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* await client.customerBusinesses.businessesEventShow({
|
|
210
|
+
* handle: "katzs-deli",
|
|
211
|
+
* event: "event"
|
|
212
|
+
* })
|
|
213
|
+
*/
|
|
214
|
+
businessesEventShow(request: FiveOneEat.BusinessesEventShowRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.BusinessesEventShowResponse>;
|
|
215
|
+
private __businessesEventShow;
|
|
216
|
+
/**
|
|
217
|
+
* Create or update the authenticated user's RSVP for a business event.
|
|
218
|
+
*
|
|
219
|
+
* @param {FiveOneEat.StoreEventRsvpRequest} request
|
|
220
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
|
+
*
|
|
222
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
223
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
224
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* await client.customerBusinesses.storeEventRsvp({
|
|
228
|
+
* handle: "katzs-deli",
|
|
229
|
+
* event: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
230
|
+
* status: "attending"
|
|
231
|
+
* })
|
|
232
|
+
*/
|
|
233
|
+
storeEventRsvp(request: FiveOneEat.StoreEventRsvpRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.StoreEventRsvpResponse>;
|
|
234
|
+
private __storeEventRsvp;
|
|
235
|
+
/**
|
|
236
|
+
* Cancel the authenticated user's RSVP for a business event.
|
|
237
|
+
*
|
|
238
|
+
* @param {FiveOneEat.DestroyEventRsvpRequest} request
|
|
239
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
240
|
+
*
|
|
241
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
242
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* await client.customerBusinesses.destroyEventRsvp({
|
|
246
|
+
* handle: "katzs-deli",
|
|
247
|
+
* event: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
248
|
+
* })
|
|
249
|
+
*/
|
|
250
|
+
destroyEventRsvp(request: FiveOneEat.DestroyEventRsvpRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<number>;
|
|
251
|
+
private __destroyEventRsvp;
|
|
252
|
+
/**
|
|
253
|
+
* Retrieve active and upcoming temporary locations for a business.
|
|
254
|
+
*
|
|
255
|
+
* @param {FiveOneEat.GetBusinessTemporaryLocationsRequest} request
|
|
256
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
|
+
*
|
|
258
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* await client.customerBusinesses.getBusinessTemporaryLocations({
|
|
262
|
+
* handle: "katzs-deli"
|
|
263
|
+
* })
|
|
264
|
+
*/
|
|
265
|
+
getBusinessTemporaryLocations(request: FiveOneEat.GetBusinessTemporaryLocationsRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBusinessTemporaryLocationsResponse>;
|
|
266
|
+
private __getBusinessTemporaryLocations;
|
|
267
|
+
}
|