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