@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,7 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
|
-
import
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.js";
|
|
5
5
|
export declare namespace ShopClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -14,34 +14,40 @@ export declare class ShopClient {
|
|
|
14
14
|
* @param {FiveOneEat.customer.ListProductsShopRequest} request
|
|
15
15
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
|
+
*
|
|
17
19
|
* @example
|
|
18
20
|
* await client.customer.shop.listProducts({
|
|
19
|
-
* business: "
|
|
21
|
+
* business: "katzs-deli"
|
|
20
22
|
* })
|
|
21
23
|
*/
|
|
22
|
-
listProducts(request: FiveOneEat.customer.ListProductsShopRequest, requestOptions?: ShopClient.RequestOptions): core.HttpResponsePromise<
|
|
24
|
+
listProducts(request: FiveOneEat.customer.ListProductsShopRequest, requestOptions?: ShopClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListProductsShopResponse>;
|
|
23
25
|
private __listProducts;
|
|
24
26
|
/**
|
|
25
27
|
* @param {FiveOneEat.customer.GetProductShopRequest} request
|
|
26
28
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
29
|
*
|
|
30
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
31
|
+
*
|
|
28
32
|
* @example
|
|
29
33
|
* await client.customer.shop.getProduct({
|
|
30
|
-
* business: "
|
|
34
|
+
* business: "katzs-deli",
|
|
31
35
|
* product: "product"
|
|
32
36
|
* })
|
|
33
37
|
*/
|
|
34
|
-
getProduct(request: FiveOneEat.customer.GetProductShopRequest, requestOptions?: ShopClient.RequestOptions): core.HttpResponsePromise<
|
|
38
|
+
getProduct(request: FiveOneEat.customer.GetProductShopRequest, requestOptions?: ShopClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetProductShopResponse>;
|
|
35
39
|
private __getProduct;
|
|
36
40
|
/**
|
|
37
41
|
* @param {FiveOneEat.customer.ListCategoriesShopRequest} request
|
|
38
42
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
43
|
*
|
|
44
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
45
|
+
*
|
|
40
46
|
* @example
|
|
41
47
|
* await client.customer.shop.listCategories({
|
|
42
|
-
* business: "
|
|
48
|
+
* business: "katzs-deli"
|
|
43
49
|
* })
|
|
44
50
|
*/
|
|
45
|
-
listCategories(request: FiveOneEat.customer.ListCategoriesShopRequest, requestOptions?: ShopClient.RequestOptions): core.HttpResponsePromise<
|
|
51
|
+
listCategories(request: FiveOneEat.customer.ListCategoriesShopRequest, requestOptions?: ShopClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListCategoriesShopResponse>;
|
|
46
52
|
private __listCategories;
|
|
47
53
|
}
|
|
@@ -50,6 +50,7 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
50
50
|
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
51
|
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
52
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
const FiveOneEat = __importStar(require("../../../../../index.js"));
|
|
53
54
|
class ShopClient {
|
|
54
55
|
constructor(options = {}) {
|
|
55
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -58,9 +59,11 @@ class ShopClient {
|
|
|
58
59
|
* @param {FiveOneEat.customer.ListProductsShopRequest} request
|
|
59
60
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
61
|
*
|
|
62
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
63
|
+
*
|
|
61
64
|
* @example
|
|
62
65
|
* await client.customer.shop.listProducts({
|
|
63
|
-
* business: "
|
|
66
|
+
* business: "katzs-deli"
|
|
64
67
|
* })
|
|
65
68
|
*/
|
|
66
69
|
listProducts(request, requestOptions) {
|
|
@@ -69,14 +72,23 @@ class ShopClient {
|
|
|
69
72
|
__listProducts(request, requestOptions) {
|
|
70
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
74
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
72
|
-
const { business } = request;
|
|
75
|
+
const { business, category_id: categoryId, featured } = request;
|
|
76
|
+
const _queryParams = {
|
|
77
|
+
category_id: categoryId,
|
|
78
|
+
featured,
|
|
79
|
+
};
|
|
73
80
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
74
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);
|
|
75
82
|
const _response = yield core.fetcher({
|
|
76
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(business)}/shop`),
|
|
77
84
|
method: "GET",
|
|
78
85
|
headers: _headers,
|
|
79
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
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(),
|
|
80
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,
|
|
81
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,
|
|
82
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -84,14 +96,22 @@ class ShopClient {
|
|
|
84
96
|
logging: this._options.logging,
|
|
85
97
|
});
|
|
86
98
|
if (_response.ok) {
|
|
87
|
-
return {
|
|
99
|
+
return {
|
|
100
|
+
data: _response.body,
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
};
|
|
88
103
|
}
|
|
89
104
|
if (_response.error.reason === "status-code") {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
105
|
+
switch (_response.error.statusCode) {
|
|
106
|
+
case 401:
|
|
107
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
108
|
+
default:
|
|
109
|
+
throw new errors.FiveOneEatError({
|
|
110
|
+
statusCode: _response.error.statusCode,
|
|
111
|
+
body: _response.error.body,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
95
115
|
}
|
|
96
116
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/shop");
|
|
97
117
|
});
|
|
@@ -100,9 +120,11 @@ class ShopClient {
|
|
|
100
120
|
* @param {FiveOneEat.customer.GetProductShopRequest} request
|
|
101
121
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
122
|
*
|
|
123
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
124
|
+
*
|
|
103
125
|
* @example
|
|
104
126
|
* await client.customer.shop.getProduct({
|
|
105
|
-
* business: "
|
|
127
|
+
* business: "katzs-deli",
|
|
106
128
|
* product: "product"
|
|
107
129
|
* })
|
|
108
130
|
*/
|
|
@@ -127,14 +149,22 @@ class ShopClient {
|
|
|
127
149
|
logging: this._options.logging,
|
|
128
150
|
});
|
|
129
151
|
if (_response.ok) {
|
|
130
|
-
return {
|
|
152
|
+
return {
|
|
153
|
+
data: _response.body,
|
|
154
|
+
rawResponse: _response.rawResponse,
|
|
155
|
+
};
|
|
131
156
|
}
|
|
132
157
|
if (_response.error.reason === "status-code") {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
158
|
+
switch (_response.error.statusCode) {
|
|
159
|
+
case 401:
|
|
160
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
161
|
+
default:
|
|
162
|
+
throw new errors.FiveOneEatError({
|
|
163
|
+
statusCode: _response.error.statusCode,
|
|
164
|
+
body: _response.error.body,
|
|
165
|
+
rawResponse: _response.rawResponse,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
138
168
|
}
|
|
139
169
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/shop/products/{product}");
|
|
140
170
|
});
|
|
@@ -143,9 +173,11 @@ class ShopClient {
|
|
|
143
173
|
* @param {FiveOneEat.customer.ListCategoriesShopRequest} request
|
|
144
174
|
* @param {ShopClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
175
|
*
|
|
176
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
177
|
+
*
|
|
146
178
|
* @example
|
|
147
179
|
* await client.customer.shop.listCategories({
|
|
148
|
-
* business: "
|
|
180
|
+
* business: "katzs-deli"
|
|
149
181
|
* })
|
|
150
182
|
*/
|
|
151
183
|
listCategories(request, requestOptions) {
|
|
@@ -169,14 +201,22 @@ class ShopClient {
|
|
|
169
201
|
logging: this._options.logging,
|
|
170
202
|
});
|
|
171
203
|
if (_response.ok) {
|
|
172
|
-
return {
|
|
204
|
+
return {
|
|
205
|
+
data: _response.body,
|
|
206
|
+
rawResponse: _response.rawResponse,
|
|
207
|
+
};
|
|
173
208
|
}
|
|
174
209
|
if (_response.error.reason === "status-code") {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
210
|
+
switch (_response.error.statusCode) {
|
|
211
|
+
case 401:
|
|
212
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
213
|
+
default:
|
|
214
|
+
throw new errors.FiveOneEatError({
|
|
215
|
+
statusCode: _response.error.statusCode,
|
|
216
|
+
body: _response.error.body,
|
|
217
|
+
rawResponse: _response.rawResponse,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
180
220
|
}
|
|
181
221
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/shop/categories");
|
|
182
222
|
});
|
package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* business: "
|
|
4
|
+
* business: "katzs-deli",
|
|
5
5
|
* product: "product"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface GetProductShopRequest {
|
|
9
|
+
/** The business handle */
|
|
9
10
|
business: string;
|
|
11
|
+
/** The product ID */
|
|
10
12
|
product: string;
|
|
11
13
|
}
|
package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* business: "
|
|
4
|
+
* business: "katzs-deli"
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface ListProductsShopRequest {
|
|
8
|
+
/** The business handle */
|
|
8
9
|
business: string;
|
|
10
|
+
/** Filter by product category ID */
|
|
11
|
+
category_id?: string;
|
|
12
|
+
/** Return only featured products */
|
|
13
|
+
featured?: boolean;
|
|
9
14
|
}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./GetProductShopResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./ListCategoriesShopResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./ListProductsShopResponse.js"), exports);
|
|
@@ -5,18 +5,12 @@ export * from "./businessMessaging/types/index.js";
|
|
|
5
5
|
export * from "./customer/client/requests/index.js";
|
|
6
6
|
export * as customer from "./customer/index.js";
|
|
7
7
|
export * from "./customer/types/index.js";
|
|
8
|
-
export * from "./customerBusinesses/client/requests/index.js";
|
|
9
|
-
export * as customerBusinesses from "./customerBusinesses/index.js";
|
|
10
|
-
export * from "./customerBusinesses/types/index.js";
|
|
11
8
|
export * from "./customerMessaging/client/requests/index.js";
|
|
12
9
|
export * as customerMessaging from "./customerMessaging/index.js";
|
|
13
10
|
export * from "./customerMessaging/types/index.js";
|
|
14
11
|
export * from "./customerMyAccount/client/requests/index.js";
|
|
15
12
|
export * as customerMyAccount from "./customerMyAccount/index.js";
|
|
16
13
|
export * from "./customerMyAccount/types/index.js";
|
|
17
|
-
export * from "./customerShop/client/requests/index.js";
|
|
18
|
-
export * as customerShop from "./customerShop/index.js";
|
|
19
|
-
export * from "./customerShop/types/index.js";
|
|
20
14
|
export * from "./recordClick/client/requests/index.js";
|
|
21
15
|
export * as recordClick from "./recordClick/index.js";
|
|
22
16
|
export * from "./serveAd/client/requests/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.serveAd = exports.recordClick = exports.
|
|
39
|
+
exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerMessaging = exports.customer = exports.businessMessaging = exports.business = void 0;
|
|
40
40
|
exports.business = __importStar(require("./business/index.js"));
|
|
41
41
|
__exportStar(require("./businessMessaging/client/requests/index.js"), exports);
|
|
42
42
|
exports.businessMessaging = __importStar(require("./businessMessaging/index.js"));
|
|
@@ -44,18 +44,12 @@ __exportStar(require("./businessMessaging/types/index.js"), exports);
|
|
|
44
44
|
__exportStar(require("./customer/client/requests/index.js"), exports);
|
|
45
45
|
exports.customer = __importStar(require("./customer/index.js"));
|
|
46
46
|
__exportStar(require("./customer/types/index.js"), exports);
|
|
47
|
-
__exportStar(require("./customerBusinesses/client/requests/index.js"), exports);
|
|
48
|
-
exports.customerBusinesses = __importStar(require("./customerBusinesses/index.js"));
|
|
49
|
-
__exportStar(require("./customerBusinesses/types/index.js"), exports);
|
|
50
47
|
__exportStar(require("./customerMessaging/client/requests/index.js"), exports);
|
|
51
48
|
exports.customerMessaging = __importStar(require("./customerMessaging/index.js"));
|
|
52
49
|
__exportStar(require("./customerMessaging/types/index.js"), exports);
|
|
53
50
|
__exportStar(require("./customerMyAccount/client/requests/index.js"), exports);
|
|
54
51
|
exports.customerMyAccount = __importStar(require("./customerMyAccount/index.js"));
|
|
55
52
|
__exportStar(require("./customerMyAccount/types/index.js"), exports);
|
|
56
|
-
__exportStar(require("./customerShop/client/requests/index.js"), exports);
|
|
57
|
-
exports.customerShop = __importStar(require("./customerShop/index.js"));
|
|
58
|
-
__exportStar(require("./customerShop/types/index.js"), exports);
|
|
59
53
|
__exportStar(require("./recordClick/client/requests/index.js"), exports);
|
|
60
54
|
exports.recordClick = __importStar(require("./recordClick/index.js"));
|
|
61
55
|
__exportStar(require("./serveAd/client/requests/index.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.45";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.45",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.45",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { BusinessClient } from "./api/resources/business/client/Client.mjs";
|
|
2
2
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
3
3
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
4
|
-
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.mjs";
|
|
5
4
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
|
|
6
5
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
7
|
-
import { CustomerShopClient } from "./api/resources/customerShop/client/Client.mjs";
|
|
8
6
|
import { RecordClickClient } from "./api/resources/recordClick/client/Client.mjs";
|
|
9
7
|
import { ServeAdClient } from "./api/resources/serveAd/client/Client.mjs";
|
|
10
8
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
@@ -18,21 +16,17 @@ export declare namespace FiveOneEatClient {
|
|
|
18
16
|
export declare class FiveOneEatClient {
|
|
19
17
|
protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
|
|
20
18
|
protected _businessMessaging: BusinessMessagingClient | undefined;
|
|
21
|
-
protected _customerBusinesses: CustomerBusinessesClient | undefined;
|
|
22
19
|
protected _customerMessaging: CustomerMessagingClient | undefined;
|
|
23
20
|
protected _customerMyAccount: CustomerMyAccountClient | undefined;
|
|
24
21
|
protected _customer: CustomerClient | undefined;
|
|
25
|
-
protected _customerShop: CustomerShopClient | undefined;
|
|
26
22
|
protected _recordClick: RecordClickClient | undefined;
|
|
27
23
|
protected _serveAd: ServeAdClient | undefined;
|
|
28
24
|
protected _business: BusinessClient | undefined;
|
|
29
25
|
constructor(options?: FiveOneEatClient.Options);
|
|
30
26
|
get businessMessaging(): BusinessMessagingClient;
|
|
31
|
-
get customerBusinesses(): CustomerBusinessesClient;
|
|
32
27
|
get customerMessaging(): CustomerMessagingClient;
|
|
33
28
|
get customerMyAccount(): CustomerMyAccountClient;
|
|
34
29
|
get customer(): CustomerClient;
|
|
35
|
-
get customerShop(): CustomerShopClient;
|
|
36
30
|
get recordClick(): RecordClickClient;
|
|
37
31
|
get serveAd(): ServeAdClient;
|
|
38
32
|
get business(): BusinessClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,10 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
import { BusinessClient } from "./api/resources/business/client/Client.mjs";
|
|
12
12
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
13
13
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
14
|
-
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.mjs";
|
|
15
14
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
|
|
16
15
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
17
|
-
import { CustomerShopClient } from "./api/resources/customerShop/client/Client.mjs";
|
|
18
16
|
import { RecordClickClient } from "./api/resources/recordClick/client/Client.mjs";
|
|
19
17
|
import { ServeAdClient } from "./api/resources/serveAd/client/Client.mjs";
|
|
20
18
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
@@ -27,10 +25,6 @@ export class FiveOneEatClient {
|
|
|
27
25
|
var _a;
|
|
28
26
|
return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new BusinessMessagingClient(this._options)));
|
|
29
27
|
}
|
|
30
|
-
get customerBusinesses() {
|
|
31
|
-
var _a;
|
|
32
|
-
return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new CustomerBusinessesClient(this._options)));
|
|
33
|
-
}
|
|
34
28
|
get customerMessaging() {
|
|
35
29
|
var _a;
|
|
36
30
|
return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new CustomerMessagingClient(this._options)));
|
|
@@ -43,10 +37,6 @@ export class FiveOneEatClient {
|
|
|
43
37
|
var _a;
|
|
44
38
|
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new CustomerClient(this._options)));
|
|
45
39
|
}
|
|
46
|
-
get customerShop() {
|
|
47
|
-
var _a;
|
|
48
|
-
return ((_a = this._customerShop) !== null && _a !== void 0 ? _a : (this._customerShop = new CustomerShopClient(this._options)));
|
|
49
|
-
}
|
|
50
40
|
get recordClick() {
|
|
51
41
|
var _a;
|
|
52
42
|
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new RecordClickClient(this._options)));
|
|
@@ -22,6 +22,7 @@ export declare namespace CustomerClient {
|
|
|
22
22
|
export declare class CustomerClient {
|
|
23
23
|
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerClient.Options>;
|
|
24
24
|
protected _auth: AuthClient | undefined;
|
|
25
|
+
protected _businesses: BusinessesClient | undefined;
|
|
25
26
|
protected _cart: CartClient | undefined;
|
|
26
27
|
protected _explore: ExploreClient | undefined;
|
|
27
28
|
protected _discovery: DiscoveryClient | undefined;
|
|
@@ -31,10 +32,10 @@ export declare class CustomerClient {
|
|
|
31
32
|
protected _me: MeClient | undefined;
|
|
32
33
|
protected _productOrders: ProductOrdersClient | undefined;
|
|
33
34
|
protected _pushNotifications: PushNotificationsClient | undefined;
|
|
34
|
-
protected _businesses: BusinessesClient | undefined;
|
|
35
35
|
protected _shop: ShopClient | undefined;
|
|
36
36
|
constructor(options?: CustomerClient.Options);
|
|
37
37
|
get auth(): AuthClient;
|
|
38
|
+
get businesses(): BusinessesClient;
|
|
38
39
|
get cart(): CartClient;
|
|
39
40
|
get explore(): ExploreClient;
|
|
40
41
|
get discovery(): DiscoveryClient;
|
|
@@ -44,7 +45,6 @@ export declare class CustomerClient {
|
|
|
44
45
|
get me(): MeClient;
|
|
45
46
|
get productOrders(): ProductOrdersClient;
|
|
46
47
|
get pushNotifications(): PushNotificationsClient;
|
|
47
|
-
get businesses(): BusinessesClient;
|
|
48
48
|
get shop(): ShopClient;
|
|
49
49
|
/**
|
|
50
50
|
* Returns grouped results for each type. Use per_type to control how many results
|
|
@@ -36,6 +36,10 @@ export class CustomerClient {
|
|
|
36
36
|
var _a;
|
|
37
37
|
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new AuthClient(this._options)));
|
|
38
38
|
}
|
|
39
|
+
get businesses() {
|
|
40
|
+
var _a;
|
|
41
|
+
return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new BusinessesClient(this._options)));
|
|
42
|
+
}
|
|
39
43
|
get cart() {
|
|
40
44
|
var _a;
|
|
41
45
|
return ((_a = this._cart) !== null && _a !== void 0 ? _a : (this._cart = new CartClient(this._options)));
|
|
@@ -72,10 +76,6 @@ export class CustomerClient {
|
|
|
72
76
|
var _a;
|
|
73
77
|
return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new PushNotificationsClient(this._options)));
|
|
74
78
|
}
|
|
75
|
-
get businesses() {
|
|
76
|
-
var _a;
|
|
77
|
-
return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new BusinessesClient(this._options)));
|
|
78
|
-
}
|
|
79
79
|
get shop() {
|
|
80
80
|
var _a;
|
|
81
81
|
return ((_a = this._shop) !== null && _a !== void 0 ? _a : (this._shop = new ShopClient(this._options)));
|
|
@@ -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
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.mjs";
|
|
5
5
|
import { BulletinsClient } from "../resources/bulletins/client/Client.mjs";
|
|
6
6
|
import { EventsClient } from "../resources/events/client/Client.mjs";
|
|
7
7
|
export declare namespace BusinessesClient {
|
|
@@ -17,69 +17,97 @@ export declare class BusinessesClient {
|
|
|
17
17
|
get bulletins(): BulletinsClient;
|
|
18
18
|
get events(): EventsClient;
|
|
19
19
|
/**
|
|
20
|
+
* Retrieve core business information for the profile page.
|
|
21
|
+
*
|
|
20
22
|
* @param {FiveOneEat.customer.ProfileBusinessesRequest} request
|
|
21
23
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
24
|
*
|
|
25
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
26
|
+
*
|
|
23
27
|
* @example
|
|
24
28
|
* await client.customer.businesses.profile({
|
|
25
|
-
* business: "
|
|
29
|
+
* business: "katzs-deli"
|
|
26
30
|
* })
|
|
27
31
|
*/
|
|
28
|
-
profile(request: FiveOneEat.customer.ProfileBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<
|
|
32
|
+
profile(request: FiveOneEat.customer.ProfileBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ProfileBusinessesResponse>;
|
|
29
33
|
private __profile;
|
|
30
34
|
/**
|
|
35
|
+
* Retrieve all menus organized by groups for the business.
|
|
36
|
+
*
|
|
31
37
|
* @param {FiveOneEat.customer.MenusBusinessesRequest} request
|
|
32
38
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
39
|
*
|
|
40
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
41
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
42
|
+
*
|
|
34
43
|
* @example
|
|
35
44
|
* await client.customer.businesses.menus({
|
|
36
|
-
* business: "
|
|
45
|
+
* business: "katzs-deli"
|
|
37
46
|
* })
|
|
38
47
|
*/
|
|
39
|
-
menus(request: FiveOneEat.customer.MenusBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<
|
|
48
|
+
menus(request: FiveOneEat.customer.MenusBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.MenusBusinessesResponse>;
|
|
40
49
|
private __menus;
|
|
41
50
|
/**
|
|
51
|
+
* Retrieve photo gallery for the business with pagination.
|
|
52
|
+
*
|
|
42
53
|
* @param {FiveOneEat.customer.PhotosBusinessesRequest} request
|
|
43
54
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
55
|
*
|
|
56
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
57
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
58
|
+
*
|
|
45
59
|
* @example
|
|
46
60
|
* await client.customer.businesses.photos({
|
|
47
|
-
* business: "
|
|
61
|
+
* business: "katzs-deli"
|
|
48
62
|
* })
|
|
49
63
|
*/
|
|
50
|
-
photos(request: FiveOneEat.customer.PhotosBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<
|
|
64
|
+
photos(request: FiveOneEat.customer.PhotosBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.PhotosBusinessesResponse>;
|
|
51
65
|
private __photos;
|
|
52
66
|
/**
|
|
67
|
+
* Add a business to the authenticated user's favorites.
|
|
68
|
+
*
|
|
53
69
|
* @param {FiveOneEat.customer.FavoriteBusinessesRequest} request
|
|
54
70
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
71
|
*
|
|
72
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
73
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
74
|
+
* @throws {@link FiveOneEat.ConflictError}
|
|
75
|
+
*
|
|
56
76
|
* @example
|
|
57
77
|
* await client.customer.businesses.favorite({
|
|
58
|
-
* business: "
|
|
78
|
+
* business: "katzs-deli"
|
|
59
79
|
* })
|
|
60
80
|
*/
|
|
61
|
-
favorite(request: FiveOneEat.customer.FavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<
|
|
81
|
+
favorite(request: FiveOneEat.customer.FavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.FavoriteBusinessesResponse>;
|
|
62
82
|
private __favorite;
|
|
63
83
|
/**
|
|
84
|
+
* Remove a business from the authenticated user's favorites.
|
|
85
|
+
*
|
|
64
86
|
* @param {FiveOneEat.customer.UnfavoriteBusinessesRequest} request
|
|
65
87
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
88
|
*
|
|
89
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
90
|
+
*
|
|
67
91
|
* @example
|
|
68
92
|
* await client.customer.businesses.unfavorite({
|
|
69
|
-
* business: "
|
|
93
|
+
* business: "katzs-deli"
|
|
70
94
|
* })
|
|
71
95
|
*/
|
|
72
|
-
unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<
|
|
96
|
+
unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
73
97
|
private __unfavorite;
|
|
74
98
|
/**
|
|
99
|
+
* Retrieve active and upcoming temporary locations for a business.
|
|
100
|
+
*
|
|
75
101
|
* @param {FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest} request
|
|
76
102
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
103
|
*
|
|
104
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
105
|
+
*
|
|
78
106
|
* @example
|
|
79
107
|
* await client.customer.businesses.listTemporaryLocations({
|
|
80
|
-
* business: "
|
|
108
|
+
* business: "katzs-deli"
|
|
81
109
|
* })
|
|
82
110
|
*/
|
|
83
|
-
listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<
|
|
111
|
+
listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListTemporaryLocationsBusinessesResponse>;
|
|
84
112
|
private __listTemporaryLocations;
|
|
85
113
|
}
|