@getlatedev/node 0.1.11 → 0.1.12
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 +26 -0
- package/dist/index.d.mts +364 -1
- package/dist/index.d.ts +364 -1
- package/dist/index.js +90 -0
- package/dist/index.mjs +90 -0
- package/package.json +1 -1
- package/src/client.ts +44 -0
- package/src/generated/sdk.gen.ts +164 -1
- package/src/generated/types.gen.ts +363 -0
package/src/client.ts
CHANGED
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
connectBlueskyCredentials,
|
|
7
7
|
createAccountGroup,
|
|
8
8
|
createApiKey,
|
|
9
|
+
createGoogleBusinessMedia,
|
|
10
|
+
createGoogleBusinessPlaceAction,
|
|
9
11
|
createInviteToken,
|
|
10
12
|
createPost,
|
|
11
13
|
createProfile,
|
|
@@ -14,6 +16,8 @@ import {
|
|
|
14
16
|
deleteAccount,
|
|
15
17
|
deleteAccountGroup,
|
|
16
18
|
deleteApiKey,
|
|
19
|
+
deleteGoogleBusinessMedia,
|
|
20
|
+
deleteGoogleBusinessPlaceAction,
|
|
17
21
|
deleteInboxComment,
|
|
18
22
|
deleteInboxReviewReply,
|
|
19
23
|
deletePost,
|
|
@@ -34,7 +38,9 @@ import {
|
|
|
34
38
|
getFacebookPages,
|
|
35
39
|
getFollowerStats,
|
|
36
40
|
getGmbLocations,
|
|
41
|
+
getGoogleBusinessAttributes,
|
|
37
42
|
getGoogleBusinessFoodMenus,
|
|
43
|
+
getGoogleBusinessLocationDetails,
|
|
38
44
|
getGoogleBusinessReviews,
|
|
39
45
|
getInboxConversation,
|
|
40
46
|
getInboxConversationMessages,
|
|
@@ -69,6 +75,8 @@ import {
|
|
|
69
75
|
listApiKeys,
|
|
70
76
|
listFacebookPages,
|
|
71
77
|
listGoogleBusinessLocations,
|
|
78
|
+
listGoogleBusinessMedia,
|
|
79
|
+
listGoogleBusinessPlaceActions,
|
|
72
80
|
listInboxComments,
|
|
73
81
|
listInboxConversations,
|
|
74
82
|
listInboxReviews,
|
|
@@ -99,7 +107,9 @@ import {
|
|
|
99
107
|
updateAccountGroup,
|
|
100
108
|
updateFacebookPage,
|
|
101
109
|
updateGmbLocation,
|
|
110
|
+
updateGoogleBusinessAttributes,
|
|
102
111
|
updateGoogleBusinessFoodMenus,
|
|
112
|
+
updateGoogleBusinessLocationDetails,
|
|
103
113
|
updateInboxConversation,
|
|
104
114
|
updateLinkedInOrganization,
|
|
105
115
|
updatePinterestBoards,
|
|
@@ -346,6 +356,40 @@ export class Late {
|
|
|
346
356
|
updateGoogleBusinessFoodMenus: updateGoogleBusinessFoodMenus,
|
|
347
357
|
};
|
|
348
358
|
|
|
359
|
+
/**
|
|
360
|
+
* gmblocationdetails API
|
|
361
|
+
*/
|
|
362
|
+
gmblocationdetails = {
|
|
363
|
+
getGoogleBusinessLocationDetails: getGoogleBusinessLocationDetails,
|
|
364
|
+
updateGoogleBusinessLocationDetails: updateGoogleBusinessLocationDetails,
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* gmbmedia API
|
|
369
|
+
*/
|
|
370
|
+
gmbmedia = {
|
|
371
|
+
listGoogleBusinessMedia: listGoogleBusinessMedia,
|
|
372
|
+
createGoogleBusinessMedia: createGoogleBusinessMedia,
|
|
373
|
+
deleteGoogleBusinessMedia: deleteGoogleBusinessMedia,
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* gmbattributes API
|
|
378
|
+
*/
|
|
379
|
+
gmbattributes = {
|
|
380
|
+
getGoogleBusinessAttributes: getGoogleBusinessAttributes,
|
|
381
|
+
updateGoogleBusinessAttributes: updateGoogleBusinessAttributes,
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* gmbplaceactions API
|
|
386
|
+
*/
|
|
387
|
+
gmbplaceactions = {
|
|
388
|
+
listGoogleBusinessPlaceActions: listGoogleBusinessPlaceActions,
|
|
389
|
+
createGoogleBusinessPlaceAction: createGoogleBusinessPlaceAction,
|
|
390
|
+
deleteGoogleBusinessPlaceAction: deleteGoogleBusinessPlaceAction,
|
|
391
|
+
};
|
|
392
|
+
|
|
349
393
|
/**
|
|
350
394
|
* Queue API - Manage posting queue
|
|
351
395
|
*/
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListLogsData, ListLogsError, ListLogsResponse, GetLogData, GetLogError, GetLogResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse } from './types.gen';
|
|
4
|
+
import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListLogsData, ListLogsError, ListLogsResponse, GetLogData, GetLogError, GetLogResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -883,6 +883,169 @@ export const updateGoogleBusinessFoodMenus = <ThrowOnError extends boolean = fal
|
|
|
883
883
|
});
|
|
884
884
|
};
|
|
885
885
|
|
|
886
|
+
/**
|
|
887
|
+
* Get Google Business Profile location details
|
|
888
|
+
* Fetches detailed location information including opening hours, special hours,
|
|
889
|
+
* business description, phone numbers, website, categories, and more.
|
|
890
|
+
*
|
|
891
|
+
* Use the `readMask` query parameter to request specific fields.
|
|
892
|
+
*
|
|
893
|
+
*/
|
|
894
|
+
export const getGoogleBusinessLocationDetails = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetGoogleBusinessLocationDetailsData, ThrowOnError>) => {
|
|
895
|
+
return (options?.client ?? client).get<GetGoogleBusinessLocationDetailsResponse, GetGoogleBusinessLocationDetailsError, ThrowOnError>({
|
|
896
|
+
...options,
|
|
897
|
+
url: '/v1/accounts/{accountId}/gmb-location-details'
|
|
898
|
+
});
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Update Google Business Profile location details
|
|
903
|
+
* Updates location details such as opening hours, special hours, business description, phone, and website.
|
|
904
|
+
*
|
|
905
|
+
* The `updateMask` field is required and specifies which fields to update.
|
|
906
|
+
*
|
|
907
|
+
* Common update masks:
|
|
908
|
+
* - `regularHours` - Update opening hours
|
|
909
|
+
* - `specialHours` - Update holiday/special hours
|
|
910
|
+
* - `profile.description` - Update business description
|
|
911
|
+
* - `websiteUri` - Update website URL
|
|
912
|
+
* - `phoneNumbers` - Update phone numbers
|
|
913
|
+
* - `regularHours,specialHours` - Update both at once
|
|
914
|
+
*
|
|
915
|
+
*/
|
|
916
|
+
export const updateGoogleBusinessLocationDetails = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateGoogleBusinessLocationDetailsData, ThrowOnError>) => {
|
|
917
|
+
return (options?.client ?? client).put<UpdateGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsError, ThrowOnError>({
|
|
918
|
+
...options,
|
|
919
|
+
url: '/v1/accounts/{accountId}/gmb-location-details'
|
|
920
|
+
});
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* List Google Business Profile media (photos)
|
|
925
|
+
* Lists media items (photos) for a Google Business Profile location.
|
|
926
|
+
* Returns photo URLs, descriptions, categories, and metadata.
|
|
927
|
+
*
|
|
928
|
+
*/
|
|
929
|
+
export const listGoogleBusinessMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListGoogleBusinessMediaData, ThrowOnError>) => {
|
|
930
|
+
return (options?.client ?? client).get<ListGoogleBusinessMediaResponse, ListGoogleBusinessMediaError, ThrowOnError>({
|
|
931
|
+
...options,
|
|
932
|
+
url: '/v1/accounts/{accountId}/gmb-media'
|
|
933
|
+
});
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Upload a photo to Google Business Profile
|
|
938
|
+
* Creates a media item (photo) for a location from a publicly accessible URL.
|
|
939
|
+
*
|
|
940
|
+
* Categories determine where the photo appears:
|
|
941
|
+
* - `COVER` - Cover photo
|
|
942
|
+
* - `PROFILE` - Profile photo
|
|
943
|
+
* - `LOGO` - Business logo
|
|
944
|
+
* - `EXTERIOR` - Exterior shots
|
|
945
|
+
* - `INTERIOR` - Interior shots
|
|
946
|
+
* - `FOOD_AND_DRINK` - Food and drink photos
|
|
947
|
+
* - `MENU` - Menu photos
|
|
948
|
+
* - `PRODUCT` - Product photos
|
|
949
|
+
* - `TEAMS` - Team/staff photos
|
|
950
|
+
* - `ADDITIONAL` - Other photos
|
|
951
|
+
*
|
|
952
|
+
*/
|
|
953
|
+
export const createGoogleBusinessMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateGoogleBusinessMediaData, ThrowOnError>) => {
|
|
954
|
+
return (options?.client ?? client).post<CreateGoogleBusinessMediaResponse, CreateGoogleBusinessMediaError, ThrowOnError>({
|
|
955
|
+
...options,
|
|
956
|
+
url: '/v1/accounts/{accountId}/gmb-media'
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Delete a photo from Google Business Profile
|
|
962
|
+
*/
|
|
963
|
+
export const deleteGoogleBusinessMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteGoogleBusinessMediaData, ThrowOnError>) => {
|
|
964
|
+
return (options?.client ?? client).delete<DeleteGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaError, ThrowOnError>({
|
|
965
|
+
...options,
|
|
966
|
+
url: '/v1/accounts/{accountId}/gmb-media'
|
|
967
|
+
});
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Get Google Business Profile location attributes
|
|
972
|
+
* Fetches location attributes such as amenities, services, and accessibility features.
|
|
973
|
+
*
|
|
974
|
+
* Common attributes for restaurants include:
|
|
975
|
+
* - Dining options: has_dine_in, has_takeout, has_delivery
|
|
976
|
+
* - Amenities: has_outdoor_seating, has_wifi, has_parking
|
|
977
|
+
* - Accessibility: has_wheelchair_accessible_entrance
|
|
978
|
+
* - Payments: pay_credit_card_types_accepted
|
|
979
|
+
*
|
|
980
|
+
* Available attributes vary by business category.
|
|
981
|
+
*
|
|
982
|
+
*/
|
|
983
|
+
export const getGoogleBusinessAttributes = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetGoogleBusinessAttributesData, ThrowOnError>) => {
|
|
984
|
+
return (options?.client ?? client).get<GetGoogleBusinessAttributesResponse, GetGoogleBusinessAttributesError, ThrowOnError>({
|
|
985
|
+
...options,
|
|
986
|
+
url: '/v1/accounts/{accountId}/gmb-attributes'
|
|
987
|
+
});
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Update Google Business Profile location attributes
|
|
992
|
+
* Updates location attributes (amenities, services, etc.).
|
|
993
|
+
*
|
|
994
|
+
* The `attributeMask` specifies which attributes to update (comma-separated).
|
|
995
|
+
*
|
|
996
|
+
*/
|
|
997
|
+
export const updateGoogleBusinessAttributes = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateGoogleBusinessAttributesData, ThrowOnError>) => {
|
|
998
|
+
return (options?.client ?? client).put<UpdateGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesError, ThrowOnError>({
|
|
999
|
+
...options,
|
|
1000
|
+
url: '/v1/accounts/{accountId}/gmb-attributes'
|
|
1001
|
+
});
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* List place action links (booking, ordering, reservations)
|
|
1006
|
+
* Lists place action links for a Google Business Profile location.
|
|
1007
|
+
*
|
|
1008
|
+
* Place actions are the booking, ordering, and reservation buttons that appear on your listing.
|
|
1009
|
+
*
|
|
1010
|
+
*/
|
|
1011
|
+
export const listGoogleBusinessPlaceActions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListGoogleBusinessPlaceActionsData, ThrowOnError>) => {
|
|
1012
|
+
return (options?.client ?? client).get<ListGoogleBusinessPlaceActionsResponse, ListGoogleBusinessPlaceActionsError, ThrowOnError>({
|
|
1013
|
+
...options,
|
|
1014
|
+
url: '/v1/accounts/{accountId}/gmb-place-actions'
|
|
1015
|
+
});
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Create a place action link (booking, ordering, reservation)
|
|
1020
|
+
* Creates a place action link for a location.
|
|
1021
|
+
*
|
|
1022
|
+
* Available action types:
|
|
1023
|
+
* - `APPOINTMENT` - Booking an appointment
|
|
1024
|
+
* - `ONLINE_APPOINTMENT` - Booking an online appointment
|
|
1025
|
+
* - `DINING_RESERVATION` - Making a dining reservation (OpenTable, Resy, etc.)
|
|
1026
|
+
* - `FOOD_ORDERING` - Ordering food for delivery and/or takeout (DoorDash, Uber Eats, etc.)
|
|
1027
|
+
* - `FOOD_DELIVERY` - Ordering food for delivery only
|
|
1028
|
+
* - `FOOD_TAKEOUT` - Ordering food for takeout only
|
|
1029
|
+
* - `SHOP_ONLINE` - Shopping with delivery and/or pickup
|
|
1030
|
+
*
|
|
1031
|
+
*/
|
|
1032
|
+
export const createGoogleBusinessPlaceAction = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateGoogleBusinessPlaceActionData, ThrowOnError>) => {
|
|
1033
|
+
return (options?.client ?? client).post<CreateGoogleBusinessPlaceActionResponse, CreateGoogleBusinessPlaceActionError, ThrowOnError>({
|
|
1034
|
+
...options,
|
|
1035
|
+
url: '/v1/accounts/{accountId}/gmb-place-actions'
|
|
1036
|
+
});
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Delete a place action link
|
|
1041
|
+
*/
|
|
1042
|
+
export const deleteGoogleBusinessPlaceAction = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteGoogleBusinessPlaceActionData, ThrowOnError>) => {
|
|
1043
|
+
return (options?.client ?? client).delete<DeleteGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionError, ThrowOnError>({
|
|
1044
|
+
...options,
|
|
1045
|
+
url: '/v1/accounts/{accountId}/gmb-place-actions'
|
|
1046
|
+
});
|
|
1047
|
+
};
|
|
1048
|
+
|
|
886
1049
|
/**
|
|
887
1050
|
* Fetch pending OAuth selection data (Headless Mode)
|
|
888
1051
|
* **Fetch Pending OAuth Data for Headless Mode**
|
|
@@ -3312,6 +3312,369 @@ export type UpdateGoogleBusinessFoodMenusError = (ErrorResponse | {
|
|
|
3312
3312
|
error?: string;
|
|
3313
3313
|
});
|
|
3314
3314
|
|
|
3315
|
+
export type GetGoogleBusinessLocationDetailsData = {
|
|
3316
|
+
path: {
|
|
3317
|
+
/**
|
|
3318
|
+
* The Late account ID (from /v1/accounts)
|
|
3319
|
+
*/
|
|
3320
|
+
accountId: string;
|
|
3321
|
+
};
|
|
3322
|
+
query?: {
|
|
3323
|
+
/**
|
|
3324
|
+
* Comma-separated fields to return. Defaults to common fields.
|
|
3325
|
+
* Available: name, title, phoneNumbers, categories, storefrontAddress, websiteUri,
|
|
3326
|
+
* regularHours, specialHours, serviceArea, profile, openInfo, metadata, moreHours
|
|
3327
|
+
*
|
|
3328
|
+
*/
|
|
3329
|
+
readMask?: string;
|
|
3330
|
+
};
|
|
3331
|
+
};
|
|
3332
|
+
|
|
3333
|
+
export type GetGoogleBusinessLocationDetailsResponse = ({
|
|
3334
|
+
success?: boolean;
|
|
3335
|
+
accountId?: string;
|
|
3336
|
+
locationId?: string;
|
|
3337
|
+
/**
|
|
3338
|
+
* Business name
|
|
3339
|
+
*/
|
|
3340
|
+
title?: string;
|
|
3341
|
+
regularHours?: {
|
|
3342
|
+
periods?: Array<{
|
|
3343
|
+
openDay?: 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
|
|
3344
|
+
/**
|
|
3345
|
+
* Opening time in HH:MM format
|
|
3346
|
+
*/
|
|
3347
|
+
openTime?: string;
|
|
3348
|
+
closeDay?: string;
|
|
3349
|
+
closeTime?: string;
|
|
3350
|
+
}>;
|
|
3351
|
+
};
|
|
3352
|
+
specialHours?: {
|
|
3353
|
+
specialHourPeriods?: Array<{
|
|
3354
|
+
startDate?: {
|
|
3355
|
+
year?: number;
|
|
3356
|
+
month?: number;
|
|
3357
|
+
day?: number;
|
|
3358
|
+
};
|
|
3359
|
+
endDate?: {
|
|
3360
|
+
year?: number;
|
|
3361
|
+
month?: number;
|
|
3362
|
+
day?: number;
|
|
3363
|
+
};
|
|
3364
|
+
openTime?: string;
|
|
3365
|
+
closeTime?: string;
|
|
3366
|
+
closed?: boolean;
|
|
3367
|
+
}>;
|
|
3368
|
+
};
|
|
3369
|
+
profile?: {
|
|
3370
|
+
/**
|
|
3371
|
+
* Business description
|
|
3372
|
+
*/
|
|
3373
|
+
description?: string;
|
|
3374
|
+
};
|
|
3375
|
+
websiteUri?: string;
|
|
3376
|
+
phoneNumbers?: {
|
|
3377
|
+
primaryPhone?: string;
|
|
3378
|
+
additionalPhones?: Array<(string)>;
|
|
3379
|
+
};
|
|
3380
|
+
});
|
|
3381
|
+
|
|
3382
|
+
export type GetGoogleBusinessLocationDetailsError = (ErrorResponse | {
|
|
3383
|
+
error?: string;
|
|
3384
|
+
});
|
|
3385
|
+
|
|
3386
|
+
export type UpdateGoogleBusinessLocationDetailsData = {
|
|
3387
|
+
body: {
|
|
3388
|
+
/**
|
|
3389
|
+
* Required. Comma-separated fields to update (e.g. 'regularHours', 'specialHours', 'profile.description')
|
|
3390
|
+
*/
|
|
3391
|
+
updateMask: string;
|
|
3392
|
+
regularHours?: {
|
|
3393
|
+
periods?: Array<{
|
|
3394
|
+
openDay?: string;
|
|
3395
|
+
openTime?: string;
|
|
3396
|
+
closeDay?: string;
|
|
3397
|
+
closeTime?: string;
|
|
3398
|
+
}>;
|
|
3399
|
+
};
|
|
3400
|
+
specialHours?: {
|
|
3401
|
+
specialHourPeriods?: Array<{
|
|
3402
|
+
startDate?: {
|
|
3403
|
+
year?: number;
|
|
3404
|
+
month?: number;
|
|
3405
|
+
day?: number;
|
|
3406
|
+
};
|
|
3407
|
+
endDate?: {
|
|
3408
|
+
year?: number;
|
|
3409
|
+
month?: number;
|
|
3410
|
+
day?: number;
|
|
3411
|
+
};
|
|
3412
|
+
openTime?: string;
|
|
3413
|
+
closeTime?: string;
|
|
3414
|
+
closed?: boolean;
|
|
3415
|
+
}>;
|
|
3416
|
+
};
|
|
3417
|
+
profile?: {
|
|
3418
|
+
description?: string;
|
|
3419
|
+
};
|
|
3420
|
+
websiteUri?: string;
|
|
3421
|
+
phoneNumbers?: {
|
|
3422
|
+
primaryPhone?: string;
|
|
3423
|
+
additionalPhones?: Array<(string)>;
|
|
3424
|
+
};
|
|
3425
|
+
};
|
|
3426
|
+
path: {
|
|
3427
|
+
/**
|
|
3428
|
+
* The Late account ID (from /v1/accounts)
|
|
3429
|
+
*/
|
|
3430
|
+
accountId: string;
|
|
3431
|
+
};
|
|
3432
|
+
};
|
|
3433
|
+
|
|
3434
|
+
export type UpdateGoogleBusinessLocationDetailsResponse = ({
|
|
3435
|
+
success?: boolean;
|
|
3436
|
+
accountId?: string;
|
|
3437
|
+
locationId?: string;
|
|
3438
|
+
});
|
|
3439
|
+
|
|
3440
|
+
export type UpdateGoogleBusinessLocationDetailsError = (ErrorResponse | {
|
|
3441
|
+
error?: string;
|
|
3442
|
+
});
|
|
3443
|
+
|
|
3444
|
+
export type ListGoogleBusinessMediaData = {
|
|
3445
|
+
path: {
|
|
3446
|
+
accountId: string;
|
|
3447
|
+
};
|
|
3448
|
+
query?: {
|
|
3449
|
+
/**
|
|
3450
|
+
* Number of items to return (max 100)
|
|
3451
|
+
*/
|
|
3452
|
+
pageSize?: number;
|
|
3453
|
+
/**
|
|
3454
|
+
* Pagination token from previous response
|
|
3455
|
+
*/
|
|
3456
|
+
pageToken?: string;
|
|
3457
|
+
};
|
|
3458
|
+
};
|
|
3459
|
+
|
|
3460
|
+
export type ListGoogleBusinessMediaResponse = ({
|
|
3461
|
+
success?: boolean;
|
|
3462
|
+
accountId?: string;
|
|
3463
|
+
locationId?: string;
|
|
3464
|
+
mediaItems?: Array<{
|
|
3465
|
+
/**
|
|
3466
|
+
* Resource name
|
|
3467
|
+
*/
|
|
3468
|
+
name?: string;
|
|
3469
|
+
mediaFormat?: 'PHOTO' | 'VIDEO';
|
|
3470
|
+
sourceUrl?: string;
|
|
3471
|
+
/**
|
|
3472
|
+
* Google-hosted URL
|
|
3473
|
+
*/
|
|
3474
|
+
googleUrl?: string;
|
|
3475
|
+
thumbnailUrl?: string;
|
|
3476
|
+
description?: string;
|
|
3477
|
+
createTime?: string;
|
|
3478
|
+
locationAssociation?: {
|
|
3479
|
+
category?: string;
|
|
3480
|
+
};
|
|
3481
|
+
}>;
|
|
3482
|
+
nextPageToken?: string;
|
|
3483
|
+
totalMediaItemsCount?: number;
|
|
3484
|
+
});
|
|
3485
|
+
|
|
3486
|
+
export type ListGoogleBusinessMediaError = (ErrorResponse);
|
|
3487
|
+
|
|
3488
|
+
export type CreateGoogleBusinessMediaData = {
|
|
3489
|
+
body: {
|
|
3490
|
+
/**
|
|
3491
|
+
* Publicly accessible image URL
|
|
3492
|
+
*/
|
|
3493
|
+
sourceUrl: string;
|
|
3494
|
+
mediaFormat?: 'PHOTO' | 'VIDEO';
|
|
3495
|
+
/**
|
|
3496
|
+
* Photo description
|
|
3497
|
+
*/
|
|
3498
|
+
description?: string;
|
|
3499
|
+
/**
|
|
3500
|
+
* Where the photo appears on the listing
|
|
3501
|
+
*/
|
|
3502
|
+
category?: 'COVER' | 'PROFILE' | 'LOGO' | 'EXTERIOR' | 'INTERIOR' | 'FOOD_AND_DRINK' | 'MENU' | 'PRODUCT' | 'TEAMS' | 'ADDITIONAL';
|
|
3503
|
+
};
|
|
3504
|
+
path: {
|
|
3505
|
+
accountId: string;
|
|
3506
|
+
};
|
|
3507
|
+
};
|
|
3508
|
+
|
|
3509
|
+
export type CreateGoogleBusinessMediaResponse = ({
|
|
3510
|
+
success?: boolean;
|
|
3511
|
+
name?: string;
|
|
3512
|
+
mediaFormat?: string;
|
|
3513
|
+
googleUrl?: string;
|
|
3514
|
+
});
|
|
3515
|
+
|
|
3516
|
+
export type CreateGoogleBusinessMediaError = (ErrorResponse);
|
|
3517
|
+
|
|
3518
|
+
export type DeleteGoogleBusinessMediaData = {
|
|
3519
|
+
path: {
|
|
3520
|
+
accountId: string;
|
|
3521
|
+
};
|
|
3522
|
+
query: {
|
|
3523
|
+
/**
|
|
3524
|
+
* The media item ID to delete
|
|
3525
|
+
*/
|
|
3526
|
+
mediaId: string;
|
|
3527
|
+
};
|
|
3528
|
+
};
|
|
3529
|
+
|
|
3530
|
+
export type DeleteGoogleBusinessMediaResponse = ({
|
|
3531
|
+
success?: boolean;
|
|
3532
|
+
deleted?: boolean;
|
|
3533
|
+
mediaId?: string;
|
|
3534
|
+
});
|
|
3535
|
+
|
|
3536
|
+
export type DeleteGoogleBusinessMediaError = (ErrorResponse);
|
|
3537
|
+
|
|
3538
|
+
export type GetGoogleBusinessAttributesData = {
|
|
3539
|
+
path: {
|
|
3540
|
+
accountId: string;
|
|
3541
|
+
};
|
|
3542
|
+
};
|
|
3543
|
+
|
|
3544
|
+
export type GetGoogleBusinessAttributesResponse = ({
|
|
3545
|
+
success?: boolean;
|
|
3546
|
+
accountId?: string;
|
|
3547
|
+
locationId?: string;
|
|
3548
|
+
attributes?: Array<{
|
|
3549
|
+
/**
|
|
3550
|
+
* Attribute identifier (e.g. has_delivery)
|
|
3551
|
+
*/
|
|
3552
|
+
name?: string;
|
|
3553
|
+
/**
|
|
3554
|
+
* Value type (BOOL, ENUM, URL, REPEATED_ENUM)
|
|
3555
|
+
*/
|
|
3556
|
+
valueType?: string;
|
|
3557
|
+
values?: Array<unknown>;
|
|
3558
|
+
repeatedEnumValue?: {
|
|
3559
|
+
setValues?: Array<(string)>;
|
|
3560
|
+
unsetValues?: Array<(string)>;
|
|
3561
|
+
};
|
|
3562
|
+
}>;
|
|
3563
|
+
});
|
|
3564
|
+
|
|
3565
|
+
export type GetGoogleBusinessAttributesError = (ErrorResponse);
|
|
3566
|
+
|
|
3567
|
+
export type UpdateGoogleBusinessAttributesData = {
|
|
3568
|
+
body: {
|
|
3569
|
+
attributes: Array<{
|
|
3570
|
+
name?: string;
|
|
3571
|
+
values?: Array<unknown>;
|
|
3572
|
+
repeatedEnumValue?: {
|
|
3573
|
+
setValues?: Array<(string)>;
|
|
3574
|
+
unsetValues?: Array<(string)>;
|
|
3575
|
+
};
|
|
3576
|
+
}>;
|
|
3577
|
+
/**
|
|
3578
|
+
* Comma-separated attribute names to update (e.g. 'has_delivery,has_takeout')
|
|
3579
|
+
*/
|
|
3580
|
+
attributeMask: string;
|
|
3581
|
+
};
|
|
3582
|
+
path: {
|
|
3583
|
+
accountId: string;
|
|
3584
|
+
};
|
|
3585
|
+
};
|
|
3586
|
+
|
|
3587
|
+
export type UpdateGoogleBusinessAttributesResponse = ({
|
|
3588
|
+
success?: boolean;
|
|
3589
|
+
accountId?: string;
|
|
3590
|
+
locationId?: string;
|
|
3591
|
+
attributes?: Array<{
|
|
3592
|
+
[key: string]: unknown;
|
|
3593
|
+
}>;
|
|
3594
|
+
});
|
|
3595
|
+
|
|
3596
|
+
export type UpdateGoogleBusinessAttributesError = (ErrorResponse);
|
|
3597
|
+
|
|
3598
|
+
export type ListGoogleBusinessPlaceActionsData = {
|
|
3599
|
+
path: {
|
|
3600
|
+
accountId: string;
|
|
3601
|
+
};
|
|
3602
|
+
query?: {
|
|
3603
|
+
pageSize?: number;
|
|
3604
|
+
pageToken?: string;
|
|
3605
|
+
};
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
export type ListGoogleBusinessPlaceActionsResponse = ({
|
|
3609
|
+
success?: boolean;
|
|
3610
|
+
accountId?: string;
|
|
3611
|
+
locationId?: string;
|
|
3612
|
+
placeActionLinks?: Array<{
|
|
3613
|
+
/**
|
|
3614
|
+
* Resource name
|
|
3615
|
+
*/
|
|
3616
|
+
name?: string;
|
|
3617
|
+
/**
|
|
3618
|
+
* Action URL
|
|
3619
|
+
*/
|
|
3620
|
+
uri?: string;
|
|
3621
|
+
placeActionType?: string;
|
|
3622
|
+
createTime?: string;
|
|
3623
|
+
updateTime?: string;
|
|
3624
|
+
}>;
|
|
3625
|
+
nextPageToken?: string;
|
|
3626
|
+
});
|
|
3627
|
+
|
|
3628
|
+
export type ListGoogleBusinessPlaceActionsError = (ErrorResponse);
|
|
3629
|
+
|
|
3630
|
+
export type CreateGoogleBusinessPlaceActionData = {
|
|
3631
|
+
body: {
|
|
3632
|
+
/**
|
|
3633
|
+
* The action URL
|
|
3634
|
+
*/
|
|
3635
|
+
uri: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Type of action
|
|
3638
|
+
*/
|
|
3639
|
+
placeActionType: 'APPOINTMENT' | 'ONLINE_APPOINTMENT' | 'DINING_RESERVATION' | 'FOOD_ORDERING' | 'FOOD_DELIVERY' | 'FOOD_TAKEOUT' | 'SHOP_ONLINE';
|
|
3640
|
+
};
|
|
3641
|
+
path: {
|
|
3642
|
+
accountId: string;
|
|
3643
|
+
};
|
|
3644
|
+
};
|
|
3645
|
+
|
|
3646
|
+
export type CreateGoogleBusinessPlaceActionResponse = ({
|
|
3647
|
+
success?: boolean;
|
|
3648
|
+
/**
|
|
3649
|
+
* Resource name of the created link
|
|
3650
|
+
*/
|
|
3651
|
+
name?: string;
|
|
3652
|
+
uri?: string;
|
|
3653
|
+
placeActionType?: string;
|
|
3654
|
+
});
|
|
3655
|
+
|
|
3656
|
+
export type CreateGoogleBusinessPlaceActionError = (ErrorResponse);
|
|
3657
|
+
|
|
3658
|
+
export type DeleteGoogleBusinessPlaceActionData = {
|
|
3659
|
+
path: {
|
|
3660
|
+
accountId: string;
|
|
3661
|
+
};
|
|
3662
|
+
query: {
|
|
3663
|
+
/**
|
|
3664
|
+
* The resource name of the place action link (e.g. locations/123/placeActionLinks/456)
|
|
3665
|
+
*/
|
|
3666
|
+
name: string;
|
|
3667
|
+
};
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
export type DeleteGoogleBusinessPlaceActionResponse = ({
|
|
3671
|
+
success?: boolean;
|
|
3672
|
+
deleted?: boolean;
|
|
3673
|
+
name?: string;
|
|
3674
|
+
});
|
|
3675
|
+
|
|
3676
|
+
export type DeleteGoogleBusinessPlaceActionError = (ErrorResponse);
|
|
3677
|
+
|
|
3315
3678
|
export type GetPendingOAuthDataData = {
|
|
3316
3679
|
query: {
|
|
3317
3680
|
/**
|