@vendasta/social-posts 5.2.0 → 5.4.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.
Files changed (39) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +4 -4
  2. package/esm2020/lib/_internal/hash-tags.api.service.mjs +4 -4
  3. package/esm2020/lib/_internal/index.mjs +2 -1
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  6. package/esm2020/lib/_internal/multilocation-post.api.service.mjs +4 -4
  7. package/esm2020/lib/_internal/objects/api.mjs +240 -1
  8. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  9. package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +4 -4
  10. package/esm2020/lib/_internal/pixabay-images.api.service.mjs +4 -4
  11. package/esm2020/lib/_internal/post-performance.api.service.mjs +46 -0
  12. package/esm2020/lib/_internal/post-templates.api.service.mjs +4 -4
  13. package/esm2020/lib/_internal/social-posts.api.service.mjs +10 -5
  14. package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +4 -4
  15. package/esm2020/lib/hashtag.service.mjs +4 -4
  16. package/esm2020/lib/index.mjs +3 -2
  17. package/esm2020/lib/multilocation-posts.service.mjs +4 -4
  18. package/esm2020/lib/pixabay-image.service.mjs +4 -4
  19. package/esm2020/lib/post-performance.service.mjs +26 -0
  20. package/esm2020/lib/post-templates.service.mjs +4 -4
  21. package/esm2020/lib/social-posts.service.mjs +9 -5
  22. package/esm2020/lib/tenor-gifs.service.mjs +4 -4
  23. package/esm2020/public_api.mjs +1 -4
  24. package/fesm2015/vendasta-social-posts.mjs +344 -47
  25. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  26. package/fesm2020/vendasta-social-posts.mjs +344 -47
  27. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  28. package/{vendasta-social-posts.d.ts → index.d.ts} +0 -0
  29. package/lib/_internal/index.d.ts +1 -0
  30. package/lib/_internal/interfaces/api.interface.d.ts +39 -0
  31. package/lib/_internal/interfaces/index.d.ts +1 -1
  32. package/lib/_internal/objects/api.d.ts +60 -0
  33. package/lib/_internal/objects/index.d.ts +1 -1
  34. package/lib/_internal/post-performance.api.service.d.ts +17 -0
  35. package/lib/_internal/social-posts.api.service.d.ts +3 -2
  36. package/lib/index.d.ts +2 -1
  37. package/lib/post-performance.service.d.ts +11 -0
  38. package/lib/social-posts.service.d.ts +2 -1
  39. package/package.json +5 -5
