@51eat/sdk 0.0.19 → 0.0.21
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 +15 -18
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +20 -10
- package/dist/cjs/api/resources/business/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/business/client/Client.js +14 -4
- package/dist/cjs/api/resources/business/resources/gallery/client/Client.d.ts +86 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/Client.js +364 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.d.ts +21 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.ts +11 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.d.ts +11 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/gallery/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/gallery/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/gallery/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/gallery/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/gallery/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/DeleteGalleryResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/DeleteGalleryResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/ListGalleryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/ListGalleryResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/ReorderGalleryResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/ReorderGalleryResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/UpdateGalleryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/UpdateGalleryResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/UploadGalleryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/UploadGalleryResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/gallery/types/index.js +21 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/index.js +5 -1
- package/dist/cjs/api/resources/business/resources/messaging/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/business/resources/messaging/client/Client.js +21 -0
- package/dist/cjs/api/resources/business/resources/messaging/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/messaging/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/exports.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/exports.js +22 -0
- package/dist/cjs/api/resources/business/resources/messaging/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.d.ts +45 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.js +182 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/index.js +45 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/Client.js +312 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.d.ts +22 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.js +12 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/index.js +18 -0
- package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/businessMessaging/client/Client.js +118 -0
- package/dist/cjs/api/resources/businessMessaging/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/client/index.js +17 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.ts +13 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.js +3 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/businessMessaging/exports.d.ts +2 -0
- package/dist/cjs/api/resources/businessMessaging/exports.js +21 -0
- package/dist/cjs/api/resources/businessMessaging/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessMessaging/index.js +17 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/Client.js +182 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/index.js +17 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.ts +9 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.js +3 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessPushNotifications/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/businessPushNotifications/exports.d.ts +2 -0
- package/dist/cjs/api/resources/businessPushNotifications/exports.js +21 -0
- package/dist/cjs/api/resources/businessPushNotifications/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessPushNotifications/index.js +18 -0
- package/dist/cjs/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.ts +7 -0
- package/dist/cjs/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.js +3 -0
- package/dist/cjs/api/resources/businessPushNotifications/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessPushNotifications/types/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/pushNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/pushNotifications/client/Client.js +1 -1
- package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.d.ts +19 -0
- package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.js +11 -0
- package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/index.js +3 -3
- package/dist/cjs/api/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/index.js +6 -1
- package/dist/cjs/api/types/BusinessConversation.d.ts +20 -0
- package/dist/cjs/api/types/BusinessConversation.js +3 -0
- package/dist/cjs/api/types/BusinessMessage.d.ts +20 -0
- package/dist/cjs/api/types/BusinessMessage.js +3 -0
- package/dist/cjs/api/types/BusinessPhoto.d.ts +9 -0
- package/dist/cjs/api/types/BusinessPhoto.js +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +10 -0
- package/dist/esm/api/resources/business/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/business/client/Client.mjs +10 -0
- package/dist/esm/api/resources/business/resources/gallery/client/Client.d.mts +86 -0
- package/dist/esm/api/resources/business/resources/gallery/client/Client.mjs +327 -0
- package/dist/esm/api/resources/business/resources/gallery/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/gallery/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.d.mts +21 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.mts +11 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.d.mts +11 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/gallery/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/gallery/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/gallery/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/gallery/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/gallery/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/types/DeleteGalleryResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/gallery/types/DeleteGalleryResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/gallery/types/ListGalleryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/gallery/types/ListGalleryResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/types/ReorderGalleryResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/gallery/types/ReorderGalleryResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/gallery/types/UpdateGalleryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/gallery/types/UpdateGalleryResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/types/UploadGalleryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/gallery/types/UploadGalleryResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/gallery/types/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/gallery/types/index.mjs +5 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/index.mjs +4 -0
- package/dist/esm/api/resources/business/resources/messaging/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/business/resources/messaging/client/Client.mjs +17 -0
- package/dist/esm/api/resources/business/resources/messaging/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/messaging/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/messaging/exports.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/messaging/exports.mjs +4 -0
- package/dist/esm/api/resources/business/resources/messaging/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.d.mts +45 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.mjs +145 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/index.mjs +6 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/Client.mjs +275 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.d.mts +22 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.mjs +9 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/index.mjs +2 -0
- package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/businessMessaging/client/Client.mjs +81 -0
- package/dist/esm/api/resources/businessMessaging/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.mts +13 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.mjs +2 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/businessMessaging/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessMessaging/exports.mjs +3 -0
- package/dist/esm/api/resources/businessMessaging/index.d.mts +1 -0
- package/dist/esm/api/resources/businessMessaging/index.mjs +1 -0
- package/dist/esm/api/resources/businessPushNotifications/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/businessPushNotifications/client/Client.mjs +145 -0
- package/dist/esm/api/resources/businessPushNotifications/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessPushNotifications/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.mts +9 -0
- package/dist/esm/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.mjs +2 -0
- package/dist/esm/api/resources/businessPushNotifications/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/businessPushNotifications/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/businessPushNotifications/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessPushNotifications/exports.mjs +3 -0
- package/dist/esm/api/resources/businessPushNotifications/index.d.mts +2 -0
- package/dist/esm/api/resources/businessPushNotifications/index.mjs +2 -0
- package/dist/esm/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.mts +7 -0
- package/dist/esm/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.mjs +2 -0
- package/dist/esm/api/resources/businessPushNotifications/types/index.d.mts +1 -0
- package/dist/esm/api/resources/businessPushNotifications/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/pushNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/pushNotifications/client/Client.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.d.mts +19 -0
- package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.mjs +8 -0
- package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/index.mjs +5 -0
- package/dist/esm/api/types/BusinessConversation.d.mts +20 -0
- package/dist/esm/api/types/BusinessConversation.mjs +2 -0
- package/dist/esm/api/types/BusinessMessage.d.mts +20 -0
- package/dist/esm/api/types/BusinessMessage.mjs +2 -0
- package/dist/esm/api/types/BusinessPhoto.d.mts +9 -0
- package/dist/esm/api/types/BusinessPhoto.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +67 -1
- package/reference.md +1116 -271
- /package/dist/cjs/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.js +0 -0
- /package/dist/esm/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.mjs +0 -0
package/README.md
CHANGED
|
@@ -45,12 +45,9 @@ Instantiate and use the client with the following:
|
|
|
45
45
|
import { FiveOneEatClient } from "@51eat/sdk";
|
|
46
46
|
|
|
47
47
|
const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
|
|
48
|
-
await client.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
ticket_type_id: "ticket_type_id",
|
|
52
|
-
quantity: 1
|
|
53
|
-
}]
|
|
48
|
+
await client.businessMessaging.businessChannelAuthAuthenticate({
|
|
49
|
+
channel_name: "channel_name",
|
|
50
|
+
socket_id: "socket_id"
|
|
54
51
|
});
|
|
55
52
|
```
|
|
56
53
|
|
|
@@ -74,7 +71,7 @@ following namespace:
|
|
|
74
71
|
```typescript
|
|
75
72
|
import { FiveOneEat } from "@51eat/sdk";
|
|
76
73
|
|
|
77
|
-
const request: FiveOneEat.
|
|
74
|
+
const request: FiveOneEat.BusinessChannelAuthAuthenticateRequest = {
|
|
78
75
|
...
|
|
79
76
|
};
|
|
80
77
|
```
|
|
@@ -88,7 +85,7 @@ will be thrown.
|
|
|
88
85
|
import { FiveOneEatError } from "@51eat/sdk";
|
|
89
86
|
|
|
90
87
|
try {
|
|
91
|
-
await client.
|
|
88
|
+
await client.businessMessaging.businessChannelAuthAuthenticate(...);
|
|
92
89
|
} catch (err) {
|
|
93
90
|
if (err instanceof FiveOneEatError) {
|
|
94
91
|
console.log(err.statusCode);
|
|
@@ -109,8 +106,8 @@ import * as fs from "fs";
|
|
|
109
106
|
import { FiveOneEatClient } from "@51eat/sdk";
|
|
110
107
|
|
|
111
108
|
const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
|
|
112
|
-
await client.business.
|
|
113
|
-
|
|
109
|
+
await client.business.gallery.upload({
|
|
110
|
+
photo: fs.createReadStream("/path/to/your/file")
|
|
114
111
|
});
|
|
115
112
|
```
|
|
116
113
|
The client accepts a variety of types for file upload parameters:
|
|
@@ -150,9 +147,9 @@ For example, `fs.ReadStream` has a `path` property which the SDK uses to retriev
|
|
|
150
147
|
This SDK supports direct imports of subpackage clients, which allows JavaScript bundlers to tree-shake and include only the imported subpackage code. This results in much smaller bundle sizes.
|
|
151
148
|
|
|
152
149
|
```typescript
|
|
153
|
-
import {
|
|
150
|
+
import { BusinessMessagingClient } from '@51eat/sdk/businessMessaging';
|
|
154
151
|
|
|
155
|
-
const client = new
|
|
152
|
+
const client = new BusinessMessagingClient({...});
|
|
156
153
|
```
|
|
157
154
|
|
|
158
155
|
### Additional Headers
|
|
@@ -169,7 +166,7 @@ const client = new FiveOneEatClient({
|
|
|
169
166
|
}
|
|
170
167
|
});
|
|
171
168
|
|
|
172
|
-
const response = await client.
|
|
169
|
+
const response = await client.businessMessaging.businessChannelAuthAuthenticate(..., {
|
|
173
170
|
headers: {
|
|
174
171
|
'X-Custom-Header': 'custom value'
|
|
175
172
|
}
|
|
@@ -181,7 +178,7 @@ const response = await client.customerEvents.holdTickets(..., {
|
|
|
181
178
|
If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
|
|
182
179
|
|
|
183
180
|
```typescript
|
|
184
|
-
const response = await client.
|
|
181
|
+
const response = await client.businessMessaging.businessChannelAuthAuthenticate(..., {
|
|
185
182
|
queryParams: {
|
|
186
183
|
'customQueryParamKey': 'custom query param value'
|
|
187
184
|
}
|
|
@@ -203,7 +200,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
|
|
|
203
200
|
Use the `maxRetries` request option to configure this behavior.
|
|
204
201
|
|
|
205
202
|
```typescript
|
|
206
|
-
const response = await client.
|
|
203
|
+
const response = await client.businessMessaging.businessChannelAuthAuthenticate(..., {
|
|
207
204
|
maxRetries: 0 // override maxRetries at the request level
|
|
208
205
|
});
|
|
209
206
|
```
|
|
@@ -213,7 +210,7 @@ const response = await client.customerEvents.holdTickets(..., {
|
|
|
213
210
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
214
211
|
|
|
215
212
|
```typescript
|
|
216
|
-
const response = await client.
|
|
213
|
+
const response = await client.businessMessaging.businessChannelAuthAuthenticate(..., {
|
|
217
214
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
218
215
|
});
|
|
219
216
|
```
|
|
@@ -224,7 +221,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
224
221
|
|
|
225
222
|
```typescript
|
|
226
223
|
const controller = new AbortController();
|
|
227
|
-
const response = await client.
|
|
224
|
+
const response = await client.businessMessaging.businessChannelAuthAuthenticate(..., {
|
|
228
225
|
abortSignal: controller.signal
|
|
229
226
|
});
|
|
230
227
|
controller.abort(); // aborts the request
|
|
@@ -236,7 +233,7 @@ The SDK provides access to raw response data, including headers, through the `.w
|
|
|
236
233
|
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
237
234
|
|
|
238
235
|
```typescript
|
|
239
|
-
const { data, rawResponse } = await client.
|
|
236
|
+
const { data, rawResponse } = await client.businessMessaging.businessChannelAuthAuthenticate(...).withRawResponse();
|
|
240
237
|
|
|
241
238
|
console.log(data);
|
|
242
239
|
console.log(rawResponse.headers['X-My-Header']);
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.21",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.21",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BusinessClient } from "./api/resources/business/client/Client.js";
|
|
2
|
+
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.js";
|
|
3
|
+
import { BusinessPushNotificationsClient } from "./api/resources/businessPushNotifications/client/Client.js";
|
|
2
4
|
import { CustomerClient } from "./api/resources/customer/client/Client.js";
|
|
3
5
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.js";
|
|
4
6
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
|
|
@@ -14,6 +16,8 @@ export declare namespace FiveOneEatClient {
|
|
|
14
16
|
}
|
|
15
17
|
export declare class FiveOneEatClient {
|
|
16
18
|
protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
|
|
19
|
+
protected _businessMessaging: BusinessMessagingClient | undefined;
|
|
20
|
+
protected _businessPushNotifications: BusinessPushNotificationsClient | undefined;
|
|
17
21
|
protected _customerEvents: CustomerEventsClient | undefined;
|
|
18
22
|
protected _customerMyAccount: CustomerMyAccountClient | undefined;
|
|
19
23
|
protected _customer: CustomerClient | undefined;
|
|
@@ -21,6 +25,8 @@ export declare class FiveOneEatClient {
|
|
|
21
25
|
protected _serveAd: ServeAdClient | undefined;
|
|
22
26
|
protected _business: BusinessClient | undefined;
|
|
23
27
|
constructor(options?: FiveOneEatClient.Options);
|
|
28
|
+
get businessMessaging(): BusinessMessagingClient;
|
|
29
|
+
get businessPushNotifications(): BusinessPushNotificationsClient;
|
|
24
30
|
get customerEvents(): CustomerEventsClient;
|
|
25
31
|
get customerMyAccount(): CustomerMyAccountClient;
|
|
26
32
|
get customer(): CustomerClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,36 +45,46 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.FiveOneEatClient = void 0;
|
|
47
47
|
const Client_js_1 = require("./api/resources/business/client/Client.js");
|
|
48
|
-
const Client_js_2 = require("./api/resources/
|
|
49
|
-
const Client_js_3 = require("./api/resources/
|
|
50
|
-
const Client_js_4 = require("./api/resources/
|
|
51
|
-
const Client_js_5 = require("./api/resources/
|
|
52
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
+
const Client_js_2 = require("./api/resources/businessMessaging/client/Client.js");
|
|
49
|
+
const Client_js_3 = require("./api/resources/businessPushNotifications/client/Client.js");
|
|
50
|
+
const Client_js_4 = require("./api/resources/customer/client/Client.js");
|
|
51
|
+
const Client_js_5 = require("./api/resources/customerEvents/client/Client.js");
|
|
52
|
+
const Client_js_6 = require("./api/resources/customerMyAccount/client/Client.js");
|
|
53
|
+
const Client_js_7 = require("./api/resources/recordClick/client/Client.js");
|
|
54
|
+
const Client_js_8 = require("./api/resources/serveAd/client/Client.js");
|
|
53
55
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
54
56
|
const core = __importStar(require("./core/index.js"));
|
|
55
57
|
class FiveOneEatClient {
|
|
56
58
|
constructor(options = {}) {
|
|
57
59
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
60
|
}
|
|
61
|
+
get businessMessaging() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new Client_js_2.BusinessMessagingClient(this._options)));
|
|
64
|
+
}
|
|
65
|
+
get businessPushNotifications() {
|
|
66
|
+
var _a;
|
|
67
|
+
return ((_a = this._businessPushNotifications) !== null && _a !== void 0 ? _a : (this._businessPushNotifications = new Client_js_3.BusinessPushNotificationsClient(this._options)));
|
|
68
|
+
}
|
|
59
69
|
get customerEvents() {
|
|
60
70
|
var _a;
|
|
61
|
-
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new
|
|
71
|
+
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new Client_js_5.CustomerEventsClient(this._options)));
|
|
62
72
|
}
|
|
63
73
|
get customerMyAccount() {
|
|
64
74
|
var _a;
|
|
65
|
-
return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new
|
|
75
|
+
return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_6.CustomerMyAccountClient(this._options)));
|
|
66
76
|
}
|
|
67
77
|
get customer() {
|
|
68
78
|
var _a;
|
|
69
|
-
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new
|
|
79
|
+
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_4.CustomerClient(this._options)));
|
|
70
80
|
}
|
|
71
81
|
get recordClick() {
|
|
72
82
|
var _a;
|
|
73
|
-
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new
|
|
83
|
+
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_7.RecordClickClient(this._options)));
|
|
74
84
|
}
|
|
75
85
|
get serveAd() {
|
|
76
86
|
var _a;
|
|
77
|
-
return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new
|
|
87
|
+
return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_8.ServeAdClient(this._options)));
|
|
78
88
|
}
|
|
79
89
|
get business() {
|
|
80
90
|
var _a;
|
|
@@ -2,7 +2,9 @@ import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import { AuthClient } from "../resources/auth/client/Client.js";
|
|
4
4
|
import { BulletinsClient } from "../resources/bulletins/client/Client.js";
|
|
5
|
+
import { GalleryClient } from "../resources/gallery/client/Client.js";
|
|
5
6
|
import { MenusClient } from "../resources/menus/client/Client.js";
|
|
7
|
+
import { MessagingClient } from "../resources/messaging/client/Client.js";
|
|
6
8
|
import { ProfileClient } from "../resources/profile/client/Client.js";
|
|
7
9
|
export declare namespace BusinessClient {
|
|
8
10
|
type Options = BaseClientOptions;
|
|
@@ -11,11 +13,15 @@ export declare class BusinessClient {
|
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<BusinessClient.Options>;
|
|
12
14
|
protected _auth: AuthClient | undefined;
|
|
13
15
|
protected _bulletins: BulletinsClient | undefined;
|
|
16
|
+
protected _gallery: GalleryClient | undefined;
|
|
14
17
|
protected _menus: MenusClient | undefined;
|
|
15
18
|
protected _profile: ProfileClient | undefined;
|
|
19
|
+
protected _messaging: MessagingClient | undefined;
|
|
16
20
|
constructor(options?: BusinessClient.Options);
|
|
17
21
|
get auth(): AuthClient;
|
|
18
22
|
get bulletins(): BulletinsClient;
|
|
23
|
+
get gallery(): GalleryClient;
|
|
19
24
|
get menus(): MenusClient;
|
|
20
25
|
get profile(): ProfileClient;
|
|
26
|
+
get messaging(): MessagingClient;
|
|
21
27
|
}
|
|
@@ -5,8 +5,10 @@ exports.BusinessClient = void 0;
|
|
|
5
5
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
6
6
|
const Client_js_1 = require("../resources/auth/client/Client.js");
|
|
7
7
|
const Client_js_2 = require("../resources/bulletins/client/Client.js");
|
|
8
|
-
const Client_js_3 = require("../resources/
|
|
9
|
-
const Client_js_4 = require("../resources/
|
|
8
|
+
const Client_js_3 = require("../resources/gallery/client/Client.js");
|
|
9
|
+
const Client_js_4 = require("../resources/menus/client/Client.js");
|
|
10
|
+
const Client_js_5 = require("../resources/messaging/client/Client.js");
|
|
11
|
+
const Client_js_6 = require("../resources/profile/client/Client.js");
|
|
10
12
|
class BusinessClient {
|
|
11
13
|
constructor(options = {}) {
|
|
12
14
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -19,13 +21,21 @@ class BusinessClient {
|
|
|
19
21
|
var _a;
|
|
20
22
|
return ((_a = this._bulletins) !== null && _a !== void 0 ? _a : (this._bulletins = new Client_js_2.BulletinsClient(this._options)));
|
|
21
23
|
}
|
|
24
|
+
get gallery() {
|
|
25
|
+
var _a;
|
|
26
|
+
return ((_a = this._gallery) !== null && _a !== void 0 ? _a : (this._gallery = new Client_js_3.GalleryClient(this._options)));
|
|
27
|
+
}
|
|
22
28
|
get menus() {
|
|
23
29
|
var _a;
|
|
24
|
-
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new
|
|
30
|
+
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new Client_js_4.MenusClient(this._options)));
|
|
25
31
|
}
|
|
26
32
|
get profile() {
|
|
27
33
|
var _a;
|
|
28
|
-
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new
|
|
34
|
+
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_js_6.ProfileClient(this._options)));
|
|
35
|
+
}
|
|
36
|
+
get messaging() {
|
|
37
|
+
var _a;
|
|
38
|
+
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new Client_js_5.MessagingClient(this._options)));
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
41
|
exports.BusinessClient = BusinessClient;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.js";
|
|
5
|
+
export declare namespace GalleryClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class GalleryClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<GalleryClient.Options>;
|
|
12
|
+
constructor(options?: GalleryClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
+
*
|
|
16
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* await client.business.gallery.list()
|
|
20
|
+
*/
|
|
21
|
+
list(requestOptions?: GalleryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListGalleryResponse>;
|
|
22
|
+
private __list;
|
|
23
|
+
/**
|
|
24
|
+
* @param {FiveOneEat.business.StoreGalleryPhotoRequest} request
|
|
25
|
+
* @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
28
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* import { createReadStream } from "fs";
|
|
32
|
+
* await client.business.gallery.upload({
|
|
33
|
+
* photo: fs.createReadStream("/path/to/your/file")
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
upload(request: FiveOneEat.business.StoreGalleryPhotoRequest, requestOptions?: GalleryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.UploadGalleryResponse>;
|
|
37
|
+
private __upload;
|
|
38
|
+
/**
|
|
39
|
+
* @param {FiveOneEat.business.ReorderGalleryRequest} request
|
|
40
|
+
* @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
43
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.business.gallery.reorder({
|
|
47
|
+
* photos: [{
|
|
48
|
+
* id: "id",
|
|
49
|
+
* sort_order: 1
|
|
50
|
+
* }]
|
|
51
|
+
* })
|
|
52
|
+
*/
|
|
53
|
+
reorder(request: FiveOneEat.business.ReorderGalleryRequest, requestOptions?: GalleryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ReorderGalleryResponse>;
|
|
54
|
+
private __reorder;
|
|
55
|
+
/**
|
|
56
|
+
* @param {FiveOneEat.business.UpdateGalleryPhotoRequest} request
|
|
57
|
+
* @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
60
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
61
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
62
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.business.gallery.update({
|
|
66
|
+
* photo: "photo"
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
update(request: FiveOneEat.business.UpdateGalleryPhotoRequest, requestOptions?: GalleryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.UpdateGalleryResponse>;
|
|
70
|
+
private __update;
|
|
71
|
+
/**
|
|
72
|
+
* @param {FiveOneEat.business.DeleteGalleryRequest} request
|
|
73
|
+
* @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
76
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
77
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.business.gallery.delete({
|
|
81
|
+
* photo: "photo"
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
delete(request: FiveOneEat.business.DeleteGalleryRequest, requestOptions?: GalleryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.DeleteGalleryResponse>;
|
|
85
|
+
private __delete;
|
|
86
|
+
}
|