@vendasta/social-posts 5.25.0 → 5.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/enums/api-v2.enum.mjs +7 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/wordpress-plugin.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/api-v2.mjs +10 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -1
- package/esm2020/lib/_internal/objects/wordpress-plugin.mjs +62 -0
- package/esm2020/lib/_internal/wordpress-plugin.api.service.mjs +41 -0
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/wordpress-plugin.service.mjs +19 -0
- package/fesm2015/vendasta-social-posts.mjs +163 -38
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +163 -38
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/api-v2.enum.d.ts +5 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api-v2.interface.d.ts +2 -1
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/interfaces/wordpress-plugin.interface.d.ts +11 -0
- package/lib/_internal/objects/api-v2.d.ts +2 -1
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/objects/wordpress-plugin.d.ts +19 -0
- package/lib/_internal/wordpress-plugin.api.service.d.ts +16 -0
- package/lib/index.d.ts +1 -0
- package/lib/wordpress-plugin.service.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// *********************************
|
|
2
|
+
// Code generated by sdkgen
|
|
3
|
+
// DO NOT EDIT!.
|
|
4
|
+
//
|
|
5
|
+
// API Service.
|
|
6
|
+
// *********************************
|
|
7
|
+
import { Injectable } from '@angular/core';
|
|
8
|
+
import { StatusRequest, StatusResponse, } from './objects/';
|
|
9
|
+
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
10
|
+
import { HostService } from '../_generated/host.service';
|
|
11
|
+
import { map } from 'rxjs/operators';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@angular/common/http";
|
|
14
|
+
import * as i2 from "../_generated/host.service";
|
|
15
|
+
export class WordpressPluginApiService {
|
|
16
|
+
constructor(http, hostService) {
|
|
17
|
+
this.http = http;
|
|
18
|
+
this.hostService = hostService;
|
|
19
|
+
this._host = this.hostService.hostWithScheme;
|
|
20
|
+
}
|
|
21
|
+
apiOptions() {
|
|
22
|
+
return {
|
|
23
|
+
headers: new HttpHeaders({
|
|
24
|
+
'Content-Type': 'application/json'
|
|
25
|
+
}),
|
|
26
|
+
withCredentials: true
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
status(r) {
|
|
30
|
+
const request = (r.toApiJson) ? r : new StatusRequest(r);
|
|
31
|
+
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/Status", request.toApiJson(), this.apiOptions())
|
|
32
|
+
.pipe(map(resp => StatusResponse.fromProto(resp)));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
WordpressPluginApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, deps: [{ token: i1.HttpClient }, { token: i2.HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
36
|
+
WordpressPluginApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, providedIn: 'root' });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, decorators: [{
|
|
38
|
+
type: Injectable,
|
|
39
|
+
args: [{ providedIn: 'root' }]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.HostService }]; } });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yZHByZXNzLXBsdWdpbi5hcGkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NvY2lhbF9wb3N0c19zZGsvc3JjL2xpYi9faW50ZXJuYWwvd29yZHByZXNzLXBsdWdpbi5hcGkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQ0FBb0M7QUFDcEMsMkJBQTJCO0FBQzNCLGdCQUFnQjtBQUNoQixFQUFFO0FBQ0YsZUFBZTtBQUNmLG9DQUFvQztBQUNwQyxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFDQyxhQUFhLEVBQ2IsY0FBYyxHQUNyQixNQUFNLFlBQVksQ0FBQztBQUtwQixPQUFPLEVBQUMsV0FBVyxFQUFFLFVBQVUsRUFBZSxNQUFNLHNCQUFzQixDQUFDO0FBQzNFLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSw0QkFBNEIsQ0FBQztBQUV2RCxPQUFPLEVBQUMsR0FBRyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7Ozs7QUFHbkMsTUFBTSxPQUFPLHlCQUF5QjtJQUdsQyxZQUFvQixJQUFnQixFQUFVLFdBQXdCO1FBQWxELFNBQUksR0FBSixJQUFJLENBQVk7UUFBVSxnQkFBVyxHQUFYLFdBQVcsQ0FBYTtRQUY5RCxVQUFLLEdBQUcsSUFBSSxDQUFDLFdBQVcsQ0FBQyxjQUFjLENBQUM7SUFHaEQsQ0FBQztJQUVPLFVBQVU7UUFDZCxPQUFPO1lBQ0gs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gICAgfTtcbiAgICB9XG5cbiAgICBzdGF0dXMocjogU3RhdHVzUmVxdWVzdCB8IFN0YXR1c1JlcXVlc3RJbnRlcmZhY2UpOiBPYnNlcnZhYmxlPFN0YXR1c1Jlc3BvbnNlPiB7XG4gICAgICAgIGNvbnN0IHJlcXVlc3QgPSAoKDxTdGF0dXNSZXF1ZXN0PnIpLnRvQXBpSnNvbikgPyAoPFN0YXR1c1JlcXVlc3Q+cikgOiBuZXcgU3RhdHVzUmVxdWVzdChyKTtcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0PFN0YXR1c1Jlc3BvbnNlSW50ZXJmYWNlPih0aGlzLl9ob3N0ICsgXCIvc29jaWFscG9zdHMudjIuV29yZHByZXNzUGx1Z2luU2VydmljZS9TdGF0dXNcIiwgcmVxdWVzdC50b0FwaUpzb24oKSwgdGhpcy5hcGlPcHRpb25zKCkpXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICBtYXAocmVzcCA9PiBTdGF0dXNSZXNwb25zZS5mcm9tUHJvdG8ocmVzcCkpXG4gICAgICAgICAgICApO1xuICAgIH1cbiAgICBcbn1cbiJdfQ==
|
package/esm2020/lib/index.mjs
CHANGED
|
@@ -16,4 +16,5 @@ export { UnsplashImageService } from './unsplash-image.service';
|
|
|
16
16
|
export { ChatBotService } from './chat-bot.service';
|
|
17
17
|
export { ChatBotV2Service } from './chat-bot-v2.service';
|
|
18
18
|
export { BlogConnectionService } from './blog-connection.service';
|
|
19
|
-
|
|
19
|
+
export { WordpressPluginService } from './wordpress-plugin.service';
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zb2NpYWxfcG9zdHNfc2RrL3NyYy9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUF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GZyb20gJy4vd29yZHByZXNzLXBsdWdpbi5zZXJ2aWNlJztcbiJdfQ==
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { WordpressPluginApiService, } from './_internal';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./_internal";
|
|
5
|
+
export class WordpressPluginService {
|
|
6
|
+
constructor(wordpressPluginApiService) {
|
|
7
|
+
this.wordpressPluginApiService = wordpressPluginApiService;
|
|
8
|
+
}
|
|
9
|
+
status(statusRequestInterface) {
|
|
10
|
+
return this.wordpressPluginApiService.status(statusRequestInterface);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
WordpressPluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, deps: [{ token: i1.WordpressPluginApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14
|
+
WordpressPluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, providedIn: 'root' });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, decorators: [{
|
|
16
|
+
type: Injectable,
|
|
17
|
+
args: [{ providedIn: 'root' }]
|
|
18
|
+
}], ctorParameters: function () { return [{ type: i1.WordpressPluginApiService }]; } });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yZHByZXNzLXBsdWdpbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc29jaWFsX3Bvc3RzX3Nkay9zcmMvbGliL3dvcmRwcmVzcy1wbHVnaW4uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBV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b25zZT4ge1xuICAgIHJldHVybiB0aGlzLndvcmRwcmVzc1BsdWdpbkFwaVNlcnZpY2Uuc3RhdHVzKHN0YXR1c1JlcXVlc3RJbnRlcmZhY2UpO1xuICB9XG5cbn1cbiJdfQ==
|
|
@@ -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$
|
|
8
|
+
function enumStringToValue$g(enumRef, value) {
|
|
9
9
|
if (typeof value === 'number') {
|
|
10
10
|
return value;
|
|
11
11
|
}
|
|
@@ -32,7 +32,7 @@ class FieldMask {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
function enumStringToValue$
|
|
35
|
+
function enumStringToValue$f(enumRef, value) {
|
|
36
36
|
if (typeof value === 'number') {
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
@@ -205,6 +205,12 @@ var MediaType;
|
|
|
205
205
|
//
|
|
206
206
|
// Enums.
|
|
207
207
|
// *********************************
|
|
208
|
+
var ContentLength;
|
|
209
|
+
(function (ContentLength) {
|
|
210
|
+
ContentLength[ContentLength["SHORT_FORM"] = 0] = "SHORT_FORM";
|
|
211
|
+
ContentLength[ContentLength["MEDIUM_FORM"] = 1] = "MEDIUM_FORM";
|
|
212
|
+
ContentLength[ContentLength["LONG_FORM"] = 2] = "LONG_FORM";
|
|
213
|
+
})(ContentLength || (ContentLength = {}));
|
|
208
214
|
var GenerateType;
|
|
209
215
|
(function (GenerateType) {
|
|
210
216
|
GenerateType[GenerateType["TITLE"] = 0] = "TITLE";
|
|
@@ -244,7 +250,7 @@ var Role;
|
|
|
244
250
|
// Enums Index.
|
|
245
251
|
// *********************************
|
|
246
252
|
|
|
247
|
-
function enumStringToValue$
|
|
253
|
+
function enumStringToValue$e(enumRef, value) {
|
|
248
254
|
if (typeof value === 'number') {
|
|
249
255
|
return value;
|
|
250
256
|
}
|
|
@@ -255,7 +261,7 @@ class CallToAction {
|
|
|
255
261
|
let m = new CallToAction();
|
|
256
262
|
m = Object.assign(m, proto);
|
|
257
263
|
if (proto.actionType) {
|
|
258
|
-
m.actionType = enumStringToValue$
|
|
264
|
+
m.actionType = enumStringToValue$e(CallToActionCallToActionType, proto.actionType);
|
|
259
265
|
}
|
|
260
266
|
return m;
|
|
261
267
|
}
|
|
@@ -409,7 +415,7 @@ class PostTemplate {
|
|
|
409
415
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
410
416
|
}
|
|
411
417
|
if (proto.postType) {
|
|
412
|
-
m.postType = enumStringToValue$
|
|
418
|
+
m.postType = enumStringToValue$e(PostType, proto.postType);
|
|
413
419
|
}
|
|
414
420
|
if (proto.youtubeCustomization) {
|
|
415
421
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -492,7 +498,7 @@ class SSIDPostType {
|
|
|
492
498
|
let m = new SSIDPostType();
|
|
493
499
|
m = Object.assign(m, proto);
|
|
494
500
|
if (proto.postType) {
|
|
495
|
-
m.postType = enumStringToValue$
|
|
501
|
+
m.postType = enumStringToValue$e(PostType, proto.postType);
|
|
496
502
|
}
|
|
497
503
|
return m;
|
|
498
504
|
}
|
|
@@ -553,10 +559,10 @@ class SocialPost {
|
|
|
553
559
|
m.posted = new Date(proto.posted);
|
|
554
560
|
}
|
|
555
561
|
if (proto.deletionStatus) {
|
|
556
|
-
m.deletionStatus = enumStringToValue$
|
|
562
|
+
m.deletionStatus = enumStringToValue$e(SocialPostDeletionStatus, proto.deletionStatus);
|
|
557
563
|
}
|
|
558
564
|
if (proto.service) {
|
|
559
|
-
m.service = enumStringToValue$
|
|
565
|
+
m.service = enumStringToValue$e(SocialPostService, proto.service);
|
|
560
566
|
}
|
|
561
567
|
if (proto.created) {
|
|
562
568
|
m.created = new Date(proto.created);
|
|
@@ -565,7 +571,7 @@ class SocialPost {
|
|
|
565
571
|
m.scheduled = new Date(proto.scheduled);
|
|
566
572
|
}
|
|
567
573
|
if (proto.status) {
|
|
568
|
-
m.status = enumStringToValue$
|
|
574
|
+
m.status = enumStringToValue$e(PostingStatus, proto.status);
|
|
569
575
|
}
|
|
570
576
|
if (proto.event) {
|
|
571
577
|
m.event = Event.fromProto(proto.event);
|
|
@@ -577,7 +583,7 @@ class SocialPost {
|
|
|
577
583
|
m.error = Error.fromProto(proto.error);
|
|
578
584
|
}
|
|
579
585
|
if (proto.postType) {
|
|
580
|
-
m.postType = enumStringToValue$
|
|
586
|
+
m.postType = enumStringToValue$e(PostType, proto.postType);
|
|
581
587
|
}
|
|
582
588
|
if (proto.mediaEntries) {
|
|
583
589
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -760,7 +766,7 @@ class YoutubeCustomization {
|
|
|
760
766
|
let m = new YoutubeCustomization();
|
|
761
767
|
m = Object.assign(m, proto);
|
|
762
768
|
if (proto.privacyStatus) {
|
|
763
|
-
m.privacyStatus = enumStringToValue$
|
|
769
|
+
m.privacyStatus = enumStringToValue$e(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
764
770
|
}
|
|
765
771
|
return m;
|
|
766
772
|
}
|
|
@@ -782,7 +788,7 @@ class YoutubeCustomization {
|
|
|
782
788
|
}
|
|
783
789
|
}
|
|
784
790
|
|
|
785
|
-
function enumStringToValue$
|
|
791
|
+
function enumStringToValue$d(enumRef, value) {
|
|
786
792
|
if (typeof value === 'number') {
|
|
787
793
|
return value;
|
|
788
794
|
}
|
|
@@ -1011,7 +1017,7 @@ class PostEvent {
|
|
|
1011
1017
|
}
|
|
1012
1018
|
}
|
|
1013
1019
|
|
|
1014
|
-
function enumStringToValue$
|
|
1020
|
+
function enumStringToValue$c(enumRef, value) {
|
|
1015
1021
|
if (typeof value === 'number') {
|
|
1016
1022
|
return value;
|
|
1017
1023
|
}
|
|
@@ -1152,7 +1158,7 @@ class PixabayImage {
|
|
|
1152
1158
|
}
|
|
1153
1159
|
}
|
|
1154
1160
|
|
|
1155
|
-
function enumStringToValue$
|
|
1161
|
+
function enumStringToValue$b(enumRef, value) {
|
|
1156
1162
|
if (typeof value === 'number') {
|
|
1157
1163
|
return value;
|
|
1158
1164
|
}
|
|
@@ -1279,7 +1285,7 @@ class TwitterPostStats {
|
|
|
1279
1285
|
}
|
|
1280
1286
|
}
|
|
1281
1287
|
|
|
1282
|
-
function enumStringToValue$
|
|
1288
|
+
function enumStringToValue$a(enumRef, value) {
|
|
1283
1289
|
if (typeof value === 'number') {
|
|
1284
1290
|
return value;
|
|
1285
1291
|
}
|
|
@@ -1385,7 +1391,7 @@ class TenorMediaObject {
|
|
|
1385
1391
|
}
|
|
1386
1392
|
}
|
|
1387
1393
|
|
|
1388
|
-
function enumStringToValue$
|
|
1394
|
+
function enumStringToValue$9(enumRef, value) {
|
|
1389
1395
|
if (typeof value === 'number') {
|
|
1390
1396
|
return value;
|
|
1391
1397
|
}
|
|
@@ -1508,7 +1514,7 @@ class CreatePostTemplateRequest {
|
|
|
1508
1514
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
1509
1515
|
}
|
|
1510
1516
|
if (proto.postType) {
|
|
1511
|
-
m.postType = enumStringToValue$
|
|
1517
|
+
m.postType = enumStringToValue$9(PostType, proto.postType);
|
|
1512
1518
|
}
|
|
1513
1519
|
if (proto.youtubeCustomization) {
|
|
1514
1520
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -2741,7 +2747,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
2741
2747
|
let m = new RemoveFromMultilocationPostRequest();
|
|
2742
2748
|
m = Object.assign(m, proto);
|
|
2743
2749
|
if (proto.reason) {
|
|
2744
|
-
m.reason = enumStringToValue$
|
|
2750
|
+
m.reason = enumStringToValue$9(RemoveReason, proto.reason);
|
|
2745
2751
|
}
|
|
2746
2752
|
if (proto.locations) {
|
|
2747
2753
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -2964,10 +2970,10 @@ class SuggestMessageRequest {
|
|
|
2964
2970
|
let m = new SuggestMessageRequest();
|
|
2965
2971
|
m = Object.assign(m, proto);
|
|
2966
2972
|
if (proto.length) {
|
|
2967
|
-
m.length = enumStringToValue$
|
|
2973
|
+
m.length = enumStringToValue$9(MessageLength, proto.length);
|
|
2968
2974
|
}
|
|
2969
2975
|
if (proto.type) {
|
|
2970
|
-
m.type = enumStringToValue$
|
|
2976
|
+
m.type = enumStringToValue$9(TemplateType, proto.type);
|
|
2971
2977
|
}
|
|
2972
2978
|
if (proto.metadata) {
|
|
2973
2979
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -3034,7 +3040,7 @@ class UpdatePostTemplateRequest {
|
|
|
3034
3040
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3035
3041
|
}
|
|
3036
3042
|
if (proto.postType) {
|
|
3037
|
-
m.postType = enumStringToValue$
|
|
3043
|
+
m.postType = enumStringToValue$9(PostType, proto.postType);
|
|
3038
3044
|
}
|
|
3039
3045
|
if (proto.youtubeCustomization) {
|
|
3040
3046
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3101,7 +3107,7 @@ class UpdatePostTemplateRequest {
|
|
|
3101
3107
|
}
|
|
3102
3108
|
}
|
|
3103
3109
|
|
|
3104
|
-
function enumStringToValue$
|
|
3110
|
+
function enumStringToValue$8(enumRef, value) {
|
|
3105
3111
|
if (typeof value === 'number') {
|
|
3106
3112
|
return value;
|
|
3107
3113
|
}
|
|
@@ -3131,7 +3137,7 @@ class Access {
|
|
|
3131
3137
|
}
|
|
3132
3138
|
}
|
|
3133
3139
|
|
|
3134
|
-
function enumStringToValue$
|
|
3140
|
+
function enumStringToValue$7(enumRef, value) {
|
|
3135
3141
|
if (typeof value === 'number') {
|
|
3136
3142
|
return value;
|
|
3137
3143
|
}
|
|
@@ -3366,7 +3372,7 @@ class SocialPostV2 {
|
|
|
3366
3372
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
3367
3373
|
}
|
|
3368
3374
|
if (proto.postType) {
|
|
3369
|
-
m.postType = enumStringToValue$
|
|
3375
|
+
m.postType = enumStringToValue$7(PostTypeV2, proto.postType);
|
|
3370
3376
|
}
|
|
3371
3377
|
if (proto.metadata) {
|
|
3372
3378
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -3466,7 +3472,7 @@ class YoutubeCustomizationV2 {
|
|
|
3466
3472
|
let m = new YoutubeCustomizationV2();
|
|
3467
3473
|
m = Object.assign(m, proto);
|
|
3468
3474
|
if (proto.privacyStatus) {
|
|
3469
|
-
m.privacyStatus = enumStringToValue$
|
|
3475
|
+
m.privacyStatus = enumStringToValue$7(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
3470
3476
|
}
|
|
3471
3477
|
return m;
|
|
3472
3478
|
}
|
|
@@ -3485,7 +3491,7 @@ class YoutubeCustomizationV2 {
|
|
|
3485
3491
|
}
|
|
3486
3492
|
}
|
|
3487
3493
|
|
|
3488
|
-
function enumStringToValue$
|
|
3494
|
+
function enumStringToValue$6(enumRef, value) {
|
|
3489
3495
|
if (typeof value === 'number') {
|
|
3490
3496
|
return value;
|
|
3491
3497
|
}
|
|
@@ -3496,7 +3502,7 @@ class Media {
|
|
|
3496
3502
|
let m = new Media();
|
|
3497
3503
|
m = Object.assign(m, proto);
|
|
3498
3504
|
if (proto.mediaType) {
|
|
3499
|
-
m.mediaType = enumStringToValue$
|
|
3505
|
+
m.mediaType = enumStringToValue$6(MediaType, proto.mediaType);
|
|
3500
3506
|
}
|
|
3501
3507
|
return m;
|
|
3502
3508
|
}
|
|
@@ -3518,7 +3524,7 @@ class Media {
|
|
|
3518
3524
|
}
|
|
3519
3525
|
}
|
|
3520
3526
|
|
|
3521
|
-
function enumStringToValue$
|
|
3527
|
+
function enumStringToValue$5(enumRef, value) {
|
|
3522
3528
|
if (typeof value === 'number') {
|
|
3523
3529
|
return value;
|
|
3524
3530
|
}
|
|
@@ -4053,7 +4059,7 @@ class UserLink {
|
|
|
4053
4059
|
}
|
|
4054
4060
|
}
|
|
4055
4061
|
|
|
4056
|
-
function enumStringToValue$
|
|
4062
|
+
function enumStringToValue$4(enumRef, value) {
|
|
4057
4063
|
if (typeof value === 'number') {
|
|
4058
4064
|
return value;
|
|
4059
4065
|
}
|
|
@@ -4278,8 +4284,14 @@ class GenerateAiRequest {
|
|
|
4278
4284
|
static fromProto(proto) {
|
|
4279
4285
|
let m = new GenerateAiRequest();
|
|
4280
4286
|
m = Object.assign(m, proto);
|
|
4287
|
+
if (proto.length) {
|
|
4288
|
+
m.length = enumStringToValue$4(ContentLength, proto.length);
|
|
4289
|
+
}
|
|
4281
4290
|
if (proto.generateType) {
|
|
4282
|
-
m.generateType = enumStringToValue$
|
|
4291
|
+
m.generateType = enumStringToValue$4(GenerateType, proto.generateType);
|
|
4292
|
+
}
|
|
4293
|
+
if (proto.metadata) {
|
|
4294
|
+
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
4283
4295
|
}
|
|
4284
4296
|
return m;
|
|
4285
4297
|
}
|
|
@@ -4309,6 +4321,9 @@ class GenerateAiRequest {
|
|
|
4309
4321
|
if (typeof this.generateType !== 'undefined') {
|
|
4310
4322
|
toReturn['generateType'] = this.generateType;
|
|
4311
4323
|
}
|
|
4324
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
4325
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
4326
|
+
}
|
|
4312
4327
|
return toReturn;
|
|
4313
4328
|
}
|
|
4314
4329
|
}
|
|
@@ -4815,7 +4830,7 @@ class SocialPostOutput {
|
|
|
4815
4830
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
4816
4831
|
}
|
|
4817
4832
|
if (proto.status) {
|
|
4818
|
-
m.status = enumStringToValue$
|
|
4833
|
+
m.status = enumStringToValue$4(PostStatusV2, proto.status);
|
|
4819
4834
|
}
|
|
4820
4835
|
return m;
|
|
4821
4836
|
}
|
|
@@ -5033,7 +5048,7 @@ class UploadToStorageRequest {
|
|
|
5033
5048
|
let m = new UploadToStorageRequest();
|
|
5034
5049
|
m = Object.assign(m, proto);
|
|
5035
5050
|
if (proto.mediaType) {
|
|
5036
|
-
m.mediaType = enumStringToValue$
|
|
5051
|
+
m.mediaType = enumStringToValue$4(MediaType, proto.mediaType);
|
|
5037
5052
|
}
|
|
5038
5053
|
return m;
|
|
5039
5054
|
}
|
|
@@ -5101,7 +5116,7 @@ class UploadedMedia {
|
|
|
5101
5116
|
}
|
|
5102
5117
|
}
|
|
5103
5118
|
|
|
5104
|
-
function enumStringToValue$
|
|
5119
|
+
function enumStringToValue$3(enumRef, value) {
|
|
5105
5120
|
if (typeof value === 'number') {
|
|
5106
5121
|
return value;
|
|
5107
5122
|
}
|
|
@@ -5112,7 +5127,7 @@ class Action {
|
|
|
5112
5127
|
let m = new Action();
|
|
5113
5128
|
m = Object.assign(m, proto);
|
|
5114
5129
|
if (proto.actionType) {
|
|
5115
|
-
m.actionType = enumStringToValue$
|
|
5130
|
+
m.actionType = enumStringToValue$3(ActionType, proto.actionType);
|
|
5116
5131
|
}
|
|
5117
5132
|
return m;
|
|
5118
5133
|
}
|
|
@@ -5252,7 +5267,7 @@ class StartChatResponse {
|
|
|
5252
5267
|
}
|
|
5253
5268
|
}
|
|
5254
5269
|
|
|
5255
|
-
function enumStringToValue$
|
|
5270
|
+
function enumStringToValue$2(enumRef, value) {
|
|
5256
5271
|
if (typeof value === 'number') {
|
|
5257
5272
|
return value;
|
|
5258
5273
|
}
|
|
@@ -5263,7 +5278,7 @@ class ChatMessage {
|
|
|
5263
5278
|
let m = new ChatMessage();
|
|
5264
5279
|
m = Object.assign(m, proto);
|
|
5265
5280
|
if (proto.role) {
|
|
5266
|
-
m.role = enumStringToValue$
|
|
5281
|
+
m.role = enumStringToValue$2(Role, proto.role);
|
|
5267
5282
|
}
|
|
5268
5283
|
return m;
|
|
5269
5284
|
}
|
|
@@ -5343,7 +5358,7 @@ class SendMessageV2Response {
|
|
|
5343
5358
|
}
|
|
5344
5359
|
}
|
|
5345
5360
|
|
|
5346
|
-
function enumStringToValue(enumRef, value) {
|
|
5361
|
+
function enumStringToValue$1(enumRef, value) {
|
|
5347
5362
|
if (typeof value === 'number') {
|
|
5348
5363
|
return value;
|
|
5349
5364
|
}
|
|
@@ -5612,6 +5627,68 @@ class UpdateBlogConnectionRequest {
|
|
|
5612
5627
|
}
|
|
5613
5628
|
}
|
|
5614
5629
|
|
|
5630
|
+
function enumStringToValue(enumRef, value) {
|
|
5631
|
+
if (typeof value === 'number') {
|
|
5632
|
+
return value;
|
|
5633
|
+
}
|
|
5634
|
+
return enumRef[value];
|
|
5635
|
+
}
|
|
5636
|
+
class StatusRequest {
|
|
5637
|
+
static fromProto(proto) {
|
|
5638
|
+
let m = new StatusRequest();
|
|
5639
|
+
m = Object.assign(m, proto);
|
|
5640
|
+
return m;
|
|
5641
|
+
}
|
|
5642
|
+
constructor(kwargs) {
|
|
5643
|
+
if (!kwargs) {
|
|
5644
|
+
return;
|
|
5645
|
+
}
|
|
5646
|
+
Object.assign(this, kwargs);
|
|
5647
|
+
}
|
|
5648
|
+
toApiJson() {
|
|
5649
|
+
const toReturn = {};
|
|
5650
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5651
|
+
toReturn['businessId'] = this.businessId;
|
|
5652
|
+
}
|
|
5653
|
+
if (typeof this.apiKey !== 'undefined') {
|
|
5654
|
+
toReturn['apiKey'] = this.apiKey;
|
|
5655
|
+
}
|
|
5656
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
5657
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
5658
|
+
}
|
|
5659
|
+
return toReturn;
|
|
5660
|
+
}
|
|
5661
|
+
}
|
|
5662
|
+
class StatusResponse {
|
|
5663
|
+
static fromProto(proto) {
|
|
5664
|
+
let m = new StatusResponse();
|
|
5665
|
+
m = Object.assign(m, proto);
|
|
5666
|
+
return m;
|
|
5667
|
+
}
|
|
5668
|
+
constructor(kwargs) {
|
|
5669
|
+
if (!kwargs) {
|
|
5670
|
+
return;
|
|
5671
|
+
}
|
|
5672
|
+
Object.assign(this, kwargs);
|
|
5673
|
+
}
|
|
5674
|
+
toApiJson() {
|
|
5675
|
+
const toReturn = {};
|
|
5676
|
+
if (typeof this.status !== 'undefined') {
|
|
5677
|
+
toReturn['status'] = this.status;
|
|
5678
|
+
}
|
|
5679
|
+
if (typeof this.version !== 'undefined') {
|
|
5680
|
+
toReturn['version'] = this.version;
|
|
5681
|
+
}
|
|
5682
|
+
if (typeof this.logo !== 'undefined') {
|
|
5683
|
+
toReturn['logo'] = this.logo;
|
|
5684
|
+
}
|
|
5685
|
+
if (typeof this.name !== 'undefined') {
|
|
5686
|
+
toReturn['name'] = this.name;
|
|
5687
|
+
}
|
|
5688
|
+
return toReturn;
|
|
5689
|
+
}
|
|
5690
|
+
}
|
|
5691
|
+
|
|
5615
5692
|
// *********************************
|
|
5616
5693
|
// Code generated by sdkgen
|
|
5617
5694
|
// DO NOT EDIT!.
|
|
@@ -6414,6 +6491,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6414
6491
|
args: [{ providedIn: 'root' }]
|
|
6415
6492
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
6416
6493
|
|
|
6494
|
+
// *********************************
|
|
6495
|
+
// Code generated by sdkgen
|
|
6496
|
+
// DO NOT EDIT!.
|
|
6497
|
+
//
|
|
6498
|
+
// API Service.
|
|
6499
|
+
// *********************************
|
|
6500
|
+
class WordpressPluginApiService {
|
|
6501
|
+
constructor(http, hostService) {
|
|
6502
|
+
this.http = http;
|
|
6503
|
+
this.hostService = hostService;
|
|
6504
|
+
this._host = this.hostService.hostWithScheme;
|
|
6505
|
+
}
|
|
6506
|
+
apiOptions() {
|
|
6507
|
+
return {
|
|
6508
|
+
headers: new HttpHeaders({
|
|
6509
|
+
'Content-Type': 'application/json'
|
|
6510
|
+
}),
|
|
6511
|
+
withCredentials: true
|
|
6512
|
+
};
|
|
6513
|
+
}
|
|
6514
|
+
status(r) {
|
|
6515
|
+
const request = (r.toApiJson) ? r : new StatusRequest(r);
|
|
6516
|
+
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/Status", request.toApiJson(), this.apiOptions())
|
|
6517
|
+
.pipe(map(resp => StatusResponse.fromProto(resp)));
|
|
6518
|
+
}
|
|
6519
|
+
}
|
|
6520
|
+
WordpressPluginApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6521
|
+
WordpressPluginApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, providedIn: 'root' });
|
|
6522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, decorators: [{
|
|
6523
|
+
type: Injectable,
|
|
6524
|
+
args: [{ providedIn: 'root' }]
|
|
6525
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
6526
|
+
|
|
6417
6527
|
// *********************************
|
|
6418
6528
|
// Code generated by sdkgen
|
|
6419
6529
|
// DO NOT EDIT!.
|
|
@@ -6872,9 +6982,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6872
6982
|
args: [{ providedIn: 'root' }]
|
|
6873
6983
|
}], ctorParameters: function () { return [{ type: BlogConnectionApiService }]; } });
|
|
6874
6984
|
|
|
6985
|
+
class WordpressPluginService {
|
|
6986
|
+
constructor(wordpressPluginApiService) {
|
|
6987
|
+
this.wordpressPluginApiService = wordpressPluginApiService;
|
|
6988
|
+
}
|
|
6989
|
+
status(statusRequestInterface) {
|
|
6990
|
+
return this.wordpressPluginApiService.status(statusRequestInterface);
|
|
6991
|
+
}
|
|
6992
|
+
}
|
|
6993
|
+
WordpressPluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, deps: [{ token: WordpressPluginApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6994
|
+
WordpressPluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, providedIn: 'root' });
|
|
6995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, decorators: [{
|
|
6996
|
+
type: Injectable,
|
|
6997
|
+
args: [{ providedIn: 'root' }]
|
|
6998
|
+
}], ctorParameters: function () { return [{ type: WordpressPluginApiService }]; } });
|
|
6999
|
+
|
|
6875
7000
|
/**
|
|
6876
7001
|
* Generated bundle index. Do not edit.
|
|
6877
7002
|
*/
|
|
6878
7003
|
|
|
6879
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, BlogConnection, BlogConnectionService, CallToAction, CallToActionCallToActionType, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
7004
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, BlogConnection, BlogConnectionService, CallToAction, CallToActionCallToActionType, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
6880
7005
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|