@vendasta/social-posts 5.47.0 → 5.49.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 +20 -0
- package/esm2020/lib/_internal/enums/drafts.enum.mjs +27 -0
- package/esm2020/lib/_internal/enums/image-generation.enum.mjs +42 -0
- package/esm2020/lib/_internal/enums/index.mjs +8 -3
- 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/image-generation.api.service.mjs +40 -0
- package/esm2020/lib/_internal/index.mjs +6 -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/image-generation.interface.mjs +2 -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 +628 -0
- package/esm2020/lib/_internal/objects/drafts.mjs +446 -0
- package/esm2020/lib/_internal/objects/image-generation.mjs +155 -0
- package/esm2020/lib/_internal/objects/index.mjs +8 -2
- 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 +2474 -211
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +2474 -211
- 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 +11 -0
- package/lib/_internal/enums/drafts.enum.d.ts +18 -0
- package/lib/_internal/enums/image-generation.enum.d.ts +30 -0
- package/lib/_internal/enums/index.d.ts +7 -2
- 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/image-generation.api.service.d.ts +13 -0
- package/lib/_internal/index.d.ts +5 -0
- package/lib/_internal/interfaces/blog-website-info.interface.d.ts +24 -0
- package/lib/_internal/interfaces/drafts-api.interface.d.ts +110 -0
- package/lib/_internal/interfaces/drafts.interface.d.ts +82 -0
- package/lib/_internal/interfaces/image-generation.interface.d.ts +28 -0
- package/lib/_internal/interfaces/index.d.ts +7 -1
- 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 +163 -0
- package/lib/_internal/objects/drafts.d.ts +120 -0
- package/lib/_internal/objects/image-generation.d.ts +42 -0
- package/lib/_internal/objects/index.d.ts +7 -1
- 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$q(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$p(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,146 @@ 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 FilterBy;
|
|
392
|
+
(function (FilterBy) {
|
|
393
|
+
FilterBy[FilterBy["FILTER_BY_INVALID"] = 0] = "FILTER_BY_INVALID";
|
|
394
|
+
FilterBy[FilterBy["FILTER_BY_UPDATED"] = 1] = "FILTER_BY_UPDATED";
|
|
395
|
+
FilterBy[FilterBy["FILTER_BY_SCHEDULED"] = 2] = "FILTER_BY_SCHEDULED";
|
|
396
|
+
})(FilterBy || (FilterBy = {}));
|
|
397
|
+
var VisibilityType;
|
|
398
|
+
(function (VisibilityType) {
|
|
399
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_INVALID"] = 0] = "VISIBILITY_TYPE_INVALID";
|
|
400
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_ALL"] = 1] = "VISIBILITY_TYPE_ALL";
|
|
401
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_HIDDEN"] = 2] = "VISIBILITY_TYPE_HIDDEN";
|
|
402
|
+
VisibilityType[VisibilityType["VISIBILITY_TYPE_VISIBLE"] = 3] = "VISIBILITY_TYPE_VISIBLE";
|
|
403
|
+
})(VisibilityType || (VisibilityType = {}));
|
|
404
|
+
|
|
405
|
+
// *********************************
|
|
406
|
+
// Code generated by sdkgen
|
|
407
|
+
// DO NOT EDIT!.
|
|
408
|
+
//
|
|
409
|
+
// Enums.
|
|
410
|
+
// *********************************
|
|
411
|
+
var CallToActionType;
|
|
412
|
+
(function (CallToActionType) {
|
|
413
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_INVALID"] = 0] = "CALL_TO_ACTION_TYPE_INVALID";
|
|
414
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_LEARN_MORE"] = 1] = "CALL_TO_ACTION_TYPE_LEARN_MORE";
|
|
415
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_BOOK"] = 2] = "CALL_TO_ACTION_TYPE_BOOK";
|
|
416
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_ORDER"] = 3] = "CALL_TO_ACTION_TYPE_ORDER";
|
|
417
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_SHOP"] = 4] = "CALL_TO_ACTION_TYPE_SHOP";
|
|
418
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_SIGN_UP"] = 5] = "CALL_TO_ACTION_TYPE_SIGN_UP";
|
|
419
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_GET_OFFER"] = 6] = "CALL_TO_ACTION_TYPE_GET_OFFER";
|
|
420
|
+
CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_CALL"] = 7] = "CALL_TO_ACTION_TYPE_CALL";
|
|
421
|
+
})(CallToActionType || (CallToActionType = {}));
|
|
422
|
+
var MediaContentType;
|
|
423
|
+
(function (MediaContentType) {
|
|
424
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_INVALID"] = 0] = "MEDIA_CONTENT_TYPE_INVALID";
|
|
425
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_IMAGE"] = 1] = "MEDIA_CONTENT_TYPE_IMAGE";
|
|
426
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_VIDEO"] = 2] = "MEDIA_CONTENT_TYPE_VIDEO";
|
|
427
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_GIF"] = 3] = "MEDIA_CONTENT_TYPE_GIF";
|
|
428
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_MULTI_MEDIA"] = 4] = "MEDIA_CONTENT_TYPE_MULTI_MEDIA";
|
|
429
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_TEXT"] = 5] = "MEDIA_CONTENT_TYPE_TEXT";
|
|
430
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_STORIES"] = 6] = "MEDIA_CONTENT_TYPE_STORIES";
|
|
431
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_IMAGE_STORY"] = 7] = "MEDIA_CONTENT_TYPE_IMAGE_STORY";
|
|
432
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_VIDEO_STORY"] = 8] = "MEDIA_CONTENT_TYPE_VIDEO_STORY";
|
|
433
|
+
MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_REEL"] = 9] = "MEDIA_CONTENT_TYPE_REEL";
|
|
434
|
+
})(MediaContentType || (MediaContentType = {}));
|
|
435
|
+
var MediaType;
|
|
436
|
+
(function (MediaType) {
|
|
437
|
+
MediaType[MediaType["MEDIA_TYPE_INVALID"] = 0] = "MEDIA_TYPE_INVALID";
|
|
438
|
+
MediaType[MediaType["MEDIA_TYPE_IMAGE"] = 1] = "MEDIA_TYPE_IMAGE";
|
|
439
|
+
MediaType[MediaType["MEDIA_TYPE_VIDEO"] = 2] = "MEDIA_TYPE_VIDEO";
|
|
440
|
+
MediaType[MediaType["MEDIA_TYPE_GIF"] = 3] = "MEDIA_TYPE_GIF";
|
|
441
|
+
})(MediaType || (MediaType = {}));
|
|
442
|
+
var PublishMode;
|
|
443
|
+
(function (PublishMode) {
|
|
444
|
+
PublishMode[PublishMode["PUBLISH_MODE_INVALID"] = 0] = "PUBLISH_MODE_INVALID";
|
|
445
|
+
PublishMode[PublishMode["PUBLISH_MODE_SAVE_DRAFT"] = 1] = "PUBLISH_MODE_SAVE_DRAFT";
|
|
446
|
+
PublishMode[PublishMode["PUBLISH_MODE_SCHEDULE"] = 2] = "PUBLISH_MODE_SCHEDULE";
|
|
447
|
+
PublishMode[PublishMode["PUBLISH_MODE_PUBLISH_NOW"] = 3] = "PUBLISH_MODE_PUBLISH_NOW";
|
|
448
|
+
})(PublishMode || (PublishMode = {}));
|
|
449
|
+
var SocialContentType;
|
|
450
|
+
(function (SocialContentType) {
|
|
451
|
+
SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_INVALID"] = 0] = "SOCIAL_CONTENT_TYPE_INVALID";
|
|
452
|
+
SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_SOCIAL_POST"] = 1] = "SOCIAL_CONTENT_TYPE_SOCIAL_POST";
|
|
453
|
+
SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_BLOG_ARTICLE"] = 2] = "SOCIAL_CONTENT_TYPE_BLOG_ARTICLE";
|
|
454
|
+
})(SocialContentType || (SocialContentType = {}));
|
|
455
|
+
|
|
456
|
+
// *********************************
|
|
457
|
+
// Code generated by sdkgen
|
|
458
|
+
// DO NOT EDIT!.
|
|
459
|
+
//
|
|
460
|
+
// Enums.
|
|
461
|
+
// *********************************
|
|
462
|
+
var ImageBackground;
|
|
463
|
+
(function (ImageBackground) {
|
|
464
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_UNSPECIFIED"] = 0] = "IMAGE_BACKGROUND_UNSPECIFIED";
|
|
465
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_TRANSPARENT"] = 1] = "IMAGE_BACKGROUND_TRANSPARENT";
|
|
466
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_OPAQUE"] = 2] = "IMAGE_BACKGROUND_OPAQUE";
|
|
467
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_AUTO"] = 3] = "IMAGE_BACKGROUND_AUTO";
|
|
468
|
+
})(ImageBackground || (ImageBackground = {}));
|
|
469
|
+
var ImageModel;
|
|
470
|
+
(function (ImageModel) {
|
|
471
|
+
ImageModel[ImageModel["IMAGE_MODEL_UNSPECIFIED"] = 0] = "IMAGE_MODEL_UNSPECIFIED";
|
|
472
|
+
ImageModel[ImageModel["DALL_E_2"] = 1] = "DALL_E_2";
|
|
473
|
+
ImageModel[ImageModel["DALL_E_3"] = 2] = "DALL_E_3";
|
|
474
|
+
ImageModel[ImageModel["GPT_IMAGE_1"] = 3] = "GPT_IMAGE_1";
|
|
475
|
+
ImageModel[ImageModel["GPT_IMAGE_1_5"] = 4] = "GPT_IMAGE_1_5";
|
|
476
|
+
})(ImageModel || (ImageModel = {}));
|
|
477
|
+
var ImageOutputFormat;
|
|
478
|
+
(function (ImageOutputFormat) {
|
|
479
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_UNSPECIFIED"] = 0] = "IMAGE_OUTPUT_FORMAT_UNSPECIFIED";
|
|
480
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_PNG"] = 1] = "IMAGE_OUTPUT_FORMAT_PNG";
|
|
481
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_JPEG"] = 2] = "IMAGE_OUTPUT_FORMAT_JPEG";
|
|
482
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_WEBP"] = 3] = "IMAGE_OUTPUT_FORMAT_WEBP";
|
|
483
|
+
})(ImageOutputFormat || (ImageOutputFormat = {}));
|
|
484
|
+
var ImageQuality;
|
|
485
|
+
(function (ImageQuality) {
|
|
486
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_UNSPECIFIED"] = 0] = "IMAGE_QUALITY_UNSPECIFIED";
|
|
487
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_LOW"] = 1] = "IMAGE_QUALITY_LOW";
|
|
488
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_MEDIUM"] = 2] = "IMAGE_QUALITY_MEDIUM";
|
|
489
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_STANDARD"] = 3] = "IMAGE_QUALITY_STANDARD";
|
|
490
|
+
})(ImageQuality || (ImageQuality = {}));
|
|
491
|
+
var ImageStyle;
|
|
492
|
+
(function (ImageStyle) {
|
|
493
|
+
ImageStyle[ImageStyle["IMAGE_STYLE_UNSPECIFIED"] = 0] = "IMAGE_STYLE_UNSPECIFIED";
|
|
494
|
+
ImageStyle[ImageStyle["IMAGE_STYLE_VIVID"] = 1] = "IMAGE_STYLE_VIVID";
|
|
495
|
+
ImageStyle[ImageStyle["IMAGE_STYLE_NATURAL"] = 2] = "IMAGE_STYLE_NATURAL";
|
|
496
|
+
})(ImageStyle || (ImageStyle = {}));
|
|
497
|
+
|
|
337
498
|
// *********************************
|
|
338
499
|
// Code generated by sdkgen
|
|
339
500
|
// DO NOT EDIT!.
|
|
@@ -341,7 +502,7 @@ var Role;
|
|
|
341
502
|
// Enums Index.
|
|
342
503
|
// *********************************
|
|
343
504
|
|
|
344
|
-
function enumStringToValue$
|
|
505
|
+
function enumStringToValue$o(enumRef, value) {
|
|
345
506
|
if (typeof value === 'number') {
|
|
346
507
|
return value;
|
|
347
508
|
}
|
|
@@ -413,7 +574,7 @@ class CallToAction {
|
|
|
413
574
|
let m = new CallToAction();
|
|
414
575
|
m = Object.assign(m, proto);
|
|
415
576
|
if (proto.actionType) {
|
|
416
|
-
m.actionType = enumStringToValue$
|
|
577
|
+
m.actionType = enumStringToValue$o(CallToActionCallToActionType, proto.actionType);
|
|
417
578
|
}
|
|
418
579
|
return m;
|
|
419
580
|
}
|
|
@@ -651,7 +812,7 @@ class PostTemplate {
|
|
|
651
812
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
652
813
|
}
|
|
653
814
|
if (proto.postType) {
|
|
654
|
-
m.postType = enumStringToValue$
|
|
815
|
+
m.postType = enumStringToValue$o(PostType, proto.postType);
|
|
655
816
|
}
|
|
656
817
|
if (proto.youtubeCustomization) {
|
|
657
818
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -734,7 +895,7 @@ class SSIDPostType {
|
|
|
734
895
|
let m = new SSIDPostType();
|
|
735
896
|
m = Object.assign(m, proto);
|
|
736
897
|
if (proto.postType) {
|
|
737
|
-
m.postType = enumStringToValue$
|
|
898
|
+
m.postType = enumStringToValue$o(PostType, proto.postType);
|
|
738
899
|
}
|
|
739
900
|
return m;
|
|
740
901
|
}
|
|
@@ -818,10 +979,10 @@ class SocialPost {
|
|
|
818
979
|
m.posted = new Date(proto.posted);
|
|
819
980
|
}
|
|
820
981
|
if (proto.deletionStatus) {
|
|
821
|
-
m.deletionStatus = enumStringToValue$
|
|
982
|
+
m.deletionStatus = enumStringToValue$o(SocialPostDeletionStatus, proto.deletionStatus);
|
|
822
983
|
}
|
|
823
984
|
if (proto.service) {
|
|
824
|
-
m.service = enumStringToValue$
|
|
985
|
+
m.service = enumStringToValue$o(SocialPostService, proto.service);
|
|
825
986
|
}
|
|
826
987
|
if (proto.created) {
|
|
827
988
|
m.created = new Date(proto.created);
|
|
@@ -830,7 +991,7 @@ class SocialPost {
|
|
|
830
991
|
m.scheduled = new Date(proto.scheduled);
|
|
831
992
|
}
|
|
832
993
|
if (proto.status) {
|
|
833
|
-
m.status = enumStringToValue$
|
|
994
|
+
m.status = enumStringToValue$o(PostingStatus, proto.status);
|
|
834
995
|
}
|
|
835
996
|
if (proto.event) {
|
|
836
997
|
m.event = Event.fromProto(proto.event);
|
|
@@ -842,7 +1003,7 @@ class SocialPost {
|
|
|
842
1003
|
m.error = Error.fromProto(proto.error);
|
|
843
1004
|
}
|
|
844
1005
|
if (proto.postType) {
|
|
845
|
-
m.postType = enumStringToValue$
|
|
1006
|
+
m.postType = enumStringToValue$o(PostType, proto.postType);
|
|
846
1007
|
}
|
|
847
1008
|
if (proto.mediaEntries) {
|
|
848
1009
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -1043,7 +1204,7 @@ class YoutubeCustomization {
|
|
|
1043
1204
|
let m = new YoutubeCustomization();
|
|
1044
1205
|
m = Object.assign(m, proto);
|
|
1045
1206
|
if (proto.privacyStatus) {
|
|
1046
|
-
m.privacyStatus = enumStringToValue$
|
|
1207
|
+
m.privacyStatus = enumStringToValue$o(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
1047
1208
|
}
|
|
1048
1209
|
return m;
|
|
1049
1210
|
}
|
|
@@ -1065,7 +1226,7 @@ class YoutubeCustomization {
|
|
|
1065
1226
|
}
|
|
1066
1227
|
}
|
|
1067
1228
|
|
|
1068
|
-
function enumStringToValue$
|
|
1229
|
+
function enumStringToValue$n(enumRef, value) {
|
|
1069
1230
|
if (typeof value === 'number') {
|
|
1070
1231
|
return value;
|
|
1071
1232
|
}
|
|
@@ -1206,7 +1367,7 @@ class MultilocationPost {
|
|
|
1206
1367
|
m.postCategory = MLPostCategory.fromProto(proto.postCategory);
|
|
1207
1368
|
}
|
|
1208
1369
|
if (proto.postState) {
|
|
1209
|
-
m.postState = enumStringToValue$
|
|
1370
|
+
m.postState = enumStringToValue$n(MLPostState, proto.postState);
|
|
1210
1371
|
}
|
|
1211
1372
|
if (proto.postCustomizationByLocation) {
|
|
1212
1373
|
m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
|
|
@@ -1390,7 +1551,7 @@ class PostCustomizationByLocation {
|
|
|
1390
1551
|
let m = new PostCustomizationByLocation();
|
|
1391
1552
|
m = Object.assign(m, proto);
|
|
1392
1553
|
if (proto.customizationStatus) {
|
|
1393
|
-
m.customizationStatus = enumStringToValue$
|
|
1554
|
+
m.customizationStatus = enumStringToValue$n(CustomizationStatus, proto.customizationStatus);
|
|
1394
1555
|
}
|
|
1395
1556
|
return m;
|
|
1396
1557
|
}
|
|
@@ -1444,7 +1605,7 @@ class PostEvent {
|
|
|
1444
1605
|
}
|
|
1445
1606
|
}
|
|
1446
1607
|
|
|
1447
|
-
function enumStringToValue$
|
|
1608
|
+
function enumStringToValue$m(enumRef, value) {
|
|
1448
1609
|
if (typeof value === 'number') {
|
|
1449
1610
|
return value;
|
|
1450
1611
|
}
|
|
@@ -1498,7 +1659,7 @@ class PexelsImage {
|
|
|
1498
1659
|
}
|
|
1499
1660
|
}
|
|
1500
1661
|
|
|
1501
|
-
function enumStringToValue$
|
|
1662
|
+
function enumStringToValue$l(enumRef, value) {
|
|
1502
1663
|
if (typeof value === 'number') {
|
|
1503
1664
|
return value;
|
|
1504
1665
|
}
|
|
@@ -1639,7 +1800,7 @@ class PixabayImage {
|
|
|
1639
1800
|
}
|
|
1640
1801
|
}
|
|
1641
1802
|
|
|
1642
|
-
function enumStringToValue$
|
|
1803
|
+
function enumStringToValue$k(enumRef, value) {
|
|
1643
1804
|
if (typeof value === 'number') {
|
|
1644
1805
|
return value;
|
|
1645
1806
|
}
|
|
@@ -1978,7 +2139,7 @@ class YoutubePostStats {
|
|
|
1978
2139
|
}
|
|
1979
2140
|
}
|
|
1980
2141
|
|
|
1981
|
-
function enumStringToValue$
|
|
2142
|
+
function enumStringToValue$j(enumRef, value) {
|
|
1982
2143
|
if (typeof value === 'number') {
|
|
1983
2144
|
return value;
|
|
1984
2145
|
}
|
|
@@ -2084,7 +2245,7 @@ class TenorMediaObject {
|
|
|
2084
2245
|
}
|
|
2085
2246
|
}
|
|
2086
2247
|
|
|
2087
|
-
function enumStringToValue$
|
|
2248
|
+
function enumStringToValue$i(enumRef, value) {
|
|
2088
2249
|
if (typeof value === 'number') {
|
|
2089
2250
|
return value;
|
|
2090
2251
|
}
|
|
@@ -2133,7 +2294,7 @@ class BulkCreateMultilocationPostResponse {
|
|
|
2133
2294
|
let m = new BulkCreateMultilocationPostResponse();
|
|
2134
2295
|
m = Object.assign(m, proto);
|
|
2135
2296
|
if (proto.status) {
|
|
2136
|
-
m.status = enumStringToValue$
|
|
2297
|
+
m.status = enumStringToValue$i(BulkPostStatus, proto.status);
|
|
2137
2298
|
}
|
|
2138
2299
|
if (proto.error) {
|
|
2139
2300
|
m.error = proto.error.map(MultilocationPostError.fromProto);
|
|
@@ -2292,7 +2453,7 @@ class CreatePostTemplateRequest {
|
|
|
2292
2453
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
2293
2454
|
}
|
|
2294
2455
|
if (proto.postType) {
|
|
2295
|
-
m.postType = enumStringToValue$
|
|
2456
|
+
m.postType = enumStringToValue$i(PostType, proto.postType);
|
|
2296
2457
|
}
|
|
2297
2458
|
if (proto.youtubeCustomization) {
|
|
2298
2459
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3697,7 +3858,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
3697
3858
|
let m = new RemoveFromMultilocationPostRequest();
|
|
3698
3859
|
m = Object.assign(m, proto);
|
|
3699
3860
|
if (proto.reason) {
|
|
3700
|
-
m.reason = enumStringToValue$
|
|
3861
|
+
m.reason = enumStringToValue$i(RemoveReason, proto.reason);
|
|
3701
3862
|
}
|
|
3702
3863
|
if (proto.locations) {
|
|
3703
3864
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -3920,10 +4081,10 @@ class SuggestMessageRequest {
|
|
|
3920
4081
|
let m = new SuggestMessageRequest();
|
|
3921
4082
|
m = Object.assign(m, proto);
|
|
3922
4083
|
if (proto.length) {
|
|
3923
|
-
m.length = enumStringToValue$
|
|
4084
|
+
m.length = enumStringToValue$i(MessageLength, proto.length);
|
|
3924
4085
|
}
|
|
3925
4086
|
if (proto.type) {
|
|
3926
|
-
m.type = enumStringToValue$
|
|
4087
|
+
m.type = enumStringToValue$i(TemplateType, proto.type);
|
|
3927
4088
|
}
|
|
3928
4089
|
if (proto.metadata) {
|
|
3929
4090
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -3990,7 +4151,7 @@ class UpdatePostTemplateRequest {
|
|
|
3990
4151
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3991
4152
|
}
|
|
3992
4153
|
if (proto.postType) {
|
|
3993
|
-
m.postType = enumStringToValue$
|
|
4154
|
+
m.postType = enumStringToValue$i(PostType, proto.postType);
|
|
3994
4155
|
}
|
|
3995
4156
|
if (proto.youtubeCustomization) {
|
|
3996
4157
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -4057,7 +4218,7 @@ class UpdatePostTemplateRequest {
|
|
|
4057
4218
|
}
|
|
4058
4219
|
}
|
|
4059
4220
|
|
|
4060
|
-
function enumStringToValue$
|
|
4221
|
+
function enumStringToValue$h(enumRef, value) {
|
|
4061
4222
|
if (typeof value === 'number') {
|
|
4062
4223
|
return value;
|
|
4063
4224
|
}
|
|
@@ -4254,7 +4415,7 @@ class SortBy {
|
|
|
4254
4415
|
let m = new SortBy();
|
|
4255
4416
|
m = Object.assign(m, proto);
|
|
4256
4417
|
if (proto.sortDirection) {
|
|
4257
|
-
m.sortDirection = enumStringToValue$
|
|
4418
|
+
m.sortDirection = enumStringToValue$h(SortBySortDirection, proto.sortDirection);
|
|
4258
4419
|
}
|
|
4259
4420
|
return m;
|
|
4260
4421
|
}
|
|
@@ -4276,7 +4437,7 @@ class SortBy {
|
|
|
4276
4437
|
}
|
|
4277
4438
|
}
|
|
4278
4439
|
|
|
4279
|
-
function enumStringToValue$
|
|
4440
|
+
function enumStringToValue$g(enumRef, value) {
|
|
4280
4441
|
if (typeof value === 'number') {
|
|
4281
4442
|
return value;
|
|
4282
4443
|
}
|
|
@@ -4286,8 +4447,11 @@ class ListStockImagesRequest {
|
|
|
4286
4447
|
static fromProto(proto) {
|
|
4287
4448
|
let m = new ListStockImagesRequest();
|
|
4288
4449
|
m = Object.assign(m, proto);
|
|
4450
|
+
if (proto.namespace) {
|
|
4451
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
4452
|
+
}
|
|
4289
4453
|
if (proto.imageSource) {
|
|
4290
|
-
m.imageSource = enumStringToValue$
|
|
4454
|
+
m.imageSource = enumStringToValue$g(ImageSource, proto.imageSource);
|
|
4291
4455
|
}
|
|
4292
4456
|
return m;
|
|
4293
4457
|
}
|
|
@@ -4299,8 +4463,8 @@ class ListStockImagesRequest {
|
|
|
4299
4463
|
}
|
|
4300
4464
|
toApiJson() {
|
|
4301
4465
|
const toReturn = {};
|
|
4302
|
-
if (typeof this.
|
|
4303
|
-
toReturn['
|
|
4466
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
4467
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
4304
4468
|
}
|
|
4305
4469
|
if (typeof this.keywords !== 'undefined') {
|
|
4306
4470
|
toReturn['keywords'] = this.keywords;
|
|
@@ -4333,6 +4497,9 @@ class ListStockImagesResponse {
|
|
|
4333
4497
|
if (proto.images) {
|
|
4334
4498
|
m.images = proto.images.map(StockImage.fromProto);
|
|
4335
4499
|
}
|
|
4500
|
+
if (proto.error) {
|
|
4501
|
+
m.error = StockImageError.fromProto(proto.error);
|
|
4502
|
+
}
|
|
4336
4503
|
return m;
|
|
4337
4504
|
}
|
|
4338
4505
|
constructor(kwargs) {
|
|
@@ -4346,6 +4513,35 @@ class ListStockImagesResponse {
|
|
|
4346
4513
|
if (typeof this.images !== 'undefined' && this.images !== null) {
|
|
4347
4514
|
toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
|
|
4348
4515
|
}
|
|
4516
|
+
if (typeof this.error !== 'undefined' && this.error !== null) {
|
|
4517
|
+
toReturn['error'] = 'toApiJson' in this.error ? this.error.toApiJson() : this.error;
|
|
4518
|
+
}
|
|
4519
|
+
return toReturn;
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4522
|
+
class Namespace {
|
|
4523
|
+
static fromProto(proto) {
|
|
4524
|
+
let m = new Namespace();
|
|
4525
|
+
m = Object.assign(m, proto);
|
|
4526
|
+
if (proto.namespaceType) {
|
|
4527
|
+
m.namespaceType = enumStringToValue$g(NamespaceType, proto.namespaceType);
|
|
4528
|
+
}
|
|
4529
|
+
return m;
|
|
4530
|
+
}
|
|
4531
|
+
constructor(kwargs) {
|
|
4532
|
+
if (!kwargs) {
|
|
4533
|
+
return;
|
|
4534
|
+
}
|
|
4535
|
+
Object.assign(this, kwargs);
|
|
4536
|
+
}
|
|
4537
|
+
toApiJson() {
|
|
4538
|
+
const toReturn = {};
|
|
4539
|
+
if (typeof this.namespaceId !== 'undefined') {
|
|
4540
|
+
toReturn['namespaceId'] = this.namespaceId;
|
|
4541
|
+
}
|
|
4542
|
+
if (typeof this.namespaceType !== 'undefined') {
|
|
4543
|
+
toReturn['namespaceType'] = this.namespaceType;
|
|
4544
|
+
}
|
|
4349
4545
|
return toReturn;
|
|
4350
4546
|
}
|
|
4351
4547
|
}
|
|
@@ -4354,7 +4550,7 @@ class StockImage {
|
|
|
4354
4550
|
let m = new StockImage();
|
|
4355
4551
|
m = Object.assign(m, proto);
|
|
4356
4552
|
if (proto.source) {
|
|
4357
|
-
m.source = enumStringToValue$
|
|
4553
|
+
m.source = enumStringToValue$g(ImageSource, proto.source);
|
|
4358
4554
|
}
|
|
4359
4555
|
return m;
|
|
4360
4556
|
}
|
|
@@ -4369,8 +4565,8 @@ class StockImage {
|
|
|
4369
4565
|
if (typeof this.publicUrl !== 'undefined') {
|
|
4370
4566
|
toReturn['publicUrl'] = this.publicUrl;
|
|
4371
4567
|
}
|
|
4372
|
-
if (typeof this.
|
|
4373
|
-
toReturn['
|
|
4568
|
+
if (typeof this.imageId !== 'undefined') {
|
|
4569
|
+
toReturn['imageId'] = this.imageId;
|
|
4374
4570
|
}
|
|
4375
4571
|
if (typeof this.source !== 'undefined') {
|
|
4376
4572
|
toReturn['source'] = this.source;
|
|
@@ -4384,8 +4580,180 @@ class StockImage {
|
|
|
4384
4580
|
return toReturn;
|
|
4385
4581
|
}
|
|
4386
4582
|
}
|
|
4583
|
+
class StockImageError {
|
|
4584
|
+
static fromProto(proto) {
|
|
4585
|
+
let m = new StockImageError();
|
|
4586
|
+
m = Object.assign(m, proto);
|
|
4587
|
+
return m;
|
|
4588
|
+
}
|
|
4589
|
+
constructor(kwargs) {
|
|
4590
|
+
if (!kwargs) {
|
|
4591
|
+
return;
|
|
4592
|
+
}
|
|
4593
|
+
Object.assign(this, kwargs);
|
|
4594
|
+
}
|
|
4595
|
+
toApiJson() {
|
|
4596
|
+
const toReturn = {};
|
|
4597
|
+
if (typeof this.code !== 'undefined') {
|
|
4598
|
+
toReturn['code'] = this.code;
|
|
4599
|
+
}
|
|
4600
|
+
if (typeof this.message !== 'undefined') {
|
|
4601
|
+
toReturn['message'] = this.message;
|
|
4602
|
+
}
|
|
4603
|
+
return toReturn;
|
|
4604
|
+
}
|
|
4605
|
+
}
|
|
4387
4606
|
|
|
4388
|
-
function enumStringToValue$
|
|
4607
|
+
function enumStringToValue$f(enumRef, value) {
|
|
4608
|
+
if (typeof value === 'number') {
|
|
4609
|
+
return value;
|
|
4610
|
+
}
|
|
4611
|
+
return enumRef[value];
|
|
4612
|
+
}
|
|
4613
|
+
class BlogAuthor {
|
|
4614
|
+
static fromProto(proto) {
|
|
4615
|
+
let m = new BlogAuthor();
|
|
4616
|
+
m = Object.assign(m, proto);
|
|
4617
|
+
if (proto.id) {
|
|
4618
|
+
m.id = parseInt(proto.id, 10);
|
|
4619
|
+
}
|
|
4620
|
+
return m;
|
|
4621
|
+
}
|
|
4622
|
+
constructor(kwargs) {
|
|
4623
|
+
if (!kwargs) {
|
|
4624
|
+
return;
|
|
4625
|
+
}
|
|
4626
|
+
Object.assign(this, kwargs);
|
|
4627
|
+
}
|
|
4628
|
+
toApiJson() {
|
|
4629
|
+
const toReturn = {};
|
|
4630
|
+
if (typeof this.id !== 'undefined') {
|
|
4631
|
+
toReturn['id'] = this.id;
|
|
4632
|
+
}
|
|
4633
|
+
if (typeof this.name !== 'undefined') {
|
|
4634
|
+
toReturn['name'] = this.name;
|
|
4635
|
+
}
|
|
4636
|
+
return toReturn;
|
|
4637
|
+
}
|
|
4638
|
+
}
|
|
4639
|
+
class BlogCategory {
|
|
4640
|
+
static fromProto(proto) {
|
|
4641
|
+
let m = new BlogCategory();
|
|
4642
|
+
m = Object.assign(m, proto);
|
|
4643
|
+
if (proto.id) {
|
|
4644
|
+
m.id = parseInt(proto.id, 10);
|
|
4645
|
+
}
|
|
4646
|
+
return m;
|
|
4647
|
+
}
|
|
4648
|
+
constructor(kwargs) {
|
|
4649
|
+
if (!kwargs) {
|
|
4650
|
+
return;
|
|
4651
|
+
}
|
|
4652
|
+
Object.assign(this, kwargs);
|
|
4653
|
+
}
|
|
4654
|
+
toApiJson() {
|
|
4655
|
+
const toReturn = {};
|
|
4656
|
+
if (typeof this.id !== 'undefined') {
|
|
4657
|
+
toReturn['id'] = this.id;
|
|
4658
|
+
}
|
|
4659
|
+
if (typeof this.name !== 'undefined') {
|
|
4660
|
+
toReturn['name'] = this.name;
|
|
4661
|
+
}
|
|
4662
|
+
return toReturn;
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4665
|
+
class BlogWebsiteDetails {
|
|
4666
|
+
static fromProto(proto) {
|
|
4667
|
+
let m = new BlogWebsiteDetails();
|
|
4668
|
+
m = Object.assign(m, proto);
|
|
4669
|
+
if (proto.categories) {
|
|
4670
|
+
m.categories = proto.categories.map(BlogCategory.fromProto);
|
|
4671
|
+
}
|
|
4672
|
+
if (proto.authors) {
|
|
4673
|
+
m.authors = proto.authors.map(BlogAuthor.fromProto);
|
|
4674
|
+
}
|
|
4675
|
+
return m;
|
|
4676
|
+
}
|
|
4677
|
+
constructor(kwargs) {
|
|
4678
|
+
if (!kwargs) {
|
|
4679
|
+
return;
|
|
4680
|
+
}
|
|
4681
|
+
Object.assign(this, kwargs);
|
|
4682
|
+
}
|
|
4683
|
+
toApiJson() {
|
|
4684
|
+
const toReturn = {};
|
|
4685
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
4686
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
4687
|
+
}
|
|
4688
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
4689
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
4690
|
+
}
|
|
4691
|
+
if (typeof this.isSiteActive !== 'undefined') {
|
|
4692
|
+
toReturn['isSiteActive'] = this.isSiteActive;
|
|
4693
|
+
}
|
|
4694
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
4695
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
4696
|
+
}
|
|
4697
|
+
if (typeof this.authors !== 'undefined' && this.authors !== null) {
|
|
4698
|
+
toReturn['authors'] = 'toApiJson' in this.authors ? this.authors.toApiJson() : this.authors;
|
|
4699
|
+
}
|
|
4700
|
+
if (typeof this.version !== 'undefined') {
|
|
4701
|
+
toReturn['version'] = this.version;
|
|
4702
|
+
}
|
|
4703
|
+
if (typeof this.tags !== 'undefined') {
|
|
4704
|
+
toReturn['tags'] = this.tags;
|
|
4705
|
+
}
|
|
4706
|
+
if (typeof this.error !== 'undefined') {
|
|
4707
|
+
toReturn['error'] = this.error;
|
|
4708
|
+
}
|
|
4709
|
+
return toReturn;
|
|
4710
|
+
}
|
|
4711
|
+
}
|
|
4712
|
+
class GetBlogWebsiteDetailsRequest {
|
|
4713
|
+
static fromProto(proto) {
|
|
4714
|
+
let m = new GetBlogWebsiteDetailsRequest();
|
|
4715
|
+
m = Object.assign(m, proto);
|
|
4716
|
+
return m;
|
|
4717
|
+
}
|
|
4718
|
+
constructor(kwargs) {
|
|
4719
|
+
if (!kwargs) {
|
|
4720
|
+
return;
|
|
4721
|
+
}
|
|
4722
|
+
Object.assign(this, kwargs);
|
|
4723
|
+
}
|
|
4724
|
+
toApiJson() {
|
|
4725
|
+
const toReturn = {};
|
|
4726
|
+
if (typeof this.socialServiceIds !== 'undefined') {
|
|
4727
|
+
toReturn['socialServiceIds'] = this.socialServiceIds;
|
|
4728
|
+
}
|
|
4729
|
+
return toReturn;
|
|
4730
|
+
}
|
|
4731
|
+
}
|
|
4732
|
+
class GetBlogWebsiteDetailsResponse {
|
|
4733
|
+
static fromProto(proto) {
|
|
4734
|
+
let m = new GetBlogWebsiteDetailsResponse();
|
|
4735
|
+
m = Object.assign(m, proto);
|
|
4736
|
+
if (proto.blogWebsiteDetails) {
|
|
4737
|
+
m.blogWebsiteDetails = proto.blogWebsiteDetails.map(BlogWebsiteDetails.fromProto);
|
|
4738
|
+
}
|
|
4739
|
+
return m;
|
|
4740
|
+
}
|
|
4741
|
+
constructor(kwargs) {
|
|
4742
|
+
if (!kwargs) {
|
|
4743
|
+
return;
|
|
4744
|
+
}
|
|
4745
|
+
Object.assign(this, kwargs);
|
|
4746
|
+
}
|
|
4747
|
+
toApiJson() {
|
|
4748
|
+
const toReturn = {};
|
|
4749
|
+
if (typeof this.blogWebsiteDetails !== 'undefined' && this.blogWebsiteDetails !== null) {
|
|
4750
|
+
toReturn['blogWebsiteDetails'] = 'toApiJson' in this.blogWebsiteDetails ? this.blogWebsiteDetails.toApiJson() : this.blogWebsiteDetails;
|
|
4751
|
+
}
|
|
4752
|
+
return toReturn;
|
|
4753
|
+
}
|
|
4754
|
+
}
|
|
4755
|
+
|
|
4756
|
+
function enumStringToValue$e(enumRef, value) {
|
|
4389
4757
|
if (typeof value === 'number') {
|
|
4390
4758
|
return value;
|
|
4391
4759
|
}
|
|
@@ -4435,7 +4803,7 @@ class MCPOptions {
|
|
|
4435
4803
|
}
|
|
4436
4804
|
}
|
|
4437
4805
|
|
|
4438
|
-
function enumStringToValue$
|
|
4806
|
+
function enumStringToValue$d(enumRef, value) {
|
|
4439
4807
|
if (typeof value === 'number') {
|
|
4440
4808
|
return value;
|
|
4441
4809
|
}
|
|
@@ -4670,7 +5038,7 @@ class SocialPostV2 {
|
|
|
4670
5038
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
4671
5039
|
}
|
|
4672
5040
|
if (proto.postType) {
|
|
4673
|
-
m.postType = enumStringToValue$
|
|
5041
|
+
m.postType = enumStringToValue$d(PostTypeV2, proto.postType);
|
|
4674
5042
|
}
|
|
4675
5043
|
if (proto.metadata) {
|
|
4676
5044
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -4779,7 +5147,7 @@ class YoutubeCustomizationV2 {
|
|
|
4779
5147
|
let m = new YoutubeCustomizationV2();
|
|
4780
5148
|
m = Object.assign(m, proto);
|
|
4781
5149
|
if (proto.privacyStatus) {
|
|
4782
|
-
m.privacyStatus = enumStringToValue$
|
|
5150
|
+
m.privacyStatus = enumStringToValue$d(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
4783
5151
|
}
|
|
4784
5152
|
return m;
|
|
4785
5153
|
}
|
|
@@ -4798,7 +5166,7 @@ class YoutubeCustomizationV2 {
|
|
|
4798
5166
|
}
|
|
4799
5167
|
}
|
|
4800
5168
|
|
|
4801
|
-
function enumStringToValue$
|
|
5169
|
+
function enumStringToValue$c(enumRef, value) {
|
|
4802
5170
|
if (typeof value === 'number') {
|
|
4803
5171
|
return value;
|
|
4804
5172
|
}
|
|
@@ -4809,7 +5177,7 @@ class Media {
|
|
|
4809
5177
|
let m = new Media();
|
|
4810
5178
|
m = Object.assign(m, proto);
|
|
4811
5179
|
if (proto.mediaType) {
|
|
4812
|
-
m.mediaType = enumStringToValue$
|
|
5180
|
+
m.mediaType = enumStringToValue$c(MediaType, proto.mediaType);
|
|
4813
5181
|
}
|
|
4814
5182
|
return m;
|
|
4815
5183
|
}
|
|
@@ -4831,7 +5199,7 @@ class Media {
|
|
|
4831
5199
|
}
|
|
4832
5200
|
}
|
|
4833
5201
|
|
|
4834
|
-
function enumStringToValue$
|
|
5202
|
+
function enumStringToValue$b(enumRef, value) {
|
|
4835
5203
|
if (typeof value === 'number') {
|
|
4836
5204
|
return value;
|
|
4837
5205
|
}
|
|
@@ -5366,7 +5734,49 @@ class UserLink {
|
|
|
5366
5734
|
}
|
|
5367
5735
|
}
|
|
5368
5736
|
|
|
5369
|
-
function enumStringToValue$
|
|
5737
|
+
function enumStringToValue$a(enumRef, value) {
|
|
5738
|
+
if (typeof value === 'number') {
|
|
5739
|
+
return value;
|
|
5740
|
+
}
|
|
5741
|
+
return enumRef[value];
|
|
5742
|
+
}
|
|
5743
|
+
class ProvisionRequest {
|
|
5744
|
+
static fromProto(proto) {
|
|
5745
|
+
let m = new ProvisionRequest();
|
|
5746
|
+
m = Object.assign(m, proto);
|
|
5747
|
+
if (proto.action) {
|
|
5748
|
+
m.action = enumStringToValue$a(ProvisionAction, proto.action);
|
|
5749
|
+
}
|
|
5750
|
+
return m;
|
|
5751
|
+
}
|
|
5752
|
+
constructor(kwargs) {
|
|
5753
|
+
if (!kwargs) {
|
|
5754
|
+
return;
|
|
5755
|
+
}
|
|
5756
|
+
Object.assign(this, kwargs);
|
|
5757
|
+
}
|
|
5758
|
+
toApiJson() {
|
|
5759
|
+
const toReturn = {};
|
|
5760
|
+
if (typeof this.action !== 'undefined') {
|
|
5761
|
+
toReturn['action'] = this.action;
|
|
5762
|
+
}
|
|
5763
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
5764
|
+
toReturn['partnerId'] = this.partnerId;
|
|
5765
|
+
}
|
|
5766
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5767
|
+
toReturn['businessId'] = this.businessId;
|
|
5768
|
+
}
|
|
5769
|
+
if (typeof this.activationId !== 'undefined') {
|
|
5770
|
+
toReturn['activationId'] = this.activationId;
|
|
5771
|
+
}
|
|
5772
|
+
if (typeof this.editionId !== 'undefined') {
|
|
5773
|
+
toReturn['editionId'] = this.editionId;
|
|
5774
|
+
}
|
|
5775
|
+
return toReturn;
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5779
|
+
function enumStringToValue$9(enumRef, value) {
|
|
5370
5780
|
if (typeof value === 'number') {
|
|
5371
5781
|
return value;
|
|
5372
5782
|
}
|
|
@@ -5415,7 +5825,7 @@ class BlogPostCampaign {
|
|
|
5415
5825
|
let m = new BlogPostCampaign();
|
|
5416
5826
|
m = Object.assign(m, proto);
|
|
5417
5827
|
if (proto.blogPostType) {
|
|
5418
|
-
m.blogPostType = enumStringToValue$
|
|
5828
|
+
m.blogPostType = enumStringToValue$9(PostCategory, proto.blogPostType);
|
|
5419
5829
|
}
|
|
5420
5830
|
return m;
|
|
5421
5831
|
}
|
|
@@ -5697,10 +6107,10 @@ class GenerateAiRequest {
|
|
|
5697
6107
|
let m = new GenerateAiRequest();
|
|
5698
6108
|
m = Object.assign(m, proto);
|
|
5699
6109
|
if (proto.length) {
|
|
5700
|
-
m.length = enumStringToValue$
|
|
6110
|
+
m.length = enumStringToValue$9(ContentLength, proto.length);
|
|
5701
6111
|
}
|
|
5702
6112
|
if (proto.generateType) {
|
|
5703
|
-
m.generateType = enumStringToValue$
|
|
6113
|
+
m.generateType = enumStringToValue$9(GenerateType, proto.generateType);
|
|
5704
6114
|
}
|
|
5705
6115
|
if (proto.metadata) {
|
|
5706
6116
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -5773,7 +6183,7 @@ class GenerateBlogPostCampaignRequest {
|
|
|
5773
6183
|
let m = new GenerateBlogPostCampaignRequest();
|
|
5774
6184
|
m = Object.assign(m, proto);
|
|
5775
6185
|
if (proto.networkType) {
|
|
5776
|
-
m.networkType = proto.networkType.map((v) => enumStringToValue$
|
|
6186
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
|
|
5777
6187
|
}
|
|
5778
6188
|
if (proto.blogCampaign) {
|
|
5779
6189
|
m.blogCampaign = BlogPostCampaign.fromProto(proto.blogCampaign);
|
|
@@ -5866,7 +6276,7 @@ class GeneratePostCampaignRequest {
|
|
|
5866
6276
|
let m = new GeneratePostCampaignRequest();
|
|
5867
6277
|
m = Object.assign(m, proto);
|
|
5868
6278
|
if (proto.networkType) {
|
|
5869
|
-
m.networkType = proto.networkType.map((v) => enumStringToValue$
|
|
6279
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
|
|
5870
6280
|
}
|
|
5871
6281
|
if (proto.postGeneration) {
|
|
5872
6282
|
m.postGeneration = PostsGeneration.fromProto(proto.postGeneration);
|
|
@@ -6207,7 +6617,7 @@ class KeywordGeneration {
|
|
|
6207
6617
|
let m = new KeywordGeneration();
|
|
6208
6618
|
m = Object.assign(m, proto);
|
|
6209
6619
|
if (proto.postType) {
|
|
6210
|
-
m.postType = enumStringToValue$
|
|
6620
|
+
m.postType = enumStringToValue$9(PostCategory, proto.postType);
|
|
6211
6621
|
}
|
|
6212
6622
|
return m;
|
|
6213
6623
|
}
|
|
@@ -6572,7 +6982,7 @@ class PostContent {
|
|
|
6572
6982
|
let m = new PostContent();
|
|
6573
6983
|
m = Object.assign(m, proto);
|
|
6574
6984
|
if (proto.socialNetwork) {
|
|
6575
|
-
m.socialNetwork = enumStringToValue$
|
|
6985
|
+
m.socialNetwork = enumStringToValue$9(Network, proto.socialNetwork);
|
|
6576
6986
|
}
|
|
6577
6987
|
return m;
|
|
6578
6988
|
}
|
|
@@ -6598,10 +7008,10 @@ class PostsGeneration {
|
|
|
6598
7008
|
let m = new PostsGeneration();
|
|
6599
7009
|
m = Object.assign(m, proto);
|
|
6600
7010
|
if (proto.tone) {
|
|
6601
|
-
m.tone = enumStringToValue$
|
|
7011
|
+
m.tone = enumStringToValue$9(Tone, proto.tone);
|
|
6602
7012
|
}
|
|
6603
7013
|
if (proto.contentLength) {
|
|
6604
|
-
m.contentLength = enumStringToValue$
|
|
7014
|
+
m.contentLength = enumStringToValue$9(ContentLength, proto.contentLength);
|
|
6605
7015
|
}
|
|
6606
7016
|
return m;
|
|
6607
7017
|
}
|
|
@@ -6688,7 +7098,7 @@ class SocialPostOutput {
|
|
|
6688
7098
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
6689
7099
|
}
|
|
6690
7100
|
if (proto.status) {
|
|
6691
|
-
m.status = enumStringToValue$
|
|
7101
|
+
m.status = enumStringToValue$9(PostStatusV2, proto.status);
|
|
6692
7102
|
}
|
|
6693
7103
|
return m;
|
|
6694
7104
|
}
|
|
@@ -6997,7 +7407,7 @@ class UploadToStorageRequest {
|
|
|
6997
7407
|
let m = new UploadToStorageRequest();
|
|
6998
7408
|
m = Object.assign(m, proto);
|
|
6999
7409
|
if (proto.mediaType) {
|
|
7000
|
-
m.mediaType = enumStringToValue$
|
|
7410
|
+
m.mediaType = enumStringToValue$9(MediaType, proto.mediaType);
|
|
7001
7411
|
}
|
|
7002
7412
|
return m;
|
|
7003
7413
|
}
|
|
@@ -7065,7 +7475,7 @@ class UploadedMedia {
|
|
|
7065
7475
|
}
|
|
7066
7476
|
}
|
|
7067
7477
|
|
|
7068
|
-
function enumStringToValue$
|
|
7478
|
+
function enumStringToValue$8(enumRef, value) {
|
|
7069
7479
|
if (typeof value === 'number') {
|
|
7070
7480
|
return value;
|
|
7071
7481
|
}
|
|
@@ -7076,7 +7486,7 @@ class Action {
|
|
|
7076
7486
|
let m = new Action();
|
|
7077
7487
|
m = Object.assign(m, proto);
|
|
7078
7488
|
if (proto.actionType) {
|
|
7079
|
-
m.actionType = enumStringToValue$
|
|
7489
|
+
m.actionType = enumStringToValue$8(ActionType, proto.actionType);
|
|
7080
7490
|
}
|
|
7081
7491
|
return m;
|
|
7082
7492
|
}
|
|
@@ -7216,7 +7626,7 @@ class StartChatResponse {
|
|
|
7216
7626
|
}
|
|
7217
7627
|
}
|
|
7218
7628
|
|
|
7219
|
-
function enumStringToValue$
|
|
7629
|
+
function enumStringToValue$7(enumRef, value) {
|
|
7220
7630
|
if (typeof value === 'number') {
|
|
7221
7631
|
return value;
|
|
7222
7632
|
}
|
|
@@ -7227,7 +7637,7 @@ class ChatMessage {
|
|
|
7227
7637
|
let m = new ChatMessage();
|
|
7228
7638
|
m = Object.assign(m, proto);
|
|
7229
7639
|
if (proto.role) {
|
|
7230
|
-
m.role = enumStringToValue$
|
|
7640
|
+
m.role = enumStringToValue$7(Role, proto.role);
|
|
7231
7641
|
}
|
|
7232
7642
|
return m;
|
|
7233
7643
|
}
|
|
@@ -7307,7 +7717,7 @@ class SendMessageV2Response {
|
|
|
7307
7717
|
}
|
|
7308
7718
|
}
|
|
7309
7719
|
|
|
7310
|
-
function enumStringToValue$
|
|
7720
|
+
function enumStringToValue$6(enumRef, value) {
|
|
7311
7721
|
if (typeof value === 'number') {
|
|
7312
7722
|
return value;
|
|
7313
7723
|
}
|
|
@@ -7599,7 +8009,7 @@ class UpdateBlogConnectionRequest {
|
|
|
7599
8009
|
}
|
|
7600
8010
|
}
|
|
7601
8011
|
|
|
7602
|
-
function enumStringToValue$
|
|
8012
|
+
function enumStringToValue$5(enumRef, value) {
|
|
7603
8013
|
if (typeof value === 'number') {
|
|
7604
8014
|
return value;
|
|
7605
8015
|
}
|
|
@@ -8220,7 +8630,7 @@ class UpdateBlogPostRequest {
|
|
|
8220
8630
|
}
|
|
8221
8631
|
}
|
|
8222
8632
|
|
|
8223
|
-
function enumStringToValue(enumRef, value) {
|
|
8633
|
+
function enumStringToValue$4(enumRef, value) {
|
|
8224
8634
|
if (typeof value === 'number') {
|
|
8225
8635
|
return value;
|
|
8226
8636
|
}
|
|
@@ -8421,7 +8831,7 @@ class UpdateCampaignIdRequest {
|
|
|
8421
8831
|
let m = new UpdateCampaignIdRequest();
|
|
8422
8832
|
m = Object.assign(m, proto);
|
|
8423
8833
|
if (proto.type) {
|
|
8424
|
-
m.type = enumStringToValue(PostCategory, proto.type);
|
|
8834
|
+
m.type = enumStringToValue$4(PostCategory, proto.type);
|
|
8425
8835
|
}
|
|
8426
8836
|
return m;
|
|
8427
8837
|
}
|
|
@@ -8478,162 +8888,1767 @@ class UpdateCampaignRequest {
|
|
|
8478
8888
|
}
|
|
8479
8889
|
}
|
|
8480
8890
|
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
//
|
|
8485
|
-
// Objects Index.
|
|
8486
|
-
// *********************************
|
|
8487
|
-
|
|
8488
|
-
var _a;
|
|
8489
|
-
const environment = (_a = (window ? window['environment'] : 'prod')) !== null && _a !== void 0 ? _a : 'prod';
|
|
8490
|
-
const hostMap = {
|
|
8491
|
-
'local': 'social-post.vendasta-local.com',
|
|
8492
|
-
'test': '',
|
|
8493
|
-
'demo': 'social-posts-demo.apigateway.co',
|
|
8494
|
-
'prod': 'social-posts-prod.apigateway.co',
|
|
8495
|
-
'production': 'social-posts-prod.apigateway.co',
|
|
8496
|
-
};
|
|
8497
|
-
class HostService {
|
|
8498
|
-
get host() {
|
|
8499
|
-
return hostMap[environment.toLowerCase()];
|
|
8500
|
-
}
|
|
8501
|
-
get hostWithScheme() {
|
|
8502
|
-
return 'https://' + this.host;
|
|
8891
|
+
function enumStringToValue$3(enumRef, value) {
|
|
8892
|
+
if (typeof value === 'number') {
|
|
8893
|
+
return value;
|
|
8503
8894
|
}
|
|
8895
|
+
return enumRef[value];
|
|
8504
8896
|
}
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
}] });
|
|
8511
|
-
|
|
8512
|
-
// *********************************
|
|
8513
|
-
// Code generated by sdkgen
|
|
8514
|
-
// DO NOT EDIT!.
|
|
8515
|
-
//
|
|
8516
|
-
// API Service.
|
|
8517
|
-
// *********************************
|
|
8518
|
-
class SocialPostsApiService {
|
|
8519
|
-
constructor() {
|
|
8520
|
-
this.hostService = inject(HostService);
|
|
8521
|
-
this.http = inject(HttpClient);
|
|
8522
|
-
this._host = this.hostService.hostWithScheme;
|
|
8523
|
-
}
|
|
8524
|
-
apiOptions() {
|
|
8525
|
-
return {
|
|
8526
|
-
headers: new HttpHeaders({
|
|
8527
|
-
'Content-Type': 'application/json'
|
|
8528
|
-
}),
|
|
8529
|
-
withCredentials: true
|
|
8530
|
-
};
|
|
8531
|
-
}
|
|
8532
|
-
list(r) {
|
|
8533
|
-
const request = (r.toApiJson) ? r : new ListSocialPostsRequest(r);
|
|
8534
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/List", request.toApiJson(), this.apiOptions())
|
|
8535
|
-
.pipe(map(resp => ListSocialPostsResponse.fromProto(resp)));
|
|
8536
|
-
}
|
|
8537
|
-
deleteSocialPost(r) {
|
|
8538
|
-
const request = (r.toApiJson) ? r : new DeleteSocialPostRequest(r);
|
|
8539
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/DeleteSocialPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
8540
|
-
}
|
|
8541
|
-
scheduleToAllPages(r) {
|
|
8542
|
-
const request = (r.toApiJson) ? r : new ScheduleToAllPagesRequest(r);
|
|
8543
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/ScheduleToAllPages", request.toApiJson(), this.apiOptions())
|
|
8544
|
-
.pipe(map(resp => ScheduleToAllPagesResponse.fromProto(resp)));
|
|
8545
|
-
}
|
|
8546
|
-
schedule(r) {
|
|
8547
|
-
const request = (r.toApiJson) ? r : new SchedulePostRequest(r);
|
|
8548
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/Schedule", request.toApiJson(), this.apiOptions())
|
|
8549
|
-
.pipe(map(resp => SchedulePostResponse.fromProto(resp)));
|
|
8550
|
-
}
|
|
8551
|
-
getMultiSocialPosts(r) {
|
|
8552
|
-
const request = (r.toApiJson) ? r : new GetMultiSocialPostsRequest(r);
|
|
8553
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPosts", request.toApiJson(), this.apiOptions())
|
|
8554
|
-
.pipe(map(resp => GetMultiSocialPostsResponse.fromProto(resp)));
|
|
8555
|
-
}
|
|
8556
|
-
getMultiSocialPostStats(r) {
|
|
8557
|
-
const request = (r.toApiJson) ? r : new GetMultiSocialPostStatsRequest(r);
|
|
8558
|
-
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPostStats", request.toApiJson(), this.apiOptions())
|
|
8559
|
-
.pipe(map(resp => GetMultiSocialPostStatsResponse.fromProto(resp)));
|
|
8897
|
+
class CampaignCustomization {
|
|
8898
|
+
static fromProto(proto) {
|
|
8899
|
+
let m = new CampaignCustomization();
|
|
8900
|
+
m = Object.assign(m, proto);
|
|
8901
|
+
return m;
|
|
8560
8902
|
}
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8903
|
+
constructor(kwargs) {
|
|
8904
|
+
if (!kwargs) {
|
|
8905
|
+
return;
|
|
8906
|
+
}
|
|
8907
|
+
Object.assign(this, kwargs);
|
|
8565
8908
|
}
|
|
8566
|
-
|
|
8567
|
-
const
|
|
8568
|
-
|
|
8569
|
-
|
|
8909
|
+
toApiJson() {
|
|
8910
|
+
const toReturn = {};
|
|
8911
|
+
if (typeof this.id !== 'undefined') {
|
|
8912
|
+
toReturn['id'] = this.id;
|
|
8913
|
+
}
|
|
8914
|
+
if (typeof this.name !== 'undefined') {
|
|
8915
|
+
toReturn['name'] = this.name;
|
|
8916
|
+
}
|
|
8917
|
+
if (typeof this.shortCode !== 'undefined') {
|
|
8918
|
+
toReturn['shortCode'] = this.shortCode;
|
|
8919
|
+
}
|
|
8920
|
+
return toReturn;
|
|
8570
8921
|
}
|
|
8571
8922
|
}
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
class SocialPostsService {
|
|
8580
|
-
constructor(socialPostsApiService) {
|
|
8581
|
-
this.socialPostsApiService = socialPostsApiService;
|
|
8582
|
-
}
|
|
8583
|
-
list(start, end, socialServiceIds, businessId, partnerId, cursor, tags, pageSize) {
|
|
8584
|
-
const req = new ListSocialPostsRequest({
|
|
8585
|
-
start: start,
|
|
8586
|
-
end: end,
|
|
8587
|
-
businessId: businessId,
|
|
8588
|
-
partnerId: partnerId,
|
|
8589
|
-
cursor: cursor,
|
|
8590
|
-
socialServiceIds: socialServiceIds,
|
|
8591
|
-
tags: tags,
|
|
8592
|
-
pageSize: pageSize,
|
|
8593
|
-
});
|
|
8594
|
-
return this.socialPostsApiService.list(req);
|
|
8595
|
-
}
|
|
8596
|
-
getMultiSocialPosts(businessId, internalPostIds) {
|
|
8597
|
-
if (!internalPostIds || internalPostIds.length === 0) {
|
|
8598
|
-
const res = new GetMultiSocialPostsResponse();
|
|
8599
|
-
return of(res);
|
|
8923
|
+
class Categories {
|
|
8924
|
+
static fromProto(proto) {
|
|
8925
|
+
let m = new Categories();
|
|
8926
|
+
m = Object.assign(m, proto);
|
|
8927
|
+
if (proto.id) {
|
|
8928
|
+
m.id = parseInt(proto.id, 10);
|
|
8600
8929
|
}
|
|
8601
|
-
|
|
8602
|
-
return this.socialPostsApiService.getMultiSocialPosts(req);
|
|
8603
|
-
}
|
|
8604
|
-
getScheduledPostCount(partnerId, businessId, socialServiceIds) {
|
|
8605
|
-
const req = new GetScheduledPostCountRequest({ partnerId: partnerId, businessId: businessId, socialServiceIds: socialServiceIds });
|
|
8606
|
-
return this.socialPostsApiService.getScheduledPostCount(req);
|
|
8607
|
-
}
|
|
8608
|
-
suggestMessage(businessId, prompt, postLength, templateType, metadata) {
|
|
8609
|
-
const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt, length: postLength, type: templateType, metadata: metadata });
|
|
8610
|
-
return this.socialPostsApiService.suggestMessage(req);
|
|
8930
|
+
return m;
|
|
8611
8931
|
}
|
|
8612
|
-
|
|
8613
|
-
|
|
8932
|
+
constructor(kwargs) {
|
|
8933
|
+
if (!kwargs) {
|
|
8934
|
+
return;
|
|
8935
|
+
}
|
|
8936
|
+
Object.assign(this, kwargs);
|
|
8614
8937
|
}
|
|
8615
|
-
|
|
8616
|
-
|
|
8938
|
+
toApiJson() {
|
|
8939
|
+
const toReturn = {};
|
|
8940
|
+
if (typeof this.id !== 'undefined') {
|
|
8941
|
+
toReturn['id'] = this.id;
|
|
8942
|
+
}
|
|
8943
|
+
if (typeof this.name !== 'undefined') {
|
|
8944
|
+
toReturn['name'] = this.name;
|
|
8945
|
+
}
|
|
8946
|
+
return toReturn;
|
|
8617
8947
|
}
|
|
8618
8948
|
}
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8949
|
+
class Draft {
|
|
8950
|
+
static fromProto(proto) {
|
|
8951
|
+
let m = new Draft();
|
|
8952
|
+
m = Object.assign(m, proto);
|
|
8953
|
+
if (proto.created) {
|
|
8954
|
+
m.created = new Date(proto.created);
|
|
8955
|
+
}
|
|
8956
|
+
if (proto.updated) {
|
|
8957
|
+
m.updated = new Date(proto.updated);
|
|
8958
|
+
}
|
|
8959
|
+
if (proto.postDateTime) {
|
|
8960
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
8961
|
+
}
|
|
8962
|
+
if (proto.gmbPostCustomization) {
|
|
8963
|
+
m.gmbPostCustomization = GMBPostCustomization.fromProto(proto.gmbPostCustomization);
|
|
8964
|
+
}
|
|
8965
|
+
if (proto.media) {
|
|
8966
|
+
m.media = proto.media.map(DraftMedia.fromProto);
|
|
8967
|
+
}
|
|
8968
|
+
if (proto.draftType) {
|
|
8969
|
+
m.draftType = enumStringToValue$3(DraftType, proto.draftType);
|
|
8970
|
+
}
|
|
8971
|
+
if (proto.metadata) {
|
|
8972
|
+
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
8973
|
+
}
|
|
8974
|
+
if (proto.youtubeCustomization) {
|
|
8975
|
+
m.youtubeCustomization = DraftYoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
8976
|
+
}
|
|
8977
|
+
if (proto.ssidDraftTypes) {
|
|
8978
|
+
m.ssidDraftTypes = proto.ssidDraftTypes.map(SSIDDraftType.fromProto);
|
|
8979
|
+
}
|
|
8980
|
+
if (proto.tiktokCustomization) {
|
|
8981
|
+
m.tiktokCustomization = DraftTikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
8982
|
+
}
|
|
8983
|
+
if (proto.blogPostCustomization) {
|
|
8984
|
+
m.blogPostCustomization = DraftBlogPostCustomization.fromProto(proto.blogPostCustomization);
|
|
8985
|
+
}
|
|
8986
|
+
if (proto.campaignCustomization) {
|
|
8987
|
+
m.campaignCustomization = CampaignCustomization.fromProto(proto.campaignCustomization);
|
|
8988
|
+
}
|
|
8989
|
+
return m;
|
|
8990
|
+
}
|
|
8991
|
+
constructor(kwargs) {
|
|
8992
|
+
if (!kwargs) {
|
|
8993
|
+
return;
|
|
8994
|
+
}
|
|
8995
|
+
Object.assign(this, kwargs);
|
|
8996
|
+
}
|
|
8997
|
+
toApiJson() {
|
|
8998
|
+
const toReturn = {};
|
|
8999
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9000
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9001
|
+
}
|
|
9002
|
+
if (typeof this.draftId !== 'undefined') {
|
|
9003
|
+
toReturn['draftId'] = this.draftId;
|
|
9004
|
+
}
|
|
9005
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
9006
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
9007
|
+
}
|
|
9008
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
9009
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
9010
|
+
}
|
|
9011
|
+
if (typeof this.draftText !== 'undefined') {
|
|
9012
|
+
toReturn['draftText'] = this.draftText;
|
|
9013
|
+
}
|
|
9014
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
9015
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
9016
|
+
}
|
|
9017
|
+
if (typeof this.gmbPostCustomization !== 'undefined' && this.gmbPostCustomization !== null) {
|
|
9018
|
+
toReturn['gmbPostCustomization'] = 'toApiJson' in this.gmbPostCustomization ? this.gmbPostCustomization.toApiJson() : this.gmbPostCustomization;
|
|
9019
|
+
}
|
|
9020
|
+
if (typeof this.previews !== 'undefined') {
|
|
9021
|
+
toReturn['previews'] = this.previews;
|
|
9022
|
+
}
|
|
9023
|
+
if (typeof this.options !== 'undefined') {
|
|
9024
|
+
toReturn['options'] = this.options;
|
|
9025
|
+
}
|
|
9026
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
9027
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
9028
|
+
}
|
|
9029
|
+
if (typeof this.ssids !== 'undefined') {
|
|
9030
|
+
toReturn['ssids'] = this.ssids;
|
|
9031
|
+
}
|
|
9032
|
+
if (typeof this.draftType !== 'undefined') {
|
|
9033
|
+
toReturn['draftType'] = this.draftType;
|
|
9034
|
+
}
|
|
9035
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
9036
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
9037
|
+
}
|
|
9038
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
9039
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
9040
|
+
}
|
|
9041
|
+
if (typeof this.ssidDraftTypes !== 'undefined' && this.ssidDraftTypes !== null) {
|
|
9042
|
+
toReturn['ssidDraftTypes'] = 'toApiJson' in this.ssidDraftTypes ? this.ssidDraftTypes.toApiJson() : this.ssidDraftTypes;
|
|
9043
|
+
}
|
|
9044
|
+
if (typeof this.isHidden !== 'undefined') {
|
|
9045
|
+
toReturn['isHidden'] = this.isHidden;
|
|
9046
|
+
}
|
|
9047
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
9048
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
9049
|
+
}
|
|
9050
|
+
if (typeof this.blogPostCustomization !== 'undefined' && this.blogPostCustomization !== null) {
|
|
9051
|
+
toReturn['blogPostCustomization'] = 'toApiJson' in this.blogPostCustomization ? this.blogPostCustomization.toApiJson() : this.blogPostCustomization;
|
|
9052
|
+
}
|
|
9053
|
+
if (typeof this.campaignCustomization !== 'undefined' && this.campaignCustomization !== null) {
|
|
9054
|
+
toReturn['campaignCustomization'] = 'toApiJson' in this.campaignCustomization ? this.campaignCustomization.toApiJson() : this.campaignCustomization;
|
|
9055
|
+
}
|
|
9056
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9057
|
+
toReturn['brandId'] = this.brandId;
|
|
9058
|
+
}
|
|
9059
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9060
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9061
|
+
}
|
|
9062
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9063
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9064
|
+
}
|
|
9065
|
+
return toReturn;
|
|
9066
|
+
}
|
|
9067
|
+
}
|
|
9068
|
+
class DraftAuthor {
|
|
9069
|
+
static fromProto(proto) {
|
|
9070
|
+
let m = new DraftAuthor();
|
|
9071
|
+
m = Object.assign(m, proto);
|
|
9072
|
+
if (proto.id) {
|
|
9073
|
+
m.id = parseInt(proto.id, 10);
|
|
9074
|
+
}
|
|
9075
|
+
return m;
|
|
9076
|
+
}
|
|
9077
|
+
constructor(kwargs) {
|
|
9078
|
+
if (!kwargs) {
|
|
9079
|
+
return;
|
|
9080
|
+
}
|
|
9081
|
+
Object.assign(this, kwargs);
|
|
9082
|
+
}
|
|
9083
|
+
toApiJson() {
|
|
9084
|
+
const toReturn = {};
|
|
9085
|
+
if (typeof this.id !== 'undefined') {
|
|
9086
|
+
toReturn['id'] = this.id;
|
|
9087
|
+
}
|
|
9088
|
+
if (typeof this.name !== 'undefined') {
|
|
9089
|
+
toReturn['name'] = this.name;
|
|
9090
|
+
}
|
|
9091
|
+
return toReturn;
|
|
9092
|
+
}
|
|
9093
|
+
}
|
|
9094
|
+
class DraftBlogPostCustomization {
|
|
9095
|
+
static fromProto(proto) {
|
|
9096
|
+
let m = new DraftBlogPostCustomization();
|
|
9097
|
+
m = Object.assign(m, proto);
|
|
9098
|
+
if (proto.author) {
|
|
9099
|
+
m.author = DraftAuthor.fromProto(proto.author);
|
|
9100
|
+
}
|
|
9101
|
+
if (proto.categories) {
|
|
9102
|
+
m.categories = proto.categories.map(Categories.fromProto);
|
|
9103
|
+
}
|
|
9104
|
+
return m;
|
|
9105
|
+
}
|
|
9106
|
+
constructor(kwargs) {
|
|
9107
|
+
if (!kwargs) {
|
|
9108
|
+
return;
|
|
9109
|
+
}
|
|
9110
|
+
Object.assign(this, kwargs);
|
|
9111
|
+
}
|
|
9112
|
+
toApiJson() {
|
|
9113
|
+
const toReturn = {};
|
|
9114
|
+
if (typeof this.title !== 'undefined') {
|
|
9115
|
+
toReturn['title'] = this.title;
|
|
9116
|
+
}
|
|
9117
|
+
if (typeof this.author !== 'undefined' && this.author !== null) {
|
|
9118
|
+
toReturn['author'] = 'toApiJson' in this.author ? this.author.toApiJson() : this.author;
|
|
9119
|
+
}
|
|
9120
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
9121
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
9122
|
+
}
|
|
9123
|
+
if (typeof this.tags !== 'undefined') {
|
|
9124
|
+
toReturn['tags'] = this.tags;
|
|
9125
|
+
}
|
|
9126
|
+
if (typeof this.siteType !== 'undefined') {
|
|
9127
|
+
toReturn['siteType'] = this.siteType;
|
|
9128
|
+
}
|
|
9129
|
+
return toReturn;
|
|
9130
|
+
}
|
|
9131
|
+
}
|
|
9132
|
+
class DraftMedia {
|
|
9133
|
+
static fromProto(proto) {
|
|
9134
|
+
let m = new DraftMedia();
|
|
9135
|
+
m = Object.assign(m, proto);
|
|
9136
|
+
if (proto.metaData) {
|
|
9137
|
+
m.metaData = proto.metaData.map(DraftMetaData.fromProto);
|
|
9138
|
+
}
|
|
9139
|
+
return m;
|
|
9140
|
+
}
|
|
9141
|
+
constructor(kwargs) {
|
|
9142
|
+
if (!kwargs) {
|
|
9143
|
+
return;
|
|
9144
|
+
}
|
|
9145
|
+
Object.assign(this, kwargs);
|
|
9146
|
+
}
|
|
9147
|
+
toApiJson() {
|
|
9148
|
+
const toReturn = {};
|
|
9149
|
+
if (typeof this.imageUrl !== 'undefined') {
|
|
9150
|
+
toReturn['imageUrl'] = this.imageUrl;
|
|
9151
|
+
}
|
|
9152
|
+
if (typeof this.videoUrl !== 'undefined') {
|
|
9153
|
+
toReturn['videoUrl'] = this.videoUrl;
|
|
9154
|
+
}
|
|
9155
|
+
if (typeof this.gifUrl !== 'undefined') {
|
|
9156
|
+
toReturn['gifUrl'] = this.gifUrl;
|
|
9157
|
+
}
|
|
9158
|
+
if (typeof this.mediaId !== 'undefined') {
|
|
9159
|
+
toReturn['mediaId'] = this.mediaId;
|
|
9160
|
+
}
|
|
9161
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
9162
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
9163
|
+
}
|
|
9164
|
+
return toReturn;
|
|
9165
|
+
}
|
|
9166
|
+
}
|
|
9167
|
+
class DraftMetaData {
|
|
9168
|
+
static fromProto(proto) {
|
|
9169
|
+
let m = new DraftMetaData();
|
|
9170
|
+
m = Object.assign(m, proto);
|
|
9171
|
+
return m;
|
|
9172
|
+
}
|
|
9173
|
+
constructor(kwargs) {
|
|
9174
|
+
if (!kwargs) {
|
|
9175
|
+
return;
|
|
9176
|
+
}
|
|
9177
|
+
Object.assign(this, kwargs);
|
|
9178
|
+
}
|
|
9179
|
+
toApiJson() {
|
|
9180
|
+
const toReturn = {};
|
|
9181
|
+
if (typeof this.propertyName !== 'undefined') {
|
|
9182
|
+
toReturn['propertyName'] = this.propertyName;
|
|
9183
|
+
}
|
|
9184
|
+
if (typeof this.propertyValue !== 'undefined') {
|
|
9185
|
+
toReturn['propertyValue'] = this.propertyValue;
|
|
9186
|
+
}
|
|
9187
|
+
return toReturn;
|
|
9188
|
+
}
|
|
9189
|
+
}
|
|
9190
|
+
class DraftTikTokCustomization {
|
|
9191
|
+
static fromProto(proto) {
|
|
9192
|
+
let m = new DraftTikTokCustomization();
|
|
9193
|
+
m = Object.assign(m, proto);
|
|
9194
|
+
return m;
|
|
9195
|
+
}
|
|
9196
|
+
constructor(kwargs) {
|
|
9197
|
+
if (!kwargs) {
|
|
9198
|
+
return;
|
|
9199
|
+
}
|
|
9200
|
+
Object.assign(this, kwargs);
|
|
9201
|
+
}
|
|
9202
|
+
toApiJson() {
|
|
9203
|
+
const toReturn = {};
|
|
9204
|
+
if (typeof this.allowComment !== 'undefined') {
|
|
9205
|
+
toReturn['allowComment'] = this.allowComment;
|
|
9206
|
+
}
|
|
9207
|
+
if (typeof this.allowDuet !== 'undefined') {
|
|
9208
|
+
toReturn['allowDuet'] = this.allowDuet;
|
|
9209
|
+
}
|
|
9210
|
+
if (typeof this.allowStitch !== 'undefined') {
|
|
9211
|
+
toReturn['allowStitch'] = this.allowStitch;
|
|
9212
|
+
}
|
|
9213
|
+
if (typeof this.isBrandOrganic !== 'undefined') {
|
|
9214
|
+
toReturn['isBrandOrganic'] = this.isBrandOrganic;
|
|
9215
|
+
}
|
|
9216
|
+
if (typeof this.isBrandedContent !== 'undefined') {
|
|
9217
|
+
toReturn['isBrandedContent'] = this.isBrandedContent;
|
|
9218
|
+
}
|
|
9219
|
+
return toReturn;
|
|
9220
|
+
}
|
|
9221
|
+
}
|
|
9222
|
+
class DraftYoutubeCustomization {
|
|
9223
|
+
static fromProto(proto) {
|
|
9224
|
+
let m = new DraftYoutubeCustomization();
|
|
9225
|
+
m = Object.assign(m, proto);
|
|
9226
|
+
if (proto.privacyStatus) {
|
|
9227
|
+
m.privacyStatus = enumStringToValue$3(DraftYoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
9228
|
+
}
|
|
9229
|
+
return m;
|
|
9230
|
+
}
|
|
9231
|
+
constructor(kwargs) {
|
|
9232
|
+
if (!kwargs) {
|
|
9233
|
+
return;
|
|
9234
|
+
}
|
|
9235
|
+
Object.assign(this, kwargs);
|
|
9236
|
+
}
|
|
9237
|
+
toApiJson() {
|
|
9238
|
+
const toReturn = {};
|
|
9239
|
+
if (typeof this.title !== 'undefined') {
|
|
9240
|
+
toReturn['title'] = this.title;
|
|
9241
|
+
}
|
|
9242
|
+
if (typeof this.privacyStatus !== 'undefined') {
|
|
9243
|
+
toReturn['privacyStatus'] = this.privacyStatus;
|
|
9244
|
+
}
|
|
9245
|
+
return toReturn;
|
|
9246
|
+
}
|
|
9247
|
+
}
|
|
9248
|
+
class GMBPostCustomization {
|
|
9249
|
+
static fromProto(proto) {
|
|
9250
|
+
let m = new GMBPostCustomization();
|
|
9251
|
+
m = Object.assign(m, proto);
|
|
9252
|
+
if (proto.eventStart) {
|
|
9253
|
+
m.eventStart = new Date(proto.eventStart);
|
|
9254
|
+
}
|
|
9255
|
+
if (proto.eventEnd) {
|
|
9256
|
+
m.eventEnd = new Date(proto.eventEnd);
|
|
9257
|
+
}
|
|
9258
|
+
return m;
|
|
9259
|
+
}
|
|
9260
|
+
constructor(kwargs) {
|
|
9261
|
+
if (!kwargs) {
|
|
9262
|
+
return;
|
|
9263
|
+
}
|
|
9264
|
+
Object.assign(this, kwargs);
|
|
9265
|
+
}
|
|
9266
|
+
toApiJson() {
|
|
9267
|
+
const toReturn = {};
|
|
9268
|
+
if (typeof this.title !== 'undefined') {
|
|
9269
|
+
toReturn['title'] = this.title;
|
|
9270
|
+
}
|
|
9271
|
+
if (typeof this.eventStart !== 'undefined' && this.eventStart !== null) {
|
|
9272
|
+
toReturn['eventStart'] = 'toApiJson' in this.eventStart ? this.eventStart.toApiJson() : this.eventStart;
|
|
9273
|
+
}
|
|
9274
|
+
if (typeof this.eventEnd !== 'undefined' && this.eventEnd !== null) {
|
|
9275
|
+
toReturn['eventEnd'] = 'toApiJson' in this.eventEnd ? this.eventEnd.toApiJson() : this.eventEnd;
|
|
9276
|
+
}
|
|
9277
|
+
if (typeof this.ctaType !== 'undefined') {
|
|
9278
|
+
toReturn['ctaType'] = this.ctaType;
|
|
9279
|
+
}
|
|
9280
|
+
if (typeof this.linkUrl !== 'undefined') {
|
|
9281
|
+
toReturn['linkUrl'] = this.linkUrl;
|
|
9282
|
+
}
|
|
9283
|
+
return toReturn;
|
|
9284
|
+
}
|
|
9285
|
+
}
|
|
9286
|
+
class MlDraftPost {
|
|
9287
|
+
static fromProto(proto) {
|
|
9288
|
+
let m = new MlDraftPost();
|
|
9289
|
+
m = Object.assign(m, proto);
|
|
9290
|
+
return m;
|
|
9291
|
+
}
|
|
9292
|
+
constructor(kwargs) {
|
|
9293
|
+
if (!kwargs) {
|
|
9294
|
+
return;
|
|
9295
|
+
}
|
|
9296
|
+
Object.assign(this, kwargs);
|
|
9297
|
+
}
|
|
9298
|
+
toApiJson() {
|
|
9299
|
+
const toReturn = {};
|
|
9300
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9301
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9302
|
+
}
|
|
9303
|
+
if (typeof this.accountGroupIds !== 'undefined') {
|
|
9304
|
+
toReturn['accountGroupIds'] = this.accountGroupIds;
|
|
9305
|
+
}
|
|
9306
|
+
return toReturn;
|
|
9307
|
+
}
|
|
9308
|
+
}
|
|
9309
|
+
class SSIDDraftType {
|
|
9310
|
+
static fromProto(proto) {
|
|
9311
|
+
let m = new SSIDDraftType();
|
|
9312
|
+
m = Object.assign(m, proto);
|
|
9313
|
+
if (proto.draftType) {
|
|
9314
|
+
m.draftType = enumStringToValue$3(DraftType, proto.draftType);
|
|
9315
|
+
}
|
|
9316
|
+
return m;
|
|
9317
|
+
}
|
|
9318
|
+
constructor(kwargs) {
|
|
9319
|
+
if (!kwargs) {
|
|
9320
|
+
return;
|
|
9321
|
+
}
|
|
9322
|
+
Object.assign(this, kwargs);
|
|
9323
|
+
}
|
|
9324
|
+
toApiJson() {
|
|
9325
|
+
const toReturn = {};
|
|
9326
|
+
if (typeof this.ssid !== 'undefined') {
|
|
9327
|
+
toReturn['ssid'] = this.ssid;
|
|
9328
|
+
}
|
|
9329
|
+
if (typeof this.draftType !== 'undefined') {
|
|
9330
|
+
toReturn['draftType'] = this.draftType;
|
|
9331
|
+
}
|
|
9332
|
+
return toReturn;
|
|
9333
|
+
}
|
|
9334
|
+
}
|
|
9335
|
+
|
|
9336
|
+
function enumStringToValue$2(enumRef, value) {
|
|
9337
|
+
if (typeof value === 'number') {
|
|
9338
|
+
return value;
|
|
9339
|
+
}
|
|
9340
|
+
return enumRef[value];
|
|
9341
|
+
}
|
|
9342
|
+
class CreateDraftRequest {
|
|
9343
|
+
static fromProto(proto) {
|
|
9344
|
+
let m = new CreateDraftRequest();
|
|
9345
|
+
m = Object.assign(m, proto);
|
|
9346
|
+
if (proto.postDateTime) {
|
|
9347
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
9348
|
+
}
|
|
9349
|
+
if (proto.gmbPostCustomization) {
|
|
9350
|
+
m.gmbPostCustomization = GMBPostCustomization.fromProto(proto.gmbPostCustomization);
|
|
9351
|
+
}
|
|
9352
|
+
if (proto.media) {
|
|
9353
|
+
m.media = proto.media.map(DraftMedia.fromProto);
|
|
9354
|
+
}
|
|
9355
|
+
if (proto.draftType) {
|
|
9356
|
+
m.draftType = enumStringToValue$2(DraftType, proto.draftType);
|
|
9357
|
+
}
|
|
9358
|
+
if (proto.metadata) {
|
|
9359
|
+
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
9360
|
+
}
|
|
9361
|
+
if (proto.youtubeCustomization) {
|
|
9362
|
+
m.youtubeCustomization = DraftYoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
9363
|
+
}
|
|
9364
|
+
if (proto.ssidDraftTypes) {
|
|
9365
|
+
m.ssidDraftTypes = proto.ssidDraftTypes.map(SSIDDraftType.fromProto);
|
|
9366
|
+
}
|
|
9367
|
+
if (proto.tiktokCustomization) {
|
|
9368
|
+
m.tiktokCustomization = DraftTikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
9369
|
+
}
|
|
9370
|
+
if (proto.blogPostCustomization) {
|
|
9371
|
+
m.blogPostCustomization = DraftBlogPostCustomization.fromProto(proto.blogPostCustomization);
|
|
9372
|
+
}
|
|
9373
|
+
if (proto.campaignCustomization) {
|
|
9374
|
+
m.campaignCustomization = CampaignCustomization.fromProto(proto.campaignCustomization);
|
|
9375
|
+
}
|
|
9376
|
+
return m;
|
|
9377
|
+
}
|
|
9378
|
+
constructor(kwargs) {
|
|
9379
|
+
if (!kwargs) {
|
|
9380
|
+
return;
|
|
9381
|
+
}
|
|
9382
|
+
Object.assign(this, kwargs);
|
|
9383
|
+
}
|
|
9384
|
+
toApiJson() {
|
|
9385
|
+
const toReturn = {};
|
|
9386
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9387
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9388
|
+
}
|
|
9389
|
+
if (typeof this.draftText !== 'undefined') {
|
|
9390
|
+
toReturn['draftText'] = this.draftText;
|
|
9391
|
+
}
|
|
9392
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
9393
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
9394
|
+
}
|
|
9395
|
+
if (typeof this.gmbPostCustomization !== 'undefined' && this.gmbPostCustomization !== null) {
|
|
9396
|
+
toReturn['gmbPostCustomization'] = 'toApiJson' in this.gmbPostCustomization ? this.gmbPostCustomization.toApiJson() : this.gmbPostCustomization;
|
|
9397
|
+
}
|
|
9398
|
+
if (typeof this.previews !== 'undefined') {
|
|
9399
|
+
toReturn['previews'] = this.previews;
|
|
9400
|
+
}
|
|
9401
|
+
if (typeof this.options !== 'undefined') {
|
|
9402
|
+
toReturn['options'] = this.options;
|
|
9403
|
+
}
|
|
9404
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
9405
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
9406
|
+
}
|
|
9407
|
+
if (typeof this.ssids !== 'undefined') {
|
|
9408
|
+
toReturn['ssids'] = this.ssids;
|
|
9409
|
+
}
|
|
9410
|
+
if (typeof this.draftType !== 'undefined') {
|
|
9411
|
+
toReturn['draftType'] = this.draftType;
|
|
9412
|
+
}
|
|
9413
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
9414
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
9415
|
+
}
|
|
9416
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
9417
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
9418
|
+
}
|
|
9419
|
+
if (typeof this.ssidDraftTypes !== 'undefined' && this.ssidDraftTypes !== null) {
|
|
9420
|
+
toReturn['ssidDraftTypes'] = 'toApiJson' in this.ssidDraftTypes ? this.ssidDraftTypes.toApiJson() : this.ssidDraftTypes;
|
|
9421
|
+
}
|
|
9422
|
+
if (typeof this.isHidden !== 'undefined') {
|
|
9423
|
+
toReturn['isHidden'] = this.isHidden;
|
|
9424
|
+
}
|
|
9425
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
9426
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
9427
|
+
}
|
|
9428
|
+
if (typeof this.blogPostCustomization !== 'undefined' && this.blogPostCustomization !== null) {
|
|
9429
|
+
toReturn['blogPostCustomization'] = 'toApiJson' in this.blogPostCustomization ? this.blogPostCustomization.toApiJson() : this.blogPostCustomization;
|
|
9430
|
+
}
|
|
9431
|
+
if (typeof this.campaignCustomization !== 'undefined' && this.campaignCustomization !== null) {
|
|
9432
|
+
toReturn['campaignCustomization'] = 'toApiJson' in this.campaignCustomization ? this.campaignCustomization.toApiJson() : this.campaignCustomization;
|
|
9433
|
+
}
|
|
9434
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9435
|
+
toReturn['brandId'] = this.brandId;
|
|
9436
|
+
}
|
|
9437
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9438
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9439
|
+
}
|
|
9440
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9441
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9442
|
+
}
|
|
9443
|
+
return toReturn;
|
|
9444
|
+
}
|
|
9445
|
+
}
|
|
9446
|
+
class CreateDraftResponse {
|
|
9447
|
+
static fromProto(proto) {
|
|
9448
|
+
let m = new CreateDraftResponse();
|
|
9449
|
+
m = Object.assign(m, proto);
|
|
9450
|
+
if (proto.draft) {
|
|
9451
|
+
m.draft = Draft.fromProto(proto.draft);
|
|
9452
|
+
}
|
|
9453
|
+
return m;
|
|
9454
|
+
}
|
|
9455
|
+
constructor(kwargs) {
|
|
9456
|
+
if (!kwargs) {
|
|
9457
|
+
return;
|
|
9458
|
+
}
|
|
9459
|
+
Object.assign(this, kwargs);
|
|
9460
|
+
}
|
|
9461
|
+
toApiJson() {
|
|
9462
|
+
const toReturn = {};
|
|
9463
|
+
if (typeof this.draft !== 'undefined' && this.draft !== null) {
|
|
9464
|
+
toReturn['draft'] = 'toApiJson' in this.draft ? this.draft.toApiJson() : this.draft;
|
|
9465
|
+
}
|
|
9466
|
+
return toReturn;
|
|
9467
|
+
}
|
|
9468
|
+
}
|
|
9469
|
+
class CreateMultiDraftsRequest {
|
|
9470
|
+
static fromProto(proto) {
|
|
9471
|
+
let m = new CreateMultiDraftsRequest();
|
|
9472
|
+
m = Object.assign(m, proto);
|
|
9473
|
+
if (proto.drafts) {
|
|
9474
|
+
m.drafts = proto.drafts.map(CreateDraftRequest.fromProto);
|
|
9475
|
+
}
|
|
9476
|
+
return m;
|
|
9477
|
+
}
|
|
9478
|
+
constructor(kwargs) {
|
|
9479
|
+
if (!kwargs) {
|
|
9480
|
+
return;
|
|
9481
|
+
}
|
|
9482
|
+
Object.assign(this, kwargs);
|
|
9483
|
+
}
|
|
9484
|
+
toApiJson() {
|
|
9485
|
+
const toReturn = {};
|
|
9486
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9487
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9488
|
+
}
|
|
9489
|
+
return toReturn;
|
|
9490
|
+
}
|
|
9491
|
+
}
|
|
9492
|
+
class CreateMultiDraftsResponse {
|
|
9493
|
+
static fromProto(proto) {
|
|
9494
|
+
let m = new CreateMultiDraftsResponse();
|
|
9495
|
+
m = Object.assign(m, proto);
|
|
9496
|
+
if (proto.drafts) {
|
|
9497
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9498
|
+
}
|
|
9499
|
+
return m;
|
|
9500
|
+
}
|
|
9501
|
+
constructor(kwargs) {
|
|
9502
|
+
if (!kwargs) {
|
|
9503
|
+
return;
|
|
9504
|
+
}
|
|
9505
|
+
Object.assign(this, kwargs);
|
|
9506
|
+
}
|
|
9507
|
+
toApiJson() {
|
|
9508
|
+
const toReturn = {};
|
|
9509
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9510
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9511
|
+
}
|
|
9512
|
+
return toReturn;
|
|
9513
|
+
}
|
|
9514
|
+
}
|
|
9515
|
+
class DeleteDraftRequest {
|
|
9516
|
+
static fromProto(proto) {
|
|
9517
|
+
let m = new DeleteDraftRequest();
|
|
9518
|
+
m = Object.assign(m, proto);
|
|
9519
|
+
return m;
|
|
9520
|
+
}
|
|
9521
|
+
constructor(kwargs) {
|
|
9522
|
+
if (!kwargs) {
|
|
9523
|
+
return;
|
|
9524
|
+
}
|
|
9525
|
+
Object.assign(this, kwargs);
|
|
9526
|
+
}
|
|
9527
|
+
toApiJson() {
|
|
9528
|
+
const toReturn = {};
|
|
9529
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9530
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9531
|
+
}
|
|
9532
|
+
if (typeof this.draftId !== 'undefined') {
|
|
9533
|
+
toReturn['draftId'] = this.draftId;
|
|
9534
|
+
}
|
|
9535
|
+
return toReturn;
|
|
9536
|
+
}
|
|
9537
|
+
}
|
|
9538
|
+
class GetDraftRequest {
|
|
9539
|
+
static fromProto(proto) {
|
|
9540
|
+
let m = new GetDraftRequest();
|
|
9541
|
+
m = Object.assign(m, proto);
|
|
9542
|
+
return m;
|
|
9543
|
+
}
|
|
9544
|
+
constructor(kwargs) {
|
|
9545
|
+
if (!kwargs) {
|
|
9546
|
+
return;
|
|
9547
|
+
}
|
|
9548
|
+
Object.assign(this, kwargs);
|
|
9549
|
+
}
|
|
9550
|
+
toApiJson() {
|
|
9551
|
+
const toReturn = {};
|
|
9552
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9553
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9554
|
+
}
|
|
9555
|
+
if (typeof this.draftId !== 'undefined') {
|
|
9556
|
+
toReturn['draftId'] = this.draftId;
|
|
9557
|
+
}
|
|
9558
|
+
return toReturn;
|
|
9559
|
+
}
|
|
9560
|
+
}
|
|
9561
|
+
class GetDraftResponse {
|
|
9562
|
+
static fromProto(proto) {
|
|
9563
|
+
let m = new GetDraftResponse();
|
|
9564
|
+
m = Object.assign(m, proto);
|
|
9565
|
+
if (proto.draft) {
|
|
9566
|
+
m.draft = Draft.fromProto(proto.draft);
|
|
9567
|
+
}
|
|
9568
|
+
return m;
|
|
9569
|
+
}
|
|
9570
|
+
constructor(kwargs) {
|
|
9571
|
+
if (!kwargs) {
|
|
9572
|
+
return;
|
|
9573
|
+
}
|
|
9574
|
+
Object.assign(this, kwargs);
|
|
9575
|
+
}
|
|
9576
|
+
toApiJson() {
|
|
9577
|
+
const toReturn = {};
|
|
9578
|
+
if (typeof this.draft !== 'undefined' && this.draft !== null) {
|
|
9579
|
+
toReturn['draft'] = 'toApiJson' in this.draft ? this.draft.toApiJson() : this.draft;
|
|
9580
|
+
}
|
|
9581
|
+
return toReturn;
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
class ListDraftsByNetworkIdentifierRequest {
|
|
9585
|
+
static fromProto(proto) {
|
|
9586
|
+
let m = new ListDraftsByNetworkIdentifierRequest();
|
|
9587
|
+
m = Object.assign(m, proto);
|
|
9588
|
+
if (proto.pageSize) {
|
|
9589
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
9590
|
+
}
|
|
9591
|
+
return m;
|
|
9592
|
+
}
|
|
9593
|
+
constructor(kwargs) {
|
|
9594
|
+
if (!kwargs) {
|
|
9595
|
+
return;
|
|
9596
|
+
}
|
|
9597
|
+
Object.assign(this, kwargs);
|
|
9598
|
+
}
|
|
9599
|
+
toApiJson() {
|
|
9600
|
+
const toReturn = {};
|
|
9601
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9602
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9603
|
+
}
|
|
9604
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9605
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9606
|
+
}
|
|
9607
|
+
if (typeof this.cursor !== 'undefined') {
|
|
9608
|
+
toReturn['cursor'] = this.cursor;
|
|
9609
|
+
}
|
|
9610
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
9611
|
+
toReturn['pageSize'] = this.pageSize;
|
|
9612
|
+
}
|
|
9613
|
+
return toReturn;
|
|
9614
|
+
}
|
|
9615
|
+
}
|
|
9616
|
+
class ListDraftsByNetworkIdentifierResponse {
|
|
9617
|
+
static fromProto(proto) {
|
|
9618
|
+
let m = new ListDraftsByNetworkIdentifierResponse();
|
|
9619
|
+
m = Object.assign(m, proto);
|
|
9620
|
+
if (proto.drafts) {
|
|
9621
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9622
|
+
}
|
|
9623
|
+
return m;
|
|
9624
|
+
}
|
|
9625
|
+
constructor(kwargs) {
|
|
9626
|
+
if (!kwargs) {
|
|
9627
|
+
return;
|
|
9628
|
+
}
|
|
9629
|
+
Object.assign(this, kwargs);
|
|
9630
|
+
}
|
|
9631
|
+
toApiJson() {
|
|
9632
|
+
const toReturn = {};
|
|
9633
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9634
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9635
|
+
}
|
|
9636
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
9637
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
9638
|
+
}
|
|
9639
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
9640
|
+
toReturn['hasMore'] = this.hasMore;
|
|
9641
|
+
}
|
|
9642
|
+
return toReturn;
|
|
9643
|
+
}
|
|
9644
|
+
}
|
|
9645
|
+
class ListDraftsRequest {
|
|
9646
|
+
static fromProto(proto) {
|
|
9647
|
+
let m = new ListDraftsRequest();
|
|
9648
|
+
m = Object.assign(m, proto);
|
|
9649
|
+
if (proto.pageSize) {
|
|
9650
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
9651
|
+
}
|
|
9652
|
+
if (proto.start) {
|
|
9653
|
+
m.start = new Date(proto.start);
|
|
9654
|
+
}
|
|
9655
|
+
if (proto.end) {
|
|
9656
|
+
m.end = new Date(proto.end);
|
|
9657
|
+
}
|
|
9658
|
+
if (proto.visibilityType) {
|
|
9659
|
+
m.visibilityType = enumStringToValue$2(VisibilityType, proto.visibilityType);
|
|
9660
|
+
}
|
|
9661
|
+
if (proto.filterBy) {
|
|
9662
|
+
m.filterBy = enumStringToValue$2(FilterBy, proto.filterBy);
|
|
9663
|
+
}
|
|
9664
|
+
return m;
|
|
9665
|
+
}
|
|
9666
|
+
constructor(kwargs) {
|
|
9667
|
+
if (!kwargs) {
|
|
9668
|
+
return;
|
|
9669
|
+
}
|
|
9670
|
+
Object.assign(this, kwargs);
|
|
9671
|
+
}
|
|
9672
|
+
toApiJson() {
|
|
9673
|
+
const toReturn = {};
|
|
9674
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9675
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9676
|
+
}
|
|
9677
|
+
if (typeof this.cursor !== 'undefined') {
|
|
9678
|
+
toReturn['cursor'] = this.cursor;
|
|
9679
|
+
}
|
|
9680
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
9681
|
+
toReturn['pageSize'] = this.pageSize;
|
|
9682
|
+
}
|
|
9683
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
9684
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
9685
|
+
}
|
|
9686
|
+
if (typeof this.end !== 'undefined' && this.end !== null) {
|
|
9687
|
+
toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
|
|
9688
|
+
}
|
|
9689
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
9690
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
9691
|
+
}
|
|
9692
|
+
if (typeof this.networks !== 'undefined') {
|
|
9693
|
+
toReturn['networks'] = this.networks;
|
|
9694
|
+
}
|
|
9695
|
+
if (typeof this.visibilityType !== 'undefined') {
|
|
9696
|
+
toReturn['visibilityType'] = this.visibilityType;
|
|
9697
|
+
}
|
|
9698
|
+
if (typeof this.filterBy !== 'undefined') {
|
|
9699
|
+
toReturn['filterBy'] = this.filterBy;
|
|
9700
|
+
}
|
|
9701
|
+
return toReturn;
|
|
9702
|
+
}
|
|
9703
|
+
}
|
|
9704
|
+
class ListDraftsResponse {
|
|
9705
|
+
static fromProto(proto) {
|
|
9706
|
+
let m = new ListDraftsResponse();
|
|
9707
|
+
m = Object.assign(m, proto);
|
|
9708
|
+
if (proto.drafts) {
|
|
9709
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9710
|
+
}
|
|
9711
|
+
return m;
|
|
9712
|
+
}
|
|
9713
|
+
constructor(kwargs) {
|
|
9714
|
+
if (!kwargs) {
|
|
9715
|
+
return;
|
|
9716
|
+
}
|
|
9717
|
+
Object.assign(this, kwargs);
|
|
9718
|
+
}
|
|
9719
|
+
toApiJson() {
|
|
9720
|
+
const toReturn = {};
|
|
9721
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9722
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9723
|
+
}
|
|
9724
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
9725
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
9726
|
+
}
|
|
9727
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
9728
|
+
toReturn['hasMore'] = this.hasMore;
|
|
9729
|
+
}
|
|
9730
|
+
return toReturn;
|
|
9731
|
+
}
|
|
9732
|
+
}
|
|
9733
|
+
class ListMultilocationDraftsRequest {
|
|
9734
|
+
static fromProto(proto) {
|
|
9735
|
+
let m = new ListMultilocationDraftsRequest();
|
|
9736
|
+
m = Object.assign(m, proto);
|
|
9737
|
+
return m;
|
|
9738
|
+
}
|
|
9739
|
+
constructor(kwargs) {
|
|
9740
|
+
if (!kwargs) {
|
|
9741
|
+
return;
|
|
9742
|
+
}
|
|
9743
|
+
Object.assign(this, kwargs);
|
|
9744
|
+
}
|
|
9745
|
+
toApiJson() {
|
|
9746
|
+
const toReturn = {};
|
|
9747
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9748
|
+
toReturn['brandId'] = this.brandId;
|
|
9749
|
+
}
|
|
9750
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9751
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9752
|
+
}
|
|
9753
|
+
if (typeof this.accountGroupIds !== 'undefined') {
|
|
9754
|
+
toReturn['accountGroupIds'] = this.accountGroupIds;
|
|
9755
|
+
}
|
|
9756
|
+
return toReturn;
|
|
9757
|
+
}
|
|
9758
|
+
}
|
|
9759
|
+
class ListMultilocationDraftsResponse {
|
|
9760
|
+
static fromProto(proto) {
|
|
9761
|
+
let m = new ListMultilocationDraftsResponse();
|
|
9762
|
+
m = Object.assign(m, proto);
|
|
9763
|
+
if (proto.drafts) {
|
|
9764
|
+
m.drafts = proto.drafts.map(Draft.fromProto);
|
|
9765
|
+
}
|
|
9766
|
+
return m;
|
|
9767
|
+
}
|
|
9768
|
+
constructor(kwargs) {
|
|
9769
|
+
if (!kwargs) {
|
|
9770
|
+
return;
|
|
9771
|
+
}
|
|
9772
|
+
Object.assign(this, kwargs);
|
|
9773
|
+
}
|
|
9774
|
+
toApiJson() {
|
|
9775
|
+
const toReturn = {};
|
|
9776
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9777
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9778
|
+
}
|
|
9779
|
+
return toReturn;
|
|
9780
|
+
}
|
|
9781
|
+
}
|
|
9782
|
+
class MultiDeleteMLDraftPostsRequest {
|
|
9783
|
+
static fromProto(proto) {
|
|
9784
|
+
let m = new MultiDeleteMLDraftPostsRequest();
|
|
9785
|
+
m = Object.assign(m, proto);
|
|
9786
|
+
if (proto.mlDraftPosts) {
|
|
9787
|
+
m.mlDraftPosts = proto.mlDraftPosts.map(MlDraftPost.fromProto);
|
|
9788
|
+
}
|
|
9789
|
+
return m;
|
|
9790
|
+
}
|
|
9791
|
+
constructor(kwargs) {
|
|
9792
|
+
if (!kwargs) {
|
|
9793
|
+
return;
|
|
9794
|
+
}
|
|
9795
|
+
Object.assign(this, kwargs);
|
|
9796
|
+
}
|
|
9797
|
+
toApiJson() {
|
|
9798
|
+
const toReturn = {};
|
|
9799
|
+
if (typeof this.mlDraftPosts !== 'undefined' && this.mlDraftPosts !== null) {
|
|
9800
|
+
toReturn['mlDraftPosts'] = 'toApiJson' in this.mlDraftPosts ? this.mlDraftPosts.toApiJson() : this.mlDraftPosts;
|
|
9801
|
+
}
|
|
9802
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9803
|
+
toReturn['brandId'] = this.brandId;
|
|
9804
|
+
}
|
|
9805
|
+
return toReturn;
|
|
9806
|
+
}
|
|
9807
|
+
}
|
|
9808
|
+
class UpdateDraftRequest {
|
|
9809
|
+
static fromProto(proto) {
|
|
9810
|
+
let m = new UpdateDraftRequest();
|
|
9811
|
+
m = Object.assign(m, proto);
|
|
9812
|
+
if (proto.postDateTime) {
|
|
9813
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
9814
|
+
}
|
|
9815
|
+
if (proto.gmbPostCustomization) {
|
|
9816
|
+
m.gmbPostCustomization = GMBPostCustomization.fromProto(proto.gmbPostCustomization);
|
|
9817
|
+
}
|
|
9818
|
+
if (proto.media) {
|
|
9819
|
+
m.media = proto.media.map(DraftMedia.fromProto);
|
|
9820
|
+
}
|
|
9821
|
+
if (proto.draftType) {
|
|
9822
|
+
m.draftType = enumStringToValue$2(DraftType, proto.draftType);
|
|
9823
|
+
}
|
|
9824
|
+
if (proto.metadata) {
|
|
9825
|
+
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
9826
|
+
}
|
|
9827
|
+
if (proto.youtubeCustomization) {
|
|
9828
|
+
m.youtubeCustomization = DraftYoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
9829
|
+
}
|
|
9830
|
+
if (proto.ssidDraftTypes) {
|
|
9831
|
+
m.ssidDraftTypes = proto.ssidDraftTypes.map(SSIDDraftType.fromProto);
|
|
9832
|
+
}
|
|
9833
|
+
if (proto.tiktokCustomization) {
|
|
9834
|
+
m.tiktokCustomization = DraftTikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
9835
|
+
}
|
|
9836
|
+
if (proto.blogPostCustomization) {
|
|
9837
|
+
m.blogPostCustomization = DraftBlogPostCustomization.fromProto(proto.blogPostCustomization);
|
|
9838
|
+
}
|
|
9839
|
+
if (proto.campaignCustomization) {
|
|
9840
|
+
m.campaignCustomization = CampaignCustomization.fromProto(proto.campaignCustomization);
|
|
9841
|
+
}
|
|
9842
|
+
return m;
|
|
9843
|
+
}
|
|
9844
|
+
constructor(kwargs) {
|
|
9845
|
+
if (!kwargs) {
|
|
9846
|
+
return;
|
|
9847
|
+
}
|
|
9848
|
+
Object.assign(this, kwargs);
|
|
9849
|
+
}
|
|
9850
|
+
toApiJson() {
|
|
9851
|
+
const toReturn = {};
|
|
9852
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
9853
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
9854
|
+
}
|
|
9855
|
+
if (typeof this.draftId !== 'undefined') {
|
|
9856
|
+
toReturn['draftId'] = this.draftId;
|
|
9857
|
+
}
|
|
9858
|
+
if (typeof this.draftText !== 'undefined') {
|
|
9859
|
+
toReturn['draftText'] = this.draftText;
|
|
9860
|
+
}
|
|
9861
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
9862
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
9863
|
+
}
|
|
9864
|
+
if (typeof this.gmbPostCustomization !== 'undefined' && this.gmbPostCustomization !== null) {
|
|
9865
|
+
toReturn['gmbPostCustomization'] = 'toApiJson' in this.gmbPostCustomization ? this.gmbPostCustomization.toApiJson() : this.gmbPostCustomization;
|
|
9866
|
+
}
|
|
9867
|
+
if (typeof this.previews !== 'undefined') {
|
|
9868
|
+
toReturn['previews'] = this.previews;
|
|
9869
|
+
}
|
|
9870
|
+
if (typeof this.options !== 'undefined') {
|
|
9871
|
+
toReturn['options'] = this.options;
|
|
9872
|
+
}
|
|
9873
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
9874
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
9875
|
+
}
|
|
9876
|
+
if (typeof this.ssids !== 'undefined') {
|
|
9877
|
+
toReturn['ssids'] = this.ssids;
|
|
9878
|
+
}
|
|
9879
|
+
if (typeof this.draftType !== 'undefined') {
|
|
9880
|
+
toReturn['draftType'] = this.draftType;
|
|
9881
|
+
}
|
|
9882
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
9883
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
9884
|
+
}
|
|
9885
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
9886
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
9887
|
+
}
|
|
9888
|
+
if (typeof this.ssidDraftTypes !== 'undefined' && this.ssidDraftTypes !== null) {
|
|
9889
|
+
toReturn['ssidDraftTypes'] = 'toApiJson' in this.ssidDraftTypes ? this.ssidDraftTypes.toApiJson() : this.ssidDraftTypes;
|
|
9890
|
+
}
|
|
9891
|
+
if (typeof this.isHidden !== 'undefined') {
|
|
9892
|
+
toReturn['isHidden'] = this.isHidden;
|
|
9893
|
+
}
|
|
9894
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
9895
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
9896
|
+
}
|
|
9897
|
+
if (typeof this.blogPostCustomization !== 'undefined' && this.blogPostCustomization !== null) {
|
|
9898
|
+
toReturn['blogPostCustomization'] = 'toApiJson' in this.blogPostCustomization ? this.blogPostCustomization.toApiJson() : this.blogPostCustomization;
|
|
9899
|
+
}
|
|
9900
|
+
if (typeof this.campaignCustomization !== 'undefined' && this.campaignCustomization !== null) {
|
|
9901
|
+
toReturn['campaignCustomization'] = 'toApiJson' in this.campaignCustomization ? this.campaignCustomization.toApiJson() : this.campaignCustomization;
|
|
9902
|
+
}
|
|
9903
|
+
if (typeof this.brandId !== 'undefined') {
|
|
9904
|
+
toReturn['brandId'] = this.brandId;
|
|
9905
|
+
}
|
|
9906
|
+
if (typeof this.multilocationPostId !== 'undefined') {
|
|
9907
|
+
toReturn['multilocationPostId'] = this.multilocationPostId;
|
|
9908
|
+
}
|
|
9909
|
+
if (typeof this.socialNetworkIdentifier !== 'undefined') {
|
|
9910
|
+
toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
|
|
9911
|
+
}
|
|
9912
|
+
return toReturn;
|
|
9913
|
+
}
|
|
9914
|
+
}
|
|
9915
|
+
class UpdateDraftResponse {
|
|
9916
|
+
static fromProto(proto) {
|
|
9917
|
+
let m = new UpdateDraftResponse();
|
|
9918
|
+
m = Object.assign(m, proto);
|
|
9919
|
+
if (proto.draft) {
|
|
9920
|
+
m.draft = Draft.fromProto(proto.draft);
|
|
9921
|
+
}
|
|
9922
|
+
return m;
|
|
9923
|
+
}
|
|
9924
|
+
constructor(kwargs) {
|
|
9925
|
+
if (!kwargs) {
|
|
9926
|
+
return;
|
|
9927
|
+
}
|
|
9928
|
+
Object.assign(this, kwargs);
|
|
9929
|
+
}
|
|
9930
|
+
toApiJson() {
|
|
9931
|
+
const toReturn = {};
|
|
9932
|
+
if (typeof this.draft !== 'undefined' && this.draft !== null) {
|
|
9933
|
+
toReturn['draft'] = 'toApiJson' in this.draft ? this.draft.toApiJson() : this.draft;
|
|
9934
|
+
}
|
|
9935
|
+
return toReturn;
|
|
9936
|
+
}
|
|
9937
|
+
}
|
|
9938
|
+
class UpdateMultiMLDraftsRequest {
|
|
9939
|
+
static fromProto(proto) {
|
|
9940
|
+
let m = new UpdateMultiMLDraftsRequest();
|
|
9941
|
+
m = Object.assign(m, proto);
|
|
9942
|
+
if (proto.drafts) {
|
|
9943
|
+
m.drafts = proto.drafts.map(UpdateDraftRequest.fromProto);
|
|
9944
|
+
}
|
|
9945
|
+
return m;
|
|
9946
|
+
}
|
|
9947
|
+
constructor(kwargs) {
|
|
9948
|
+
if (!kwargs) {
|
|
9949
|
+
return;
|
|
9950
|
+
}
|
|
9951
|
+
Object.assign(this, kwargs);
|
|
9952
|
+
}
|
|
9953
|
+
toApiJson() {
|
|
9954
|
+
const toReturn = {};
|
|
9955
|
+
if (typeof this.drafts !== 'undefined' && this.drafts !== null) {
|
|
9956
|
+
toReturn['drafts'] = 'toApiJson' in this.drafts ? this.drafts.toApiJson() : this.drafts;
|
|
9957
|
+
}
|
|
9958
|
+
return toReturn;
|
|
9959
|
+
}
|
|
9960
|
+
}
|
|
9961
|
+
|
|
9962
|
+
function enumStringToValue$1(enumRef, value) {
|
|
9963
|
+
if (typeof value === 'number') {
|
|
9964
|
+
return value;
|
|
9965
|
+
}
|
|
9966
|
+
return enumRef[value];
|
|
9967
|
+
}
|
|
9968
|
+
class BlogPostOptions {
|
|
9969
|
+
static fromProto(proto) {
|
|
9970
|
+
let m = new BlogPostOptions();
|
|
9971
|
+
m = Object.assign(m, proto);
|
|
9972
|
+
if (proto.author) {
|
|
9973
|
+
m.author = BlogAuthor.fromProto(proto.author);
|
|
9974
|
+
}
|
|
9975
|
+
if (proto.categories) {
|
|
9976
|
+
m.categories = proto.categories.map(BlogCategory.fromProto);
|
|
9977
|
+
}
|
|
9978
|
+
return m;
|
|
9979
|
+
}
|
|
9980
|
+
constructor(kwargs) {
|
|
9981
|
+
if (!kwargs) {
|
|
9982
|
+
return;
|
|
9983
|
+
}
|
|
9984
|
+
Object.assign(this, kwargs);
|
|
9985
|
+
}
|
|
9986
|
+
toApiJson() {
|
|
9987
|
+
const toReturn = {};
|
|
9988
|
+
if (typeof this.title !== 'undefined') {
|
|
9989
|
+
toReturn['title'] = this.title;
|
|
9990
|
+
}
|
|
9991
|
+
if (typeof this.author !== 'undefined' && this.author !== null) {
|
|
9992
|
+
toReturn['author'] = 'toApiJson' in this.author ? this.author.toApiJson() : this.author;
|
|
9993
|
+
}
|
|
9994
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
9995
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
9996
|
+
}
|
|
9997
|
+
if (typeof this.tags !== 'undefined') {
|
|
9998
|
+
toReturn['tags'] = this.tags;
|
|
9999
|
+
}
|
|
10000
|
+
if (typeof this.siteType !== 'undefined') {
|
|
10001
|
+
toReturn['siteType'] = this.siteType;
|
|
10002
|
+
}
|
|
10003
|
+
return toReturn;
|
|
10004
|
+
}
|
|
10005
|
+
}
|
|
10006
|
+
class ContentMetadata {
|
|
10007
|
+
static fromProto(proto) {
|
|
10008
|
+
let m = new ContentMetadata();
|
|
10009
|
+
m = Object.assign(m, proto);
|
|
10010
|
+
return m;
|
|
10011
|
+
}
|
|
10012
|
+
constructor(kwargs) {
|
|
10013
|
+
if (!kwargs) {
|
|
10014
|
+
return;
|
|
10015
|
+
}
|
|
10016
|
+
Object.assign(this, kwargs);
|
|
10017
|
+
}
|
|
10018
|
+
toApiJson() {
|
|
10019
|
+
const toReturn = {};
|
|
10020
|
+
if (typeof this.name !== 'undefined') {
|
|
10021
|
+
toReturn['name'] = this.name;
|
|
10022
|
+
}
|
|
10023
|
+
if (typeof this.value !== 'undefined') {
|
|
10024
|
+
toReturn['value'] = this.value;
|
|
10025
|
+
}
|
|
10026
|
+
return toReturn;
|
|
10027
|
+
}
|
|
10028
|
+
}
|
|
10029
|
+
class CreateContentRequest {
|
|
10030
|
+
static fromProto(proto) {
|
|
10031
|
+
let m = new CreateContentRequest();
|
|
10032
|
+
m = Object.assign(m, proto);
|
|
10033
|
+
if (proto.items) {
|
|
10034
|
+
m.items = proto.items.map(SocialContentItem.fromProto);
|
|
10035
|
+
}
|
|
10036
|
+
return m;
|
|
10037
|
+
}
|
|
10038
|
+
constructor(kwargs) {
|
|
10039
|
+
if (!kwargs) {
|
|
10040
|
+
return;
|
|
10041
|
+
}
|
|
10042
|
+
Object.assign(this, kwargs);
|
|
10043
|
+
}
|
|
10044
|
+
toApiJson() {
|
|
10045
|
+
const toReturn = {};
|
|
10046
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
10047
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
10048
|
+
}
|
|
10049
|
+
if (typeof this.username !== 'undefined') {
|
|
10050
|
+
toReturn['username'] = this.username;
|
|
10051
|
+
}
|
|
10052
|
+
if (typeof this.userId !== 'undefined') {
|
|
10053
|
+
toReturn['userId'] = this.userId;
|
|
10054
|
+
}
|
|
10055
|
+
if (typeof this.items !== 'undefined' && this.items !== null) {
|
|
10056
|
+
toReturn['items'] = 'toApiJson' in this.items ? this.items.toApiJson() : this.items;
|
|
10057
|
+
}
|
|
10058
|
+
return toReturn;
|
|
10059
|
+
}
|
|
10060
|
+
}
|
|
10061
|
+
class CreateContentResponse {
|
|
10062
|
+
static fromProto(proto) {
|
|
10063
|
+
let m = new CreateContentResponse();
|
|
10064
|
+
m = Object.assign(m, proto);
|
|
10065
|
+
if (proto.results) {
|
|
10066
|
+
m.results = proto.results.map(SocialContentResult.fromProto);
|
|
10067
|
+
}
|
|
10068
|
+
return m;
|
|
10069
|
+
}
|
|
10070
|
+
constructor(kwargs) {
|
|
10071
|
+
if (!kwargs) {
|
|
10072
|
+
return;
|
|
10073
|
+
}
|
|
10074
|
+
Object.assign(this, kwargs);
|
|
10075
|
+
}
|
|
10076
|
+
toApiJson() {
|
|
10077
|
+
const toReturn = {};
|
|
10078
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
10079
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
10080
|
+
}
|
|
10081
|
+
return toReturn;
|
|
10082
|
+
}
|
|
10083
|
+
}
|
|
10084
|
+
class GMBCustomization {
|
|
10085
|
+
static fromProto(proto) {
|
|
10086
|
+
let m = new GMBCustomization();
|
|
10087
|
+
m = Object.assign(m, proto);
|
|
10088
|
+
if (proto.eventStart) {
|
|
10089
|
+
m.eventStart = new Date(proto.eventStart);
|
|
10090
|
+
}
|
|
10091
|
+
if (proto.eventEnd) {
|
|
10092
|
+
m.eventEnd = new Date(proto.eventEnd);
|
|
10093
|
+
}
|
|
10094
|
+
if (proto.ctaType) {
|
|
10095
|
+
m.ctaType = enumStringToValue$1(CallToActionType, proto.ctaType);
|
|
10096
|
+
}
|
|
10097
|
+
return m;
|
|
10098
|
+
}
|
|
10099
|
+
constructor(kwargs) {
|
|
10100
|
+
if (!kwargs) {
|
|
10101
|
+
return;
|
|
10102
|
+
}
|
|
10103
|
+
Object.assign(this, kwargs);
|
|
10104
|
+
}
|
|
10105
|
+
toApiJson() {
|
|
10106
|
+
const toReturn = {};
|
|
10107
|
+
if (typeof this.title !== 'undefined') {
|
|
10108
|
+
toReturn['title'] = this.title;
|
|
10109
|
+
}
|
|
10110
|
+
if (typeof this.eventStart !== 'undefined' && this.eventStart !== null) {
|
|
10111
|
+
toReturn['eventStart'] = 'toApiJson' in this.eventStart ? this.eventStart.toApiJson() : this.eventStart;
|
|
10112
|
+
}
|
|
10113
|
+
if (typeof this.eventEnd !== 'undefined' && this.eventEnd !== null) {
|
|
10114
|
+
toReturn['eventEnd'] = 'toApiJson' in this.eventEnd ? this.eventEnd.toApiJson() : this.eventEnd;
|
|
10115
|
+
}
|
|
10116
|
+
if (typeof this.ctaType !== 'undefined') {
|
|
10117
|
+
toReturn['ctaType'] = this.ctaType;
|
|
10118
|
+
}
|
|
10119
|
+
if (typeof this.linkUrl !== 'undefined') {
|
|
10120
|
+
toReturn['linkUrl'] = this.linkUrl;
|
|
10121
|
+
}
|
|
10122
|
+
return toReturn;
|
|
10123
|
+
}
|
|
10124
|
+
}
|
|
10125
|
+
class Link {
|
|
10126
|
+
static fromProto(proto) {
|
|
10127
|
+
let m = new Link();
|
|
10128
|
+
m = Object.assign(m, proto);
|
|
10129
|
+
return m;
|
|
10130
|
+
}
|
|
10131
|
+
constructor(kwargs) {
|
|
10132
|
+
if (!kwargs) {
|
|
10133
|
+
return;
|
|
10134
|
+
}
|
|
10135
|
+
Object.assign(this, kwargs);
|
|
10136
|
+
}
|
|
10137
|
+
toApiJson() {
|
|
10138
|
+
const toReturn = {};
|
|
10139
|
+
if (typeof this.name !== 'undefined') {
|
|
10140
|
+
toReturn['name'] = this.name;
|
|
10141
|
+
}
|
|
10142
|
+
if (typeof this.picture !== 'undefined') {
|
|
10143
|
+
toReturn['picture'] = this.picture;
|
|
10144
|
+
}
|
|
10145
|
+
if (typeof this.description !== 'undefined') {
|
|
10146
|
+
toReturn['description'] = this.description;
|
|
10147
|
+
}
|
|
10148
|
+
if (typeof this.title !== 'undefined') {
|
|
10149
|
+
toReturn['title'] = this.title;
|
|
10150
|
+
}
|
|
10151
|
+
if (typeof this.url !== 'undefined') {
|
|
10152
|
+
toReturn['url'] = this.url;
|
|
10153
|
+
}
|
|
10154
|
+
if (typeof this.shortcode !== 'undefined') {
|
|
10155
|
+
toReturn['shortcode'] = this.shortcode;
|
|
10156
|
+
}
|
|
10157
|
+
return toReturn;
|
|
10158
|
+
}
|
|
10159
|
+
}
|
|
10160
|
+
class MediaItem {
|
|
10161
|
+
static fromProto(proto) {
|
|
10162
|
+
let m = new MediaItem();
|
|
10163
|
+
m = Object.assign(m, proto);
|
|
10164
|
+
if (proto.mediaType) {
|
|
10165
|
+
m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
|
|
10166
|
+
}
|
|
10167
|
+
return m;
|
|
10168
|
+
}
|
|
10169
|
+
constructor(kwargs) {
|
|
10170
|
+
if (!kwargs) {
|
|
10171
|
+
return;
|
|
10172
|
+
}
|
|
10173
|
+
Object.assign(this, kwargs);
|
|
10174
|
+
}
|
|
10175
|
+
toApiJson() {
|
|
10176
|
+
const toReturn = {};
|
|
10177
|
+
if (typeof this.mediaId !== 'undefined') {
|
|
10178
|
+
toReturn['mediaId'] = this.mediaId;
|
|
10179
|
+
}
|
|
10180
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
10181
|
+
toReturn['mediaType'] = this.mediaType;
|
|
10182
|
+
}
|
|
10183
|
+
if (typeof this.path !== 'undefined') {
|
|
10184
|
+
toReturn['path'] = this.path;
|
|
10185
|
+
}
|
|
10186
|
+
if (typeof this.url !== 'undefined') {
|
|
10187
|
+
toReturn['url'] = this.url;
|
|
10188
|
+
}
|
|
10189
|
+
return toReturn;
|
|
10190
|
+
}
|
|
10191
|
+
}
|
|
10192
|
+
class SocialContentItem {
|
|
10193
|
+
static fromProto(proto) {
|
|
10194
|
+
let m = new SocialContentItem();
|
|
10195
|
+
m = Object.assign(m, proto);
|
|
10196
|
+
if (proto.type) {
|
|
10197
|
+
m.type = enumStringToValue$1(SocialContentType, proto.type);
|
|
10198
|
+
}
|
|
10199
|
+
if (proto.mode) {
|
|
10200
|
+
m.mode = enumStringToValue$1(PublishMode, proto.mode);
|
|
10201
|
+
}
|
|
10202
|
+
if (proto.ssidTypes) {
|
|
10203
|
+
m.ssidTypes = proto.ssidTypes.map(SsidPostType.fromProto);
|
|
10204
|
+
}
|
|
10205
|
+
if (proto.media) {
|
|
10206
|
+
m.media = proto.media.map(MediaItem.fromProto);
|
|
10207
|
+
}
|
|
10208
|
+
if (proto.links) {
|
|
10209
|
+
m.links = proto.links.map(Link.fromProto);
|
|
10210
|
+
}
|
|
10211
|
+
if (proto.scheduleAt) {
|
|
10212
|
+
m.scheduleAt = new Date(proto.scheduleAt);
|
|
10213
|
+
}
|
|
10214
|
+
if (proto.gmbCustomization) {
|
|
10215
|
+
m.gmbCustomization = GMBCustomization.fromProto(proto.gmbCustomization);
|
|
10216
|
+
}
|
|
10217
|
+
if (proto.youtubeCustomization) {
|
|
10218
|
+
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
10219
|
+
}
|
|
10220
|
+
if (proto.tiktokCustomization) {
|
|
10221
|
+
m.tiktokCustomization = TikTokCustomization.fromProto(proto.tiktokCustomization);
|
|
10222
|
+
}
|
|
10223
|
+
if (proto.blogPostOptions) {
|
|
10224
|
+
m.blogPostOptions = BlogPostOptions.fromProto(proto.blogPostOptions);
|
|
10225
|
+
}
|
|
10226
|
+
if (proto.contentMetadata) {
|
|
10227
|
+
m.contentMetadata = proto.contentMetadata.map(ContentMetadata.fromProto);
|
|
10228
|
+
}
|
|
10229
|
+
return m;
|
|
10230
|
+
}
|
|
10231
|
+
constructor(kwargs) {
|
|
10232
|
+
if (!kwargs) {
|
|
10233
|
+
return;
|
|
10234
|
+
}
|
|
10235
|
+
Object.assign(this, kwargs);
|
|
10236
|
+
}
|
|
10237
|
+
toApiJson() {
|
|
10238
|
+
const toReturn = {};
|
|
10239
|
+
if (typeof this.type !== 'undefined') {
|
|
10240
|
+
toReturn['type'] = this.type;
|
|
10241
|
+
}
|
|
10242
|
+
if (typeof this.mode !== 'undefined') {
|
|
10243
|
+
toReturn['mode'] = this.mode;
|
|
10244
|
+
}
|
|
10245
|
+
if (typeof this.ssidTypes !== 'undefined' && this.ssidTypes !== null) {
|
|
10246
|
+
toReturn['ssidTypes'] = 'toApiJson' in this.ssidTypes ? this.ssidTypes.toApiJson() : this.ssidTypes;
|
|
10247
|
+
}
|
|
10248
|
+
if (typeof this.text !== 'undefined') {
|
|
10249
|
+
toReturn['text'] = this.text;
|
|
10250
|
+
}
|
|
10251
|
+
if (typeof this.description !== 'undefined') {
|
|
10252
|
+
toReturn['description'] = this.description;
|
|
10253
|
+
}
|
|
10254
|
+
if (typeof this.media !== 'undefined' && this.media !== null) {
|
|
10255
|
+
toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
|
|
10256
|
+
}
|
|
10257
|
+
if (typeof this.links !== 'undefined' && this.links !== null) {
|
|
10258
|
+
toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
|
|
10259
|
+
}
|
|
10260
|
+
if (typeof this.scheduleAt !== 'undefined' && this.scheduleAt !== null) {
|
|
10261
|
+
toReturn['scheduleAt'] = 'toApiJson' in this.scheduleAt ? this.scheduleAt.toApiJson() : this.scheduleAt;
|
|
10262
|
+
}
|
|
10263
|
+
if (typeof this.gmbCustomization !== 'undefined' && this.gmbCustomization !== null) {
|
|
10264
|
+
toReturn['gmbCustomization'] = 'toApiJson' in this.gmbCustomization ? this.gmbCustomization.toApiJson() : this.gmbCustomization;
|
|
10265
|
+
}
|
|
10266
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
10267
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
10268
|
+
}
|
|
10269
|
+
if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
|
|
10270
|
+
toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
|
|
10271
|
+
}
|
|
10272
|
+
if (typeof this.blogPostOptions !== 'undefined' && this.blogPostOptions !== null) {
|
|
10273
|
+
toReturn['blogPostOptions'] = 'toApiJson' in this.blogPostOptions ? this.blogPostOptions.toApiJson() : this.blogPostOptions;
|
|
10274
|
+
}
|
|
10275
|
+
if (typeof this.campaignId !== 'undefined') {
|
|
10276
|
+
toReturn['campaignId'] = this.campaignId;
|
|
10277
|
+
}
|
|
10278
|
+
if (typeof this.contentMetadata !== 'undefined' && this.contentMetadata !== null) {
|
|
10279
|
+
toReturn['contentMetadata'] = 'toApiJson' in this.contentMetadata ? this.contentMetadata.toApiJson() : this.contentMetadata;
|
|
10280
|
+
}
|
|
10281
|
+
return toReturn;
|
|
10282
|
+
}
|
|
10283
|
+
}
|
|
10284
|
+
class SocialContentResult {
|
|
10285
|
+
static fromProto(proto) {
|
|
10286
|
+
let m = new SocialContentResult();
|
|
10287
|
+
m = Object.assign(m, proto);
|
|
10288
|
+
return m;
|
|
10289
|
+
}
|
|
10290
|
+
constructor(kwargs) {
|
|
10291
|
+
if (!kwargs) {
|
|
10292
|
+
return;
|
|
10293
|
+
}
|
|
10294
|
+
Object.assign(this, kwargs);
|
|
10295
|
+
}
|
|
10296
|
+
toApiJson() {
|
|
10297
|
+
const toReturn = {};
|
|
10298
|
+
if (typeof this.postId !== 'undefined') {
|
|
10299
|
+
toReturn['postId'] = this.postId;
|
|
10300
|
+
}
|
|
10301
|
+
if (typeof this.ssid !== 'undefined') {
|
|
10302
|
+
toReturn['ssid'] = this.ssid;
|
|
10303
|
+
}
|
|
10304
|
+
if (typeof this.network !== 'undefined') {
|
|
10305
|
+
toReturn['network'] = this.network;
|
|
10306
|
+
}
|
|
10307
|
+
if (typeof this.status !== 'undefined') {
|
|
10308
|
+
toReturn['status'] = this.status;
|
|
10309
|
+
}
|
|
10310
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
10311
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
10312
|
+
}
|
|
10313
|
+
return toReturn;
|
|
10314
|
+
}
|
|
10315
|
+
}
|
|
10316
|
+
class SsidPostType {
|
|
10317
|
+
static fromProto(proto) {
|
|
10318
|
+
let m = new SsidPostType();
|
|
10319
|
+
m = Object.assign(m, proto);
|
|
10320
|
+
if (proto.mediaContentType) {
|
|
10321
|
+
m.mediaContentType = enumStringToValue$1(MediaContentType, proto.mediaContentType);
|
|
10322
|
+
}
|
|
10323
|
+
return m;
|
|
10324
|
+
}
|
|
10325
|
+
constructor(kwargs) {
|
|
10326
|
+
if (!kwargs) {
|
|
10327
|
+
return;
|
|
10328
|
+
}
|
|
10329
|
+
Object.assign(this, kwargs);
|
|
10330
|
+
}
|
|
10331
|
+
toApiJson() {
|
|
10332
|
+
const toReturn = {};
|
|
10333
|
+
if (typeof this.ssid !== 'undefined') {
|
|
10334
|
+
toReturn['ssid'] = this.ssid;
|
|
10335
|
+
}
|
|
10336
|
+
if (typeof this.mediaContentType !== 'undefined') {
|
|
10337
|
+
toReturn['mediaContentType'] = this.mediaContentType;
|
|
10338
|
+
}
|
|
10339
|
+
return toReturn;
|
|
10340
|
+
}
|
|
10341
|
+
}
|
|
10342
|
+
|
|
10343
|
+
function enumStringToValue(enumRef, value) {
|
|
10344
|
+
if (typeof value === 'number') {
|
|
10345
|
+
return value;
|
|
10346
|
+
}
|
|
10347
|
+
return enumRef[value];
|
|
10348
|
+
}
|
|
10349
|
+
class CreateOrEditRequest {
|
|
10350
|
+
static fromProto(proto) {
|
|
10351
|
+
let m = new CreateOrEditRequest();
|
|
10352
|
+
m = Object.assign(m, proto);
|
|
10353
|
+
if (proto.namespace) {
|
|
10354
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
10355
|
+
}
|
|
10356
|
+
if (proto.imageInputs) {
|
|
10357
|
+
m.imageInputs = proto.imageInputs.map(ImageInputSource.fromProto);
|
|
10358
|
+
}
|
|
10359
|
+
if (proto.model) {
|
|
10360
|
+
m.model = enumStringToValue(ImageModel, proto.model);
|
|
10361
|
+
}
|
|
10362
|
+
if (proto.quality) {
|
|
10363
|
+
m.quality = enumStringToValue(ImageQuality, proto.quality);
|
|
10364
|
+
}
|
|
10365
|
+
if (proto.style) {
|
|
10366
|
+
m.style = enumStringToValue(ImageStyle, proto.style);
|
|
10367
|
+
}
|
|
10368
|
+
if (proto.background) {
|
|
10369
|
+
m.background = enumStringToValue(ImageBackground, proto.background);
|
|
10370
|
+
}
|
|
10371
|
+
if (proto.outputFormat) {
|
|
10372
|
+
m.outputFormat = enumStringToValue(ImageOutputFormat, proto.outputFormat);
|
|
10373
|
+
}
|
|
10374
|
+
return m;
|
|
10375
|
+
}
|
|
10376
|
+
constructor(kwargs) {
|
|
10377
|
+
if (!kwargs) {
|
|
10378
|
+
return;
|
|
10379
|
+
}
|
|
10380
|
+
Object.assign(this, kwargs);
|
|
10381
|
+
}
|
|
10382
|
+
toApiJson() {
|
|
10383
|
+
const toReturn = {};
|
|
10384
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
10385
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
10386
|
+
}
|
|
10387
|
+
if (typeof this.prompt !== 'undefined') {
|
|
10388
|
+
toReturn['prompt'] = this.prompt;
|
|
10389
|
+
}
|
|
10390
|
+
if (typeof this.imageInputs !== 'undefined' && this.imageInputs !== null) {
|
|
10391
|
+
toReturn['imageInputs'] = 'toApiJson' in this.imageInputs ? this.imageInputs.toApiJson() : this.imageInputs;
|
|
10392
|
+
}
|
|
10393
|
+
if (typeof this.model !== 'undefined') {
|
|
10394
|
+
toReturn['model'] = this.model;
|
|
10395
|
+
}
|
|
10396
|
+
if (typeof this.imageCount !== 'undefined') {
|
|
10397
|
+
toReturn['imageCount'] = this.imageCount;
|
|
10398
|
+
}
|
|
10399
|
+
if (typeof this.size !== 'undefined') {
|
|
10400
|
+
toReturn['size'] = this.size;
|
|
10401
|
+
}
|
|
10402
|
+
if (typeof this.quality !== 'undefined') {
|
|
10403
|
+
toReturn['quality'] = this.quality;
|
|
10404
|
+
}
|
|
10405
|
+
if (typeof this.responseFormat !== 'undefined') {
|
|
10406
|
+
toReturn['responseFormat'] = this.responseFormat;
|
|
10407
|
+
}
|
|
10408
|
+
if (typeof this.style !== 'undefined') {
|
|
10409
|
+
toReturn['style'] = this.style;
|
|
10410
|
+
}
|
|
10411
|
+
if (typeof this.background !== 'undefined') {
|
|
10412
|
+
toReturn['background'] = this.background;
|
|
10413
|
+
}
|
|
10414
|
+
if (typeof this.outputFormat !== 'undefined') {
|
|
10415
|
+
toReturn['outputFormat'] = this.outputFormat;
|
|
10416
|
+
}
|
|
10417
|
+
if (typeof this.moderation !== 'undefined') {
|
|
10418
|
+
toReturn['moderation'] = this.moderation;
|
|
10419
|
+
}
|
|
10420
|
+
return toReturn;
|
|
10421
|
+
}
|
|
10422
|
+
}
|
|
10423
|
+
class CreateOrEditResponse {
|
|
10424
|
+
static fromProto(proto) {
|
|
10425
|
+
let m = new CreateOrEditResponse();
|
|
10426
|
+
m = Object.assign(m, proto);
|
|
10427
|
+
if (proto.images) {
|
|
10428
|
+
m.images = proto.images.map(GeneratedImage.fromProto);
|
|
10429
|
+
}
|
|
10430
|
+
return m;
|
|
10431
|
+
}
|
|
10432
|
+
constructor(kwargs) {
|
|
10433
|
+
if (!kwargs) {
|
|
10434
|
+
return;
|
|
10435
|
+
}
|
|
10436
|
+
Object.assign(this, kwargs);
|
|
10437
|
+
}
|
|
10438
|
+
toApiJson() {
|
|
10439
|
+
const toReturn = {};
|
|
10440
|
+
if (typeof this.images !== 'undefined' && this.images !== null) {
|
|
10441
|
+
toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
|
|
10442
|
+
}
|
|
10443
|
+
return toReturn;
|
|
10444
|
+
}
|
|
10445
|
+
}
|
|
10446
|
+
class GeneratedImage {
|
|
10447
|
+
static fromProto(proto) {
|
|
10448
|
+
let m = new GeneratedImage();
|
|
10449
|
+
m = Object.assign(m, proto);
|
|
10450
|
+
return m;
|
|
10451
|
+
}
|
|
10452
|
+
constructor(kwargs) {
|
|
10453
|
+
if (!kwargs) {
|
|
10454
|
+
return;
|
|
10455
|
+
}
|
|
10456
|
+
Object.assign(this, kwargs);
|
|
10457
|
+
}
|
|
10458
|
+
toApiJson() {
|
|
10459
|
+
const toReturn = {};
|
|
10460
|
+
if (typeof this.url !== 'undefined') {
|
|
10461
|
+
toReturn['url'] = this.url;
|
|
10462
|
+
}
|
|
10463
|
+
if (typeof this.b64Json !== 'undefined') {
|
|
10464
|
+
toReturn['b64Json'] = this.b64Json;
|
|
10465
|
+
}
|
|
10466
|
+
if (typeof this.revisedPrompt !== 'undefined') {
|
|
10467
|
+
toReturn['revisedPrompt'] = this.revisedPrompt;
|
|
10468
|
+
}
|
|
10469
|
+
return toReturn;
|
|
10470
|
+
}
|
|
10471
|
+
}
|
|
10472
|
+
class ImageInputSource {
|
|
10473
|
+
static fromProto(proto) {
|
|
10474
|
+
let m = new ImageInputSource();
|
|
10475
|
+
m = Object.assign(m, proto);
|
|
10476
|
+
return m;
|
|
10477
|
+
}
|
|
10478
|
+
constructor(kwargs) {
|
|
10479
|
+
if (!kwargs) {
|
|
10480
|
+
return;
|
|
10481
|
+
}
|
|
10482
|
+
Object.assign(this, kwargs);
|
|
10483
|
+
}
|
|
10484
|
+
toApiJson() {
|
|
10485
|
+
const toReturn = {};
|
|
10486
|
+
if (typeof this.url !== 'undefined') {
|
|
10487
|
+
toReturn['url'] = this.url;
|
|
10488
|
+
}
|
|
10489
|
+
if (typeof this.data !== 'undefined') {
|
|
10490
|
+
toReturn['data'] = this.data;
|
|
10491
|
+
}
|
|
10492
|
+
return toReturn;
|
|
10493
|
+
}
|
|
10494
|
+
}
|
|
10495
|
+
|
|
10496
|
+
// *********************************
|
|
10497
|
+
// Code generated by sdkgen
|
|
10498
|
+
// DO NOT EDIT!.
|
|
10499
|
+
//
|
|
10500
|
+
// Objects Index.
|
|
10501
|
+
// *********************************
|
|
10502
|
+
|
|
10503
|
+
var _a;
|
|
10504
|
+
const environment = (_a = (window ? window['environment'] : 'prod')) !== null && _a !== void 0 ? _a : 'prod';
|
|
10505
|
+
const hostMap = {
|
|
10506
|
+
'local': 'social-post.vendasta-local.com',
|
|
10507
|
+
'test': '',
|
|
10508
|
+
'demo': 'social-posts-demo.apigateway.co',
|
|
10509
|
+
'prod': 'social-posts-prod.apigateway.co',
|
|
10510
|
+
'production': 'social-posts-prod.apigateway.co',
|
|
10511
|
+
};
|
|
10512
|
+
class HostService {
|
|
10513
|
+
get host() {
|
|
10514
|
+
return hostMap[environment.toLowerCase()];
|
|
10515
|
+
}
|
|
10516
|
+
get hostWithScheme() {
|
|
10517
|
+
return 'https://' + this.host;
|
|
10518
|
+
}
|
|
10519
|
+
}
|
|
10520
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10521
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
10522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
10523
|
+
type: Injectable,
|
|
10524
|
+
args: [{ providedIn: 'root' }]
|
|
10525
|
+
}] });
|
|
10526
|
+
|
|
10527
|
+
// *********************************
|
|
10528
|
+
// Code generated by sdkgen
|
|
10529
|
+
// DO NOT EDIT!.
|
|
10530
|
+
//
|
|
10531
|
+
// API Service.
|
|
10532
|
+
// *********************************
|
|
10533
|
+
class SocialPostsApiService {
|
|
10534
|
+
constructor() {
|
|
10535
|
+
this.hostService = inject(HostService);
|
|
10536
|
+
this.http = inject(HttpClient);
|
|
10537
|
+
this._host = this.hostService.hostWithScheme;
|
|
10538
|
+
}
|
|
10539
|
+
apiOptions() {
|
|
10540
|
+
return {
|
|
10541
|
+
headers: new HttpHeaders({
|
|
10542
|
+
'Content-Type': 'application/json'
|
|
10543
|
+
}),
|
|
10544
|
+
withCredentials: true
|
|
10545
|
+
};
|
|
10546
|
+
}
|
|
10547
|
+
list(r) {
|
|
10548
|
+
const request = (r.toApiJson) ? r : new ListSocialPostsRequest(r);
|
|
10549
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/List", request.toApiJson(), this.apiOptions())
|
|
10550
|
+
.pipe(map(resp => ListSocialPostsResponse.fromProto(resp)));
|
|
10551
|
+
}
|
|
10552
|
+
deleteSocialPost(r) {
|
|
10553
|
+
const request = (r.toApiJson) ? r : new DeleteSocialPostRequest(r);
|
|
10554
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/DeleteSocialPost", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
10555
|
+
}
|
|
10556
|
+
scheduleToAllPages(r) {
|
|
10557
|
+
const request = (r.toApiJson) ? r : new ScheduleToAllPagesRequest(r);
|
|
10558
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/ScheduleToAllPages", request.toApiJson(), this.apiOptions())
|
|
10559
|
+
.pipe(map(resp => ScheduleToAllPagesResponse.fromProto(resp)));
|
|
10560
|
+
}
|
|
10561
|
+
schedule(r) {
|
|
10562
|
+
const request = (r.toApiJson) ? r : new SchedulePostRequest(r);
|
|
10563
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/Schedule", request.toApiJson(), this.apiOptions())
|
|
10564
|
+
.pipe(map(resp => SchedulePostResponse.fromProto(resp)));
|
|
10565
|
+
}
|
|
10566
|
+
getMultiSocialPosts(r) {
|
|
10567
|
+
const request = (r.toApiJson) ? r : new GetMultiSocialPostsRequest(r);
|
|
10568
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPosts", request.toApiJson(), this.apiOptions())
|
|
10569
|
+
.pipe(map(resp => GetMultiSocialPostsResponse.fromProto(resp)));
|
|
10570
|
+
}
|
|
10571
|
+
getMultiSocialPostStats(r) {
|
|
10572
|
+
const request = (r.toApiJson) ? r : new GetMultiSocialPostStatsRequest(r);
|
|
10573
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetMultiSocialPostStats", request.toApiJson(), this.apiOptions())
|
|
10574
|
+
.pipe(map(resp => GetMultiSocialPostStatsResponse.fromProto(resp)));
|
|
10575
|
+
}
|
|
10576
|
+
getScheduledPostCount(r) {
|
|
10577
|
+
const request = (r.toApiJson) ? r : new GetScheduledPostCountRequest(r);
|
|
10578
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetScheduledPostCount", request.toApiJson(), this.apiOptions())
|
|
10579
|
+
.pipe(map(resp => GetScheduledPostCountResponse.fromProto(resp)));
|
|
10580
|
+
}
|
|
10581
|
+
suggestMessage(r) {
|
|
10582
|
+
const request = (r.toApiJson) ? r : new SuggestMessageRequest(r);
|
|
10583
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/SuggestMessage", request.toApiJson(), this.apiOptions())
|
|
10584
|
+
.pipe(map(resp => SuggestMessageResponse.fromProto(resp)));
|
|
10585
|
+
}
|
|
10586
|
+
}
|
|
10587
|
+
SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10588
|
+
SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
|
|
10589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, decorators: [{
|
|
10590
|
+
type: Injectable,
|
|
10591
|
+
args: [{ providedIn: 'root' }]
|
|
10592
|
+
}] });
|
|
10593
|
+
|
|
10594
|
+
class SocialPostsService {
|
|
10595
|
+
constructor(socialPostsApiService) {
|
|
10596
|
+
this.socialPostsApiService = socialPostsApiService;
|
|
10597
|
+
}
|
|
10598
|
+
list(start, end, socialServiceIds, businessId, partnerId, cursor, tags, pageSize) {
|
|
10599
|
+
const req = new ListSocialPostsRequest({
|
|
10600
|
+
start: start,
|
|
10601
|
+
end: end,
|
|
10602
|
+
businessId: businessId,
|
|
10603
|
+
partnerId: partnerId,
|
|
10604
|
+
cursor: cursor,
|
|
10605
|
+
socialServiceIds: socialServiceIds,
|
|
10606
|
+
tags: tags,
|
|
10607
|
+
pageSize: pageSize,
|
|
10608
|
+
});
|
|
10609
|
+
return this.socialPostsApiService.list(req);
|
|
10610
|
+
}
|
|
10611
|
+
getMultiSocialPosts(businessId, internalPostIds) {
|
|
10612
|
+
if (!internalPostIds || internalPostIds.length === 0) {
|
|
10613
|
+
const res = new GetMultiSocialPostsResponse();
|
|
10614
|
+
return of(res);
|
|
10615
|
+
}
|
|
10616
|
+
const req = new GetMultiSocialPostsRequest({ businessId: businessId, internalPostIds: internalPostIds });
|
|
10617
|
+
return this.socialPostsApiService.getMultiSocialPosts(req);
|
|
10618
|
+
}
|
|
10619
|
+
getScheduledPostCount(partnerId, businessId, socialServiceIds) {
|
|
10620
|
+
const req = new GetScheduledPostCountRequest({ partnerId: partnerId, businessId: businessId, socialServiceIds: socialServiceIds });
|
|
10621
|
+
return this.socialPostsApiService.getScheduledPostCount(req);
|
|
10622
|
+
}
|
|
10623
|
+
suggestMessage(businessId, prompt, postLength, templateType, metadata) {
|
|
10624
|
+
const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt, length: postLength, type: templateType, metadata: metadata });
|
|
10625
|
+
return this.socialPostsApiService.suggestMessage(req);
|
|
10626
|
+
}
|
|
10627
|
+
deleteSocialPost(req) {
|
|
10628
|
+
return this.socialPostsApiService.deleteSocialPost(req);
|
|
10629
|
+
}
|
|
10630
|
+
getMultiSocialPostStats(req) {
|
|
10631
|
+
return this.socialPostsApiService.getMultiSocialPostStats(req);
|
|
10632
|
+
}
|
|
10633
|
+
}
|
|
10634
|
+
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10635
|
+
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
|
|
10636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
|
|
10637
|
+
type: Injectable,
|
|
10638
|
+
args: [{ providedIn: 'root' }]
|
|
10639
|
+
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
10640
|
+
|
|
10641
|
+
// *********************************
|
|
10642
|
+
// Code generated by sdkgen
|
|
10643
|
+
// DO NOT EDIT!.
|
|
10644
|
+
//
|
|
10645
|
+
// API Service.
|
|
10646
|
+
// *********************************
|
|
10647
|
+
class SocialMentionsApiService {
|
|
10648
|
+
constructor() {
|
|
10649
|
+
this.hostService = inject(HostService);
|
|
10650
|
+
this.http = inject(HttpClient);
|
|
10651
|
+
this._host = this.hostService.hostWithScheme;
|
|
8637
10652
|
}
|
|
8638
10653
|
apiOptions() {
|
|
8639
10654
|
return {
|
|
@@ -8770,6 +10785,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8770
10785
|
args: [{ providedIn: 'root' }]
|
|
8771
10786
|
}] });
|
|
8772
10787
|
|
|
10788
|
+
// *********************************
|
|
10789
|
+
// Code generated by sdkgen
|
|
10790
|
+
// DO NOT EDIT!.
|
|
10791
|
+
//
|
|
10792
|
+
// API Service.
|
|
10793
|
+
// *********************************
|
|
10794
|
+
class BlogWebsiteApiService {
|
|
10795
|
+
constructor() {
|
|
10796
|
+
this.hostService = inject(HostService);
|
|
10797
|
+
this.http = inject(HttpClient);
|
|
10798
|
+
this._host = this.hostService.hostWithScheme;
|
|
10799
|
+
}
|
|
10800
|
+
apiOptions() {
|
|
10801
|
+
return {
|
|
10802
|
+
headers: new HttpHeaders({
|
|
10803
|
+
'Content-Type': 'application/json'
|
|
10804
|
+
}),
|
|
10805
|
+
withCredentials: true
|
|
10806
|
+
};
|
|
10807
|
+
}
|
|
10808
|
+
getDetails(r) {
|
|
10809
|
+
const request = (r.toApiJson) ? r : new GetBlogWebsiteDetailsRequest(r);
|
|
10810
|
+
return this.http.post(this._host + "/socialposts.v1.BlogWebsite/GetDetails", request.toApiJson(), this.apiOptions())
|
|
10811
|
+
.pipe(map(resp => GetBlogWebsiteDetailsResponse.fromProto(resp)));
|
|
10812
|
+
}
|
|
10813
|
+
}
|
|
10814
|
+
BlogWebsiteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogWebsiteApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10815
|
+
BlogWebsiteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogWebsiteApiService, providedIn: 'root' });
|
|
10816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogWebsiteApiService, decorators: [{
|
|
10817
|
+
type: Injectable,
|
|
10818
|
+
args: [{ providedIn: 'root' }]
|
|
10819
|
+
}] });
|
|
10820
|
+
|
|
8773
10821
|
// *********************************
|
|
8774
10822
|
// Code generated by sdkgen
|
|
8775
10823
|
// DO NOT EDIT!.
|
|
@@ -9034,6 +11082,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9034
11082
|
args: [{ providedIn: 'root' }]
|
|
9035
11083
|
}] });
|
|
9036
11084
|
|
|
11085
|
+
// *********************************
|
|
11086
|
+
// Code generated by sdkgen
|
|
11087
|
+
// DO NOT EDIT!.
|
|
11088
|
+
//
|
|
11089
|
+
// API Service.
|
|
11090
|
+
// *********************************
|
|
11091
|
+
class DraftsApiService {
|
|
11092
|
+
constructor() {
|
|
11093
|
+
this.hostService = inject(HostService);
|
|
11094
|
+
this.http = inject(HttpClient);
|
|
11095
|
+
this._host = this.hostService.hostWithScheme;
|
|
11096
|
+
}
|
|
11097
|
+
apiOptions() {
|
|
11098
|
+
return {
|
|
11099
|
+
headers: new HttpHeaders({
|
|
11100
|
+
'Content-Type': 'application/json'
|
|
11101
|
+
}),
|
|
11102
|
+
withCredentials: true
|
|
11103
|
+
};
|
|
11104
|
+
}
|
|
11105
|
+
updateDraft(r) {
|
|
11106
|
+
const request = (r.toApiJson) ? r : new UpdateDraftRequest(r);
|
|
11107
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/UpdateDraft", request.toApiJson(), this.apiOptions())
|
|
11108
|
+
.pipe(map(resp => UpdateDraftResponse.fromProto(resp)));
|
|
11109
|
+
}
|
|
11110
|
+
createDraft(r) {
|
|
11111
|
+
const request = (r.toApiJson) ? r : new CreateDraftRequest(r);
|
|
11112
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/CreateDraft", request.toApiJson(), this.apiOptions())
|
|
11113
|
+
.pipe(map(resp => CreateDraftResponse.fromProto(resp)));
|
|
11114
|
+
}
|
|
11115
|
+
createMultiDrafts(r) {
|
|
11116
|
+
const request = (r.toApiJson) ? r : new CreateMultiDraftsRequest(r);
|
|
11117
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/CreateMultiDrafts", request.toApiJson(), this.apiOptions())
|
|
11118
|
+
.pipe(map(resp => CreateMultiDraftsResponse.fromProto(resp)));
|
|
11119
|
+
}
|
|
11120
|
+
getDraft(r) {
|
|
11121
|
+
const request = (r.toApiJson) ? r : new GetDraftRequest(r);
|
|
11122
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/GetDraft", request.toApiJson(), this.apiOptions())
|
|
11123
|
+
.pipe(map(resp => GetDraftResponse.fromProto(resp)));
|
|
11124
|
+
}
|
|
11125
|
+
listMultilocationDrafts(r) {
|
|
11126
|
+
const request = (r.toApiJson) ? r : new ListMultilocationDraftsRequest(r);
|
|
11127
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/ListMultilocationDrafts", request.toApiJson(), this.apiOptions())
|
|
11128
|
+
.pipe(map(resp => ListMultilocationDraftsResponse.fromProto(resp)));
|
|
11129
|
+
}
|
|
11130
|
+
listDrafts(r) {
|
|
11131
|
+
const request = (r.toApiJson) ? r : new ListDraftsRequest(r);
|
|
11132
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/ListDrafts", request.toApiJson(), this.apiOptions())
|
|
11133
|
+
.pipe(map(resp => ListDraftsResponse.fromProto(resp)));
|
|
11134
|
+
}
|
|
11135
|
+
listDraftsByNetworkIdentifier(r) {
|
|
11136
|
+
const request = (r.toApiJson) ? r : new ListDraftsByNetworkIdentifierRequest(r);
|
|
11137
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/ListDraftsByNetworkIdentifier", request.toApiJson(), this.apiOptions())
|
|
11138
|
+
.pipe(map(resp => ListDraftsByNetworkIdentifierResponse.fromProto(resp)));
|
|
11139
|
+
}
|
|
11140
|
+
deleteDraft(r) {
|
|
11141
|
+
const request = (r.toApiJson) ? r : new DeleteDraftRequest(r);
|
|
11142
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/DeleteDraft", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
11143
|
+
}
|
|
11144
|
+
updateMultiMlDrafts(r) {
|
|
11145
|
+
const request = (r.toApiJson) ? r : new UpdateMultiMLDraftsRequest(r);
|
|
11146
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/UpdateMultiMLDrafts", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
11147
|
+
}
|
|
11148
|
+
deleteMultiMlDrafts(r) {
|
|
11149
|
+
const request = (r.toApiJson) ? r : new MultiDeleteMLDraftPostsRequest(r);
|
|
11150
|
+
return this.http.post(this._host + "/socialposts.v2.Drafts/DeleteMultiMLDrafts", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
11151
|
+
}
|
|
11152
|
+
}
|
|
11153
|
+
DraftsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11154
|
+
DraftsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsApiService, providedIn: 'root' });
|
|
11155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsApiService, decorators: [{
|
|
11156
|
+
type: Injectable,
|
|
11157
|
+
args: [{ providedIn: 'root' }]
|
|
11158
|
+
}] });
|
|
11159
|
+
|
|
9037
11160
|
// *********************************
|
|
9038
11161
|
// Code generated by sdkgen
|
|
9039
11162
|
// DO NOT EDIT!.
|
|
@@ -9075,6 +11198,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9075
11198
|
args: [{ providedIn: 'root' }]
|
|
9076
11199
|
}] });
|
|
9077
11200
|
|
|
11201
|
+
// *********************************
|
|
11202
|
+
// Code generated by sdkgen
|
|
11203
|
+
// DO NOT EDIT!.
|
|
11204
|
+
//
|
|
11205
|
+
// API Service.
|
|
11206
|
+
// *********************************
|
|
11207
|
+
class ImageGenerationApiService {
|
|
11208
|
+
constructor() {
|
|
11209
|
+
this.hostService = inject(HostService);
|
|
11210
|
+
this.http = inject(HttpClient);
|
|
11211
|
+
this._host = this.hostService.hostWithScheme;
|
|
11212
|
+
}
|
|
11213
|
+
apiOptions() {
|
|
11214
|
+
return {
|
|
11215
|
+
headers: new HttpHeaders({
|
|
11216
|
+
'Content-Type': 'application/json'
|
|
11217
|
+
}),
|
|
11218
|
+
withCredentials: true
|
|
11219
|
+
};
|
|
11220
|
+
}
|
|
11221
|
+
createOrEdit(r) {
|
|
11222
|
+
const request = (r.toApiJson) ? r : new CreateOrEditRequest(r);
|
|
11223
|
+
return this.http.post(this._host + "/socialposts.v1.ImageGeneration/CreateOrEdit", request.toApiJson(), this.apiOptions())
|
|
11224
|
+
.pipe(map(resp => CreateOrEditResponse.fromProto(resp)));
|
|
11225
|
+
}
|
|
11226
|
+
}
|
|
11227
|
+
ImageGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11228
|
+
ImageGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, providedIn: 'root' });
|
|
11229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, decorators: [{
|
|
11230
|
+
type: Injectable,
|
|
11231
|
+
args: [{ providedIn: 'root' }]
|
|
11232
|
+
}] });
|
|
11233
|
+
|
|
9078
11234
|
// *********************************
|
|
9079
11235
|
// Code generated by sdkgen
|
|
9080
11236
|
// DO NOT EDIT!.
|
|
@@ -9403,6 +11559,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9403
11559
|
args: [{ providedIn: 'root' }]
|
|
9404
11560
|
}] });
|
|
9405
11561
|
|
|
11562
|
+
// *********************************
|
|
11563
|
+
// Code generated by sdkgen
|
|
11564
|
+
// DO NOT EDIT!.
|
|
11565
|
+
//
|
|
11566
|
+
// API Service.
|
|
11567
|
+
// *********************************
|
|
11568
|
+
class ProvisioningApiService {
|
|
11569
|
+
constructor() {
|
|
11570
|
+
this.hostService = inject(HostService);
|
|
11571
|
+
this.http = inject(HttpClient);
|
|
11572
|
+
this._host = this.hostService.hostWithScheme;
|
|
11573
|
+
}
|
|
11574
|
+
apiOptions() {
|
|
11575
|
+
return {
|
|
11576
|
+
headers: new HttpHeaders({
|
|
11577
|
+
'Content-Type': 'application/json'
|
|
11578
|
+
}),
|
|
11579
|
+
withCredentials: true
|
|
11580
|
+
};
|
|
11581
|
+
}
|
|
11582
|
+
provision(r) {
|
|
11583
|
+
const request = (r.toApiJson) ? r : new ProvisionRequest(r);
|
|
11584
|
+
return this.http.post(this._host + "/socialposts.v2.Provisioning/Provision", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
11585
|
+
}
|
|
11586
|
+
}
|
|
11587
|
+
ProvisioningApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProvisioningApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11588
|
+
ProvisioningApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProvisioningApiService, providedIn: 'root' });
|
|
11589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProvisioningApiService, decorators: [{
|
|
11590
|
+
type: Injectable,
|
|
11591
|
+
args: [{ providedIn: 'root' }]
|
|
11592
|
+
}] });
|
|
11593
|
+
|
|
11594
|
+
// *********************************
|
|
11595
|
+
// Code generated by sdkgen
|
|
11596
|
+
// DO NOT EDIT!.
|
|
11597
|
+
//
|
|
11598
|
+
// API Service.
|
|
11599
|
+
// *********************************
|
|
11600
|
+
class SocialContentApiService {
|
|
11601
|
+
constructor() {
|
|
11602
|
+
this.hostService = inject(HostService);
|
|
11603
|
+
this.http = inject(HttpClient);
|
|
11604
|
+
this._host = this.hostService.hostWithScheme;
|
|
11605
|
+
}
|
|
11606
|
+
apiOptions() {
|
|
11607
|
+
return {
|
|
11608
|
+
headers: new HttpHeaders({
|
|
11609
|
+
'Content-Type': 'application/json'
|
|
11610
|
+
}),
|
|
11611
|
+
withCredentials: true
|
|
11612
|
+
};
|
|
11613
|
+
}
|
|
11614
|
+
create(r) {
|
|
11615
|
+
const request = (r.toApiJson) ? r : new CreateContentRequest(r);
|
|
11616
|
+
return this.http.post(this._host + "/socialposts.v1.SocialContent/Create", request.toApiJson(), this.apiOptions())
|
|
11617
|
+
.pipe(map(resp => CreateContentResponse.fromProto(resp)));
|
|
11618
|
+
}
|
|
11619
|
+
}
|
|
11620
|
+
SocialContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11621
|
+
SocialContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, providedIn: 'root' });
|
|
11622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, decorators: [{
|
|
11623
|
+
type: Injectable,
|
|
11624
|
+
args: [{ providedIn: 'root' }]
|
|
11625
|
+
}] });
|
|
11626
|
+
|
|
9406
11627
|
// *********************************
|
|
9407
11628
|
// Code generated by sdkgen
|
|
9408
11629
|
// DO NOT EDIT!.
|
|
@@ -10219,9 +12440,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10219
12440
|
args: [{ providedIn: 'root' }]
|
|
10220
12441
|
}], ctorParameters: function () { return [{ type: CampaignApiService }]; } });
|
|
10221
12442
|
|
|
12443
|
+
class DraftsService {
|
|
12444
|
+
constructor(draftsApiService) {
|
|
12445
|
+
this.draftsApiService = draftsApiService;
|
|
12446
|
+
}
|
|
12447
|
+
createDraft(r) {
|
|
12448
|
+
return this.draftsApiService.createDraft(r);
|
|
12449
|
+
}
|
|
12450
|
+
createMultiDrafts(r) {
|
|
12451
|
+
return this.draftsApiService.createMultiDrafts(r);
|
|
12452
|
+
}
|
|
12453
|
+
getDraft(r) {
|
|
12454
|
+
return this.draftsApiService.getDraft(r);
|
|
12455
|
+
}
|
|
12456
|
+
updateDraft(r) {
|
|
12457
|
+
return this.draftsApiService.updateDraft(r);
|
|
12458
|
+
}
|
|
12459
|
+
deleteDraft(r) {
|
|
12460
|
+
return this.draftsApiService.deleteDraft(r);
|
|
12461
|
+
}
|
|
12462
|
+
listDrafts(r) {
|
|
12463
|
+
return this.draftsApiService.listDrafts(r);
|
|
12464
|
+
}
|
|
12465
|
+
listDraftsByNetworkIdentifier(r) {
|
|
12466
|
+
return this.draftsApiService.listDraftsByNetworkIdentifier(r);
|
|
12467
|
+
}
|
|
12468
|
+
listMultilocationDrafts(r) {
|
|
12469
|
+
return this.draftsApiService.listMultilocationDrafts(r);
|
|
12470
|
+
}
|
|
12471
|
+
updateMultiMlDrafts(r) {
|
|
12472
|
+
return this.draftsApiService.updateMultiMlDrafts(r);
|
|
12473
|
+
}
|
|
12474
|
+
deleteMultiMlDrafts(r) {
|
|
12475
|
+
return this.draftsApiService.deleteMultiMlDrafts(r);
|
|
12476
|
+
}
|
|
12477
|
+
}
|
|
12478
|
+
DraftsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsService, deps: [{ token: DraftsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12479
|
+
DraftsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsService, providedIn: 'root' });
|
|
12480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraftsService, decorators: [{
|
|
12481
|
+
type: Injectable,
|
|
12482
|
+
args: [{ providedIn: 'root' }]
|
|
12483
|
+
}], ctorParameters: function () { return [{ type: DraftsApiService }]; } });
|
|
12484
|
+
|
|
10222
12485
|
/**
|
|
10223
12486
|
* Generated bundle index. Do not edit.
|
|
10224
12487
|
*/
|
|
10225
12488
|
|
|
10226
|
-
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 };
|
|
12489
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, 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, 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, CreateOrEditRequest, CreateOrEditResponse, 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, FilterBy, GMBCustomization, GMBPostCustomization, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GeneratedImage, 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, ImageBackground, ImageBlob, ImageCreated, ImageInputSource, ImageModel, ImageOutputFormat, ImageQuality, ImageResponse, ImageSource, ImageStyle, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, Link, LinkV2, MediaType$1 as LinkedInMediaType, 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, 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 };
|
|
10227
12490
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|