@@ -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,113 @@ 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.views) {
2127
+ m.views = parseInt(proto.views, 10);
2128
+ }
2129
+ if (proto.clicks) {
2130
+ m.clicks = parseInt(proto.clicks, 10);
2131
+ }
2132
+ if (proto.comments) {
2133
+ m.comments = parseInt(proto.comments, 10);
2134
+ }
2135
+ if (proto.shares) {
2136
+ m.shares = parseInt(proto.shares, 10);
2137
+ }
2138
+ if (proto.reactions) {
2139
+ m.reactions = parseInt(proto.reactions, 10);
2140
+ }
2141
+ if (proto.saves) {
2142
+ m.saves = parseInt(proto.saves, 10);
2143
+ }
2144
+ if (proto.likes) {
2145
+ m.likes = parseInt(proto.likes, 10);
2146
+ }
2147
+ if (proto.videoViews) {
2148
+ m.videoViews = parseInt(proto.videoViews, 10);
2149
+ }
2150
+ if (proto.retweets) {
2151
+ m.retweets = parseInt(proto.retweets, 10);
2152
+ }
2153
+ if (proto.favourites) {
2154
+ m.favourites = parseInt(proto.favourites, 10);
2155
+ }
2156
+ if (proto.impressions) {
2157
+ m.impressions = parseInt(proto.impressions, 10);
2158
+ }
2159
+ if (proto.commentsCount) {
2160
+ m.commentsCount = parseInt(proto.commentsCount, 10);
2161
+ }
2162
+ if (proto.likeCount) {
2163
+ m.likeCount = parseInt(proto.likeCount, 10);
2164
+ }
2165
+ return m;
2166
+ }
2167
+ toApiJson() {
2168
+ const toReturn = {};
2169
+ if (typeof this.postId !== 'undefined') {
2170
+ toReturn['postId'] = this.postId;
2171
+ }
2172
+ if (typeof this.reach !== 'undefined') {
2173
+ toReturn['reach'] = this.reach;
2174
+ }
2175
+ if (typeof this.engagement !== 'undefined') {
2176
+ toReturn['engagement'] = this.engagement;
2177
+ }
2178
+ if (typeof this.views !== 'undefined') {
2179
+ toReturn['views'] = this.views;
2180
+ }
2181
+ if (typeof this.clicks !== 'undefined') {
2182
+ toReturn['clicks'] = this.clicks;
2183
+ }
2184
+ if (typeof this.comments !== 'undefined') {
2185
+ toReturn['comments'] = this.comments;
2186
+ }
2187
+ if (typeof this.shares !== 'undefined') {
2188
+ toReturn['shares'] = this.shares;
2189
+ }
2190
+ if (typeof this.reactions !== 'undefined') {
2191
+ toReturn['reactions'] = this.reactions;
2192
+ }
2193
+ if (typeof this.saves !== 'undefined') {
2194
+ toReturn['saves'] = this.saves;
2195
+ }
2196
+ if (typeof this.likes !== 'undefined') {
2197
+ toReturn['likes'] = this.likes;
2198
+ }
2199
+ if (typeof this.videoViews !== 'undefined') {
2200
+ toReturn['videoViews'] = this.videoViews;
2201
+ }
2202
+ if (typeof this.retweets !== 'undefined') {
2203
+ toReturn['retweets'] = this.retweets;
2204
+ }
2205
+ if (typeof this.favourites !== 'undefined') {
2206
+ toReturn['favourites'] = this.favourites;
2207
+ }
2208
+ if (typeof this.impressions !== 'undefined') {
2209
+ toReturn['impressions'] = this.impressions;
2210
+ }
2211
+ if (typeof this.commentsCount !== 'undefined') {
2212
+ toReturn['commentsCount'] = this.commentsCount;
2213
+ }
2214
+ if (typeof this.likeCount !== 'undefined') {
2215
+ toReturn['likeCount'] = this.likeCount;
2216
+ }
2217
+ return toReturn;
2218
+ }
2219
+ }
2024
2220
  class RemoveFromMultilocationPostRequest {
2025
2221
  constructor(kwargs) {
2026
2222
  if (!kwargs) {
@@ -2244,6 +2440,49 @@ class SearchHashtagResponse {
2244
2440
  return toReturn;
2245
2441
  }
2246
2442
  }
2443
+ class SuggestMessageRequest {
2444
+ constructor(kwargs) {
2445
+ if (!kwargs) {
2446
+ return;
2447
+ }
2448
+ Object.assign(this, kwargs);
2449
+ }
2450
+ static fromProto(proto) {
2451
+ let m = new SuggestMessageRequest();
2452
+ m = Object.assign(m, proto);
2453
+ return m;
2454
+ }
2455
+ toApiJson() {
2456
+ const toReturn = {};
2457
+ if (typeof this.prompt !== 'undefined') {
2458
+ toReturn['prompt'] = this.prompt;
2459
+ }
2460
+ if (typeof this.businessId !== 'undefined') {
2461
+ toReturn['businessId'] = this.businessId;
2462
+ }
2463
+ return toReturn;
2464
+ }
2465
+ }
2466
+ class SuggestMessageResponse {
2467
+ constructor(kwargs) {
2468
+ if (!kwargs) {
2469
+ return;
2470
+ }
2471
+ Object.assign(this, kwargs);
2472
+ }
2473
+ static fromProto(proto) {
2474
+ let m = new SuggestMessageResponse();
2475
+ m = Object.assign(m, proto);
2476
+ return m;
2477
+ }
2478
+ toApiJson() {
2479
+ const toReturn = {};
2480
+ if (typeof this.message !== 'undefined') {
2481
+ toReturn['message'] = this.message;
2482
+ }
2483
+ return toReturn;
2484
+ }
2485
+ }
2247
2486
  class UpdatePostTemplateRequest {
2248
2487
  constructor(kwargs) {
2249
2488
  if (!kwargs) {
@@ -2319,9 +2558,9 @@ class HostService {
2319
2558
  return 'https://' + this.host;
2320
2559
  }
2321
2560
  }
2322
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2323
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HostService, providedIn: 'root' });
2324
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HostService, decorators: [{
2561
+ HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2562
+ HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
2563
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, decorators: [{
2325
2564
  type: Injectable,
2326
2565
  args: [{ providedIn: 'root' }]
2327
2566
  }] });
@@ -2375,10 +2614,15 @@ class SocialPostsApiService {
2375
2614
  return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetScheduledPostCount", request.toApiJson(), this.apiOptions())
2376
2615
  .pipe(map(resp => GetScheduledPostCountResponse.fromProto(resp)));
2377
2616
  }
2617
+ suggestMessage(r) {
2618
+ const request = (r.toApiJson) ? r : new SuggestMessageRequest(r);
2619
+ return this.http.post(this._host + "/socialposts.v1.SocialPosts/SuggestMessage", request.toApiJson(), this.apiOptions())
2620
+ .pipe(map(resp => SuggestMessageResponse.fromProto(resp)));
2621
+ }
2378
2622
  }
2379
- SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2380
- SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
2381
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsApiService, decorators: [{
2623
+ 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 });
2624
+ SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
2625
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsApiService, decorators: [{
2382
2626
  type: Injectable,
2383
2627
  args: [{ providedIn: 'root' }]
2384
2628
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2412,10 +2656,14 @@ class SocialPostsService {
2412
2656
  const req = new GetScheduledPostCountRequest({ partnerId: partnerId, businessId: businessId, socialServiceIds: socialServiceIds });
2413
2657
  return this.socialPostsApiService.getScheduledPostCount(req);
2414
2658
  }
2659
+ suggestMessage(businessId, prompt) {
2660
+ const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt });
2661
+ return this.socialPostsApiService.suggestMessage(req);
2662
+ }
2415
2663
  }
