@vendasta/social-posts 5.45.7 → 5.46.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/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- 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/objects/api.mjs +83 -2
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/objects/social-post-stats.mjs +207 -1
- package/esm2020/lib/_internal/objects/social-posts.mjs +33 -1
- package/esm2020/lib/_internal/social-mentions.api.service.mjs +40 -0
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/social-mentions.service.mjs +27 -0
- package/esm2020/lib/social-posts.service.mjs +7 -1
- package/fesm2015/vendasta-social-posts.mjs +381 -1
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +381 -1
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +17 -1
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/interfaces/social-post-stats.interface.d.ts +31 -0
- package/lib/_internal/interfaces/social-posts.interface.d.ts +7 -0
- package/lib/_internal/objects/api.d.ts +26 -1
- package/lib/_internal/objects/index.d.ts +3 -3
- package/lib/_internal/objects/social-post-stats.d.ts +43 -0
- package/lib/_internal/objects/social-posts.d.ts +10 -0
- package/lib/_internal/social-mentions.api.service.d.ts +13 -0
- package/lib/index.d.ts +1 -0
- package/lib/social-mentions.service.d.ts +11 -0
- package/lib/social-posts.service.d.ts +4 -1
- package/package.json +1 -1
|
@@ -490,6 +490,38 @@ class Event {
|
|
|
490
490
|
return toReturn;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
+
class FacebookPageInfo {
|
|
494
|
+
static fromProto(proto) {
|
|
495
|
+
let m = new FacebookPageInfo();
|
|
496
|
+
m = Object.assign(m, proto);
|
|
497
|
+
return m;
|
|
498
|
+
}
|
|
499
|
+
constructor(kwargs) {
|
|
500
|
+
if (!kwargs) {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
Object.assign(this, kwargs);
|
|
504
|
+
}
|
|
505
|
+
toApiJson() {
|
|
506
|
+
const toReturn = {};
|
|
507
|
+
if (typeof this.id !== 'undefined') {
|
|
508
|
+
toReturn['id'] = this.id;
|
|
509
|
+
}
|
|
510
|
+
if (typeof this.name !== 'undefined') {
|
|
511
|
+
toReturn['name'] = this.name;
|
|
512
|
+
}
|
|
513
|
+
if (typeof this.category !== 'undefined') {
|
|
514
|
+
toReturn['category'] = this.category;
|
|
515
|
+
}
|
|
516
|
+
if (typeof this.profileUrl !== 'undefined') {
|
|
517
|
+
toReturn['profileUrl'] = this.profileUrl;
|
|
518
|
+
}
|
|
519
|
+
if (typeof this.profileImageUrl !== 'undefined') {
|
|
520
|
+
toReturn['profileImageUrl'] = this.profileImageUrl;
|
|
521
|
+
}
|
|
522
|
+
return toReturn;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
493
525
|
class MLPostCategory {
|
|
494
526
|
static fromProto(proto) {
|
|
495
527
|
let m = new MLPostCategory();
|
|
@@ -1641,6 +1673,100 @@ class FacebookPostStats {
|
|
|
1641
1673
|
return toReturn;
|
|
1642
1674
|
}
|
|
1643
1675
|
}
|
|
1676
|
+
class InstagramPostStats {
|
|
1677
|
+
static fromProto(proto) {
|
|
1678
|
+
let m = new InstagramPostStats();
|
|
1679
|
+
m = Object.assign(m, proto);
|
|
1680
|
+
if (proto.likeCount) {
|
|
1681
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1682
|
+
}
|
|
1683
|
+
if (proto.commentCount) {
|
|
1684
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1685
|
+
}
|
|
1686
|
+
if (proto.saves) {
|
|
1687
|
+
m.saves = parseInt(proto.saves, 10);
|
|
1688
|
+
}
|
|
1689
|
+
if (proto.reach) {
|
|
1690
|
+
m.reach = parseInt(proto.reach, 10);
|
|
1691
|
+
}
|
|
1692
|
+
if (proto.videoViews) {
|
|
1693
|
+
m.videoViews = parseInt(proto.videoViews, 10);
|
|
1694
|
+
}
|
|
1695
|
+
return m;
|
|
1696
|
+
}
|
|
1697
|
+
constructor(kwargs) {
|
|
1698
|
+
if (!kwargs) {
|
|
1699
|
+
return;
|
|
1700
|
+
}
|
|
1701
|
+
Object.assign(this, kwargs);
|
|
1702
|
+
}
|
|
1703
|
+
toApiJson() {
|
|
1704
|
+
const toReturn = {};
|
|
1705
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1706
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1707
|
+
}
|
|
1708
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1709
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1710
|
+
}
|
|
1711
|
+
if (typeof this.saves !== 'undefined') {
|
|
1712
|
+
toReturn['saves'] = this.saves;
|
|
1713
|
+
}
|
|
1714
|
+
if (typeof this.reach !== 'undefined') {
|
|
1715
|
+
toReturn['reach'] = this.reach;
|
|
1716
|
+
}
|
|
1717
|
+
if (typeof this.videoViews !== 'undefined') {
|
|
1718
|
+
toReturn['videoViews'] = this.videoViews;
|
|
1719
|
+
}
|
|
1720
|
+
return toReturn;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
class LinkedInPostStats {
|
|
1724
|
+
static fromProto(proto) {
|
|
1725
|
+
let m = new LinkedInPostStats();
|
|
1726
|
+
m = Object.assign(m, proto);
|
|
1727
|
+
if (proto.likeCount) {
|
|
1728
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1729
|
+
}
|
|
1730
|
+
if (proto.commentCount) {
|
|
1731
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1732
|
+
}
|
|
1733
|
+
if (proto.shareCount) {
|
|
1734
|
+
m.shareCount = parseInt(proto.shareCount, 10);
|
|
1735
|
+
}
|
|
1736
|
+
if (proto.clicks) {
|
|
1737
|
+
m.clicks = parseInt(proto.clicks, 10);
|
|
1738
|
+
}
|
|
1739
|
+
if (proto.impressions) {
|
|
1740
|
+
m.impressions = parseInt(proto.impressions, 10);
|
|
1741
|
+
}
|
|
1742
|
+
return m;
|
|
1743
|
+
}
|
|
1744
|
+
constructor(kwargs) {
|
|
1745
|
+
if (!kwargs) {
|
|
1746
|
+
return;
|
|
1747
|
+
}
|
|
1748
|
+
Object.assign(this, kwargs);
|
|
1749
|
+
}
|
|
1750
|
+
toApiJson() {
|
|
1751
|
+
const toReturn = {};
|
|
1752
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1753
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1754
|
+
}
|
|
1755
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1756
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1757
|
+
}
|
|
1758
|
+
if (typeof this.shareCount !== 'undefined') {
|
|
1759
|
+
toReturn['shareCount'] = this.shareCount;
|
|
1760
|
+
}
|
|
1761
|
+
if (typeof this.clicks !== 'undefined') {
|
|
1762
|
+
toReturn['clicks'] = this.clicks;
|
|
1763
|
+
}
|
|
1764
|
+
if (typeof this.impressions !== 'undefined') {
|
|
1765
|
+
toReturn['impressions'] = this.impressions;
|
|
1766
|
+
}
|
|
1767
|
+
return toReturn;
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1644
1770
|
class SocialPostStats {
|
|
1645
1771
|
static fromProto(proto) {
|
|
1646
1772
|
let m = new SocialPostStats();
|
|
@@ -1651,6 +1777,18 @@ class SocialPostStats {
|
|
|
1651
1777
|
if (proto.twitterPostStats) {
|
|
1652
1778
|
m.twitterPostStats = TwitterPostStats.fromProto(proto.twitterPostStats);
|
|
1653
1779
|
}
|
|
1780
|
+
if (proto.linkedinPostStats) {
|
|
1781
|
+
m.linkedinPostStats = LinkedInPostStats.fromProto(proto.linkedinPostStats);
|
|
1782
|
+
}
|
|
1783
|
+
if (proto.instagramPostStats) {
|
|
1784
|
+
m.instagramPostStats = InstagramPostStats.fromProto(proto.instagramPostStats);
|
|
1785
|
+
}
|
|
1786
|
+
if (proto.youtubePostStats) {
|
|
1787
|
+
m.youtubePostStats = YoutubePostStats.fromProto(proto.youtubePostStats);
|
|
1788
|
+
}
|
|
1789
|
+
if (proto.tiktokPostStats) {
|
|
1790
|
+
m.tiktokPostStats = TikTokPostStats.fromProto(proto.tiktokPostStats);
|
|
1791
|
+
}
|
|
1654
1792
|
return m;
|
|
1655
1793
|
}
|
|
1656
1794
|
constructor(kwargs) {
|
|
@@ -1670,6 +1808,59 @@ class SocialPostStats {
|
|
|
1670
1808
|
if (typeof this.twitterPostStats !== 'undefined' && this.twitterPostStats !== null) {
|
|
1671
1809
|
toReturn['twitterPostStats'] = 'toApiJson' in this.twitterPostStats ? this.twitterPostStats.toApiJson() : this.twitterPostStats;
|
|
1672
1810
|
}
|
|
1811
|
+
if (typeof this.linkedinPostStats !== 'undefined' && this.linkedinPostStats !== null) {
|
|
1812
|
+
toReturn['linkedinPostStats'] = 'toApiJson' in this.linkedinPostStats ? this.linkedinPostStats.toApiJson() : this.linkedinPostStats;
|
|
1813
|
+
}
|
|
1814
|
+
if (typeof this.instagramPostStats !== 'undefined' && this.instagramPostStats !== null) {
|
|
1815
|
+
toReturn['instagramPostStats'] = 'toApiJson' in this.instagramPostStats ? this.instagramPostStats.toApiJson() : this.instagramPostStats;
|
|
1816
|
+
}
|
|
1817
|
+
if (typeof this.youtubePostStats !== 'undefined' && this.youtubePostStats !== null) {
|
|
1818
|
+
toReturn['youtubePostStats'] = 'toApiJson' in this.youtubePostStats ? this.youtubePostStats.toApiJson() : this.youtubePostStats;
|
|
1819
|
+
}
|
|
1820
|
+
if (typeof this.tiktokPostStats !== 'undefined' && this.tiktokPostStats !== null) {
|
|
1821
|
+
toReturn['tiktokPostStats'] = 'toApiJson' in this.tiktokPostStats ? this.tiktokPostStats.toApiJson() : this.tiktokPostStats;
|
|
1822
|
+
}
|
|
1823
|
+
return toReturn;
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
class TikTokPostStats {
|
|
1827
|
+
static fromProto(proto) {
|
|
1828
|
+
let m = new TikTokPostStats();
|
|
1829
|
+
m = Object.assign(m, proto);
|
|
1830
|
+
if (proto.likeCount) {
|
|
1831
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1832
|
+
}
|
|
1833
|
+
if (proto.commentCount) {
|
|
1834
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1835
|
+
}
|
|
1836
|
+
if (proto.shareCount) {
|
|
1837
|
+
m.shareCount = parseInt(proto.shareCount, 10);
|
|
1838
|
+
}
|
|
1839
|
+
if (proto.peopleReached) {
|
|
1840
|
+
m.peopleReached = parseInt(proto.peopleReached, 10);
|
|
1841
|
+
}
|
|
1842
|
+
return m;
|
|
1843
|
+
}
|
|
1844
|
+
constructor(kwargs) {
|
|
1845
|
+
if (!kwargs) {
|
|
1846
|
+
return;
|
|
1847
|
+
}
|
|
1848
|
+
Object.assign(this, kwargs);
|
|
1849
|
+
}
|
|
1850
|
+
toApiJson() {
|
|
1851
|
+
const toReturn = {};
|
|
1852
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1853
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1854
|
+
}
|
|
1855
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1856
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1857
|
+
}
|
|
1858
|
+
if (typeof this.shareCount !== 'undefined') {
|
|
1859
|
+
toReturn['shareCount'] = this.shareCount;
|
|
1860
|
+
}
|
|
1861
|
+
if (typeof this.peopleReached !== 'undefined') {
|
|
1862
|
+
toReturn['peopleReached'] = this.peopleReached;
|
|
1863
|
+
}
|
|
1673
1864
|
return toReturn;
|
|
1674
1865
|
}
|
|
1675
1866
|
}
|
|
@@ -1708,6 +1899,53 @@ class TwitterPostStats {
|
|
|
1708
1899
|
return toReturn;
|
|
1709
1900
|
}
|
|
1710
1901
|
}
|
|
1902
|
+
class YoutubePostStats {
|
|
1903
|
+
static fromProto(proto) {
|
|
1904
|
+
let m = new YoutubePostStats();
|
|
1905
|
+
m = Object.assign(m, proto);
|
|
1906
|
+
if (proto.likeCount) {
|
|
1907
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
1908
|
+
}
|
|
1909
|
+
if (proto.commentCount) {
|
|
1910
|
+
m.commentCount = parseInt(proto.commentCount, 10);
|
|
1911
|
+
}
|
|
1912
|
+
if (proto.favourites) {
|
|
1913
|
+
m.favourites = parseInt(proto.favourites, 10);
|
|
1914
|
+
}
|
|
1915
|
+
if (proto.views) {
|
|
1916
|
+
m.views = parseInt(proto.views, 10);
|
|
1917
|
+
}
|
|
1918
|
+
if (proto.videoViews) {
|
|
1919
|
+
m.videoViews = parseInt(proto.videoViews, 10);
|
|
1920
|
+
}
|
|
1921
|
+
return m;
|
|
1922
|
+
}
|
|
1923
|
+
constructor(kwargs) {
|
|
1924
|
+
if (!kwargs) {
|
|
1925
|
+
return;
|
|
1926
|
+
}
|
|
1927
|
+
Object.assign(this, kwargs);
|
|
1928
|
+
}
|
|
1929
|
+
toApiJson() {
|
|
1930
|
+
const toReturn = {};
|
|
1931
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
1932
|
+
toReturn['likeCount'] = this.likeCount;
|
|
1933
|
+
}
|
|
1934
|
+
if (typeof this.commentCount !== 'undefined') {
|
|
1935
|
+
toReturn['commentCount'] = this.commentCount;
|
|
1936
|
+
}
|
|
1937
|
+
if (typeof this.favourites !== 'undefined') {
|
|
1938
|
+
toReturn['favourites'] = this.favourites;
|
|
1939
|
+
}
|
|
1940
|
+
if (typeof this.views !== 'undefined') {
|
|
1941
|
+
toReturn['views'] = this.views;
|
|
1942
|
+
}
|
|
1943
|
+
if (typeof this.videoViews !== 'undefined') {
|
|
1944
|
+
toReturn['videoViews'] = this.videoViews;
|
|
1945
|
+
}
|
|
1946
|
+
return toReturn;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1711
1949
|
|
|
1712
1950
|
function enumStringToValue$b(enumRef, value) {
|
|
1713
1951
|
if (typeof value === 'number') {
|
|
@@ -2369,6 +2607,61 @@ class EditMultilocationPostResponse {
|
|
|
2369
2607
|
return toReturn;
|
|
2370
2608
|
}
|
|
2371
2609
|
}
|
|
2610
|
+
class FetchFacebookMentionInfoRequest {
|
|
2611
|
+
static fromProto(proto) {
|
|
2612
|
+
let m = new FetchFacebookMentionInfoRequest();
|
|
2613
|
+
m = Object.assign(m, proto);
|
|
2614
|
+
return m;
|
|
2615
|
+
}
|
|
2616
|
+
constructor(kwargs) {
|
|
2617
|
+
if (!kwargs) {
|
|
2618
|
+
return;
|
|
2619
|
+
}
|
|
2620
|
+
Object.assign(this, kwargs);
|
|
2621
|
+
}
|
|
2622
|
+
toApiJson() {
|
|
2623
|
+
const toReturn = {};
|
|
2624
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
2625
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
2626
|
+
}
|
|
2627
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
2628
|
+
toReturn['partnerId'] = this.partnerId;
|
|
2629
|
+
}
|
|
2630
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
2631
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
2632
|
+
}
|
|
2633
|
+
if (typeof this.socialProfileId !== 'undefined') {
|
|
2634
|
+
toReturn['socialProfileId'] = this.socialProfileId;
|
|
2635
|
+
}
|
|
2636
|
+
if (typeof this.pageIds !== 'undefined') {
|
|
2637
|
+
toReturn['pageIds'] = this.pageIds;
|
|
2638
|
+
}
|
|
2639
|
+
return toReturn;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
class FetchFacebookMentionInfoResponse {
|
|
2643
|
+
static fromProto(proto) {
|
|
2644
|
+
let m = new FetchFacebookMentionInfoResponse();
|
|
2645
|
+
m = Object.assign(m, proto);
|
|
2646
|
+
if (proto.pageInfo) {
|
|
2647
|
+
m.pageInfo = Object.keys(proto.pageInfo).reduce((obj, k) => { obj[k] = FacebookPageInfo.fromProto(proto.pageInfo[k]); return obj; }, {});
|
|
2648
|
+
}
|
|
2649
|
+
return m;
|
|
2650
|
+
}
|
|
2651
|
+
constructor(kwargs) {
|
|
2652
|
+
if (!kwargs) {
|
|
2653
|
+
return;
|
|
2654
|
+
}
|
|
2655
|
+
Object.assign(this, kwargs);
|
|
2656
|
+
}
|
|
2657
|
+
toApiJson() {
|
|
2658
|
+
const toReturn = {};
|
|
2659
|
+
if (typeof this.pageInfo !== 'undefined' && this.pageInfo !== null) {
|
|
2660
|
+
toReturn['pageInfo'] = 'toApiJson' in this.pageInfo ? this.pageInfo.toApiJson() : this.pageInfo;
|
|
2661
|
+
}
|
|
2662
|
+
return toReturn;
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2372
2665
|
class PartnerListScheduledSocialPostsRequestFilters {
|
|
2373
2666
|
static fromProto(proto) {
|
|
2374
2667
|
let m = new PartnerListScheduledSocialPostsRequestFilters();
|
|
@@ -3174,6 +3467,32 @@ class ListTenorGifsResponse {
|
|
|
3174
3467
|
return toReturn;
|
|
3175
3468
|
}
|
|
3176
3469
|
}
|
|
3470
|
+
class FetchFacebookMentionInfoResponsePageInfoEntry {
|
|
3471
|
+
static fromProto(proto) {
|
|
3472
|
+
let m = new FetchFacebookMentionInfoResponsePageInfoEntry();
|
|
3473
|
+
m = Object.assign(m, proto);
|
|
3474
|
+
if (proto.value) {
|
|
3475
|
+
m.value = FacebookPageInfo.fromProto(proto.value);
|
|
3476
|
+
}
|
|
3477
|
+
return m;
|
|
3478
|
+
}
|
|
3479
|
+
constructor(kwargs) {
|
|
3480
|
+
if (!kwargs) {
|
|
3481
|
+
return;
|
|
3482
|
+
}
|
|
3483
|
+
Object.assign(this, kwargs);
|
|
3484
|
+
}
|
|
3485
|
+
toApiJson() {
|
|
3486
|
+
const toReturn = {};
|
|
3487
|
+
if (typeof this.key !== 'undefined') {
|
|
3488
|
+
toReturn['key'] = this.key;
|
|
3489
|
+
}
|
|
3490
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
3491
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
3492
|
+
}
|
|
3493
|
+
return toReturn;
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3177
3496
|
class PartnerListScheduledPostsResponse {
|
|
3178
3497
|
static fromProto(proto) {
|
|
3179
3498
|
let m = new PartnerListScheduledPostsResponse();
|
|
@@ -7930,6 +8249,12 @@ class SocialPostsService {
|
|
|
7930
8249
|
const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt, length: postLength, type: templateType, metadata: metadata });
|
|
7931
8250
|
return this.socialPostsApiService.suggestMessage(req);
|
|
7932
8251
|
}
|
|
8252
|
+
deleteSocialPost(req) {
|
|
8253
|
+
return this.socialPostsApiService.deleteSocialPost(req);
|
|
8254
|
+
}
|
|
8255
|
+
getMultiSocialPostStats(req) {
|
|
8256
|
+
return this.socialPostsApiService.getMultiSocialPostStats(req);
|
|
8257
|
+
}
|
|
7933
8258
|
}
|
|
7934
8259
|
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7935
8260
|
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
|
|
@@ -7938,6 +8263,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7938
8263
|
args: [{ providedIn: 'root' }]
|
|
7939
8264
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
7940
8265
|
|
|
8266
|
+
// *********************************
|
|
8267
|
+
// Code generated by sdkgen
|
|
8268
|
+
// DO NOT EDIT!.
|
|
8269
|
+
//
|
|
8270
|
+
// API Service.
|
|
8271
|
+
// *********************************
|
|
8272
|
+
class SocialMentionsApiService {
|
|
8273
|
+
constructor() {
|
|
8274
|
+
this.hostService = inject(HostService);
|
|
8275
|
+
this.http = inject(HttpClient);
|
|
8276
|
+
this._host = this.hostService.hostWithScheme;
|
|
8277
|
+
}
|
|
8278
|
+
apiOptions() {
|
|
8279
|
+
return {
|
|
8280
|
+
headers: new HttpHeaders({
|
|
8281
|
+
'Content-Type': 'application/json'
|
|
8282
|
+
}),
|
|
8283
|
+
withCredentials: true
|
|
8284
|
+
};
|
|
8285
|
+
}
|
|
8286
|
+
fetchFacebookMentionInfo(r) {
|
|
8287
|
+
const request = (r.toApiJson) ? r : new FetchFacebookMentionInfoRequest(r);
|
|
8288
|
+
return this.http.post(this._host + "/socialposts.v1.SocialMentions/FetchFacebookMentionInfo", request.toApiJson(), this.apiOptions())
|
|
8289
|
+
.pipe(map(resp => FetchFacebookMentionInfoResponse.fromProto(resp)));
|
|
8290
|
+
}
|
|
8291
|
+
}
|
|
8292
|
+
SocialMentionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8293
|
+
SocialMentionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsApiService, providedIn: 'root' });
|
|
8294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsApiService, decorators: [{
|
|
8295
|
+
type: Injectable,
|
|
8296
|
+
args: [{ providedIn: 'root' }]
|
|
8297
|
+
}] });
|
|
8298
|
+
|
|
8299
|
+
class SocialMentionsService {
|
|
8300
|
+
constructor(socialMentionsApiService) {
|
|
8301
|
+
this.socialMentionsApiService = socialMentionsApiService;
|
|
8302
|
+
}
|
|
8303
|
+
fetchFacebookMentionInfo(accountGroupId, partnerId, socialServiceId, socialProfileId, pageIds) {
|
|
8304
|
+
const req = new FetchFacebookMentionInfoRequest({
|
|
8305
|
+
accountGroupId: accountGroupId,
|
|
8306
|
+
partnerId: partnerId,
|
|
8307
|
+
socialServiceId: socialServiceId,
|
|
8308
|
+
socialProfileId: socialProfileId,
|
|
8309
|
+
pageIds: pageIds,
|
|
8310
|
+
});
|
|
8311
|
+
return this.socialMentionsApiService.fetchFacebookMentionInfo(req);
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
SocialMentionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsService, deps: [{ token: SocialMentionsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8315
|
+
SocialMentionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsService, providedIn: 'root' });
|
|
8316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialMentionsService, decorators: [{
|
|
8317
|
+
type: Injectable,
|
|
8318
|
+
args: [{ providedIn: 'root' }]
|
|
8319
|
+
}], ctorParameters: function () { return [{ type: SocialMentionsApiService }]; } });
|
|
8320
|
+
|
|
7941
8321
|
// *********************************
|
|
7942
8322
|
// Code generated by sdkgen
|
|
7943
8323
|
// DO NOT EDIT!.
|
|
@@ -9418,5 +9798,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9418
9798
|
* Generated bundle index. Do not edit.
|
|
9419
9799
|
*/
|
|
9420
9800
|
|
|
9421
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, 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, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostsRequest, ListSocialPostsResponse, 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, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, Author as WordpressAuthor, Category as WordpressCategory, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
9801
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, 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, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostsRequest, ListSocialPostsResponse, 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, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, 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, Author as WordpressAuthor, Category as WordpressCategory, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats };
|
|
9422
9802
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|