@vendasta/social-posts 5.34.0 → 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 +134 -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 +267 -40
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +267 -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 +21 -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 +36 -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
|
}
|
|
@@ -4165,6 +4165,12 @@ class AiInstructions {
|
|
|
4165
4165
|
static fromProto(proto) {
|
|
4166
4166
|
let m = new AiInstructions();
|
|
4167
4167
|
m = Object.assign(m, proto);
|
|
4168
|
+
if (proto.created) {
|
|
4169
|
+
m.created = new Date(proto.created);
|
|
4170
|
+
}
|
|
4171
|
+
if (proto.updated) {
|
|
4172
|
+
m.updated = new Date(proto.updated);
|
|
4173
|
+
}
|
|
4168
4174
|
return m;
|
|
4169
4175
|
}
|
|
4170
4176
|
constructor(kwargs) {
|
|
@@ -4184,6 +4190,12 @@ class AiInstructions {
|
|
|
4184
4190
|
if (typeof this.aiBlogInstructions !== 'undefined') {
|
|
4185
4191
|
toReturn['aiBlogInstructions'] = this.aiBlogInstructions;
|
|
4186
4192
|
}
|
|
4193
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
4194
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
4195
|
+
}
|
|
4196
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
4197
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
4198
|
+
}
|
|
4187
4199
|
return toReturn;
|
|
4188
4200
|
}
|
|
4189
4201
|
}
|
|
@@ -4384,10 +4396,10 @@ class GenerateAiRequest {
|
|
|
4384
4396
|
let m = new GenerateAiRequest();
|
|
4385
4397
|
m = Object.assign(m, proto);
|
|
4386
4398
|
if (proto.length) {
|
|
4387
|
-
m.length = enumStringToValue$
|
|
4399
|
+
m.length = enumStringToValue$5(ContentLength, proto.length);
|
|
4388
4400
|
}
|
|
4389
4401
|
if (proto.generateType) {
|
|
4390
|
-
m.generateType = enumStringToValue$
|
|
4402
|
+
m.generateType = enumStringToValue$5(GenerateType, proto.generateType);
|
|
4391
4403
|
}
|
|
4392
4404
|
if (proto.metadata) {
|
|
4393
4405
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -4455,6 +4467,64 @@ class GenerateAiResponse {
|
|
|
4455
4467
|
return toReturn;
|
|
4456
4468
|
}
|
|
4457
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
|
+
}
|
|
4458
4528
|
class GeneratePostsRequest {
|
|
4459
4529
|
static fromProto(proto) {
|
|
4460
4530
|
let m = new GeneratePostsRequest();
|
|
@@ -4637,6 +4707,49 @@ class ImageUrl {
|
|
|
4637
4707
|
return toReturn;
|
|
4638
4708
|
}
|
|
4639
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
|
+
}
|
|
4640
4753
|
class ListCuratedContentRequest {
|
|
4641
4754
|
static fromProto(proto) {
|
|
4642
4755
|
let m = new ListCuratedContentRequest();
|
|
@@ -4929,7 +5042,7 @@ class SocialPostOutput {
|
|
|
4929
5042
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
4930
5043
|
}
|
|
4931
5044
|
if (proto.status) {
|
|
4932
|
-
m.status = enumStringToValue$
|
|
5045
|
+
m.status = enumStringToValue$5(PostStatusV2, proto.status);
|
|
4933
5046
|
}
|
|
4934
5047
|
return m;
|
|
4935
5048
|
}
|
|
@@ -5005,6 +5118,26 @@ class SocialPostResponse {
|
|
|
5005
5118
|
return toReturn;
|
|
5006
5119
|
}
|
|
5007
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
|
+
}
|
|
5008
5141
|
class UpdateCommonAiInstructionsRequest {
|
|
5009
5142
|
static fromProto(proto) {
|
|
5010
5143
|
let m = new UpdateCommonAiInstructionsRequest();
|
|
@@ -5147,7 +5280,7 @@ class UploadToStorageRequest {
|
|
|
5147
5280
|
let m = new UploadToStorageRequest();
|
|
5148
5281
|
m = Object.assign(m, proto);
|
|
5149
5282
|
if (proto.mediaType) {
|
|
5150
|
-
m.mediaType = enumStringToValue$
|
|
5283
|
+
m.mediaType = enumStringToValue$5(MediaType, proto.mediaType);
|
|
5151
5284
|
}
|
|
5152
5285
|
return m;
|
|
5153
5286
|
}
|
|
@@ -5215,7 +5348,7 @@ class UploadedMedia {
|
|
|
5215
5348
|
}
|
|
5216
5349
|
}
|
|
5217
5350
|
|
|
5218
|
-
function enumStringToValue$
|
|
5351
|
+
function enumStringToValue$4(enumRef, value) {
|
|
5219
5352
|
if (typeof value === 'number') {
|
|
5220
5353
|
return value;
|
|
5221
5354
|
}
|
|
@@ -5226,7 +5359,7 @@ class Action {
|
|
|
5226
5359
|
let m = new Action();
|
|
5227
5360
|
m = Object.assign(m, proto);
|
|
5228
5361
|
if (proto.actionType) {
|
|
5229
|
-
m.actionType = enumStringToValue$
|
|
5362
|
+
m.actionType = enumStringToValue$4(ActionType, proto.actionType);
|
|
5230
5363
|
}
|
|
5231
5364
|
return m;
|
|
5232
5365
|
}
|
|
@@ -5366,7 +5499,7 @@ class StartChatResponse {
|
|
|
5366
5499
|
}
|
|
5367
5500
|
}
|
|
5368
5501
|
|
|
5369
|
-
function enumStringToValue$
|
|
5502
|
+
function enumStringToValue$3(enumRef, value) {
|
|
5370
5503
|
if (typeof value === 'number') {
|
|
5371
5504
|
return value;
|
|
5372
5505
|
}
|
|
@@ -5377,7 +5510,7 @@ class ChatMessage {
|
|
|
5377
5510
|
let m = new ChatMessage();
|
|
5378
5511
|
m = Object.assign(m, proto);
|
|
5379
5512
|
if (proto.role) {
|
|
5380
|
-
m.role = enumStringToValue$
|
|
5513
|
+
m.role = enumStringToValue$3(Role, proto.role);
|
|
5381
5514
|
}
|
|
5382
5515
|
return m;
|
|
5383
5516
|
}
|
|
@@ -5457,7 +5590,7 @@ class SendMessageV2Response {
|
|
|
5457
5590
|
}
|
|
5458
5591
|
}
|
|
5459
5592
|
|
|
5460
|
-
function enumStringToValue$
|
|
5593
|
+
function enumStringToValue$2(enumRef, value) {
|
|
5461
5594
|
if (typeof value === 'number') {
|
|
5462
5595
|
return value;
|
|
5463
5596
|
}
|
|
@@ -5749,7 +5882,7 @@ class UpdateBlogConnectionRequest {
|
|
|
5749
5882
|
}
|
|
5750
5883
|
}
|
|
5751
5884
|
|
|
5752
|
-
function enumStringToValue(enumRef, value) {
|
|
5885
|
+
function enumStringToValue$1(enumRef, value) {
|
|
5753
5886
|
if (typeof value === 'number') {
|
|
5754
5887
|
return value;
|
|
5755
5888
|
}
|
|
@@ -6370,6 +6503,59 @@ class UpdateBlogPostRequest {
|
|
|
6370
6503
|
}
|
|
6371
6504
|
}
|
|
6372
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
|
+
|
|
6373
6559
|
// *********************************
|
|
6374
6560
|
// Code generated by sdkgen
|
|
6375
6561
|
// DO NOT EDIT!.
|
|
@@ -6601,6 +6787,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6601
6787
|
args: [{ providedIn: 'root' }]
|
|
6602
6788
|
}] });
|
|
6603
6789
|
|
|
6790
|
+
// *********************************
|
|
6791
|
+
// Code generated by sdkgen
|
|
6792
|
+
// DO NOT EDIT!.
|
|
6793
|
+
//
|
|
6794
|
+
// API Service.
|
|
6795
|
+
// *********************************
|
|
6796
|
+
class CampaignApiService {
|
|
6797
|
+
constructor() {
|
|
6798
|
+
this.hostService = inject(HostService);
|
|
6799
|
+
this.http = inject(HttpClient);
|
|
6800
|
+
this._host = this.hostService.hostWithScheme;
|
|
6801
|
+
}
|
|
6802
|
+
apiOptions() {
|
|
6803
|
+
return {
|
|
6804
|
+
headers: new HttpHeaders({
|
|
6805
|
+
'Content-Type': 'application/json'
|
|
6806
|
+
}),
|
|
6807
|
+
withCredentials: true
|
|
6808
|
+
};
|
|
6809
|
+
}
|
|
6810
|
+
create(r) {
|
|
6811
|
+
const request = (r.toApiJson) ? r : new CreateCampaignRequest(r);
|
|
6812
|
+
return this.http.post(this._host + "/socialposts.v2.CampaignService/Create", request.toApiJson(), this.apiOptions())
|
|
6813
|
+
.pipe(map(resp => CreateCampaignResponse.fromProto(resp)));
|
|
6814
|
+
}
|
|
6815
|
+
}
|
|
6816
|
+
CampaignApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6817
|
+
CampaignApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, providedIn: 'root' });
|
|
6818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, decorators: [{
|
|
6819
|
+
type: Injectable,
|
|
6820
|
+
args: [{ providedIn: 'root' }]
|
|
6821
|
+
}] });
|
|
6822
|
+
|
|
6604
6823
|
// *********************************
|
|
6605
6824
|
// Code generated by sdkgen
|
|
6606
6825
|
// DO NOT EDIT!.
|
|
@@ -6749,6 +6968,11 @@ class ContentGenerationApiService {
|
|
|
6749
6968
|
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/Generate", request.toApiJson(), this.apiOptions())
|
|
6750
6969
|
.pipe(map(resp => GenerateAiResponse.fromProto(resp)));
|
|
6751
6970
|
}
|
|
6971
|
+
generateContentMetaData(r) {
|
|
6972
|
+
const request = (r.toApiJson) ? r : new GenerateContentMetaDataRequest(r);
|
|
6973
|
+
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GenerateContentMetaData", request.toApiJson(), this.apiOptions())
|
|
6974
|
+
.pipe(map(resp => GenerateContentMetaDataResponse.fromProto(resp)));
|
|
6975
|
+
}
|
|
6752
6976
|
}
|
|
6753
6977
|
ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6754
6978
|
ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
|
|
@@ -7591,6 +7815,9 @@ class ContentGenerationService {
|
|
|
7591
7815
|
generate(r) {
|
|
7592
7816
|
return this.contentGenerationApiService.generate(r);
|
|
7593
7817
|
}
|
|
7818
|
+
generateContentMetaData(r) {
|
|
7819
|
+
return this.generateContentMetaData(r);
|
|
7820
|
+
}
|
|
7594
7821
|
}
|
|
7595
7822
|
ContentGenerationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, deps: [{ token: ContentGenerationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7596
7823
|
ContentGenerationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, providedIn: 'root' });
|
|
@@ -7784,5 +8011,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7784
8011
|
* Generated bundle index. Do not edit.
|
|
7785
8012
|
*/
|
|
7786
8013
|
|
|
7787
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author
|
|
8014
|
+
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 };
|
|
7788
8015
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|