@vendasta/social-posts 5.45.8 → 5.47.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/enums/engagement.enum.mjs +13 -0
- package/esm2020/lib/_internal/enums/index.mjs +3 -1
- package/esm2020/lib/_internal/enums/stock-image.enum.mjs +12 -0
- package/esm2020/lib/_internal/image-library.api.service.mjs +40 -0
- package/esm2020/lib/_internal/index.mjs +4 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/engagement.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/social-post-stats.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/stock-image.interface.mjs +8 -0
- package/esm2020/lib/_internal/multilocation-post.api.service.mjs +2 -3
- package/esm2020/lib/_internal/objects/api.mjs +83 -2
- package/esm2020/lib/_internal/objects/engagement.mjs +221 -0
- package/esm2020/lib/_internal/objects/index.mjs +7 -5
- package/esm2020/lib/_internal/objects/social-post-stats.mjs +213 -1
- package/esm2020/lib/_internal/objects/social-posts.mjs +33 -1
- package/esm2020/lib/_internal/objects/stock-image.mjs +110 -0
- package/esm2020/lib/_internal/social-mentions.api.service.mjs +40 -0
- package/esm2020/lib/_internal/social-post-engagements.api.service.mjs +40 -0
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/multilocation-posts.service.mjs +1 -1
- package/esm2020/lib/social-mentions.service.mjs +27 -0
- package/fesm2015/vendasta-social-posts.mjs +962 -164
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +962 -164
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/engagement.enum.d.ts +5 -0
- package/lib/_internal/enums/index.d.ts +2 -0
- package/lib/_internal/enums/stock-image.enum.d.ts +4 -0
- package/lib/_internal/image-library.api.service.d.ts +13 -0
- package/lib/_internal/index.d.ts +3 -0
- package/lib/_internal/interfaces/api.interface.d.ts +17 -1
- package/lib/_internal/interfaces/engagement.interface.d.ts +37 -0
- package/lib/_internal/interfaces/index.d.ts +6 -4
- package/lib/_internal/interfaces/social-post-stats.interface.d.ts +32 -0
- package/lib/_internal/interfaces/social-posts.interface.d.ts +7 -0
- package/lib/_internal/interfaces/stock-image.interface.d.ts +21 -0
- package/lib/_internal/multilocation-post.api.service.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +26 -1
- package/lib/_internal/objects/engagement.d.ts +60 -0
- package/lib/_internal/objects/index.d.ts +6 -4
- package/lib/_internal/objects/social-post-stats.d.ts +44 -0
- package/lib/_internal/objects/social-posts.d.ts +10 -0
- package/lib/_internal/objects/stock-image.d.ts +32 -0
- package/lib/_internal/social-mentions.api.service.d.ts +13 -0
- package/lib/_internal/social-post-engagements.api.service.d.ts +13 -0
- package/lib/index.d.ts +1 -0
- package/lib/multilocation-posts.service.d.ts +1 -1
- package/lib/social-mentions.service.d.ts +11 -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$k(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$j(enumRef, value) {
|
|
35
35
|
if (typeof value === 'number') {
|
|
36
36
|
return value;
|
|
37
37
|
}
|
|
@@ -171,6 +171,31 @@ var RemoveReason;
|
|
|
171
171
|
RemoveReason[RemoveReason["REMOVE_REASON_DELETE"] = 1] = "REMOVE_REASON_DELETE";
|
|
172
172
|
})(RemoveReason || (RemoveReason = {}));
|
|
173
173
|
|
|
174
|
+
// *********************************
|
|
175
|
+
// Code generated by sdkgen
|
|
176
|
+
// DO NOT EDIT!.
|
|
177
|
+
//
|
|
178
|
+
// Enums.
|
|
179
|
+
// *********************************
|
|
180
|
+
var SortBySortDirection;
|
|
181
|
+
(function (SortBySortDirection) {
|
|
182
|
+
SortBySortDirection[SortBySortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
|
|
183
|
+
SortBySortDirection[SortBySortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
|
|
184
|
+
SortBySortDirection[SortBySortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
185
|
+
})(SortBySortDirection || (SortBySortDirection = {}));
|
|
186
|
+
|
|
187
|
+
// *********************************
|
|
188
|
+
// Code generated by sdkgen
|
|
189
|
+
// DO NOT EDIT!.
|
|
190
|
+
//
|
|
191
|
+
// Enums.
|
|
192
|
+
// *********************************
|
|
193
|
+
var ImageSource;
|
|
194
|
+
(function (ImageSource) {
|
|
195
|
+
ImageSource[ImageSource["PEXELS"] = 0] = "PEXELS";
|
|
196
|
+
ImageSource[ImageSource["PIXABAY"] = 1] = "PIXABAY";
|
|
197
|
+
})(ImageSource || (ImageSource = {}));
|
|
198
|
+
|
|
174
199
|
// *********************************
|
|
175
200
|
// Code generated by sdkgen
|
|
176
201
|
// DO NOT EDIT!.
|
|
@@ -316,7 +341,7 @@ var Role;
|
|
|
316
341
|
// Enums Index.
|
|
317
342
|
// *********************************
|
|
318
343
|
|
|
319
|
-
function enumStringToValue$
|
|
344
|
+
function enumStringToValue$i(enumRef, value) {
|
|
320
345
|
if (typeof value === 'number') {
|
|
321
346
|
return value;
|
|
322
347
|
}
|
|
@@ -388,7 +413,7 @@ class CallToAction {
|
|
|
388
413
|
let m = new CallToAction();
|
|
389
414
|
m = Object.assign(m, proto);
|
|
390
415
|
if (proto.actionType) {
|
|
391
|
-
m.actionType = enumStringToValue$
|
|
416
|
+
m.actionType = enumStringToValue$i(CallToActionCallToActionType, proto.actionType);
|
|
392
417
|
}
|
|
393
418
|
return m;
|
|
394
419
|
}
|
|
@@ -490,6 +515,38 @@ class Event {
|
|
|
490
515
|
return toReturn;
|
|
491
516
|
}
|
|
492
517
|
}
|
|
518
|
+
class FacebookPageInfo {
|
|
519
|
+
static fromProto(proto) {
|
|
520
|
+
let m = new FacebookPageInfo();
|
|
521
|
+
m = Object.assign(m, proto);
|
|
522
|
+
return m;
|
|
523
|
+
}
|
|
524
|
+
constructor(kwargs) {
|
|
525
|
+
if (!kwargs) {
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
Object.assign(this, kwargs);
|
|
529
|
+
}
|
|
530
|
+
toApiJson() {
|
|
531
|
+
const toReturn = {};
|
|
532
|
+
if (typeof this.id !== 'undefined') {
|
|
533
|
+
toReturn['id'] = this.id;
|
|
534
|
+
}
|
|
535
|
+
if (typeof this.name !== 'undefined') {
|
|
536
|
+
toReturn['name'] = this.name;
|
|
537
|
+
}
|
|
538
|
+
if (typeof this.category !== 'undefined') {
|
|
539
|
+
toReturn['category'] = this.category;
|
|
540
|
+
}
|
|
541
|
+
if (typeof this.profileUrl !== 'undefined') {
|
|
542
|
+
toReturn['profileUrl'] = this.profileUrl;
|
|
543
|
+
}
|
|
544
|
+
if (typeof this.profileImageUrl !== 'undefined') {
|
|
545
|
+
toReturn['profileImageUrl'] = this.profileImageUrl;
|
|
546
|
+
}
|
|
547
|
+
return toReturn;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
493
550
|
class MLPostCategory {
|
|
494
551
|
static fromProto(proto) {
|
|
495
552
|
let m = new MLPostCategory();
|
|
@@ -594,7 +651,7 @@ class PostTemplate {
|
|
|
594
651
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
595
652
|
}
|
|
596
653
|
if (proto.postType) {
|
|
597
|
-
m.postType = enumStringToValue$
|
|
654
|
+
m.postType = enumStringToValue$i(PostType, proto.postType);
|
|
598
655
|
}
|
|
599
656
|
if (proto.youtubeCustomization) {
|
|
600
657
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -677,7 +734,7 @@ class SSIDPostType {
|
|
|
677
734
|
let m = new SSIDPostType();
|
|
678
735
|
m = Object.assign(m, proto);
|
|
679
736
|
if (proto.postType) {
|
|
680
|
-
m.postType = enumStringToValue$
|
|
737
|
+
m.postType = enumStringToValue$i(PostType, proto.postType);
|
|
681
738
|
}
|
|
682
739
|
return m;
|
|
683
740
|
}
|
|
@@ -761,10 +818,10 @@ class SocialPost {
|
|
|
761
818
|
m.posted = new Date(proto.posted);
|
|
762
819
|
}
|
|
763
820
|
if (proto.deletionStatus) {
|
|
764
|
-
m.deletionStatus = enumStringToValue$
|
|
821
|
+
m.deletionStatus = enumStringToValue$i(SocialPostDeletionStatus, proto.deletionStatus);
|
|
765
822
|
}
|
|
766
823
|
if (proto.service) {
|
|
767
|
-
m.service = enumStringToValue$
|
|
824
|
+
m.service = enumStringToValue$i(SocialPostService, proto.service);
|
|
768
825
|
}
|
|
769
826
|
if (proto.created) {
|
|
770
827
|
m.created = new Date(proto.created);
|
|
@@ -773,7 +830,7 @@ class SocialPost {
|
|
|
773
830
|
m.scheduled = new Date(proto.scheduled);
|
|
774
831
|
}
|
|
775
832
|
if (proto.status) {
|
|
776
|
-
m.status = enumStringToValue$
|
|
833
|
+
m.status = enumStringToValue$i(PostingStatus, proto.status);
|
|
777
834
|
}
|
|
778
835
|
if (proto.event) {
|
|
779
836
|
m.event = Event.fromProto(proto.event);
|
|
@@ -785,7 +842,7 @@ class SocialPost {
|
|
|
785
842
|
m.error = Error.fromProto(proto.error);
|
|
786
843
|
}
|
|
787
844
|
if (proto.postType) {
|
|
788
|
-
m.postType = enumStringToValue$
|
|
845
|
+
m.postType = enumStringToValue$i(PostType, proto.postType);
|
|
789
846
|
}
|
|
790
847
|
if (proto.mediaEntries) {
|
|
791
848
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -986,7 +1043,7 @@ class YoutubeCustomization {
|
|
|
986
1043
|
let m = new YoutubeCustomization();
|
|
987
1044
|
m = Object.assign(m, proto);
|
|
988
1045
|
if (proto.privacyStatus) {
|
|
989
|
-
m.privacyStatus = enumStringToValue$
|
|
1046
|
+
m.privacyStatus = enumStringToValue$i(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
990
1047
|
}
|
|
991
1048
|
return m;
|
|
992
1049
|
}
|
|
@@ -1008,7 +1065,7 @@ class YoutubeCustomization {
|
|
|
1008
1065
|
}
|
|
1009
1066
|
}
|
|
1010
1067
|
|
|
1011
|
-
function enumStringToValue$
|
|
1068
|
+
function enumStringToValue$h(enumRef, value) {
|
|
1012
1069
|
if (typeof value === 'number') {
|
|
1013
1070
|
return value;
|
|
1014
1071
|
}
|
|
@@ -1149,7 +1206,7 @@ class MultilocationPost {
|
|
|
1149
1206
|
m.postCategory = MLPostCategory.fromProto(proto.postCategory);
|
|
1150
1207
|
}
|
|
1151
1208
|
if (proto.postState) {
|
|
1152
|
-
m.postState = enumStringToValue$
|
|
1209
|
+
m.postState = enumStringToValue$h(MLPostState, proto.postState);
|
|
1153
1210
|
}
|
|
1154
1211
|
if (proto.postCustomizationByLocation) {
|
|
1155
1212
|
m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
|
|
@@ -1333,7 +1390,7 @@ class PostCustomizationByLocation {
|
|
|
1333
1390
|
let m = new PostCustomizationByLocation();
|
|
1334
1391
|
m = Object.assign(m, proto);
|
|
1335
1392
|
if (proto.customizationStatus) {
|
|
1336
|
-
m.customizationStatus = enumStringToValue$
|
|
1393
|
+
m.customizationStatus = enumStringToValue$h(CustomizationStatus, proto.customizationStatus);
|
|
1337
1394
|
}
|
|
1338
1395
|
return m;
|
|
1339
1396
|
}
|
|
@@ -1387,7 +1444,7 @@ class PostEvent {
|
|
|
1387
1444
|
}
|
|
1388
1445
|
}
|
|
1389
1446
|
|
|
1390
|
-
function enumStringToValue$
|
|
1447
|
+
function enumStringToValue$g(enumRef, value) {
|
|
1391
1448
|
if (typeof value === 'number') {
|
|
1392
1449
|
return value;
|
|
1393
1450
|
}
|
|
@@ -1441,7 +1498,7 @@ class PexelsImage {
|
|
|
1441
1498
|
}
|
|
1442
1499
|
}
|
|
1443
1500
|
|
|
1444
|
-
function enumStringToValue$
|
|
1501
|
+
function enumStringToValue$f(enumRef, value) {
|
|
1445
1502
|
if (typeof value === 'number') {
|
|
1446
1503
|
return value;
|
|
1447
1504
|
}
|
|
@@ -1582,7 +1639,7 @@ class PixabayImage {
|
|
|
1582
1639
|
}
|
|
1583
1640
|
}
|
|
1584
1641
|
|
|
1585
|
-
function enumStringToValue$
|
|
1642
|
+
function enumStringToValue$e(enumRef, value) {
|
|
1586
1643
|
if (typeof value === 'number') {
|
|
1587
1644
|
return value;
|
|
1588
1645
|
}
|
|
@@ -1641,6 +1698,100 @@ class FacebookPostStats {
|
|
|
1641
1698
|
return toReturn;
|
|
1642
1699
|
}
|
|
1643
1700
|
}
|
|
1701
|
+
class InstagramPostStats {
|
|
1702
|
+
static fromProto(proto) {
|
|
1703
|
+
let m = new InstagramPostStats();
|
|
1704
|
+
m = Object.assign(m, proto);
|
|
1705
|
+
if (proto.likeCount) {
|
|
1706
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1707
|
+
}
|
|
1708
|
+
if (proto.commentCount) {
|
|
1709
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1710
|
+
}
|
|
1711
|
+
if (proto.saves) {
|
|
1712
|
+
m.saves = parseInt(proto.saves, 10);
|
|
1713
|
+
}
|
|
1714
|
+
if (proto.reach) {
|
|
1715
|
+
m.reach = parseInt(proto.reach, 10);
|
|
1716
|
+
}
|
|
1717
|
+
if (proto.videoViews) {
|
|
1718
|
+
m.videoViews = parseInt(proto.videoViews, 10);
|
|
1719
|
+
}
|
|
1720
|
+
return m;
|
|
1721
|
+
}
|
|
1722
|
+
constructor(kwargs) {
|
|
1723
|
+
if (!kwargs) {
|
|
1724
|
+
return;
|
|
1725
|
+
}
|
|
1726
|
+
Object.assign(this, kwargs);
|
|
1727
|
+
}
|
|
1728
|
+
toApiJson() {
|
|
1729
|
+
const toReturn = {};
|
|
1730
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1731
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1732
|
+
}
|
|
1733
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1734
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1735
|
+
}
|
|
1736
|
+
if (typeof this.saves !== 'undefined') {
|
|
1737
|
+
toReturn['saves'] = this.saves;
|
|
1738
|
+
}
|
|
1739
|
+
if (typeof this.reach !== 'undefined') {
|
|
1740
|
+
toReturn['reach'] = this.reach;
|
|
1741
|
+
}
|
|
1742
|
+
if (typeof this.videoViews !== 'undefined') {
|
|
1743
|
+
toReturn['videoViews'] = this.videoViews;
|
|
1744
|
+
}
|
|
1745
|
+
return toReturn;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
class LinkedInPostStats {
|
|
1749
|
+
static fromProto(proto) {
|
|
1750
|
+
let m = new LinkedInPostStats();
|
|
1751
|
+
m = Object.assign(m, proto);
|
|
1752
|
+
if (proto.likeCount) {
|
|
1753
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1754
|
+
}
|
|
1755
|
+
if (proto.commentCount) {
|
|
1756
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1757
|
+
}
|
|
1758
|
+
if (proto.shareCount) {
|
|
1759
|
+
m.shareCount = parseInt(proto.shareCount, 10);
|
|
1760
|
+
}
|
|
1761
|
+
if (proto.clicks) {
|
|
1762
|
+
m.clicks = parseInt(proto.clicks, 10);
|
|
1763
|
+
}
|
|
1764
|
+
if (proto.impressions) {
|
|
1765
|
+
m.impressions = parseInt(proto.impressions, 10);
|
|
1766
|
+
}
|
|
1767
|
+
return m;
|
|
1768
|
+
}
|
|
1769
|
+
constructor(kwargs) {
|
|
1770
|
+
if (!kwargs) {
|
|
1771
|
+
return;
|
|
1772
|
+
}
|
|
1773
|
+
Object.assign(this, kwargs);
|
|
1774
|
+
}
|
|
1775
|
+
toApiJson() {
|
|
1776
|
+
const toReturn = {};
|
|
1777
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1778
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1779
|
+
}
|
|
1780
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1781
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1782
|
+
}
|
|
1783
|
+
if (typeof this.shareCount !== 'undefined') {
|
|
1784
|
+
toReturn['shareCount'] = this.shareCount;
|
|
1785
|
+
}
|
|
1786
|
+
if (typeof this.clicks !== 'undefined') {
|
|
1787
|
+
toReturn['clicks'] = this.clicks;
|
|
1788
|
+
}
|
|
1789
|
+
if (typeof this.impressions !== 'undefined') {
|
|
1790
|
+
toReturn['impressions'] = this.impressions;
|
|
1791
|
+
}
|
|
1792
|
+
return toReturn;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1644
1795
|
class SocialPostStats {
|
|
1645
1796
|
static fromProto(proto) {
|
|
1646
1797
|
let m = new SocialPostStats();
|
|
@@ -1651,6 +1802,18 @@ class SocialPostStats {
|
|
|
1651
1802
|
if (proto.twitterPostStats) {
|
|
1652
1803
|
m.twitterPostStats = TwitterPostStats.fromProto(proto.twitterPostStats);
|
|
1653
1804
|
}
|
|
1805
|
+
if (proto.linkedinPostStats) {
|
|
1806
|
+
m.linkedinPostStats = LinkedInPostStats.fromProto(proto.linkedinPostStats);
|
|
1807
|
+
}
|
|
1808
|
+
if (proto.instagramPostStats) {
|
|
1809
|
+
m.instagramPostStats = InstagramPostStats.fromProto(proto.instagramPostStats);
|
|
1810
|
+
}
|
|
1811
|
+
if (proto.youtubePostStats) {
|
|
1812
|
+
m.youtubePostStats = YoutubePostStats.fromProto(proto.youtubePostStats);
|
|
1813
|
+
}
|
|
1814
|
+
if (proto.tiktokPostStats) {
|
|
1815
|
+
m.tiktokPostStats = TikTokPostStats.fromProto(proto.tiktokPostStats);
|
|
1816
|
+
}
|
|
1654
1817
|
return m;
|
|
1655
1818
|
}
|
|
1656
1819
|
constructor(kwargs) {
|
|
@@ -1670,6 +1833,59 @@ class SocialPostStats {
|
|
|
1670
1833
|
if (typeof this.twitterPostStats !== 'undefined' && this.twitterPostStats !== null) {
|
|
1671
1834
|
toReturn['twitterPostStats'] = 'toApiJson' in this.twitterPostStats ? this.twitterPostStats.toApiJson() : this.twitterPostStats;
|
|
1672
1835
|
}
|
|
1836
|
+
if (typeof this.linkedinPostStats !== 'undefined' && this.linkedinPostStats !== null) {
|
|
1837
|
+
toReturn['linkedinPostStats'] = 'toApiJson' in this.linkedinPostStats ? this.linkedinPostStats.toApiJson() : this.linkedinPostStats;
|
|
1838
|
+
}
|
|
1839
|
+
if (typeof this.instagramPostStats !== 'undefined' && this.instagramPostStats !== null) {
|
|
1840
|
+
toReturn['instagramPostStats'] = 'toApiJson' in this.instagramPostStats ? this.instagramPostStats.toApiJson() : this.instagramPostStats;
|
|
1841
|
+
}
|
|
1842
|
+
if (typeof this.youtubePostStats !== 'undefined' && this.youtubePostStats !== null) {
|
|
1843
|
+
toReturn['youtubePostStats'] = 'toApiJson' in this.youtubePostStats ? this.youtubePostStats.toApiJson() : this.youtubePostStats;
|
|
1844
|
+
}
|
|
1845
|
+
if (typeof this.tiktokPostStats !== 'undefined' && this.tiktokPostStats !== null) {
|
|
1846
|
+
toReturn['tiktokPostStats'] = 'toApiJson' in this.tiktokPostStats ? this.tiktokPostStats.toApiJson() : this.tiktokPostStats;
|
|
1847
|
+
}
|
|
1848
|
+
return toReturn;
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
class TikTokPostStats {
|
|
1852
|
+
static fromProto(proto) {
|
|
1853
|
+
let m = new TikTokPostStats();
|
|
1854
|
+
m = Object.assign(m, proto);
|
|
1855
|
+
if (proto.likeCount) {
|
|
1856
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1857
|
+
}
|
|
1858
|
+
if (proto.commentCount) {
|
|
1859
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1860
|
+
}
|
|
1861
|
+
if (proto.shareCount) {
|
|
1862
|
+
m.shareCount = parseInt(proto.shareCount, 10);
|
|
1863
|
+
}
|
|
1864
|
+
if (proto.peopleReached) {
|
|
1865
|
+
m.peopleReached = parseInt(proto.peopleReached, 10);
|
|
1866
|
+
}
|
|
1867
|
+
return m;
|
|
1868
|
+
}
|
|
1869
|
+
constructor(kwargs) {
|
|
1870
|
+
if (!kwargs) {
|
|
1871
|
+
return;
|
|
1872
|
+
}
|
|
1873
|
+
Object.assign(this, kwargs);
|
|
1874
|
+
}
|
|
1875
|
+
toApiJson() {
|
|
1876
|
+
const toReturn = {};
|
|
1877
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1878
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1879
|
+
}
|
|
1880
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1881
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1882
|
+
}
|
|
1883
|
+
if (typeof this.shareCount !== 'undefined') {
|
|
1884
|
+
toReturn['shareCount'] = this.shareCount;
|
|
1885
|
+
}
|
|
1886
|
+
if (typeof this.peopleReached !== 'undefined') {
|
|
1887
|
+
toReturn['peopleReached'] = this.peopleReached;
|
|
1888
|
+
}
|
|
1673
1889
|
return toReturn;
|
|
1674
1890
|
}
|
|
1675
1891
|
}
|
|
@@ -1708,8 +1924,61 @@ class TwitterPostStats {
|
|
|
1708
1924
|
return toReturn;
|
|
1709
1925
|
}
|
|
1710
1926
|
}
|
|
1927
|
+
class YoutubePostStats {
|
|
1928
|
+
static fromProto(proto) {
|
|
1929
|
+
let m = new YoutubePostStats();
|
|
1930
|
+
m = Object.assign(m, proto);
|
|
1931
|
+
if (proto.likeCount) {
|
|
1932
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1933
|
+
}
|
|
1934
|
+
if (proto.commentCount) {
|
|
1935
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1936
|
+
}
|
|
1937
|
+
if (proto.favourites) {
|
|
1938
|
+
m.favourites = parseInt(proto.favourites, 10);
|
|
1939
|
+
}
|
|
1940
|
+
if (proto.views) {
|
|
1941
|
+
m.views = parseInt(proto.views, 10);
|
|
1942
|
+
}
|
|
1943
|
+
if (proto.videoViews) {
|
|
1944
|
+
m.videoViews = parseInt(proto.videoViews, 10);
|
|
1945
|
+
}
|
|
1946
|
+
if (proto.dislikeCount) {
|
|
1947
|
+
m.dislikeCount = parseInt(proto.dislikeCount, 10);
|
|
1948
|
+
}
|
|
1949
|
+
return m;
|
|
1950
|
+
}
|
|
1951
|
+
constructor(kwargs) {
|
|
1952
|
+
if (!kwargs) {
|
|
1953
|
+
return;
|
|
1954
|
+
}
|
|
1955
|
+
Object.assign(this, kwargs);
|
|
1956
|
+
}
|
|
1957
|
+
toApiJson() {
|
|
1958
|
+
const toReturn = {};
|
|
1959
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1960
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1961
|
+
}
|
|
1962
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1963
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1964
|
+
}
|
|
1965
|
+
if (typeof this.favourites !== 'undefined') {
|
|
1966
|
+
toReturn['favourites'] = this.favourites;
|
|
1967
|
+
}
|
|
1968
|
+
if (typeof this.views !== 'undefined') {
|
|
1969
|
+
toReturn['views'] = this.views;
|
|
1970
|
+
}
|
|
1971
|
+
if (typeof this.videoViews !== 'undefined') {
|
|
1972
|
+
toReturn['videoViews'] = this.videoViews;
|
|
1973
|
+
}
|
|
1974
|
+
if (typeof this.dislikeCount !== 'undefined') {
|
|
1975
|
+
toReturn['dislikeCount'] = this.dislikeCount;
|
|
1976
|
+
}
|
|
1977
|
+
return toReturn;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1711
1980
|
|
|
1712
|
-
function enumStringToValue$
|
|
1981
|
+
function enumStringToValue$d(enumRef, value) {
|
|
1713
1982
|
if (typeof value === 'number') {
|
|
1714
1983
|
return value;
|
|
1715
1984
|
}
|
|
@@ -1815,7 +2084,7 @@ class TenorMediaObject {
|
|
|
1815
2084
|
}
|
|
1816
2085
|
}
|
|
1817
2086
|
|
|
1818
|
-
function enumStringToValue$
|
|
2087
|
+
function enumStringToValue$c(enumRef, value) {
|
|
1819
2088
|
if (typeof value === 'number') {
|
|
1820
2089
|
return value;
|
|
1821
2090
|
}
|
|
@@ -1864,7 +2133,7 @@ class BulkCreateMultilocationPostResponse {
|
|
|
1864
2133
|
let m = new BulkCreateMultilocationPostResponse();
|
|
1865
2134
|
m = Object.assign(m, proto);
|
|
1866
2135
|
if (proto.status) {
|
|
1867
|
-
m.status = enumStringToValue$
|
|
2136
|
+
m.status = enumStringToValue$c(BulkPostStatus, proto.status);
|
|
1868
2137
|
}
|
|
1869
2138
|
if (proto.error) {
|
|
1870
2139
|
m.error = proto.error.map(MultilocationPostError.fromProto);
|
|
@@ -2023,7 +2292,7 @@ class CreatePostTemplateRequest {
|
|
|
2023
2292
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
2024
2293
|
}
|
|
2025
2294
|
if (proto.postType) {
|
|
2026
|
-
m.postType = enumStringToValue$
|
|
2295
|
+
m.postType = enumStringToValue$c(PostType, proto.postType);
|
|
2027
2296
|
}
|
|
2028
2297
|
if (proto.youtubeCustomization) {
|
|
2029
2298
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -2369,13 +2638,10 @@ class EditMultilocationPostResponse {
|
|
|
2369
2638
|
return toReturn;
|
|
2370
2639
|
}
|
|
2371
2640
|
}
|
|
2372
|
-
class
|
|
2641
|
+
class FetchFacebookMentionInfoRequest {
|
|
2373
2642
|
static fromProto(proto) {
|
|
2374
|
-
let m = new
|
|
2643
|
+
let m = new FetchFacebookMentionInfoRequest();
|
|
2375
2644
|
m = Object.assign(m, proto);
|
|
2376
|
-
if (proto.dateRange) {
|
|
2377
|
-
m.dateRange = DateRangeFilter.fromProto(proto.dateRange);
|
|
2378
|
-
}
|
|
2379
2645
|
return m;
|
|
2380
2646
|
}
|
|
2381
2647
|
constructor(kwargs) {
|
|
@@ -2386,15 +2652,73 @@ class PartnerListScheduledSocialPostsRequestFilters {
|
|
|
2386
2652
|
}
|
|
2387
2653
|
toApiJson() {
|
|
2388
2654
|
const toReturn = {};
|
|
2389
|
-
if (typeof this.
|
|
2390
|
-
toReturn['
|
|
2655
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
2656
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
2391
2657
|
}
|
|
2392
2658
|
if (typeof this.partnerId !== 'undefined') {
|
|
2393
2659
|
toReturn['partnerId'] = this.partnerId;
|
|
2394
2660
|
}
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
}
|
|
2661
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
2662
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
2663
|
+
}
|
|
2664
|
+
if (typeof this.socialProfileId !== 'undefined') {
|
|
2665
|
+
toReturn['socialProfileId'] = this.socialProfileId;
|
|
2666
|
+
}
|
|
2667
|
+
if (typeof this.pageIds !== 'undefined') {
|
|
2668
|
+
toReturn['pageIds'] = this.pageIds;
|
|
2669
|
+
}
|
|
2670
|
+
return toReturn;
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
class FetchFacebookMentionInfoResponse {
|
|
2674
|
+
static fromProto(proto) {
|
|
2675
|
+
let m = new FetchFacebookMentionInfoResponse();
|
|
2676
|
+
m = Object.assign(m, proto);
|
|
2677
|
+
if (proto.pageInfo) {
|
|
2678
|
+
m.pageInfo = Object.keys(proto.pageInfo).reduce((obj, k) => { obj[k] = FacebookPageInfo.fromProto(proto.pageInfo[k]); return obj; }, {});
|
|
2679
|
+
}
|
|
2680
|
+
return m;
|
|
2681
|
+
}
|
|
2682
|
+
constructor(kwargs) {
|
|
2683
|
+
if (!kwargs) {
|
|
2684
|
+
return;
|
|
2685
|
+
}
|
|
2686
|
+
Object.assign(this, kwargs);
|
|
2687
|
+
}
|
|
2688
|
+
toApiJson() {
|
|
2689
|
+
const toReturn = {};
|
|
2690
|
+
if (typeof this.pageInfo !== 'undefined' && this.pageInfo !== null) {
|
|
2691
|
+
toReturn['pageInfo'] = 'toApiJson' in this.pageInfo ? this.pageInfo.toApiJson() : this.pageInfo;
|
|
2692
|
+
}
|
|
2693
|
+
return toReturn;
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
class PartnerListScheduledSocialPostsRequestFilters {
|
|
2697
|
+
static fromProto(proto) {
|
|
2698
|
+
let m = new PartnerListScheduledSocialPostsRequestFilters();
|
|
2699
|
+
m = Object.assign(m, proto);
|
|
2700
|
+
if (proto.dateRange) {
|
|
2701
|
+
m.dateRange = DateRangeFilter.fromProto(proto.dateRange);
|
|
2702
|
+
}
|
|
2703
|
+
return m;
|
|
2704
|
+
}
|
|
2705
|
+
constructor(kwargs) {
|
|
2706
|
+
if (!kwargs) {
|
|
2707
|
+
return;
|
|
2708
|
+
}
|
|
2709
|
+
Object.assign(this, kwargs);
|
|
2710
|
+
}
|
|
2711
|
+
toApiJson() {
|
|
2712
|
+
const toReturn = {};
|
|
2713
|
+
if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
|
|
2714
|
+
toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
|
|
2715
|
+
}
|
|
2716
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
2717
|
+
toReturn['partnerId'] = this.partnerId;
|
|
2718
|
+
}
|
|
2719
|
+
return toReturn;
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2398
2722
|
class GenerateCSVForPerformanceStatsRequest {
|
|
2399
2723
|
static fromProto(proto) {
|
|
2400
2724
|
let m = new GenerateCSVForPerformanceStatsRequest();
|
|
@@ -3174,6 +3498,32 @@ class ListTenorGifsResponse {
|
|
|
3174
3498
|
return toReturn;
|
|
3175
3499
|
}
|
|
3176
3500
|
}
|
|
3501
|
+
class FetchFacebookMentionInfoResponsePageInfoEntry {
|
|
3502
|
+
static fromProto(proto) {
|
|
3503
|
+
let m = new FetchFacebookMentionInfoResponsePageInfoEntry();
|
|
3504
|
+
m = Object.assign(m, proto);
|
|
3505
|
+
if (proto.value) {
|
|
3506
|
+
m.value = FacebookPageInfo.fromProto(proto.value);
|
|
3507
|
+
}
|
|
3508
|
+
return m;
|
|
3509
|
+
}
|
|
3510
|
+
constructor(kwargs) {
|
|
3511
|
+
if (!kwargs) {
|
|
3512
|
+
return;
|
|
3513
|
+
}
|
|
3514
|
+
Object.assign(this, kwargs);
|
|
3515
|
+
}
|
|
3516
|
+
toApiJson() {
|
|
3517
|
+
const toReturn = {};
|
|
3518
|
+
if (typeof this.key !== 'undefined') {
|
|
3519
|
+
toReturn['key'] = this.key;
|
|
3520
|
+
}
|
|
3521
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
3522
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
3523
|
+
}
|
|
3524
|
+
return toReturn;
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3177
3527
|
class PartnerListScheduledPostsResponse {
|
|
3178
3528
|
static fromProto(proto) {
|
|
3179
3529
|
let m = new PartnerListScheduledPostsResponse();
|
|
@@ -3347,7 +3697,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
3347
3697
|
let m = new RemoveFromMultilocationPostRequest();
|
|
3348
3698
|
m = Object.assign(m, proto);
|
|
3349
3699
|
if (proto.reason) {
|
|
3350
|
-
m.reason = enumStringToValue$
|
|
3700
|
+
m.reason = enumStringToValue$c(RemoveReason, proto.reason);
|
|
3351
3701
|
}
|
|
3352
3702
|
if (proto.locations) {
|
|
3353
3703
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -3442,28 +3792,382 @@ class SchedulePostResponse {
|
|
|
3442
3792
|
if (proto.statuses) {
|
|
3443
3793
|
m.statuses = proto.statuses.map(SchedulePostStatus.fromProto);
|
|
3444
3794
|
}
|
|
3445
|
-
return m;
|
|
3446
|
-
}
|
|
3447
|
-
constructor(kwargs) {
|
|
3448
|
-
if (!kwargs) {
|
|
3449
|
-
return;
|
|
3795
|
+
return m;
|
|
3796
|
+
}
|
|
3797
|
+
constructor(kwargs) {
|
|
3798
|
+
if (!kwargs) {
|
|
3799
|
+
return;
|
|
3800
|
+
}
|
|
3801
|
+
Object.assign(this, kwargs);
|
|
3802
|
+
}
|
|
3803
|
+
toApiJson() {
|
|
3804
|
+
const toReturn = {};
|
|
3805
|
+
if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
|
|
3806
|
+
toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
|
|
3807
|
+
}
|
|
3808
|
+
return toReturn;
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
class ScheduleToAllPagesRequest {
|
|
3812
|
+
static fromProto(proto) {
|
|
3813
|
+
let m = new ScheduleToAllPagesRequest();
|
|
3814
|
+
m = Object.assign(m, proto);
|
|
3815
|
+
if (proto.socialPost) {
|
|
3816
|
+
m.socialPost = SocialPostData.fromProto(proto.socialPost);
|
|
3817
|
+
}
|
|
3818
|
+
return m;
|
|
3819
|
+
}
|
|
3820
|
+
constructor(kwargs) {
|
|
3821
|
+
if (!kwargs) {
|
|
3822
|
+
return;
|
|
3823
|
+
}
|
|
3824
|
+
Object.assign(this, kwargs);
|
|
3825
|
+
}
|
|
3826
|
+
toApiJson() {
|
|
3827
|
+
const toReturn = {};
|
|
3828
|
+
if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
|
|
3829
|
+
toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
|
|
3830
|
+
}
|
|
3831
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
3832
|
+
toReturn['partnerId'] = this.partnerId;
|
|
3833
|
+
}
|
|
3834
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3835
|
+
toReturn['businessId'] = this.businessId;
|
|
3836
|
+
}
|
|
3837
|
+
return toReturn;
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
class ScheduleToAllPagesResponse {
|
|
3841
|
+
static fromProto(proto) {
|
|
3842
|
+
let m = new ScheduleToAllPagesResponse();
|
|
3843
|
+
m = Object.assign(m, proto);
|
|
3844
|
+
if (proto.statuses) {
|
|
3845
|
+
m.statuses = proto.statuses.map(SchedulePostStatus.fromProto);
|
|
3846
|
+
}
|
|
3847
|
+
return m;
|
|
3848
|
+
}
|
|
3849
|
+
constructor(kwargs) {
|
|
3850
|
+
if (!kwargs) {
|
|
3851
|
+
return;
|
|
3852
|
+
}
|
|
3853
|
+
Object.assign(this, kwargs);
|
|
3854
|
+
}
|
|
3855
|
+
toApiJson() {
|
|
3856
|
+
const toReturn = {};
|
|
3857
|
+
if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
|
|
3858
|
+
toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
|
|
3859
|
+
}
|
|
3860
|
+
return toReturn;
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3863
|
+
class SearchHashtagRequest {
|
|
3864
|
+
static fromProto(proto) {
|
|
3865
|
+
let m = new SearchHashtagRequest();
|
|
3866
|
+
m = Object.assign(m, proto);
|
|
3867
|
+
if (proto.limit) {
|
|
3868
|
+
m.limit = parseInt(proto.limit, 10);
|
|
3869
|
+
}
|
|
3870
|
+
return m;
|
|
3871
|
+
}
|
|
3872
|
+
constructor(kwargs) {
|
|
3873
|
+
if (!kwargs) {
|
|
3874
|
+
return;
|
|
3875
|
+
}
|
|
3876
|
+
Object.assign(this, kwargs);
|
|
3877
|
+
}
|
|
3878
|
+
toApiJson() {
|
|
3879
|
+
const toReturn = {};
|
|
3880
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
3881
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
3882
|
+
}
|
|
3883
|
+
if (typeof this.limit !== 'undefined') {
|
|
3884
|
+
toReturn['limit'] = this.limit;
|
|
3885
|
+
}
|
|
3886
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3887
|
+
toReturn['businessId'] = this.businessId;
|
|
3888
|
+
}
|
|
3889
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
3890
|
+
toReturn['partnerId'] = this.partnerId;
|
|
3891
|
+
}
|
|
3892
|
+
return toReturn;
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3895
|
+
class SearchHashtagResponse {
|
|
3896
|
+
static fromProto(proto) {
|
|
3897
|
+
let m = new SearchHashtagResponse();
|
|
3898
|
+
m = Object.assign(m, proto);
|
|
3899
|
+
if (proto.hashtags) {
|
|
3900
|
+
m.hashtags = proto.hashtags.map(Hashtag.fromProto);
|
|
3901
|
+
}
|
|
3902
|
+
return m;
|
|
3903
|
+
}
|
|
3904
|
+
constructor(kwargs) {
|
|
3905
|
+
if (!kwargs) {
|
|
3906
|
+
return;
|
|
3907
|
+
}
|
|
3908
|
+
Object.assign(this, kwargs);
|
|
3909
|
+
}
|
|
3910
|
+
toApiJson() {
|
|
3911
|
+
const toReturn = {};
|
|
3912
|
+
if (typeof this.hashtags !== 'undefined' && this.hashtags !== null) {
|
|
3913
|
+
toReturn['hashtags'] = 'toApiJson' in this.hashtags ? this.hashtags.toApiJson() : this.hashtags;
|
|
3914
|
+
}
|
|
3915
|
+
return toReturn;
|
|
3916
|
+
}
|
|
3917
|
+
}
|
|
3918
|
+
class SuggestMessageRequest {
|
|
3919
|
+
static fromProto(proto) {
|
|
3920
|
+
let m = new SuggestMessageRequest();
|
|
3921
|
+
m = Object.assign(m, proto);
|
|
3922
|
+
if (proto.length) {
|
|
3923
|
+
m.length = enumStringToValue$c(MessageLength, proto.length);
|
|
3924
|
+
}
|
|
3925
|
+
if (proto.type) {
|
|
3926
|
+
m.type = enumStringToValue$c(TemplateType, proto.type);
|
|
3927
|
+
}
|
|
3928
|
+
if (proto.metadata) {
|
|
3929
|
+
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
3930
|
+
}
|
|
3931
|
+
return m;
|
|
3932
|
+
}
|
|
3933
|
+
constructor(kwargs) {
|
|
3934
|
+
if (!kwargs) {
|
|
3935
|
+
return;
|
|
3936
|
+
}
|
|
3937
|
+
Object.assign(this, kwargs);
|
|
3938
|
+
}
|
|
3939
|
+
toApiJson() {
|
|
3940
|
+
const toReturn = {};
|
|
3941
|
+
if (typeof this.prompt !== 'undefined') {
|
|
3942
|
+
toReturn['prompt'] = this.prompt;
|
|
3943
|
+
}
|
|
3944
|
+
if (typeof this.businessId !== 'undefined') {
|
|
3945
|
+
toReturn['businessId'] = this.businessId;
|
|
3946
|
+
}
|
|
3947
|
+
if (typeof this.length !== 'undefined') {
|
|
3948
|
+
toReturn['length'] = this.length;
|
|
3949
|
+
}
|
|
3950
|
+
if (typeof this.type !== 'undefined') {
|
|
3951
|
+
toReturn['type'] = this.type;
|
|
3952
|
+
}
|
|
3953
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
3954
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
3955
|
+
}
|
|
3956
|
+
return toReturn;
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3959
|
+
class SuggestMessageResponse {
|
|
3960
|
+
static fromProto(proto) {
|
|
3961
|
+
let m = new SuggestMessageResponse();
|
|
3962
|
+
m = Object.assign(m, proto);
|
|
3963
|
+
return m;
|
|
3964
|
+
}
|
|
3965
|
+
constructor(kwargs) {
|
|
3966
|
+
if (!kwargs) {
|
|
3967
|
+
return;
|
|
3968
|
+
}
|
|
3969
|
+
Object.assign(this, kwargs);
|
|
3970
|
+
}
|
|
3971
|
+
toApiJson() {
|
|
3972
|
+
const toReturn = {};
|
|
3973
|
+
if (typeof this.message !== 'undefined') {
|
|
3974
|
+
toReturn['message'] = this.message;
|
|
3975
|
+
}
|
|
3976
|
+
return toReturn;
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
class UpdatePostTemplateRequest {
|
|
3980
|
+
static fromProto(proto) {
|
|
3981
|
+
let m = new UpdatePostTemplateRequest();
|
|
3982
|
+
m = Object.assign(m, proto);
|
|
3983
|
+
if (proto.postDateTime) {
|
|
3984
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
3985
|
+
}
|
|
3986
|
+
if (proto.mediaEntries) {
|
|
3987
|
+
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
3988
|
+
}
|
|
3989
|
+
if (proto.metaData) {
|
|
3990
|
+
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3991
|
+
}
|
|
3992
|
+
if (proto.postType) {
|
|
3993
|
+
m.postType = enumStringToValue$c(PostType, proto.postType);
|
|
3994
|
+
}
|
|
3995
|
+
if (proto.youtubeCustomization) {
|
|
3996
|
+
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
3997
|
+
}
|
|
3998
|
+
return m;
|
|
3999
|
+
}
|
|
4000
|
+
constructor(kwargs) {
|
|
4001
|
+
if (!kwargs) {
|
|
4002
|
+
return;
|
|
4003
|
+
}
|
|
4004
|
+
Object.assign(this, kwargs);
|
|
4005
|
+
}
|
|
4006
|
+
toApiJson() {
|
|
4007
|
+
const toReturn = {};
|
|
4008
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
4009
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
4010
|
+
}
|
|
4011
|
+
if (typeof this.templateId !== 'undefined') {
|
|
4012
|
+
toReturn['templateId'] = this.templateId;
|
|
4013
|
+
}
|
|
4014
|
+
if (typeof this.title !== 'undefined') {
|
|
4015
|
+
toReturn['title'] = this.title;
|
|
4016
|
+
}
|
|
4017
|
+
if (typeof this.postText !== 'undefined') {
|
|
4018
|
+
toReturn['postText'] = this.postText;
|
|
4019
|
+
}
|
|
4020
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
4021
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
4022
|
+
}
|
|
4023
|
+
if (typeof this.gmbPostCustomization !== 'undefined') {
|
|
4024
|
+
toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
|
|
4025
|
+
}
|
|
4026
|
+
if (typeof this.imageUrl !== 'undefined') {
|
|
4027
|
+
toReturn['imageUrl'] = this.imageUrl;
|
|
4028
|
+
}
|
|
4029
|
+
if (typeof this.imagePath !== 'undefined') {
|
|
4030
|
+
toReturn['imagePath'] = this.imagePath;
|
|
4031
|
+
}
|
|
4032
|
+
if (typeof this.imageSize !== 'undefined') {
|
|
4033
|
+
toReturn['imageSize'] = this.imageSize;
|
|
4034
|
+
}
|
|
4035
|
+
if (typeof this.previews !== 'undefined') {
|
|
4036
|
+
toReturn['previews'] = this.previews;
|
|
4037
|
+
}
|
|
4038
|
+
if (typeof this.options !== 'undefined') {
|
|
4039
|
+
toReturn['options'] = this.options;
|
|
4040
|
+
}
|
|
4041
|
+
if (typeof this.videoUrl !== 'undefined') {
|
|
4042
|
+
toReturn['videoUrl'] = this.videoUrl;
|
|
4043
|
+
}
|
|
4044
|
+
if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
|
|
4045
|
+
toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
|
|
4046
|
+
}
|
|
4047
|
+
if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
|
|
4048
|
+
toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
|
|
4049
|
+
}
|
|
4050
|
+
if (typeof this.postType !== 'undefined') {
|
|
4051
|
+
toReturn['postType'] = this.postType;
|
|
4052
|
+
}
|
|
4053
|
+
if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
|
|
4054
|
+
toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
|
|
4055
|
+
}
|
|
4056
|
+
return toReturn;
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
function enumStringToValue$b(enumRef, value) {
|
|
4061
|
+
if (typeof value === 'number') {
|
|
4062
|
+
return value;
|
|
4063
|
+
}
|
|
4064
|
+
return enumRef[value];
|
|
4065
|
+
}
|
|
4066
|
+
class DateRange {
|
|
4067
|
+
static fromProto(proto) {
|
|
4068
|
+
let m = new DateRange();
|
|
4069
|
+
m = Object.assign(m, proto);
|
|
4070
|
+
if (proto.start) {
|
|
4071
|
+
m.start = new Date(proto.start);
|
|
4072
|
+
}
|
|
4073
|
+
if (proto.end) {
|
|
4074
|
+
m.end = new Date(proto.end);
|
|
4075
|
+
}
|
|
4076
|
+
return m;
|
|
4077
|
+
}
|
|
4078
|
+
constructor(kwargs) {
|
|
4079
|
+
if (!kwargs) {
|
|
4080
|
+
return;
|
|
4081
|
+
}
|
|
4082
|
+
Object.assign(this, kwargs);
|
|
4083
|
+
}
|
|
4084
|
+
toApiJson() {
|
|
4085
|
+
const toReturn = {};
|
|
4086
|
+
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
4087
|
+
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
4088
|
+
}
|
|
4089
|
+
if (typeof this.end !== 'undefined' && this.end !== null) {
|
|
4090
|
+
toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
|
|
4091
|
+
}
|
|
4092
|
+
return toReturn;
|
|
4093
|
+
}
|
|
4094
|
+
}
|
|
4095
|
+
class EngagementParameter {
|
|
4096
|
+
static fromProto(proto) {
|
|
4097
|
+
let m = new EngagementParameter();
|
|
4098
|
+
m = Object.assign(m, proto);
|
|
4099
|
+
return m;
|
|
4100
|
+
}
|
|
4101
|
+
constructor(kwargs) {
|
|
4102
|
+
if (!kwargs) {
|
|
4103
|
+
return;
|
|
4104
|
+
}
|
|
4105
|
+
Object.assign(this, kwargs);
|
|
4106
|
+
}
|
|
4107
|
+
toApiJson() {
|
|
4108
|
+
const toReturn = {};
|
|
4109
|
+
if (typeof this.engagementParameter !== 'undefined') {
|
|
4110
|
+
toReturn['engagementParameter'] = this.engagementParameter;
|
|
4111
|
+
}
|
|
4112
|
+
if (typeof this.value !== 'undefined') {
|
|
4113
|
+
toReturn['value'] = this.value;
|
|
4114
|
+
}
|
|
4115
|
+
return toReturn;
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4118
|
+
class ListSocialPostEngagementsRequest {
|
|
4119
|
+
static fromProto(proto) {
|
|
4120
|
+
let m = new ListSocialPostEngagementsRequest();
|
|
4121
|
+
m = Object.assign(m, proto);
|
|
4122
|
+
if (proto.dateRange) {
|
|
4123
|
+
m.dateRange = DateRange.fromProto(proto.dateRange);
|
|
4124
|
+
}
|
|
4125
|
+
if (proto.sortBy) {
|
|
4126
|
+
m.sortBy = proto.sortBy.map(SortBy.fromProto);
|
|
4127
|
+
}
|
|
4128
|
+
if (proto.limit) {
|
|
4129
|
+
m.limit = parseInt(proto.limit, 10);
|
|
4130
|
+
}
|
|
4131
|
+
return m;
|
|
4132
|
+
}
|
|
4133
|
+
constructor(kwargs) {
|
|
4134
|
+
if (!kwargs) {
|
|
4135
|
+
return;
|
|
4136
|
+
}
|
|
4137
|
+
Object.assign(this, kwargs);
|
|
4138
|
+
}
|
|
4139
|
+
toApiJson() {
|
|
4140
|
+
const toReturn = {};
|
|
4141
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
4142
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
4143
|
+
}
|
|
4144
|
+
if (typeof this.networks !== 'undefined') {
|
|
4145
|
+
toReturn['networks'] = this.networks;
|
|
4146
|
+
}
|
|
4147
|
+
if (typeof this.dateRange !== 'undefined' && this.dateRange !== null) {
|
|
4148
|
+
toReturn['dateRange'] = 'toApiJson' in this.dateRange ? this.dateRange.toApiJson() : this.dateRange;
|
|
4149
|
+
}
|
|
4150
|
+
if (typeof this.sortBy !== 'undefined' && this.sortBy !== null) {
|
|
4151
|
+
toReturn['sortBy'] = 'toApiJson' in this.sortBy ? this.sortBy.toApiJson() : this.sortBy;
|
|
4152
|
+
}
|
|
4153
|
+
if (typeof this.limit !== 'undefined') {
|
|
4154
|
+
toReturn['limit'] = this.limit;
|
|
4155
|
+
}
|
|
4156
|
+
if (typeof this.isPostDataNeeded !== 'undefined') {
|
|
4157
|
+
toReturn['isPostDataNeeded'] = this.isPostDataNeeded;
|
|
3450
4158
|
}
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
toApiJson() {
|
|
3454
|
-
const toReturn = {};
|
|
3455
|
-
if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
|
|
3456
|
-
toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
|
|
4159
|
+
if (typeof this.cursor !== 'undefined') {
|
|
4160
|
+
toReturn['cursor'] = this.cursor;
|
|
3457
4161
|
}
|
|
3458
4162
|
return toReturn;
|
|
3459
4163
|
}
|
|
3460
4164
|
}
|
|
3461
|
-
class
|
|
4165
|
+
class ListSocialPostEngagementsResponse {
|
|
3462
4166
|
static fromProto(proto) {
|
|
3463
|
-
let m = new
|
|
4167
|
+
let m = new ListSocialPostEngagementsResponse();
|
|
3464
4168
|
m = Object.assign(m, proto);
|
|
3465
|
-
if (proto.
|
|
3466
|
-
m.
|
|
4169
|
+
if (proto.socialPostEngagements) {
|
|
4170
|
+
m.socialPostEngagements = proto.socialPostEngagements.map(SocialPostEngagement.fromProto);
|
|
3467
4171
|
}
|
|
3468
4172
|
return m;
|
|
3469
4173
|
}
|
|
@@ -3475,24 +4179,21 @@ class ScheduleToAllPagesRequest {
|
|
|
3475
4179
|
}
|
|
3476
4180
|
toApiJson() {
|
|
3477
4181
|
const toReturn = {};
|
|
3478
|
-
if (typeof this.
|
|
3479
|
-
toReturn['
|
|
3480
|
-
}
|
|
3481
|
-
if (typeof this.partnerId !== 'undefined') {
|
|
3482
|
-
toReturn['partnerId'] = this.partnerId;
|
|
4182
|
+
if (typeof this.socialPostEngagements !== 'undefined' && this.socialPostEngagements !== null) {
|
|
4183
|
+
toReturn['socialPostEngagements'] = 'toApiJson' in this.socialPostEngagements ? this.socialPostEngagements.toApiJson() : this.socialPostEngagements;
|
|
3483
4184
|
}
|
|
3484
|
-
if (typeof this.
|
|
3485
|
-
toReturn['
|
|
4185
|
+
if (typeof this.cursor !== 'undefined') {
|
|
4186
|
+
toReturn['cursor'] = this.cursor;
|
|
3486
4187
|
}
|
|
3487
4188
|
return toReturn;
|
|
3488
4189
|
}
|
|
3489
4190
|
}
|
|
3490
|
-
class
|
|
4191
|
+
class SocialEngagement {
|
|
3491
4192
|
static fromProto(proto) {
|
|
3492
|
-
let m = new
|
|
4193
|
+
let m = new SocialEngagement();
|
|
3493
4194
|
m = Object.assign(m, proto);
|
|
3494
|
-
if (proto.
|
|
3495
|
-
m.
|
|
4195
|
+
if (proto.engagementParameters) {
|
|
4196
|
+
m.engagementParameters = proto.engagementParameters.map(EngagementParameter.fromProto);
|
|
3496
4197
|
}
|
|
3497
4198
|
return m;
|
|
3498
4199
|
}
|
|
@@ -3504,18 +4205,24 @@ class ScheduleToAllPagesResponse {
|
|
|
3504
4205
|
}
|
|
3505
4206
|
toApiJson() {
|
|
3506
4207
|
const toReturn = {};
|
|
3507
|
-
if (typeof this.
|
|
3508
|
-
toReturn['
|
|
4208
|
+
if (typeof this.calculatedEngagementRate !== 'undefined') {
|
|
4209
|
+
toReturn['calculatedEngagementRate'] = this.calculatedEngagementRate;
|
|
4210
|
+
}
|
|
4211
|
+
if (typeof this.engagementParameters !== 'undefined' && this.engagementParameters !== null) {
|
|
4212
|
+
toReturn['engagementParameters'] = 'toApiJson' in this.engagementParameters ? this.engagementParameters.toApiJson() : this.engagementParameters;
|
|
3509
4213
|
}
|
|
3510
4214
|
return toReturn;
|
|
3511
4215
|
}
|
|
3512
4216
|
}
|
|
3513
|
-
class
|
|
4217
|
+
class SocialPostEngagement {
|
|
3514
4218
|
static fromProto(proto) {
|
|
3515
|
-
let m = new
|
|
4219
|
+
let m = new SocialPostEngagement();
|
|
3516
4220
|
m = Object.assign(m, proto);
|
|
3517
|
-
if (proto.
|
|
3518
|
-
m.
|
|
4221
|
+
if (proto.socialPost) {
|
|
4222
|
+
m.socialPost = SocialPost.fromProto(proto.socialPost);
|
|
4223
|
+
}
|
|
4224
|
+
if (proto.socialEngagement) {
|
|
4225
|
+
m.socialEngagement = SocialEngagement.fromProto(proto.socialEngagement);
|
|
3519
4226
|
}
|
|
3520
4227
|
return m;
|
|
3521
4228
|
}
|
|
@@ -3527,27 +4234,27 @@ class SearchHashtagRequest {
|
|
|
3527
4234
|
}
|
|
3528
4235
|
toApiJson() {
|
|
3529
4236
|
const toReturn = {};
|
|
3530
|
-
if (typeof this.
|
|
3531
|
-
toReturn['
|
|
4237
|
+
if (typeof this.socialPost !== 'undefined' && this.socialPost !== null) {
|
|
4238
|
+
toReturn['socialPost'] = 'toApiJson' in this.socialPost ? this.socialPost.toApiJson() : this.socialPost;
|
|
3532
4239
|
}
|
|
3533
|
-
if (typeof this.
|
|
3534
|
-
toReturn['
|
|
4240
|
+
if (typeof this.socialEngagement !== 'undefined' && this.socialEngagement !== null) {
|
|
4241
|
+
toReturn['socialEngagement'] = 'toApiJson' in this.socialEngagement ? this.socialEngagement.toApiJson() : this.socialEngagement;
|
|
3535
4242
|
}
|
|
3536
|
-
if (typeof this.
|
|
3537
|
-
toReturn['
|
|
4243
|
+
if (typeof this.network !== 'undefined') {
|
|
4244
|
+
toReturn['network'] = this.network;
|
|
3538
4245
|
}
|
|
3539
|
-
if (typeof this.
|
|
3540
|
-
toReturn['
|
|
4246
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
4247
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
3541
4248
|
}
|
|
3542
4249
|
return toReturn;
|
|
3543
4250
|
}
|
|
3544
4251
|
}
|
|
3545
|
-
class
|
|
4252
|
+
class SortBy {
|
|
3546
4253
|
static fromProto(proto) {
|
|
3547
|
-
let m = new
|
|
4254
|
+
let m = new SortBy();
|
|
3548
4255
|
m = Object.assign(m, proto);
|
|
3549
|
-
if (proto.
|
|
3550
|
-
m.
|
|
4256
|
+
if (proto.sortDirection) {
|
|
4257
|
+
m.sortDirection = enumStringToValue$b(SortBySortDirection, proto.sortDirection);
|
|
3551
4258
|
}
|
|
3552
4259
|
return m;
|
|
3553
4260
|
}
|
|
@@ -3559,24 +4266,28 @@ class SearchHashtagResponse {
|
|
|
3559
4266
|
}
|
|
3560
4267
|
toApiJson() {
|
|
3561
4268
|
const toReturn = {};
|
|
3562
|
-
if (typeof this.
|
|
3563
|
-
toReturn['
|
|
4269
|
+
if (typeof this.field !== 'undefined') {
|
|
4270
|
+
toReturn['field'] = this.field;
|
|
4271
|
+
}
|
|
4272
|
+
if (typeof this.sortDirection !== 'undefined') {
|
|
4273
|
+
toReturn['sortDirection'] = this.sortDirection;
|
|
3564
4274
|
}
|
|
3565
4275
|
return toReturn;
|
|
3566
4276
|
}
|
|
3567
4277
|
}
|
|
3568
|
-
|
|
4278
|
+
|
|
4279
|
+
function enumStringToValue$a(enumRef, value) {
|
|
4280
|
+
if (typeof value === 'number') {
|
|
4281
|
+
return value;
|
|
4282
|
+
}
|
|
4283
|
+
return enumRef[value];
|
|
4284
|
+
}
|
|
4285
|
+
class ListStockImagesRequest {
|
|
3569
4286
|
static fromProto(proto) {
|
|
3570
|
-
let m = new
|
|
4287
|
+
let m = new ListStockImagesRequest();
|
|
3571
4288
|
m = Object.assign(m, proto);
|
|
3572
|
-
if (proto.
|
|
3573
|
-
m.
|
|
3574
|
-
}
|
|
3575
|
-
if (proto.type) {
|
|
3576
|
-
m.type = enumStringToValue$a(TemplateType, proto.type);
|
|
3577
|
-
}
|
|
3578
|
-
if (proto.metadata) {
|
|
3579
|
-
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
4289
|
+
if (proto.imageSource) {
|
|
4290
|
+
m.imageSource = enumStringToValue$a(ImageSource, proto.imageSource);
|
|
3580
4291
|
}
|
|
3581
4292
|
return m;
|
|
3582
4293
|
}
|
|
@@ -3588,28 +4299,40 @@ class SuggestMessageRequest {
|
|
|
3588
4299
|
}
|
|
3589
4300
|
toApiJson() {
|
|
3590
4301
|
const toReturn = {};
|
|
3591
|
-
if (typeof this.
|
|
3592
|
-
toReturn['
|
|
4302
|
+
if (typeof this.namespaceId !== 'undefined') {
|
|
4303
|
+
toReturn['namespaceId'] = this.namespaceId;
|
|
3593
4304
|
}
|
|
3594
|
-
if (typeof this.
|
|
3595
|
-
toReturn['
|
|
4305
|
+
if (typeof this.keywords !== 'undefined') {
|
|
4306
|
+
toReturn['keywords'] = this.keywords;
|
|
3596
4307
|
}
|
|
3597
|
-
if (typeof this.
|
|
3598
|
-
toReturn['
|
|
4308
|
+
if (typeof this.imageCount !== 'undefined') {
|
|
4309
|
+
toReturn['imageCount'] = this.imageCount;
|
|
3599
4310
|
}
|
|
3600
|
-
if (typeof this.
|
|
3601
|
-
toReturn['
|
|
4311
|
+
if (typeof this.imageSource !== 'undefined') {
|
|
4312
|
+
toReturn['imageSource'] = this.imageSource;
|
|
3602
4313
|
}
|
|
3603
|
-
if (typeof this.
|
|
3604
|
-
toReturn['
|
|
4314
|
+
if (typeof this.orientation !== 'undefined') {
|
|
4315
|
+
toReturn['orientation'] = this.orientation;
|
|
4316
|
+
}
|
|
4317
|
+
if (typeof this.size !== 'undefined') {
|
|
4318
|
+
toReturn['size'] = this.size;
|
|
4319
|
+
}
|
|
4320
|
+
if (typeof this.page !== 'undefined') {
|
|
4321
|
+
toReturn['page'] = this.page;
|
|
4322
|
+
}
|
|
4323
|
+
if (typeof this.perPage !== 'undefined') {
|
|
4324
|
+
toReturn['perPage'] = this.perPage;
|
|
3605
4325
|
}
|
|
3606
4326
|
return toReturn;
|
|
3607
4327
|
}
|
|
3608
4328
|
}
|
|
3609
|
-
class
|
|
4329
|
+
class ListStockImagesResponse {
|
|
3610
4330
|
static fromProto(proto) {
|
|
3611
|
-
let m = new
|
|
4331
|
+
let m = new ListStockImagesResponse();
|
|
3612
4332
|
m = Object.assign(m, proto);
|
|
4333
|
+
if (proto.images) {
|
|
4334
|
+
m.images = proto.images.map(StockImage.fromProto);
|
|
4335
|
+
}
|
|
3613
4336
|
return m;
|
|
3614
4337
|
}
|
|
3615
4338
|
constructor(kwargs) {
|
|
@@ -3620,30 +4343,18 @@ class SuggestMessageResponse {
|
|
|
3620
4343
|
}
|
|
3621
4344
|
toApiJson() {
|
|
3622
4345
|
const toReturn = {};
|
|
3623
|
-
if (typeof this.
|
|
3624
|
-
toReturn['
|
|
4346
|
+
if (typeof this.images !== 'undefined' && this.images !== null) {
|
|
4347
|
+
toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
|
|
3625
4348
|
}
|
|
3626
4349
|
return toReturn;
|
|
3627
4350
|
}
|
|
3628
4351
|
}
|
|
3629
|
-
class
|
|
4352
|
+
class StockImage {
|
|
3630
4353
|
static fromProto(proto) {
|
|
3631
|
-
let m = new
|
|
4354
|
+
let m = new StockImage();
|
|
3632
4355
|
m = Object.assign(m, proto);
|
|
3633
|
-
if (proto.
|
|
3634
|
-
m.
|
|
3635
|
-
}
|
|
3636
|
-
if (proto.mediaEntries) {
|
|
3637
|
-
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
3638
|
-
}
|
|
3639
|
-
if (proto.metaData) {
|
|
3640
|
-
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3641
|
-
}
|
|
3642
|
-
if (proto.postType) {
|
|
3643
|
-
m.postType = enumStringToValue$a(PostType, proto.postType);
|
|
3644
|
-
}
|
|
3645
|
-
if (proto.youtubeCustomization) {
|
|
3646
|
-
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
4356
|
+
if (proto.source) {
|
|
4357
|
+
m.source = enumStringToValue$a(ImageSource, proto.source);
|
|
3647
4358
|
}
|
|
3648
4359
|
return m;
|
|
3649
4360
|
}
|
|
@@ -3655,53 +4366,20 @@ class UpdatePostTemplateRequest {
|
|
|
3655
4366
|
}
|
|
3656
4367
|
toApiJson() {
|
|
3657
4368
|
const toReturn = {};
|
|
3658
|
-
if (typeof this.
|
|
3659
|
-
toReturn['
|
|
3660
|
-
}
|
|
3661
|
-
if (typeof this.templateId !== 'undefined') {
|
|
3662
|
-
toReturn['templateId'] = this.templateId;
|
|
3663
|
-
}
|
|
3664
|
-
if (typeof this.title !== 'undefined') {
|
|
3665
|
-
toReturn['title'] = this.title;
|
|
3666
|
-
}
|
|
3667
|
-
if (typeof this.postText !== 'undefined') {
|
|
3668
|
-
toReturn['postText'] = this.postText;
|
|
3669
|
-
}
|
|
3670
|
-
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
3671
|
-
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
3672
|
-
}
|
|
3673
|
-
if (typeof this.gmbPostCustomization !== 'undefined') {
|
|
3674
|
-
toReturn['gmbPostCustomization'] = this.gmbPostCustomization;
|
|
3675
|
-
}
|
|
3676
|
-
if (typeof this.imageUrl !== 'undefined') {
|
|
3677
|
-
toReturn['imageUrl'] = this.imageUrl;
|
|
3678
|
-
}
|
|
3679
|
-
if (typeof this.imagePath !== 'undefined') {
|
|
3680
|
-
toReturn['imagePath'] = this.imagePath;
|
|
3681
|
-
}
|
|
3682
|
-
if (typeof this.imageSize !== 'undefined') {
|
|
3683
|
-
toReturn['imageSize'] = this.imageSize;
|
|
3684
|
-
}
|
|
3685
|
-
if (typeof this.previews !== 'undefined') {
|
|
3686
|
-
toReturn['previews'] = this.previews;
|
|
3687
|
-
}
|
|
3688
|
-
if (typeof this.options !== 'undefined') {
|
|
3689
|
-
toReturn['options'] = this.options;
|
|
3690
|
-
}
|
|
3691
|
-
if (typeof this.videoUrl !== 'undefined') {
|
|
3692
|
-
toReturn['videoUrl'] = this.videoUrl;
|
|
4369
|
+
if (typeof this.publicUrl !== 'undefined') {
|
|
4370
|
+
toReturn['publicUrl'] = this.publicUrl;
|
|
3693
4371
|
}
|
|
3694
|
-
if (typeof this.
|
|
3695
|
-
toReturn['
|
|
4372
|
+
if (typeof this.storageUrl !== 'undefined') {
|
|
4373
|
+
toReturn['storageUrl'] = this.storageUrl;
|
|
3696
4374
|
}
|
|
3697
|
-
if (typeof this.
|
|
3698
|
-
toReturn['
|
|
4375
|
+
if (typeof this.source !== 'undefined') {
|
|
4376
|
+
toReturn['source'] = this.source;
|
|
3699
4377
|
}
|
|
3700
|
-
if (typeof this.
|
|
3701
|
-
toReturn['
|
|
4378
|
+
if (typeof this.photographerName !== 'undefined') {
|
|
4379
|
+
toReturn['photographerName'] = this.photographerName;
|
|
3702
4380
|
}
|
|
3703
|
-
if (typeof this.
|
|
3704
|
-
toReturn['
|
|
4381
|
+
if (typeof this.photographerUrl !== 'undefined') {
|
|
4382
|
+
toReturn['photographerUrl'] = this.photographerUrl;
|
|
3705
4383
|
}
|
|
3706
4384
|
return toReturn;
|
|
3707
4385
|
}
|
|
@@ -7945,6 +8623,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7945
8623
|
args: [{ providedIn: 'root' }]
|
|
7946
8624
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
7947
8625
|
|
|
8626
|
+
// *********************************
|
|
8627
|
+
// Code generated by sdkgen
|
|
8628
|
+
// DO NOT EDIT!.
|
|
8629
|
+
//
|
|
8630
|
+
// API Service.
|
|
8631
|
+
// *********************************
|
|
8632
|
+
class SocialMentionsApiService {
|
|
8633
|
+
constructor() {
|
|
8634
|
+
this.hostService = inject(HostService);
|
|
8635
|
+
this.http = inject(HttpClient);
|
|
8636
|
+
this._host = this.hostService.hostWithScheme;
|
|
8637
|
+
}
|
|
8638
|
+
apiOptions() {
|
|
8639
|
+
return {
|
|
8640
|
+
headers: new HttpHeaders({
|
|
8641
|
+
'Content-Type': 'application/json'
|
|
8642
|
+
}),
|
|
8643
|
+
withCredentials: true
|
|
8644
|
+
};
|
|
8645
|
+
}
|
|
8646
|
+
fetchFacebookMentionInfo(r) {
|
|
8647
|
+
const request = (r.toApiJson) ? r : new FetchFacebookMentionInfoRequest(r);
|
|
8648
|
+
return this.http.post(this._host + "/socialposts.v1.SocialMentions/FetchFacebookMentionInfo", request.toApiJson(), this.apiOptions())
|
|
8649
|
+
.pipe(map(resp => FetchFacebookMentionInfoResponse.fromProto(resp)));
|
|
8650
|
+
}
|
|
8651
|
+
}
|
|
8652
|
+
SocialMentionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8653
|
+
SocialMentionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsApiService, providedIn: 'root' });
|
|
8654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsApiService, decorators: [{
|
|
8655
|
+
type: Injectable,
|
|
8656
|
+
args: [{ providedIn: 'root' }]
|
|
8657
|
+
}] });
|
|
8658
|
+
|
|
8659
|
+
class SocialMentionsService {
|
|
8660
|
+
constructor(socialMentionsApiService) {
|
|
8661
|
+
this.socialMentionsApiService = socialMentionsApiService;
|
|
8662
|
+
}
|
|
8663
|
+
fetchFacebookMentionInfo(accountGroupId, partnerId, socialServiceId, socialProfileId, pageIds) {
|
|
8664
|
+
const req = new FetchFacebookMentionInfoRequest({
|
|
8665
|
+
accountGroupId: accountGroupId,
|
|
8666
|
+
partnerId: partnerId,
|
|
8667
|
+
socialServiceId: socialServiceId,
|
|
8668
|
+
socialProfileId: socialProfileId,
|
|
8669
|
+
pageIds: pageIds,
|
|
8670
|
+
});
|
|
8671
|
+
return this.socialMentionsApiService.fetchFacebookMentionInfo(req);
|
|
8672
|
+
}
|
|
8673
|
+
}
|
|
8674
|
+
SocialMentionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsService, deps: [{ token: SocialMentionsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8675
|
+
SocialMentionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsService, providedIn: 'root' });
|
|
8676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsService, decorators: [{
|
|
8677
|
+
type: Injectable,
|
|
8678
|
+
args: [{ providedIn: 'root' }]
|
|
8679
|
+
}], ctorParameters: function () { return [{ type: SocialMentionsApiService }]; } });
|
|
8680
|
+
|
|
7948
8681
|
// *********************************
|
|
7949
8682
|
// Code generated by sdkgen
|
|
7950
8683
|
// DO NOT EDIT!.
|
|
@@ -8342,6 +9075,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8342
9075
|
args: [{ providedIn: 'root' }]
|
|
8343
9076
|
}] });
|
|
8344
9077
|
|
|
9078
|
+
// *********************************
|
|
9079
|
+
// Code generated by sdkgen
|
|
9080
|
+
// DO NOT EDIT!.
|
|
9081
|
+
//
|
|
9082
|
+
// API Service.
|
|
9083
|
+
// *********************************
|
|
9084
|
+
class ImageLibraryApiService {
|
|
9085
|
+
constructor() {
|
|
9086
|
+
this.hostService = inject(HostService);
|
|
9087
|
+
this.http = inject(HttpClient);
|
|
9088
|
+
this._host = this.hostService.hostWithScheme;
|
|
9089
|
+
}
|
|
9090
|
+
apiOptions() {
|
|
9091
|
+
return {
|
|
9092
|
+
headers: new HttpHeaders({
|
|
9093
|
+
'Content-Type': 'application/json'
|
|
9094
|
+
}),
|
|
9095
|
+
withCredentials: true
|
|
9096
|
+
};
|
|
9097
|
+
}
|
|
9098
|
+
listStockImages(r) {
|
|
9099
|
+
const request = (r.toApiJson) ? r : new ListStockImagesRequest(r);
|
|
9100
|
+
return this.http.post(this._host + "/socialposts.v1.ImageLibrary/ListStockImages", request.toApiJson(), this.apiOptions())
|
|
9101
|
+
.pipe(map(resp => ListStockImagesResponse.fromProto(resp)));
|
|
9102
|
+
}
|
|
9103
|
+
}
|
|
9104
|
+
ImageLibraryApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageLibraryApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9105
|
+
ImageLibraryApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageLibraryApiService, providedIn: 'root' });
|
|
9106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageLibraryApiService, decorators: [{
|
|
9107
|
+
type: Injectable,
|
|
9108
|
+
args: [{ providedIn: 'root' }]
|
|
9109
|
+
}] });
|
|
9110
|
+
|
|
8345
9111
|
// *********************************
|
|
8346
9112
|
// Code generated by sdkgen
|
|
8347
9113
|
// DO NOT EDIT!.
|
|
@@ -8411,8 +9177,7 @@ class MultilocationPostApiService {
|
|
|
8411
9177
|
}
|
|
8412
9178
|
editMultilocationPostV2(r) {
|
|
8413
9179
|
const request = (r.toApiJson) ? r : new EditMultilocationPostRequest(r);
|
|
8414
|
-
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPostV2", request.toApiJson(), this.apiOptions())
|
|
8415
|
-
.pipe(map(resp => EditMultilocationPostResponse.fromProto(resp)));
|
|
9180
|
+
return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/EditMultilocationPostV2", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
8416
9181
|
}
|
|
8417
9182
|
removeFromMultilocationPost(r) {
|
|
8418
9183
|
const request = (r.toApiJson) ? r : new RemoveFromMultilocationPostRequest(r);
|
|
@@ -8638,6 +9403,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8638
9403
|
args: [{ providedIn: 'root' }]
|
|
8639
9404
|
}] });
|
|
8640
9405
|
|
|
9406
|
+
// *********************************
|
|
9407
|
+
// Code generated by sdkgen
|
|
9408
|
+
// DO NOT EDIT!.
|
|
9409
|
+
//
|
|
9410
|
+
// API Service.
|
|
9411
|
+
// *********************************
|
|
9412
|
+
class SocialPostEngagementsApiService {
|
|
9413
|
+
constructor() {
|
|
9414
|
+
this.hostService = inject(HostService);
|
|
9415
|
+
this.http = inject(HttpClient);
|
|
9416
|
+
this._host = this.hostService.hostWithScheme;
|
|
9417
|
+
}
|
|
9418
|
+
apiOptions() {
|
|
9419
|
+
return {
|
|
9420
|
+
headers: new HttpHeaders({
|
|
9421
|
+
'Content-Type': 'application/json'
|
|
9422
|
+
}),
|
|
9423
|
+
withCredentials: true
|
|
9424
|
+
};
|
|
9425
|
+
}
|
|
9426
|
+
listSocialPostEngagements(r) {
|
|
9427
|
+
const request = (r.toApiJson) ? r : new ListSocialPostEngagementsRequest(r);
|
|
9428
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPostEngagements/ListSocialPostEngagements", request.toApiJson(), this.apiOptions())
|
|
9429
|
+
.pipe(map(resp => ListSocialPostEngagementsResponse.fromProto(resp)));
|
|
9430
|
+
}
|
|
9431
|
+
}
|
|
9432
|
+
SocialPostEngagementsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostEngagementsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9433
|
+
SocialPostEngagementsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostEngagementsApiService, providedIn: 'root' });
|
|
9434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostEngagementsApiService, decorators: [{
|
|
9435
|
+
type: Injectable,
|
|
9436
|
+
args: [{ providedIn: 'root' }]
|
|
9437
|
+
}] });
|
|
9438
|
+
|
|
8641
9439
|
// *********************************
|
|
8642
9440
|
// Code generated by sdkgen
|
|
8643
9441
|
// DO NOT EDIT!.
|
|
@@ -9425,5 +10223,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9425
10223
|
* Generated bundle index. Do not edit.
|
|
9426
10224
|
*/
|
|
9427
10225
|
|
|
9428
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author
|
|
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 };
|
|
9429
10227
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|