@vendasta/social-posts 5.27.0 → 5.29.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/blog-connection.api.service.mjs +6 -2
- package/esm2020/lib/_internal/interfaces/blog-connection.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/wordpress-plugin.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/blog-connection.mjs +24 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/esm2020/lib/_internal/objects/wordpress-plugin.mjs +145 -1
- package/esm2020/lib/_internal/wordpress-plugin.api.service.mjs +12 -2
- package/esm2020/lib/blog-connection.service.mjs +4 -1
- package/esm2020/lib/wordpress-plugin.service.mjs +4 -1
- package/fesm2015/vendasta-social-posts.mjs +188 -1
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +188 -1
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/blog-connection.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/blog-connection.interface.d.ts +4 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/wordpress-plugin.interface.d.ts +22 -0
- package/lib/_internal/objects/blog-connection.d.ts +7 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/wordpress-plugin.d.ts +40 -0
- package/lib/_internal/wordpress-plugin.api.service.d.ts +4 -2
- package/lib/blog-connection.service.d.ts +2 -1
- package/lib/wordpress-plugin.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -18,6 +18,9 @@ export class BlogConnectionService {
|
|
|
18
18
|
get(getBlogConnectionRequest) {
|
|
19
19
|
return this.blogConnectionApiService.get(getBlogConnectionRequest);
|
|
20
20
|
}
|
|
21
|
+
delete(deleteBlogConnectionRequest) {
|
|
22
|
+
return this.blogConnectionApiService.delete(deleteBlogConnectionRequest);
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
BlogConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionService, deps: [{ token: i1.BlogConnectionApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
23
26
|
BlogConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionService, providedIn: 'root' });
|
|
@@ -25,4 +28,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
25
28
|
type: Injectable,
|
|
26
29
|
args: [{ providedIn: 'root' }]
|
|
27
30
|
}], ctorParameters: function () { return [{ type: i1.BlogConnectionApiService }]; } });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvZy1jb25uZWN0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zb2NpYWxfcG9zdHNfc2RrL3NyYy9saWIvYmxvZy1jb25uZWN0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUkzQyxPQUFPLEVBQ0wsd0JBQXdCLEdBU3pCLE1BQU0sYUFBYSxDQUFDOzs7QUFHckIsTUFBTSxPQUFPLHFCQUFxQjtJQUVoQyxZQUFvQix3QkFBa0Q7UUFBbEQsNkJBQXdCLEdBQXhCLHdCQUF3QixDQUEwQjtJQUN0RSxDQUFDO0lBRUQsTUFBTSxDQUFDLDJCQUFpRTtRQUN0RSxPQUFPLElBQUksQ0FBQyx3QkFBd0IsQ0FBQyxNQUFNLENBQUMsMkJBQTJCLENBQUMsQ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xuXG4gIHVwZGF0ZSh1cGRhdGVCbG9nQ29ubmVjdGlvblJlcXVlc3Q6IFVwZGF0ZUJsb2dDb25uZWN0aW9uUmVxdWVzdCk6IE9ic2VydmFibGU8SHR0cFJlc3BvbnNlPG51bGw+PiB7XG4gICAgcmV0dXJuIHRoaXMuYmxvZ0Nvbm5lY3Rpb25BcGlTZXJ2aWNlLnVwZGF0ZSh1cGRhdGVCbG9nQ29ubmVjdGlvblJlcXVlc3QpO1xuICB9XG5cbiAgZ2V0KGdldEJsb2dDb25uZWN0aW9uUmVxdWVzdDogR2V0QmxvZ0Nvbm5lY3Rpb25SZXF1ZXN0SW50ZXJmYWNlKTogT2JzZXJ2YWJsZTxHZXRCbG9nQ29ubmVjdGlvblJlc3BvbnNlPiB7XG4gICAgcmV0dXJuIHRoaXMuYmxvZ0Nvbm5lY3Rpb25BcGlTZXJ2aWNlLmdldChnZXRCbG9nQ29ubmVjdGlvblJlcXVlc3QpO1xuICB9XG5cbiAgZGVsZXRlKGRlbGV0ZUJsb2dDb25uZWN0aW9uUmVxdWVzdDogRGVsZXRlQmxvZ0Nvbm5lY3Rpb25SZXF1ZXN0SW50ZXJmYWNlICk6IE9ic2VydmFibGU8SHR0cFJlc3BvbnNlPG51bGw+PntcbiAgICByZXR1cm4gdGhpcy5ibG9nQ29ubmVjdGlvbkFwaVNlcnZpY2UuZGVsZXRlKGRlbGV0ZUJsb2dDb25uZWN0aW9uUmVxdWVzdCk7XG4gIH1cblxufVxuIl19
|
|
@@ -9,6 +9,9 @@ export class WordpressPluginService {
|
|
|
9
9
|
status(statusRequestInterface) {
|
|
10
10
|
return this.wordpressPluginApiService.status(statusRequestInterface);
|
|
11
11
|
}
|
|
12
|
+
getCategories(categoryRequestInterface) {
|
|
13
|
+
return this.wordpressPluginApiService.getCategories(categoryRequestInterface);
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
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
17
|
WordpressPluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, providedIn: 'root' });
|
|
@@ -16,4 +19,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
16
19
|
type: Injectable,
|
|
17
20
|
args: [{ providedIn: 'root' }]
|
|
18
21
|
}], ctorParameters: function () { return [{ type: i1.WordpressPluginApiService }]; } });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yZHByZXNzLXBsdWdpbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc29jaWFsX3Bvc3RzX3Nkay9zcmMvbGliL3dvcmRwcmVzcy1wbHVnaW4uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzNDLE9BQU8sRUFJTCx5QkFBeUIsR0FDMUIsTUFBTSxhQUFhLENBQUM7OztBQUdyQixNQUFNLE9BQU8sc0JBQXNCO0lBRWpDLFlBQW9CLHlCQUFvRDtRQUFwRCw4QkFBeUIsR0FBekIseUJBQXlCLENBQTJCO0lBQ3hFLENBQUM7SUFFRCxNQUFNLENBQUMsc0JBQThDO1FBQ25ELE9BQU8sSUFBSSxDQUFDLHlCQUF5QixDQUFDLE1BQU0sQ0FBQyxzQkFBc0IsQ0FBQyxDQUFDO0lBQ3ZFLENBQUM7SUFFRCxhQUFhLENBQUMsd0JBQWtEO1FBQzlELE9BQU8sSUFBSSxDQUFDLHlCQUF5QixDQUFDLGFBQWE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xDYXRlZ29yeVJlc3BvbnNlPiB7XG4gICAgcmV0dXJuIHRoaXMud29yZHByZXNzUGx1Z2luQXBpU2VydmljZS5nZXRDYXRlZ29yaWVzKGNhdGVnb3J5UmVxdWVzdEludGVyZmFjZSk7XG4gIH1cblxufVxuIl19
|
|
@@ -5481,6 +5481,29 @@ class CreateBlogConnectionResponse {
|
|
|
5481
5481
|
return toReturn;
|
|
5482
5482
|
}
|
|
5483
5483
|
}
|
|
5484
|
+
class DeleteBlogConnectionRequest {
|
|
5485
|
+
static fromProto(proto) {
|
|
5486
|
+
let m = new DeleteBlogConnectionRequest();
|
|
5487
|
+
m = Object.assign(m, proto);
|
|
5488
|
+
return m;
|
|
5489
|
+
}
|
|
5490
|
+
constructor(kwargs) {
|
|
5491
|
+
if (!kwargs) {
|
|
5492
|
+
return;
|
|
5493
|
+
}
|
|
5494
|
+
Object.assign(this, kwargs);
|
|
5495
|
+
}
|
|
5496
|
+
toApiJson() {
|
|
5497
|
+
const toReturn = {};
|
|
5498
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
5499
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
5500
|
+
}
|
|
5501
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5502
|
+
toReturn['businessId'] = this.businessId;
|
|
5503
|
+
}
|
|
5504
|
+
return toReturn;
|
|
5505
|
+
}
|
|
5506
|
+
}
|
|
5484
5507
|
class GetBlogConnectionRequest {
|
|
5485
5508
|
static fromProto(proto) {
|
|
5486
5509
|
let m = new GetBlogConnectionRequest();
|
|
@@ -5633,6 +5656,150 @@ function enumStringToValue(enumRef, value) {
|
|
|
5633
5656
|
}
|
|
5634
5657
|
return enumRef[value];
|
|
5635
5658
|
}
|
|
5659
|
+
class Author {
|
|
5660
|
+
static fromProto(proto) {
|
|
5661
|
+
let m = new Author();
|
|
5662
|
+
m = Object.assign(m, proto);
|
|
5663
|
+
if (proto.id) {
|
|
5664
|
+
m.id = parseInt(proto.id, 10);
|
|
5665
|
+
}
|
|
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.id !== 'undefined') {
|
|
5677
|
+
toReturn['id'] = this.id;
|
|
5678
|
+
}
|
|
5679
|
+
if (typeof this.name !== 'undefined') {
|
|
5680
|
+
toReturn['name'] = this.name;
|
|
5681
|
+
}
|
|
5682
|
+
return toReturn;
|
|
5683
|
+
}
|
|
5684
|
+
}
|
|
5685
|
+
class AuthorsRequest {
|
|
5686
|
+
static fromProto(proto) {
|
|
5687
|
+
let m = new AuthorsRequest();
|
|
5688
|
+
m = Object.assign(m, proto);
|
|
5689
|
+
return m;
|
|
5690
|
+
}
|
|
5691
|
+
constructor(kwargs) {
|
|
5692
|
+
if (!kwargs) {
|
|
5693
|
+
return;
|
|
5694
|
+
}
|
|
5695
|
+
Object.assign(this, kwargs);
|
|
5696
|
+
}
|
|
5697
|
+
toApiJson() {
|
|
5698
|
+
const toReturn = {};
|
|
5699
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5700
|
+
toReturn['businessId'] = this.businessId;
|
|
5701
|
+
}
|
|
5702
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
5703
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
5704
|
+
}
|
|
5705
|
+
return toReturn;
|
|
5706
|
+
}
|
|
5707
|
+
}
|
|
5708
|
+
class AuthorsResponse {
|
|
5709
|
+
static fromProto(proto) {
|
|
5710
|
+
let m = new AuthorsResponse();
|
|
5711
|
+
m = Object.assign(m, proto);
|
|
5712
|
+
if (proto.authors) {
|
|
5713
|
+
m.authors = proto.authors.map(Author.fromProto);
|
|
5714
|
+
}
|
|
5715
|
+
return m;
|
|
5716
|
+
}
|
|
5717
|
+
constructor(kwargs) {
|
|
5718
|
+
if (!kwargs) {
|
|
5719
|
+
return;
|
|
5720
|
+
}
|
|
5721
|
+
Object.assign(this, kwargs);
|
|
5722
|
+
}
|
|
5723
|
+
toApiJson() {
|
|
5724
|
+
const toReturn = {};
|
|
5725
|
+
if (typeof this.authors !== 'undefined' && this.authors !== null) {
|
|
5726
|
+
toReturn['authors'] = 'toApiJson' in this.authors ? this.authors.toApiJson() : this.authors;
|
|
5727
|
+
}
|
|
5728
|
+
return toReturn;
|
|
5729
|
+
}
|
|
5730
|
+
}
|
|
5731
|
+
class Category {
|
|
5732
|
+
static fromProto(proto) {
|
|
5733
|
+
let m = new Category();
|
|
5734
|
+
m = Object.assign(m, proto);
|
|
5735
|
+
if (proto.id) {
|
|
5736
|
+
m.id = parseInt(proto.id, 10);
|
|
5737
|
+
}
|
|
5738
|
+
return m;
|
|
5739
|
+
}
|
|
5740
|
+
constructor(kwargs) {
|
|
5741
|
+
if (!kwargs) {
|
|
5742
|
+
return;
|
|
5743
|
+
}
|
|
5744
|
+
Object.assign(this, kwargs);
|
|
5745
|
+
}
|
|
5746
|
+
toApiJson() {
|
|
5747
|
+
const toReturn = {};
|
|
5748
|
+
if (typeof this.id !== 'undefined') {
|
|
5749
|
+
toReturn['id'] = this.id;
|
|
5750
|
+
}
|
|
5751
|
+
if (typeof this.name !== 'undefined') {
|
|
5752
|
+
toReturn['name'] = this.name;
|
|
5753
|
+
}
|
|
5754
|
+
return toReturn;
|
|
5755
|
+
}
|
|
5756
|
+
}
|
|
5757
|
+
class CategoryRequest {
|
|
5758
|
+
static fromProto(proto) {
|
|
5759
|
+
let m = new CategoryRequest();
|
|
5760
|
+
m = Object.assign(m, proto);
|
|
5761
|
+
return m;
|
|
5762
|
+
}
|
|
5763
|
+
constructor(kwargs) {
|
|
5764
|
+
if (!kwargs) {
|
|
5765
|
+
return;
|
|
5766
|
+
}
|
|
5767
|
+
Object.assign(this, kwargs);
|
|
5768
|
+
}
|
|
5769
|
+
toApiJson() {
|
|
5770
|
+
const toReturn = {};
|
|
5771
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
5772
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
5773
|
+
}
|
|
5774
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5775
|
+
toReturn['businessId'] = this.businessId;
|
|
5776
|
+
}
|
|
5777
|
+
return toReturn;
|
|
5778
|
+
}
|
|
5779
|
+
}
|
|
5780
|
+
class CategoryResponse {
|
|
5781
|
+
static fromProto(proto) {
|
|
5782
|
+
let m = new CategoryResponse();
|
|
5783
|
+
m = Object.assign(m, proto);
|
|
5784
|
+
if (proto.categories) {
|
|
5785
|
+
m.categories = proto.categories.map(Category.fromProto);
|
|
5786
|
+
}
|
|
5787
|
+
return m;
|
|
5788
|
+
}
|
|
5789
|
+
constructor(kwargs) {
|
|
5790
|
+
if (!kwargs) {
|
|
5791
|
+
return;
|
|
5792
|
+
}
|
|
5793
|
+
Object.assign(this, kwargs);
|
|
5794
|
+
}
|
|
5795
|
+
toApiJson() {
|
|
5796
|
+
const toReturn = {};
|
|
5797
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
5798
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
5799
|
+
}
|
|
5800
|
+
return toReturn;
|
|
5801
|
+
}
|
|
5802
|
+
}
|
|
5636
5803
|
class StatusRequest {
|
|
5637
5804
|
static fromProto(proto) {
|
|
5638
5805
|
let m = new StatusRequest();
|
|
@@ -5867,6 +6034,10 @@ class BlogConnectionApiService {
|
|
|
5867
6034
|
return this.http.post(this._host + "/socialposts.v2.BlogConnectionService/Get", request.toApiJson(), this.apiOptions())
|
|
5868
6035
|
.pipe(map(resp => GetBlogConnectionResponse.fromProto(resp)));
|
|
5869
6036
|
}
|
|
6037
|
+
delete(r) {
|
|
6038
|
+
const request = (r.toApiJson) ? r : new DeleteBlogConnectionRequest(r);
|
|
6039
|
+
return this.http.post(this._host + "/socialposts.v2.BlogConnectionService/Delete", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
6040
|
+
}
|
|
5870
6041
|
}
|
|
5871
6042
|
BlogConnectionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5872
6043
|
BlogConnectionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionApiService, providedIn: 'root' });
|
|
@@ -6516,6 +6687,16 @@ class WordpressPluginApiService {
|
|
|
6516
6687
|
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/Status", request.toApiJson(), this.apiOptions())
|
|
6517
6688
|
.pipe(map(resp => StatusResponse.fromProto(resp)));
|
|
6518
6689
|
}
|
|
6690
|
+
getAuthors(r) {
|
|
6691
|
+
const request = (r.toApiJson) ? r : new AuthorsRequest(r);
|
|
6692
|
+
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/GetAuthors", request.toApiJson(), this.apiOptions())
|
|
6693
|
+
.pipe(map(resp => AuthorsResponse.fromProto(resp)));
|
|
6694
|
+
}
|
|
6695
|
+
getCategories(r) {
|
|
6696
|
+
const request = (r.toApiJson) ? r : new CategoryRequest(r);
|
|
6697
|
+
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/GetCategories", request.toApiJson(), this.apiOptions())
|
|
6698
|
+
.pipe(map(resp => CategoryResponse.fromProto(resp)));
|
|
6699
|
+
}
|
|
6519
6700
|
}
|
|
6520
6701
|
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
6702
|
WordpressPluginApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, providedIn: 'root' });
|
|
@@ -6974,6 +7155,9 @@ class BlogConnectionService {
|
|
|
6974
7155
|
get(getBlogConnectionRequest) {
|
|
6975
7156
|
return this.blogConnectionApiService.get(getBlogConnectionRequest);
|
|
6976
7157
|
}
|
|
7158
|
+
delete(deleteBlogConnectionRequest) {
|
|
7159
|
+
return this.blogConnectionApiService.delete(deleteBlogConnectionRequest);
|
|
7160
|
+
}
|
|
6977
7161
|
}
|
|
6978
7162
|
BlogConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionService, deps: [{ token: BlogConnectionApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6979
7163
|
BlogConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionService, providedIn: 'root' });
|
|
@@ -6989,6 +7173,9 @@ class WordpressPluginService {
|
|
|
6989
7173
|
status(statusRequestInterface) {
|
|
6990
7174
|
return this.wordpressPluginApiService.status(statusRequestInterface);
|
|
6991
7175
|
}
|
|
7176
|
+
getCategories(categoryRequestInterface) {
|
|
7177
|
+
return this.wordpressPluginApiService.getCategories(categoryRequestInterface);
|
|
7178
|
+
}
|
|
6992
7179
|
}
|
|
6993
7180
|
WordpressPluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, deps: [{ token: WordpressPluginApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6994
7181
|
WordpressPluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, providedIn: 'root' });
|
|
@@ -7001,5 +7188,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7001
7188
|
* Generated bundle index. Do not edit.
|
|
7002
7189
|
*/
|
|
7003
7190
|
|
|
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 };
|
|
7191
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, CallToAction, CallToActionCallToActionType, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, 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 };
|
|
7005
7192
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|