@51eat/sdk 0.0.43 → 0.0.44
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/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/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
package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
4
|
-
import
|
|
4
|
+
import * as FiveOneEat from "../../../../../../../index.mjs";
|
|
5
5
|
export declare namespace EventsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -11,50 +11,71 @@ export declare class EventsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
|
|
12
12
|
constructor(options?: EventsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Retrieve upcoming events for the business with pagination.
|
|
15
|
+
*
|
|
14
16
|
* @param {FiveOneEat.customer.businesses.ListEventsRequest} request
|
|
15
17
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
18
|
*
|
|
19
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
21
|
+
*
|
|
17
22
|
* @example
|
|
18
23
|
* await client.customer.businesses.events.list({
|
|
19
|
-
* business: "
|
|
24
|
+
* business: "katzs-deli"
|
|
20
25
|
* })
|
|
21
26
|
*/
|
|
22
|
-
list(request: FiveOneEat.customer.businesses.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<
|
|
27
|
+
list(request: FiveOneEat.customer.businesses.ListEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.ListEventsResponse>;
|
|
23
28
|
private __list;
|
|
24
29
|
/**
|
|
30
|
+
* Retrieve full details for a single upcoming event belonging to the business.
|
|
31
|
+
*
|
|
25
32
|
* @param {FiveOneEat.customer.businesses.GetEventsRequest} request
|
|
26
33
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
34
|
*
|
|
35
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
36
|
+
*
|
|
28
37
|
* @example
|
|
29
38
|
* await client.customer.businesses.events.get({
|
|
30
|
-
* business: "
|
|
39
|
+
* business: "katzs-deli",
|
|
31
40
|
* event: "event"
|
|
32
41
|
* })
|
|
33
42
|
*/
|
|
34
|
-
get(request: FiveOneEat.customer.businesses.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<
|
|
43
|
+
get(request: FiveOneEat.customer.businesses.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.GetEventsResponse>;
|
|
35
44
|
private __get;
|
|
36
45
|
/**
|
|
37
|
-
*
|
|
46
|
+
* Create or update the authenticated user's RSVP for a business event.
|
|
47
|
+
*
|
|
48
|
+
* @param {FiveOneEat.customer.businesses.StoreEventRsvpRequest} request
|
|
38
49
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
50
|
*
|
|
51
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
52
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
53
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
54
|
+
*
|
|
40
55
|
* @example
|
|
41
56
|
* await client.customer.businesses.events.rsvp({
|
|
42
|
-
* business: "
|
|
43
|
-
* event: "
|
|
57
|
+
* business: "katzs-deli",
|
|
58
|
+
* event: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
59
|
+
* status: "attending"
|
|
44
60
|
* })
|
|
45
61
|
*/
|
|
46
|
-
rsvp(request: FiveOneEat.customer.businesses.
|
|
62
|
+
rsvp(request: FiveOneEat.customer.businesses.StoreEventRsvpRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.RsvpEventsResponse>;
|
|
47
63
|
private __rsvp;
|
|
48
64
|
/**
|
|
65
|
+
* Cancel the authenticated user's RSVP for a business event.
|
|
66
|
+
*
|
|
49
67
|
* @param {FiveOneEat.customer.businesses.CancelRsvpEventsRequest} request
|
|
50
68
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
69
|
*
|
|
70
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
71
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
72
|
+
*
|
|
52
73
|
* @example
|
|
53
74
|
* await client.customer.businesses.events.cancelRsvp({
|
|
54
|
-
* business: "
|
|
55
|
-
* event: "
|
|
75
|
+
* business: "katzs-deli",
|
|
76
|
+
* event: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
56
77
|
* })
|
|
57
78
|
*/
|
|
58
|
-
cancelRsvp(request: FiveOneEat.customer.businesses.CancelRsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<
|
|
79
|
+
cancelRsvp(request: FiveOneEat.customer.businesses.CancelRsvpEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<number>;
|
|
59
80
|
private __cancelRsvp;
|
|
60
81
|
}
|
package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs
CHANGED
|
@@ -8,23 +8,40 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
11
22
|
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
|
|
12
23
|
import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
|
|
13
24
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
14
25
|
import * as environments from "../../../../../../../../environments.mjs";
|
|
15
26
|
import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
27
|
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
28
|
+
import * as FiveOneEat from "../../../../../../../index.mjs";
|
|
17
29
|
export class EventsClient {
|
|
18
30
|
constructor(options = {}) {
|
|
19
31
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
32
|
}
|
|
21
33
|
/**
|
|
34
|
+
* Retrieve upcoming events for the business with pagination.
|
|
35
|
+
*
|
|
22
36
|
* @param {FiveOneEat.customer.businesses.ListEventsRequest} request
|
|
23
37
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
38
|
*
|
|
39
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
40
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
41
|
+
*
|
|
25
42
|
* @example
|
|
26
43
|
* await client.customer.businesses.events.list({
|
|
27
|
-
* business: "
|
|
44
|
+
* business: "katzs-deli"
|
|
28
45
|
* })
|
|
29
46
|
*/
|
|
30
47
|
list(request, requestOptions) {
|
|
@@ -33,14 +50,23 @@ export class EventsClient {
|
|
|
33
50
|
__list(request, requestOptions) {
|
|
34
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
52
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
36
|
-
const { business } = request;
|
|
53
|
+
const { business, page, per_page: perPage } = request;
|
|
54
|
+
const _queryParams = {
|
|
55
|
+
page,
|
|
56
|
+
per_page: perPage,
|
|
57
|
+
};
|
|
37
58
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
38
59
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
39
60
|
const _response = yield core.fetcher({
|
|
40
61
|
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)}/events`),
|
|
41
62
|
method: "GET",
|
|
42
63
|
headers: _headers,
|
|
43
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
64
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
65
|
+
queryString: core.url
|
|
66
|
+
.queryBuilder()
|
|
67
|
+
.addMany(_queryParams)
|
|
68
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
69
|
+
.build(),
|
|
44
70
|
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,
|
|
45
71
|
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,
|
|
46
72
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -48,25 +74,39 @@ export class EventsClient {
|
|
|
48
74
|
logging: this._options.logging,
|
|
49
75
|
});
|
|
50
76
|
if (_response.ok) {
|
|
51
|
-
return {
|
|
77
|
+
return {
|
|
78
|
+
data: _response.body,
|
|
79
|
+
rawResponse: _response.rawResponse,
|
|
80
|
+
};
|
|
52
81
|
}
|
|
53
82
|
if (_response.error.reason === "status-code") {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
83
|
+
switch (_response.error.statusCode) {
|
|
84
|
+
case 401:
|
|
85
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
86
|
+
case 422:
|
|
87
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
88
|
+
default:
|
|
89
|
+
throw new errors.FiveOneEatError({
|
|
90
|
+
statusCode: _response.error.statusCode,
|
|
91
|
+
body: _response.error.body,
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
59
95
|
}
|
|
60
96
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events");
|
|
61
97
|
});
|
|
62
98
|
}
|
|
63
99
|
/**
|
|
100
|
+
* Retrieve full details for a single upcoming event belonging to the business.
|
|
101
|
+
*
|
|
64
102
|
* @param {FiveOneEat.customer.businesses.GetEventsRequest} request
|
|
65
103
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
104
|
*
|
|
105
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
106
|
+
*
|
|
67
107
|
* @example
|
|
68
108
|
* await client.customer.businesses.events.get({
|
|
69
|
-
* business: "
|
|
109
|
+
* business: "katzs-deli",
|
|
70
110
|
* event: "event"
|
|
71
111
|
* })
|
|
72
112
|
*/
|
|
@@ -91,26 +131,41 @@ export class EventsClient {
|
|
|
91
131
|
logging: this._options.logging,
|
|
92
132
|
});
|
|
93
133
|
if (_response.ok) {
|
|
94
|
-
return {
|
|
134
|
+
return {
|
|
135
|
+
data: _response.body,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
};
|
|
95
138
|
}
|
|
96
139
|
if (_response.error.reason === "status-code") {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
140
|
+
switch (_response.error.statusCode) {
|
|
141
|
+
case 401:
|
|
142
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
143
|
+
default:
|
|
144
|
+
throw new errors.FiveOneEatError({
|
|
145
|
+
statusCode: _response.error.statusCode,
|
|
146
|
+
body: _response.error.body,
|
|
147
|
+
rawResponse: _response.rawResponse,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
102
150
|
}
|
|
103
151
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/events/{event}");
|
|
104
152
|
});
|
|
105
153
|
}
|
|
106
154
|
/**
|
|
107
|
-
*
|
|
155
|
+
* Create or update the authenticated user's RSVP for a business event.
|
|
156
|
+
*
|
|
157
|
+
* @param {FiveOneEat.customer.businesses.StoreEventRsvpRequest} request
|
|
108
158
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
159
|
*
|
|
160
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
161
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
162
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
163
|
+
*
|
|
110
164
|
* @example
|
|
111
165
|
* await client.customer.businesses.events.rsvp({
|
|
112
|
-
* business: "
|
|
113
|
-
* event: "
|
|
166
|
+
* business: "katzs-deli",
|
|
167
|
+
* event: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
168
|
+
* status: "attending"
|
|
114
169
|
* })
|
|
115
170
|
*/
|
|
116
171
|
rsvp(request, requestOptions) {
|
|
@@ -119,14 +174,17 @@ export class EventsClient {
|
|
|
119
174
|
__rsvp(request, requestOptions) {
|
|
120
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
176
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
122
|
-
const { business, event } = request;
|
|
177
|
+
const { business, event } = request, _body = __rest(request, ["business", "event"]);
|
|
123
178
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
124
179
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
125
180
|
const _response = yield core.fetcher({
|
|
126
181
|
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)}/events/${core.url.encodePathParam(event)}/rsvp`),
|
|
127
182
|
method: "POST",
|
|
128
183
|
headers: _headers,
|
|
184
|
+
contentType: "application/json",
|
|
129
185
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
186
|
+
requestType: "json",
|
|
187
|
+
body: _body,
|
|
130
188
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
131
189
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
132
190
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -134,26 +192,43 @@ export class EventsClient {
|
|
|
134
192
|
logging: this._options.logging,
|
|
135
193
|
});
|
|
136
194
|
if (_response.ok) {
|
|
137
|
-
return {
|
|
195
|
+
return {
|
|
196
|
+
data: _response.body,
|
|
197
|
+
rawResponse: _response.rawResponse,
|
|
198
|
+
};
|
|
138
199
|
}
|
|
139
200
|
if (_response.error.reason === "status-code") {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
201
|
+
switch (_response.error.statusCode) {
|
|
202
|
+
case 401:
|
|
203
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
204
|
+
case 404:
|
|
205
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
206
|
+
case 422:
|
|
207
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
208
|
+
default:
|
|
209
|
+
throw new errors.FiveOneEatError({
|
|
210
|
+
statusCode: _response.error.statusCode,
|
|
211
|
+
body: _response.error.body,
|
|
212
|
+
rawResponse: _response.rawResponse,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
145
215
|
}
|
|
146
216
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/events/{event}/rsvp");
|
|
147
217
|
});
|
|
148
218
|
}
|
|
149
219
|
/**
|
|
220
|
+
* Cancel the authenticated user's RSVP for a business event.
|
|
221
|
+
*
|
|
150
222
|
* @param {FiveOneEat.customer.businesses.CancelRsvpEventsRequest} request
|
|
151
223
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
224
|
*
|
|
225
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
226
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
227
|
+
*
|
|
153
228
|
* @example
|
|
154
229
|
* await client.customer.businesses.events.cancelRsvp({
|
|
155
|
-
* business: "
|
|
156
|
-
* event: "
|
|
230
|
+
* business: "katzs-deli",
|
|
231
|
+
* event: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
157
232
|
* })
|
|
158
233
|
*/
|
|
159
234
|
cancelRsvp(request, requestOptions) {
|
|
@@ -177,14 +252,21 @@ export class EventsClient {
|
|
|
177
252
|
logging: this._options.logging,
|
|
178
253
|
});
|
|
179
254
|
if (_response.ok) {
|
|
180
|
-
return { data:
|
|
255
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
181
256
|
}
|
|
182
257
|
if (_response.error.reason === "status-code") {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
258
|
+
switch (_response.error.statusCode) {
|
|
259
|
+
case 401:
|
|
260
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
261
|
+
case 404:
|
|
262
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
263
|
+
default:
|
|
264
|
+
throw new errors.FiveOneEatError({
|
|
265
|
+
statusCode: _response.error.statusCode,
|
|
266
|
+
body: _response.error.body,
|
|
267
|
+
rawResponse: _response.rawResponse,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
188
270
|
}
|
|
189
271
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/businesses/{business}/events/{event}/rsvp");
|
|
190
272
|
});
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* business: "
|
|
5
|
-
* event: "
|
|
4
|
+
* business: "katzs-deli",
|
|
5
|
+
* event: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface CancelRsvpEventsRequest {
|
|
9
|
+
/** The business handle */
|
|
9
10
|
business: string;
|
|
11
|
+
/** The event ID */
|
|
10
12
|
event: string;
|
|
11
13
|
}
|
|
@@ -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 ListEventsRequest {
|
|
8
|
+
/** The business handle */
|
|
8
9
|
business: string;
|
|
10
|
+
/** Page number for pagination */
|
|
11
|
+
page?: number;
|
|
12
|
+
/** Number of events per page */
|
|
13
|
+
per_page?: number;
|
|
9
14
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "katzs-deli",
|
|
5
5
|
* event: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
6
6
|
* status: "attending"
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface StoreEventRsvpRequest {
|
|
10
10
|
/** The business handle */
|
|
11
|
-
|
|
11
|
+
business: string;
|
|
12
12
|
/** The event ID */
|
|
13
13
|
event: string;
|
|
14
14
|
status: StoreEventRsvpRequest.Status;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { CancelRsvpEventsRequest } from "./CancelRsvpEventsRequest.mjs";
|
|
2
2
|
export type { GetEventsRequest } from "./GetEventsRequest.mjs";
|
|
3
3
|
export type { ListEventsRequest } from "./ListEventsRequest.mjs";
|
|
4
|
-
export
|
|
4
|
+
export { StoreEventRsvpRequest } from "./StoreEventRsvpRequest.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { StoreEventRsvpRequest } from "./StoreEventRsvpRequest.mjs";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./bulletins/client/requests/index.mjs";
|
|
2
2
|
export * as bulletins from "./bulletins/index.mjs";
|
|
3
|
+
export * from "./bulletins/types/index.mjs";
|
|
3
4
|
export * from "./events/client/requests/index.mjs";
|
|
4
5
|
export * as events from "./events/index.mjs";
|
|
6
|
+
export * from "./events/types/index.mjs";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./bulletins/client/requests/index.mjs";
|
|
2
2
|
export * as bulletins from "./bulletins/index.mjs";
|
|
3
|
+
export * from "./bulletins/types/index.mjs";
|
|
3
4
|
export * from "./events/client/requests/index.mjs";
|
|
4
5
|
export * as events from "./events/index.mjs";
|
|
6
|
+
export * from "./events/types/index.mjs";
|
|
@@ -3,6 +3,7 @@ export * as auth from "./auth/index.mjs";
|
|
|
3
3
|
export * from "./auth/types/index.mjs";
|
|
4
4
|
export * from "./businesses/client/requests/index.mjs";
|
|
5
5
|
export * as businesses from "./businesses/index.mjs";
|
|
6
|
+
export * from "./businesses/types/index.mjs";
|
|
6
7
|
export * from "./cart/client/requests/index.mjs";
|
|
7
8
|
export * as cart from "./cart/index.mjs";
|
|
8
9
|
export * from "./cart/types/index.mjs";
|
|
@@ -31,3 +32,4 @@ export * as pushNotifications from "./pushNotifications/index.mjs";
|
|
|
31
32
|
export * from "./pushNotifications/types/index.mjs";
|
|
32
33
|
export * from "./shop/client/requests/index.mjs";
|
|
33
34
|
export * as shop from "./shop/index.mjs";
|
|
35
|
+
export * from "./shop/types/index.mjs";
|
|
@@ -3,6 +3,7 @@ export * as auth from "./auth/index.mjs";
|
|
|
3
3
|
export * from "./auth/types/index.mjs";
|
|
4
4
|
export * from "./businesses/client/requests/index.mjs";
|
|
5
5
|
export * as businesses from "./businesses/index.mjs";
|
|
6
|
+
export * from "./businesses/types/index.mjs";
|
|
6
7
|
export * from "./cart/client/requests/index.mjs";
|
|
7
8
|
export * as cart from "./cart/index.mjs";
|
|
8
9
|
export * from "./cart/types/index.mjs";
|
|
@@ -31,3 +32,4 @@ export * as pushNotifications from "./pushNotifications/index.mjs";
|
|
|
31
32
|
export * from "./pushNotifications/types/index.mjs";
|
|
32
33
|
export * from "./shop/client/requests/index.mjs";
|
|
33
34
|
export * as shop from "./shop/index.mjs";
|
|
35
|
+
export * from "./shop/types/index.mjs";
|
|
@@ -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
|
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
|
}
|