@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.
- 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 +240 -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 +10 -5
- 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 +9 -5
- package/esm2020/lib/tenor-gifs.service.mjs +4 -4
- package/esm2020/public_api.mjs +1 -4
- package/fesm2015/vendasta-social-posts.mjs +344 -47
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +344 -47
- 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 +39 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +60 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/post-performance.api.service.d.ts +17 -0
- package/lib/_internal/social-posts.api.service.d.ts +3 -2
- package/lib/index.d.ts +2 -1
- package/lib/post-performance.service.d.ts +11 -0
- package/lib/social-posts.service.d.ts +2 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core';
|
|
2
2
|
import { of } from 'rxjs';
|
|
3
|
-
import { ListSocialPostsRequest, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetScheduledPostCountRequest, } from './_internal/objects/api';
|
|
3
|
+
import { ListSocialPostsRequest, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetScheduledPostCountRequest, SuggestMessageRequest, } from './_internal/objects/api';
|
|
4
4
|
import { SocialPostsApiService } from './_internal/social-posts.api.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./_internal/social-posts.api.service";
|
|
@@ -33,11 +33,15 @@ export class SocialPostsService {
|
|
|
33
33
|
const req = new GetScheduledPostCountRequest({ partnerId: partnerId, businessId: businessId, socialServiceIds: socialServiceIds });
|
|
34
34
|
return this.socialPostsApiService.getScheduledPostCount(req);
|
|
35
35
|
}
|
|
36
|
+
suggestMessage(businessId, prompt) {
|
|
37
|
+
const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt });
|
|
38
|
+
return this.socialPostsApiService.suggestMessage(req);
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
|
-
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, deps: [{ token: i1.SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
|
+
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
|
|
40
44
|
type: Injectable,
|
|
41
45
|
args: [{ providedIn: 'root' }]
|
|
42
46
|
}], ctorParameters: function () { return [{ type: i1.SocialPostsApiService }]; } });
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29jaWFsLXBvc3RzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zb2NpYWxfcG9zdHNfc2RrL3NyYy9saWIvc29jaWFsLXBvc3RzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQWMsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3RDLE9BQU8sRUFDTCxzQkFBc0IsRUFFdEIsMEJBQTBCLEVBQzFCLDJCQUEyQixFQUMzQiw0QkFBNEIsRUFFNUIscUJBQXFCLEdBRXRCLE1BQU0seUJBQXlCLENBQUM7QUFDakMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sc0NBQXNDLENBQUM7OztBQUc3RSxNQUFNLE9BQU8sa0JBQWtCO0lBQzdCLFlBQW9CLHFCQUE0QztRQUE1QywwQkFBcUIsR0FBckIscUJBQXFCLENBQXVCO0lBQ2hFLENBQUM7SUFFRCxJQUFJLENBQ0QsS0FBVyxFQUNYLEdBQVMsRUFDVCxnQk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blxuICBzdWdnZXN0TWVzc2FnZShidXNpbmVzc0lkOiBzdHJpbmcsIHByb21wdDogc3RyaW5nKTogT2JzZXJ2YWJsZTxTdWdnZXN0TWVzc2FnZVJlc3BvbnNlPiB7XG4gICAgY29uc3QgcmVxID0gbmV3IFN1Z2dlc3RNZXNzYWdlUmVxdWVzdCh7YnVzaW5lc3NJZDogYnVzaW5lc3NJZCwgcHJvbXB0OiBwcm9tcHR9KTtcbiAgICByZXR1cm4gdGhpcy5zb2NpYWxQb3N0c0FwaVNlcnZpY2Uuc3VnZ2VzdE1lc3NhZ2UocmVxKTtcbiAgfVxufVxuIl19
|
|
@@ -25,10 +25,10 @@ export class TenorGifsService {
|
|
|
25
25
|
return this.tenorGifsApiService.getTenorAnonymousId(request);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, deps: [{ token: i1.TenorGifsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
+
TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, providedIn: 'root' });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, decorators: [{
|
|
31
31
|
type: Injectable,
|
|
32
32
|
args: [{ providedIn: 'root' }]
|
|
33
33
|
}], ctorParameters: function () { return [{ type: i1.TenorGifsApiService }]; } });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data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nltb3VzSWQ6IHN0cmluZywgbWVkaWFGaWx0ZXI6IHN0cmluZyxcbiAgICAgICAgYXNwZWN0UmF0aW9SYW5nZTogc3RyaW5nLCBjb250ZW50RmlsdGVyOiBzdHJpbmcpOiBPYnNlcnZhYmxlPExpc3RUZW5vckdpZnNSZXNwb25zZT4ge1xuXG4gICAgICAgIGNvbnN0IHJlcXVlc3QgPSBuZXcgTGlzdFRlbm9yR2lmc1JlcXVlc3Qoe1xuICAgICAgICAgICAgcXVlcnk6IHF1ZXJ5LFxuICAgICAgICAgICAgY3Vyc29yOiBjdXJzb3IsXG4gICAgICAgICAgICBwYWdlU2l6ZTogcGFnZVNpemUsXG4gICAgICAgICAgICBsb2NhbGU6IGxvY2FsZSxcbiAgICAgICAgICAgIGFub255bW91c0lkOiBhbm9ueW1vdXNJZCxcbiAgICAgICAgICAgIG1lZGlhRmlsdGVyOiBtZWRpYUZpbHRlcixcbiAgICAgICAgICAgIGFzcGVjdFJhdGlvUmFuZ2U6IGFzcGVjdFJhdGlvUmFuZ2UsXG4gICAgICAgICAgICBjb250ZW50RmlsdGVyOiBjb250ZW50RmlsdGVyXG4gICAgICAgIH0pXG5cbiAgICAgICAgcmV0dXJuIHRoaXMudGVub3JHaWZzQXBpU2VydmljZS5saXN0VGVub3JHaWZzKHJlcXVlc3QpXG4gICAgfVxuXG4gICAgZ2V0QW5vbnltb3VzSWQoKTogT2JzZXJ2YWJsZTxHZXRUZW5vckFub255bW91c0lkUmVzcG9uc2U+IHtcbiAgICAgICAgY29uc3QgcmVxdWVzdCA9IG5ldyBHZXRUZW5vckFub255bW91c0lkUmVxdWVzdCh7fSlcblxuICAgICAgICByZXR1cm4gdGhpcy50ZW5vckdpZnNBcGlTZXJ2aWNlLmdldFRlbm9yQW5vbnltb3VzSWQocmVxdWVzdClcbiAgICB9XG5cbn0iXX0=
|
package/esm2020/public_api.mjs
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of social-posts
|
|
3
|
-
*/
|
|
4
1
|
export * from './lib/index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NvY2lhbF9wb3N0c19zZGsvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2luZGV4JztcbiJdfQ==
|
|
@@ -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) {
|
|
@@ -2320,9 +2559,9 @@ class HostService {
|
|
|
2320
2559
|
return 'https://' + this.host;
|
|
2321
2560
|
}
|
|
2322
2561
|
}
|
|
2323
|
-
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2324
|
-
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2562
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2563
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
2564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
2326
2565
|
type: Injectable,
|
|
2327
2566
|
args: [{ providedIn: 'root' }]
|
|
2328
2567
|
}] });
|
|
@@ -2376,10 +2615,15 @@ class SocialPostsApiService {
|
|
|
2376
2615
|
return this.http.post(this._host + "/socialposts.v1.SocialPosts/GetScheduledPostCount", request.toApiJson(), this.apiOptions())
|
|
2377
2616
|
.pipe(map(resp => GetScheduledPostCountResponse.fromProto(resp)));
|
|
2378
2617
|
}
|
|
2618
|
+
suggestMessage(r) {
|
|
2619
|
+
const request = (r.toApiJson) ? r : new SuggestMessageRequest(r);
|
|
2620
|
+
return this.http.post(this._host + "/socialposts.v1.SocialPosts/SuggestMessage", request.toApiJson(), this.apiOptions())
|
|
2621
|
+
.pipe(map(resp => SuggestMessageResponse.fromProto(resp)));
|
|
2622
|
+
}
|
|
2379
2623
|
}
|
|
2380
|
-
SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2381
|
-
SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2624
|
+
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 });
|
|
2625
|
+
SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
|
|
2626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsApiService, decorators: [{
|
|
2383
2627
|
type: Injectable,
|
|
2384
2628
|
args: [{ providedIn: 'root' }]
|
|
2385
2629
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2413,10 +2657,14 @@ class SocialPostsService {
|
|
|
2413
2657
|
const req = new GetScheduledPostCountRequest({ partnerId: partnerId, businessId: businessId, socialServiceIds: socialServiceIds });
|
|
2414
2658
|
return this.socialPostsApiService.getScheduledPostCount(req);
|
|
2415
2659
|
}
|
|
2660
|
+
suggestMessage(businessId, prompt) {
|
|
2661
|
+
const req = new SuggestMessageRequest({ businessId: businessId, prompt: prompt });
|
|
2662
|
+
return this.socialPostsApiService.suggestMessage(req);
|
|
2663
|
+
}
|
|
2416
2664
|
}
|
|
2417
|
-
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2418
|
-
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2665
|
+
SocialPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, deps: [{ token: SocialPostsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2666
|
+
SocialPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, providedIn: 'root' });
|
|
2667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: SocialPostsService, decorators: [{
|
|
2420
2668
|
type: Injectable,
|
|
2421
2669
|
args: [{ providedIn: 'root' }]
|
|
2422
2670
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
@@ -2460,9 +2708,9 @@ class PostTemplatesApiService {
|
|
|
2460
2708
|
return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
2461
2709
|
}
|
|
2462
2710
|
}
|
|
2463
|
-
PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2464
|
-
PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2711
|
+
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 });
|
|
2712
|
+
PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
|
|
2713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
|
|
2466
2714
|
type: Injectable,
|
|
2467
2715
|
args: [{ providedIn: 'root' }]
|
|
2468
2716
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2527,9 +2775,9 @@ class PostTemplatesService {
|
|
|
2527
2775
|
return this.socialPostsApiService.deletePostTemplate(req);
|
|
2528
2776
|
}
|
|
2529
2777
|
}
|
|
2530
|
-
PostTemplatesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2531
|
-
PostTemplatesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2778
|
+
PostTemplatesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, deps: [{ token: PostTemplatesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2779
|
+
PostTemplatesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, providedIn: 'root' });
|
|
2780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostTemplatesService, decorators: [{
|
|
2533
2781
|
type: Injectable,
|
|
2534
2782
|
args: [{ providedIn: 'root' }]
|
|
2535
2783
|
}], ctorParameters: function () { return [{ type: PostTemplatesApiService }]; } });
|
|
@@ -2578,9 +2826,9 @@ class MultilocationPostApiService {
|
|
|
2578
2826
|
.pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
|
|
2579
2827
|
}
|
|
2580
2828
|
}
|
|
2581
|
-
MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2582
|
-
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2829
|
+
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 });
|
|
2830
|
+
MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
|
|
2831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
|
|
2584
2832
|
type: Injectable,
|
|
2585
2833
|
args: [{ providedIn: 'root' }]
|
|
2586
2834
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2649,9 +2897,9 @@ class MultilocationPostsService {
|
|
|
2649
2897
|
return this.multilocationApiService.getMultilocationPost(req);
|
|
2650
2898
|
}
|
|
2651
2899
|
}
|
|
2652
|
-
MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2653
|
-
MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2900
|
+
MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, deps: [{ token: MultilocationPostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2901
|
+
MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, providedIn: 'root' });
|
|
2902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MultilocationPostsService, decorators: [{
|
|
2655
2903
|
type: Injectable,
|
|
2656
2904
|
args: [{ providedIn: 'root' }]
|
|
2657
2905
|
}], ctorParameters: function () { return [{ type: MultilocationPostApiService }]; } });
|
|
@@ -2682,9 +2930,9 @@ class TenorGifsApiService {
|
|
|
2682
2930
|
.pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
|
|
2683
2931
|
}
|
|
2684
2932
|
}
|
|
2685
|
-
TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2686
|
-
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2933
|
+
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 });
|
|
2934
|
+
TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
|
|
2935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
|
|
2688
2936
|
type: Injectable,
|
|
2689
2937
|
args: [{ providedIn: 'root' }]
|
|
2690
2938
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2711,9 +2959,9 @@ class TenorGifsService {
|
|
|
2711
2959
|
return this.tenorGifsApiService.getTenorAnonymousId(request);
|
|
2712
2960
|
}
|
|
2713
2961
|
}
|
|
2714
|
-
TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2715
|
-
TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2962
|
+
TenorGifsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, deps: [{ token: TenorGifsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2963
|
+
TenorGifsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, providedIn: 'root' });
|
|
2964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TenorGifsService, decorators: [{
|
|
2717
2965
|
type: Injectable,
|
|
2718
2966
|
args: [{ providedIn: 'root' }]
|
|
2719
2967
|
}], ctorParameters: function () { return [{ type: TenorGifsApiService }]; } });
|
|
@@ -2739,9 +2987,9 @@ class PixabayImagesApiService {
|
|
|
2739
2987
|
.pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
|
|
2740
2988
|
}
|
|
2741
2989
|
}
|
|
2742
|
-
PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2743
|
-
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2990
|
+
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 });
|
|
2991
|
+
PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
|
|
2992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
|
|
2745
2993
|
type: Injectable,
|
|
2746
2994
|
args: [{ providedIn: 'root' }]
|
|
2747
2995
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2757,9 +3005,9 @@ class PixabayImageService {
|
|
|
2757
3005
|
return this.pixabayApiService.listPixabayImages(request);
|
|
2758
3006
|
}
|
|
2759
3007
|
}
|
|
2760
|
-
PixabayImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2761
|
-
PixabayImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3008
|
+
PixabayImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, deps: [{ token: PixabayImagesApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3009
|
+
PixabayImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, providedIn: 'root' });
|
|
3010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PixabayImageService, decorators: [{
|
|
2763
3011
|
type: Injectable,
|
|
2764
3012
|
args: [{ providedIn: 'root' }]
|
|
2765
3013
|
}], ctorParameters: function () { return [{ type: PixabayImagesApiService }]; } });
|
|
@@ -2793,9 +3041,9 @@ class HashTagsApiService {
|
|
|
2793
3041
|
.pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
|
|
2794
3042
|
}
|
|
2795
3043
|
}
|
|
2796
|
-
HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2797
|
-
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3044
|
+
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 });
|
|
3045
|
+
HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
|
|
3046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
|
|
2799
3047
|
type: Injectable,
|
|
2800
3048
|
args: [{ providedIn: 'root' }]
|
|
2801
3049
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
@@ -2830,13 +3078,66 @@ class HashTagsService {
|
|
|
2830
3078
|
return this.hashTagsApiService.searchHashtag(request);
|
|
2831
3079
|
}
|
|
2832
3080
|
}
|
|
2833
|
-
HashTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2834
|
-
HashTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2835
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3081
|
+
HashTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, deps: [{ token: HashTagsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3082
|
+
HashTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, providedIn: 'root' });
|
|
3083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: HashTagsService, decorators: [{
|
|
2836
3084
|
type: Injectable,
|
|
2837
3085
|
args: [{ providedIn: 'root' }]
|
|
2838
3086
|
}], ctorParameters: function () { return [{ type: HashTagsApiService }]; } });
|
|
2839
3087
|
|
|
3088
|
+
// *********************************
|
|
3089
|
+
class PostPerformanceApiService {
|
|
3090
|
+
constructor(http, hostService) {
|
|
3091
|
+
this.http = http;
|
|
3092
|
+
this.hostService = hostService;
|
|
3093
|
+
this._host = this.hostService.hostWithScheme;
|
|
3094
|
+
}
|
|
3095
|
+
apiOptions() {
|
|
3096
|
+
return {
|
|
3097
|
+
headers: new HttpHeaders({
|
|
3098
|
+
'Content-Type': 'application/json'
|
|
3099
|
+
}),
|
|
3100
|
+
withCredentials: true
|
|
3101
|
+
};
|
|
3102
|
+
}
|
|
3103
|
+
generateCsvForPerformanceStats(r) {
|
|
3104
|
+
const request = (r.toApiJson) ? r : new GenerateCSVForPerformanceStatsRequest(r);
|
|
3105
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GenerateCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3106
|
+
.pipe(map(resp => GenerateCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3107
|
+
}
|
|
3108
|
+
getGeneratedCsvForPerformanceStats(r) {
|
|
3109
|
+
const request = (r.toApiJson) ? r : new GetGeneratedCSVForPerformanceStatsRequest(r);
|
|
3110
|
+
return this.http.post(this._host + "/socialposts.v1.PostPerformance/GetGeneratedCSVForPerformanceStats", request.toApiJson(), this.apiOptions())
|
|
3111
|
+
.pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
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 });
|
|
3115
|
+
PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
|
|
3116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
|
|
3117
|
+
type: Injectable,
|
|
3118
|
+
args: [{ providedIn: 'root' }]
|
|
3119
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
3120
|
+
|
|
3121
|
+
class PostPerformanceService {
|
|
3122
|
+
constructor(postPerformanceApiService) {
|
|
3123
|
+
this.postPerformanceApiService = postPerformanceApiService;
|
|
3124
|
+
}
|
|
3125
|
+
generateCSV(businessId, postData, includeHeaders) {
|
|
3126
|
+
const request = new GenerateCSVForPerformanceStatsRequest({
|
|
3127
|
+
businessId: businessId,
|
|
3128
|
+
postData: postData,
|
|
3129
|
+
includeHeaders: includeHeaders
|
|
3130
|
+
});
|
|
3131
|
+
return this.postPerformanceApiService.generateCsvForPerformanceStats(request).pipe(map((res) => res.generatedId));
|
|
3132
|
+
}
|
|
3133
|
+
}
|
|
3134
|
+
PostPerformanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, deps: [{ token: PostPerformanceApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3135
|
+
PostPerformanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, providedIn: 'root' });
|
|
3136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PostPerformanceService, decorators: [{
|
|
3137
|
+
type: Injectable,
|
|
3138
|
+
args: [{ providedIn: 'root' }]
|
|
3139
|
+
}], ctorParameters: function () { return [{ type: PostPerformanceApiService }]; } });
|
|
3140
|
+
|
|
2840
3141
|
// *********************************
|
|
2841
3142
|
class PartnerSocialPostsApiService {
|
|
2842
3143
|
constructor(http, hostService) {
|
|
@@ -2863,22 +3164,18 @@ class PartnerSocialPostsApiService {
|
|
|
2863
3164
|
.pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
|
|
2864
3165
|
}
|
|
2865
3166
|
}
|
|
2866
|
-
PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2867
|
-
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3167
|
+
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 });
|
|
3168
|
+
PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
|
|
3169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
|
|
2869
3170
|
type: Injectable,
|
|
2870
3171
|
args: [{ providedIn: 'root' }]
|
|
2871
3172
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2872
3173
|
|
|
2873
3174
|
// *********************************
|
|
2874
3175
|
|
|
2875
|
-
/*
|
|
2876
|
-
* Public API Surface of social-posts
|
|
2877
|
-
*/
|
|
2878
|
-
|
|
2879
3176
|
/**
|
|
2880
3177
|
* Generated bundle index. Do not edit.
|
|
2881
3178
|
*/
|
|
2882
3179
|
|
|
2883
|
-
export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
|
|
3180
|
+
export { DeleteMultilocationPostRequest, FieldMask, GetMultilocationPostRequest, HashTagsService, ListMultilocationPostsForBrandRequest, Location, MultilocationPost, MultilocationPostApiService, MultilocationPostsService, PixabayImageService, PostPerformanceApiService, PostPerformanceService, PostTemplatesService, PostingStatus, RemoveReason, SocialPostsService, TenorGifsService };
|
|
2884
3181
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|