@vendasta/social-posts 5.1.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.
Files changed (42) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +4 -4
  2. package/esm2020/lib/_internal/hash-tags.api.service.mjs +49 -0
  3. package/esm2020/lib/_internal/index.mjs +3 -1
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/hashtag.interface.mjs +8 -0
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/multilocation-post.api.service.mjs +4 -4
  8. package/esm2020/lib/_internal/objects/api.mjs +308 -1
  9. package/esm2020/lib/_internal/objects/hashtag.mjs +39 -0
  10. package/esm2020/lib/_internal/objects/index.mjs +3 -2
  11. package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +4 -4
  12. package/esm2020/lib/_internal/pixabay-images.api.service.mjs +4 -4
  13. package/esm2020/lib/_internal/post-performance.api.service.mjs +46 -0
  14. package/esm2020/lib/_internal/post-templates.api.service.mjs +4 -4
  15. package/esm2020/lib/_internal/social-posts.api.service.mjs +4 -4
  16. package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +4 -4
  17. package/esm2020/lib/hashtag.service.mjs +42 -0
  18. package/esm2020/lib/index.mjs +4 -2
  19. package/esm2020/lib/multilocation-posts.service.mjs +4 -4
  20. package/esm2020/lib/pixabay-image.service.mjs +4 -4
  21. package/esm2020/lib/post-performance.service.mjs +26 -0
  22. package/esm2020/lib/post-templates.service.mjs +4 -4
  23. package/esm2020/lib/social-posts.service.mjs +4 -4
  24. package/esm2020/lib/tenor-gifs.service.mjs +4 -4
  25. package/fesm2015/vendasta-social-posts.mjs +509 -38
  26. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  27. package/fesm2020/vendasta-social-posts.mjs +509 -38
  28. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  29. package/{vendasta-social-posts.d.ts → index.d.ts} +0 -0
  30. package/lib/_internal/hash-tags.api.service.d.ts +18 -0
  31. package/lib/_internal/index.d.ts +2 -0
  32. package/lib/_internal/interfaces/api.interface.d.ts +52 -0
  33. package/lib/_internal/interfaces/hashtag.interface.d.ts +6 -0
  34. package/lib/_internal/interfaces/index.d.ts +2 -1
  35. package/lib/_internal/objects/api.d.ts +79 -0
  36. package/lib/_internal/objects/hashtag.d.ts +11 -0
  37. package/lib/_internal/objects/index.d.ts +2 -1
  38. package/lib/_internal/post-performance.api.service.d.ts +17 -0
  39. package/lib/hashtag.service.d.ts +13 -0
  40. package/lib/index.d.ts +3 -1
  41. package/lib/post-performance.service.d.ts +11 -0
  42. package/package.json +3 -3
@@ -5,7 +5,7 @@ import * as i1 from '@angular/common/http';
5
5
  import { HttpHeaders } from '@angular/common/http';
6
6
  import { map } from 'rxjs/operators';
7
7
 
