@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
|
@@ -59,7 +59,7 @@ class PushNotificationsClient {
|
|
|
59
59
|
* Register (or update) the authenticated user's Expo push token for a device. If
|
|
60
60
|
* a `device_id` is provided, an existing registration for that device is updated.
|
|
61
61
|
*
|
|
62
|
-
* @param {FiveOneEat.customer.
|
|
62
|
+
* @param {FiveOneEat.customer.AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest} request
|
|
63
63
|
* @param {PushNotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* token: "token"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest {
|
|
8
|
+
token: string;
|
|
9
|
+
device_id?: string | null;
|
|
10
|
+
device_name?: string | null;
|
|
11
|
+
platform?: AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.Platform | null;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest {
|
|
14
|
+
const Platform: {
|
|
15
|
+
readonly Ios: "ios";
|
|
16
|
+
readonly Android: "android";
|
|
17
|
+
};
|
|
18
|
+
type Platform = (typeof Platform)[keyof typeof Platform];
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest = void 0;
|
|
5
|
+
var AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest;
|
|
6
|
+
(function (AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest) {
|
|
7
|
+
AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.Platform = {
|
|
8
|
+
Ios: "ios",
|
|
9
|
+
Android: "android",
|
|
10
|
+
};
|
|
11
|
+
})(AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest || (exports.AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest = AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest = {}));
|
package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest } from "./AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.js";
|
|
2
2
|
export type { UnregisterPushNotificationsRequest } from "./UnregisterPushNotificationsRequest.js";
|
package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest = void 0;
|
|
4
|
+
var AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest_js_1 = require("./AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest", { enumerable: true, get: function () { return AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest_js_1.AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest; } });
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export * as business from "./business/index.js";
|
|
2
|
+
export * from "./businessMessaging/client/requests/index.js";
|
|
3
|
+
export * as businessMessaging from "./businessMessaging/index.js";
|
|
4
|
+
export * from "./businessPushNotifications/client/requests/index.js";
|
|
5
|
+
export * as businessPushNotifications from "./businessPushNotifications/index.js";
|
|
6
|
+
export * from "./businessPushNotifications/types/index.js";
|
|
2
7
|
export * from "./customer/client/requests/index.js";
|
|
3
8
|
export * as customer from "./customer/index.js";
|
|
4
9
|
export * from "./customer/types/index.js";
|
|
@@ -36,8 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerEvents = exports.customer = exports.business = void 0;
|
|
39
|
+
exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerEvents = exports.customer = exports.businessPushNotifications = exports.businessMessaging = exports.business = void 0;
|
|
40
40
|
exports.business = __importStar(require("./business/index.js"));
|
|
41
|
+
__exportStar(require("./businessMessaging/client/requests/index.js"), exports);
|
|
42
|
+
exports.businessMessaging = __importStar(require("./businessMessaging/index.js"));
|
|
43
|
+
__exportStar(require("./businessPushNotifications/client/requests/index.js"), exports);
|
|
44
|
+
exports.businessPushNotifications = __importStar(require("./businessPushNotifications/index.js"));
|
|
45
|
+
__exportStar(require("./businessPushNotifications/types/index.js"), exports);
|
|
41
46
|
__exportStar(require("./customer/client/requests/index.js"), exports);
|
|
42
47
|
exports.customer = __importStar(require("./customer/index.js"));
|
|
43
48
|
__exportStar(require("./customer/types/index.js"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BusinessConversation {
|
|
2
|
+
id: string;
|
|
3
|
+
customer: BusinessConversation.Customer;
|
|
4
|
+
last_message?: (BusinessConversation.LastMessage | null) | undefined;
|
|
5
|
+
last_message_at: string | null;
|
|
6
|
+
created_at: string;
|
|
7
|
+
updated_at: string;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace BusinessConversation {
|
|
10
|
+
interface Customer {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
}
|
|
15
|
+
interface LastMessage {
|
|
16
|
+
id: string;
|
|
17
|
+
content: string;
|
|
18
|
+
created_at: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BusinessMessage {
|
|
2
|
+
id: string;
|
|
3
|
+
conversation_id: string;
|
|
4
|
+
sender_id: string;
|
|
5
|
+
sender?: BusinessMessage.Sender | undefined;
|
|
6
|
+
content: string;
|
|
7
|
+
message_type: string;
|
|
8
|
+
metadata: Record<string, unknown> | null;
|
|
9
|
+
is_read: boolean;
|
|
10
|
+
is_edited: boolean;
|
|
11
|
+
edited_at: string | null;
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace BusinessMessage {
|
|
16
|
+
interface Sender {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -21,6 +21,7 @@ export * from "./BardSetNode.js";
|
|
|
21
21
|
export * from "./BardSetValues.js";
|
|
22
22
|
export * from "./BardTextNode.js";
|
|
23
23
|
export * from "./BusinessBulletin.js";
|
|
24
|
+
export * from "./BusinessConversation.js";
|
|
24
25
|
export * from "./BusinessLoginResponse.js";
|
|
25
26
|
export * from "./BusinessMe.js";
|
|
26
27
|
export * from "./BusinessMenu.js";
|
|
@@ -28,6 +29,8 @@ export * from "./BusinessMenuGroup.js";
|
|
|
28
29
|
export * from "./BusinessMenuItem.js";
|
|
29
30
|
export * from "./BusinessMenuItemModifier.js";
|
|
30
31
|
export * from "./BusinessMenuItemVariation.js";
|
|
32
|
+
export * from "./BusinessMessage.js";
|
|
33
|
+
export * from "./BusinessPhoto.js";
|
|
31
34
|
export * from "./BusinessProfile.js";
|
|
32
35
|
export * from "./BusinessSearchResult.js";
|
|
33
36
|
export * from "./BusinessSummary.js";
|
|
@@ -37,6 +37,7 @@ __exportStar(require("./BardSetNode.js"), exports);
|
|
|
37
37
|
__exportStar(require("./BardSetValues.js"), exports);
|
|
38
38
|
__exportStar(require("./BardTextNode.js"), exports);
|
|
39
39
|
__exportStar(require("./BusinessBulletin.js"), exports);
|
|
40
|
+
__exportStar(require("./BusinessConversation.js"), exports);
|
|
40
41
|
__exportStar(require("./BusinessLoginResponse.js"), exports);
|
|
41
42
|
__exportStar(require("./BusinessMe.js"), exports);
|
|
42
43
|
__exportStar(require("./BusinessMenu.js"), exports);
|
|
@@ -44,6 +45,8 @@ __exportStar(require("./BusinessMenuGroup.js"), exports);
|
|
|
44
45
|
__exportStar(require("./BusinessMenuItem.js"), exports);
|
|
45
46
|
__exportStar(require("./BusinessMenuItemModifier.js"), exports);
|
|
46
47
|
__exportStar(require("./BusinessMenuItemVariation.js"), exports);
|
|
48
|
+
__exportStar(require("./BusinessMessage.js"), exports);
|
|
49
|
+
__exportStar(require("./BusinessPhoto.js"), exports);
|
|
47
50
|
__exportStar(require("./BusinessProfile.js"), exports);
|
|
48
51
|
__exportStar(require("./BusinessSearchResult.js"), exports);
|
|
49
52
|
__exportStar(require("./BusinessSummary.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.21";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.21",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.21",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BusinessClient } from "./api/resources/business/client/Client.mjs";
|
|
2
|
+
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
3
|
+
import { BusinessPushNotificationsClient } from "./api/resources/businessPushNotifications/client/Client.mjs";
|
|
2
4
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
3
5
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
|
|
4
6
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
@@ -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/esm/Client.mjs
CHANGED
|
@@ -9,6 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
import { BusinessClient } from "./api/resources/business/client/Client.mjs";
|
|
12
|
+
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
13
|
+
import { BusinessPushNotificationsClient } from "./api/resources/businessPushNotifications/client/Client.mjs";
|
|
12
14
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
13
15
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
|
|
14
16
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
@@ -20,6 +22,14 @@ export class FiveOneEatClient {
|
|
|
20
22
|
constructor(options = {}) {
|
|
21
23
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
24
|
}
|
|
25
|
+
get businessMessaging() {
|
|
26
|
+
var _a;
|
|
27
|
+
return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new BusinessMessagingClient(this._options)));
|
|
28
|
+
}
|
|
29
|
+
get businessPushNotifications() {
|
|
30
|
+
var _a;
|
|
31
|
+
return ((_a = this._businessPushNotifications) !== null && _a !== void 0 ? _a : (this._businessPushNotifications = new BusinessPushNotificationsClient(this._options)));
|
|
32
|
+
}
|
|
23
33
|
get customerEvents() {
|
|
24
34
|
var _a;
|
|
25
35
|
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new CustomerEventsClient(this._options)));
|
|
@@ -2,7 +2,9 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { AuthClient } from "../resources/auth/client/Client.mjs";
|
|
4
4
|
import { BulletinsClient } from "../resources/bulletins/client/Client.mjs";
|
|
5
|
+
import { GalleryClient } from "../resources/gallery/client/Client.mjs";
|
|
5
6
|
import { MenusClient } from "../resources/menus/client/Client.mjs";
|
|
7
|
+
import { MessagingClient } from "../resources/messaging/client/Client.mjs";
|
|
6
8
|
import { ProfileClient } from "../resources/profile/client/Client.mjs";
|
|
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
|
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import { AuthClient } from "../resources/auth/client/Client.mjs";
|
|
4
4
|
import { BulletinsClient } from "../resources/bulletins/client/Client.mjs";
|
|
5
|
+
import { GalleryClient } from "../resources/gallery/client/Client.mjs";
|
|
5
6
|
import { MenusClient } from "../resources/menus/client/Client.mjs";
|
|
7
|
+
import { MessagingClient } from "../resources/messaging/client/Client.mjs";
|
|
6
8
|
import { ProfileClient } from "../resources/profile/client/Client.mjs";
|
|
7
9
|
export class BusinessClient {
|
|
8
10
|
constructor(options = {}) {
|
|
@@ -16,6 +18,10 @@ export class BusinessClient {
|
|
|
16
18
|
var _a;
|
|
17
19
|
return ((_a = this._bulletins) !== null && _a !== void 0 ? _a : (this._bulletins = new BulletinsClient(this._options)));
|
|
18
20
|
}
|
|
21
|
+
get gallery() {
|
|
22
|
+
var _a;
|
|
23
|
+
return ((_a = this._gallery) !== null && _a !== void 0 ? _a : (this._gallery = new GalleryClient(this._options)));
|
|
24
|
+
}
|
|
19
25
|
get menus() {
|
|
20
26
|
var _a;
|
|
21
27
|
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new MenusClient(this._options)));
|
|
@@ -24,4 +30,8 @@ export class BusinessClient {
|
|
|
24
30
|
var _a;
|
|
25
31
|
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new ProfileClient(this._options)));
|
|
26
32
|
}
|
|
33
|
+
get messaging() {
|
|
34
|
+
var _a;
|
|
35
|
+
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new MessagingClient(this._options)));
|
|
36
|
+
}
|
|
27
37
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.mjs";
|
|
5
|
+
export declare namespace 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
|
+
}
|