@vendasta/social-posts 5.47.0 → 5.48.0
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/esm2020/lib/_internal/blog-website.api.service.mjs +40 -0
- package/esm2020/lib/_internal/drafts.api.service.mjs +82 -0
- package/esm2020/lib/_internal/enums/drafts-api.enum.mjs +14 -0
- package/esm2020/lib/_internal/enums/drafts.enum.mjs +27 -0
- package/esm2020/lib/_internal/enums/index.mjs +6 -2
- package/esm2020/lib/_internal/enums/provisioning.enum.mjs +14 -0
- package/esm2020/lib/_internal/enums/social-content.enum.mjs +51 -0
- package/esm2020/lib/_internal/enums/stock-image.enum.mjs +10 -3
- package/esm2020/lib/_internal/index.mjs +5 -1
- package/esm2020/lib/_internal/interfaces/blog-website-info.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/drafts-api.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/drafts.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/provisioning.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/social-content.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/stock-image.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/blog-website-info.mjs +149 -0
- package/esm2020/lib/_internal/objects/drafts-api.mjs +622 -0
- package/esm2020/lib/_internal/objects/drafts.mjs +446 -0
- package/esm2020/lib/_internal/objects/index.mjs +9 -4
- package/esm2020/lib/_internal/objects/provisioning.mjs +43 -0
- package/esm2020/lib/_internal/objects/social-content.mjs +384 -0
- package/esm2020/lib/_internal/objects/stock-image.mjs +63 -5
- package/esm2020/lib/_internal/provisioning.api.service.mjs +38 -0
- package/esm2020/lib/_internal/social-content.api.service.mjs +40 -0
- package/esm2020/lib/drafts.service.mjs +46 -0
- package/esm2020/lib/index.mjs +2 -1
- package/fesm2015/vendasta-social-posts.mjs +2230 -207
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +2230 -207
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/blog-website.api.service.d.ts +13 -0
- package/lib/_internal/drafts.api.service.d.ts +23 -0
- package/lib/_internal/enums/drafts-api.enum.d.ts +6 -0
- package/lib/_internal/enums/drafts.enum.d.ts +18 -0
- package/lib/_internal/enums/index.d.ts +5 -1
- package/lib/_internal/enums/provisioning.enum.d.ts +6 -0
- package/lib/_internal/enums/social-content.enum.d.ts +39 -0
- package/lib/_internal/enums/stock-image.enum.d.ts +8 -2
- package/lib/_internal/index.d.ts +4 -0
- package/lib/_internal/interfaces/blog-website-info.interface.d.ts +24 -0
- package/lib/_internal/interfaces/drafts-api.interface.d.ts +109 -0
- package/lib/_internal/interfaces/drafts.interface.d.ts +82 -0
- package/lib/_internal/interfaces/index.d.ts +8 -3
- package/lib/_internal/interfaces/provisioning.interface.d.ts +8 -0
- package/lib/_internal/interfaces/social-content.interface.d.ts +71 -0
- package/lib/_internal/interfaces/stock-image.interface.d.ts +11 -2
- package/lib/_internal/objects/blog-website-info.d.ts +41 -0
- package/lib/_internal/objects/drafts-api.d.ts +162 -0
- package/lib/_internal/objects/drafts.d.ts +120 -0
- package/lib/_internal/objects/index.d.ts +8 -3
- package/lib/_internal/objects/provisioning.d.ts +13 -0
- package/lib/_internal/objects/social-content.d.ts +103 -0
- package/lib/_internal/objects/stock-image.d.ts +17 -2
- package/lib/_internal/provisioning.api.service.d.ts +14 -0
- package/lib/_internal/social-content.api.service.d.ts +13 -0
- package/lib/drafts.service.d.ts +20 -0
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { of } from 'rxjs';
|
|
|
4
4
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { map } from 'rxjs/operators';
|
|
6
6
|
|
|
7
|
-
function enumStringToValue$
|
|
7
|
+
function enumStringToValue$p(enumRef, value) {
|
|
8
8
|
if (typeof value === 'number') {
|
|
9
9
|
return value;
|
|
10
10
|
}
|
|
@@ -31,7 +31,7 @@ class FieldMask {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function enumStringToValue$
|
|
34
|
+
function enumStringToValue$o(enumRef, value) {
|
|
35
35
|
if (typeof value === 'number') {
|
|
36
36
|
return value;
|
|
37
37
|
}
|
|
@@ -192,9 +192,16 @@ var SortBySortDirection;
|
|
|
192
192
|
// *********************************
|
|
193
193
|
var ImageSource;
|
|
194
194
|
(function (ImageSource) {
|
|
195
|
-
ImageSource[ImageSource["
|
|
196
|
-
ImageSource[ImageSource["
|
|
195
|
+
ImageSource[ImageSource["IMAGE_SOURCE_INVALID"] = 0] = "IMAGE_SOURCE_INVALID";
|
|
196
|
+
ImageSource[ImageSource["PEXELS"] = 1] = "PEXELS";
|
|
197
|
+
ImageSource[ImageSource["PIXABAY"] = 2] = "PIXABAY";
|
|
197
198
|
})(ImageSource || (ImageSource = {}));
|
|
199
|
+
var NamespaceType;
|
|
200
|
+
(function (NamespaceType) {
|
|
201
|
+
NamespaceType[NamespaceType["INVALID_TYPE"] = 0] = "INVALID_TYPE";
|
|
202
|
+
NamespaceType[NamespaceType["PARTNER"] = 1] = "PARTNER";
|
|
203
|
+
NamespaceType[NamespaceType["ACCOUNT_GROUP"] = 2] = "ACCOUNT_GROUP";
|
|
204
|
+
})(NamespaceType || (NamespaceType = {}));
|
|
198
205
|
|
|
199
206
|
// *********************************
|
|
200
207
|
// Code generated by sdkgen
|
|
@@ -246,14 +253,28 @@ var YoutubeCustomizationV2PrivacyStatusV2;
|
|
|
246
253
|
//
|
|
247
254
|
// Enums.
|
|
248
255
|
// *********************************
|
|
249
|
-
var MediaType;
|
|
256
|
+
var MediaType$1;
|
|
250
257
|
(function (MediaType) {
|
|
251
258
|
MediaType[MediaType["MEDIA_TYPE_INVALID"] = 0] = "MEDIA_TYPE_INVALID";
|
|
252
259
|
MediaType[MediaType["MEDIA_TYPE_IMAGE"] = 1] = "MEDIA_TYPE_IMAGE";
|
|
253
260
|
MediaType[MediaType["MEDIA_TYPE_VIDEO"] = 2] = "MEDIA_TYPE_VIDEO";
|
|
254
261
|
MediaType[MediaType["MEDIA_TYPE_GIF"] = 3] = "MEDIA_TYPE_GIF";
|
|
255
262
|
MediaType[MediaType["MEDIA_TYPE_CAROUSEL"] = 4] = "MEDIA_TYPE_CAROUSEL";
|
|
256
|
-
})(MediaType || (MediaType = {}));
|
|
263
|
+
})(MediaType$1 || (MediaType$1 = {}));
|
|
264
|
+
|
|
265
|
+
// *********************************
|
|
266
|
+
// Code generated by sdkgen
|
|
267
|
+
// DO NOT EDIT!.
|
|
268
|
+
//
|
|
269
|
+
// Enums.
|
|
270
|
+
// *********************************
|
|
271
|
+
var ProvisionAction;
|
|
272
|
+
(function (ProvisionAction) {
|
|
273
|
+
ProvisionAction[ProvisionAction["PROVISION_ACTION_INVALID"] = 0] = "PROVISION_ACTION_INVALID";
|
|
274
|
+
ProvisionAction[ProvisionAction["PROVISION_ACTION_PROVISIONED"] = 1] = "PROVISION_ACTION_PROVISIONED";
|
|
275
|
+
ProvisionAction[ProvisionAction["PROVISION_ACTION_DEPROVISIONED"] = 2] = "PROVISION_ACTION_DEPROVISIONED";
|
|
276
|
+
ProvisionAction[ProvisionAction["PROVISION_ACTION_CHANGE_EDITION"] = 3] = "PROVISION_ACTION_CHANGE_EDITION";
|
|
277
|
+
})(ProvisionAction || (ProvisionAction = {}));
|
|
257
278
|
|
|
258
279
|
// *********************************
|
|
259
280
|
// Code generated by sdkgen
|
|
@@ -334,6 +355,98 @@ var Role;
|
|
|
334
355
|
Role[Role["AI_BOT"] = 2] = "AI_BOT";
|
|
335
356
|
})(Role || (Role = {}));
|
|
336
357
|
|
|
358
|
+
// *********************************
|
|
359
|
+
// Code generated by sdkgen
|
|
360
|
+
// DO NOT EDIT!.
|
|
361
|
+
//
|
|
362
|
+
// Enums.
|
|
363
|
+
// *********************************
|
|
364
|
+
var DraftType;
|
|
365
|
+
(function (DraftType) {
|
|
366
|
+
DraftType[DraftType["DRAFT_TYPE_INVALID"] = 0] = "DRAFT_TYPE_INVALID";
|
|
367
|
+
DraftType[DraftType["DRAFT_TYPE_IMAGE"] = 1] = "DRAFT_TYPE_IMAGE";
|
|
368
|
+
DraftType[DraftType["DRAFT_TYPE_VIDEO"] = 2] = "DRAFT_TYPE_VIDEO";
|
|
369
|
+
DraftType[DraftType["DRAFT_TYPE_GIF"] = 3] = "DRAFT_TYPE_GIF";
|
|
370
|
+
DraftType[DraftType["DRAFT_TYPE_REEL"] = 4] = "DRAFT_TYPE_REEL";
|
|
371
|
+
DraftType[DraftType["DRAFT_TYPE_CAROUSEL"] = 5] = "DRAFT_TYPE_CAROUSEL";
|
|
372
|
+
DraftType[DraftType["DRAFT_TYPE_TEXT"] = 6] = "DRAFT_TYPE_TEXT";
|
|
373
|
+
DraftType[DraftType["DRAFT_TYPE_STORIES"] = 7] = "DRAFT_TYPE_STORIES";
|
|
374
|
+
DraftType[DraftType["DRAFT_TYPE_IMAGE_STORY"] = 8] = "DRAFT_TYPE_IMAGE_STORY";
|
|
375
|
+
DraftType[DraftType["DRAFT_TYPE_VIDEO_STORY"] = 9] = "DRAFT_TYPE_VIDEO_STORY";
|
|
376
|
+
})(DraftType || (DraftType = {}));
|
|
377
|
+
var DraftYoutubeCustomizationPrivacyStatus;
|
|
378
|
+
(function (DraftYoutubeCustomizationPrivacyStatus) {
|
|
379
|
+
DraftYoutubeCustomizationPrivacyStatus[DraftYoutubeCustomizationPrivacyStatus["YOUTUBE_PRIVACY_STATUS_INVALID"] = 0] = "YOUTUBE_PRIVACY_STATUS_INVALID";
|
|
380
|
+
DraftYoutubeCustomizationPrivacyStatus[DraftYoutubeCustomizationPrivacyStatus["YOUTUBE_PRIVACY_STATUS_PUBLIC"] = 1] = "YOUTUBE_PRIVACY_STATUS_PUBLIC";
|
|
381
|
+
DraftYoutubeCustomizationPrivacyStatus[DraftYoutubeCustomizationPrivacyStatus["YOUTUBE_PRIVACY_STATUS_PRIVATE"] = 2] = "YOUTUBE_PRIVACY_STATUS_PRIVATE";
|
|
382
|
+
DraftYoutubeCustomizationPrivacyStatus[DraftYoutubeCustomizationPrivacyStatus["YOUTUBE_PRIVACY_STATUS_UNLISTED"] = 3] = "YOUTUBE_PRIVACY_STATUS_UNLISTED";
|
|
383
|
+
})(DraftYoutubeCustomizationPrivacyStatus || (DraftYoutubeCustomizationPrivacyStatus = {}));
|
|
384
|
+
|
|
385
|
+
// *********************************
|
|
386
|
+
// Code generated by sdkgen
|
|
387
|
+
// DO NOT EDIT!.
|
|
388
|
+
//
|
|
389
|
+
// Enums.
|
|
390
|
+
// *********************************
|
|
391
|
+
var VisibilityType;
|
|
392
|
+
(function (VisibilityType) {
|
|
393
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_INVALID"] = 0] = "VISIBILITY_TYPE_INVALID";
|
|
394
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_ALL"] = 1] = "VISIBILITY_TYPE_ALL";
|
|
395
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_HIDDEN"] = 2] = "VISIBILITY_TYPE_HIDDEN";
|
|
396
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_VISIBLE"] = 3] = "VISIBILITY_TYPE_VISIBLE";
|
|
397
|
+
})(VisibilityType || (VisibilityType = {}));
|
|
398
|
+
|
|
399
|
+
// *********************************
|
|
400
|
+
// Code generated by sdkgen
|
|
401
|
+
// DO NOT EDIT!.
|
|
402
|
+
//
|
|
403
|
+
// Enums.
|
|
404
|
+
// *********************************
|
|
405
|
+
var CallToActionType;
|
|
406
|
+
(function (CallToActionType) {
|
|
407
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_INVALID"] = 0] = "CALL_TO_ACTION_TYPE_INVALID";
|
|
408
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_LEARN_MORE"] = 1] = "CALL_TO_ACTION_TYPE_LEARN_MORE";
|
|
409
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_BOOK"] = 2] = "CALL_TO_ACTION_TYPE_BOOK";
|
|
410
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_ORDER"] = 3] = "CALL_TO_ACTION_TYPE_ORDER";
|
|
411
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_SHOP"] = 4] = "CALL_TO_ACTION_TYPE_SHOP";
|
|
412
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_SIGN_UP"] = 5] = "CALL_TO_ACTION_TYPE_SIGN_UP";
|
|
413
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_GET_OFFER"] = 6] = "CALL_TO_ACTION_TYPE_GET_OFFER";
|
|
414
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_CALL"] = 7] = "CALL_TO_ACTION_TYPE_CALL";
|
|
415
|
+
})(CallToActionType || (CallToActionType = {}));
|
|
416
|
+
var MediaContentType;
|
|
417
|
+
(function (MediaContentType) {
|
|
418
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_INVALID"] = 0] = "MEDIA_CONTENT_TYPE_INVALID";
|
|
419
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_IMAGE"] = 1] = "MEDIA_CONTENT_TYPE_IMAGE";
|
|
420
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_VIDEO"] = 2] = "MEDIA_CONTENT_TYPE_VIDEO";
|
|
421
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_GIF"] = 3] = "MEDIA_CONTENT_TYPE_GIF";
|
|
422
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_MULTI_MEDIA"] = 4] = "MEDIA_CONTENT_TYPE_MULTI_MEDIA";
|
|
423
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_TEXT"] = 5] = "MEDIA_CONTENT_TYPE_TEXT";
|
|
424
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_STORIES"] = 6] = "MEDIA_CONTENT_TYPE_STORIES";
|
|
425
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_IMAGE_STORY"] = 7] = "MEDIA_CONTENT_TYPE_IMAGE_STORY";
|
|
426
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_VIDEO_STORY"] = 8] = "MEDIA_CONTENT_TYPE_VIDEO_STORY";
|
|
427
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_REEL"] = 9] = "MEDIA_CONTENT_TYPE_REEL";
|
|
428
|
+
})(MediaContentType || (MediaContentType = {}));
|
|
429
|
+
var MediaType;
|
|
430
|
+
(function (MediaType) {
|
|
431
|
+
MediaType[MediaType["MEDIA_TYPE_INVALID"] = 0] = "MEDIA_TYPE_INVALID";
|
|
432
|
+
MediaType[MediaType["MEDIA_TYPE_IMAGE"] = 1] = "MEDIA_TYPE_IMAGE";
|
|
433
|
+
MediaType[MediaType["MEDIA_TYPE_VIDEO"] = 2] = "MEDIA_TYPE_VIDEO";
|
|
434
|
+
MediaType[MediaType["MEDIA_TYPE_GIF"] = 3] = "MEDIA_TYPE_GIF";
|
|
435
|
+
})(MediaType || (MediaType = {}));
|
|
436
|
+
var PublishMode;
|
|
437
|
+
(function (PublishMode) {
|
|
438
|
+
PublishMode[PublishMode["PUBLISH_MODE_INVALID"] = 0] = "PUBLISH_MODE_INVALID";
|
|
439
|
+
PublishMode[PublishMode["PUBLISH_MODE_SAVE_DRAFT"] = 1] = "PUBLISH_MODE_SAVE_DRAFT";
|
|
440
|
+
PublishMode[PublishMode["PUBLISH_MODE_SCHEDULE"] = 2] = "PUBLISH_MODE_SCHEDULE";
|
|
441
|
+
PublishMode[PublishMode["PUBLISH_MODE_PUBLISH_NOW"] = 3] = "PUBLISH_MODE_PUBLISH_NOW";
|
|
442
|
+
})(PublishMode || (PublishMode = {}));
|
|
443
|
+
var SocialContentType;
|
|
444
|
+
(function (SocialContentType) {
|
|
445
|
+
SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_INVALID"] = 0] = "SOCIAL_CONTENT_TYPE_INVALID";
|
|
446
|
+
SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_SOCIAL_POST"] = 1] = "SOCIAL_CONTENT_TYPE_SOCIAL_POST";
|
|
447
|
+
SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_BLOG_ARTICLE"] = 2] = "SOCIAL_CONTENT_TYPE_BLOG_ARTICLE";
|
|
448
|
+
})(SocialContentType || (SocialContentType = {}));
|
|
449
|
+
|
|
337
450
|
// *********************************
|
|
338
451
|
// Code generated by sdkgen
|
|
339
452
|
// DO NOT EDIT!.
|
|
@@ -341,7 +454,7 @@ var Role;
|
|
|
341
454
|
// Enums Index.
|
|
342
455
|
// *********************************
|
|
343
456
|
|
|
344
|
-
function enumStringToValue$
|
|
457
|
+
function enumStringToValue$n(enumRef, value) {
|
|
345
458
|
if (typeof value === 'number') {
|
|
346
459
|
return value;
|
|
347
460
|
}
|
|
@@ -413,7 +526,7 @@ class CallToAction {
|
|
|
413
526
|
let m = new CallToAction();
|
|
414
527
|
m = Object.assign(m, proto);
|
|
415
528
|
if (proto.actionType) {
|
|
416
|
-
m.actionType = enumStringToValue$
|
|
529
|
+
m.actionType = enumStringToValue$n(CallToActionCallToActionType, proto.actionType);
|
|
417
530
|
}
|
|
418
531
|
return m;
|
|
419
532
|
}
|
|
@@ -651,7 +764,7 @@ class PostTemplate {
|
|
|
651
764
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
652
765
|
}
|
|
653
766
|
if (proto.postType) {
|
|
654
|
-
m.postType = enumStringToValue$
|
|
767
|
+
m.postType = enumStringToValue$n(PostType, proto.postType);
|
|
655
768
|
}
|
|
656
769
|
if (proto.youtubeCustomization) {
|
|
657
770
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -734,7 +847,7 @@ class SSIDPostType {
|
|
|
734
847
|
let m = new SSIDPostType();
|
|
735
848
|
m = Object.assign(m, proto);
|
|
736
849
|
if (proto.postType) {
|
|
737
|
-
m.postType = enumStringToValue$
|
|
850
|
+
m.postType = enumStringToValue$n(PostType, proto.postType);
|
|
738
851
|
}
|
|
739
852
|
return m;
|
|
740
853
|
}
|
|
@@ -818,10 +931,10 @@ class SocialPost {
|
|
|
818
931
|
m.posted = new Date(proto.posted);
|
|
819
932
|
}
|
|
820
933
|
if (proto.deletionStatus) {
|
|
821
|
-
m.deletionStatus = enumStringToValue$
|
|
934
|
+
m.deletionStatus = enumStringToValue$n(SocialPostDeletionStatus, proto.deletionStatus);
|
|
822
935
|
}
|
|
823
936
|
if (proto.service) {
|
|
824
|
-
m.service = enumStringToValue$
|
|
937
|
+
m.service = enumStringToValue$n(SocialPostService, proto.service);
|
|
825
938
|
}
|
|
826
939
|
if (proto.created) {
|
|
827
940
|
m.created = new Date(proto.created);
|
|
@@ -830,7 +943,7 @@ class SocialPost {
|
|
|
830
943
|
m.scheduled = new Date(proto.scheduled);
|
|
831
944
|
}
|
|
832
945
|
if (proto.status) {
|
|
833
|
-
m.status = enumStringToValue$
|
|
946
|
+
m.status = enumStringToValue$n(PostingStatus, proto.status);
|
|
834
947
|
}
|
|
835
948
|
if (proto.event) {
|
|
836
949
|
m.event = Event.fromProto(proto.event);
|
|
@@ -842,7 +955,7 @@ class SocialPost {
|
|
|
842
955
|
m.error = Error.fromProto(proto.error);
|
|
843
956
|
}
|
|
844
957
|
if (proto.postType) {
|
|
845
|
-
m.postType = enumStringToValue$
|
|
958
|
+
m.postType = enumStringToValue$n(PostType, proto.postType);
|
|
846
959
|
}
|
|
847
960
|
if (proto.mediaEntries) {
|
|
848
961
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -1043,7 +1156,7 @@ class YoutubeCustomization {
|
|
|
1043
1156
|
let m = new YoutubeCustomization();
|
|
1044
1157
|
m = Object.assign(m, proto);
|
|
1045
1158
|
if (proto.privacyStatus) {
|
|
1046
|
-
m.privacyStatus = enumStringToValue$
|
|
1159
|
+
m.privacyStatus = enumStringToValue$n(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
1047
1160
|
}
|
|
1048
1161
|
return m;
|
|
1049
1162
|
}
|
|
@@ -1065,7 +1178,7 @@ class YoutubeCustomization {
|
|
|
1065
1178
|
}
|
|
1066
1179
|
}
|
|
1067
1180
|
|
|
1068
|
-
function enumStringToValue$
|
|
1181
|
+
function enumStringToValue$m(enumRef, value) {
|
|
1069
1182
|
if (typeof value === 'number') {
|
|
1070
1183
|
return value;
|
|
1071
1184
|
}
|
|
@@ -1206,7 +1319,7 @@ class MultilocationPost {
|
|
|
1206
1319
|
m.postCategory = MLPostCategory.fromProto(proto.postCategory);
|
|
1207
1320
|
}
|
|
1208
1321
|
if (proto.postState) {
|
|
1209
|
-
m.postState = enumStringToValue$
|
|
1322
|
+
m.postState = enumStringToValue$m(MLPostState, proto.postState);
|
|
1210
1323
|
}
|
|
1211
1324
|
if (proto.postCustomizationByLocation) {
|
|
1212
1325
|
m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
|
|
@@ -1390,7 +1503,7 @@ class PostCustomizationByLocation {
|
|
|
1390
1503
|
let m = new PostCustomizationByLocation();
|
|
1391
1504
|
m = Object.assign(m, proto);
|
|
1392
1505
|
if (proto.customizationStatus) {
|
|
1393
|
-
m.customizationStatus = enumStringToValue$
|
|
1506
|
+
m.customizationStatus = enumStringToValue$m(CustomizationStatus, proto.customizationStatus);
|
|
1394
1507
|
}
|
|
1395
1508
|
return m;
|
|
1396
1509
|
}
|
|
@@ -1444,7 +1557,7 @@ class PostEvent {
|
|
|
1444
1557
|
}
|
|
1445
1558
|
}
|
|
1446
1559
|
|
|
1447
|
-
function enumStringToValue$
|
|
1560
|
+
function enumStringToValue$l(enumRef, value) {
|
|
1448
1561
|
if (typeof value === 'number') {
|
|
1449
1562
|
return value;
|
|
1450
1563
|
}
|
|
@@ -1498,7 +1611,7 @@ class PexelsImage {
|
|
|
1498
1611
|
}
|
|
1499
1612
|
}
|
|
1500
1613
|
|
|
1501
|
-
function enumStringToValue$
|
|
1614
|
+
function enumStringToValue$k(enumRef, value) {
|
|
1502
1615
|
if (typeof value === 'number') {
|
|
1503
1616
|
return value;
|
|
1504
1617
|
}
|
|
@@ -1639,7 +1752,7 @@ class PixabayImage {
|
|
|
1639
1752
|
}
|
|
1640
1753
|
}
|
|
1641
1754
|
|
|
1642
|
-
function enumStringToValue$
|
|
1755
|
+
function enumStringToValue$j(enumRef, value) {
|
|
1643
1756
|
if (typeof value === 'number') {
|
|
1644
1757
|
return value;
|
|
1645
1758
|
}
|
|
@@ -1978,7 +2091,7 @@ class YoutubePostStats {
|
|
|
1978
2091
|
}
|
|
1979
2092
|
}
|
|
1980
2093
|
|
|
1981
|
-
function enumStringToValue$
|
|
2094
|
+
function enumStringToValue$i(enumRef, value) {
|
|
1982
2095
|
if (typeof value === 'number') {
|
|
1983
2096
|
return value;
|
|
1984
2097
|
}
|
|
@@ -2084,7 +2197,7 @@ class TenorMediaObject {
|
|
|
2084
2197
|
}
|
|
2085
2198
|
}
|
|
2086
2199
|
|
|
2087
|
-
function enumStringToValue$
|
|
2200
|
+
function enumStringToValue$h(enumRef, value) {
|
|
2088
2201
|
if (typeof value === 'number') {
|
|
2089
2202
|
return value;
|
|
2090
2203
|
}
|
|
@@ -2133,7 +2246,7 @@ class BulkCreateMultilocationPostResponse {
|
|
|
2133
2246
|
let m = new BulkCreateMultilocationPostResponse();
|
|
2134
2247
|
m = Object.assign(m, proto);
|
|
2135
2248
|
if (proto.status) {
|
|
2136
|
-
m.status = enumStringToValue$
|
|
2249
|
+
m.status = enumStringToValue$h(BulkPostStatus, proto.status);
|
|
2137
2250
|
}
|
|
2138
2251
|
if (proto.error) {
|
|
2139
2252
|
m.error = proto.error.map(MultilocationPostError.fromProto);
|
|
@@ -2292,7 +2405,7 @@ class CreatePostTemplateRequest {
|
|
|
2292
2405
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
2293
2406
|
}
|
|
2294
2407
|
if (proto.postType) {
|
|
2295
|
-
m.postType = enumStringToValue$
|
|
2408
|
+
m.postType = enumStringToValue$h(PostType, proto.postType);
|
|
2296
2409
|
}
|
|
2297
2410
|
if (proto.youtubeCustomization) {
|
|
2298
2411
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3697,7 +3810,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
3697
3810
|
let m = new RemoveFromMultilocationPostRequest();
|
|
3698
3811
|
m = Object.assign(m, proto);
|
|
3699
3812
|
if (proto.reason) {
|
|
3700
|
-
m.reason = enumStringToValue$
|
|
3813
|
+
m.reason = enumStringToValue$h(RemoveReason, proto.reason);
|
|
3701
3814
|
}
|
|
3702
3815
|
if (proto.locations) {
|
|
3703
3816
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -3920,10 +4033,10 @@ class SuggestMessageRequest {
|
|
|
3920
4033
|
let m = new SuggestMessageRequest();
|
|
3921
4034
|
m = Object.assign(m, proto);
|
|
3922
4035
|
if (proto.length) {
|
|
3923
|
-
m.length = enumStringToValue$
|
|
4036
|
+
m.length = enumStringToValue$h(MessageLength, proto.length);
|
|
3924
4037
|
}
|
|
3925
4038
|
if (proto.type) {
|
|
3926
|
-
m.type = enumStringToValue$
|
|
4039
|
+
m.type = enumStringToValue$h(TemplateType, proto.type);
|
|
3927
4040
|
}
|
|
3928
4041
|
if (proto.metadata) {
|
|
3929
4042
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -3990,7 +4103,7 @@ class UpdatePostTemplateRequest {
|
|
|
3990
4103
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3991
4104
|
}
|
|
3992
4105
|
if (proto.postType) {
|
|
3993
|
-
m.postType = enumStringToValue$
|
|
4106
|
+
m.postType = enumStringToValue$h(PostType, proto.postType);
|
|
3994
4107
|
}
|
|
3995
4108
|
if (proto.youtubeCustomization) {
|
|
3996
4109
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -4057,7 +4170,7 @@ class UpdatePostTemplateRequest {
|
|
|
4057
4170
|
}
|
|
4058
4171
|
}
|
|
4059
4172
|
|
|
4060
|
-
function enumStringToValue$
|
|
4173
|
+
function enumStringToValue$g(enumRef, value) {
|
|
4061
4174
|
if (typeof value === 'number') {
|
|
4062
4175
|
return value;
|
|
4063
4176
|
}
|
|
@@ -4254,7 +4367,7 @@ class SortBy {
|
|
|
4254
4367
|
let m = new SortBy();
|
|
4255
4368
|
m = Object.assign(m, proto);
|
|
4256
4369
|
if (proto.sortDirection) {
|
|
4257
|
-
m.sortDirection = enumStringToValue$
|
|
4370
|
+
m.sortDirection = enumStringToValue$g(SortBySortDirection, proto.sortDirection);
|
|
4258
4371
|
}
|
|
4259
4372
|
return m;
|
|
4260
4373
|
}
|
|
@@ -4276,7 +4389,7 @@ class SortBy {
|
|
|
4276
4389
|
}
|
|
4277
4390
|
}
|
|
4278
4391
|
|
|
4279
|
-
function enumStringToValue$
|
|
4392
|
+
function enumStringToValue$f(enumRef, value) {
|
|
4280
4393
|
if (typeof value === 'number') {
|
|
4281
4394
|
return value;
|
|
4282
4395
|
}
|
|
@@ -4286,8 +4399,11 @@ class ListStockImagesRequest {
|
|
|
4286
4399
|
static fromProto(proto) {
|
|
4287
4400
|
let m = new ListStockImagesRequest();
|
|
4288
4401
|
m = Object.assign(m, proto);
|
|
4402
|
+
if (proto.namespace) {
|
|
4403
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
4404
|
+
}
|
|
4289
4405
|
if (proto.imageSource) {
|
|
4290
|
-
m.imageSource = enumStringToValue$
|
|
4406
|
+
m.imageSource = enumStringToValue$f(ImageSource, proto.imageSource);
|
|
4291
4407
|
}
|
|
4292
4408
|
return m;
|
|
4293
4409
|
}
|
|
@@ -4299,8 +4415,8 @@ class ListStockImagesRequest {
|
|
|
4299
4415
|
}
|
|
4300
4416
|
toApiJson() {
|
|
4301
4417
|
const toReturn = {};
|
|
4302
|
-
if (typeof this.
|
|
4303
|
-
toReturn['
|
|
4418
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
4419
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
4304
4420
|
}
|
|
4305
4421
|
if (typeof this.keywords !== 'undefined') {
|
|
4306
4422
|
toReturn['keywords'] = this.keywords;
|
|
@@ -4333,6 +4449,9 @@ class ListStockImagesResponse {
|
|
|
4333
4449
|
if (proto.images) {
|
|
4334
4450
|
m.images = proto.images.map(StockImage.fromProto);
|
|
4335
4451
|
}
|
|
4452
|
+
if (proto.error) {
|
|
4453
|
+
m.error = StockImageError.fromProto(proto.error);
|
|
4454
|
+
}
|
|
4336
4455
|
return m;
|
|
4337
4456
|
}
|
|
4338
4457
|
constructor(kwargs) {
|
|
@@ -4346,6 +4465,35 @@ class ListStockImagesResponse {
|
|
|
4346
4465
|
if (typeof this.images !== 'undefined' && this.images !== null) {
|
|
4347
4466
|
toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
|
|
4348
4467
|
}
|
|
4468
|
+
if (typeof this.error !== 'undefined' && this.error !== null) {
|
|
4469
|
+
toReturn['error'] = 'toApiJson' in this.error ? this.error.toApiJson() : this.error;
|
|
4470
|
+
}
|
|
4471
|
+
return toReturn;
|
|
4472
|
+
}
|
|
4473
|
+
}
|
|
4474
|
+
class Namespace {
|
|
4475
|
+
static fromProto(proto) {
|
|
4476
|
+
let m = new Namespace();
|
|
4477
|
+
m = Object.assign(m, proto);
|
|
4478
|
+
if (proto.namespaceType) {
|
|
4479
|
+
m.namespaceType = enumStringToValue$f(NamespaceType, proto.namespaceType);
|
|
4480
|
+
}
|
|
4481
|
+
return m;
|
|
4482
|
+
}
|
|
4483
|
+
constructor(kwargs) {
|
|
4484
|
+
if (!kwargs) {
|
|
4485
|
+
return;
|
|
4486
|
+
}
|
|
4487
|
+
Object.assign(this, kwargs);
|
|
4488
|
+
}
|
|
4489
|
+
toApiJson() {
|
|
4490
|
+
const toReturn = {};
|
|
4491
|
+
if (typeof this.namespaceId !== 'undefined') {
|
|
4492
|
+
toReturn['namespaceId'] = this.namespaceId;
|
|
4493
|
+
}
|
|
4494
|
+
if (typeof this.namespaceType !== 'undefined') {
|
|
4495
|
+
toReturn['namespaceType'] = this.namespaceType;
|
|
4496
|
+
}
|
|
4349
4497
|
return toReturn;
|
|
4350
4498
|
}
|
|
4351
4499
|
}
|
|
@@ -4354,7 +4502,7 @@ class StockImage {
|
|
|
4354
4502
|
let m = new StockImage();
|
|
4355
4503
|
m = Object.assign(m, proto);
|
|
4356
4504
|
if (proto.source) {
|
|
4357
|
-
m.source = enumStringToValue$
|
|
4505
|
+
m.source = enumStringToValue$f(ImageSource, proto.source);
|
|
4358
4506
|
}
|
|
4359
4507
|
return m;
|
|
4360
4508
|
}
|
|
@@ -4369,8 +4517,8 @@ class StockImage {
|
|
|
4369
4517
|
if (typeof this.publicUrl !== 'undefined') {
|
|
4370
4518
|
toReturn['publicUrl'] = this.publicUrl;
|
|
4371
4519
|
}
|
|
4372
|
-
if (typeof this.
|
|
4373
|
-
toReturn['
|
|
4520
|
+
if (typeof this.imageId !== 'undefined') {
|
|
4521
|
+
toReturn['imageId'] = this.imageId;
|
|
4374
4522
|
}
|
|
4375
4523
|
if (typeof this.source !== 'undefined') {
|
|
4376
4524
|
toReturn['source'] = this.source;
|
|
@@ -4384,8 +4532,180 @@ class StockImage {
|
|
|
4384
4532
|
return toReturn;
|
|
4385
4533
|
}
|
|
4386
4534
|
}
|
|
4535
|
+
class StockImageError {
|
|
4536
|
+
static fromProto(proto) {
|
|
4537
|
+
let m = new StockImageError();
|
|
4538
|
+
m = Object.assign(m, proto);
|
|
4539
|
+
return m;
|
|
4540
|
+
}
|
|
4541
|
+
constructor(kwargs) {
|
|
4542
|
+
if (!kwargs) {
|
|
4543
|
+
return;
|
|
4544
|
+
}
|
|
4545
|
+
Object.assign(this, kwargs);
|
|
4546
|
+
}
|
|
4547
|
+
toApiJson() {
|
|
4548
|
+
const toReturn = {};
|
|
4549
|
+
if (typeof this.code !== 'undefined') {
|
|
4550
|
+
toReturn['code'] = this.code;
|
|
4551
|
+
}
|
|
4552
|
+
if (typeof this.message !== 'undefined') {
|
|
4553
|
+
toReturn['message'] = this.message;
|
|
4554
|
+
}
|
|
4555
|
+
return toReturn;
|
|
4556
|
+
}
|
|
4557
|
+
}
|
|
4387
4558
|
|
|
4388
|
-
function enumStringToValue$
|
|
4559
|
+
function enumStringToValue$e(enumRef, value) {
|
|
4560
|
+
if (typeof value === 'number') {
|
|
4561
|
+
return value;
|
|
4562
|
+
}
|
|
4563
|
+
return enumRef[value];
|
|
4564
|
+
}
|
|
4565
|
+
class BlogAuthor {
|
|
4566
|
+
static fromProto(proto) {
|
|
4567
|
+
let m = new BlogAuthor();
|
|
4568
|
+
m = Object.assign(m, proto);
|
|
4569
|
+
if (proto.id) {
|
|
4570
|
+
m.id = parseInt(proto.id, 10);
|
|
4571
|
+
}
|
|
4572
|
+
return m;
|
|
4573
|
+
}
|
|
4574
|
+
constructor(kwargs) {
|
|
4575
|
+
if (!kwargs) {
|
|
4576
|
+
return;
|
|
4577
|
+
}
|
|
4578
|
+
Object.assign(this, kwargs);
|
|
4579
|
+
}
|
|
4580
|
+
toApiJson() {
|
|
4581
|
+
const toReturn = {};
|
|
4582
|
+
if (typeof this.id !== 'undefined') {
|
|
4583
|
+
toReturn['id'] = this.id;
|
|
4584
|
+
}
|
|
4585
|
+
if (typeof this.name !== 'undefined') {
|
|
4586
|
+
toReturn['name'] = this.name;
|
|
4587
|
+
}
|
|
4588
|
+
return toReturn;
|
|
4589
|
+
}
|
|
4590
|
+
}
|
|
4591
|
+
class BlogCategory {
|
|
4592
|
+
static fromProto(proto) {
|
|
4593
|
+
let m = new BlogCategory();
|
|
4594
|
+
m = Object.assign(m, proto);
|
|
4595
|
+
if (proto.id) {
|
|
4596
|
+
m.id = parseInt(proto.id, 10);
|
|
4597
|
+
}
|
|
4598
|
+
return m;
|
|
4599
|
+
}
|
|
4600
|
+
constructor(kwargs) {
|
|
4601
|
+
if (!kwargs) {
|
|
4602
|
+
return;
|
|
4603
|
+
}
|
|
4604
|
+
Object.assign(this, kwargs);
|
|
4605
|
+
}
|
|
4606
|
+
toApiJson() {
|
|
4607
|
+
const toReturn = {};
|
|
4608
|
+
if (typeof this.id !== 'undefined') {
|
|
4609
|
+
toReturn['id'] = this.id;
|
|
4610
|
+
}
|
|
4611
|
+
if (typeof this.name !== 'undefined') {
|
|
4612
|
+
toReturn['name'] = this.name;
|
|
4613
|
+
}
|
|
4614
|
+
return toReturn;
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4617
|
+
class BlogWebsiteDetails {
|
|
4618
|
+
static fromProto(proto) {
|
|
4619
|
+
let m = new BlogWebsiteDetails();
|
|
4620
|
+
m = Object.assign(m, proto);
|
|
4621
|
+
if (proto.categories) {
|
|
4622
|
+
m.categories = proto.categories.map(BlogCategory.fromProto);
|
|
4623
|
+
}
|
|
4624
|
+
if (proto.authors) {
|
|
4625
|
+
m.authors = proto.authors.map(BlogAuthor.fromProto);
|
|
4626
|
+
}
|
|
4627
|
+
return m;
|
|
4628
|
+
}
|
|
4629
|
+
constructor(kwargs) {
|
|
4630
|
+
if (!kwargs) {
|
|
4631
|
+
return;
|
|
4632
|
+
}
|
|
4633
|
+
Object.assign(this, kwargs);
|
|
4634
|
+
}
|
|
4635
|
+
toApiJson() {
|
|
4636
|
+
const toReturn = {};
|
|
4637
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
4638
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
4639
|
+
}
|
|
4640
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
4641
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
4642
|
+
}
|
|
4643
|
+
if (typeof this.isSiteActive !== 'undefined') {
|
|
4644
|
+
toReturn['isSiteActive'] = this.isSiteActive;
|
|
4645
|
+
}
|
|
4646
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
4647
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
4648
|
+
}
|
|
4649
|
+
if (typeof this.authors !== 'undefined' && this.authors !== null) {
|
|
4650
|
+
toReturn['authors'] = 'toApiJson' in this.authors ? this.authors.toApiJson() : this.authors;
|
|
4651
|
+
}
|
|
4652
|
+
if (typeof this.version !== 'undefined') {
|
|
4653
|
+
toReturn['version'] = this.version;
|
|
4654
|
+
}
|
|
4655
|
+
if (typeof this.tags !== 'undefined') {
|
|
4656
|
+
toReturn['tags'] = this.tags;
|
|
4657
|
+
}
|
|
4658
|
+
if (typeof this.error !== 'undefined') {
|
|
4659
|
+
toReturn['error'] = this.error;
|
|
4660
|
+
}
|
|
4661
|
+
return toReturn;
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
class GetBlogWebsiteDetailsRequest {
|
|
4665
|
+
static fromProto(proto) {
|
|
4666
|
+
let m = new GetBlogWebsiteDetailsRequest();
|
|
4667
|
+
m = Object.assign(m, proto);
|
|
4668
|
+
return m;
|
|
4669
|
+
}
|
|
4670
|
+
constructor(kwargs) {
|
|
4671
|
+
if (!kwargs) {
|
|
4672
|
+
return;
|
|
4673
|
+
}
|
|
4674
|
+
Object.assign(this, kwargs);
|
|
4675
|
+
}
|
|
4676
|
+
toApiJson() {
|
|
4677
|
+
const toReturn = {};
|
|
4678
|
+
if (typeof this.socialServiceIds !== 'undefined') {
|
|
4679
|
+
toReturn['socialServiceIds'] = this.socialServiceIds;
|
|
4680
|
+
}
|
|
4681
|
+
return toReturn;
|
|
4682
|
+
}
|
|
4683
|
+
}
|
|
4684
|
+
class GetBlogWebsiteDetailsResponse {
|
|
4685
|
+
static fromProto(proto) {
|
|
4686
|
+
let m = new GetBlogWebsiteDetailsResponse();
|
|
4687
|
+
m = Object.assign(m, proto);
|
|
4688
|
+
if (proto.blogWebsiteDetails) {
|
|
4689
|
+
m.blogWebsiteDetails = proto.blogWebsiteDetails.map(BlogWebsiteDetails.fromProto);
|
|
4690
|
+
}
|
|
4691
|
+
return m;
|
|
4692
|
+
}
|
|
4693
|
+
constructor(kwargs) {
|
|
4694
|
+
if (!kwargs) {
|
|
4695
|
+
return;
|
|
4696
|
+
}
|
|
4697
|
+
Object.assign(this, kwargs);
|
|
4698
|
+
}
|
|
4699
|
+
toApiJson() {
|
|
4700
|
+
const toReturn = {};
|
|
4701
|
+
if (typeof this.blogWebsiteDetails !== 'undefined' && this.blogWebsiteDetails !== null) {
|
|
4702
|
+
toReturn['blogWebsiteDetails'] = 'toApiJson' in this.blogWebsiteDetails ? this.blogWebsiteDetails.toApiJson() : this.blogWebsiteDetails;
|
|
4703
|
+
}
|
|
4704
|
+
return toReturn;
|
|
4705
|
+
}
|
|
4706
|
+
}
|
|
4707
|
+
|
|
4708
|
+
function enumStringToValue$d(enumRef, value) {
|
|
4389
4709
|
if (typeof value === 'number') {
|
|
4390
4710
|
return value;
|
|
4391
4711
|
}
|
|
@@ -4435,7 +4755,7 @@ class MCPOptions {
|
|
|
4435
4755
|
}
|
|
4436
4756
|
}
|
|
4437
4757
|
|
|
4438
|
-
function enumStringToValue$
|
|
4758
|
+
function enumStringToValue$c(enumRef, value) {
|
|
4439
4759
|
if (typeof value === 'number') {
|
|
4440
4760
|
return value;
|
|
4441
4761
|
}
|
|
@@ -4670,7 +4990,7 @@ class SocialPostV2 {
|
|
|
4670
4990
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
4671
4991
|
}
|
|
4672
4992
|
if (proto.postType) {
|
|
4673
|
-
m.postType = enumStringToValue$
|
|
4993
|
+
m.postType = enumStringToValue$c(PostTypeV2, proto.postType);
|
|
4674
4994
|
}
|
|
4675
4995
|
if (proto.metadata) {
|
|
4676
4996
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -4779,7 +5099,7 @@ class YoutubeCustomizationV2 {
|
|
|
4779
5099
|
let m = new YoutubeCustomizationV2();
|
|
4780
5100
|
m = Object.assign(m, proto);
|
|
4781
5101
|
if (proto.privacyStatus) {
|
|
4782
|
-
m.privacyStatus = enumStringToValue$
|
|
5102
|
+
m.privacyStatus = enumStringToValue$c(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
4783
5103
|
}
|
|
4784
5104
|
return m;
|
|
4785
5105
|
}
|
|
@@ -4798,7 +5118,7 @@ class YoutubeCustomizationV2 {
|
|
|
4798
5118
|
}
|
|
4799
5119
|
}
|
|
4800
5120
|
|
|
4801
|
-
function enumStringToValue$
|
|
5121
|
+
function enumStringToValue$b(enumRef, value) {
|
|
4802
5122
|
if (typeof value === 'number') {
|
|
4803
5123
|
return value;
|
|
4804
5124
|
}
|
|
@@ -4809,7 +5129,7 @@ class Media {
|
|
|
4809
5129
|
let m = new Media();
|
|
4810
5130
|
m = Object.assign(m, proto);
|
|
4811
5131
|
if (proto.mediaType) {
|
|
4812
|
-
m.mediaType = enumStringToValue$
|
|
5132
|
+
m.mediaType = enumStringToValue$b(MediaType$1, proto.mediaType);
|
|
4813
5133
|
}
|
|
4814
5134
|
return m;
|
|
4815
5135
|
}
|
|
@@ -4831,7 +5151,7 @@ class Media {
|
|
|
4831
5151
|
}
|
|
4832
5152
|
}
|
|
4833
5153
|
|
|
4834
|
-
function enumStringToValue$
|
|
5154
|
+
function enumStringToValue$a(enumRef, value) {
|
|
4835
5155
|
if (typeof value === 'number') {
|
|
4836
5156
|
return value;
|
|
4837
5157
|
}
|
|
@@ -5366,21 +5686,18 @@ class UserLink {
|
|
|
5366
5686
|
}
|
|
5367
5687
|
}
|
|
5368
5688
|
|
|
5369
|
-
function enumStringToValue$
|
|
5689
|
+
function enumStringToValue$9(enumRef, value) {
|
|
5370
5690
|
if (typeof value === 'number') {
|
|
5371
5691
|
return value;
|
|
5372
5692
|
}
|
|
5373
5693
|
return enumRef[value];
|
|
5374
5694
|
}
|
|
5375
|
-
class
|
|
5695
|
+
class ProvisionRequest {
|
|
5376
5696
|
static fromProto(proto) {
|
|
5377
|
-
let m = new
|
|
5697
|
+
let m = new ProvisionRequest();
|
|
5378
5698
|
m = Object.assign(m, proto);
|
|
5379
|
-
if (proto.
|
|
5380
|
-
m.
|
|
5381
|
-
}
|
|
5382
|
-
if (proto.updated) {
|
|
5383
|
-
m.updated = new Date(proto.updated);
|
|
5699
|
+
if (proto.action) {
|
|
5700
|
+
m.action = enumStringToValue$9(ProvisionAction, proto.action);
|
|
5384
5701
|
}
|
|
5385
5702
|
return m;
|
|
5386
5703
|
}
|
|
@@ -5392,8 +5709,53 @@ class AiInstructions {
|
|
|
5392
5709
|
}
|
|
5393
5710
|
toApiJson() {
|
|
5394
5711
|
const toReturn = {};
|
|
5395
|
-
if (typeof this.
|
|
5396
|
-
toReturn['
|
|
5712
|
+
if (typeof this.action !== 'undefined') {
|
|
5713
|
+
toReturn['action'] = this.action;
|
|
5714
|
+
}
|
|
5715
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
5716
|
+
toReturn['partnerId'] = this.partnerId;
|
|
5717
|
+
}
|
|
5718
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5719
|
+
toReturn['businessId'] = this.businessId;
|
|
5720
|
+
}
|
|
5721
|
+
if (typeof this.activationId !== 'undefined') {
|
|
5722
|
+
toReturn['activationId'] = this.activationId;
|
|
5723
|
+
}
|
|
5724
|
+
if (typeof this.editionId !== 'undefined') {
|
|
5725
|
+
toReturn['editionId'] = this.editionId;
|
|
5726
|
+
}
|
|
5727
|
+
return toReturn;
|
|
5728
|
+
}
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5731
|
+
function enumStringToValue$8(enumRef, value) {
|
|
5732
|
+
if (typeof value === 'number') {
|
|
5733
|
+
return value;
|
|
5734
|
+
}
|
|
5735
|
+
return enumRef[value];
|
|
5736
|
+
}
|
|
5737
|
+
class AiInstructions {
|
|
5738
|
+
static fromProto(proto) {
|
|
5739
|
+
let m = new AiInstructions();
|
|
5740
|
+
m = Object.assign(m, proto);
|
|
5741
|
+
if (proto.created) {
|
|
5742
|
+
m.created = new Date(proto.created);
|
|
5743
|
+
}
|
|
5744
|
+
if (proto.updated) {
|
|
5745
|
+
m.updated = new Date(proto.updated);
|
|
5746
|
+
}
|
|
5747
|
+
return m;
|
|
5748
|
+
}
|
|
5749
|
+
constructor(kwargs) {
|
|
5750
|
+
if (!kwargs) {
|
|
5751
|
+
return;
|
|
5752
|
+
}
|
|
5753
|
+
Object.assign(this, kwargs);
|
|
5754
|
+
}
|
|
5755
|
+
toApiJson() {
|
|
5756
|
+
const toReturn = {};
|
|
5757
|
+
if (typeof this.commonAiInstructions !== 'undefined') {
|
|
5758
|
+
toReturn['commonAiInstructions'] = this.commonAiInstructions;
|
|
5397
5759
|
}
|
|
5398
5760
|
if (typeof this.dataUsageStatus !== 'undefined') {
|
|
5399
5761
|
toReturn['dataUsageStatus'] = this.dataUsageStatus;
|
|
@@ -5415,7 +5777,7 @@ class BlogPostCampaign {
|
|
|
5415
5777
|
let m = new BlogPostCampaign();
|
|
5416
5778
|
m = Object.assign(m, proto);
|
|
5417
5779
|
if (proto.blogPostType) {
|
|
5418
|
-
m.blogPostType = enumStringToValue$
|
|
5780
|
+
m.blogPostType = enumStringToValue$8(PostCategory, proto.blogPostType);
|
|
5419
5781
|
}
|
|
5420
5782
|
return m;
|
|
5421
5783
|
}
|
|
@@ -5697,10 +6059,10 @@ class GenerateAiRequest {
|
|
|
5697
6059
|
let m = new GenerateAiRequest();
|
|
5698
6060
|
m = Object.assign(m, proto);
|
|
5699
6061
|
if (proto.length) {
|
|
5700
|
-
m.length = enumStringToValue$
|
|
6062
|
+
m.length = enumStringToValue$8(ContentLength, proto.length);
|
|
5701
6063
|
}
|
|
5702
6064
|
if (proto.generateType) {
|
|
5703
|
-
m.generateType = enumStringToValue$
|
|
6065
|
+
m.generateType = enumStringToValue$8(GenerateType, proto.generateType);
|
|
5704
6066
|
}
|
|
5705
6067
|
if (proto.metadata) {
|
|
5706
6068
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -5773,7 +6135,7 @@ class GenerateBlogPostCampaignRequest {
|
|
|
5773
6135
|
let m = new GenerateBlogPostCampaignRequest();
|
|
5774
6136
|
m = Object.assign(m, proto);
|
|
5775
6137
|
if (proto.networkType) {
|
|
5776
|
-
m.networkType = proto.networkType.map((v) => enumStringToValue$
|
|
6138
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$8(Network, v));
|
|
5777
6139
|
}
|
|
5778
6140
|
if (proto.blogCampaign) {
|
|
5779
6141
|
m.blogCampaign = BlogPostCampaign.fromProto(proto.blogCampaign);
|
|
@@ -5866,7 +6228,7 @@ class GeneratePostCampaignRequest {
|
|
|
5866
6228
|
let m = new GeneratePostCampaignRequest();
|
|
5867
6229
|
m = Object.assign(m, proto);
|
|
5868
6230
|
if (proto.networkType) {
|
|
5869
|
-
m.networkType = proto.networkType.map((v) => enumStringToValue$
|
|
6231
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$8(Network, v));
|
|
5870
6232
|
}
|
|
5871
6233
|
if (proto.postGeneration) {
|
|
5872
6234
|
m.postGeneration = PostsGeneration.fromProto(proto.postGeneration);
|
|
@@ -6207,7 +6569,7 @@ class KeywordGeneration {
|
|
|
6207
6569
|
let m = new KeywordGeneration();
|
|
6208
6570
|
m = Object.assign(m, proto);
|
|
6209
6571
|
if (proto.postType) {
|
|
6210
|
-
m.postType = enumStringToValue$
|
|
6572
|
+
m.postType = enumStringToValue$8(PostCategory, proto.postType);
|
|
6211
6573
|
}
|
|
6212
6574
|
return m;
|
|
6213
6575
|
}
|
|
@@ -6572,7 +6934,7 @@ class PostContent {
|
|
|
6572
6934
|
let m = new PostContent();
|
|
6573
6935
|
m = Object.assign(m, proto);
|
|
6574
6936
|
if (proto.socialNetwork) {
|
|
6575
|
-
m.socialNetwork = enumStringToValue$
|
|
6937
|
+
m.socialNetwork = enumStringToValue$8(Network, proto.socialNetwork);
|
|
6576
6938
|
}
|
|
6577
6939
|
return m;
|
|
6578
6940
|
}
|
|
@@ -6598,10 +6960,10 @@ class PostsGeneration {
|
|
|
6598
6960
|
let m = new PostsGeneration();
|
|
6599
6961
|
m = Object.assign(m, proto);
|
|
6600
6962
|
if (proto.tone) {
|
|
6601
|
-
m.tone = enumStringToValue$
|
|
6963
|
+
m.tone = enumStringToValue$8(Tone, proto.tone);
|
|
6602
6964
|
}
|
|
6603
6965
|
if (proto.contentLength) {
|
|
6604
|
-
m.contentLength = enumStringToValue$
|
|
6966
|
+
m.contentLength = enumStringToValue$8(ContentLength, proto.contentLength);
|
|
6605
6967
|
}
|
|
6606
6968
|
return m;
|
|
6607
6969
|
}
|
|
@@ -6688,7 +7050,7 @@ class SocialPostOutput {
|
|
|
6688
7050
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
6689
7051
|
}
|
|
6690
7052
|
if (proto.status) {
|
|
6691
|
-
m.status = enumStringToValue$
|
|
7053
|
+
m.status = enumStringToValue$8(PostStatusV2, proto.status);
|
|
6692
7054
|
}
|
|
6693
7055
|
return m;
|
|
6694
7056
|
}
|
|
@@ -6997,7 +7359,7 @@ class UploadToStorageRequest {
|
|
|
6997
7359
|
let m = new UploadToStorageRequest();
|
|
6998
7360
|
m = Object.assign(m, proto);
|
|
6999
7361
|
if (proto.mediaType) {
|
|
7000
|
-
m.mediaType = enumStringToValue$
|
|
7362
|
+
m.mediaType = enumStringToValue$8(MediaType$1, proto.mediaType);
|
|
7001
7363
|
}
|
|
7002
7364
|
return m;
|
|
7003
7365
|
}
|
|
@@ -7065,7 +7427,7 @@ class UploadedMedia {
|
|
|
7065
7427
|
}
|
|
7066
7428
|
}
|
|
7067
7429
|
|
|
7068
|
-
function enumStringToValue$
|
|
7430
|
+
function enumStringToValue$7(enumRef, value) {
|
|
7069
7431
|
if (typeof value === 'number') {
|
|
7070
7432
|
return value;
|
|
7071
7433
|
}
|
|
@@ -7076,7 +7438,7 @@ class Action {
|
|
|
7076
7438
|
let m = new Action();
|
|
7077
7439
|
m = Object.assign(m, proto);
|
|
7078
7440
|
if (proto.actionType) {
|
|
7079
|
-
m.actionType = enumStringToValue$
|
|
7441
|
+
m.actionType = enumStringToValue$7(ActionType, proto.actionType);
|
|
7080
7442
|
}
|
|
7081
7443
|
return m;
|
|
7082
7444
|
}
|
|
@@ -7216,7 +7578,7 @@ class StartChatResponse {
|
|
|
7216
7578
|
}
|
|
7217
7579
|
}
|
|
7218
7580
|
|
|
7219
|
-
function enumStringToValue$
|
|
7581
|
+
function enumStringToValue$6(enumRef, value) {
|
|
7220
7582
|
if (typeof value === 'number') {
|
|
7221
7583
|
return value;
|
|
7222
7584
|
}
|
|
@@ -7227,7 +7589,7 @@ class ChatMessage {
|
|
|
7227
7589
|
let m = new ChatMessage();
|
|
7228
7590
|
m = Object.assign(m, proto);
|
|
7229
7591
|
if (proto.role) {
|
|
7230
|
-
m.role = enumStringToValue$
|
|
7592
|
+
m.role = enumStringToValue$6(Role, proto.role);
|
|
7231
7593
|
}
|
|
7232
7594
|
return m;
|
|
7233
7595
|
}
|
|
@@ -7307,7 +7669,7 @@ class SendMessageV2Response {
|
|
|
7307
7669
|
}
|
|
7308
7670
|
}
|
|
7309
7671
|
|
|
7310
|
-
function enumStringToValue$
|
|
7672
|
+
function enumStringToValue$5(enumRef, value) {
|
|
7311
7673
|
if (typeof value === 'number') {
|
|
7312
7674
|
return value;
|
|
7313
7675
|
}
|
|
@@ -7599,7 +7961,7 @@ class UpdateBlogConnectionRequest {
|
|
|
7599
7961
|
}
|
|
7600
7962
|
}
|
|
7601
7963
|
|
|
7602
|
-
function enumStringToValue$
|
|
7964
|
+
function enumStringToValue$4(enumRef, value) {
|
|
7603
7965
|
if (typeof value === 'number') {
|
|
7604
7966
|
return value;
|
|
7605
7967
|
}
|
|
@@ -8220,7 +8582,7 @@ class UpdateBlogPostRequest {
|
|
|
8220
8582
|
}
|
|
8221
8583
|
}
|
|
8222
8584
|
|
|
8223
|
-
function enumStringToValue(enumRef, value) {
|
|
8585
|
+
function enumStringToValue$3(enumRef, value) {
|
|
8224
8586
|
if (typeof value === 'number') {
|
|
8225
8587
|
return value;
|
|
8226
8588
|
}
|
|
@@ -8421,7 +8783,7 @@ class UpdateCampaignIdRequest {
|
|
|
8421
8783
|
let m = new UpdateCampaignIdRequest();
|
|
8422
8784
|
m = Object.assign(m, proto);
|
|
8423
8785
|
if (proto.type) {
|
|
8424
|
-
m.type = enumStringToValue(PostCategory, proto.type);
|
|
8786
|
+
m.type = enumStringToValue$3(PostCategory, proto.type);
|
|
8425
8787
|
}
|
|
8426
8788
|
return m;
|
|
8427
8789
|
}
|
|
@@ -8478,150 +8840,1596 @@ class UpdateCampaignRequest {
|
|
|
8478
8840
|
}
|
|
8479
8841
|
}
|
|
8480
8842
|
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
//
|
|
8485
|
-
// Objects Index.
|
|
8486
|
-
// *********************************
|
|
8487
|
-
|
|
8488
|
-
const environment = (window ? window['environment'] : 'prod') ?? 'prod';
|
|
8489
|
-
const hostMap = {
|
|
8490
|
-
'local': 'social-post.vendasta-local.com',
|
|
8491
|
-
'test': '',
|
|
8492
|
-
'demo': 'social-posts-demo.apigateway.co',
|
|
8493
|
-
'prod': 'social-posts-prod.apigateway.co',
|
|
8494
|
-
'production': 'social-posts-prod.apigateway.co',
|
|
8495
|
-
};
|
|
8496
|
-
class HostService {
|
|
8497
|
-
get host() {
|
|
8498
|
-
return hostMap[environment.toLowerCase()];
|
|
8499
|
-
}
|
|
8500
|
-
get hostWithScheme() {
|
|
8501
|
-
return 'https://' + this.host;
|
|
8843
|
+
function enumStringToValue$2(enumRef, value) {
|
|
8844
|
+
if (typeof value === 'number') {
|
|
8845
|
+
return value;
|
|
8502
8846
|
}
|
|
8847
|
+
return enumRef[value];
|
|
8503
8848
|
}
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
}] });
|
|
8510
|
-
|
|
8511
|
-
// *********************************
|
|
8512
|
-
// Code generated by sdkgen
|
|
8513
|
-
// DO NOT EDIT!.
|
|
8514
|
-
//
|
|
8515
|
-
// API Service.
|
|
8516
|
-
// *********************************
|
|
8517
|
-
class SocialPostsApiService {
|
|
8518
|
-
constructor() {
|
|
8519
|
-
this.hostService = inject(HostService);
|
|
8520
|
-
this.http = inject(HttpClient);
|
|
8521
|
-
this._host = this.hostService.hostWithScheme;
|
|
8522
|
-
}
|
|
8523
|
-
apiOptions() {
|
|
8524
|
-
return {
|
|
8525
|
-
headers: new HttpHeaders({
|
|
8526
|
-
'Content-Type': 'application/json'
|
|
8527
|
-
}),
|
|
8528
|
-
withCredentials: true
|
|
8529
|
-
};
|
|
8530
|
-
}
|
|
8531
|
-
list(r) {
|
|
8532
|
-
const request = (r.toApiJson) ? r : new ListSocialPostsRequest(r);
|
|
8533
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/List", request.toApiJson(), this.apiOptions())
|
|
8534
|
-
.pipe(map(resp => ListSocialPostsResponse.fromProto(resp)));
|
|
8535
|
-
}
|
|
8536
|
-
deleteSocialPost(r) {
|
|
8537
|
-
const request = (r.toApiJson) ? r : new DeleteSocialPostRequest(r);
|
|
8538
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/DeleteSocialPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
8539
|
-
}
|
|
8540
|
-
scheduleToAllPages(r) {
|
|
8541
|
-
const request = (r.toApiJson) ? r : new ScheduleToAllPagesRequest(r);
|
|
8542
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/ScheduleToAllPages", request.toApiJson(), this.apiOptions())
|
|
8543
|
-
.pipe(map(resp => ScheduleToAllPagesResponse.fromProto(resp)));
|
|
8544
|
-
}
|
|
8545
|
-
schedule(r) {
|
|
8546
|
-
const request = (r.toApiJson) ? r : new SchedulePostRequest(r);
|
|
8547
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/Schedule", request.toApiJson(), this.apiOptions())
|
|
8548
|
-
.pipe(map(resp => SchedulePostResponse.fromProto(resp)));
|
|
8549
|
-
}
|
|
8550
|
-
getMultiSocialPosts(r) {
|
|
8551
|
-
const request = (r.toApiJson) ? r : new GetMultiSocialPostsRequest(r);
|
|
8552
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPosts", request.toApiJson(), this.apiOptions())
|
|
8553
|
-
.pipe(map(resp => GetMultiSocialPostsResponse.fromProto(resp)));
|
|
8554
|
-
}
|
|
8555
|
-
getMultiSocialPostStats(r) {
|
|
8556
|
-
const request = (r.toApiJson) ? r : new GetMultiSocialPostStatsRequest(r);
|
|
8557
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPostStats", request.toApiJson(), this.apiOptions())
|
|
8558
|
-
.pipe(map(resp => GetMultiSocialPostStatsResponse.fromProto(resp)));
|
|
8849
|
+
class CampaignCustomization {
|
|
8850
|
+
static fromProto(proto) {
|
|
8851
|
+
let m = new CampaignCustomization();
|
|
8852
|
+
m = Object.assign(m, proto);
|
|
8853
|
+
return m;
|
|
8559
8854
|
}
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8855
|
+
constructor(kwargs) {
|
|
8856
|
+
if (!kwargs) {
|
|
8857
|
+
return;
|
|
8858
|
+
}
|
|
8859
|
+
Object.assign(this, kwargs);
|
|
8564
8860
|
}
|
|
8565
|
-
|
|
8566
|
-
const
|
|
8567
|
-
|
|
8568
|
-
|
|
8861
|
+
toApiJson() {
|
|
8862
|
+
const toReturn = {};
|
|
8863
|
+
if (typeof this.id !== 'undefined') {
|
|
8864
|
+
toReturn['id'] = this.id;
|
|
8865
|
+
}
|
|
8866
|
+
if (typeof this.name !== 'undefined') {
|
|
8867
|
+
toReturn['name'] = this.name;
|
|
8868
|
+
}
|
|
8869
|
+
if (typeof this.shortCode !== 'undefined') {
|
|
8870
|
+
toReturn['shortCode'] = this.shortCode;
|
|
8871
|
+
}
|
|
8872
|
+
return toReturn;
|
|
8569
8873
|
}
|
|
8570
8874
|
}
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
class SocialPostsService {
|
|
8579
|
-
constructor(socialPostsApiService) {
|
|
8580
|
-
this.socialPostsApiService = socialPostsApiService;
|
|
8581
|
-
}
|
|
8582
|
-
list(start, end, socialServiceIds, businessId, partnerId, cursor, tags, pageSize) {
|
|
8583
|
-
const req = new ListSocialPostsRequest({
|
|
8584
|
-
start: start,
|
|
8585
|
-
end: end,
|
|
8586
|
-
businessId: businessId,
|
|
8587
|
-
partnerId: partnerId,
|
|
8588
|
-
cursor: cursor,
|
|
8589
|
-
socialServiceIds: socialServiceIds,
|
|
8590
|
-
tags: tags,
|
|
8591
|
-
pageSize: pageSize,
|
|
8592
|
-
});
|
|
8593
|
-
return this.socialPostsApiService.list(req);
|
|
8594
|
-
}
|
|
8595
|
-
getMultiSocialPosts(businessId, internalPostIds) {
|
|
8596
|
-
if (!internalPostIds || internalPostIds.length === 0) {
|
|
8597
|
-
const res = new GetMultiSocialPostsResponse();
|
|
8598
|
-
return of(res);
|
|
8875
|
+
class Categories {
|
|
8876
|
+
static fromProto(proto) {
|
|
8877
|
+
let m = new Categories();
|
|
8878
|
+
m = Object.assign(m, proto);
|
|
8879
|
+
if (proto.id) {
|
|
8880
|
+
m.id = parseInt(proto.id, 10);
|
|
8599
8881
|
}
|
|
8600
|
-
|
|
8601
|
-
return this.socialPostsApiService.getMultiSocialPosts(req);
|
|
8882
|
+
return m;
|
|
8602
8883
|
}
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8884
|
+
constructor(kwargs) {
|
|
8885
|
+
if (!kwargs) {
|
|
8886
|
+
return;
|
|
8887
|
+
}
|
|
8888
|
+
Object.assign(this, kwargs);
|
|
8606
8889
|
}
|
|
8607
|
-
|
|
8608
|
-
const
|
|
8609
|
-
|
|
8890
|
+
toApiJson() {
|
|
8891
|
+
const toReturn = {};
|
|
8892
|
+
if (typeof this.id !== 'undefined') {
|
|
8893
|
+
toReturn['id'] = this.id;
|
|
8894
|
+
}
|
|
8895
|
+
if (typeof this.name !== 'undefined') {
|
|
8896
|
+
toReturn['name'] = this.name;
|
|
8897
|
+
}
|
|
8898
|
+
return toReturn;
|
|
8610
8899
|
}
|
|
8611
|
-
|
|
8612
|
-
|
|
8900
|
+
}
|
|
8901
|
+
class Draft {
|
|
8902
|
+
static fromProto(proto) {
|
|
8903
|
+
let m = new Draft();
|
|
8904
|
+
m = Object.assign(m, proto);
|
|
8905
|
+
if (proto.created) {
|
|
8906
|
+
m.created = new Date(proto.created);
|
|
8907
|
+
}
|
|
8908
|
+
if (proto.updated) {
|
|
8909
|
+
m.updated = new Date(proto.updated);
|
|
8910
|
+
}
|
|
8911
|
+
if (proto.postDateTime) {
|
|
8912
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
8913
|
+
}
|
|
8914
|
+
if (proto.gmbPostCustomization) {
|
|
8915
|
+
m.gmbPostCustomization = GMBPostCustomization.fromProto(proto.gmbPostCustomization);
|
|
8916
|
+
}
|
|
8917
|
+
if (proto.media) {
|
|
8918
|
+
m.media = proto.media.map(DraftMedia.fromProto);
|
|
8919
|
+
}
|
|
8920
|
+
if (proto.draftType) {
|
|
8921
|
+
m.draftType = enumStringToValue$2(DraftType, proto.draftType);
|
|
8922
|
+
}
|
|
8923
|
+
if (proto.metadata) {
|
|
8924
|
+
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
8925
|
+
}
|
|
8926
|
+
if (proto.youtubeCustomization) {
|
|
8927
|
+
m.youtubeCustomization = DraftYoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
8928
|
+
}
|
|
8929
|
+
if (proto.ssidDraftTypes) {
|
|
8930
|
+
m.ssidDraftTypes = proto.ssidDraftTypes.map(SSIDDraftType.fromProto);
|
|
8931
|
+
}
|
|
8932
|
+
if (proto.tiktokCustomization) {
|
|
8933
|
+
m.tiktokCustomization = DraftTikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
8934
|
+
}
|
|
8935
|
+
if (proto.blogPostCustomization) {
|
|
8936
|
+
m.blogPostCustomization = DraftBlogPostCustomization.fromProto(proto.blogPostCustomization);
|
|
8937
|
+
}
|
|
8938
|
+
if (proto.campaignCustomization) {
|
|
8939
|
+
m.campaignCustomization = CampaignCustomization.fromProto(proto.campaignCustomization);
|
|
8940
|
+
}
|
|
8941
|
+
return m;
|
|
8613
8942
|
}
|
|
8614
|
-
|
|
8615
|
-
|
|
8943
|
+
constructor(kwargs) {
|
|
8944
|
+
if (!kwargs) {
|
|
8945
|
+
return;
|
|
8946
|
+
}
|
|
8947
|
+
Object.assign(this, kwargs);
|
|
8616
8948
|
}
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8949
|
+
toApiJson() {
|
|
8950
|
+
const toReturn = {};
|
|
8951
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
8952
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
8953
|
+
}
|
|
8954
|
+
if (typeof this.draftId !== 'undefined') {
|
|
8955
|
+
toReturn['draftId'] = this.draftId;
|
|
8956
|
+
}
|
|
8957
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
8958
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
8959
|
+
}
|
|
8960
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
8961
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
8962
|
+
}
|
|
8963
|
+
if (typeof this.draftText !== 'undefined') {
|
|
8964
|
+
toReturn['draftText'] = this.draftText;
|
|
8965
|
+
}
|
|
8966
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
8967
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
8968
|
+
}
|
|
8969
|
+
if (typeof this.gmbPostCustomization !== 'undefined' && this.gmbPostCustomization !== null) {
|
|
8970
|
+
toReturn['gmbPostCustomization'] = 'toApiJson' in this.gmbPostCustomization ? this.gmbPostCustomization.toApiJson() : this.gmbPostCustomization;
|
|
8971
|
+
}
|
|
8972
|
+
if (typeof this.previews !== 'undefined') {
|
|
8973
|
+
toReturn['previews'] = this.previews;
|
|
8974
|
+
}
|
|
8975
|
+
if (typeof this.options !== 'undefined') {
|
|
8976
|
+
toReturn['options'] = this.options;
|
|
8977
|
+
}
|
|
8978
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
8979
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
8980
|
+
}
|
|
8981
|
+
if (typeof this.ssids !== 'undefined') {
|
|
8982
|
+
toReturn['ssids'] = this.ssids;
|
|
8983
|
+
}
|
|
8984
|
+
if (typeof this.draftType !== 'undefined') {
|
|
8985
|
+
toReturn['draftType'] = this.draftType;
|
|
8986
|
+
}
|
|
8987
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
8988
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
8989
|
+
}
|
|
8990
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
8991
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
8992
|
+
}
|
|
8993
|
+
if (typeof this.ssidDraftTypes !== 'undefined' && this.ssidDraftTypes !== null) {
|
|
8994
|
+
toReturn['ssidDraftTypes'] = 'toApiJson' in this.ssidDraftTypes ? this.ssidDraftTypes.toApiJson() : this.ssidDraftTypes;
|
|
8995
|
+
}
|
|
8996
|
+
if (typeof this.isHidden !== 'undefined') {
|
|
8997
|
+
toReturn['isHidden'] = this.isHidden;
|
|
8998
|
+
}
|
|
8999
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
9000
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
9001
|
+
}
|
|
9002
|
+
if (typeof this.blogPostCustomization !== 'undefined' && this.blogPostCustomization !== null) {
|
|
9003
|
+
toReturn['blogPostCustomization'] = 'toApiJson' in this.blogPostCustomization ? this.blogPostCustomization.toApiJson() : this.blogPostCustomization;
|
|
9004
|
+
}
|
|
9005
|
+
if (typeof this.campaignCustomization !== 'undefined' && this.campaignCustomization !== null) {
|
|
9006
|
+
toReturn['campaignCustomization'] = 'toApiJson' in this.campaignCustomization ? this.campaignCustomization.toApiJson() : this.campaignCustomization;
|
|
9007
|
+
}
|
|
9008
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9009
|
+
toReturn['brandId'] = this.brandId;
|
|
9010
|
+
}
|
|
9011
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9012
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9013
|
+
}
|
|
9014
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9015
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9016
|
+
}
|
|
9017
|
+
return toReturn;
|
|
9018
|
+
}
|
|
9019
|
+
}
|
|
9020
|
+
class DraftAuthor {
|
|
9021
|
+
static fromProto(proto) {
|
|
9022
|
+
let m = new DraftAuthor();
|
|
9023
|
+
m = Object.assign(m, proto);
|
|
9024
|
+
if (proto.id) {
|
|
9025
|
+
m.id = parseInt(proto.id, 10);
|
|
9026
|
+
}
|
|
9027
|
+
return m;
|
|
9028
|
+
}
|
|
9029
|
+
constructor(kwargs) {
|
|
9030
|
+
if (!kwargs) {
|
|
9031
|
+
return;
|
|
9032
|
+
}
|
|
9033
|
+
Object.assign(this, kwargs);
|
|
9034
|
+
}
|
|
9035
|
+
toApiJson() {
|
|
9036
|
+
const toReturn = {};
|
|
9037
|
+
if (typeof this.id !== 'undefined') {
|
|
9038
|
+
toReturn['id'] = this.id;
|
|
9039
|
+
}
|
|
9040
|
+
if (typeof this.name !== 'undefined') {
|
|
9041
|
+
toReturn['name'] = this.name;
|
|
9042
|
+
}
|
|
9043
|
+
return toReturn;
|
|
9044
|
+
}
|
|
9045
|
+
}
|
|
9046
|
+
class DraftBlogPostCustomization {
|
|
9047
|
+
static fromProto(proto) {
|
|
9048
|
+
let m = new DraftBlogPostCustomization();
|
|
9049
|
+
m = Object.assign(m, proto);
|
|
9050
|
+
if (proto.author) {
|
|
9051
|
+
m.author = DraftAuthor.fromProto(proto.author);
|
|
9052
|
+
}
|
|
9053
|
+
if (proto.categories) {
|
|
9054
|
+
m.categories = proto.categories.map(Categories.fromProto);
|
|
9055
|
+
}
|
|
9056
|
+
return m;
|
|
9057
|
+
}
|
|
9058
|
+
constructor(kwargs) {
|
|
9059
|
+
if (!kwargs) {
|
|
9060
|
+
return;
|
|
9061
|
+
}
|
|
9062
|
+
Object.assign(this, kwargs);
|
|
9063
|
+
}
|
|
9064
|
+
toApiJson() {
|
|
9065
|
+
const toReturn = {};
|
|
9066
|
+
if (typeof this.title !== 'undefined') {
|
|
9067
|
+
toReturn['title'] = this.title;
|
|
9068
|
+
}
|
|
9069
|
+
if (typeof this.author !== 'undefined' && this.author !== null) {
|
|
9070
|
+
toReturn['author'] = 'toApiJson' in this.author ? this.author.toApiJson() : this.author;
|
|
9071
|
+
}
|
|
9072
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
9073
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
9074
|
+
}
|
|
9075
|
+
if (typeof this.tags !== 'undefined') {
|
|
9076
|
+
toReturn['tags'] = this.tags;
|
|
9077
|
+
}
|
|
9078
|
+
if (typeof this.siteType !== 'undefined') {
|
|
9079
|
+
toReturn['siteType'] = this.siteType;
|
|
9080
|
+
}
|
|
9081
|
+
return toReturn;
|
|
9082
|
+
}
|
|
9083
|
+
}
|
|
9084
|
+
class DraftMedia {
|
|
9085
|
+
static fromProto(proto) {
|
|
9086
|
+
let m = new DraftMedia();
|
|
9087
|
+
m = Object.assign(m, proto);
|
|
9088
|
+
if (proto.metaData) {
|
|
9089
|
+
m.metaData = proto.metaData.map(DraftMetaData.fromProto);
|
|
9090
|
+
}
|
|
9091
|
+
return m;
|
|
9092
|
+
}
|
|
9093
|
+
constructor(kwargs) {
|
|
9094
|
+
if (!kwargs) {
|
|
9095
|
+
return;
|
|
9096
|
+
}
|
|
9097
|
+
Object.assign(this, kwargs);
|
|
9098
|
+
}
|
|
9099
|
+
toApiJson() {
|
|
9100
|
+
const toReturn = {};
|
|
9101
|
+
if (typeof this.imageUrl !== 'undefined') {
|
|
9102
|
+
toReturn['imageUrl'] = this.imageUrl;
|
|
9103
|
+
}
|
|
9104
|
+
if (typeof this.videoUrl !== 'undefined') {
|
|
9105
|
+
toReturn['videoUrl'] = this.videoUrl;
|
|
9106
|
+
}
|
|
9107
|
+
if (typeof this.gifUrl !== 'undefined') {
|
|
9108
|
+
toReturn['gifUrl'] = this.gifUrl;
|
|
9109
|
+
}
|
|
9110
|
+
if (typeof this.mediaId !== 'undefined') {
|
|
9111
|
+
toReturn['mediaId'] = this.mediaId;
|
|
9112
|
+
}
|
|
9113
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
9114
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
9115
|
+
}
|
|
9116
|
+
return toReturn;
|
|
9117
|
+
}
|
|
9118
|
+
}
|
|
9119
|
+
class DraftMetaData {
|
|
9120
|
+
static fromProto(proto) {
|
|
9121
|
+
let m = new DraftMetaData();
|
|
9122
|
+
m = Object.assign(m, proto);
|
|
9123
|
+
return m;
|
|
9124
|
+
}
|
|
9125
|
+
constructor(kwargs) {
|
|
9126
|
+
if (!kwargs) {
|
|
9127
|
+
return;
|
|
9128
|
+
}
|
|
9129
|
+
Object.assign(this, kwargs);
|
|
9130
|
+
}
|
|
9131
|
+
toApiJson() {
|
|
9132
|
+
const toReturn = {};
|
|
9133
|
+
if (typeof this.propertyName !== 'undefined') {
|
|
9134
|
+
toReturn['propertyName'] = this.propertyName;
|
|
9135
|
+
}
|
|
9136
|
+
if (typeof this.propertyValue !== 'undefined') {
|
|
9137
|
+
toReturn['propertyValue'] = this.propertyValue;
|
|
9138
|
+
}
|
|
9139
|
+
return toReturn;
|
|
9140
|
+
}
|
|
9141
|
+
}
|
|
9142
|
+
class DraftTikTokCustomization {
|
|
9143
|
+
static fromProto(proto) {
|
|
9144
|
+
let m = new DraftTikTokCustomization();
|
|
9145
|
+
m = Object.assign(m, proto);
|
|
9146
|
+
return m;
|
|
9147
|
+
}
|
|
9148
|
+
constructor(kwargs) {
|
|
9149
|
+
if (!kwargs) {
|
|
9150
|
+
return;
|
|
9151
|
+
}
|
|
9152
|
+
Object.assign(this, kwargs);
|
|
9153
|
+
}
|
|
9154
|
+
toApiJson() {
|
|
9155
|
+
const toReturn = {};
|
|
9156
|
+
if (typeof this.allowComment !== 'undefined') {
|
|
9157
|
+
toReturn['allowComment'] = this.allowComment;
|
|
9158
|
+
}
|
|
9159
|
+
if (typeof this.allowDuet !== 'undefined') {
|
|
9160
|
+
toReturn['allowDuet'] = this.allowDuet;
|
|
9161
|
+
}
|
|
9162
|
+
if (typeof this.allowStitch !== 'undefined') {
|
|
9163
|
+
toReturn['allowStitch'] = this.allowStitch;
|
|
9164
|
+
}
|
|
9165
|
+
if (typeof this.isBrandOrganic !== 'undefined') {
|
|
9166
|
+
toReturn['isBrandOrganic'] = this.isBrandOrganic;
|
|
9167
|
+
}
|
|
9168
|
+
if (typeof this.isBrandedContent !== 'undefined') {
|
|
9169
|
+
toReturn['isBrandedContent'] = this.isBrandedContent;
|
|
9170
|
+
}
|
|
9171
|
+
return toReturn;
|
|
9172
|
+
}
|
|
9173
|
+
}
|
|
9174
|
+
class DraftYoutubeCustomization {
|
|
9175
|
+
static fromProto(proto) {
|
|
9176
|
+
let m = new DraftYoutubeCustomization();
|
|
9177
|
+
m = Object.assign(m, proto);
|
|
9178
|
+
if (proto.privacyStatus) {
|
|
9179
|
+
m.privacyStatus = enumStringToValue$2(DraftYoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
9180
|
+
}
|
|
9181
|
+
return m;
|
|
9182
|
+
}
|
|
9183
|
+
constructor(kwargs) {
|
|
9184
|
+
if (!kwargs) {
|
|
9185
|
+
return;
|
|
9186
|
+
}
|
|
9187
|
+
Object.assign(this, kwargs);
|
|
9188
|
+
}
|
|
9189
|
+
toApiJson() {
|
|
9190
|
+
const toReturn = {};
|
|
9191
|
+
if (typeof this.title !== 'undefined') {
|
|
9192
|
+
toReturn['title'] = this.title;
|
|
9193
|
+
}
|
|
9194
|
+
if (typeof this.privacyStatus !== 'undefined') {
|
|
9195
|
+
toReturn['privacyStatus'] = this.privacyStatus;
|
|
9196
|
+
}
|
|
9197
|
+
return toReturn;
|
|
9198
|
+
}
|
|
9199
|
+
}
|
|
9200
|
+
class GMBPostCustomization {
|
|
9201
|
+
static fromProto(proto) {
|
|
9202
|
+
let m = new GMBPostCustomization();
|
|
9203
|
+
m = Object.assign(m, proto);
|
|
9204
|
+
if (proto.eventStart) {
|
|
9205
|
+
m.eventStart = new Date(proto.eventStart);
|
|
9206
|
+
}
|
|
9207
|
+
if (proto.eventEnd) {
|
|
9208
|
+
m.eventEnd = new Date(proto.eventEnd);
|
|
9209
|
+
}
|
|
9210
|
+
return m;
|
|
9211
|
+
}
|
|
9212
|
+
constructor(kwargs) {
|
|
9213
|
+
if (!kwargs) {
|
|
9214
|
+
return;
|
|
9215
|
+
}
|
|
9216
|
+
Object.assign(this, kwargs);
|
|
9217
|
+
}
|
|
9218
|
+
toApiJson() {
|
|
9219
|
+
const toReturn = {};
|
|
9220
|
+
if (typeof this.title !== 'undefined') {
|
|
9221
|
+
toReturn['title'] = this.title;
|
|
9222
|
+
}
|
|
9223
|
+
if (typeof this.eventStart !== 'undefined' && this.eventStart !== null) {
|
|
9224
|
+
toReturn['eventStart'] = 'toApiJson' in this.eventStart ? this.eventStart.toApiJson() : this.eventStart;
|
|
9225
|
+
}
|
|
9226
|
+
if (typeof this.eventEnd !== 'undefined' && this.eventEnd !== null) {
|
|
9227
|
+
toReturn['eventEnd'] = 'toApiJson' in this.eventEnd ? this.eventEnd.toApiJson() : this.eventEnd;
|
|
9228
|
+
}
|
|
9229
|
+
if (typeof this.ctaType !== 'undefined') {
|
|
9230
|
+
toReturn['ctaType'] = this.ctaType;
|
|
9231
|
+
}
|
|
9232
|
+
if (typeof this.linkUrl !== 'undefined') {
|
|
9233
|
+
toReturn['linkUrl'] = this.linkUrl;
|
|
9234
|
+
}
|
|
9235
|
+
return toReturn;
|
|
9236
|
+
}
|
|
9237
|
+
}
|
|
9238
|
+
class MlDraftPost {
|
|
9239
|
+
static fromProto(proto) {
|
|
9240
|
+
let m = new MlDraftPost();
|
|
9241
|
+
m = Object.assign(m, proto);
|
|
9242
|
+
return m;
|
|
9243
|
+
}
|
|
9244
|
+
constructor(kwargs) {
|
|
9245
|
+
if (!kwargs) {
|
|
9246
|
+
return;
|
|
9247
|
+
}
|
|
9248
|
+
Object.assign(this, kwargs);
|
|
9249
|
+
}
|
|
9250
|
+
toApiJson() {
|
|
9251
|
+
const toReturn = {};
|
|
9252
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9253
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9254
|
+
}
|
|
9255
|
+
if (typeof this.accountGroupIds !== 'undefined') {
|
|
9256
|
+
toReturn['accountGroupIds'] = this.accountGroupIds;
|
|
9257
|
+
}
|
|
9258
|
+
return toReturn;
|
|
9259
|
+
}
|
|
9260
|
+
}
|
|
9261
|
+
class SSIDDraftType {
|
|
9262
|
+
static fromProto(proto) {
|
|
9263
|
+
let m = new SSIDDraftType();
|
|
9264
|
+
m = Object.assign(m, proto);
|
|
9265
|
+
if (proto.draftType) {
|
|
9266
|
+
m.draftType = enumStringToValue$2(DraftType, proto.draftType);
|
|
9267
|
+
}
|
|
9268
|
+
return m;
|
|
9269
|
+
}
|
|
9270
|
+
constructor(kwargs) {
|
|
9271
|
+
if (!kwargs) {
|
|
9272
|
+
return;
|
|
9273
|
+
}
|
|
9274
|
+
Object.assign(this, kwargs);
|
|
9275
|
+
}
|
|
9276
|
+
toApiJson() {
|
|
9277
|
+
const toReturn = {};
|
|
9278
|
+
if (typeof this.ssid !== 'undefined') {
|
|
9279
|
+
toReturn['ssid'] = this.ssid;
|
|
9280
|
+
}
|
|
9281
|
+
if (typeof this.draftType !== 'undefined') {
|
|
9282
|
+
toReturn['draftType'] = this.draftType;
|
|
9283
|
+
}
|
|
9284
|
+
return toReturn;
|
|
9285
|
+
}
|
|
9286
|
+
}
|
|
9287
|
+
|
|
9288
|
+
function enumStringToValue$1(enumRef, value) {
|
|
9289
|
+
if (typeof value === 'number') {
|
|
9290
|
+
return value;
|
|
9291
|
+
}
|
|
9292
|
+
return enumRef[value];
|
|
9293
|
+
}
|
|
9294
|
+
class CreateDraftRequest {
|
|
9295
|
+
static fromProto(proto) {
|
|
9296
|
+
let m = new CreateDraftRequest();
|
|
9297
|
+
m = Object.assign(m, proto);
|
|
9298
|
+
if (proto.postDateTime) {
|
|
9299
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
9300
|
+
}
|
|
9301
|
+
if (proto.gmbPostCustomization) {
|
|
9302
|
+
m.gmbPostCustomization = GMBPostCustomization.fromProto(proto.gmbPostCustomization);
|
|
9303
|
+
}
|
|
9304
|
+
if (proto.media) {
|
|
9305
|
+
m.media = proto.media.map(DraftMedia.fromProto);
|
|
9306
|
+
}
|
|
9307
|
+
if (proto.draftType) {
|
|
9308
|
+
m.draftType = enumStringToValue$1(DraftType, proto.draftType);
|
|
9309
|
+
}
|
|
9310
|
+
if (proto.metadata) {
|
|
9311
|
+
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
9312
|
+
}
|
|
9313
|
+
if (proto.youtubeCustomization) {
|
|
9314
|
+
m.youtubeCustomization = DraftYoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
9315
|
+
}
|
|
9316
|
+
if (proto.ssidDraftTypes) {
|
|
9317
|
+
m.ssidDraftTypes = proto.ssidDraftTypes.map(SSIDDraftType.fromProto);
|
|
9318
|
+
}
|
|
9319
|
+
if (proto.tiktokCustomization) {
|
|
9320
|
+
m.tiktokCustomization = DraftTikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
9321
|
+
}
|
|
9322
|
+
if (proto.blogPostCustomization) {
|
|
9323
|
+
m.blogPostCustomization = DraftBlogPostCustomization.fromProto(proto.blogPostCustomization);
|
|
9324
|
+
}
|
|
9325
|
+
if (proto.campaignCustomization) {
|
|
9326
|
+
m.campaignCustomization = CampaignCustomization.fromProto(proto.campaignCustomization);
|
|
9327
|
+
}
|
|
9328
|
+
return m;
|
|
9329
|
+
}
|
|
9330
|
+
constructor(kwargs) {
|
|
9331
|
+
if (!kwargs) {
|
|
9332
|
+
return;
|
|
9333
|
+
}
|
|
9334
|
+
Object.assign(this, kwargs);
|
|
9335
|
+
}
|
|
9336
|
+
toApiJson() {
|
|
9337
|
+
const toReturn = {};
|
|
9338
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9339
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9340
|
+
}
|
|
9341
|
+
if (typeof this.draftText !== 'undefined') {
|
|
9342
|
+
toReturn['draftText'] = this.draftText;
|
|
9343
|
+
}
|
|
9344
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
9345
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
9346
|
+
}
|
|
9347
|
+
if (typeof this.gmbPostCustomization !== 'undefined' && this.gmbPostCustomization !== null) {
|
|
9348
|
+
toReturn['gmbPostCustomization'] = 'toApiJson' in this.gmbPostCustomization ? this.gmbPostCustomization.toApiJson() : this.gmbPostCustomization;
|
|
9349
|
+
}
|
|
9350
|
+
if (typeof this.previews !== 'undefined') {
|
|
9351
|
+
toReturn['previews'] = this.previews;
|
|
9352
|
+
}
|
|
9353
|
+
if (typeof this.options !== 'undefined') {
|
|
9354
|
+
toReturn['options'] = this.options;
|
|
9355
|
+
}
|
|
9356
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
9357
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
9358
|
+
}
|
|
9359
|
+
if (typeof this.ssids !== 'undefined') {
|
|
9360
|
+
toReturn['ssids'] = this.ssids;
|
|
9361
|
+
}
|
|
9362
|
+
if (typeof this.draftType !== 'undefined') {
|
|
9363
|
+
toReturn['draftType'] = this.draftType;
|
|
9364
|
+
}
|
|
9365
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
9366
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
9367
|
+
}
|
|
9368
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
9369
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
9370
|
+
}
|
|
9371
|
+
if (typeof this.ssidDraftTypes !== 'undefined' && this.ssidDraftTypes !== null) {
|
|
9372
|
+
toReturn['ssidDraftTypes'] = 'toApiJson' in this.ssidDraftTypes ? this.ssidDraftTypes.toApiJson() : this.ssidDraftTypes;
|
|
9373
|
+
}
|
|
9374
|
+
if (typeof this.isHidden !== 'undefined') {
|
|
9375
|
+
toReturn['isHidden'] = this.isHidden;
|
|
9376
|
+
}
|
|
9377
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
9378
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
9379
|
+
}
|
|
9380
|
+
if (typeof this.blogPostCustomization !== 'undefined' && this.blogPostCustomization !== null) {
|
|
9381
|
+
toReturn['blogPostCustomization'] = 'toApiJson' in this.blogPostCustomization ? this.blogPostCustomization.toApiJson() : this.blogPostCustomization;
|
|
9382
|
+
}
|
|
9383
|
+
if (typeof this.campaignCustomization !== 'undefined' && this.campaignCustomization !== null) {
|
|
9384
|
+
toReturn['campaignCustomization'] = 'toApiJson' in this.campaignCustomization ? this.campaignCustomization.toApiJson() : this.campaignCustomization;
|
|
9385
|
+
}
|
|
9386
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9387
|
+
toReturn['brandId'] = this.brandId;
|
|
9388
|
+
}
|
|
9389
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9390
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9391
|
+
}
|
|
9392
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9393
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9394
|
+
}
|
|
9395
|
+
return toReturn;
|
|
9396
|
+
}
|
|
9397
|
+
}
|
|
9398
|
+
class CreateDraftResponse {
|
|
9399
|
+
static fromProto(proto) {
|
|
9400
|
+
let m = new CreateDraftResponse();
|
|
9401
|
+
m = Object.assign(m, proto);
|
|
9402
|
+
if (proto.draft) {
|
|
9403
|
+
m.draft = Draft.fromProto(proto.draft);
|
|
9404
|
+
}
|
|
9405
|
+
return m;
|
|
9406
|
+
}
|
|
9407
|
+
constructor(kwargs) {
|
|
9408
|
+
if (!kwargs) {
|
|
9409
|
+
return;
|
|
9410
|
+
}
|
|
9411
|
+
Object.assign(this, kwargs);
|
|
9412
|
+
}
|
|
9413
|
+
toApiJson() {
|
|
9414
|
+
const toReturn = {};
|
|
9415
|
+
if (typeof this.draft !== 'undefined' && this.draft !== null) {
|
|
9416
|
+
toReturn['draft'] = 'toApiJson' in this.draft ? this.draft.toApiJson() : this.draft;
|
|
9417
|
+
}
|
|
9418
|
+
return toReturn;
|
|
9419
|
+
}
|
|
9420
|
+
}
|
|
9421
|
+
class CreateMultiDraftsRequest {
|
|
9422
|
+
static fromProto(proto) {
|
|
9423
|
+
let m = new CreateMultiDraftsRequest();
|
|
9424
|
+
m = Object.assign(m, proto);
|
|
9425
|
+
if (proto.drafts) {
|
|
9426
|
+
m.drafts = proto.drafts.map(CreateDraftRequest.fromProto);
|
|
9427
|
+
}
|
|
9428
|
+
return m;
|
|
9429
|
+
}
|
|
9430
|
+
constructor(kwargs) {
|
|
9431
|
+
if (!kwargs) {
|
|
9432
|
+
return;
|
|
9433
|
+
}
|
|
9434
|
+
Object.assign(this, kwargs);
|
|
9435
|
+
}
|
|
9436
|
+
toApiJson() {
|
|
9437
|
+
const toReturn = {};
|
|
9438
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9439
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9440
|
+
}
|
|
9441
|
+
return toReturn;
|
|
9442
|
+
}
|
|
9443
|
+
}
|
|
9444
|
+
class CreateMultiDraftsResponse {
|
|
9445
|
+
static fromProto(proto) {
|
|
9446
|
+
let m = new CreateMultiDraftsResponse();
|
|
9447
|
+
m = Object.assign(m, proto);
|
|
9448
|
+
if (proto.drafts) {
|
|
9449
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9450
|
+
}
|
|
9451
|
+
return m;
|
|
9452
|
+
}
|
|
9453
|
+
constructor(kwargs) {
|
|
9454
|
+
if (!kwargs) {
|
|
9455
|
+
return;
|
|
9456
|
+
}
|
|
9457
|
+
Object.assign(this, kwargs);
|
|
9458
|
+
}
|
|
9459
|
+
toApiJson() {
|
|
9460
|
+
const toReturn = {};
|
|
9461
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9462
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9463
|
+
}
|
|
9464
|
+
return toReturn;
|
|
9465
|
+
}
|
|
9466
|
+
}
|
|
9467
|
+
class DeleteDraftRequest {
|
|
9468
|
+
static fromProto(proto) {
|
|
9469
|
+
let m = new DeleteDraftRequest();
|
|
9470
|
+
m = Object.assign(m, proto);
|
|
9471
|
+
return m;
|
|
9472
|
+
}
|
|
9473
|
+
constructor(kwargs) {
|
|
9474
|
+
if (!kwargs) {
|
|
9475
|
+
return;
|
|
9476
|
+
}
|
|
9477
|
+
Object.assign(this, kwargs);
|
|
9478
|
+
}
|
|
9479
|
+
toApiJson() {
|
|
9480
|
+
const toReturn = {};
|
|
9481
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9482
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9483
|
+
}
|
|
9484
|
+
if (typeof this.draftId !== 'undefined') {
|
|
9485
|
+
toReturn['draftId'] = this.draftId;
|
|
9486
|
+
}
|
|
9487
|
+
return toReturn;
|
|
9488
|
+
}
|
|
9489
|
+
}
|
|
9490
|
+
class GetDraftRequest {
|
|
9491
|
+
static fromProto(proto) {
|
|
9492
|
+
let m = new GetDraftRequest();
|
|
9493
|
+
m = Object.assign(m, proto);
|
|
9494
|
+
return m;
|
|
9495
|
+
}
|
|
9496
|
+
constructor(kwargs) {
|
|
9497
|
+
if (!kwargs) {
|
|
9498
|
+
return;
|
|
9499
|
+
}
|
|
9500
|
+
Object.assign(this, kwargs);
|
|
9501
|
+
}
|
|
9502
|
+
toApiJson() {
|
|
9503
|
+
const toReturn = {};
|
|
9504
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9505
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9506
|
+
}
|
|
9507
|
+
if (typeof this.draftId !== 'undefined') {
|
|
9508
|
+
toReturn['draftId'] = this.draftId;
|
|
9509
|
+
}
|
|
9510
|
+
return toReturn;
|
|
9511
|
+
}
|
|
9512
|
+
}
|
|
9513
|
+
class GetDraftResponse {
|
|
9514
|
+
static fromProto(proto) {
|
|
9515
|
+
let m = new GetDraftResponse();
|
|
9516
|
+
m = Object.assign(m, proto);
|
|
9517
|
+
if (proto.draft) {
|
|
9518
|
+
m.draft = Draft.fromProto(proto.draft);
|
|
9519
|
+
}
|
|
9520
|
+
return m;
|
|
9521
|
+
}
|
|
9522
|
+
constructor(kwargs) {
|
|
9523
|
+
if (!kwargs) {
|
|
9524
|
+
return;
|
|
9525
|
+
}
|
|
9526
|
+
Object.assign(this, kwargs);
|
|
9527
|
+
}
|
|
9528
|
+
toApiJson() {
|
|
9529
|
+
const toReturn = {};
|
|
9530
|
+
if (typeof this.draft !== 'undefined' && this.draft !== null) {
|
|
9531
|
+
toReturn['draft'] = 'toApiJson' in this.draft ? this.draft.toApiJson() : this.draft;
|
|
9532
|
+
}
|
|
9533
|
+
return toReturn;
|
|
9534
|
+
}
|
|
9535
|
+
}
|
|
9536
|
+
class ListDraftsByNetworkIdentifierRequest {
|
|
9537
|
+
static fromProto(proto) {
|
|
9538
|
+
let m = new ListDraftsByNetworkIdentifierRequest();
|
|
9539
|
+
m = Object.assign(m, proto);
|
|
9540
|
+
if (proto.pageSize) {
|
|
9541
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
9542
|
+
}
|
|
9543
|
+
return m;
|
|
9544
|
+
}
|
|
9545
|
+
constructor(kwargs) {
|
|
9546
|
+
if (!kwargs) {
|
|
9547
|
+
return;
|
|
9548
|
+
}
|
|
9549
|
+
Object.assign(this, kwargs);
|
|
9550
|
+
}
|
|
9551
|
+
toApiJson() {
|
|
9552
|
+
const toReturn = {};
|
|
9553
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9554
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9555
|
+
}
|
|
9556
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9557
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9558
|
+
}
|
|
9559
|
+
if (typeof this.cursor !== 'undefined') {
|
|
9560
|
+
toReturn['cursor'] = this.cursor;
|
|
9561
|
+
}
|
|
9562
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
9563
|
+
toReturn['pageSize'] = this.pageSize;
|
|
9564
|
+
}
|
|
9565
|
+
return toReturn;
|
|
9566
|
+
}
|
|
9567
|
+
}
|
|
9568
|
+
class ListDraftsByNetworkIdentifierResponse {
|
|
9569
|
+
static fromProto(proto) {
|
|
9570
|
+
let m = new ListDraftsByNetworkIdentifierResponse();
|
|
9571
|
+
m = Object.assign(m, proto);
|
|
9572
|
+
if (proto.drafts) {
|
|
9573
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9574
|
+
}
|
|
9575
|
+
return m;
|
|
9576
|
+
}
|
|
9577
|
+
constructor(kwargs) {
|
|
9578
|
+
if (!kwargs) {
|
|
9579
|
+
return;
|
|
9580
|
+
}
|
|
9581
|
+
Object.assign(this, kwargs);
|
|
9582
|
+
}
|
|
9583
|
+
toApiJson() {
|
|
9584
|
+
const toReturn = {};
|
|
9585
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9586
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9587
|
+
}
|
|
9588
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
9589
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
9590
|
+
}
|
|
9591
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
9592
|
+
toReturn['hasMore'] = this.hasMore;
|
|
9593
|
+
}
|
|
9594
|
+
return toReturn;
|
|
9595
|
+
}
|
|
9596
|
+
}
|
|
9597
|
+
class ListDraftsRequest {
|
|
9598
|
+
static fromProto(proto) {
|
|
9599
|
+
let m = new ListDraftsRequest();
|
|
9600
|
+
m = Object.assign(m, proto);
|
|
9601
|
+
if (proto.pageSize) {
|
|
9602
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
9603
|
+
}
|
|
9604
|
+
if (proto.start) {
|
|
9605
|
+
m.start = new Date(proto.start);
|
|
9606
|
+
}
|
|
9607
|
+
if (proto.end) {
|
|
9608
|
+
m.end = new Date(proto.end);
|
|
9609
|
+
}
|
|
9610
|
+
if (proto.visibilityType) {
|
|
9611
|
+
m.visibilityType = enumStringToValue$1(VisibilityType, proto.visibilityType);
|
|
9612
|
+
}
|
|
9613
|
+
return m;
|
|
9614
|
+
}
|
|
9615
|
+
constructor(kwargs) {
|
|
9616
|
+
if (!kwargs) {
|
|
9617
|
+
return;
|
|
9618
|
+
}
|
|
9619
|
+
Object.assign(this, kwargs);
|
|
9620
|
+
}
|
|
9621
|
+
toApiJson() {
|
|
9622
|
+
const toReturn = {};
|
|
9623
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9624
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9625
|
+
}
|
|
9626
|
+
if (typeof this.cursor !== 'undefined') {
|
|
9627
|
+
toReturn['cursor'] = this.cursor;
|
|
9628
|
+
}
|
|
9629
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
9630
|
+
toReturn['pageSize'] = this.pageSize;
|
|
9631
|
+
}
|
|
9632
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
9633
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
9634
|
+
}
|
|
9635
|
+
if (typeof this.end !== 'undefined' && this.end !== null) {
|
|
9636
|
+
toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
|
|
9637
|
+
}
|
|
9638
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
9639
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
9640
|
+
}
|
|
9641
|
+
if (typeof this.networks !== 'undefined') {
|
|
9642
|
+
toReturn['networks'] = this.networks;
|
|
9643
|
+
}
|
|
9644
|
+
if (typeof this.visibilityType !== 'undefined') {
|
|
9645
|
+
toReturn['visibilityType'] = this.visibilityType;
|
|
9646
|
+
}
|
|
9647
|
+
return toReturn;
|
|
9648
|
+
}
|
|
9649
|
+
}
|
|
9650
|
+
class ListDraftsResponse {
|
|
9651
|
+
static fromProto(proto) {
|
|
9652
|
+
let m = new ListDraftsResponse();
|
|
9653
|
+
m = Object.assign(m, proto);
|
|
9654
|
+
if (proto.drafts) {
|
|
9655
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9656
|
+
}
|
|
9657
|
+
return m;
|
|
9658
|
+
}
|
|
9659
|
+
constructor(kwargs) {
|
|
9660
|
+
if (!kwargs) {
|
|
9661
|
+
return;
|
|
9662
|
+
}
|
|
9663
|
+
Object.assign(this, kwargs);
|
|
9664
|
+
}
|
|
9665
|
+
toApiJson() {
|
|
9666
|
+
const toReturn = {};
|
|
9667
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9668
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9669
|
+
}
|
|
9670
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
9671
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
9672
|
+
}
|
|
9673
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
9674
|
+
toReturn['hasMore'] = this.hasMore;
|
|
9675
|
+
}
|
|
9676
|
+
return toReturn;
|
|
9677
|
+
}
|
|
9678
|
+
}
|
|
9679
|
+
class ListMultilocationDraftsRequest {
|
|
9680
|
+
static fromProto(proto) {
|
|
9681
|
+
let m = new ListMultilocationDraftsRequest();
|
|
9682
|
+
m = Object.assign(m, proto);
|
|
9683
|
+
return m;
|
|
9684
|
+
}
|
|
9685
|
+
constructor(kwargs) {
|
|
9686
|
+
if (!kwargs) {
|
|
9687
|
+
return;
|
|
9688
|
+
}
|
|
9689
|
+
Object.assign(this, kwargs);
|
|
9690
|
+
}
|
|
9691
|
+
toApiJson() {
|
|
9692
|
+
const toReturn = {};
|
|
9693
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9694
|
+
toReturn['brandId'] = this.brandId;
|
|
9695
|
+
}
|
|
9696
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9697
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9698
|
+
}
|
|
9699
|
+
if (typeof this.accountGroupIds !== 'undefined') {
|
|
9700
|
+
toReturn['accountGroupIds'] = this.accountGroupIds;
|
|
9701
|
+
}
|
|
9702
|
+
return toReturn;
|
|
9703
|
+
}
|
|
9704
|
+
}
|
|
9705
|
+
class ListMultilocationDraftsResponse {
|
|
9706
|
+
static fromProto(proto) {
|
|
9707
|
+
let m = new ListMultilocationDraftsResponse();
|
|
9708
|
+
m = Object.assign(m, proto);
|
|
9709
|
+
if (proto.drafts) {
|
|
9710
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9711
|
+
}
|
|
9712
|
+
return m;
|
|
9713
|
+
}
|
|
9714
|
+
constructor(kwargs) {
|
|
9715
|
+
if (!kwargs) {
|
|
9716
|
+
return;
|
|
9717
|
+
}
|
|
9718
|
+
Object.assign(this, kwargs);
|
|
9719
|
+
}
|
|
9720
|
+
toApiJson() {
|
|
9721
|
+
const toReturn = {};
|
|
9722
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9723
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9724
|
+
}
|
|
9725
|
+
return toReturn;
|
|
9726
|
+
}
|
|
9727
|
+
}
|
|
9728
|
+
class MultiDeleteMLDraftPostsRequest {
|
|
9729
|
+
static fromProto(proto) {
|
|
9730
|
+
let m = new MultiDeleteMLDraftPostsRequest();
|
|
9731
|
+
m = Object.assign(m, proto);
|
|
9732
|
+
if (proto.mlDraftPosts) {
|
|
9733
|
+
m.mlDraftPosts = proto.mlDraftPosts.map(MlDraftPost.fromProto);
|
|
9734
|
+
}
|
|
9735
|
+
return m;
|
|
9736
|
+
}
|
|
9737
|
+
constructor(kwargs) {
|
|
9738
|
+
if (!kwargs) {
|
|
9739
|
+
return;
|
|
9740
|
+
}
|
|
9741
|
+
Object.assign(this, kwargs);
|
|
9742
|
+
}
|
|
9743
|
+
toApiJson() {
|
|
9744
|
+
const toReturn = {};
|
|
9745
|
+
if (typeof this.mlDraftPosts !== 'undefined' && this.mlDraftPosts !== null) {
|
|
9746
|
+
toReturn['mlDraftPosts'] = 'toApiJson' in this.mlDraftPosts ? this.mlDraftPosts.toApiJson() : this.mlDraftPosts;
|
|
9747
|
+
}
|
|
9748
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9749
|
+
toReturn['brandId'] = this.brandId;
|
|
9750
|
+
}
|
|
9751
|
+
return toReturn;
|
|
9752
|
+
}
|
|
9753
|
+
}
|
|
9754
|
+
class UpdateDraftRequest {
|
|
9755
|
+
static fromProto(proto) {
|
|
9756
|
+
let m = new UpdateDraftRequest();
|
|
9757
|
+
m = Object.assign(m, proto);
|
|
9758
|
+
if (proto.postDateTime) {
|
|
9759
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
9760
|
+
}
|
|
9761
|
+
if (proto.gmbPostCustomization) {
|
|
9762
|
+
m.gmbPostCustomization = GMBPostCustomization.fromProto(proto.gmbPostCustomization);
|
|
9763
|
+
}
|
|
9764
|
+
if (proto.media) {
|
|
9765
|
+
m.media = proto.media.map(DraftMedia.fromProto);
|
|
9766
|
+
}
|
|
9767
|
+
if (proto.draftType) {
|
|
9768
|
+
m.draftType = enumStringToValue$1(DraftType, proto.draftType);
|
|
9769
|
+
}
|
|
9770
|
+
if (proto.metadata) {
|
|
9771
|
+
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
9772
|
+
}
|
|
9773
|
+
if (proto.youtubeCustomization) {
|
|
9774
|
+
m.youtubeCustomization = DraftYoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
9775
|
+
}
|
|
9776
|
+
if (proto.ssidDraftTypes) {
|
|
9777
|
+
m.ssidDraftTypes = proto.ssidDraftTypes.map(SSIDDraftType.fromProto);
|
|
9778
|
+
}
|
|
9779
|
+
if (proto.tiktokCustomization) {
|
|
9780
|
+
m.tiktokCustomization = DraftTikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
9781
|
+
}
|
|
9782
|
+
if (proto.blogPostCustomization) {
|
|
9783
|
+
m.blogPostCustomization = DraftBlogPostCustomization.fromProto(proto.blogPostCustomization);
|
|
9784
|
+
}
|
|
9785
|
+
if (proto.campaignCustomization) {
|
|
9786
|
+
m.campaignCustomization = CampaignCustomization.fromProto(proto.campaignCustomization);
|
|
9787
|
+
}
|
|
9788
|
+
return m;
|
|
9789
|
+
}
|
|
9790
|
+
constructor(kwargs) {
|
|
9791
|
+
if (!kwargs) {
|
|
9792
|
+
return;
|
|
9793
|
+
}
|
|
9794
|
+
Object.assign(this, kwargs);
|
|
9795
|
+
}
|
|
9796
|
+
toApiJson() {
|
|
9797
|
+
const toReturn = {};
|
|
9798
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9799
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9800
|
+
}
|
|
9801
|
+
if (typeof this.draftId !== 'undefined') {
|
|
9802
|
+
toReturn['draftId'] = this.draftId;
|
|
9803
|
+
}
|
|
9804
|
+
if (typeof this.draftText !== 'undefined') {
|
|
9805
|
+
toReturn['draftText'] = this.draftText;
|
|
9806
|
+
}
|
|
9807
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
9808
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
9809
|
+
}
|
|
9810
|
+
if (typeof this.gmbPostCustomization !== 'undefined' && this.gmbPostCustomization !== null) {
|
|
9811
|
+
toReturn['gmbPostCustomization'] = 'toApiJson' in this.gmbPostCustomization ? this.gmbPostCustomization.toApiJson() : this.gmbPostCustomization;
|
|
9812
|
+
}
|
|
9813
|
+
if (typeof this.previews !== 'undefined') {
|
|
9814
|
+
toReturn['previews'] = this.previews;
|
|
9815
|
+
}
|
|
9816
|
+
if (typeof this.options !== 'undefined') {
|
|
9817
|
+
toReturn['options'] = this.options;
|
|
9818
|
+
}
|
|
9819
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
9820
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
9821
|
+
}
|
|
9822
|
+
if (typeof this.ssids !== 'undefined') {
|
|
9823
|
+
toReturn['ssids'] = this.ssids;
|
|
9824
|
+
}
|
|
9825
|
+
if (typeof this.draftType !== 'undefined') {
|
|
9826
|
+
toReturn['draftType'] = this.draftType;
|
|
9827
|
+
}
|
|
9828
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
9829
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
9830
|
+
}
|
|
9831
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
9832
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
9833
|
+
}
|
|
9834
|
+
if (typeof this.ssidDraftTypes !== 'undefined' && this.ssidDraftTypes !== null) {
|
|
9835
|
+
toReturn['ssidDraftTypes'] = 'toApiJson' in this.ssidDraftTypes ? this.ssidDraftTypes.toApiJson() : this.ssidDraftTypes;
|
|
9836
|
+
}
|
|
9837
|
+
if (typeof this.isHidden !== 'undefined') {
|
|
9838
|
+
toReturn['isHidden'] = this.isHidden;
|
|
9839
|
+
}
|
|
9840
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
9841
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
9842
|
+
}
|
|
9843
|
+
if (typeof this.blogPostCustomization !== 'undefined' && this.blogPostCustomization !== null) {
|
|
9844
|
+
toReturn['blogPostCustomization'] = 'toApiJson' in this.blogPostCustomization ? this.blogPostCustomization.toApiJson() : this.blogPostCustomization;
|
|
9845
|
+
}
|
|
9846
|
+
if (typeof this.campaignCustomization !== 'undefined' && this.campaignCustomization !== null) {
|
|
9847
|
+
toReturn['campaignCustomization'] = 'toApiJson' in this.campaignCustomization ? this.campaignCustomization.toApiJson() : this.campaignCustomization;
|
|
9848
|
+
}
|
|
9849
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9850
|
+
toReturn['brandId'] = this.brandId;
|
|
9851
|
+
}
|
|
9852
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9853
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9854
|
+
}
|
|
9855
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9856
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9857
|
+
}
|
|
9858
|
+
return toReturn;
|
|
9859
|
+
}
|
|
9860
|
+
}
|
|
9861
|
+
class UpdateDraftResponse {
|
|
9862
|
+
static fromProto(proto) {
|
|
9863
|
+
let m = new UpdateDraftResponse();
|
|
9864
|
+
m = Object.assign(m, proto);
|
|
9865
|
+
if (proto.draft) {
|
|
9866
|
+
m.draft = Draft.fromProto(proto.draft);
|
|
9867
|
+
}
|
|
9868
|
+
return m;
|
|
9869
|
+
}
|
|
9870
|
+
constructor(kwargs) {
|
|
9871
|
+
if (!kwargs) {
|
|
9872
|
+
return;
|
|
9873
|
+
}
|
|
9874
|
+
Object.assign(this, kwargs);
|
|
9875
|
+
}
|
|
9876
|
+
toApiJson() {
|
|
9877
|
+
const toReturn = {};
|
|
9878
|
+
if (typeof this.draft !== 'undefined' && this.draft !== null) {
|
|
9879
|
+
toReturn['draft'] = 'toApiJson' in this.draft ? this.draft.toApiJson() : this.draft;
|
|
9880
|
+
}
|
|
9881
|
+
return toReturn;
|
|
9882
|
+
}
|
|
9883
|
+
}
|
|
9884
|
+
class UpdateMultiMLDraftsRequest {
|
|
9885
|
+
static fromProto(proto) {
|
|
9886
|
+
let m = new UpdateMultiMLDraftsRequest();
|
|
9887
|
+
m = Object.assign(m, proto);
|
|
9888
|
+
if (proto.drafts) {
|
|
9889
|
+
m.drafts = proto.drafts.map(UpdateDraftRequest.fromProto);
|
|
9890
|
+
}
|
|
9891
|
+
return m;
|
|
9892
|
+
}
|
|
9893
|
+
constructor(kwargs) {
|
|
9894
|
+
if (!kwargs) {
|
|
9895
|
+
return;
|
|
9896
|
+
}
|
|
9897
|
+
Object.assign(this, kwargs);
|
|
9898
|
+
}
|
|
9899
|
+
toApiJson() {
|
|
9900
|
+
const toReturn = {};
|
|
9901
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9902
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9903
|
+
}
|
|
9904
|
+
return toReturn;
|
|
9905
|
+
}
|
|
9906
|
+
}
|
|
9907
|
+
|
|
9908
|
+
function enumStringToValue(enumRef, value) {
|
|
9909
|
+
if (typeof value === 'number') {
|
|
9910
|
+
return value;
|
|
9911
|
+
}
|
|
9912
|
+
return enumRef[value];
|
|
9913
|
+
}
|
|
9914
|
+
class BlogPostOptions {
|
|
9915
|
+
static fromProto(proto) {
|
|
9916
|
+
let m = new BlogPostOptions();
|
|
9917
|
+
m = Object.assign(m, proto);
|
|
9918
|
+
if (proto.author) {
|
|
9919
|
+
m.author = BlogAuthor.fromProto(proto.author);
|
|
9920
|
+
}
|
|
9921
|
+
if (proto.categories) {
|
|
9922
|
+
m.categories = proto.categories.map(BlogCategory.fromProto);
|
|
9923
|
+
}
|
|
9924
|
+
return m;
|
|
9925
|
+
}
|
|
9926
|
+
constructor(kwargs) {
|
|
9927
|
+
if (!kwargs) {
|
|
9928
|
+
return;
|
|
9929
|
+
}
|
|
9930
|
+
Object.assign(this, kwargs);
|
|
9931
|
+
}
|
|
9932
|
+
toApiJson() {
|
|
9933
|
+
const toReturn = {};
|
|
9934
|
+
if (typeof this.title !== 'undefined') {
|
|
9935
|
+
toReturn['title'] = this.title;
|
|
9936
|
+
}
|
|
9937
|
+
if (typeof this.author !== 'undefined' && this.author !== null) {
|
|
9938
|
+
toReturn['author'] = 'toApiJson' in this.author ? this.author.toApiJson() : this.author;
|
|
9939
|
+
}
|
|
9940
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
9941
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
9942
|
+
}
|
|
9943
|
+
if (typeof this.tags !== 'undefined') {
|
|
9944
|
+
toReturn['tags'] = this.tags;
|
|
9945
|
+
}
|
|
9946
|
+
if (typeof this.siteType !== 'undefined') {
|
|
9947
|
+
toReturn['siteType'] = this.siteType;
|
|
9948
|
+
}
|
|
9949
|
+
return toReturn;
|
|
9950
|
+
}
|
|
9951
|
+
}
|
|
9952
|
+
class ContentMetadata {
|
|
9953
|
+
static fromProto(proto) {
|
|
9954
|
+
let m = new ContentMetadata();
|
|
9955
|
+
m = Object.assign(m, proto);
|
|
9956
|
+
return m;
|
|
9957
|
+
}
|
|
9958
|
+
constructor(kwargs) {
|
|
9959
|
+
if (!kwargs) {
|
|
9960
|
+
return;
|
|
9961
|
+
}
|
|
9962
|
+
Object.assign(this, kwargs);
|
|
9963
|
+
}
|
|
9964
|
+
toApiJson() {
|
|
9965
|
+
const toReturn = {};
|
|
9966
|
+
if (typeof this.name !== 'undefined') {
|
|
9967
|
+
toReturn['name'] = this.name;
|
|
9968
|
+
}
|
|
9969
|
+
if (typeof this.value !== 'undefined') {
|
|
9970
|
+
toReturn['value'] = this.value;
|
|
9971
|
+
}
|
|
9972
|
+
return toReturn;
|
|
9973
|
+
}
|
|
9974
|
+
}
|
|
9975
|
+
class CreateContentRequest {
|
|
9976
|
+
static fromProto(proto) {
|
|
9977
|
+
let m = new CreateContentRequest();
|
|
9978
|
+
m = Object.assign(m, proto);
|
|
9979
|
+
if (proto.items) {
|
|
9980
|
+
m.items = proto.items.map(SocialContentItem.fromProto);
|
|
9981
|
+
}
|
|
9982
|
+
return m;
|
|
9983
|
+
}
|
|
9984
|
+
constructor(kwargs) {
|
|
9985
|
+
if (!kwargs) {
|
|
9986
|
+
return;
|
|
9987
|
+
}
|
|
9988
|
+
Object.assign(this, kwargs);
|
|
9989
|
+
}
|
|
9990
|
+
toApiJson() {
|
|
9991
|
+
const toReturn = {};
|
|
9992
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9993
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9994
|
+
}
|
|
9995
|
+
if (typeof this.username !== 'undefined') {
|
|
9996
|
+
toReturn['username'] = this.username;
|
|
9997
|
+
}
|
|
9998
|
+
if (typeof this.userId !== 'undefined') {
|
|
9999
|
+
toReturn['userId'] = this.userId;
|
|
10000
|
+
}
|
|
10001
|
+
if (typeof this.items !== 'undefined' && this.items !== null) {
|
|
10002
|
+
toReturn['items'] = 'toApiJson' in this.items ? this.items.toApiJson() : this.items;
|
|
10003
|
+
}
|
|
10004
|
+
return toReturn;
|
|
10005
|
+
}
|
|
10006
|
+
}
|
|
10007
|
+
class CreateContentResponse {
|
|
10008
|
+
static fromProto(proto) {
|
|
10009
|
+
let m = new CreateContentResponse();
|
|
10010
|
+
m = Object.assign(m, proto);
|
|
10011
|
+
if (proto.results) {
|
|
10012
|
+
m.results = proto.results.map(SocialContentResult.fromProto);
|
|
10013
|
+
}
|
|
10014
|
+
return m;
|
|
10015
|
+
}
|
|
10016
|
+
constructor(kwargs) {
|
|
10017
|
+
if (!kwargs) {
|
|
10018
|
+
return;
|
|
10019
|
+
}
|
|
10020
|
+
Object.assign(this, kwargs);
|
|
10021
|
+
}
|
|
10022
|
+
toApiJson() {
|
|
10023
|
+
const toReturn = {};
|
|
10024
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
10025
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
10026
|
+
}
|
|
10027
|
+
return toReturn;
|
|
10028
|
+
}
|
|
10029
|
+
}
|
|
10030
|
+
class GMBCustomization {
|
|
10031
|
+
static fromProto(proto) {
|
|
10032
|
+
let m = new GMBCustomization();
|
|
10033
|
+
m = Object.assign(m, proto);
|
|
10034
|
+
if (proto.eventStart) {
|
|
10035
|
+
m.eventStart = new Date(proto.eventStart);
|
|
10036
|
+
}
|
|
10037
|
+
if (proto.eventEnd) {
|
|
10038
|
+
m.eventEnd = new Date(proto.eventEnd);
|
|
10039
|
+
}
|
|
10040
|
+
if (proto.ctaType) {
|
|
10041
|
+
m.ctaType = enumStringToValue(CallToActionType, proto.ctaType);
|
|
10042
|
+
}
|
|
10043
|
+
return m;
|
|
10044
|
+
}
|
|
10045
|
+
constructor(kwargs) {
|
|
10046
|
+
if (!kwargs) {
|
|
10047
|
+
return;
|
|
10048
|
+
}
|
|
10049
|
+
Object.assign(this, kwargs);
|
|
10050
|
+
}
|
|
10051
|
+
toApiJson() {
|
|
10052
|
+
const toReturn = {};
|
|
10053
|
+
if (typeof this.title !== 'undefined') {
|
|
10054
|
+
toReturn['title'] = this.title;
|
|
10055
|
+
}
|
|
10056
|
+
if (typeof this.eventStart !== 'undefined' && this.eventStart !== null) {
|
|
10057
|
+
toReturn['eventStart'] = 'toApiJson' in this.eventStart ? this.eventStart.toApiJson() : this.eventStart;
|
|
10058
|
+
}
|
|
10059
|
+
if (typeof this.eventEnd !== 'undefined' && this.eventEnd !== null) {
|
|
10060
|
+
toReturn['eventEnd'] = 'toApiJson' in this.eventEnd ? this.eventEnd.toApiJson() : this.eventEnd;
|
|
10061
|
+
}
|
|
10062
|
+
if (typeof this.ctaType !== 'undefined') {
|
|
10063
|
+
toReturn['ctaType'] = this.ctaType;
|
|
10064
|
+
}
|
|
10065
|
+
if (typeof this.linkUrl !== 'undefined') {
|
|
10066
|
+
toReturn['linkUrl'] = this.linkUrl;
|
|
10067
|
+
}
|
|
10068
|
+
return toReturn;
|
|
10069
|
+
}
|
|
10070
|
+
}
|
|
10071
|
+
class Link {
|
|
10072
|
+
static fromProto(proto) {
|
|
10073
|
+
let m = new Link();
|
|
10074
|
+
m = Object.assign(m, proto);
|
|
10075
|
+
return m;
|
|
10076
|
+
}
|
|
10077
|
+
constructor(kwargs) {
|
|
10078
|
+
if (!kwargs) {
|
|
10079
|
+
return;
|
|
10080
|
+
}
|
|
10081
|
+
Object.assign(this, kwargs);
|
|
10082
|
+
}
|
|
10083
|
+
toApiJson() {
|
|
10084
|
+
const toReturn = {};
|
|
10085
|
+
if (typeof this.name !== 'undefined') {
|
|
10086
|
+
toReturn['name'] = this.name;
|
|
10087
|
+
}
|
|
10088
|
+
if (typeof this.picture !== 'undefined') {
|
|
10089
|
+
toReturn['picture'] = this.picture;
|
|
10090
|
+
}
|
|
10091
|
+
if (typeof this.description !== 'undefined') {
|
|
10092
|
+
toReturn['description'] = this.description;
|
|
10093
|
+
}
|
|
10094
|
+
if (typeof this.title !== 'undefined') {
|
|
10095
|
+
toReturn['title'] = this.title;
|
|
10096
|
+
}
|
|
10097
|
+
if (typeof this.url !== 'undefined') {
|
|
10098
|
+
toReturn['url'] = this.url;
|
|
10099
|
+
}
|
|
10100
|
+
if (typeof this.shortcode !== 'undefined') {
|
|
10101
|
+
toReturn['shortcode'] = this.shortcode;
|
|
10102
|
+
}
|
|
10103
|
+
return toReturn;
|
|
10104
|
+
}
|
|
10105
|
+
}
|
|
10106
|
+
class MediaItem {
|
|
10107
|
+
static fromProto(proto) {
|
|
10108
|
+
let m = new MediaItem();
|
|
10109
|
+
m = Object.assign(m, proto);
|
|
10110
|
+
if (proto.mediaType) {
|
|
10111
|
+
m.mediaType = enumStringToValue(MediaType$1, proto.mediaType);
|
|
10112
|
+
}
|
|
10113
|
+
return m;
|
|
10114
|
+
}
|
|
10115
|
+
constructor(kwargs) {
|
|
10116
|
+
if (!kwargs) {
|
|
10117
|
+
return;
|
|
10118
|
+
}
|
|
10119
|
+
Object.assign(this, kwargs);
|
|
10120
|
+
}
|
|
10121
|
+
toApiJson() {
|
|
10122
|
+
const toReturn = {};
|
|
10123
|
+
if (typeof this.mediaId !== 'undefined') {
|
|
10124
|
+
toReturn['mediaId'] = this.mediaId;
|
|
10125
|
+
}
|
|
10126
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
10127
|
+
toReturn['mediaType'] = this.mediaType;
|
|
10128
|
+
}
|
|
10129
|
+
if (typeof this.path !== 'undefined') {
|
|
10130
|
+
toReturn['path'] = this.path;
|
|
10131
|
+
}
|
|
10132
|
+
if (typeof this.url !== 'undefined') {
|
|
10133
|
+
toReturn['url'] = this.url;
|
|
10134
|
+
}
|
|
10135
|
+
return toReturn;
|
|
10136
|
+
}
|
|
10137
|
+
}
|
|
10138
|
+
class SocialContentItem {
|
|
10139
|
+
static fromProto(proto) {
|
|
10140
|
+
let m = new SocialContentItem();
|
|
10141
|
+
m = Object.assign(m, proto);
|
|
10142
|
+
if (proto.type) {
|
|
10143
|
+
m.type = enumStringToValue(SocialContentType, proto.type);
|
|
10144
|
+
}
|
|
10145
|
+
if (proto.mode) {
|
|
10146
|
+
m.mode = enumStringToValue(PublishMode, proto.mode);
|
|
10147
|
+
}
|
|
10148
|
+
if (proto.ssidTypes) {
|
|
10149
|
+
m.ssidTypes = proto.ssidTypes.map(SsidPostType.fromProto);
|
|
10150
|
+
}
|
|
10151
|
+
if (proto.media) {
|
|
10152
|
+
m.media = proto.media.map(MediaItem.fromProto);
|
|
10153
|
+
}
|
|
10154
|
+
if (proto.links) {
|
|
10155
|
+
m.links = proto.links.map(Link.fromProto);
|
|
10156
|
+
}
|
|
10157
|
+
if (proto.scheduleAt) {
|
|
10158
|
+
m.scheduleAt = new Date(proto.scheduleAt);
|
|
10159
|
+
}
|
|
10160
|
+
if (proto.gmbCustomization) {
|
|
10161
|
+
m.gmbCustomization = GMBCustomization.fromProto(proto.gmbCustomization);
|
|
10162
|
+
}
|
|
10163
|
+
if (proto.youtubeCustomization) {
|
|
10164
|
+
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
10165
|
+
}
|
|
10166
|
+
if (proto.tiktokCustomization) {
|
|
10167
|
+
m.tiktokCustomization = TikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
10168
|
+
}
|
|
10169
|
+
if (proto.blogPostOptions) {
|
|
10170
|
+
m.blogPostOptions = BlogPostOptions.fromProto(proto.blogPostOptions);
|
|
10171
|
+
}
|
|
10172
|
+
if (proto.contentMetadata) {
|
|
10173
|
+
m.contentMetadata = proto.contentMetadata.map(ContentMetadata.fromProto);
|
|
10174
|
+
}
|
|
10175
|
+
return m;
|
|
10176
|
+
}
|
|
10177
|
+
constructor(kwargs) {
|
|
10178
|
+
if (!kwargs) {
|
|
10179
|
+
return;
|
|
10180
|
+
}
|
|
10181
|
+
Object.assign(this, kwargs);
|
|
10182
|
+
}
|
|
10183
|
+
toApiJson() {
|
|
10184
|
+
const toReturn = {};
|
|
10185
|
+
if (typeof this.type !== 'undefined') {
|
|
10186
|
+
toReturn['type'] = this.type;
|
|
10187
|
+
}
|
|
10188
|
+
if (typeof this.mode !== 'undefined') {
|
|
10189
|
+
toReturn['mode'] = this.mode;
|
|
10190
|
+
}
|
|
10191
|
+
if (typeof this.ssidTypes !== 'undefined' && this.ssidTypes !== null) {
|
|
10192
|
+
toReturn['ssidTypes'] = 'toApiJson' in this.ssidTypes ? this.ssidTypes.toApiJson() : this.ssidTypes;
|
|
10193
|
+
}
|
|
10194
|
+
if (typeof this.text !== 'undefined') {
|
|
10195
|
+
toReturn['text'] = this.text;
|
|
10196
|
+
}
|
|
10197
|
+
if (typeof this.description !== 'undefined') {
|
|
10198
|
+
toReturn['description'] = this.description;
|
|
10199
|
+
}
|
|
10200
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
10201
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
10202
|
+
}
|
|
10203
|
+
if (typeof this.links !== 'undefined' && this.links !== null) {
|
|
10204
|
+
toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
|
|
10205
|
+
}
|
|
10206
|
+
if (typeof this.scheduleAt !== 'undefined' && this.scheduleAt !== null) {
|
|
10207
|
+
toReturn['scheduleAt'] = 'toApiJson' in this.scheduleAt ? this.scheduleAt.toApiJson() : this.scheduleAt;
|
|
10208
|
+
}
|
|
10209
|
+
if (typeof this.gmbCustomization !== 'undefined' && this.gmbCustomization !== null) {
|
|
10210
|
+
toReturn['gmbCustomization'] = 'toApiJson' in this.gmbCustomization ? this.gmbCustomization.toApiJson() : this.gmbCustomization;
|
|
10211
|
+
}
|
|
10212
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
10213
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
10214
|
+
}
|
|
10215
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
10216
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
10217
|
+
}
|
|
10218
|
+
if (typeof this.blogPostOptions !== 'undefined' && this.blogPostOptions !== null) {
|
|
10219
|
+
toReturn['blogPostOptions'] = 'toApiJson' in this.blogPostOptions ? this.blogPostOptions.toApiJson() : this.blogPostOptions;
|
|
10220
|
+
}
|
|
10221
|
+
if (typeof this.campaignId !== 'undefined') {
|
|
10222
|
+
toReturn['campaignId'] = this.campaignId;
|
|
10223
|
+
}
|
|
10224
|
+
if (typeof this.contentMetadata !== 'undefined' && this.contentMetadata !== null) {
|
|
10225
|
+
toReturn['contentMetadata'] = 'toApiJson' in this.contentMetadata ? this.contentMetadata.toApiJson() : this.contentMetadata;
|
|
10226
|
+
}
|
|
10227
|
+
return toReturn;
|
|
10228
|
+
}
|
|
10229
|
+
}
|
|
10230
|
+
class SocialContentResult {
|
|
10231
|
+
static fromProto(proto) {
|
|
10232
|
+
let m = new SocialContentResult();
|
|
10233
|
+
m = Object.assign(m, proto);
|
|
10234
|
+
return m;
|
|
10235
|
+
}
|
|
10236
|
+
constructor(kwargs) {
|
|
10237
|
+
if (!kwargs) {
|
|
10238
|
+
return;
|
|
10239
|
+
}
|
|
10240
|
+
Object.assign(this, kwargs);
|
|
10241
|
+
}
|
|
10242
|
+
toApiJson() {
|
|
10243
|
+
const toReturn = {};
|
|
10244
|
+
if (typeof this.postId !== 'undefined') {
|
|
10245
|
+
toReturn['postId'] = this.postId;
|
|
10246
|
+
}
|
|
10247
|
+
if (typeof this.ssid !== 'undefined') {
|
|
10248
|
+
toReturn['ssid'] = this.ssid;
|
|
10249
|
+
}
|
|
10250
|
+
if (typeof this.network !== 'undefined') {
|
|
10251
|
+
toReturn['network'] = this.network;
|
|
10252
|
+
}
|
|
10253
|
+
if (typeof this.status !== 'undefined') {
|
|
10254
|
+
toReturn['status'] = this.status;
|
|
10255
|
+
}
|
|
10256
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
10257
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
10258
|
+
}
|
|
10259
|
+
return toReturn;
|
|
10260
|
+
}
|
|
10261
|
+
}
|
|
10262
|
+
class SsidPostType {
|
|
10263
|
+
static fromProto(proto) {
|
|
10264
|
+
let m = new SsidPostType();
|
|
10265
|
+
m = Object.assign(m, proto);
|
|
10266
|
+
if (proto.mediaContentType) {
|
|
10267
|
+
m.mediaContentType = enumStringToValue(MediaContentType, proto.mediaContentType);
|
|
10268
|
+
}
|
|
10269
|
+
return m;
|
|
10270
|
+
}
|
|
10271
|
+
constructor(kwargs) {
|
|
10272
|
+
if (!kwargs) {
|
|
10273
|
+
return;
|
|
10274
|
+
}
|
|
10275
|
+
Object.assign(this, kwargs);
|
|
10276
|
+
}
|
|
10277
|
+
toApiJson() {
|
|
10278
|
+
const toReturn = {};
|
|
10279
|
+
if (typeof this.ssid !== 'undefined') {
|
|
10280
|
+
toReturn['ssid'] = this.ssid;
|
|
10281
|
+
}
|
|
10282
|
+
if (typeof this.mediaContentType !== 'undefined') {
|
|
10283
|
+
toReturn['mediaContentType'] = this.mediaContentType;
|
|
10284
|
+
}
|
|
10285
|
+
return toReturn;
|
|
10286
|
+
}
|
|
10287
|
+
}
|
|
10288
|
+
|
|
10289
|
+
// *********************************
|
|
10290
|
+
// Code generated by sdkgen
|
|
10291
|
+
// DO NOT EDIT!.
|
|
10292
|
+
//
|
|
10293
|
+
// Objects Index.
|
|
10294
|
+
// *********************************
|
|
10295
|
+
|
|
10296
|
+
const environment = (window ? window['environment'] : 'prod') ?? 'prod';
|
|
10297
|
+
const hostMap = {
|
|
10298
|
+
'local': 'social-post.vendasta-local.com',
|
|
10299
|
+
'test': '',
|
|
10300
|
+
'demo': 'social-posts-demo.apigateway.co',
|
|
10301
|
+
'prod': 'social-posts-prod.apigateway.co',
|
|
10302
|
+
'production': 'social-posts-prod.apigateway.co',
|
|
10303
|
+
};
|
|
10304
|
+
class HostService {
|
|
10305
|
+
get host() {
|
|
10306
|
+
return hostMap[environment.toLowerCase()];
|
|
10307
|
+
}
|
|
10308
|
+
get hostWithScheme() {
|
|
10309
|
+
return 'https://' + this.host;
|
|
10310
|
+
}
|
|
10311
|
+
}
|
|
10312
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10313
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
10314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
10315
|
+
type: Injectable,
|
|
10316
|
+
args: [{ providedIn: 'root' }]
|
|
10317
|
+
}] });
|
|
10318
|
+
|
|
10319
|
+
// *********************************
|
|
10320
|
+
// Code generated by sdkgen
|
|
10321
|
+
// DO NOT EDIT!.
|
|
10322
|
+
//
|
|
10323
|
+
// API Service.
|
|
10324
|
+
// *********************************
|
|
10325
|
+
class SocialPostsApiService {
|
|
10326
|
+
constructor() {
|
|
10327
|
+
this.hostService = inject(HostService);
|
|
10328
|
+
this.http = inject(HttpClient);
|
|
10329
|
+
this._host = this.hostService.hostWithScheme;
|
|
10330
|
+
}
|
|
10331
|
+
apiOptions() {
|
|
10332
|
+
return {
|
|
10333
|
+
headers: new HttpHeaders({
|
|
10334
|
+
'Content-Type': 'application/json'
|
|
10335
|
+
}),
|
|
10336
|
+
withCredentials: true
|
|
10337
|
+
};
|
|
10338
|
+
}
|
|
10339
|
+
list(r) {
|
|
10340
|
+
const request = (r.toApiJson) ? r : new ListSocialPostsRequest(r);
|
|
10341
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/List", request.toApiJson(), this.apiOptions())
|
|
10342
|
+
.pipe(map(resp => ListSocialPostsResponse.fromProto(resp)));
|
|
10343
|
+
}
|
|
10344
|
+
deleteSocialPost(r) {
|
|
10345
|
+
const request = (r.toApiJson) ? r : new DeleteSocialPostRequest(r);
|
|
10346
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/DeleteSocialPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
10347
|
+
}
|
|
10348
|
+
scheduleToAllPages(r) {
|
|
10349
|
+
const request = (r.toApiJson) ? r : new ScheduleToAllPagesRequest(r);
|
|
10350
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/ScheduleToAllPages", request.toApiJson(), this.apiOptions())
|
|
10351
|
+
.pipe(map(resp => ScheduleToAllPagesResponse.fromProto(resp)));
|
|
10352
|
+
}
|
|
10353
|
+
schedule(r) {
|
|
10354
|
+
const request = (r.toApiJson) ? r : new SchedulePostRequest(r);
|
|
10355
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/Schedule", request.toApiJson(), this.apiOptions())
|
|
10356
|
+
.pipe(map(resp => SchedulePostResponse.fromProto(resp)));
|
|
10357
|
+
}
|
|
10358
|
+
getMultiSocialPosts(r) {
|
|
10359
|
+
const request = (r.toApiJson) ? r : new GetMultiSocialPostsRequest(r);
|
|
10360
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPosts", request.toApiJson(), this.apiOptions())
|
|
10361
|
+
.pipe(map(resp => GetMultiSocialPostsResponse.fromProto(resp)));
|
|
10362
|
+
}
|
|
10363
|
+
getMultiSocialPostStats(r) {
|
|
10364
|
+
const request = (r.toApiJson) ? r : new GetMultiSocialPostStatsRequest(r);
|
|
10365
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPostStats", request.toApiJson(), this.apiOptions())
|
|
10366
|
+
.pipe(map(resp => GetMultiSocialPostStatsResponse.fromProto(resp)));
|
|
10367
|
+
}
|
|
10368
|
+
getScheduledPostCount(r) {
|
|
10369
|
+
const request = (r.toApiJson) ? r : new GetScheduledPostCountRequest(r);
|
|
10370
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetScheduledPostCount", request.toApiJson(), this.apiOptions())
|
|
10371
|
+
.pipe(map(resp => GetScheduledPostCountResponse.fromProto(resp)));
|
|
10372
|
+
}
|
|
10373
|
+
suggestMessage(r) {
|
|
10374
|
+
const request = (r.toApiJson) ? r : new SuggestMessageRequest(r);
|
|
10375
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/SuggestMessage", request.toApiJson(), this.apiOptions())
|
|
10376
|
+
.pipe(map(resp => SuggestMessageResponse.fromProto(resp)));
|
|
10377
|
+
}
|
|
10378
|
+
}
|
|
10379
|
+
SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10380
|
+
SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
|
|
10381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, decorators: [{
|
|
10382
|
+
type: Injectable,
|
|
10383
|
+
args: [{ providedIn: 'root' }]
|
|
10384
|
+
}] });
|
|
10385
|
+
|
|
10386
|
+
class SocialPostsService {
|
|
10387
|
+
constructor(socialPostsApiService) {
|
|
10388
|
+
this.socialPostsApiService = socialPostsApiService;
|
|
10389
|
+
}
|
|
10390
|
+
list(start, end, socialServiceIds, businessId, partnerId, cursor, tags, pageSize) {
|
|
10391
|
+
const req = new ListSocialPostsRequest({
|
|
10392
|
+
start: start,
|
|
10393
|
+
end: end,
|
|
10394
|
+
businessId: businessId,
|
|
10395
|
+
partnerId: partnerId,
|
|
10396
|
+
cursor: cursor,
|
|
10397
|
+
socialServiceIds: socialServiceIds,
|
|
10398
|
+
tags: tags,
|
|
10399
|
+
pageSize: pageSize,
|
|
10400
|
+
});
|
|
10401
|
+
return this.socialPostsApiService.list(req);
|
|
10402
|
+
}
|
|
10403
|
+
getMultiSocialPosts(businessId, internalPostIds) {
|
|
10404
|
+
if (!internalPostIds || internalPostIds.length === 0) {
|
|
10405
|
+
const res = new GetMultiSocialPostsResponse();
|
|
10406
|
+
return of(res);
|
|
10407
|
+
}
|
|
10408
|
+
const req = new GetMultiSocialPostsRequest({ businessId: businessId, internalPostIds: internalPostIds });
|
|
10409
|
+
return this.socialPostsApiService.getMultiSocialPosts(req);
|
|
10410
|
+
}
|
|
10411
|
+
getScheduledPostCount(partnerId, businessId, socialServiceIds) {
|
|
10412
|
+
const req = new GetScheduledPostCountRequest({ partnerId: partnerId, businessId: businessId, socialServiceIds: socialServiceIds });
|
|
10413
|
+
return this.socialPostsApiService.getScheduledPostCount(req);
|
|
10414
|
+
}
|
|
10415
|
+
suggestMessage(businessId, prompt, postLength, templateType, metadata) {
|
|
10416
|
+
const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt, length: postLength, type: templateType, metadata: metadata });
|
|
10417
|
+
return this.socialPostsApiService.suggestMessage(req);
|
|
10418
|
+
}
|
|
10419
|
+
deleteSocialPost(req) {
|
|
10420
|
+
return this.socialPostsApiService.deleteSocialPost(req);
|
|
10421
|
+
}
|
|
10422
|
+
getMultiSocialPostStats(req) {
|
|
10423
|
+
return this.socialPostsApiService.getMultiSocialPostStats(req);
|
|
10424
|
+
}
|
|
10425
|
+
}
|
|
10426
|
+
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10427
|
+
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
|
|
10428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
|
|
10429
|
+
type: Injectable,
|
|
10430
|
+
args: [{ providedIn: 'root' }]
|
|
10431
|
+
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
10432
|
+
|
|
8625
10433
|
// *********************************
|
|
8626
10434
|
// Code generated by sdkgen
|
|
8627
10435
|
// DO NOT EDIT!.
|
|
@@ -8820,6 +10628,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8820
10628
|
args: [{ providedIn: 'root' }]
|
|
8821
10629
|
}] });
|
|
8822
10630
|
|
|
10631
|
+
// *********************************
|
|
10632
|
+
// Code generated by sdkgen
|
|
10633
|
+
// DO NOT EDIT!.
|
|
10634
|
+
//
|
|
10635
|
+
// API Service.
|
|
10636
|
+
// *********************************
|
|
10637
|
+
class BlogWebsiteApiService {
|
|
10638
|
+
constructor() {
|
|
10639
|
+
this.hostService = inject(HostService);
|
|
10640
|
+
this.http = inject(HttpClient);
|
|
10641
|
+
this._host = this.hostService.hostWithScheme;
|
|
10642
|
+
}
|
|
10643
|
+
apiOptions() {
|
|
10644
|
+
return {
|
|
10645
|
+
headers: new HttpHeaders({
|
|
10646
|
+
'Content-Type': 'application/json'
|
|
10647
|
+
}),
|
|
10648
|
+
withCredentials: true
|
|
10649
|
+
};
|
|
10650
|
+
}
|
|
10651
|
+
getDetails(r) {
|
|
10652
|
+
const request = (r.toApiJson) ? r : new GetBlogWebsiteDetailsRequest(r);
|
|
10653
|
+
return this.http.post(this._host + "/socialposts.v1.BlogWebsite/GetDetails", request.toApiJson(), this.apiOptions())
|
|
10654
|
+
.pipe(map(resp => GetBlogWebsiteDetailsResponse.fromProto(resp)));
|
|
10655
|
+
}
|
|
10656
|
+
}
|
|
10657
|
+
BlogWebsiteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogWebsiteApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10658
|
+
BlogWebsiteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogWebsiteApiService, providedIn: 'root' });
|
|
10659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogWebsiteApiService, decorators: [{
|
|
10660
|
+
type: Injectable,
|
|
10661
|
+
args: [{ providedIn: 'root' }]
|
|
10662
|
+
}] });
|
|
10663
|
+
|
|
8823
10664
|
// *********************************
|
|
8824
10665
|
// Code generated by sdkgen
|
|
8825
10666
|
// DO NOT EDIT!.
|
|
@@ -9084,6 +10925,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9084
10925
|
args: [{ providedIn: 'root' }]
|
|
9085
10926
|
}] });
|
|
9086
10927
|
|
|
10928
|
+
// *********************************
|
|
10929
|
+
// Code generated by sdkgen
|
|
10930
|
+
// DO NOT EDIT!.
|
|
10931
|
+
//
|
|
10932
|
+
// API Service.
|
|
10933
|
+
// *********************************
|
|
10934
|
+
class DraftsApiService {
|
|
10935
|
+
constructor() {
|
|
10936
|
+
this.hostService = inject(HostService);
|
|
10937
|
+
this.http = inject(HttpClient);
|
|
10938
|
+
this._host = this.hostService.hostWithScheme;
|
|
10939
|
+
}
|
|
10940
|
+
apiOptions() {
|
|
10941
|
+
return {
|
|
10942
|
+
headers: new HttpHeaders({
|
|
10943
|
+
'Content-Type': 'application/json'
|
|
10944
|
+
}),
|
|
10945
|
+
withCredentials: true
|
|
10946
|
+
};
|
|
10947
|
+
}
|
|
10948
|
+
updateDraft(r) {
|
|
10949
|
+
const request = (r.toApiJson) ? r : new UpdateDraftRequest(r);
|
|
10950
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/UpdateDraft", request.toApiJson(), this.apiOptions())
|
|
10951
|
+
.pipe(map(resp => UpdateDraftResponse.fromProto(resp)));
|
|
10952
|
+
}
|
|
10953
|
+
createDraft(r) {
|
|
10954
|
+
const request = (r.toApiJson) ? r : new CreateDraftRequest(r);
|
|
10955
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/CreateDraft", request.toApiJson(), this.apiOptions())
|
|
10956
|
+
.pipe(map(resp => CreateDraftResponse.fromProto(resp)));
|
|
10957
|
+
}
|
|
10958
|
+
createMultiDrafts(r) {
|
|
10959
|
+
const request = (r.toApiJson) ? r : new CreateMultiDraftsRequest(r);
|
|
10960
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/CreateMultiDrafts", request.toApiJson(), this.apiOptions())
|
|
10961
|
+
.pipe(map(resp => CreateMultiDraftsResponse.fromProto(resp)));
|
|
10962
|
+
}
|
|
10963
|
+
getDraft(r) {
|
|
10964
|
+
const request = (r.toApiJson) ? r : new GetDraftRequest(r);
|
|
10965
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/GetDraft", request.toApiJson(), this.apiOptions())
|
|
10966
|
+
.pipe(map(resp => GetDraftResponse.fromProto(resp)));
|
|
10967
|
+
}
|
|
10968
|
+
listMultilocationDrafts(r) {
|
|
10969
|
+
const request = (r.toApiJson) ? r : new ListMultilocationDraftsRequest(r);
|
|
10970
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/ListMultilocationDrafts", request.toApiJson(), this.apiOptions())
|
|
10971
|
+
.pipe(map(resp => ListMultilocationDraftsResponse.fromProto(resp)));
|
|
10972
|
+
}
|
|
10973
|
+
listDrafts(r) {
|
|
10974
|
+
const request = (r.toApiJson) ? r : new ListDraftsRequest(r);
|
|
10975
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/ListDrafts", request.toApiJson(), this.apiOptions())
|
|
10976
|
+
.pipe(map(resp => ListDraftsResponse.fromProto(resp)));
|
|
10977
|
+
}
|
|
10978
|
+
listDraftsByNetworkIdentifier(r) {
|
|
10979
|
+
const request = (r.toApiJson) ? r : new ListDraftsByNetworkIdentifierRequest(r);
|
|
10980
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/ListDraftsByNetworkIdentifier", request.toApiJson(), this.apiOptions())
|
|
10981
|
+
.pipe(map(resp => ListDraftsByNetworkIdentifierResponse.fromProto(resp)));
|
|
10982
|
+
}
|
|
10983
|
+
deleteDraft(r) {
|
|
10984
|
+
const request = (r.toApiJson) ? r : new DeleteDraftRequest(r);
|
|
10985
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/DeleteDraft", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
10986
|
+
}
|
|
10987
|
+
updateMultiMlDrafts(r) {
|
|
10988
|
+
const request = (r.toApiJson) ? r : new UpdateMultiMLDraftsRequest(r);
|
|
10989
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/UpdateMultiMLDrafts", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
10990
|
+
}
|
|
10991
|
+
deleteMultiMlDrafts(r) {
|
|
10992
|
+
const request = (r.toApiJson) ? r : new MultiDeleteMLDraftPostsRequest(r);
|
|
10993
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/DeleteMultiMLDrafts", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
10994
|
+
}
|
|
10995
|
+
}
|
|
10996
|
+
DraftsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10997
|
+
DraftsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsApiService, providedIn: 'root' });
|
|
10998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsApiService, decorators: [{
|
|
10999
|
+
type: Injectable,
|
|
11000
|
+
args: [{ providedIn: 'root' }]
|
|
11001
|
+
}] });
|
|
11002
|
+
|
|
9087
11003
|
// *********************************
|
|
9088
11004
|
// Code generated by sdkgen
|
|
9089
11005
|
// DO NOT EDIT!.
|
|
@@ -9402,6 +11318,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9402
11318
|
args: [{ providedIn: 'root' }]
|
|
9403
11319
|
}] });
|
|
9404
11320
|
|
|
11321
|
+
// *********************************
|
|
11322
|
+
// Code generated by sdkgen
|
|
11323
|
+
// DO NOT EDIT!.
|
|
11324
|
+
//
|
|
11325
|
+
// API Service.
|
|
11326
|
+
// *********************************
|
|
11327
|
+
class ProvisioningApiService {
|
|
11328
|
+
constructor() {
|
|
11329
|
+
this.hostService = inject(HostService);
|
|
11330
|
+
this.http = inject(HttpClient);
|
|
11331
|
+
this._host = this.hostService.hostWithScheme;
|
|
11332
|
+
}
|
|
11333
|
+
apiOptions() {
|
|
11334
|
+
return {
|
|
11335
|
+
headers: new HttpHeaders({
|
|
11336
|
+
'Content-Type': 'application/json'
|
|
11337
|
+
}),
|
|
11338
|
+
withCredentials: true
|
|
11339
|
+
};
|
|
11340
|
+
}
|
|
11341
|
+
provision(r) {
|
|
11342
|
+
const request = (r.toApiJson) ? r : new ProvisionRequest(r);
|
|
11343
|
+
return this.http.post(this._host + "/socialposts.v2.Provisioning/Provision", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
11344
|
+
}
|
|
11345
|
+
}
|
|
11346
|
+
ProvisioningApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProvisioningApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11347
|
+
ProvisioningApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProvisioningApiService, providedIn: 'root' });
|
|
11348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProvisioningApiService, decorators: [{
|
|
11349
|
+
type: Injectable,
|
|
11350
|
+
args: [{ providedIn: 'root' }]
|
|
11351
|
+
}] });
|
|
11352
|
+
|
|
11353
|
+
// *********************************
|
|
11354
|
+
// Code generated by sdkgen
|
|
11355
|
+
// DO NOT EDIT!.
|
|
11356
|
+
//
|
|
11357
|
+
// API Service.
|
|
11358
|
+
// *********************************
|
|
11359
|
+
class SocialContentApiService {
|
|
11360
|
+
constructor() {
|
|
11361
|
+
this.hostService = inject(HostService);
|
|
11362
|
+
this.http = inject(HttpClient);
|
|
11363
|
+
this._host = this.hostService.hostWithScheme;
|
|
11364
|
+
}
|
|
11365
|
+
apiOptions() {
|
|
11366
|
+
return {
|
|
11367
|
+
headers: new HttpHeaders({
|
|
11368
|
+
'Content-Type': 'application/json'
|
|
11369
|
+
}),
|
|
11370
|
+
withCredentials: true
|
|
11371
|
+
};
|
|
11372
|
+
}
|
|
11373
|
+
create(r) {
|
|
11374
|
+
const request = (r.toApiJson) ? r : new CreateContentRequest(r);
|
|
11375
|
+
return this.http.post(this._host + "/socialposts.v1.SocialContent/Create", request.toApiJson(), this.apiOptions())
|
|
11376
|
+
.pipe(map(resp => CreateContentResponse.fromProto(resp)));
|
|
11377
|
+
}
|
|
11378
|
+
}
|
|
11379
|
+
SocialContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11380
|
+
SocialContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, providedIn: 'root' });
|
|
11381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, decorators: [{
|
|
11382
|
+
type: Injectable,
|
|
11383
|
+
args: [{ providedIn: 'root' }]
|
|
11384
|
+
}] });
|
|
11385
|
+
|
|
9405
11386
|
// *********************************
|
|
9406
11387
|
// Code generated by sdkgen
|
|
9407
11388
|
// DO NOT EDIT!.
|
|
@@ -10218,9 +12199,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10218
12199
|
args: [{ providedIn: 'root' }]
|
|
10219
12200
|
}], ctorParameters: function () { return [{ type: CampaignApiService }]; } });
|
|
10220
12201
|
|
|
12202
|
+
class DraftsService {
|
|
12203
|
+
constructor(draftsApiService) {
|
|
12204
|
+
this.draftsApiService = draftsApiService;
|
|
12205
|
+
}
|
|
12206
|
+
createDraft(r) {
|
|
12207
|
+
return this.draftsApiService.createDraft(r);
|
|
12208
|
+
}
|
|
12209
|
+
createMultiDrafts(r) {
|
|
12210
|
+
return this.draftsApiService.createMultiDrafts(r);
|
|
12211
|
+
}
|
|
12212
|
+
getDraft(r) {
|
|
12213
|
+
return this.draftsApiService.getDraft(r);
|
|
12214
|
+
}
|
|
12215
|
+
updateDraft(r) {
|
|
12216
|
+
return this.draftsApiService.updateDraft(r);
|
|
12217
|
+
}
|
|
12218
|
+
deleteDraft(r) {
|
|
12219
|
+
return this.draftsApiService.deleteDraft(r);
|
|
12220
|
+
}
|
|
12221
|
+
listDrafts(r) {
|
|
12222
|
+
return this.draftsApiService.listDrafts(r);
|
|
12223
|
+
}
|
|
12224
|
+
listDraftsByNetworkIdentifier(r) {
|
|
12225
|
+
return this.draftsApiService.listDraftsByNetworkIdentifier(r);
|
|
12226
|
+
}
|
|
12227
|
+
listMultilocationDrafts(r) {
|
|
12228
|
+
return this.draftsApiService.listMultilocationDrafts(r);
|
|
12229
|
+
}
|
|
12230
|
+
updateMultiMlDrafts(r) {
|
|
12231
|
+
return this.draftsApiService.updateMultiMlDrafts(r);
|
|
12232
|
+
}
|
|
12233
|
+
deleteMultiMlDrafts(r) {
|
|
12234
|
+
return this.draftsApiService.deleteMultiMlDrafts(r);
|
|
12235
|
+
}
|
|
12236
|
+
}
|
|
12237
|
+
DraftsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsService, deps: [{ token: DraftsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12238
|
+
DraftsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsService, providedIn: 'root' });
|
|
12239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsService, decorators: [{
|
|
12240
|
+
type: Injectable,
|
|
12241
|
+
args: [{ providedIn: 'root' }]
|
|
12242
|
+
}], ctorParameters: function () { return [{ type: DraftsApiService }]; } });
|
|
12243
|
+
|
|
10221
12244
|
/**
|
|
10222
12245
|
* Generated bundle index. Do not edit.
|
|
10223
12246
|
*/
|
|
10224
12247
|
|
|
10225
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, Error, Event, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageSource, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, SortBy, SortBySortDirection, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats };
|
|
12248
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogAuthor, BlogCategory, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostOptions, BlogPostsService, BlogVideo, BlogWebsiteDetails, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, CallToActionType, Campaign, CampaignCustomization, CampaignService, Categories, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, ContentMetadata, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateContentRequest, CreateContentResponse, CreateDraftRequest, CreateDraftResponse, CreateImageRequest, CreateImageResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteDraftRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftType, DraftYoutubeCustomization, DraftYoutubeCustomizationPrivacyStatus, DraftsService, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, Error, Event, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GMBCustomization, GMBPostCustomization, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetBlogWebsiteDetailsRequest, GetBlogWebsiteDetailsResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetDraftRequest, GetDraftResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageSource, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, Link, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaContentType, MediaEntry, MediaItem, MediaProperty, MediaType$1 as MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MlDraftPost, MultiDeleteMLDraftPostsRequest, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Namespace, NamespaceType, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, ProvisionAction, ProvisionRequest, PublishMode, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDDraftType, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialContentItem, SocialContentResult, SocialContentType, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, SortBy, SortBySortDirection, Source, SsidPostType, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, StockImageError, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, VisibilityType, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats };
|
|
10226
12249
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|