8
- function enumStringToValue$7(enumRef, value) {
8
+ function enumStringToValue$8(enumRef, value) {
9
9
  if (typeof value === 'number') {
10
10
  return value;
11
11
  }
@@ -32,6 +32,45 @@ class FieldMask {
32
32
  }
33
33
  }
34
34
 
35
+ function enumStringToValue$7(enumRef, value) {
36
+ if (typeof value === 'number') {
37
+ return value;
38
+ }
39
+ return enumRef[value];
40
+ }
41
+ class Hashtag {
42
+ constructor(kwargs) {
43
+ if (!kwargs) {
44
+ return;
45
+ }
46
+ Object.assign(this, kwargs);
47
+ }
48
+ static fromProto(proto) {
49
+ let m = new Hashtag();
50
+ m = Object.assign(m, proto);
51
+ if (proto.usedCount) {
52
+ m.usedCount = parseInt(proto.usedCount, 10);
53
+ }
54
+ return m;
55
+ }
56
+ toApiJson() {
57
+ const toReturn = {};
58
+ if (typeof this.keyword !== 'undefined') {
59
+ toReturn['keyword'] = this.keyword;
60
+ }
61
+ if (typeof this.usedCount !== 'undefined') {
62
+ toReturn['usedCount'] = this.usedCount;
63
+ }
64
+ if (typeof this.businessId !== 'undefined') {
65
+ toReturn['businessId'] = this.businessId;
66
+ }
67
+ if (typeof this.partnerId !== 'undefined') {
68
+ toReturn['partnerId'] = this.partnerId;
69
+ }
70
+ return toReturn;
71
+ }
72
+ }
73
+
35
74
  function enumStringToValue$6(enumRef, value) {
36
75
  if (typeof value === 'number') {
37
76
  return value;
@@ -1098,6 +1137,32 @@ class DateRangeFilter {
1098
1137
  return toReturn;
1099
1138
  }
1100
1139
  }
1140
+ class DeleteHashtagsRequest {
1141
+ constructor(kwargs) {
1142
+ if (!kwargs) {
1143
+ return;
1144
+ }
1145
+ Object.assign(this, kwargs);
1146
+ }
1147
+ static fromProto(proto) {
1148
+ let m = new DeleteHashtagsRequest();
1149
+ m = Object.assign(m, proto);
1150
+ return m;
1151
+ }
1152
+ toApiJson() {
1153
+ const toReturn = {};
1154
+ if (typeof this.keyword !== 'undefined') {
1155
+ toReturn['keyword'] = this.keyword;
1156
+ }
1157
+ if (typeof this.businessId !== 'undefined') {
1158
+ toReturn['businessId'] = this.businessId;
1159
+ }
1160
+ if (typeof this.partnerId !== 'undefined') {
1161
+ toReturn['partnerId'] = this.partnerId;
1162
+ }
1163
+ return toReturn;
1164
+ }
1165
+ }
1101
1166
  class DeleteMultilocationPostRequest {
1102
1167
  constructor(kwargs) {
1103
1168
  if (!kwargs) {
@@ -1275,6 +1340,95 @@ class PartnerListScheduledSocialPostsRequestFilters {
1275
1340
  return toReturn;
1276
1341
  }
1277
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
+ }
1278
1432
  class GetMultiSocialPostStatsRequest {
1279
1433
  constructor(kwargs) {
1280
1434
  if (!kwargs) {
@@ -1956,6 +2110,116 @@ class PartnerListScheduledSocialPostsRequest {
1956
2110
  return toReturn;
1957
2111
  }
1958
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
+ }
1959
2223
  class RemoveFromMultilocationPostRequest {
1960
2224
  constructor(kwargs) {
1961
2225
  if (!kwargs) {
@@ -1991,6 +2255,32 @@ class RemoveFromMultilocationPostRequest {
1991
2255
  return toReturn;
1992
2256
  }
1993
2257
  }
2258
+ class ReplaceHashtagsRequest {
2259
+ constructor(kwargs) {
2260
+ if (!kwargs) {
2261
+ return;
2262
+ }
2263
+ Object.assign(this, kwargs);
2264
+ }
2265
+ static fromProto(proto) {
2266
+ let m = new ReplaceHashtagsRequest();
2267
+ m = Object.assign(m, proto);
2268
+ return m;
2269
+ }
2270
+ toApiJson() {
2271
+ const toReturn = {};
2272
+ if (typeof this.keyword !== 'undefined') {
2273
+ toReturn['keyword'] = this.keyword;
2274
+ }
2275
+ if (typeof this.businessId !== 'undefined') {
2276
+ toReturn['businessId'] = this.businessId;
2277
+ }
2278
+ if (typeof this.partnerId !== 'undefined') {
2279
+ toReturn['partnerId'] = this.partnerId;
2280
+ }
2281
+ return toReturn;
2282
+ }
2283
+ }
1994
2284
  class SchedulePostRequest {
1995
2285
  constructor(kwargs) {
1996
2286
  if (!kwargs) {
@@ -2098,6 +2388,61 @@ class ScheduleToAllPagesResponse {
2098
2388
  return toReturn;
2099
2389
  }
2100
2390
  }
2391
+ class SearchHashtagRequest {
2392
+ constructor(kwargs) {
2393
+ if (!kwargs) {
2394
+ return;
2395
+ }
2396
+ Object.assign(this, kwargs);
2397
+ }
2398
+ static fromProto(proto) {
2399
+ let m = new SearchHashtagRequest();
2400
+ m = Object.assign(m, proto);
2401
+ if (proto.limit) {
2402
+ m.limit = parseInt(proto.limit, 10);
2403
+ }
2404
+ return m;
2405
+ }
2406
+ toApiJson() {
2407
+ const toReturn = {};
2408
+ if (typeof this.searchTerm !== 'undefined') {
2409
+ toReturn['searchTerm'] = this.searchTerm;
2410
+ }
2411
+ if (typeof this.limit !== 'undefined') {
2412
+ toReturn['limit'] = this.limit;
2413
+ }
2414
+ if (typeof this.businessId !== 'undefined') {
2415
+ toReturn['businessId'] = this.businessId;
2416
+ }
2417
+ if (typeof this.partnerId !== 'undefined') {
2418
+ toReturn['partnerId'] = this.partnerId;
2419
+ }
2420
+ return toReturn;
2421
+ }
2422
+ }
2423
+ class SearchHashtagResponse {
2424
+ constructor(kwargs) {
2425
+ if (!kwargs) {
2426
+ return;
2427
+ }
2428
+ Object.assign(this, kwargs);
2429
+ }
2430
+ static fromProto(proto) {
2431
+ let m = new SearchHashtagResponse();
2432
+ m = Object.assign(m, proto);
2433
+ if (proto.hashtags) {
2434
+ m.hashtags = proto.hashtags.map(Hashtag.fromProto);
2435
+ }
2436
+ return m;
2437
+ }
2438
+ toApiJson() {
2439
+ const toReturn = {};
2440
+ if (typeof this.hashtags !== 'undefined' && this.hashtags !== null) {
2441
+ toReturn['hashtags'] = 'toApiJson' in this.hashtags ? this.hashtags.toApiJson() : this.hashtags;
2442
+ }
2443
+ return toReturn;
2444
+ }
2445
+ }
2101
2446
  class UpdatePostTemplateRequest {
2102
2447
  constructor(kwargs) {
2103
2448
  if (!kwargs) {
@@ -2173,9 +2518,9 @@ class HostService {
2173
2518
  return 'https://' + this.host;
2174
2519
  }
2175
2520
  }
2176
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2177
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HostService, providedIn: 'root' });
2178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: HostService, decorators: [{
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: [{
2179
2524
  type: Injectable,
2180
2525
  args: [{ providedIn: 'root' }]
2181
2526
  }] });
@@ -2230,9 +2575,9 @@ class SocialPostsApiService {
2230
2575
  .pipe(map(resp => GetScheduledPostCountResponse.fromProto(resp)));
2231
2576
  }
2232
2577
  }
2233
- 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 });
2234
- SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
2235
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsApiService, decorators: [{
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: [{
2236
2581
  type: Injectable,
2237
2582
  args: [{ providedIn: 'root' }]
2238
2583
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2267,9 +2612,9 @@ class SocialPostsService {
2267
2612
  return this.socialPostsApiService.getScheduledPostCount(req);
2268
2613
  }
2269
2614
  }
2270
- SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2271
- SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
2272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SocialPostsService, decorators: [{
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: [{
2273
2618
  type: Injectable,
2274
2619
  args: [{ providedIn: 'root' }]
2275
2620
  }], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
@@ -2313,9 +2658,9 @@ class PostTemplatesApiService {
2313
2658
  return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2314
2659
  }
2315
2660
  }
2316
- 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 });
2317
- PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
2318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesApiService, decorators: [{
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: [{
2319
2664
  type: Injectable,
2320
2665
  args: [{ providedIn: 'root' }]
2321
2666
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2380,9 +2725,9 @@ class PostTemplatesService {
2380
2725
  return this.socialPostsApiService.deletePostTemplate(req);
2381
2726
  }
2382
2727
  }
2383
- PostTemplatesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesService, deps: [{ token: PostTemplatesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2384
- PostTemplatesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesService, providedIn: 'root' });
2385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PostTemplatesService, decorators: [{
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: [{
2386
2731
  type: Injectable,
2387
2732
  args: [{ providedIn: 'root' }]
2388
2733
  }], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
@@ -2431,9 +2776,9 @@ class MultilocationPostApiService {
2431
2776
  .pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
2432
2777
  }
2433
2778
  }
2434
- 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 });
2435
- MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
2436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostApiService, decorators: [{
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: [{
2437
2782
  type: Injectable,
2438
2783
  args: [{ providedIn: 'root' }]
2439
2784
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2502,9 +2847,9 @@ class MultilocationPostsService {
2502
2847
  return this.multilocationApiService.getMultilocationPost(req);
2503
2848
  }
2504
2849
  }
2505
- MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostsService, deps: [{ token: MultilocationPostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2506
- MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostsService, providedIn: 'root' });
2507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: MultilocationPostsService, decorators: [{
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: [{
2508
2853
  type: Injectable,
2509
2854
  args: [{ providedIn: 'root' }]
2510
2855
  }], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
@@ -2535,9 +2880,9 @@ class TenorGifsApiService {
2535
2880
  .pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
2536
2881
  }
2537
2882
  }
2538
- 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 });
2539
- TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
2540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsApiService, decorators: [{
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: [{
2541
2886
  type: Injectable,
2542
2887
  args: [{ providedIn: 'root' }]
2543
2888
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2564,9 +2909,9 @@ class TenorGifsService {
2564
2909
  return this.tenorGifsApiService.getTenorAnonymousId(request);
2565
2910
  }
2566
2911
  }
2567
- TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsService, deps: [{ token: TenorGifsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2568
- TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsService, providedIn: 'root' });
2569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TenorGifsService, decorators: [{
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: [{
2570
2915
  type: Injectable,
2571
2916
  args: [{ providedIn: 'root' }]
2572
2917
  }], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
@@ -2592,9 +2937,9 @@ class PixabayImagesApiService {
2592
2937
  .pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
2593
2938
  }
2594
2939
  }
2595
- 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 });
2596
- PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
2597
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImagesApiService, decorators: [{
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: [{
2598
2943
  type: Injectable,
2599
2944
  args: [{ providedIn: 'root' }]
2600
2945
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2610,13 +2955,139 @@ class PixabayImageService {
2610
2955
  return this.pixabayApiService.listPixabayImages(request);
2611
2956
  }
2612
2957
  }
2613
- PixabayImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImageService, deps: [{ token: PixabayImagesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2614
- PixabayImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImageService, providedIn: 'root' });
2615
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PixabayImageService, decorators: [{
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: [{
2616
2961
  type: Injectable,
2617
2962
  args: [{ providedIn: 'root' }]
2618
2963
  }], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
2619
2964
 
2965
+ // *********************************
2966
+ class HashTagsApiService {
2967
+ constructor(http, hostService) {
2968
+ this.http = http;
2969
+ this.hostService = hostService;
2970
+ this._host = this.hostService.hostWithScheme;
2971
+ }
2972
+ apiOptions() {
2973
+ return {
2974
+ headers: new HttpHeaders({
2975
+ 'Content-Type': 'application/json'
2976
+ }),
2977
+ withCredentials: true
2978
+ };
2979
+ }
2980
+ replaceHashtags(r) {
2981
+ const request = (r.toApiJson) ? r : new ReplaceHashtagsRequest(r);
2982
+ return this.http.post(this._host + "/socialposts.v1.HashTags/ReplaceHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2983
+ }
2984
+ deleteHashtags(r) {
2985
+ const request = (r.toApiJson) ? r : new DeleteHashtagsRequest(r);
2986
+ return this.http.post(this._host + "/socialposts.v1.HashTags/DeleteHashtags", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2987
+ }
2988
+ searchHashtag(r) {
2989
+ const request = (r.toApiJson) ? r : new SearchHashtagRequest(r);
2990
+ return this.http.post(this._host + "/socialposts.v1.HashTags/SearchHashtag", request.toApiJson(), this.apiOptions())
2991
+ .pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
2992
+ }
2993
+ }
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: [{
2997
+ type: Injectable,
2998
+ args: [{ providedIn: 'root' }]
2999
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3000
+
3001
+ class HashTagsService {
3002
+ constructor(hashTagsApiService) {
3003
+ this.hashTagsApiService = hashTagsApiService;
3004
+ }
3005
+ replaceHashtags(keyword, businessId, partnerId) {
3006
+ const request = new ReplaceHashtagsRequest({
3007
+ keyword: keyword,
3008
+ businessId: businessId,
3009
+ partnerId: partnerId
3010
+ });
3011
+ return this.hashTagsApiService.replaceHashtags(request);
3012
+ }
3013
+ deleteHashtags(keyword, businessId, partnerId) {
3014
+ const request = new DeleteHashtagsRequest({
3015
+ keyword: keyword,
3016
+ businessId: businessId,
3017
+ partnerId: partnerId
3018
+ });
3019
+ return this.hashTagsApiService.deleteHashtags(request);
3020
+ }
3021
+ searchHashtag(searchTerm, businessId, limit, partnerId) {
3022
+ const request = new SearchHashtagRequest({
3023
+ searchTerm: searchTerm,
3024
+ businessId: businessId,
3025
+ limit: limit,
3026
+ partnerId: partnerId
3027
+ });
3028
+ return this.hashTagsApiService.searchHashtag(request);
3029
+ }
3030
+ }
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: [{
3034
+ type: Injectable,
3035
+ args: [{ providedIn: 'root' }]
3036
+ }], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
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
+
2620
3091
  // *********************************
2621
3092
  class PartnerSocialPostsApiService {
2622
3093
  constructor(http, hostService) {
@@ -2643,9 +3114,9 @@ class PartnerSocialPostsApiService {
2643
3114
  .pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
2644
3115
  }
2645
3116
  }
2646
- 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 });
2647
- PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
2648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
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: [{
2649
3120
  type: Injectable,
2650
3121
  args: [{ providedIn: 'root' }]
2651
3122
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2660,5 +3131,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
2660
3131
  * Generated bundle index. Do not edit.
2661
3132
  */
2662
3133
 
2663
- export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, 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 };
2664
3135
  //# sourceMappingURL=vendasta-social-posts.mjs.map