@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 CommentsClient {
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -11,53 +11,79 @@ export declare class CommentsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CommentsClient.Options>;
|
|
12
12
|
constructor(options?: CommentsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* Retrieve paginated comments for a published business bulletin.
|
|
15
|
+
*
|
|
14
16
|
* @param {FiveOneEat.customer.businesses.bulletins.ListCommentsRequest} request
|
|
15
17
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
18
|
*
|
|
19
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
21
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
22
|
+
*
|
|
17
23
|
* @example
|
|
18
24
|
* await client.customer.businesses.bulletins.comments.list({
|
|
19
|
-
* business: "
|
|
20
|
-
* bulletin: "
|
|
25
|
+
* business: "katzs-deli",
|
|
26
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
21
27
|
* })
|
|
22
28
|
*/
|
|
23
|
-
list(request: FiveOneEat.customer.businesses.bulletins.ListCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<
|
|
29
|
+
list(request: FiveOneEat.customer.businesses.bulletins.ListCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.ListCommentsResponse>;
|
|
24
30
|
private __list;
|
|
25
31
|
/**
|
|
26
|
-
*
|
|
32
|
+
* Post a comment on a business bulletin. Requires authentication.
|
|
33
|
+
*
|
|
34
|
+
* @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
|
|
27
35
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
36
|
*
|
|
37
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
39
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
40
|
+
*
|
|
29
41
|
* @example
|
|
30
42
|
* await client.customer.businesses.bulletins.comments.create({
|
|
31
|
-
* business: "
|
|
32
|
-
* bulletin: "
|
|
43
|
+
* business: "katzs-deli",
|
|
44
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
45
|
+
* body: "body"
|
|
33
46
|
* })
|
|
34
47
|
*/
|
|
35
|
-
create(request: FiveOneEat.customer.businesses.bulletins.
|
|
48
|
+
create(request: FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.CreateCommentsResponse>;
|
|
36
49
|
private __create;
|
|
37
50
|
/**
|
|
51
|
+
* Retrieve paginated replies for a top-level comment on a published bulletin.
|
|
52
|
+
*
|
|
38
53
|
* @param {FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest} request
|
|
39
54
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
55
|
*
|
|
56
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
57
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
58
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
59
|
+
*
|
|
41
60
|
* @example
|
|
42
61
|
* await client.customer.businesses.bulletins.comments.listReplies({
|
|
43
|
-
* business: "
|
|
44
|
-
* bulletin: "
|
|
45
|
-
* comment: "
|
|
62
|
+
* business: "katzs-deli",
|
|
63
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
64
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789"
|
|
46
65
|
* })
|
|
47
66
|
*/
|
|
48
|
-
listReplies(request: FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<
|
|
67
|
+
listReplies(request: FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsResponse>;
|
|
49
68
|
private __listReplies;
|
|
50
69
|
/**
|
|
51
|
-
*
|
|
70
|
+
* Post a reply to a top-level comment on a published bulletin. Requires authentication.
|
|
71
|
+
*
|
|
72
|
+
* @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest} request
|
|
52
73
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
74
|
*
|
|
75
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
76
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
77
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
78
|
+
*
|
|
54
79
|
* @example
|
|
55
80
|
* await client.customer.businesses.bulletins.comments.reply({
|
|
56
|
-
* business: "
|
|
57
|
-
* bulletin: "
|
|
58
|
-
* comment: "
|
|
81
|
+
* business: "katzs-deli",
|
|
82
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
83
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789",
|
|
84
|
+
* body: "body"
|
|
59
85
|
* })
|
|
60
86
|
*/
|
|
61
|
-
reply(request: FiveOneEat.customer.businesses.bulletins.
|
|
87
|
+
reply(request: FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.ReplyCommentsResponse>;
|
|
62
88
|
private __reply;
|
|
63
89
|
}
|
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.CommentsClient = void 0;
|
|
47
58
|
const BaseClient_js_1 = require("../../../../../../../../../../BaseClient.js");
|
|
@@ -50,18 +61,25 @@ const core = __importStar(require("../../../../../../../../../../core/index.js")
|
|
|
50
61
|
const environments = __importStar(require("../../../../../../../../../../environments.js"));
|
|
51
62
|
const handleNonStatusCodeError_js_1 = require("../../../../../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
63
|
const errors = __importStar(require("../../../../../../../../../../errors/index.js"));
|
|
64
|
+
const FiveOneEat = __importStar(require("../../../../../../../../../index.js"));
|
|
53
65
|
class CommentsClient {
|
|
54
66
|
constructor(options = {}) {
|
|
55
67
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
56
68
|
}
|
|
57
69
|
/**
|
|
70
|
+
* Retrieve paginated comments for a published business bulletin.
|
|
71
|
+
*
|
|
58
72
|
* @param {FiveOneEat.customer.businesses.bulletins.ListCommentsRequest} request
|
|
59
73
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
74
|
*
|
|
75
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
76
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
77
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
78
|
+
*
|
|
61
79
|
* @example
|
|
62
80
|
* await client.customer.businesses.bulletins.comments.list({
|
|
63
|
-
* business: "
|
|
64
|
-
* bulletin: "
|
|
81
|
+
* business: "katzs-deli",
|
|
82
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
65
83
|
* })
|
|
66
84
|
*/
|
|
67
85
|
list(request, requestOptions) {
|
|
@@ -70,14 +88,23 @@ class CommentsClient {
|
|
|
70
88
|
__list(request, requestOptions) {
|
|
71
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
90
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
73
|
-
const { business, bulletin } = request;
|
|
91
|
+
const { business, bulletin, page, per_page: perPage } = request;
|
|
92
|
+
const _queryParams = {
|
|
93
|
+
page,
|
|
94
|
+
per_page: perPage,
|
|
95
|
+
};
|
|
74
96
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
75
97
|
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);
|
|
76
98
|
const _response = yield core.fetcher({
|
|
77
99
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
|
|
78
100
|
method: "GET",
|
|
79
101
|
headers: _headers,
|
|
80
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
102
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
103
|
+
queryString: core.url
|
|
104
|
+
.queryBuilder()
|
|
105
|
+
.addMany(_queryParams)
|
|
106
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
107
|
+
.build(),
|
|
81
108
|
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,
|
|
82
109
|
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,
|
|
83
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -85,26 +112,45 @@ class CommentsClient {
|
|
|
85
112
|
logging: this._options.logging,
|
|
86
113
|
});
|
|
87
114
|
if (_response.ok) {
|
|
88
|
-
return {
|
|
115
|
+
return {
|
|
116
|
+
data: _response.body,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
};
|
|
89
119
|
}
|
|
90
120
|
if (_response.error.reason === "status-code") {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
121
|
+
switch (_response.error.statusCode) {
|
|
122
|
+
case 401:
|
|
123
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
124
|
+
case 404:
|
|
125
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
126
|
+
case 422:
|
|
127
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
128
|
+
default:
|
|
129
|
+
throw new errors.FiveOneEatError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
96
135
|
}
|
|
97
136
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/bulletins/{bulletin}/comments");
|
|
98
137
|
});
|
|
99
138
|
}
|
|
100
139
|
/**
|
|
101
|
-
*
|
|
140
|
+
* Post a comment on a business bulletin. Requires authentication.
|
|
141
|
+
*
|
|
142
|
+
* @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
|
|
102
143
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
144
|
*
|
|
145
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
146
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
147
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
148
|
+
*
|
|
104
149
|
* @example
|
|
105
150
|
* await client.customer.businesses.bulletins.comments.create({
|
|
106
|
-
* business: "
|
|
107
|
-
* bulletin: "
|
|
151
|
+
* business: "katzs-deli",
|
|
152
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
153
|
+
* body: "body"
|
|
108
154
|
* })
|
|
109
155
|
*/
|
|
110
156
|
create(request, requestOptions) {
|
|
@@ -113,14 +159,17 @@ class CommentsClient {
|
|
|
113
159
|
__create(request, requestOptions) {
|
|
114
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
161
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
116
|
-
const { business, bulletin } = request;
|
|
162
|
+
const { business, bulletin } = request, _body = __rest(request, ["business", "bulletin"]);
|
|
117
163
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
118
164
|
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);
|
|
119
165
|
const _response = yield core.fetcher({
|
|
120
166
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
|
|
121
167
|
method: "POST",
|
|
122
168
|
headers: _headers,
|
|
169
|
+
contentType: "application/json",
|
|
123
170
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
171
|
+
requestType: "json",
|
|
172
|
+
body: _body,
|
|
124
173
|
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,
|
|
125
174
|
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,
|
|
126
175
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -128,27 +177,45 @@ class CommentsClient {
|
|
|
128
177
|
logging: this._options.logging,
|
|
129
178
|
});
|
|
130
179
|
if (_response.ok) {
|
|
131
|
-
return {
|
|
180
|
+
return {
|
|
181
|
+
data: _response.body,
|
|
182
|
+
rawResponse: _response.rawResponse,
|
|
183
|
+
};
|
|
132
184
|
}
|
|
133
185
|
if (_response.error.reason === "status-code") {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
186
|
+
switch (_response.error.statusCode) {
|
|
187
|
+
case 401:
|
|
188
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 404:
|
|
190
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
191
|
+
case 422:
|
|
192
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
193
|
+
default:
|
|
194
|
+
throw new errors.FiveOneEatError({
|
|
195
|
+
statusCode: _response.error.statusCode,
|
|
196
|
+
body: _response.error.body,
|
|
197
|
+
rawResponse: _response.rawResponse,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
139
200
|
}
|
|
140
201
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/bulletins/{bulletin}/comments");
|
|
141
202
|
});
|
|
142
203
|
}
|
|
143
204
|
/**
|
|
205
|
+
* Retrieve paginated replies for a top-level comment on a published bulletin.
|
|
206
|
+
*
|
|
144
207
|
* @param {FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest} request
|
|
145
208
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
146
209
|
*
|
|
210
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
211
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
212
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
213
|
+
*
|
|
147
214
|
* @example
|
|
148
215
|
* await client.customer.businesses.bulletins.comments.listReplies({
|
|
149
|
-
* business: "
|
|
150
|
-
* bulletin: "
|
|
151
|
-
* comment: "
|
|
216
|
+
* business: "katzs-deli",
|
|
217
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
218
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789"
|
|
152
219
|
* })
|
|
153
220
|
*/
|
|
154
221
|
listReplies(request, requestOptions) {
|
|
@@ -157,14 +224,23 @@ class CommentsClient {
|
|
|
157
224
|
__listReplies(request, requestOptions) {
|
|
158
225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
159
226
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
160
|
-
const { business, bulletin, comment } = request;
|
|
227
|
+
const { business, bulletin, comment, page, per_page: perPage } = request;
|
|
228
|
+
const _queryParams = {
|
|
229
|
+
page,
|
|
230
|
+
per_page: perPage,
|
|
231
|
+
};
|
|
161
232
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
162
233
|
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);
|
|
163
234
|
const _response = yield core.fetcher({
|
|
164
235
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
|
|
165
236
|
method: "GET",
|
|
166
237
|
headers: _headers,
|
|
167
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
238
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
239
|
+
queryString: core.url
|
|
240
|
+
.queryBuilder()
|
|
241
|
+
.addMany(_queryParams)
|
|
242
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
243
|
+
.build(),
|
|
168
244
|
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,
|
|
169
245
|
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,
|
|
170
246
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -172,27 +248,46 @@ class CommentsClient {
|
|
|
172
248
|
logging: this._options.logging,
|
|
173
249
|
});
|
|
174
250
|
if (_response.ok) {
|
|
175
|
-
return {
|
|
251
|
+
return {
|
|
252
|
+
data: _response.body,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
254
|
+
};
|
|
176
255
|
}
|
|
177
256
|
if (_response.error.reason === "status-code") {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
257
|
+
switch (_response.error.statusCode) {
|
|
258
|
+
case 401:
|
|
259
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
260
|
+
case 404:
|
|
261
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
262
|
+
case 422:
|
|
263
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
264
|
+
default:
|
|
265
|
+
throw new errors.FiveOneEatError({
|
|
266
|
+
statusCode: _response.error.statusCode,
|
|
267
|
+
body: _response.error.body,
|
|
268
|
+
rawResponse: _response.rawResponse,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
183
271
|
}
|
|
184
272
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/bulletins/{bulletin}/comments/{comment}/replies");
|
|
185
273
|
});
|
|
186
274
|
}
|
|
187
275
|
/**
|
|
188
|
-
*
|
|
276
|
+
* Post a reply to a top-level comment on a published bulletin. Requires authentication.
|
|
277
|
+
*
|
|
278
|
+
* @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest} request
|
|
189
279
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
280
|
*
|
|
281
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
282
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
283
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
284
|
+
*
|
|
191
285
|
* @example
|
|
192
286
|
* await client.customer.businesses.bulletins.comments.reply({
|
|
193
|
-
* business: "
|
|
194
|
-
* bulletin: "
|
|
195
|
-
* comment: "
|
|
287
|
+
* business: "katzs-deli",
|
|
288
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
289
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789",
|
|
290
|
+
* body: "body"
|
|
196
291
|
* })
|
|
197
292
|
*/
|
|
198
293
|
reply(request, requestOptions) {
|
|
@@ -201,14 +296,17 @@ class CommentsClient {
|
|
|
201
296
|
__reply(request, requestOptions) {
|
|
202
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
203
298
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
204
|
-
const { business, bulletin, comment } = request;
|
|
299
|
+
const { business, bulletin, comment } = request, _body = __rest(request, ["business", "bulletin", "comment"]);
|
|
205
300
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
206
301
|
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);
|
|
207
302
|
const _response = yield core.fetcher({
|
|
208
303
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/businesses/${core.url.encodePathParam(business)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
|
|
209
304
|
method: "POST",
|
|
210
305
|
headers: _headers,
|
|
306
|
+
contentType: "application/json",
|
|
211
307
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
308
|
+
requestType: "json",
|
|
309
|
+
body: _body,
|
|
212
310
|
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,
|
|
213
311
|
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,
|
|
214
312
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -216,14 +314,26 @@ class CommentsClient {
|
|
|
216
314
|
logging: this._options.logging,
|
|
217
315
|
});
|
|
218
316
|
if (_response.ok) {
|
|
219
|
-
return {
|
|
317
|
+
return {
|
|
318
|
+
data: _response.body,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
};
|
|
220
321
|
}
|
|
221
322
|
if (_response.error.reason === "status-code") {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
323
|
+
switch (_response.error.statusCode) {
|
|
324
|
+
case 401:
|
|
325
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
326
|
+
case 404:
|
|
327
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
328
|
+
case 422:
|
|
329
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
330
|
+
default:
|
|
331
|
+
throw new errors.FiveOneEatError({
|
|
332
|
+
statusCode: _response.error.statusCode,
|
|
333
|
+
body: _response.error.body,
|
|
334
|
+
rawResponse: _response.rawResponse,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
227
337
|
}
|
|
228
338
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{business}/bulletins/{bulletin}/comments/{comment}/replies");
|
|
229
339
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "katzs-deli",
|
|
5
5
|
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
6
6
|
* body: "body"
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest {
|
|
10
10
|
/** The business handle */
|
|
11
|
-
|
|
11
|
+
business: string;
|
|
12
12
|
/** The bulletin ID */
|
|
13
13
|
bulletin: string;
|
|
14
14
|
body: string;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* business: "
|
|
5
|
-
* bulletin: "
|
|
4
|
+
* business: "katzs-deli",
|
|
5
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface ListCommentsRequest {
|
|
9
|
+
/** The business handle */
|
|
9
10
|
business: string;
|
|
11
|
+
/** The bulletin ID */
|
|
10
12
|
bulletin: string;
|
|
13
|
+
/** Page number for pagination */
|
|
14
|
+
page?: number;
|
|
15
|
+
/** Number of comments per page */
|
|
16
|
+
per_page?: number;
|
|
11
17
|
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* business: "
|
|
5
|
-
* bulletin: "
|
|
6
|
-
* comment: "
|
|
4
|
+
* business: "katzs-deli",
|
|
5
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
6
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789"
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface ListRepliesCommentsRequest {
|
|
10
|
+
/** The business handle */
|
|
10
11
|
business: string;
|
|
12
|
+
/** The bulletin ID */
|
|
11
13
|
bulletin: string;
|
|
14
|
+
/** The comment ID */
|
|
12
15
|
comment: string;
|
|
16
|
+
/** Page number for pagination */
|
|
17
|
+
page?: number;
|
|
18
|
+
/** Number of replies per page */
|
|
19
|
+
per_page?: number;
|
|
13
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
*
|
|
4
|
+
* business: "katzs-deli",
|
|
5
5
|
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
6
6
|
* comment: "01950e7d-5678-7000-abcd-ef0123456789",
|
|
7
7
|
* body: "body"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export interface StoreBulletinCommentReplyRequest {
|
|
11
11
|
/** The business handle */
|
|
12
|
-
|
|
12
|
+
business: string;
|
|
13
13
|
/** The bulletin ID */
|
|
14
14
|
bulletin: string;
|
|
15
15
|
/** The comment ID */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest } from "./AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js";
|
|
2
2
|
export type { ListCommentsRequest } from "./ListCommentsRequest.js";
|
|
3
3
|
export type { ListRepliesCommentsRequest } from "./ListRepliesCommentsRequest.js";
|
|
4
|
-
export type {
|
|
4
|
+
export type { StoreBulletinCommentReplyRequest } from "./StoreBulletinCommentReplyRequest.js";
|
|
@@ -14,5 +14,7 @@ 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("./
|
|
17
|
+
__exportStar(require("./CreateCommentsResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./ListCommentsResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./ListRepliesCommentsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./ReplyCommentsResponse.js"), exports);
|
package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/index.js
CHANGED
|
@@ -39,3 +39,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.comments = void 0;
|
|
40
40
|
__exportStar(require("./comments/client/requests/index.js"), exports);
|
|
41
41
|
exports.comments = __importStar(require("./comments/index.js"));
|
|
42
|
+
__exportStar(require("./comments/types/index.js"), exports);
|
package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListBulletinsResponse.js";
|
|
@@ -14,4 +14,4 @@ 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("./
|
|
17
|
+
__exportStar(require("./ListBulletinsResponse.js"), exports);
|