@getlatedev/node 0.1.10 → 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 +32 -0
- package/dist/index.d.mts +506 -1
- package/dist/index.d.ts +506 -1
- package/dist/index.js +109 -0
- package/dist/index.mjs +109 -0
- package/package.json +1 -1
- package/src/client.ts +54 -0
- package/src/generated/sdk.gen.ts +200 -1
- package/src/generated/types.gen.ts +510 -0
package/dist/index.js
CHANGED
|
@@ -577,6 +577,78 @@ var getGoogleBusinessReviews = (options) => {
|
|
|
577
577
|
url: "/v1/accounts/{accountId}/gmb-reviews"
|
|
578
578
|
});
|
|
579
579
|
};
|
|
580
|
+
var getGoogleBusinessFoodMenus = (options) => {
|
|
581
|
+
return (options?.client ?? client).get({
|
|
582
|
+
...options,
|
|
583
|
+
url: "/v1/accounts/{accountId}/gmb-food-menus"
|
|
584
|
+
});
|
|
585
|
+
};
|
|
586
|
+
var updateGoogleBusinessFoodMenus = (options) => {
|
|
587
|
+
return (options?.client ?? client).put({
|
|
588
|
+
...options,
|
|
589
|
+
url: "/v1/accounts/{accountId}/gmb-food-menus"
|
|
590
|
+
});
|
|
591
|
+
};
|
|
592
|
+
var getGoogleBusinessLocationDetails = (options) => {
|
|
593
|
+
return (options?.client ?? client).get({
|
|
594
|
+
...options,
|
|
595
|
+
url: "/v1/accounts/{accountId}/gmb-location-details"
|
|
596
|
+
});
|
|
597
|
+
};
|
|
598
|
+
var updateGoogleBusinessLocationDetails = (options) => {
|
|
599
|
+
return (options?.client ?? client).put({
|
|
600
|
+
...options,
|
|
601
|
+
url: "/v1/accounts/{accountId}/gmb-location-details"
|
|
602
|
+
});
|
|
603
|
+
};
|
|
604
|
+
var listGoogleBusinessMedia = (options) => {
|
|
605
|
+
return (options?.client ?? client).get({
|
|
606
|
+
...options,
|
|
607
|
+
url: "/v1/accounts/{accountId}/gmb-media"
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
var createGoogleBusinessMedia = (options) => {
|
|
611
|
+
return (options?.client ?? client).post({
|
|
612
|
+
...options,
|
|
613
|
+
url: "/v1/accounts/{accountId}/gmb-media"
|
|
614
|
+
});
|
|
615
|
+
};
|
|
616
|
+
var deleteGoogleBusinessMedia = (options) => {
|
|
617
|
+
return (options?.client ?? client).delete({
|
|
618
|
+
...options,
|
|
619
|
+
url: "/v1/accounts/{accountId}/gmb-media"
|
|
620
|
+
});
|
|
621
|
+
};
|
|
622
|
+
var getGoogleBusinessAttributes = (options) => {
|
|
623
|
+
return (options?.client ?? client).get({
|
|
624
|
+
...options,
|
|
625
|
+
url: "/v1/accounts/{accountId}/gmb-attributes"
|
|
626
|
+
});
|
|
627
|
+
};
|
|
628
|
+
var updateGoogleBusinessAttributes = (options) => {
|
|
629
|
+
return (options?.client ?? client).put({
|
|
630
|
+
...options,
|
|
631
|
+
url: "/v1/accounts/{accountId}/gmb-attributes"
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
var listGoogleBusinessPlaceActions = (options) => {
|
|
635
|
+
return (options?.client ?? client).get({
|
|
636
|
+
...options,
|
|
637
|
+
url: "/v1/accounts/{accountId}/gmb-place-actions"
|
|
638
|
+
});
|
|
639
|
+
};
|
|
640
|
+
var createGoogleBusinessPlaceAction = (options) => {
|
|
641
|
+
return (options?.client ?? client).post({
|
|
642
|
+
...options,
|
|
643
|
+
url: "/v1/accounts/{accountId}/gmb-place-actions"
|
|
644
|
+
});
|
|
645
|
+
};
|
|
646
|
+
var deleteGoogleBusinessPlaceAction = (options) => {
|
|
647
|
+
return (options?.client ?? client).delete({
|
|
648
|
+
...options,
|
|
649
|
+
url: "/v1/accounts/{accountId}/gmb-place-actions"
|
|
650
|
+
});
|
|
651
|
+
};
|
|
580
652
|
var getPendingOAuthData = (options) => {
|
|
581
653
|
return (options?.client ?? client).get({
|
|
582
654
|
...options,
|
|
@@ -1168,6 +1240,43 @@ var Late = class {
|
|
|
1168
1240
|
completeTelegramConnect
|
|
1169
1241
|
}
|
|
1170
1242
|
};
|
|
1243
|
+
/**
|
|
1244
|
+
* gmbfoodmenus API
|
|
1245
|
+
*/
|
|
1246
|
+
this.gmbfoodmenus = {
|
|
1247
|
+
getGoogleBusinessFoodMenus,
|
|
1248
|
+
updateGoogleBusinessFoodMenus
|
|
1249
|
+
};
|
|
1250
|
+
/**
|
|
1251
|
+
* gmblocationdetails API
|
|
1252
|
+
*/
|
|
1253
|
+
this.gmblocationdetails = {
|
|
1254
|
+
getGoogleBusinessLocationDetails,
|
|
1255
|
+
updateGoogleBusinessLocationDetails
|
|
1256
|
+
};
|
|
1257
|
+
/**
|
|
1258
|
+
* gmbmedia API
|
|
1259
|
+
*/
|
|
1260
|
+
this.gmbmedia = {
|
|
1261
|
+
listGoogleBusinessMedia,
|
|
1262
|
+
createGoogleBusinessMedia,
|
|
1263
|
+
deleteGoogleBusinessMedia
|
|
1264
|
+
};
|
|
1265
|
+
/**
|
|
1266
|
+
* gmbattributes API
|
|
1267
|
+
*/
|
|
1268
|
+
this.gmbattributes = {
|
|
1269
|
+
getGoogleBusinessAttributes,
|
|
1270
|
+
updateGoogleBusinessAttributes
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* gmbplaceactions API
|
|
1274
|
+
*/
|
|
1275
|
+
this.gmbplaceactions = {
|
|
1276
|
+
listGoogleBusinessPlaceActions,
|
|
1277
|
+
createGoogleBusinessPlaceAction,
|
|
1278
|
+
deleteGoogleBusinessPlaceAction
|
|
1279
|
+
};
|
|
1171
1280
|
/**
|
|
1172
1281
|
* Queue API - Manage posting queue
|
|
1173
1282
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -548,6 +548,78 @@ var getGoogleBusinessReviews = (options) => {
|
|
|
548
548
|
url: "/v1/accounts/{accountId}/gmb-reviews"
|
|
549
549
|
});
|
|
550
550
|
};
|
|
551
|
+
var getGoogleBusinessFoodMenus = (options) => {
|
|
552
|
+
return (options?.client ?? client).get({
|
|
553
|
+
...options,
|
|
554
|
+
url: "/v1/accounts/{accountId}/gmb-food-menus"
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
var updateGoogleBusinessFoodMenus = (options) => {
|
|
558
|
+
return (options?.client ?? client).put({
|
|
559
|
+
...options,
|
|
560
|
+
url: "/v1/accounts/{accountId}/gmb-food-menus"
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
var getGoogleBusinessLocationDetails = (options) => {
|
|
564
|
+
return (options?.client ?? client).get({
|
|
565
|
+
...options,
|
|
566
|
+
url: "/v1/accounts/{accountId}/gmb-location-details"
|
|
567
|
+
});
|
|
568
|
+
};
|
|
569
|
+
var updateGoogleBusinessLocationDetails = (options) => {
|
|
570
|
+
return (options?.client ?? client).put({
|
|
571
|
+
...options,
|
|
572
|
+
url: "/v1/accounts/{accountId}/gmb-location-details"
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
var listGoogleBusinessMedia = (options) => {
|
|
576
|
+
return (options?.client ?? client).get({
|
|
577
|
+
...options,
|
|
578
|
+
url: "/v1/accounts/{accountId}/gmb-media"
|
|
579
|
+
});
|
|
580
|
+
};
|
|
581
|
+
var createGoogleBusinessMedia = (options) => {
|
|
582
|
+
return (options?.client ?? client).post({
|
|
583
|
+
...options,
|
|
584
|
+
url: "/v1/accounts/{accountId}/gmb-media"
|
|
585
|
+
});
|
|
586
|
+
};
|
|
587
|
+
var deleteGoogleBusinessMedia = (options) => {
|
|
588
|
+
return (options?.client ?? client).delete({
|
|
589
|
+
...options,
|
|
590
|
+
url: "/v1/accounts/{accountId}/gmb-media"
|
|
591
|
+
});
|
|
592
|
+
};
|
|
593
|
+
var getGoogleBusinessAttributes = (options) => {
|
|
594
|
+
return (options?.client ?? client).get({
|
|
595
|
+
...options,
|
|
596
|
+
url: "/v1/accounts/{accountId}/gmb-attributes"
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
var updateGoogleBusinessAttributes = (options) => {
|
|
600
|
+
return (options?.client ?? client).put({
|
|
601
|
+
...options,
|
|
602
|
+
url: "/v1/accounts/{accountId}/gmb-attributes"
|
|
603
|
+
});
|
|
604
|
+
};
|
|
605
|
+
var listGoogleBusinessPlaceActions = (options) => {
|
|
606
|
+
return (options?.client ?? client).get({
|
|
607
|
+
...options,
|
|
608
|
+
url: "/v1/accounts/{accountId}/gmb-place-actions"
|
|
609
|
+
});
|
|
610
|
+
};
|
|
611
|
+
var createGoogleBusinessPlaceAction = (options) => {
|
|
612
|
+
return (options?.client ?? client).post({
|
|
613
|
+
...options,
|
|
614
|
+
url: "/v1/accounts/{accountId}/gmb-place-actions"
|
|
615
|
+
});
|
|
616
|
+
};
|
|
617
|
+
var deleteGoogleBusinessPlaceAction = (options) => {
|
|
618
|
+
return (options?.client ?? client).delete({
|
|
619
|
+
...options,
|
|
620
|
+
url: "/v1/accounts/{accountId}/gmb-place-actions"
|
|
621
|
+
});
|
|
622
|
+
};
|
|
551
623
|
var getPendingOAuthData = (options) => {
|
|
552
624
|
return (options?.client ?? client).get({
|
|
553
625
|
...options,
|
|
@@ -1139,6 +1211,43 @@ var Late = class {
|
|
|
1139
1211
|
completeTelegramConnect
|
|
1140
1212
|
}
|
|
1141
1213
|
};
|
|
1214
|
+
/**
|
|
1215
|
+
* gmbfoodmenus API
|
|
1216
|
+
*/
|
|
1217
|
+
this.gmbfoodmenus = {
|
|
1218
|
+
getGoogleBusinessFoodMenus,
|
|
1219
|
+
updateGoogleBusinessFoodMenus
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* gmblocationdetails API
|
|
1223
|
+
*/
|
|
1224
|
+
this.gmblocationdetails = {
|
|
1225
|
+
getGoogleBusinessLocationDetails,
|
|
1226
|
+
updateGoogleBusinessLocationDetails
|
|
1227
|
+
};
|
|
1228
|
+
/**
|
|
1229
|
+
* gmbmedia API
|
|
1230
|
+
*/
|
|
1231
|
+
this.gmbmedia = {
|
|
1232
|
+
listGoogleBusinessMedia,
|
|
1233
|
+
createGoogleBusinessMedia,
|
|
1234
|
+
deleteGoogleBusinessMedia
|
|
1235
|
+
};
|
|
1236
|
+
/**
|
|
1237
|
+
* gmbattributes API
|
|
1238
|
+
*/
|
|
1239
|
+
this.gmbattributes = {
|
|
1240
|
+
getGoogleBusinessAttributes,
|
|
1241
|
+
updateGoogleBusinessAttributes
|
|
1242
|
+
};
|
|
1243
|
+
/**
|
|
1244
|
+
* gmbplaceactions API
|
|
1245
|
+
*/
|
|
1246
|
+
this.gmbplaceactions = {
|
|
1247
|
+
listGoogleBusinessPlaceActions,
|
|
1248
|
+
createGoogleBusinessPlaceAction,
|
|
1249
|
+
deleteGoogleBusinessPlaceAction
|
|
1250
|
+
};
|
|
1142
1251
|
/**
|
|
1143
1252
|
* Queue API - Manage posting queue
|
|
1144
1253
|
*/
|
package/package.json
CHANGED
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,6 +38,9 @@ import {
|
|
|
34
38
|
getFacebookPages,
|
|
35
39
|
getFollowerStats,
|
|
36
40
|
getGmbLocations,
|
|
41
|
+
getGoogleBusinessAttributes,
|
|
42
|
+
getGoogleBusinessFoodMenus,
|
|
43
|
+
getGoogleBusinessLocationDetails,
|
|
37
44
|
getGoogleBusinessReviews,
|
|
38
45
|
getInboxConversation,
|
|
39
46
|
getInboxConversationMessages,
|
|
@@ -68,6 +75,8 @@ import {
|
|
|
68
75
|
listApiKeys,
|
|
69
76
|
listFacebookPages,
|
|
70
77
|
listGoogleBusinessLocations,
|
|
78
|
+
listGoogleBusinessMedia,
|
|
79
|
+
listGoogleBusinessPlaceActions,
|
|
71
80
|
listInboxComments,
|
|
72
81
|
listInboxConversations,
|
|
73
82
|
listInboxReviews,
|
|
@@ -98,6 +107,9 @@ import {
|
|
|
98
107
|
updateAccountGroup,
|
|
99
108
|
updateFacebookPage,
|
|
100
109
|
updateGmbLocation,
|
|
110
|
+
updateGoogleBusinessAttributes,
|
|
111
|
+
updateGoogleBusinessFoodMenus,
|
|
112
|
+
updateGoogleBusinessLocationDetails,
|
|
101
113
|
updateInboxConversation,
|
|
102
114
|
updateLinkedInOrganization,
|
|
103
115
|
updatePinterestBoards,
|
|
@@ -336,6 +348,48 @@ export class Late {
|
|
|
336
348
|
},
|
|
337
349
|
};
|
|
338
350
|
|
|
351
|
+
/**
|
|
352
|
+
* gmbfoodmenus API
|
|
353
|
+
*/
|
|
354
|
+
gmbfoodmenus = {
|
|
355
|
+
getGoogleBusinessFoodMenus: getGoogleBusinessFoodMenus,
|
|
356
|
+
updateGoogleBusinessFoodMenus: updateGoogleBusinessFoodMenus,
|
|
357
|
+
};
|
|
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
|
+
|
|
339
393
|
/**
|
|
340
394
|
* Queue API - Manage posting queue
|
|
341
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, 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
|
|
|
@@ -847,6 +847,205 @@ export const getGoogleBusinessReviews = <ThrowOnError extends boolean = false>(o
|
|
|
847
847
|
});
|
|
848
848
|
};
|
|
849
849
|
|
|
850
|
+
/**
|
|
851
|
+
* Get Google Business Profile food menus
|
|
852
|
+
* Fetches food menus for a connected Google Business Profile location.
|
|
853
|
+
*
|
|
854
|
+
* Returns the full menu structure including:
|
|
855
|
+
* - Menu names and descriptions
|
|
856
|
+
* - Sections (e.g. Appetizers, Entrees, Drinks)
|
|
857
|
+
* - Items with labels, pricing, dietary info, and allergens
|
|
858
|
+
* - Item options/variants
|
|
859
|
+
*
|
|
860
|
+
* Only available for locations with food menu support (restaurants, cafes, etc.).
|
|
861
|
+
*
|
|
862
|
+
*/
|
|
863
|
+
export const getGoogleBusinessFoodMenus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetGoogleBusinessFoodMenusData, ThrowOnError>) => {
|
|
864
|
+
return (options?.client ?? client).get<GetGoogleBusinessFoodMenusResponse, GetGoogleBusinessFoodMenusError, ThrowOnError>({
|
|
865
|
+
...options,
|
|
866
|
+
url: '/v1/accounts/{accountId}/gmb-food-menus'
|
|
867
|
+
});
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Update Google Business Profile food menus
|
|
872
|
+
* Updates the food menus for a connected Google Business Profile location.
|
|
873
|
+
*
|
|
874
|
+
* Send the full menus array. Use `updateMask` for partial updates (e.g. `"menus"` to only update the menus field).
|
|
875
|
+
*
|
|
876
|
+
* Each menu can contain sections, and each section can contain items with pricing, dietary restrictions, allergens, and more.
|
|
877
|
+
*
|
|
878
|
+
*/
|
|
879
|
+
export const updateGoogleBusinessFoodMenus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateGoogleBusinessFoodMenusData, ThrowOnError>) => {
|
|
880
|
+
return (options?.client ?? client).put<UpdateGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusError, ThrowOnError>({
|
|
881
|
+
...options,
|
|
882
|
+
url: '/v1/accounts/{accountId}/gmb-food-menus'
|
|
883
|
+
});
|
|
884
|
+
};
|
|
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
|
+
|
|
850
1049
|
/**
|
|
851
1050
|
* Fetch pending OAuth selection data (Headless Mode)
|
|
852
1051
|
* **Fetch Pending OAuth Data for Headless Mode**
|