2416
- SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2417
- SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
2418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsService, decorators: [{
2664
+ SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2665
+ SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
2666
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
2419
2667
  type: Injectable,
2420
2668
  args: [{ providedIn: 'root' }]
2421
2669
  }], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
@@ -2459,9 +2707,9 @@ class PostTemplatesApiService {
2459
2707
  return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2460
2708
  }
2461
2709
  }
2462
- PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2463
- PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
2464
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesApiService, decorators: [{
2710
+ 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 });
2711
+ PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
2712
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
2465
2713
  type: Injectable,
2466
2714
  args: [{ providedIn: 'root' }]
2467
2715
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2526,9 +2774,9 @@ class PostTemplatesService {
2526
2774
  return this.socialPostsApiService.deletePostTemplate(req);
2527
2775
  }
2528
2776
  }
2529
- PostTemplatesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesService, deps: [{ token: PostTemplatesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2530
- PostTemplatesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesService, providedIn: 'root' });
2531
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesService, decorators: [{
2777
+ PostTemplatesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, deps: [{ token: PostTemplatesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2778
+ PostTemplatesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, providedIn: 'root' });
2779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, decorators: [{
2532
2780
  type: Injectable,
2533
2781
  args: [{ providedIn: 'root' }]
2534
2782
  }], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
@@ -2577,9 +2825,9 @@ class MultilocationPostApiService {
2577
2825
  .pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
2578
2826
  }
2579
2827
  }
2580
- MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2581
- MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
2582
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostApiService, decorators: [{
2828
+ 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 });
2829
+ MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
2830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
2583
2831
  type: Injectable,
2584
2832
  args: [{ providedIn: 'root' }]
2585
2833
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2648,9 +2896,9 @@ class MultilocationPostsService {
2648
2896
  return this.multilocationApiService.getMultilocationPost(req);
2649
2897
  }
2650
2898
  }
2651
- MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostsService, deps: [{ token: MultilocationPostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2652
- MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostsService, providedIn: 'root' });
2653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostsService, decorators: [{
2899
+ MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, deps: [{ token: MultilocationPostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2900
+ MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, providedIn: 'root' });
2901
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, decorators: [{
2654
2902
  type: Injectable,
2655
2903
  args: [{ providedIn: 'root' }]
2656
2904
  }], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
@@ -2681,9 +2929,9 @@ class TenorGifsApiService {
2681
2929
  .pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
2682
2930
  }
2683
2931
  }
2684
- TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2685
- TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
2686
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsApiService, decorators: [{
2932
+ 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 });
2933
+ TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
2934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
2687
2935
  type: Injectable,
2688
2936
  args: [{ providedIn: 'root' }]
2689
2937
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2710,9 +2958,9 @@ class TenorGifsService {
2710
2958
  return this.tenorGifsApiService.getTenorAnonymousId(request);
2711
2959
  }
2712
2960
  }
2713
- TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsService, deps: [{ token: TenorGifsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2714
- TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsService, providedIn: 'root' });
2715
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsService, decorators: [{
2961
+ TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, deps: [{ token: TenorGifsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2962
+ TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, providedIn: 'root' });
2963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, decorators: [{
2716
2964
  type: Injectable,
2717
2965
  args: [{ providedIn: 'root' }]
2718
2966
  }], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
@@ -2738,9 +2986,9 @@ class PixabayImagesApiService {
2738
2986
  .pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
2739
2987
  }
2740
2988
  }
2741
- PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImagesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2742
- PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
2743
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImagesApiService, decorators: [{
2989
+ 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 });
2990
+ PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
2991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
2744
2992
  type: Injectable,
2745
2993
  args: [{ providedIn: 'root' }]
2746
2994
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2756,9 +3004,9 @@ class PixabayImageService {
2756
3004
  return this.pixabayApiService.listPixabayImages(request);
2757
3005
  }
2758
3006
  }
