@51eat/sdk 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +12 -0
- package/dist/cjs/Client.js +28 -8
- package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +7 -2
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +259 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/types → business/resources/products/resources/images/client}/index.js +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +2 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types → business/resources/products/resources/images}/index.js +2 -3
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → business/resources/products/resources/images}/types/index.js +3 -4
- package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/index.js +4 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +5 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/exports.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/index.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +259 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +42 -0
- package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +27 -0
- package/dist/cjs/api/resources/businessMessaging/client/Client.js +124 -0
- package/dist/cjs/api/resources/businessMessaging/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/client/index.js +17 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/businessMessaging/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{customer/resources/businesses/types/index.js → businessMessaging/exports.js} +5 -5
- package/dist/cjs/api/resources/businessMessaging/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessMessaging/index.js +18 -0
- package/dist/cjs/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessMessaging/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/types/index.js +17 -0
- package/dist/cjs/api/resources/customer/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/client/Client.js +4 -4
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +13 -41
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +62 -162
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/businesses/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +3 -8
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +11 -36
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +17 -43
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +50 -160
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +3 -9
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +4 -11
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +12 -33
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +44 -126
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.ts +3 -5
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.ts +2 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/index.js +0 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +43 -35
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +105 -92
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/customer/resources/index.js +0 -2
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +7 -13
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +31 -71
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -4
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -3
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/shop/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/shop/index.js +0 -1
- package/dist/cjs/api/resources/customerBusinesses/client/Client.d.ts +267 -0
- package/dist/cjs/api/resources/customerBusinesses/client/Client.js +982 -0
- package/dist/cjs/api/resources/customerBusinesses/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerBusinesses/client/index.js +17 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.ts +20 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.ts +17 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/ProfileShowRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/index.d.ts +15 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/customerBusinesses/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerBusinesses/exports.js +21 -0
- package/dist/cjs/api/resources/customerBusinesses/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerBusinesses/index.js +18 -0
- package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/BusinessesEventShowResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.ts +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/FavoritesBusinessResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessEventsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessMenusResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ProfileShowResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerBusinesses/types/StoreEventRsvpResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/customerBusinesses/types/index.js +29 -0
- package/dist/cjs/api/resources/customerMessaging/client/Client.d.ts +27 -0
- package/dist/cjs/api/resources/customerMessaging/client/Client.js +124 -0
- package/dist/cjs/api/resources/customerMessaging/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerMessaging/client/index.js +17 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.js +3 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerMessaging/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerMessaging/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerMessaging/exports.js +21 -0
- package/dist/cjs/api/resources/customerMessaging/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerMessaging/index.js +18 -0
- package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.js +3 -0
- package/dist/cjs/api/resources/customerMessaging/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerMessaging/types/index.js +17 -0
- package/dist/cjs/api/resources/customerShop/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/customerShop/client/Client.js +219 -0
- package/dist/cjs/api/resources/customerShop/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerShop/client/index.js +17 -0
- package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customerShop/client/requests/GetShopProductRequest.js +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopCategoriesRequest.js +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerShop/client/requests/ListShopProductsRequest.js +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/customerShop/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerShop/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerShop/exports.js +21 -0
- package/dist/cjs/api/resources/customerShop/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerShop/index.js +18 -0
- package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerShop/types/GetShopProductResponse.js +3 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopCategoriesResponse.js +3 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerShop/types/ListShopProductsResponse.js +3 -0
- package/dist/cjs/api/resources/customerShop/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/{customer/resources/shop → customerShop}/types/index.js +3 -3
- package/dist/cjs/api/resources/index.d.ts +12 -0
- package/dist/cjs/api/resources/index.js +13 -1
- package/dist/cjs/api/types/BusinessProduct.d.ts +1 -1
- package/dist/cjs/api/types/BusinessProductVariant.d.ts +2 -0
- package/dist/cjs/api/types/ExploreEvent.d.ts +21 -0
- package/dist/cjs/api/types/ExploreEvent.js +3 -0
- package/dist/cjs/api/types/ExploreResponse.d.ts +1 -0
- package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +12 -0
- package/dist/cjs/api/types/ReorderProductImagesRequest.js +3 -0
- package/dist/cjs/api/types/StoreProductImageRequest.d.ts +4 -0
- package/dist/cjs/api/types/StoreProductImageRequest.js +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +12 -0
- package/dist/esm/Client.mjs +20 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +222 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/exports.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/exports.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +222 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +18 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
- package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +27 -0
- package/dist/esm/api/resources/businessMessaging/client/Client.mjs +87 -0
- package/dist/esm/api/resources/businessMessaging/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.mts +14 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/businessMessaging/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessMessaging/exports.mjs +3 -0
- package/dist/esm/api/resources/businessMessaging/index.d.mts +2 -0
- package/dist/esm/api/resources/businessMessaging/index.mjs +2 -0
- package/dist/esm/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessMessaging/types/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/client/Client.mjs +4 -4
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +13 -41
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +62 -162
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/FavoriteBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/ListTemporaryLocationsBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/MenusBusinessesRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/PhotosBusinessesRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/ProfileBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/UnfavoriteBusinessesRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/businesses/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +3 -8
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +11 -36
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/requests/ListBulletinsRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +17 -43
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +50 -160
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.d.mts +11 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +3 -9
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +4 -11
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +12 -33
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +44 -126
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/CancelRsvpEventsRequest.d.mts +3 -5
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/GetEventsRequest.d.mts +2 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/ListEventsRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/RsvpEventsRequest.d.mts +11 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/index.mjs +0 -2
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +43 -35
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +105 -92
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/customer/resources/index.mjs +0 -2
- package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +7 -13
- package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +31 -71
- package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -4
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -3
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/shop/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/shop/index.mjs +0 -1
- package/dist/esm/api/resources/customerBusinesses/client/Client.d.mts +267 -0
- package/dist/esm/api/resources/customerBusinesses/client/Client.mjs +945 -0
- package/dist/esm/api/resources/customerBusinesses/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerBusinesses/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/BusinessesEventShowRequest.d.mts +13 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/DestroyEventRsvpRequest.d.mts +13 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/FavoritesBusinessRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.d.mts +20 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentRepliesRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.d.mts +17 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBulletinCommentsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessBulletinsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessMenusRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPhotosRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessTemporaryLocationsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/ProfileShowRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/StoreBulletinCommentReplyRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/UnfavoritesBusinessRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/index.d.mts +15 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerBusinesses/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerBusinesses/exports.mjs +3 -0
- package/dist/esm/api/resources/customerBusinesses/index.d.mts +2 -0
- package/dist/esm/api/resources/customerBusinesses/index.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/BusinessesEventShowResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/CreateBulletinCommentResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.d.mts +3 -0
- package/dist/esm/api/resources/customerBusinesses/types/FavoritesBusinessResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentRepliesResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBulletinCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessBulletinsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessMenusResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPhotosResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessTemporaryLocationsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/ProfileShowResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/ReplyToBulletinCommentResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerBusinesses/types/StoreEventRsvpResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/index.d.mts +13 -0
- package/dist/esm/api/resources/customerBusinesses/types/index.mjs +13 -0
- package/dist/esm/api/resources/customerMessaging/client/Client.d.mts +27 -0
- package/dist/esm/api/resources/customerMessaging/client/Client.mjs +87 -0
- package/dist/esm/api/resources/customerMessaging/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerMessaging/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/SearchCustomerConversationsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customerMessaging/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerMessaging/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerMessaging/exports.mjs +3 -0
- package/dist/esm/api/resources/customerMessaging/index.d.mts +2 -0
- package/dist/esm/api/resources/customerMessaging/index.mjs +2 -0
- package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerMessaging/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customerMessaging/types/index.mjs +1 -0
- package/dist/esm/api/resources/customerShop/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/customerShop/client/Client.mjs +182 -0
- package/dist/esm/api/resources/customerShop/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerShop/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.d.mts +13 -0
- package/dist/esm/api/resources/customerShop/client/requests/GetShopProductRequest.mjs +2 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopCategoriesRequest.mjs +2 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerShop/client/requests/ListShopProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerShop/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/customerShop/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerShop/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerShop/exports.mjs +3 -0
- package/dist/esm/api/resources/customerShop/index.d.mts +2 -0
- package/dist/esm/api/resources/customerShop/index.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerShop/types/GetShopProductResponse.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerShop/types/ListShopCategoriesResponse.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerShop/types/ListShopProductsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerShop/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customerShop/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +12 -0
- package/dist/esm/api/resources/index.mjs +12 -0
- package/dist/esm/api/types/BusinessProduct.d.mts +1 -1
- package/dist/esm/api/types/BusinessProductVariant.d.mts +2 -0
- package/dist/esm/api/types/ExploreEvent.d.mts +21 -0
- package/dist/esm/api/types/ExploreEvent.mjs +2 -0
- package/dist/esm/api/types/ExploreResponse.d.mts +1 -0
- package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +12 -0
- package/dist/esm/api/types/ReorderProductImagesRequest.mjs +2 -0
- package/dist/esm/api/types/StoreProductImageRequest.d.mts +4 -0
- package/dist/esm/api/types/StoreProductImageRequest.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +78 -12
- package/reference.md +3236 -1856
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/events/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.ts +0 -3
- package/dist/cjs/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/businesses/types/index.d.ts +0 -5
- package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/shop/types/index.d.ts +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.mjs +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/types/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/GetEventsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/ListEventsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/RsvpEventsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.d.mts +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/resources/events/types/index.mjs +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/types/FavoriteBusinessesResponse.d.mts +0 -3
- package/dist/esm/api/resources/customer/resources/businesses/types/ListTemporaryLocationsBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/MenusBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/PhotosBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/ProfileBusinessesResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/businesses/types/index.d.mts +0 -5
- package/dist/esm/api/resources/customer/resources/businesses/types/index.mjs +0 -5
- package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/shop/types/index.d.mts +0 -3
- package/dist/esm/api/resources/customer/resources/shop/types/index.mjs +0 -3
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js → business/resources/products/resources/images/client/requests/DeleteImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.js → business/resources/products/resources/images/client/requests/ReorderImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.js → business/resources/products/resources/images/client/requests/UploadImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.js → business/resources/products/resources/images/types/UploadImagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.js → business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/GetEventsResponse.js → business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/ListEventsResponse.js → businessMessaging/client/requests/SearchBusinessConversationsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events/types/RsvpEventsResponse.js → businessMessaging/types/SearchBusinessConversationsResponse.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.js → resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/{types/ListTemporaryLocationsBusinessesResponse.js → resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/businesses/{types/MenusBusinessesResponse.js → resources/events/client/requests/RsvpEventsRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{businesses/types/PhotosBusinessesResponse.js → cart/client/requests/ClearCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{businesses/types/ProfileBusinessesResponse.js → cart/client/requests/GetCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/GetProductShopResponse.js → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.js → customerBusinesses/client/requests/BusinessesEventShowRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/shop/types/ListProductsShopResponse.js → customerBusinesses/client/requests/DestroyEventRsvpRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.js +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs → business/resources/products/resources/images/client/requests/DeleteImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.mjs → business/resources/products/resources/images/client/requests/ReorderImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/CreateCommentsResponse.mjs → business/resources/products/resources/images/client/requests/UploadImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListCommentsResponse.mjs → business/resources/products/resources/images/types/UploadImagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/types/ListBulletinsResponse.mjs → business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/GetEventsResponse.mjs → business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/ListEventsResponse.mjs → businessMessaging/client/requests/SearchBusinessConversationsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events/types/RsvpEventsResponse.mjs → businessMessaging/types/SearchBusinessConversationsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/{types/FavoriteBusinessesResponse.mjs → resources/bulletins/resources/comments/client/requests/CreateCommentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/{types/ListTemporaryLocationsBusinessesResponse.mjs → resources/bulletins/resources/comments/client/requests/ReplyCommentsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/businesses/{types/MenusBusinessesResponse.mjs → resources/events/client/requests/RsvpEventsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{businesses/types/PhotosBusinessesResponse.mjs → cart/client/requests/ClearCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{businesses/types/ProfileBusinessesResponse.mjs → cart/client/requests/GetCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/GetProductShopResponse.mjs → customerBusinesses/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/ListCategoriesShopResponse.mjs → customerBusinesses/client/requests/BusinessesEventShowRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/shop/types/ListProductsShopResponse.mjs → customerBusinesses/client/requests/DestroyEventRsvpRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments → customerBusinesses}/client/requests/StoreBulletinCommentReplyRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/events → customerBusinesses}/client/requests/StoreEventRsvpRequest.mjs +0 -0
package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
4
|
-
import * as FiveOneEat from "../../../../../../../index.mjs";
|
|
4
|
+
import type * as FiveOneEat from "../../../../../../../index.mjs";
|
|
5
5
|
import { CommentsClient } from "../resources/comments/client/Client.mjs";
|
|
6
6
|
export declare namespace BulletinsClient {
|
|
7
7
|
type Options = BaseClientOptions;
|
|
@@ -14,19 +14,14 @@ export declare class BulletinsClient {
|
|
|
14
14
|
constructor(options?: BulletinsClient.Options);
|
|
15
15
|
get comments(): CommentsClient;
|
|
16
16
|
/**
|
|
17
|
-
* Retrieve business announcements and updates with pagination.
|
|
18
|
-
*
|
|
19
17
|
* @param {FiveOneEat.customer.businesses.ListBulletinsRequest} request
|
|
20
18
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
19
|
*
|
|
22
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
23
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
24
|
-
*
|
|
25
20
|
* @example
|
|
26
21
|
* await client.customer.businesses.bulletins.list({
|
|
27
|
-
*
|
|
22
|
+
* business: "business"
|
|
28
23
|
* })
|
|
29
24
|
*/
|
|
30
|
-
list(request: FiveOneEat.customer.businesses.ListBulletinsRequest, requestOptions?: BulletinsClient.RequestOptions): core.HttpResponsePromise<
|
|
25
|
+
list(request: FiveOneEat.customer.businesses.ListBulletinsRequest, requestOptions?: BulletinsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
31
26
|
private __list;
|
|
32
27
|
}
|
package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs
CHANGED
|
@@ -14,7 +14,6 @@ import * as core from "../../../../../../../../core/index.mjs";
|
|
|
14
14
|
import * as environments from "../../../../../../../../environments.mjs";
|
|
15
15
|
import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
16
|
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
17
|
-
import * as FiveOneEat from "../../../../../../../index.mjs";
|
|
18
17
|
import { CommentsClient } from "../resources/comments/client/Client.mjs";
|
|
19
18
|
export class BulletinsClient {
|
|
20
19
|
constructor(options = {}) {
|
|
@@ -25,17 +24,12 @@ export class BulletinsClient {
|
|
|
25
24
|
return ((_a = this._comments) !== null && _a !== void 0 ? _a : (this._comments = new CommentsClient(this._options)));
|
|
26
25
|
}
|
|
27
26
|
/**
|
|
28
|
-
* Retrieve business announcements and updates with pagination.
|
|
29
|
-
*
|
|
30
27
|
* @param {FiveOneEat.customer.businesses.ListBulletinsRequest} request
|
|
31
28
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
29
|
*
|
|
33
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
34
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
35
|
-
*
|
|
36
30
|
* @example
|
|
37
31
|
* await client.customer.businesses.bulletins.list({
|
|
38
|
-
*
|
|
32
|
+
* business: "business"
|
|
39
33
|
* })
|
|
40
34
|
*/
|
|
41
35
|
list(request, requestOptions) {
|
|
@@ -44,23 +38,14 @@ export class BulletinsClient {
|
|
|
44
38
|
__list(request, requestOptions) {
|
|
45
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
40
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
47
|
-
const {
|
|
48
|
-
const _queryParams = {
|
|
49
|
-
page,
|
|
50
|
-
per_page: perPage,
|
|
51
|
-
};
|
|
41
|
+
const { business } = request;
|
|
52
42
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
53
43
|
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);
|
|
54
44
|
const _response = yield core.fetcher({
|
|
55
|
-
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(
|
|
45
|
+
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)}/bulletins`),
|
|
56
46
|
method: "GET",
|
|
57
47
|
headers: _headers,
|
|
58
|
-
queryParameters:
|
|
59
|
-
queryString: core.url
|
|
60
|
-
.queryBuilder()
|
|
61
|
-
.addMany(_queryParams)
|
|
62
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
63
|
-
.build(),
|
|
48
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
64
49
|
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,
|
|
65
50
|
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,
|
|
66
51
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -68,26 +53,16 @@ export class BulletinsClient {
|
|
|
68
53
|
logging: this._options.logging,
|
|
69
54
|
});
|
|
70
55
|
if (_response.ok) {
|
|
71
|
-
return {
|
|
72
|
-
data: _response.body,
|
|
73
|
-
rawResponse: _response.rawResponse,
|
|
74
|
-
};
|
|
56
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
75
57
|
}
|
|
76
58
|
if (_response.error.reason === "status-code") {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
default:
|
|
83
|
-
throw new errors.FiveOneEatError({
|
|
84
|
-
statusCode: _response.error.statusCode,
|
|
85
|
-
body: _response.error.body,
|
|
86
|
-
rawResponse: _response.rawResponse,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
59
|
+
throw new errors.FiveOneEatError({
|
|
60
|
+
statusCode: _response.error.statusCode,
|
|
61
|
+
body: _response.error.body,
|
|
62
|
+
rawResponse: _response.rawResponse,
|
|
63
|
+
});
|
|
89
64
|
}
|
|
90
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{
|
|
65
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/bulletins");
|
|
91
66
|
});
|
|
92
67
|
}
|
|
93
68
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "business"
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface ListBulletinsRequest {
|
|
8
|
-
|
|
9
|
-
handle: string;
|
|
10
|
-
/** Page number for pagination */
|
|
11
|
-
page?: number;
|
|
12
|
-
/** Number of bulletins per page */
|
|
13
|
-
per_page?: number;
|
|
8
|
+
business: string;
|
|
14
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../../../BaseClient.mjs";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../../../../../core/index.mjs";
|
|
4
|
-
import * as FiveOneEat from "../../../../../../../../../index.mjs";
|
|
4
|
+
import type * as FiveOneEat from "../../../../../../../../../index.mjs";
|
|
5
5
|
export declare namespace CommentsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -11,79 +11,53 @@ export declare class CommentsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CommentsClient.Options>;
|
|
12
12
|
constructor(options?: CommentsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Retrieve paginated comments for a published business bulletin.
|
|
15
|
-
*
|
|
16
14
|
* @param {FiveOneEat.customer.businesses.bulletins.ListCommentsRequest} request
|
|
17
15
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
16
|
*
|
|
19
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
21
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
22
|
-
*
|
|
23
17
|
* @example
|
|
24
18
|
* await client.customer.businesses.bulletins.comments.list({
|
|
25
|
-
*
|
|
26
|
-
* bulletin: "
|
|
19
|
+
* business: "business",
|
|
20
|
+
* bulletin: "bulletin"
|
|
27
21
|
* })
|
|
28
22
|
*/
|
|
29
|
-
list(request: FiveOneEat.customer.businesses.bulletins.ListCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<
|
|
23
|
+
list(request: FiveOneEat.customer.businesses.bulletins.ListCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
30
24
|
private __list;
|
|
31
25
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
|
|
26
|
+
* @param {FiveOneEat.customer.businesses.bulletins.CreateCommentsRequest} request
|
|
35
27
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
28
|
*
|
|
37
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
39
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
40
|
-
*
|
|
41
29
|
* @example
|
|
42
30
|
* await client.customer.businesses.bulletins.comments.create({
|
|
43
|
-
*
|
|
44
|
-
* bulletin: "
|
|
45
|
-
* body: "body"
|
|
31
|
+
* business: "business",
|
|
32
|
+
* bulletin: "bulletin"
|
|
46
33
|
* })
|
|
47
34
|
*/
|
|
48
|
-
create(request: FiveOneEat.customer.businesses.bulletins.
|
|
35
|
+
create(request: FiveOneEat.customer.businesses.bulletins.CreateCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
36
|
private __create;
|
|
50
37
|
/**
|
|
51
|
-
* Retrieve paginated replies for a top-level comment on a published bulletin.
|
|
52
|
-
*
|
|
53
38
|
* @param {FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest} request
|
|
54
39
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
40
|
*
|
|
56
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
57
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
58
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
59
|
-
*
|
|
60
41
|
* @example
|
|
61
42
|
* await client.customer.businesses.bulletins.comments.listReplies({
|
|
62
|
-
*
|
|
63
|
-
* bulletin: "
|
|
64
|
-
* comment: "
|
|
43
|
+
* business: "business",
|
|
44
|
+
* bulletin: "bulletin",
|
|
45
|
+
* comment: "comment"
|
|
65
46
|
* })
|
|
66
47
|
*/
|
|
67
|
-
listReplies(request: FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<
|
|
48
|
+
listReplies(request: FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
68
49
|
private __listReplies;
|
|
69
50
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest} request
|
|
51
|
+
* @param {FiveOneEat.customer.businesses.bulletins.ReplyCommentsRequest} request
|
|
73
52
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
53
|
*
|
|
75
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
76
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
77
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
78
|
-
*
|
|
79
54
|
* @example
|
|
80
55
|
* await client.customer.businesses.bulletins.comments.reply({
|
|
81
|
-
*
|
|
82
|
-
* bulletin: "
|
|
83
|
-
* comment: "
|
|
84
|
-
* body: "body"
|
|
56
|
+
* business: "business",
|
|
57
|
+
* bulletin: "bulletin",
|
|
58
|
+
* comment: "comment"
|
|
85
59
|
* })
|
|
86
60
|
*/
|
|
87
|
-
reply(request: FiveOneEat.customer.businesses.bulletins.
|
|
61
|
+
reply(request: FiveOneEat.customer.businesses.bulletins.ReplyCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
88
62
|
private __reply;
|
|
89
63
|
}
|
|
@@ -8,42 +8,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
11
|
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../../../BaseClient.mjs";
|
|
23
12
|
import { mergeHeaders } from "../../../../../../../../../../core/headers.mjs";
|
|
24
13
|
import * as core from "../../../../../../../../../../core/index.mjs";
|
|
25
14
|
import * as environments from "../../../../../../../../../../environments.mjs";
|
|
26
15
|
import { handleNonStatusCodeError } from "../../../../../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
27
16
|
import * as errors from "../../../../../../../../../../errors/index.mjs";
|
|
28
|
-
import * as FiveOneEat from "../../../../../../../../../index.mjs";
|
|
29
17
|
export class CommentsClient {
|
|
30
18
|
constructor(options = {}) {
|
|
31
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
32
20
|
}
|
|
33
21
|
/**
|
|
34
|
-
* Retrieve paginated comments for a published business bulletin.
|
|
35
|
-
*
|
|
36
22
|
* @param {FiveOneEat.customer.businesses.bulletins.ListCommentsRequest} request
|
|
37
23
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
24
|
*
|
|
39
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
40
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
41
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
42
|
-
*
|
|
43
25
|
* @example
|
|
44
26
|
* await client.customer.businesses.bulletins.comments.list({
|
|
45
|
-
*
|
|
46
|
-
* bulletin: "
|
|
27
|
+
* business: "business",
|
|
28
|
+
* bulletin: "bulletin"
|
|
47
29
|
* })
|
|
48
30
|
*/
|
|
49
31
|
list(request, requestOptions) {
|
|
@@ -52,23 +34,14 @@ export class CommentsClient {
|
|
|
52
34
|
__list(request, requestOptions) {
|
|
53
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
36
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
55
|
-
const {
|
|
56
|
-
const _queryParams = {
|
|
57
|
-
page,
|
|
58
|
-
per_page: perPage,
|
|
59
|
-
};
|
|
37
|
+
const { business, bulletin } = request;
|
|
60
38
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
61
39
|
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);
|
|
62
40
|
const _response = yield core.fetcher({
|
|
63
|
-
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(
|
|
41
|
+
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)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
|
|
64
42
|
method: "GET",
|
|
65
43
|
headers: _headers,
|
|
66
|
-
queryParameters:
|
|
67
|
-
queryString: core.url
|
|
68
|
-
.queryBuilder()
|
|
69
|
-
.addMany(_queryParams)
|
|
70
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
71
|
-
.build(),
|
|
44
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
72
45
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
73
46
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
74
47
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -76,45 +49,26 @@ export class CommentsClient {
|
|
|
76
49
|
logging: this._options.logging,
|
|
77
50
|
});
|
|
78
51
|
if (_response.ok) {
|
|
79
|
-
return {
|
|
80
|
-
data: _response.body,
|
|
81
|
-
rawResponse: _response.rawResponse,
|
|
82
|
-
};
|
|
52
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
83
53
|
}
|
|
84
54
|
if (_response.error.reason === "status-code") {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
case 422:
|
|
91
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
-
default:
|
|
93
|
-
throw new errors.FiveOneEatError({
|
|
94
|
-
statusCode: _response.error.statusCode,
|
|
95
|
-
body: _response.error.body,
|
|
96
|
-
rawResponse: _response.rawResponse,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
55
|
+
throw new errors.FiveOneEatError({
|
|
56
|
+
statusCode: _response.error.statusCode,
|
|
57
|
+
body: _response.error.body,
|
|
58
|
+
rawResponse: _response.rawResponse,
|
|
59
|
+
});
|
|
99
60
|
}
|
|
100
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{
|
|
61
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/bulletins/{bulletin}/comments");
|
|
101
62
|
});
|
|
102
63
|
}
|
|
103
64
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
|
|
65
|
+
* @param {FiveOneEat.customer.businesses.bulletins.CreateCommentsRequest} request
|
|
107
66
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
67
|
*
|
|
109
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
110
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
111
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
112
|
-
*
|
|
113
68
|
* @example
|
|
114
69
|
* await client.customer.businesses.bulletins.comments.create({
|
|
115
|
-
*
|
|
116
|
-
* bulletin: "
|
|
117
|
-
* body: "body"
|
|
70
|
+
* business: "business",
|
|
71
|
+
* bulletin: "bulletin"
|
|
118
72
|
* })
|
|
119
73
|
*/
|
|
120
74
|
create(request, requestOptions) {
|
|
@@ -123,17 +77,14 @@ export class CommentsClient {
|
|
|
123
77
|
__create(request, requestOptions) {
|
|
124
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
79
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
126
|
-
const {
|
|
80
|
+
const { business, bulletin } = request;
|
|
127
81
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
128
82
|
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);
|
|
129
83
|
const _response = yield core.fetcher({
|
|
130
|
-
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(
|
|
84
|
+
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)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
|
|
131
85
|
method: "POST",
|
|
132
86
|
headers: _headers,
|
|
133
|
-
contentType: "application/json",
|
|
134
87
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
135
|
-
requestType: "json",
|
|
136
|
-
body: _body,
|
|
137
88
|
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,
|
|
138
89
|
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,
|
|
139
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -141,45 +92,27 @@ export class CommentsClient {
|
|
|
141
92
|
logging: this._options.logging,
|
|
142
93
|
});
|
|
143
94
|
if (_response.ok) {
|
|
144
|
-
return {
|
|
145
|
-
data: _response.body,
|
|
146
|
-
rawResponse: _response.rawResponse,
|
|
147
|
-
};
|
|
95
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
148
96
|
}
|
|
149
97
|
if (_response.error.reason === "status-code") {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
case 422:
|
|
156
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
157
|
-
default:
|
|
158
|
-
throw new errors.FiveOneEatError({
|
|
159
|
-
statusCode: _response.error.statusCode,
|
|
160
|
-
body: _response.error.body,
|
|
161
|
-
rawResponse: _response.rawResponse,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
98
|
+
throw new errors.FiveOneEatError({
|
|
99
|
+
statusCode: _response.error.statusCode,
|
|
100
|
+
body: _response.error.body,
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
});
|
|
164
103
|
}
|
|
165
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/businesses/{
|
|
104
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/bulletins/{bulletin}/comments");
|
|
166
105
|
});
|
|
167
106
|
}
|
|
168
107
|
/**
|
|
169
|
-
* Retrieve paginated replies for a top-level comment on a published bulletin.
|
|
170
|
-
*
|
|
171
108
|
* @param {FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest} request
|
|
172
109
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
110
|
*
|
|
174
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
175
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
176
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
177
|
-
*
|
|
178
111
|
* @example
|
|
179
112
|
* await client.customer.businesses.bulletins.comments.listReplies({
|
|
180
|
-
*
|
|
181
|
-
* bulletin: "
|
|
182
|
-
* comment: "
|
|
113
|
+
* business: "business",
|
|
114
|
+
* bulletin: "bulletin",
|
|
115
|
+
* comment: "comment"
|
|
183
116
|
* })
|
|
184
117
|
*/
|
|
185
118
|
listReplies(request, requestOptions) {
|
|
@@ -188,23 +121,14 @@ export class CommentsClient {
|
|
|
188
121
|
__listReplies(request, requestOptions) {
|
|
189
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
123
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
191
|
-
const {
|
|
192
|
-
const _queryParams = {
|
|
193
|
-
page,
|
|
194
|
-
per_page: perPage,
|
|
195
|
-
};
|
|
124
|
+
const { business, bulletin, comment } = request;
|
|
196
125
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
197
126
|
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);
|
|
198
127
|
const _response = yield core.fetcher({
|
|
199
|
-
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(
|
|
128
|
+
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)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
|
|
200
129
|
method: "GET",
|
|
201
130
|
headers: _headers,
|
|
202
|
-
queryParameters:
|
|
203
|
-
queryString: core.url
|
|
204
|
-
.queryBuilder()
|
|
205
|
-
.addMany(_queryParams)
|
|
206
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
207
|
-
.build(),
|
|
131
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
208
132
|
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,
|
|
209
133
|
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,
|
|
210
134
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -212,46 +136,27 @@ export class CommentsClient {
|
|
|
212
136
|
logging: this._options.logging,
|
|
213
137
|
});
|
|
214
138
|
if (_response.ok) {
|
|
215
|
-
return {
|
|
216
|
-
data: _response.body,
|
|
217
|
-
rawResponse: _response.rawResponse,
|
|
218
|
-
};
|
|
139
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
219
140
|
}
|
|
220
141
|
if (_response.error.reason === "status-code") {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
case 422:
|
|
227
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
228
|
-
default:
|
|
229
|
-
throw new errors.FiveOneEatError({
|
|
230
|
-
statusCode: _response.error.statusCode,
|
|
231
|
-
body: _response.error.body,
|
|
232
|
-
rawResponse: _response.rawResponse,
|
|
233
|
-
});
|
|
234
|
-
}
|
|
142
|
+
throw new errors.FiveOneEatError({
|
|
143
|
+
statusCode: _response.error.statusCode,
|
|
144
|
+
body: _response.error.body,
|
|
145
|
+
rawResponse: _response.rawResponse,
|
|
146
|
+
});
|
|
235
147
|
}
|
|
236
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{
|
|
148
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/bulletins/{bulletin}/comments/{comment}/replies");
|
|
237
149
|
});
|
|
238
150
|
}
|
|
239
151
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
* @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest} request
|
|
152
|
+
* @param {FiveOneEat.customer.businesses.bulletins.ReplyCommentsRequest} request
|
|
243
153
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
154
|
*
|
|
245
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
246
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
247
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
248
|
-
*
|
|
249
155
|
* @example
|
|
250
156
|
* await client.customer.businesses.bulletins.comments.reply({
|
|
251
|
-
*
|
|
252
|
-
* bulletin: "
|
|
253
|
-
* comment: "
|
|
254
|
-
* body: "body"
|
|
157
|
+
* business: "business",
|
|
158
|
+
* bulletin: "bulletin",
|
|
159
|
+
* comment: "comment"
|
|
255
160
|
* })
|
|
256
161
|
*/
|
|
257
162
|
reply(request, requestOptions) {
|
|
@@ -260,17 +165,14 @@ export class CommentsClient {
|
|
|
260
165
|
__reply(request, requestOptions) {
|
|
261
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
262
167
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
263
|
-
const {
|
|
168
|
+
const { business, bulletin, comment } = request;
|
|
264
169
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
265
170
|
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);
|
|
266
171
|
const _response = yield core.fetcher({
|
|
267
|
-
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(
|
|
172
|
+
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)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
|
|
268
173
|
method: "POST",
|
|
269
174
|
headers: _headers,
|
|
270
|
-
contentType: "application/json",
|
|
271
175
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
272
|
-
requestType: "json",
|
|
273
|
-
body: _body,
|
|
274
176
|
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,
|
|
275
177
|
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,
|
|
276
178
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -278,28 +180,16 @@ export class CommentsClient {
|
|
|
278
180
|
logging: this._options.logging,
|
|
279
181
|
});
|
|
280
182
|
if (_response.ok) {
|
|
281
|
-
return {
|
|
282
|
-
data: _response.body,
|
|
283
|
-
rawResponse: _response.rawResponse,
|
|
284
|
-
};
|
|
183
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
285
184
|
}
|
|
286
185
|
if (_response.error.reason === "status-code") {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
case 422:
|
|
293
|
-
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
294
|
-
default:
|
|
295
|
-
throw new errors.FiveOneEatError({
|
|
296
|
-
statusCode: _response.error.statusCode,
|
|
297
|
-
body: _response.error.body,
|
|
298
|
-
rawResponse: _response.rawResponse,
|
|
299
|
-
});
|
|
300
|
-
}
|
|
186
|
+
throw new errors.FiveOneEatError({
|
|
187
|
+
statusCode: _response.error.statusCode,
|
|
188
|
+
body: _response.error.body,
|
|
189
|
+
rawResponse: _response.rawResponse,
|
|
190
|
+
});
|
|
301
191
|
}
|
|
302
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/businesses/{
|
|
192
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/bulletins/{bulletin}/comments/{comment}/replies");
|
|
303
193
|
});
|
|
304
194
|
}
|
|
305
195
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
5
|
-
* bulletin: "
|
|
4
|
+
* business: "business",
|
|
5
|
+
* bulletin: "bulletin"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface ListCommentsRequest {
|
|
9
|
-
|
|
10
|
-
handle: string;
|
|
11
|
-
/** The bulletin ID */
|
|
9
|
+
business: string;
|
|
12
10
|
bulletin: string;
|
|
13
|
-
/** Page number for pagination */
|
|
14
|
-
page?: number;
|
|
15
|
-
/** Number of comments per page */
|
|
16
|
-
per_page?: number;
|
|
17
11
|
}
|