@vendasta/social-posts 5.34.1 → 5.35.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/campaign.api.service.mjs +40 -0
- package/esm2020/lib/_internal/content-generation.api.service.mjs +7 -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/campaign.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api-v2.mjs +122 -1
- package/esm2020/lib/_internal/objects/campaign.mjs +53 -0
- package/esm2020/lib/_internal/objects/index.mjs +5 -4
- package/esm2020/lib/content-generation.service.mjs +4 -1
- package/fesm2015/vendasta-social-posts.mjs +255 -40
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +255 -40
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/campaign.api.service.d.ts +13 -0
- package/lib/_internal/content-generation.api.service.d.ts +3 -2
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api-v2.interface.d.ts +19 -0
- package/lib/_internal/interfaces/campaign.interface.d.ts +8 -0
- package/lib/_internal/interfaces/index.d.ts +4 -3
- package/lib/_internal/objects/api-v2.d.ts +34 -0
- package/lib/_internal/objects/campaign.d.ts +16 -0
- package/lib/_internal/objects/index.d.ts +4 -3
- package/lib/content-generation.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { of } from 'rxjs';
|
|
|
4
4
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { map } from 'rxjs/operators';
|
|
6
6
|
|
|
7
|
-
function enumStringToValue$
|
|
7
|
+
function enumStringToValue$h(enumRef, value) {
|
|
8
8
|
if (typeof value === 'number') {
|
|
9
9
|
return value;
|
|
10
10
|
}
|
|
@@ -31,7 +31,7 @@ class FieldMask {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function enumStringToValue$
|
|
34
|
+
function enumStringToValue$g(enumRef, value) {
|
|
35
35
|
if (typeof value === 'number') {
|
|
36
36
|
return value;
|
|
37
37
|
}
|
|
@@ -250,7 +250,7 @@ var Role;
|
|
|
250
250
|
// Enums Index.
|
|
251
251
|
// *********************************
|
|
252
252
|
|
|
253
|
-
function enumStringToValue$
|
|
253
|
+
function enumStringToValue$f(enumRef, value) {
|
|
254
254
|
if (typeof value === 'number') {
|
|
255
255
|
return value;
|
|
256
256
|
}
|
|
@@ -322,7 +322,7 @@ class CallToAction {
|
|
|
322
322
|
let m = new CallToAction();
|
|
323
323
|
m = Object.assign(m, proto);
|
|
324
324
|
if (proto.actionType) {
|
|
325
|
-
m.actionType = enumStringToValue$
|
|
325
|
+
m.actionType = enumStringToValue$f(CallToActionCallToActionType, proto.actionType);
|
|
326
326
|
}
|
|
327
327
|
return m;
|
|
328
328
|
}
|
|
@@ -505,7 +505,7 @@ class PostTemplate {
|
|
|
505
505
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
506
506
|
}
|
|
507
507
|
if (proto.postType) {
|
|
508
|
-
m.postType = enumStringToValue$
|
|
508
|
+
m.postType = enumStringToValue$f(PostType, proto.postType);
|
|
509
509
|
}
|
|
510
510
|
if (proto.youtubeCustomization) {
|
|
511
511
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -588,7 +588,7 @@ class SSIDPostType {
|
|
|
588
588
|
let m = new SSIDPostType();
|
|
589
589
|
m = Object.assign(m, proto);
|
|
590
590
|
if (proto.postType) {
|
|
591
|
-
m.postType = enumStringToValue$
|
|
591
|
+
m.postType = enumStringToValue$f(PostType, proto.postType);
|
|
592
592
|
}
|
|
593
593
|
return m;
|
|
594
594
|
}
|
|
@@ -649,10 +649,10 @@ class SocialPost {
|
|
|
649
649
|
m.posted = new Date(proto.posted);
|
|
650
650
|
}
|
|
651
651
|
if (proto.deletionStatus) {
|
|
652
|
-
m.deletionStatus = enumStringToValue$
|
|
652
|
+
m.deletionStatus = enumStringToValue$f(SocialPostDeletionStatus, proto.deletionStatus);
|
|
653
653
|
}
|
|
654
654
|
if (proto.service) {
|
|
655
|
-
m.service = enumStringToValue$
|
|
655
|
+
m.service = enumStringToValue$f(SocialPostService, proto.service);
|
|
656
656
|
}
|
|
657
657
|
if (proto.created) {
|
|
658
658
|
m.created = new Date(proto.created);
|
|
@@ -661,7 +661,7 @@ class SocialPost {
|
|
|
661
661
|
m.scheduled = new Date(proto.scheduled);
|
|
662
662
|
}
|
|
663
663
|
if (proto.status) {
|
|
664
|
-
m.status = enumStringToValue$
|
|
664
|
+
m.status = enumStringToValue$f(PostingStatus, proto.status);
|
|
665
665
|
}
|
|
666
666
|
if (proto.event) {
|
|
667
667
|
m.event = Event.fromProto(proto.event);
|
|
@@ -673,7 +673,7 @@ class SocialPost {
|
|
|
673
673
|
m.error = Error.fromProto(proto.error);
|
|
674
674
|
}
|
|
675
675
|
if (proto.postType) {
|
|
676
|
-
m.postType = enumStringToValue$
|
|
676
|
+
m.postType = enumStringToValue$f(PostType, proto.postType);
|
|
677
677
|
}
|
|
678
678
|
if (proto.mediaEntries) {
|
|
679
679
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -862,7 +862,7 @@ class YoutubeCustomization {
|
|
|
862
862
|
let m = new YoutubeCustomization();
|
|
863
863
|
m = Object.assign(m, proto);
|
|
864
864
|
if (proto.privacyStatus) {
|
|
865
|
-
m.privacyStatus = enumStringToValue$
|
|
865
|
+
m.privacyStatus = enumStringToValue$f(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
866
866
|
}
|
|
867
867
|
return m;
|
|
868
868
|
}
|
|
@@ -884,7 +884,7 @@ class YoutubeCustomization {
|
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
|
|
887
|
-
function enumStringToValue$
|
|
887
|
+
function enumStringToValue$e(enumRef, value) {
|
|
888
888
|
if (typeof value === 'number') {
|
|
889
889
|
return value;
|
|
890
890
|
}
|
|
@@ -1113,7 +1113,7 @@ class PostEvent {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
|
-
function enumStringToValue$
|
|
1116
|
+
function enumStringToValue$d(enumRef, value) {
|
|
1117
1117
|
if (typeof value === 'number') {
|
|
1118
1118
|
return value;
|
|
1119
1119
|
}
|
|
@@ -1254,7 +1254,7 @@ class PixabayImage {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
|
-
function enumStringToValue$
|
|
1257
|
+
function enumStringToValue$c(enumRef, value) {
|
|
1258
1258
|
if (typeof value === 'number') {
|
|
1259
1259
|
return value;
|
|
1260
1260
|
}
|
|
@@ -1381,7 +1381,7 @@ class TwitterPostStats {
|
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
|
-
function enumStringToValue$
|
|
1384
|
+
function enumStringToValue$b(enumRef, value) {
|
|
1385
1385
|
if (typeof value === 'number') {
|
|
1386
1386
|
return value;
|
|
1387
1387
|
}
|
|
@@ -1487,7 +1487,7 @@ class TenorMediaObject {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
-
function enumStringToValue$
|
|
1490
|
+
function enumStringToValue$a(enumRef, value) {
|
|
1491
1491
|
if (typeof value === 'number') {
|
|
1492
1492
|
return value;
|
|
1493
1493
|
}
|
|
@@ -1610,7 +1610,7 @@ class CreatePostTemplateRequest {
|
|
|
1610
1610
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
1611
1611
|
}
|
|
1612
1612
|
if (proto.postType) {
|
|
1613
|
-
m.postType = enumStringToValue$
|
|
1613
|
+
m.postType = enumStringToValue$a(PostType, proto.postType);
|
|
1614
1614
|
}
|
|
1615
1615
|
if (proto.youtubeCustomization) {
|
|
1616
1616
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -2843,7 +2843,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
2843
2843
|
let m = new RemoveFromMultilocationPostRequest();
|
|
2844
2844
|
m = Object.assign(m, proto);
|
|
2845
2845
|
if (proto.reason) {
|
|
2846
|
-
m.reason = enumStringToValue$
|
|
2846
|
+
m.reason = enumStringToValue$a(RemoveReason, proto.reason);
|
|
2847
2847
|
}
|
|
2848
2848
|
if (proto.locations) {
|
|
2849
2849
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -3066,10 +3066,10 @@ class SuggestMessageRequest {
|
|
|
3066
3066
|
let m = new SuggestMessageRequest();
|
|
3067
3067
|
m = Object.assign(m, proto);
|
|
3068
3068
|
if (proto.length) {
|
|
3069
|
-
m.length = enumStringToValue$
|
|
3069
|
+
m.length = enumStringToValue$a(MessageLength, proto.length);
|
|
3070
3070
|
}
|
|
3071
3071
|
if (proto.type) {
|
|
3072
|
-
m.type = enumStringToValue$
|
|
3072
|
+
m.type = enumStringToValue$a(TemplateType, proto.type);
|
|
3073
3073
|
}
|
|
3074
3074
|
if (proto.metadata) {
|
|
3075
3075
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -3136,7 +3136,7 @@ class UpdatePostTemplateRequest {
|
|
|
3136
3136
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3137
3137
|
}
|
|
3138
3138
|
if (proto.postType) {
|
|
3139
|
-
m.postType = enumStringToValue$
|
|
3139
|
+
m.postType = enumStringToValue$a(PostType, proto.postType);
|
|
3140
3140
|
}
|
|
3141
3141
|
if (proto.youtubeCustomization) {
|
|
3142
3142
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3203,7 +3203,7 @@ class UpdatePostTemplateRequest {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
}
|
|
3205
3205
|
|
|
3206
|
-
function enumStringToValue$
|
|
3206
|
+
function enumStringToValue$9(enumRef, value) {
|
|
3207
3207
|
if (typeof value === 'number') {
|
|
3208
3208
|
return value;
|
|
3209
3209
|
}
|
|
@@ -3233,7 +3233,7 @@ class Access {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
3235
|
|
|
3236
|
-
function enumStringToValue$
|
|
3236
|
+
function enumStringToValue$8(enumRef, value) {
|
|
3237
3237
|
if (typeof value === 'number') {
|
|
3238
3238
|
return value;
|
|
3239
3239
|
}
|
|
@@ -3468,7 +3468,7 @@ class SocialPostV2 {
|
|
|
3468
3468
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
3469
3469
|
}
|
|
3470
3470
|
if (proto.postType) {
|
|
3471
|
-
m.postType = enumStringToValue$
|
|
3471
|
+
m.postType = enumStringToValue$8(PostTypeV2, proto.postType);
|
|
3472
3472
|
}
|
|
3473
3473
|
if (proto.metadata) {
|
|
3474
3474
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -3568,7 +3568,7 @@ class YoutubeCustomizationV2 {
|
|
|
3568
3568
|
let m = new YoutubeCustomizationV2();
|
|
3569
3569
|
m = Object.assign(m, proto);
|
|
3570
3570
|
if (proto.privacyStatus) {
|
|
3571
|
-
m.privacyStatus = enumStringToValue$
|
|
3571
|
+
m.privacyStatus = enumStringToValue$8(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
3572
3572
|
}
|
|
3573
3573
|
return m;
|
|
3574
3574
|
}
|
|
@@ -3587,7 +3587,7 @@ class YoutubeCustomizationV2 {
|
|
|
3587
3587
|
}
|
|
3588
3588
|
}
|
|
3589
3589
|
|
|
3590
|
-
function enumStringToValue$
|
|
3590
|
+
function enumStringToValue$7(enumRef, value) {
|
|
3591
3591
|
if (typeof value === 'number') {
|
|
3592
3592
|
return value;
|
|
3593
3593
|
}
|
|
@@ -3598,7 +3598,7 @@ class Media {
|
|
|
3598
3598
|
let m = new Media();
|
|
3599
3599
|
m = Object.assign(m, proto);
|
|
3600
3600
|
if (proto.mediaType) {
|
|
3601
|
-
m.mediaType = enumStringToValue$
|
|
3601
|
+
m.mediaType = enumStringToValue$7(MediaType, proto.mediaType);
|
|
3602
3602
|
}
|
|
3603
3603
|
return m;
|
|
3604
3604
|
}
|
|
@@ -3620,7 +3620,7 @@ class Media {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
3622
3622
|
|
|
3623
|
-
function enumStringToValue$
|
|
3623
|
+
function enumStringToValue$6(enumRef, value) {
|
|
3624
3624
|
if (typeof value === 'number') {
|
|
3625
3625
|
return value;
|
|
3626
3626
|
}
|
|
@@ -4155,7 +4155,7 @@ class UserLink {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
}
|
|
4157
4157
|
|
|
4158
|
-
function enumStringToValue$
|
|
4158
|
+
function enumStringToValue$5(enumRef, value) {
|
|
4159
4159
|
if (typeof value === 'number') {
|
|
4160
4160
|
return value;
|
|
4161
4161
|
}
|
|
@@ -4396,10 +4396,10 @@ class GenerateAiRequest {
|
|
|
4396
4396
|
let m = new GenerateAiRequest();
|
|
4397
4397
|
m = Object.assign(m, proto);
|
|
4398
4398
|
if (proto.length) {
|
|
4399
|
-
m.length = enumStringToValue$
|
|
4399
|
+
m.length = enumStringToValue$5(ContentLength, proto.length);
|
|
4400
4400
|
}
|
|
4401
4401
|
if (proto.generateType) {
|
|
4402
|
-
m.generateType = enumStringToValue$
|
|
4402
|
+
m.generateType = enumStringToValue$5(GenerateType, proto.generateType);
|
|
4403
4403
|
}
|
|
4404
4404
|
if (proto.metadata) {
|
|
4405
4405
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -4467,6 +4467,64 @@ class GenerateAiResponse {
|
|
|
4467
4467
|
return toReturn;
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
|
+
class GenerateContentMetaDataRequest {
|
|
4471
|
+
static fromProto(proto) {
|
|
4472
|
+
let m = new GenerateContentMetaDataRequest();
|
|
4473
|
+
m = Object.assign(m, proto);
|
|
4474
|
+
if (proto.titleInput) {
|
|
4475
|
+
m.titleInput = TitleGeneration.fromProto(proto.titleInput);
|
|
4476
|
+
}
|
|
4477
|
+
if (proto.keywordInput) {
|
|
4478
|
+
m.keywordInput = KeywordGeneration.fromProto(proto.keywordInput);
|
|
4479
|
+
}
|
|
4480
|
+
return m;
|
|
4481
|
+
}
|
|
4482
|
+
constructor(kwargs) {
|
|
4483
|
+
if (!kwargs) {
|
|
4484
|
+
return;
|
|
4485
|
+
}
|
|
4486
|
+
Object.assign(this, kwargs);
|
|
4487
|
+
}
|
|
4488
|
+
toApiJson() {
|
|
4489
|
+
const toReturn = {};
|
|
4490
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4491
|
+
toReturn['businessId'] = this.businessId;
|
|
4492
|
+
}
|
|
4493
|
+
if (typeof this.titleInput !== 'undefined' && this.titleInput !== null) {
|
|
4494
|
+
toReturn['titleInput'] = 'toApiJson' in this.titleInput ? this.titleInput.toApiJson() : this.titleInput;
|
|
4495
|
+
}
|
|
4496
|
+
if (typeof this.keywordInput !== 'undefined' && this.keywordInput !== null) {
|
|
4497
|
+
toReturn['keywordInput'] = 'toApiJson' in this.keywordInput ? this.keywordInput.toApiJson() : this.keywordInput;
|
|
4498
|
+
}
|
|
4499
|
+
return toReturn;
|
|
4500
|
+
}
|
|
4501
|
+
}
|
|
4502
|
+
class GenerateContentMetaDataResponse {
|
|
4503
|
+
static fromProto(proto) {
|
|
4504
|
+
let m = new GenerateContentMetaDataResponse();
|
|
4505
|
+
m = Object.assign(m, proto);
|
|
4506
|
+
if (proto.generatedKeywords) {
|
|
4507
|
+
m.generatedKeywords = KeywordList.fromProto(proto.generatedKeywords);
|
|
4508
|
+
}
|
|
4509
|
+
return m;
|
|
4510
|
+
}
|
|
4511
|
+
constructor(kwargs) {
|
|
4512
|
+
if (!kwargs) {
|
|
4513
|
+
return;
|
|
4514
|
+
}
|
|
4515
|
+
Object.assign(this, kwargs);
|
|
4516
|
+
}
|
|
4517
|
+
toApiJson() {
|
|
4518
|
+
const toReturn = {};
|
|
4519
|
+
if (typeof this.generatedTitle !== 'undefined') {
|
|
4520
|
+
toReturn['generatedTitle'] = this.generatedTitle;
|
|
4521
|
+
}
|
|
4522
|
+
if (typeof this.generatedKeywords !== 'undefined' && this.generatedKeywords !== null) {
|
|
4523
|
+
toReturn['generatedKeywords'] = 'toApiJson' in this.generatedKeywords ? this.generatedKeywords.toApiJson() : this.generatedKeywords;
|
|
4524
|
+
}
|
|
4525
|
+
return toReturn;
|
|
4526
|
+
}
|
|
4527
|
+
}
|
|
4470
4528
|
class GeneratePostsRequest {
|
|
4471
4529
|
static fromProto(proto) {
|
|
4472
4530
|
let m = new GeneratePostsRequest();
|
|
@@ -4649,6 +4707,49 @@ class ImageUrl {
|
|
|
4649
4707
|
return toReturn;
|
|
4650
4708
|
}
|
|
4651
4709
|
}
|
|
4710
|
+
class KeywordGeneration {
|
|
4711
|
+
static fromProto(proto) {
|
|
4712
|
+
let m = new KeywordGeneration();
|
|
4713
|
+
m = Object.assign(m, proto);
|
|
4714
|
+
return m;
|
|
4715
|
+
}
|
|
4716
|
+
constructor(kwargs) {
|
|
4717
|
+
if (!kwargs) {
|
|
4718
|
+
return;
|
|
4719
|
+
}
|
|
4720
|
+
Object.assign(this, kwargs);
|
|
4721
|
+
}
|
|
4722
|
+
toApiJson() {
|
|
4723
|
+
const toReturn = {};
|
|
4724
|
+
if (typeof this.blogPostId !== 'undefined') {
|
|
4725
|
+
toReturn['blogPostId'] = this.blogPostId;
|
|
4726
|
+
}
|
|
4727
|
+
if (typeof this.keywordCount !== 'undefined') {
|
|
4728
|
+
toReturn['keywordCount'] = this.keywordCount;
|
|
4729
|
+
}
|
|
4730
|
+
return toReturn;
|
|
4731
|
+
}
|
|
4732
|
+
}
|
|
4733
|
+
class KeywordList {
|
|
4734
|
+
static fromProto(proto) {
|
|
4735
|
+
let m = new KeywordList();
|
|
4736
|
+
m = Object.assign(m, proto);
|
|
4737
|
+
return m;
|
|
4738
|
+
}
|
|
4739
|
+
constructor(kwargs) {
|
|
4740
|
+
if (!kwargs) {
|
|
4741
|
+
return;
|
|
4742
|
+
}
|
|
4743
|
+
Object.assign(this, kwargs);
|
|
4744
|
+
}
|
|
4745
|
+
toApiJson() {
|
|
4746
|
+
const toReturn = {};
|
|
4747
|
+
if (typeof this.keywords !== 'undefined') {
|
|
4748
|
+
toReturn['keywords'] = this.keywords;
|
|
4749
|
+
}
|
|
4750
|
+
return toReturn;
|
|
4751
|
+
}
|
|
4752
|
+
}
|
|
4652
4753
|
class ListCuratedContentRequest {
|
|
4653
4754
|
static fromProto(proto) {
|
|
4654
4755
|
let m = new ListCuratedContentRequest();
|
|
@@ -4941,7 +5042,7 @@ class SocialPostOutput {
|
|
|
4941
5042
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
4942
5043
|
}
|
|
4943
5044
|
if (proto.status) {
|
|
4944
|
-
m.status = enumStringToValue$
|
|
5045
|
+
m.status = enumStringToValue$5(PostStatusV2, proto.status);
|
|
4945
5046
|
}
|
|
4946
5047
|
return m;
|
|
4947
5048
|
}
|
|
@@ -5017,6 +5118,26 @@ class SocialPostResponse {
|
|
|
5017
5118
|
return toReturn;
|
|
5018
5119
|
}
|
|
5019
5120
|
}
|
|
5121
|
+
class TitleGeneration {
|
|
5122
|
+
static fromProto(proto) {
|
|
5123
|
+
let m = new TitleGeneration();
|
|
5124
|
+
m = Object.assign(m, proto);
|
|
5125
|
+
return m;
|
|
5126
|
+
}
|
|
5127
|
+
constructor(kwargs) {
|
|
5128
|
+
if (!kwargs) {
|
|
5129
|
+
return;
|
|
5130
|
+
}
|
|
5131
|
+
Object.assign(this, kwargs);
|
|
5132
|
+
}
|
|
5133
|
+
toApiJson() {
|
|
5134
|
+
const toReturn = {};
|
|
5135
|
+
if (typeof this.blogTitle !== 'undefined') {
|
|
5136
|
+
toReturn['blogTitle'] = this.blogTitle;
|
|
5137
|
+
}
|
|
5138
|
+
return toReturn;
|
|
5139
|
+
}
|
|
5140
|
+
}
|
|
5020
5141
|
class UpdateCommonAiInstructionsRequest {
|
|
5021
5142
|
static fromProto(proto) {
|
|
5022
5143
|
let m = new UpdateCommonAiInstructionsRequest();
|
|
@@ -5159,7 +5280,7 @@ class UploadToStorageRequest {
|
|
|
5159
5280
|
let m = new UploadToStorageRequest();
|
|
5160
5281
|
m = Object.assign(m, proto);
|
|
5161
5282
|
if (proto.mediaType) {
|
|
5162
|
-
m.mediaType = enumStringToValue$
|
|
5283
|
+
m.mediaType = enumStringToValue$5(MediaType, proto.mediaType);
|
|
5163
5284
|
}
|
|
5164
5285
|
return m;
|
|
5165
5286
|
}
|
|
@@ -5227,7 +5348,7 @@ class UploadedMedia {
|
|
|
5227
5348
|
}
|
|
5228
5349
|
}
|
|
5229
5350
|
|
|
5230
|
-
function enumStringToValue$
|
|
5351
|
+
function enumStringToValue$4(enumRef, value) {
|
|
5231
5352
|
if (typeof value === 'number') {
|
|
5232
5353
|
return value;
|
|
5233
5354
|
}
|
|
@@ -5238,7 +5359,7 @@ class Action {
|
|
|
5238
5359
|
let m = new Action();
|
|
5239
5360
|
m = Object.assign(m, proto);
|
|
5240
5361
|
if (proto.actionType) {
|
|
5241
|
-
m.actionType = enumStringToValue$
|
|
5362
|
+
m.actionType = enumStringToValue$4(ActionType, proto.actionType);
|
|
5242
5363
|
}
|
|
5243
5364
|
return m;
|
|
5244
5365
|
}
|
|
@@ -5378,7 +5499,7 @@ class StartChatResponse {
|
|
|
5378
5499
|
}
|
|
5379
5500
|
}
|
|
5380
5501
|
|
|
5381
|
-
function enumStringToValue$
|
|
5502
|
+
function enumStringToValue$3(enumRef, value) {
|
|
5382
5503
|
if (typeof value === 'number') {
|
|
5383
5504
|
return value;
|
|
5384
5505
|
}
|
|
@@ -5389,7 +5510,7 @@ class ChatMessage {
|
|
|
5389
5510
|
let m = new ChatMessage();
|
|
5390
5511
|
m = Object.assign(m, proto);
|
|
5391
5512
|
if (proto.role) {
|
|
5392
|
-
m.role = enumStringToValue$
|
|
5513
|
+
m.role = enumStringToValue$3(Role, proto.role);
|
|
5393
5514
|
}
|
|
5394
5515
|
return m;
|
|
5395
5516
|
}
|
|
@@ -5469,7 +5590,7 @@ class SendMessageV2Response {
|
|
|
5469
5590
|
}
|
|
5470
5591
|
}
|
|
5471
5592
|
|
|
5472
|
-
function enumStringToValue$
|
|
5593
|
+
function enumStringToValue$2(enumRef, value) {
|
|
5473
5594
|
if (typeof value === 'number') {
|
|
5474
5595
|
return value;
|
|
5475
5596
|
}
|
|
@@ -5761,7 +5882,7 @@ class UpdateBlogConnectionRequest {
|
|
|
5761
5882
|
}
|
|
5762
5883
|
}
|
|
5763
5884
|
|
|
5764
|
-
function enumStringToValue(enumRef, value) {
|
|
5885
|
+
function enumStringToValue$1(enumRef, value) {
|
|
5765
5886
|
if (typeof value === 'number') {
|
|
5766
5887
|
return value;
|
|
5767
5888
|
}
|
|
@@ -6382,6 +6503,59 @@ class UpdateBlogPostRequest {
|
|
|
6382
6503
|
}
|
|
6383
6504
|
}
|
|
6384
6505
|
|
|
6506
|
+
function enumStringToValue(enumRef, value) {
|
|
6507
|
+
if (typeof value === 'number') {
|
|
6508
|
+
return value;
|
|
6509
|
+
}
|
|
6510
|
+
return enumRef[value];
|
|
6511
|
+
}
|
|
6512
|
+
class CreateCampaignRequest {
|
|
6513
|
+
static fromProto(proto) {
|
|
6514
|
+
let m = new CreateCampaignRequest();
|
|
6515
|
+
m = Object.assign(m, proto);
|
|
6516
|
+
return m;
|
|
6517
|
+
}
|
|
6518
|
+
constructor(kwargs) {
|
|
6519
|
+
if (!kwargs) {
|
|
6520
|
+
return;
|
|
6521
|
+
}
|
|
6522
|
+
Object.assign(this, kwargs);
|
|
6523
|
+
}
|
|
6524
|
+
toApiJson() {
|
|
6525
|
+
const toReturn = {};
|
|
6526
|
+
if (typeof this.name !== 'undefined') {
|
|
6527
|
+
toReturn['name'] = this.name;
|
|
6528
|
+
}
|
|
6529
|
+
if (typeof this.businessId !== 'undefined') {
|
|
6530
|
+
toReturn['businessId'] = this.businessId;
|
|
6531
|
+
}
|
|
6532
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
6533
|
+
toReturn['partnerId'] = this.partnerId;
|
|
6534
|
+
}
|
|
6535
|
+
return toReturn;
|
|
6536
|
+
}
|
|
6537
|
+
}
|
|
6538
|
+
class CreateCampaignResponse {
|
|
6539
|
+
static fromProto(proto) {
|
|
6540
|
+
let m = new CreateCampaignResponse();
|
|
6541
|
+
m = Object.assign(m, proto);
|
|
6542
|
+
return m;
|
|
6543
|
+
}
|
|
6544
|
+
constructor(kwargs) {
|
|
6545
|
+
if (!kwargs) {
|
|
6546
|
+
return;
|
|
6547
|
+
}
|
|
6548
|
+
Object.assign(this, kwargs);
|
|
6549
|
+
}
|
|
6550
|
+
toApiJson() {
|
|
6551
|
+
const toReturn = {};
|
|
6552
|
+
if (typeof this.campaignId !== 'undefined') {
|
|
6553
|
+
toReturn['campaignId'] = this.campaignId;
|
|
6554
|
+
}
|
|
6555
|
+
return toReturn;
|
|
6556
|
+
}
|
|
6557
|
+
}
|
|
6558
|
+
|
|
6385
6559
|
// *********************************
|
|
6386
6560
|
// Code generated by sdkgen
|
|
6387
6561
|
// DO NOT EDIT!.
|
|
@@ -6663,6 +6837,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6663
6837
|
args: [{ providedIn: 'root' }]
|
|
6664
6838
|
}] });
|
|
6665
6839
|
|
|
6840
|
+
// *********************************
|
|
6841
|
+
// Code generated by sdkgen
|
|
6842
|
+
// DO NOT EDIT!.
|
|
6843
|
+
//
|
|
6844
|
+
// API Service.
|
|
6845
|
+
// *********************************
|
|
6846
|
+
class CampaignApiService {
|
|
6847
|
+
constructor() {
|
|
6848
|
+
this.hostService = inject(HostService);
|
|
6849
|
+
this.http = inject(HttpClient);
|
|
6850
|
+
this._host = this.hostService.hostWithScheme;
|
|
6851
|
+
}
|
|
6852
|
+
apiOptions() {
|
|
6853
|
+
return {
|
|
6854
|
+
headers: new HttpHeaders({
|
|
6855
|
+
'Content-Type': 'application/json'
|
|
6856
|
+
}),
|
|
6857
|
+
withCredentials: true
|
|
6858
|
+
};
|
|
6859
|
+
}
|
|
6860
|
+
create(r) {
|
|
6861
|
+
const request = (r.toApiJson) ? r : new CreateCampaignRequest(r);
|
|
6862
|
+
return this.http.post(this._host + "/socialposts.v2.CampaignService/Create", request.toApiJson(), this.apiOptions())
|
|
6863
|
+
.pipe(map(resp => CreateCampaignResponse.fromProto(resp)));
|
|
6864
|
+
}
|
|
6865
|
+
}
|
|
6866
|
+
CampaignApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6867
|
+
CampaignApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, providedIn: 'root' });
|
|
6868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, decorators: [{
|
|
6869
|
+
type: Injectable,
|
|
6870
|
+
args: [{ providedIn: 'root' }]
|
|
6871
|
+
}] });
|
|
6872
|
+
|
|
6666
6873
|
// *********************************
|
|
6667
6874
|
// Code generated by sdkgen
|
|
6668
6875
|
// DO NOT EDIT!.
|
|
@@ -6811,6 +7018,11 @@ class ContentGenerationApiService {
|
|
|
6811
7018
|
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/Generate", request.toApiJson(), this.apiOptions())
|
|
6812
7019
|
.pipe(map(resp => GenerateAiResponse.fromProto(resp)));
|
|
6813
7020
|
}
|
|
7021
|
+
generateContentMetaData(r) {
|
|
7022
|
+
const request = (r.toApiJson) ? r : new GenerateContentMetaDataRequest(r);
|
|
7023
|
+
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GenerateContentMetaData", request.toApiJson(), this.apiOptions())
|
|
7024
|
+
.pipe(map(resp => GenerateContentMetaDataResponse.fromProto(resp)));
|
|
7025
|
+
}
|
|
6814
7026
|
}
|
|
6815
7027
|
ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6816
7028
|
ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
|
|
@@ -7602,6 +7814,9 @@ class ContentGenerationService {
|
|
|
7602
7814
|
generate(r) {
|
|
7603
7815
|
return this.contentGenerationApiService.generate(r);
|
|
7604
7816
|
}
|
|
7817
|
+
generateContentMetaData(r) {
|
|
7818
|
+
return this.generateContentMetaData(r);
|
|
7819
|
+
}
|
|
7605
7820
|
}
|
|
7606
7821
|
ContentGenerationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, deps: [{ token: ContentGenerationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7607
7822
|
ContentGenerationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, providedIn: 'root' });
|
|
@@ -7795,5 +8010,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7795
8010
|
* Generated bundle index. Do not edit.
|
|
7796
8011
|
*/
|
|
7797
8012
|
|
|
7798
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author
|
|
8013
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCustomization, BlogPostsService, BlogVideo, CallToAction, CallToActionCallToActionType, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaProperty, 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, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, 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, TitleGeneration, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
7799
8014
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|