2759
- PixabayImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImageService, deps: [{ token: PixabayImagesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2760
- PixabayImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImageService, providedIn: 'root' });
2761
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImageService, decorators: [{
3007
+ PixabayImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, deps: [{ token: PixabayImagesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
3008
+ PixabayImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, providedIn: 'root' });
3009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, decorators: [{
2762
3010
  type: Injectable,
2763
3011
  args: [{ providedIn: 'root' }]
2764
3012
  }], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
@@ -2792,9 +3040,9 @@ class HashTagsApiService {
2792
3040
  .pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
2793
3041
  }
2794
3042
  }
2795
- HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HashTagsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2796
- HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
2797
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HashTagsApiService, decorators: [{
3043
+ 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 });
3044
+ HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
3045
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
2798
3046
  type: Injectable,
2799
3047
  args: [{ providedIn: 'root' }]
2800
3048
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2829,13 +3077,66 @@ class HashTagsService {
2829
3077
  return this.hashTagsApiService.searchHashtag(request);
2830
3078
  }
2831
3079
  }
2832
- HashTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HashTagsService, deps: [{ token: HashTagsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2833
- HashTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HashTagsService, providedIn: 'root' });
2834
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HashTagsService, decorators: [{
3080
+ HashTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, deps: [{ token: HashTagsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
3081
+ HashTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, providedIn: 'root' });
3082
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, decorators: [{
2835
3083
  type: Injectable,
2836
3084
  args: [{ providedIn: 'root' }]
2837
3085
  }], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
2838
3086
 
3087
+ // *********************************
3088
+ class PostPerformanceApiService {
3089
+ constructor(http, hostService) {
3090
+ this.http = http;
3091
+ this.hostService = hostService;
3092
+ this._host = this.hostService.hostWithScheme;
3093
+ }
3094
+ apiOptions() {
3095
+ return {
3096
+ headers: new HttpHeaders({
3097
+ 'Content-Type': 'application/json'
3098
+ }),
3099
+ withCredentials: true
3100
+ };
3101
+ }
3102
+ generateCsvForPerformanceStats(r) {
3103
+ const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
3104
+ return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
3105
+ .pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
3106
+ }
3107
+ getGeneratedCsvForPerformanceStats(r) {
3108
+ const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
3109
+ return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
3110
+ .pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
3111
+ }
3112
+ }
3113
+ 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 });
3114
+ PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
3115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
3116
+ type: Injectable,
3117
+ args: [{ providedIn: 'root' }]
3118
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3119
+
3120
+ class PostPerformanceService {
3121
+ constructor(postPerformanceApiService) {
3122
+ this.postPerformanceApiService = postPerformanceApiService;
3123
+ }
3124
+ generateCSV(businessId, postData, includeHeaders) {
3125
+ const request = new GenerateCSVForPerformanceStatsRequest({
3126
+ businessId: businessId,
3127
+ postData: postData,
3128
+ includeHeaders: includeHeaders
3129
+ });
3130
+ return this.postPerformanceApiService.generateCsvForPerformanceStats(request).pipe(map((res) => res.generatedId));
3131
+ }
3132
+ }
3133
+ PostPerformanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, deps: [{ token: PostPerformanceApiService }], target: i0.ɵɵFactoryTarget.Injectable });
3134
+ PostPerformanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, providedIn: 'root' });
3135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, decorators: [{
3136
+ type: Injectable,
3137
+ args: [{ providedIn: 'root' }]
3138
+ }], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
3139
+
2839
3140
  // *********************************
2840
3141
  class PartnerSocialPostsApiService {
2841
3142
  constructor(http, hostService) {
@@ -2862,22 +3163,18 @@ class PartnerSocialPostsApiService {
2862
3163
  .pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
2863
3164
  }
2864
3165
  }
2865
- PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PartnerSocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2866
- PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
2867
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
3166
+ 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 });
3167
+ PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
3168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
2868
3169
  type: Injectable,
2869
3170
  args: [{ providedIn: 'root' }]
2870
3171
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2871
3172
 
2872
3173
  // *********************************
2873
3174
 
2874
- /*
2875
- * Public API Surface of social-posts
2876
- */
2877
-
2878
3175
  /**
2879
3176
  * Generated bundle index. Do not edit.
2880
3177
  */
2881
3178
 
2882
- export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
3179
+ export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostPerformanceApiService, PostPerformanceService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
2883
3180
  //# sourceMappingURL=vendasta-social-posts.mjs.map