@vendasta/social-posts 5.2.0 → 5.3.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/_generated/host.service.mjs +4 -4
- package/esm2020/lib/_internal/hash-tags.api.service.mjs +4 -4
- 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/multilocation-post.api.service.mjs +4 -4
- package/esm2020/lib/_internal/objects/api.mjs +200 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +4 -4
- package/esm2020/lib/_internal/pixabay-images.api.service.mjs +4 -4
- package/esm2020/lib/_internal/post-performance.api.service.mjs +46 -0
- package/esm2020/lib/_internal/post-templates.api.service.mjs +4 -4
- package/esm2020/lib/_internal/social-posts.api.service.mjs +4 -4
- package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +4 -4
- package/esm2020/lib/hashtag.service.mjs +4 -4
- package/esm2020/lib/index.mjs +3 -2
- package/esm2020/lib/multilocation-posts.service.mjs +4 -4
- package/esm2020/lib/pixabay-image.service.mjs +4 -4
- package/esm2020/lib/post-performance.service.mjs +26 -0
- package/esm2020/lib/post-templates.service.mjs +4 -4
- package/esm2020/lib/social-posts.service.mjs +4 -4
- package/esm2020/lib/tenor-gifs.service.mjs +4 -4
- package/fesm2015/vendasta-social-posts.mjs +295 -43
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +295 -43
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/{vendasta-social-posts.d.ts → index.d.ts} +0 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +32 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +47 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/post-performance.api.service.d.ts +17 -0
- package/lib/index.d.ts +2 -1
- package/lib/post-performance.service.d.ts +11 -0
- package/package.json +3 -3
|
@@ -1340,6 +1340,95 @@ class PartnerListScheduledSocialPostsRequestFilters {
|
|
|
1340
1340
|
return toReturn;
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
|
+
class GenerateCSVForPerformanceStatsRequest {
|
|
1344
|
+
constructor(kwargs) {
|
|
1345
|
+
if (!kwargs) {
|
|
1346
|
+
return;
|
|
1347
|
+
}
|
|
1348
|
+
Object.assign(this, kwargs);
|
|
1349
|
+
}
|
|
1350
|
+
static fromProto(proto) {
|
|
1351
|
+
let m = new GenerateCSVForPerformanceStatsRequest();
|
|
1352
|
+
m = Object.assign(m, proto);
|
|
1353
|
+
if (proto.postData) {
|
|
1354
|
+
m.postData = proto.postData.map(PostData.fromProto);
|
|
1355
|
+
}
|
|
1356
|
+
return m;
|
|
1357
|
+
}
|
|
1358
|
+
toApiJson() {
|
|
1359
|
+
const toReturn = {};
|
|
1360
|
+
if (typeof this.businessId !== 'undefined') {
|
|
1361
|
+
toReturn['businessId'] = this.businessId;
|
|
1362
|
+
}
|
|
1363
|
+
if (typeof this.postData !== 'undefined' && this.postData !== null) {
|
|
1364
|
+
toReturn['postData'] = 'toApiJson' in this.postData ? this.postData.toApiJson() : this.postData;
|
|
1365
|
+
}
|
|
1366
|
+
if (typeof this.includeHeaders !== 'undefined') {
|
|
1367
|
+
toReturn['includeHeaders'] = this.includeHeaders;
|
|
1368
|
+
}
|
|
1369
|
+
return toReturn;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
class GenerateCSVForPerformanceStatsResponse {
|
|
1373
|
+
constructor(kwargs) {
|
|
1374
|
+
if (!kwargs) {
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
Object.assign(this, kwargs);
|
|
1378
|
+
}
|
|
1379
|
+
static fromProto(proto) {
|
|
1380
|
+
let m = new GenerateCSVForPerformanceStatsResponse();
|
|
1381
|
+
m = Object.assign(m, proto);
|
|
1382
|
+
return m;
|
|
1383
|
+
}
|
|
1384
|
+
toApiJson() {
|
|
1385
|
+
const toReturn = {};
|
|
1386
|
+
if (typeof this.generatedId !== 'undefined') {
|
|
1387
|
+
toReturn['generatedId'] = this.generatedId;
|
|
1388
|
+
}
|
|
1389
|
+
return toReturn;
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
class GetGeneratedCSVForPerformanceStatsRequest {
|
|
1393
|
+
constructor(kwargs) {
|
|
1394
|
+
if (!kwargs) {
|
|
1395
|
+
return;
|
|
1396
|
+
}
|
|
1397
|
+
Object.assign(this, kwargs);
|
|
1398
|
+
}
|
|
1399
|
+
static fromProto(proto) {
|
|
1400
|
+
let m = new GetGeneratedCSVForPerformanceStatsRequest();
|
|
1401
|
+
m = Object.assign(m, proto);
|
|
1402
|
+
return m;
|
|
1403
|
+
}
|
|
1404
|
+
toApiJson() {
|
|
1405
|
+
const toReturn = {};
|
|
1406
|
+
if (typeof this.generatedId !== 'undefined') {
|
|
1407
|
+
toReturn['generatedId'] = this.generatedId;
|
|
1408
|
+
}
|
|
1409
|
+
return toReturn;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
class GetGeneratedCSVForPerformanceStatsResponse {
|
|
1413
|
+
constructor(kwargs) {
|
|
1414
|
+
if (!kwargs) {
|
|
1415
|
+
return;
|
|
1416
|
+
}
|
|
1417
|
+
Object.assign(this, kwargs);
|
|
1418
|
+
}
|
|
1419
|
+
static fromProto(proto) {
|
|
1420
|
+
let m = new GetGeneratedCSVForPerformanceStatsResponse();
|
|
1421
|
+
m = Object.assign(m, proto);
|
|
1422
|
+
return m;
|
|
1423
|
+
}
|
|
1424
|
+
toApiJson() {
|
|
1425
|
+
const toReturn = {};
|
|
1426
|
+
if (typeof this.url !== 'undefined') {
|
|
1427
|
+
toReturn['url'] = this.url;
|
|
1428
|
+
}
|
|
1429
|
+
return toReturn;
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1343
1432
|
class GetMultiSocialPostStatsRequest {
|
|
1344
1433
|
constructor(kwargs) {
|
|
1345
1434
|
if (!kwargs) {
|
|
@@ -2021,6 +2110,116 @@ class PartnerListScheduledSocialPostsRequest {
|
|
|
2021
2110
|
return toReturn;
|
|
2022
2111
|
}
|
|
2023
2112
|
}
|
|
2113
|
+
class PostData {
|
|
2114
|
+
constructor(kwargs) {
|
|
2115
|
+
if (!kwargs) {
|
|
2116
|
+
return;
|
|
2117
|
+
}
|
|
2118
|
+
Object.assign(this, kwargs);
|
|
2119
|
+
}
|
|
2120
|
+
static fromProto(proto) {
|
|
2121
|
+
let m = new PostData();
|
|
2122
|
+
m = Object.assign(m, proto);
|
|
2123
|
+
if (proto.reach) {
|
|
2124
|
+
m.reach = parseInt(proto.reach, 10);
|
|
2125
|
+
}
|
|
2126
|
+
if (proto.engagement) {
|
|
2127
|
+
m.engagement = parseInt(proto.engagement, 10);
|
|
2128
|
+
}
|
|
2129
|
+
if (proto.views) {
|
|
2130
|
+
m.views = parseInt(proto.views, 10);
|
|
2131
|
+
}
|
|
2132
|
+
if (proto.clicks) {
|
|
2133
|
+
m.clicks = parseInt(proto.clicks, 10);
|
|
2134
|
+
}
|
|
2135
|
+
if (proto.comments) {
|
|
2136
|
+
m.comments = parseInt(proto.comments, 10);
|
|
2137
|
+
}
|
|
2138
|
+
if (proto.shares) {
|
|
2139
|
+
m.shares = parseInt(proto.shares, 10);
|
|
2140
|
+
}
|
|
2141
|
+
if (proto.reactions) {
|
|
2142
|
+
m.reactions = parseInt(proto.reactions, 10);
|
|
2143
|
+
}
|
|
2144
|
+
if (proto.saves) {
|
|
2145
|
+
m.saves = parseInt(proto.saves, 10);
|
|
2146
|
+
}
|
|
2147
|
+
if (proto.likes) {
|
|
2148
|
+
m.likes = parseInt(proto.likes, 10);
|
|
2149
|
+
}
|
|
2150
|
+
if (proto.videoViews) {
|
|
2151
|
+
m.videoViews = parseInt(proto.videoViews, 10);
|
|
2152
|
+
}
|
|
2153
|
+
if (proto.retweets) {
|
|
2154
|
+
m.retweets = parseInt(proto.retweets, 10);
|
|
2155
|
+
}
|
|
2156
|
+
if (proto.favourites) {
|
|
2157
|
+
m.favourites = parseInt(proto.favourites, 10);
|
|
2158
|
+
}
|
|
2159
|
+
if (proto.impressions) {
|
|
2160
|
+
m.impressions = parseInt(proto.impressions, 10);
|
|
2161
|
+
}
|
|
2162
|
+
if (proto.commentsCount) {
|
|
2163
|
+
m.commentsCount = parseInt(proto.commentsCount, 10);
|
|
2164
|
+
}
|
|
2165
|
+
if (proto.likeCount) {
|
|
2166
|
+
m.likeCount = parseInt(proto.likeCount, 10);
|
|
2167
|
+
}
|
|
2168
|
+
return m;
|
|
2169
|
+
}
|
|
2170
|
+
toApiJson() {
|
|
2171
|
+
const toReturn = {};
|
|
2172
|
+
if (typeof this.postId !== 'undefined') {
|
|
2173
|
+
toReturn['postId'] = this.postId;
|
|
2174
|
+
}
|
|
2175
|
+
if (typeof this.reach !== 'undefined') {
|
|
2176
|
+
toReturn['reach'] = this.reach;
|
|
2177
|
+
}
|
|
2178
|
+
if (typeof this.engagement !== 'undefined') {
|
|
2179
|
+
toReturn['engagement'] = this.engagement;
|
|
2180
|
+
}
|
|
2181
|
+
if (typeof this.views !== 'undefined') {
|
|
2182
|
+
toReturn['views'] = this.views;
|
|
2183
|
+
}
|
|
2184
|
+
if (typeof this.clicks !== 'undefined') {
|
|
2185
|
+
toReturn['clicks'] = this.clicks;
|
|
2186
|
+
}
|
|
2187
|
+
if (typeof this.comments !== 'undefined') {
|
|
2188
|
+
toReturn['comments'] = this.comments;
|
|
2189
|
+
}
|
|
2190
|
+
if (typeof this.shares !== 'undefined') {
|
|
2191
|
+
toReturn['shares'] = this.shares;
|
|
2192
|
+
}
|
|
2193
|
+
if (typeof this.reactions !== 'undefined') {
|
|
2194
|
+
toReturn['reactions'] = this.reactions;
|
|
2195
|
+
}
|
|
2196
|
+
if (typeof this.saves !== 'undefined') {
|
|
2197
|
+
toReturn['saves'] = this.saves;
|
|
2198
|
+
}
|
|
2199
|
+
if (typeof this.likes !== 'undefined') {
|
|
2200
|
+
toReturn['likes'] = this.likes;
|
|
2201
|
+
}
|
|
2202
|
+
if (typeof this.videoViews !== 'undefined') {
|
|
2203
|
+
toReturn['videoViews'] = this.videoViews;
|
|
2204
|
+
}
|
|
2205
|
+
if (typeof this.retweets !== 'undefined') {
|
|
2206
|
+
toReturn['retweets'] = this.retweets;
|
|
2207
|
+
}
|
|
2208
|
+
if (typeof this.favourites !== 'undefined') {
|
|
2209
|
+
toReturn['favourites'] = this.favourites;
|
|
2210
|
+
}
|
|
2211
|
+
if (typeof this.impressions !== 'undefined') {
|
|
2212
|
+
toReturn['impressions'] = this.impressions;
|
|
2213
|
+
}
|
|
2214
|
+
if (typeof this.commentsCount !== 'undefined') {
|
|
2215
|
+
toReturn['commentsCount'] = this.commentsCount;
|
|
2216
|
+
}
|
|
2217
|
+
if (typeof this.likeCount !== 'undefined') {
|
|
2218
|
+
toReturn['likeCount'] = this.likeCount;
|
|
2219
|
+
}
|
|
2220
|
+
return toReturn;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2024
2223
|
class RemoveFromMultilocationPostRequest {
|
|
2025
2224
|
constructor(kwargs) {
|
|
2026
2225
|
if (!kwargs) {
|
|
@@ -2319,9 +2518,9 @@ class HostService {
|
|
|
2319
2518
|
return 'https://' + this.host;
|
|
2320
2519
|
}
|
|
2321
2520
|
}
|
|
2322
|
-
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2323
|
-
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2521
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2522
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
2523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
2325
2524
|
type: Injectable,
|
|
2326
2525
|
args: [{ providedIn: 'root' }]
|
|
2327
2526
|
}] });
|
|
@@ -2376,9 +2575,9 @@ class SocialPostsApiService {
|
|
|
2376
2575
|
.pipe(map(resp => GetScheduledPostCountResponse.fromProto(resp)));
|
|
2377
2576
|
}
|
|
2378
2577
|
}
|
|
2379
|
-
SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2380
|
-
SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2578
|
+
SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2579
|
+
SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
|
|
2580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsApiService, decorators: [{
|
|
2382
2581
|
type: Injectable,
|
|
2383
2582
|
args: [{ providedIn: 'root' }]
|
|
2384
2583
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2413,9 +2612,9 @@ class SocialPostsService {
|
|
|
2413
2612
|
return this.socialPostsApiService.getScheduledPostCount(req);
|
|
2414
2613
|
}
|
|
2415
2614
|
}
|
|
2416
|
-
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2417
|
-
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2615
|
+
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2616
|
+
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
|
|
2617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
|
|
2419
2618
|
type: Injectable,
|
|
2420
2619
|
args: [{ providedIn: 'root' }]
|
|
2421
2620
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
@@ -2459,9 +2658,9 @@ class PostTemplatesApiService {
|
|
|
2459
2658
|
return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2460
2659
|
}
|
|
2461
2660
|
}
|
|
2462
|
-
PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2463
|
-
PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2661
|
+
PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2662
|
+
PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
|
|
2663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
|
|
2465
2664
|
type: Injectable,
|
|
2466
2665
|
args: [{ providedIn: 'root' }]
|
|
2467
2666
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2526,9 +2725,9 @@ class PostTemplatesService {
|
|
|
2526
2725
|
return this.socialPostsApiService.deletePostTemplate(req);
|
|
2527
2726
|
}
|
|
2528
2727
|
}
|
|
2529
|
-
PostTemplatesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2530
|
-
PostTemplatesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2728
|
+
PostTemplatesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, deps: [{ token: PostTemplatesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2729
|
+
PostTemplatesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, providedIn: 'root' });
|
|
2730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, decorators: [{
|
|
2532
2731
|
type: Injectable,
|
|
2533
2732
|
args: [{ providedIn: 'root' }]
|
|
2534
2733
|
}], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
|
|
@@ -2577,9 +2776,9 @@ class MultilocationPostApiService {
|
|
|
2577
2776
|
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
2578
2777
|
}
|
|
2579
2778
|
}
|
|
2580
|
-
MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2581
|
-
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2779
|
+
MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2780
|
+
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
2781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
2583
2782
|
type: Injectable,
|
|
2584
2783
|
args: [{ providedIn: 'root' }]
|
|
2585
2784
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2648,9 +2847,9 @@ class MultilocationPostsService {
|
|
|
2648
2847
|
return this.multilocationApiService.getMultilocationPost(req);
|
|
2649
2848
|
}
|
|
2650
2849
|
}
|
|
2651
|
-
MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2652
|
-
MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2850
|
+
MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, deps: [{ token: MultilocationPostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2851
|
+
MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, providedIn: 'root' });
|
|
2852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, decorators: [{
|
|
2654
2853
|
type: Injectable,
|
|
2655
2854
|
args: [{ providedIn: 'root' }]
|
|
2656
2855
|
}], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
|
|
@@ -2681,9 +2880,9 @@ class TenorGifsApiService {
|
|
|
2681
2880
|
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
2682
2881
|
}
|
|
2683
2882
|
}
|
|
2684
|
-
TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2685
|
-
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2883
|
+
TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2884
|
+
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
2885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
2687
2886
|
type: Injectable,
|
|
2688
2887
|
args: [{ providedIn: 'root' }]
|
|
2689
2888
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2710,9 +2909,9 @@ class TenorGifsService {
|
|
|
2710
2909
|
return this.tenorGifsApiService.getTenorAnonymousId(request);
|
|
2711
2910
|
}
|
|
2712
2911
|
}
|
|
2713
|
-
TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2714
|
-
TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2912
|
+
TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, deps: [{ token: TenorGifsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2913
|
+
TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, providedIn: 'root' });
|
|
2914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, decorators: [{
|
|
2716
2915
|
type: Injectable,
|
|
2717
2916
|
args: [{ providedIn: 'root' }]
|
|
2718
2917
|
}], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
|
|
@@ -2738,9 +2937,9 @@ class PixabayImagesApiService {
|
|
|
2738
2937
|
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
2739
2938
|
}
|
|
2740
2939
|
}
|
|
2741
|
-
PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2742
|
-
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2940
|
+
PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2941
|
+
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
2942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
2744
2943
|
type: Injectable,
|
|
2745
2944
|
args: [{ providedIn: 'root' }]
|
|
2746
2945
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2756,9 +2955,9 @@ class PixabayImageService {
|
|
|
2756
2955
|
return this.pixabayApiService.listPixabayImages(request);
|
|
2757
2956
|
}
|
|
2758
2957
|
}
|
|
2759
|
-
PixabayImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2760
|
-
PixabayImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2958
|
+
PixabayImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, deps: [{ token: PixabayImagesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2959
|
+
PixabayImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, providedIn: 'root' });
|
|
2960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, decorators: [{
|
|
2762
2961
|
type: Injectable,
|
|
2763
2962
|
args: [{ providedIn: 'root' }]
|
|
2764
2963
|
}], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
|
|
@@ -2792,9 +2991,9 @@ class HashTagsApiService {
|
|
|
2792
2991
|
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
2793
2992
|
}
|
|
2794
2993
|
}
|
|
2795
|
-
HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2796
|
-
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2994
|
+
HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2995
|
+
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
2996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
2798
2997
|
type: Injectable,
|
|
2799
2998
|
args: [{ providedIn: 'root' }]
|
|
2800
2999
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2829,13 +3028,66 @@ class HashTagsService {
|
|
|
2829
3028
|
return this.hashTagsApiService.searchHashtag(request);
|
|
2830
3029
|
}
|
|
2831
3030
|
}
|
|
2832
|
-
HashTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2833
|
-
HashTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3031
|
+
HashTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, deps: [{ token: HashTagsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3032
|
+
HashTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, providedIn: 'root' });
|
|
3033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, decorators: [{
|
|
2835
3034
|
type: Injectable,
|
|
2836
3035
|
args: [{ providedIn: 'root' }]
|
|
2837
3036
|
}], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
|
|
2838
3037
|
|
|
3038
|
+
// *********************************
|
|
3039
|
+
class PostPerformanceApiService {
|
|
3040
|
+
constructor(http, hostService) {
|
|
3041
|
+
this.http = http;
|
|
3042
|
+
this.hostService = hostService;
|
|
3043
|
+
this._host = this.hostService.hostWithScheme;
|
|
3044
|
+
}
|
|
3045
|
+
apiOptions() {
|
|
3046
|
+
return {
|
|
3047
|
+
headers: new HttpHeaders({
|
|
3048
|
+
'Content-Type': 'application/json'
|
|
3049
|
+
}),
|
|
3050
|
+
withCredentials: true
|
|
3051
|
+
};
|
|
3052
|
+
}
|
|
3053
|
+
generateCsvForPerformanceStats(r) {
|
|
3054
|
+
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3055
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3056
|
+
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3057
|
+
}
|
|
3058
|
+
getGeneratedCsvForPerformanceStats(r) {
|
|
3059
|
+
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3060
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3061
|
+
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
PostPerformanceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3065
|
+
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3066
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3067
|
+
type: Injectable,
|
|
3068
|
+
args: [{ providedIn: 'root' }]
|
|
3069
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3070
|
+
|
|
3071
|
+
class PostPerformanceService {
|
|
3072
|
+
constructor(postPerformanceApiService) {
|
|
3073
|
+
this.postPerformanceApiService = postPerformanceApiService;
|
|
3074
|
+
}
|
|
3075
|
+
generateCSV(businessId, postData, includeHeaders) {
|
|
3076
|
+
const request = new GenerateCSVForPerformanceStatsRequest({
|
|
3077
|
+
businessId: businessId,
|
|
3078
|
+
postData: postData,
|
|
3079
|
+
includeHeaders: includeHeaders
|
|
3080
|
+
});
|
|
3081
|
+
return this.postPerformanceApiService.generateCsvForPerformanceStats(request).pipe(map((res) => res.generatedId));
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
PostPerformanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, deps: [{ token: PostPerformanceApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3085
|
+
PostPerformanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, providedIn: 'root' });
|
|
3086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, decorators: [{
|
|
3087
|
+
type: Injectable,
|
|
3088
|
+
args: [{ providedIn: 'root' }]
|
|
3089
|
+
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
3090
|
+
|
|
2839
3091
|
// *********************************
|
|
2840
3092
|
class PartnerSocialPostsApiService {
|
|
2841
3093
|
constructor(http, hostService) {
|
|
@@ -2862,9 +3114,9 @@ class PartnerSocialPostsApiService {
|
|
|
2862
3114
|
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
2863
3115
|
}
|
|
2864
3116
|
}
|
|
2865
|
-
PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2866
|
-
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3117
|
+
PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3118
|
+
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
2868
3120
|
type: Injectable,
|
|
2869
3121
|
args: [{ providedIn: 'root' }]
|
|
2870
3122
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2879,5 +3131,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
2879
3131
|
* Generated bundle index. Do not edit.
|
|
2880
3132
|
*/
|
|
2881
3133
|
|
|
2882
|
-
export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
|
|
3134
|
+
export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostPerformanceApiService, PostPerformanceService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
|
|
2883
3135
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|