@vendasta/social-posts 5.34.1 → 5.36.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 +49 -0
- package/esm2020/lib/_internal/content-generation.api.service.mjs +17 -2
- package/esm2020/lib/_internal/enums/api-v2.enum.mjs +33 -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/campaign.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api-v2.mjs +397 -1
- package/esm2020/lib/_internal/objects/campaign.mjs +157 -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 +689 -44
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +689 -44
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/campaign.api.service.d.ts +16 -0
- package/lib/_internal/content-generation.api.service.d.ts +5 -2
- package/lib/_internal/enums/api-v2.enum.d.ts +30 -1
- 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 +61 -0
- package/lib/_internal/interfaces/campaign.interface.d.ts +27 -0
- package/lib/_internal/interfaces/index.d.ts +4 -3
- package/lib/_internal/objects/api-v2.d.ts +106 -0
- package/lib/_internal/objects/campaign.d.ts +47 -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
|
}
|
|
@@ -97,7 +97,7 @@ var MessageLength;
|
|
|
97
97
|
MessageLength[MessageLength["SHORT_FORM"] = 0] = "SHORT_FORM";
|
|
98
98
|
MessageLength[MessageLength["LONG_FORM"] = 1] = "LONG_FORM";
|
|
99
99
|
})(MessageLength || (MessageLength = {}));
|
|
100
|
-
var PostType;
|
|
100
|
+
var PostType$1;
|
|
101
101
|
(function (PostType) {
|
|
102
102
|
PostType[PostType["POST_TYPE_INVALID"] = 0] = "POST_TYPE_INVALID";
|
|
103
103
|
PostType[PostType["POST_TYPE_IMAGE"] = 1] = "POST_TYPE_IMAGE";
|
|
@@ -107,7 +107,7 @@ var PostType;
|
|
|
107
107
|
PostType[PostType["POST_TYPE_CAROUSEL"] = 5] = "POST_TYPE_CAROUSEL";
|
|
108
108
|
PostType[PostType["POST_TYPE_STORIES"] = 6] = "POST_TYPE_STORIES";
|
|
109
109
|
PostType[PostType["POST_TYPE_TEXT"] = 7] = "POST_TYPE_TEXT";
|
|
110
|
-
})(PostType || (PostType = {}));
|
|
110
|
+
})(PostType$1 || (PostType$1 = {}));
|
|
111
111
|
var PostingStatus;
|
|
112
112
|
(function (PostingStatus) {
|
|
113
113
|
PostingStatus[PostingStatus["POSTING_IN_PROGRESS"] = 0] = "POSTING_IN_PROGRESS";
|
|
@@ -210,6 +210,7 @@ var ContentLength;
|
|
|
210
210
|
ContentLength[ContentLength["SHORT_FORM"] = 0] = "SHORT_FORM";
|
|
211
211
|
ContentLength[ContentLength["MEDIUM_FORM"] = 1] = "MEDIUM_FORM";
|
|
212
212
|
ContentLength[ContentLength["LONG_FORM"] = 2] = "LONG_FORM";
|
|
213
|
+
ContentLength[ContentLength["OPTIMIZED_FORM"] = 3] = "OPTIMIZED_FORM";
|
|
213
214
|
})(ContentLength || (ContentLength = {}));
|
|
214
215
|
var GenerateType;
|
|
215
216
|
(function (GenerateType) {
|
|
@@ -217,6 +218,37 @@ var GenerateType;
|
|
|
217
218
|
GenerateType[GenerateType["OUTLINE"] = 1] = "OUTLINE";
|
|
218
219
|
GenerateType[GenerateType["BLOG"] = 2] = "BLOG";
|
|
219
220
|
})(GenerateType || (GenerateType = {}));
|
|
221
|
+
var Network;
|
|
222
|
+
(function (Network) {
|
|
223
|
+
Network[Network["FACEBOOK"] = 0] = "FACEBOOK";
|
|
224
|
+
Network[Network["INSTAGRAM"] = 1] = "INSTAGRAM";
|
|
225
|
+
Network[Network["LINKEDIN"] = 2] = "LINKEDIN";
|
|
226
|
+
Network[Network["TWITTER"] = 3] = "TWITTER";
|
|
227
|
+
Network[Network["GMB"] = 4] = "GMB";
|
|
228
|
+
Network[Network["TIKOTOK"] = 5] = "TIKOTOK";
|
|
229
|
+
Network[Network["YOUTUBE"] = 6] = "YOUTUBE";
|
|
230
|
+
Network[Network["CUSTOM_FEED"] = 7] = "CUSTOM_FEED";
|
|
231
|
+
Network[Network["WORDPRESS"] = 8] = "WORDPRESS";
|
|
232
|
+
})(Network || (Network = {}));
|
|
233
|
+
var PostType;
|
|
234
|
+
(function (PostType) {
|
|
235
|
+
PostType[PostType["DRAFT"] = 0] = "DRAFT";
|
|
236
|
+
PostType[PostType["SCHEDULED"] = 1] = "SCHEDULED";
|
|
237
|
+
PostType[PostType["PUBLISHED"] = 2] = "PUBLISHED";
|
|
238
|
+
})(PostType || (PostType = {}));
|
|
239
|
+
var Tone;
|
|
240
|
+
(function (Tone) {
|
|
241
|
+
Tone[Tone["DEFAULT"] = 0] = "DEFAULT";
|
|
242
|
+
Tone[Tone["FRIENDLY"] = 1] = "FRIENDLY";
|
|
243
|
+
Tone[Tone["LUXURIOUS"] = 2] = "LUXURIOUS";
|
|
244
|
+
Tone[Tone["PROFESSIONAL"] = 3] = "PROFESSIONAL";
|
|
245
|
+
Tone[Tone["RELAXED"] = 4] = "RELAXED";
|
|
246
|
+
Tone[Tone["BOLD"] = 5] = "BOLD";
|
|
247
|
+
Tone[Tone["ADVENTUROUS"] = 6] = "ADVENTUROUS";
|
|
248
|
+
Tone[Tone["WITTY"] = 7] = "WITTY";
|
|
249
|
+
Tone[Tone["PERSUASIVE"] = 8] = "PERSUASIVE";
|
|
250
|
+
Tone[Tone["EMPATHETIC"] = 9] = "EMPATHETIC";
|
|
251
|
+
})(Tone || (Tone = {}));
|
|
220
252
|
|
|
221
253
|
// *********************************
|
|
222
254
|
// Code generated by sdkgen
|
|
@@ -250,7 +282,7 @@ var Role;
|
|
|
250
282
|
// Enums Index.
|
|
251
283
|
// *********************************
|
|
252
284
|
|
|
253
|
-
function enumStringToValue$
|
|
285
|
+
function enumStringToValue$f(enumRef, value) {
|
|
254
286
|
if (typeof value === 'number') {
|
|
255
287
|
return value;
|
|
256
288
|
}
|
|
@@ -322,7 +354,7 @@ class CallToAction {
|
|
|
322
354
|
let m = new CallToAction();
|
|
323
355
|
m = Object.assign(m, proto);
|
|
324
356
|
if (proto.actionType) {
|
|
325
|
-
m.actionType = enumStringToValue$
|
|
357
|
+
m.actionType = enumStringToValue$f(CallToActionCallToActionType, proto.actionType);
|
|
326
358
|
}
|
|
327
359
|
return m;
|
|
328
360
|
}
|
|
@@ -505,7 +537,7 @@ class PostTemplate {
|
|
|
505
537
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
506
538
|
}
|
|
507
539
|
if (proto.postType) {
|
|
508
|
-
m.postType = enumStringToValue$
|
|
540
|
+
m.postType = enumStringToValue$f(PostType$1, proto.postType);
|
|
509
541
|
}
|
|
510
542
|
if (proto.youtubeCustomization) {
|
|
511
543
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -588,7 +620,7 @@ class SSIDPostType {
|
|
|
588
620
|
let m = new SSIDPostType();
|
|
589
621
|
m = Object.assign(m, proto);
|
|
590
622
|
if (proto.postType) {
|
|
591
|
-
m.postType = enumStringToValue$
|
|
623
|
+
m.postType = enumStringToValue$f(PostType$1, proto.postType);
|
|
592
624
|
}
|
|
593
625
|
return m;
|
|
594
626
|
}
|
|
@@ -649,10 +681,10 @@ class SocialPost {
|
|
|
649
681
|
m.posted = new Date(proto.posted);
|
|
650
682
|
}
|
|
651
683
|
if (proto.deletionStatus) {
|
|
652
|
-
m.deletionStatus = enumStringToValue$
|
|
684
|
+
m.deletionStatus = enumStringToValue$f(SocialPostDeletionStatus, proto.deletionStatus);
|
|
653
685
|
}
|
|
654
686
|
if (proto.service) {
|
|
655
|
-
m.service = enumStringToValue$
|
|
687
|
+
m.service = enumStringToValue$f(SocialPostService, proto.service);
|
|
656
688
|
}
|
|
657
689
|
if (proto.created) {
|
|
658
690
|
m.created = new Date(proto.created);
|
|
@@ -661,7 +693,7 @@ class SocialPost {
|
|
|
661
693
|
m.scheduled = new Date(proto.scheduled);
|
|
662
694
|
}
|
|
663
695
|
if (proto.status) {
|
|
664
|
-
m.status = enumStringToValue$
|
|
696
|
+
m.status = enumStringToValue$f(PostingStatus, proto.status);
|
|
665
697
|
}
|
|
666
698
|
if (proto.event) {
|
|
667
699
|
m.event = Event.fromProto(proto.event);
|
|
@@ -673,7 +705,7 @@ class SocialPost {
|
|
|
673
705
|
m.error = Error.fromProto(proto.error);
|
|
674
706
|
}
|
|
675
707
|
if (proto.postType) {
|
|
676
|
-
m.postType = enumStringToValue$
|
|
708
|
+
m.postType = enumStringToValue$f(PostType$1, proto.postType);
|
|
677
709
|
}
|
|
678
710
|
if (proto.mediaEntries) {
|
|
679
711
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -862,7 +894,7 @@ class YoutubeCustomization {
|
|
|
862
894
|
let m = new YoutubeCustomization();
|
|
863
895
|
m = Object.assign(m, proto);
|
|
864
896
|
if (proto.privacyStatus) {
|
|
865
|
-
m.privacyStatus = enumStringToValue$
|
|
897
|
+
m.privacyStatus = enumStringToValue$f(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
866
898
|
}
|
|
867
899
|
return m;
|
|
868
900
|
}
|
|
@@ -884,7 +916,7 @@ class YoutubeCustomization {
|
|
|
884
916
|
}
|
|
885
917
|
}
|
|
886
918
|
|
|
887
|
-
function enumStringToValue$
|
|
919
|
+
function enumStringToValue$e(enumRef, value) {
|
|
888
920
|
if (typeof value === 'number') {
|
|
889
921
|
return value;
|
|
890
922
|
}
|
|
@@ -1113,7 +1145,7 @@ class PostEvent {
|
|
|
1113
1145
|
}
|
|
1114
1146
|
}
|
|
1115
1147
|
|
|
1116
|
-
function enumStringToValue$
|
|
1148
|
+
function enumStringToValue$d(enumRef, value) {
|
|
1117
1149
|
if (typeof value === 'number') {
|
|
1118
1150
|
return value;
|
|
1119
1151
|
}
|
|
@@ -1254,7 +1286,7 @@ class PixabayImage {
|
|
|
1254
1286
|
}
|
|
1255
1287
|
}
|
|
1256
1288
|
|
|
1257
|
-
function enumStringToValue$
|
|
1289
|
+
function enumStringToValue$c(enumRef, value) {
|
|
1258
1290
|
if (typeof value === 'number') {
|
|
1259
1291
|
return value;
|
|
1260
1292
|
}
|
|
@@ -1381,7 +1413,7 @@ class TwitterPostStats {
|
|
|
1381
1413
|
}
|
|
1382
1414
|
}
|
|
1383
1415
|
|
|
1384
|
-
function enumStringToValue$
|
|
1416
|
+
function enumStringToValue$b(enumRef, value) {
|
|
1385
1417
|
if (typeof value === 'number') {
|
|
1386
1418
|
return value;
|
|
1387
1419
|
}
|
|
@@ -1487,7 +1519,7 @@ class TenorMediaObject {
|
|
|
1487
1519
|
}
|
|
1488
1520
|
}
|
|
1489
1521
|
|
|
1490
|
-
function enumStringToValue$
|
|
1522
|
+
function enumStringToValue$a(enumRef, value) {
|
|
1491
1523
|
if (typeof value === 'number') {
|
|
1492
1524
|
return value;
|
|
1493
1525
|
}
|
|
@@ -1610,7 +1642,7 @@ class CreatePostTemplateRequest {
|
|
|
1610
1642
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
1611
1643
|
}
|
|
1612
1644
|
if (proto.postType) {
|
|
1613
|
-
m.postType = enumStringToValue$
|
|
1645
|
+
m.postType = enumStringToValue$a(PostType$1, proto.postType);
|
|
1614
1646
|
}
|
|
1615
1647
|
if (proto.youtubeCustomization) {
|
|
1616
1648
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -2843,7 +2875,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
2843
2875
|
let m = new RemoveFromMultilocationPostRequest();
|
|
2844
2876
|
m = Object.assign(m, proto);
|
|
2845
2877
|
if (proto.reason) {
|
|
2846
|
-
m.reason = enumStringToValue$
|
|
2878
|
+
m.reason = enumStringToValue$a(RemoveReason, proto.reason);
|
|
2847
2879
|
}
|
|
2848
2880
|
if (proto.locations) {
|
|
2849
2881
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -3066,10 +3098,10 @@ class SuggestMessageRequest {
|
|
|
3066
3098
|
let m = new SuggestMessageRequest();
|
|
3067
3099
|
m = Object.assign(m, proto);
|
|
3068
3100
|
if (proto.length) {
|
|
3069
|
-
m.length = enumStringToValue$
|
|
3101
|
+
m.length = enumStringToValue$a(MessageLength, proto.length);
|
|
3070
3102
|
}
|
|
3071
3103
|
if (proto.type) {
|
|
3072
|
-
m.type = enumStringToValue$
|
|
3104
|
+
m.type = enumStringToValue$a(TemplateType, proto.type);
|
|
3073
3105
|
}
|
|
3074
3106
|
if (proto.metadata) {
|
|
3075
3107
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -3136,7 +3168,7 @@ class UpdatePostTemplateRequest {
|
|
|
3136
3168
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3137
3169
|
}
|
|
3138
3170
|
if (proto.postType) {
|
|
3139
|
-
m.postType = enumStringToValue$
|
|
3171
|
+
m.postType = enumStringToValue$a(PostType$1, proto.postType);
|
|
3140
3172
|
}
|
|
3141
3173
|
if (proto.youtubeCustomization) {
|
|
3142
3174
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3203,7 +3235,7 @@ class UpdatePostTemplateRequest {
|
|
|
3203
3235
|
}
|
|
3204
3236
|
}
|
|
3205
3237
|
|
|
3206
|
-
function enumStringToValue$
|
|
3238
|
+
function enumStringToValue$9(enumRef, value) {
|
|
3207
3239
|
if (typeof value === 'number') {
|
|
3208
3240
|
return value;
|
|
3209
3241
|
}
|
|
@@ -3233,7 +3265,7 @@ class Access {
|
|
|
3233
3265
|
}
|
|
3234
3266
|
}
|
|
3235
3267
|
|
|
3236
|
-
function enumStringToValue$
|
|
3268
|
+
function enumStringToValue$8(enumRef, value) {
|
|
3237
3269
|
if (typeof value === 'number') {
|
|
3238
3270
|
return value;
|
|
3239
3271
|
}
|
|
@@ -3468,7 +3500,7 @@ class SocialPostV2 {
|
|
|
3468
3500
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
3469
3501
|
}
|
|
3470
3502
|
if (proto.postType) {
|
|
3471
|
-
m.postType = enumStringToValue$
|
|
3503
|
+
m.postType = enumStringToValue$8(PostTypeV2, proto.postType);
|
|
3472
3504
|
}
|
|
3473
3505
|
if (proto.metadata) {
|
|
3474
3506
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -3568,7 +3600,7 @@ class YoutubeCustomizationV2 {
|
|
|
3568
3600
|
let m = new YoutubeCustomizationV2();
|
|
3569
3601
|
m = Object.assign(m, proto);
|
|
3570
3602
|
if (proto.privacyStatus) {
|
|
3571
|
-
m.privacyStatus = enumStringToValue$
|
|
3603
|
+
m.privacyStatus = enumStringToValue$8(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
3572
3604
|
}
|
|
3573
3605
|
return m;
|
|
3574
3606
|
}
|
|
@@ -3587,7 +3619,7 @@ class YoutubeCustomizationV2 {
|
|
|
3587
3619
|
}
|
|
3588
3620
|
}
|
|
3589
3621
|
|
|
3590
|
-
function enumStringToValue$
|
|
3622
|
+
function enumStringToValue$7(enumRef, value) {
|
|
3591
3623
|
if (typeof value === 'number') {
|
|
3592
3624
|
return value;
|
|
3593
3625
|
}
|
|
@@ -3598,7 +3630,7 @@ class Media {
|
|
|
3598
3630
|
let m = new Media();
|
|
3599
3631
|
m = Object.assign(m, proto);
|
|
3600
3632
|
if (proto.mediaType) {
|
|
3601
|
-
m.mediaType = enumStringToValue$
|
|
3633
|
+
m.mediaType = enumStringToValue$7(MediaType, proto.mediaType);
|
|
3602
3634
|
}
|
|
3603
3635
|
return m;
|
|
3604
3636
|
}
|
|
@@ -3620,7 +3652,7 @@ class Media {
|
|
|
3620
3652
|
}
|
|
3621
3653
|
}
|
|
3622
3654
|
|
|
3623
|
-
function enumStringToValue$
|
|
3655
|
+
function enumStringToValue$6(enumRef, value) {
|
|
3624
3656
|
if (typeof value === 'number') {
|
|
3625
3657
|
return value;
|
|
3626
3658
|
}
|
|
@@ -4155,7 +4187,7 @@ class UserLink {
|
|
|
4155
4187
|
}
|
|
4156
4188
|
}
|
|
4157
4189
|
|
|
4158
|
-
function enumStringToValue$
|
|
4190
|
+
function enumStringToValue$5(enumRef, value) {
|
|
4159
4191
|
if (typeof value === 'number') {
|
|
4160
4192
|
return value;
|
|
4161
4193
|
}
|
|
@@ -4199,6 +4231,32 @@ class AiInstructions {
|
|
|
4199
4231
|
return toReturn;
|
|
4200
4232
|
}
|
|
4201
4233
|
}
|
|
4234
|
+
class BlogPostCampaign {
|
|
4235
|
+
static fromProto(proto) {
|
|
4236
|
+
let m = new BlogPostCampaign();
|
|
4237
|
+
m = Object.assign(m, proto);
|
|
4238
|
+
if (proto.blogPostType) {
|
|
4239
|
+
m.blogPostType = enumStringToValue$5(PostType$1, proto.blogPostType);
|
|
4240
|
+
}
|
|
4241
|
+
return m;
|
|
4242
|
+
}
|
|
4243
|
+
constructor(kwargs) {
|
|
4244
|
+
if (!kwargs) {
|
|
4245
|
+
return;
|
|
4246
|
+
}
|
|
4247
|
+
Object.assign(this, kwargs);
|
|
4248
|
+
}
|
|
4249
|
+
toApiJson() {
|
|
4250
|
+
const toReturn = {};
|
|
4251
|
+
if (typeof this.blogPostId !== 'undefined') {
|
|
4252
|
+
toReturn['blogPostId'] = this.blogPostId;
|
|
4253
|
+
}
|
|
4254
|
+
if (typeof this.blogPostType !== 'undefined') {
|
|
4255
|
+
toReturn['blogPostType'] = this.blogPostType;
|
|
4256
|
+
}
|
|
4257
|
+
return toReturn;
|
|
4258
|
+
}
|
|
4259
|
+
}
|
|
4202
4260
|
class CreateCommonAiInstructionsRequest {
|
|
4203
4261
|
static fromProto(proto) {
|
|
4204
4262
|
let m = new CreateCommonAiInstructionsRequest();
|
|
@@ -4396,10 +4454,10 @@ class GenerateAiRequest {
|
|
|
4396
4454
|
let m = new GenerateAiRequest();
|
|
4397
4455
|
m = Object.assign(m, proto);
|
|
4398
4456
|
if (proto.length) {
|
|
4399
|
-
m.length = enumStringToValue$
|
|
4457
|
+
m.length = enumStringToValue$5(ContentLength, proto.length);
|
|
4400
4458
|
}
|
|
4401
4459
|
if (proto.generateType) {
|
|
4402
|
-
m.generateType = enumStringToValue$
|
|
4460
|
+
m.generateType = enumStringToValue$5(GenerateType, proto.generateType);
|
|
4403
4461
|
}
|
|
4404
4462
|
if (proto.metadata) {
|
|
4405
4463
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -4467,6 +4525,174 @@ class GenerateAiResponse {
|
|
|
4467
4525
|
return toReturn;
|
|
4468
4526
|
}
|
|
4469
4527
|
}
|
|
4528
|
+
class GenerateBlogPostCampaignRequest {
|
|
4529
|
+
static fromProto(proto) {
|
|
4530
|
+
let m = new GenerateBlogPostCampaignRequest();
|
|
4531
|
+
m = Object.assign(m, proto);
|
|
4532
|
+
if (proto.networkType) {
|
|
4533
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$5(Network, v));
|
|
4534
|
+
}
|
|
4535
|
+
if (proto.blogCampaign) {
|
|
4536
|
+
m.blogCampaign = BlogPostCampaign.fromProto(proto.blogCampaign);
|
|
4537
|
+
}
|
|
4538
|
+
return m;
|
|
4539
|
+
}
|
|
4540
|
+
constructor(kwargs) {
|
|
4541
|
+
if (!kwargs) {
|
|
4542
|
+
return;
|
|
4543
|
+
}
|
|
4544
|
+
Object.assign(this, kwargs);
|
|
4545
|
+
}
|
|
4546
|
+
toApiJson() {
|
|
4547
|
+
const toReturn = {};
|
|
4548
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4549
|
+
toReturn['businessId'] = this.businessId;
|
|
4550
|
+
}
|
|
4551
|
+
if (typeof this.networkType !== 'undefined') {
|
|
4552
|
+
toReturn['networkType'] = this.networkType;
|
|
4553
|
+
}
|
|
4554
|
+
if (typeof this.blogCampaign !== 'undefined' && this.blogCampaign !== null) {
|
|
4555
|
+
toReturn['blogCampaign'] = 'toApiJson' in this.blogCampaign ? this.blogCampaign.toApiJson() : this.blogCampaign;
|
|
4556
|
+
}
|
|
4557
|
+
return toReturn;
|
|
4558
|
+
}
|
|
4559
|
+
}
|
|
4560
|
+
class GenerateBlogPostCampaignResponse {
|
|
4561
|
+
static fromProto(proto) {
|
|
4562
|
+
let m = new GenerateBlogPostCampaignResponse();
|
|
4563
|
+
m = Object.assign(m, proto);
|
|
4564
|
+
if (proto.posts) {
|
|
4565
|
+
m.posts = proto.posts.map(Posts.fromProto);
|
|
4566
|
+
}
|
|
4567
|
+
return m;
|
|
4568
|
+
}
|
|
4569
|
+
constructor(kwargs) {
|
|
4570
|
+
if (!kwargs) {
|
|
4571
|
+
return;
|
|
4572
|
+
}
|
|
4573
|
+
Object.assign(this, kwargs);
|
|
4574
|
+
}
|
|
4575
|
+
toApiJson() {
|
|
4576
|
+
const toReturn = {};
|
|
4577
|
+
if (typeof this.posts !== 'undefined' && this.posts !== null) {
|
|
4578
|
+
toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
|
|
4579
|
+
}
|
|
4580
|
+
return toReturn;
|
|
4581
|
+
}
|
|
4582
|
+
}
|
|
4583
|
+
class GenerateContentMetaDataRequest {
|
|
4584
|
+
static fromProto(proto) {
|
|
4585
|
+
let m = new GenerateContentMetaDataRequest();
|
|
4586
|
+
m = Object.assign(m, proto);
|
|
4587
|
+
if (proto.titleInput) {
|
|
4588
|
+
m.titleInput = TitleGeneration.fromProto(proto.titleInput);
|
|
4589
|
+
}
|
|
4590
|
+
if (proto.keywordInput) {
|
|
4591
|
+
m.keywordInput = KeywordGeneration.fromProto(proto.keywordInput);
|
|
4592
|
+
}
|
|
4593
|
+
return m;
|
|
4594
|
+
}
|
|
4595
|
+
constructor(kwargs) {
|
|
4596
|
+
if (!kwargs) {
|
|
4597
|
+
return;
|
|
4598
|
+
}
|
|
4599
|
+
Object.assign(this, kwargs);
|
|
4600
|
+
}
|
|
4601
|
+
toApiJson() {
|
|
4602
|
+
const toReturn = {};
|
|
4603
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4604
|
+
toReturn['businessId'] = this.businessId;
|
|
4605
|
+
}
|
|
4606
|
+
if (typeof this.titleInput !== 'undefined' && this.titleInput !== null) {
|
|
4607
|
+
toReturn['titleInput'] = 'toApiJson' in this.titleInput ? this.titleInput.toApiJson() : this.titleInput;
|
|
4608
|
+
}
|
|
4609
|
+
if (typeof this.keywordInput !== 'undefined' && this.keywordInput !== null) {
|
|
4610
|
+
toReturn['keywordInput'] = 'toApiJson' in this.keywordInput ? this.keywordInput.toApiJson() : this.keywordInput;
|
|
4611
|
+
}
|
|
4612
|
+
return toReturn;
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
class GenerateContentMetaDataResponse {
|
|
4616
|
+
static fromProto(proto) {
|
|
4617
|
+
let m = new GenerateContentMetaDataResponse();
|
|
4618
|
+
m = Object.assign(m, proto);
|
|
4619
|
+
if (proto.generatedKeywords) {
|
|
4620
|
+
m.generatedKeywords = KeywordList.fromProto(proto.generatedKeywords);
|
|
4621
|
+
}
|
|
4622
|
+
return m;
|
|
4623
|
+
}
|
|
4624
|
+
constructor(kwargs) {
|
|
4625
|
+
if (!kwargs) {
|
|
4626
|
+
return;
|
|
4627
|
+
}
|
|
4628
|
+
Object.assign(this, kwargs);
|
|
4629
|
+
}
|
|
4630
|
+
toApiJson() {
|
|
4631
|
+
const toReturn = {};
|
|
4632
|
+
if (typeof this.generatedTitle !== 'undefined') {
|
|
4633
|
+
toReturn['generatedTitle'] = this.generatedTitle;
|
|
4634
|
+
}
|
|
4635
|
+
if (typeof this.generatedKeywords !== 'undefined' && this.generatedKeywords !== null) {
|
|
4636
|
+
toReturn['generatedKeywords'] = 'toApiJson' in this.generatedKeywords ? this.generatedKeywords.toApiJson() : this.generatedKeywords;
|
|
4637
|
+
}
|
|
4638
|
+
return toReturn;
|
|
4639
|
+
}
|
|
4640
|
+
}
|
|
4641
|
+
class GeneratePostCampaignRequest {
|
|
4642
|
+
static fromProto(proto) {
|
|
4643
|
+
let m = new GeneratePostCampaignRequest();
|
|
4644
|
+
m = Object.assign(m, proto);
|
|
4645
|
+
if (proto.networkType) {
|
|
4646
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$5(Network, v));
|
|
4647
|
+
}
|
|
4648
|
+
if (proto.postGeneration) {
|
|
4649
|
+
m.postGeneration = PostsGeneration.fromProto(proto.postGeneration);
|
|
4650
|
+
}
|
|
4651
|
+
return m;
|
|
4652
|
+
}
|
|
4653
|
+
constructor(kwargs) {
|
|
4654
|
+
if (!kwargs) {
|
|
4655
|
+
return;
|
|
4656
|
+
}
|
|
4657
|
+
Object.assign(this, kwargs);
|
|
4658
|
+
}
|
|
4659
|
+
toApiJson() {
|
|
4660
|
+
const toReturn = {};
|
|
4661
|
+
if (typeof this.businessId !== 'undefined') {
|
|
4662
|
+
toReturn['businessId'] = this.businessId;
|
|
4663
|
+
}
|
|
4664
|
+
if (typeof this.networkType !== 'undefined') {
|
|
4665
|
+
toReturn['networkType'] = this.networkType;
|
|
4666
|
+
}
|
|
4667
|
+
if (typeof this.postGeneration !== 'undefined' && this.postGeneration !== null) {
|
|
4668
|
+
toReturn['postGeneration'] = 'toApiJson' in this.postGeneration ? this.postGeneration.toApiJson() : this.postGeneration;
|
|
4669
|
+
}
|
|
4670
|
+
return toReturn;
|
|
4671
|
+
}
|
|
4672
|
+
}
|
|
4673
|
+
class GeneratePostCampaignResponse {
|
|
4674
|
+
static fromProto(proto) {
|
|
4675
|
+
let m = new GeneratePostCampaignResponse();
|
|
4676
|
+
m = Object.assign(m, proto);
|
|
4677
|
+
if (proto.postList) {
|
|
4678
|
+
m.postList = PostList.fromProto(proto.postList);
|
|
4679
|
+
}
|
|
4680
|
+
return m;
|
|
4681
|
+
}
|
|
4682
|
+
constructor(kwargs) {
|
|
4683
|
+
if (!kwargs) {
|
|
4684
|
+
return;
|
|
4685
|
+
}
|
|
4686
|
+
Object.assign(this, kwargs);
|
|
4687
|
+
}
|
|
4688
|
+
toApiJson() {
|
|
4689
|
+
const toReturn = {};
|
|
4690
|
+
if (typeof this.postList !== 'undefined' && this.postList !== null) {
|
|
4691
|
+
toReturn['postList'] = 'toApiJson' in this.postList ? this.postList.toApiJson() : this.postList;
|
|
4692
|
+
}
|
|
4693
|
+
return toReturn;
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4470
4696
|
class GeneratePostsRequest {
|
|
4471
4697
|
static fromProto(proto) {
|
|
4472
4698
|
let m = new GeneratePostsRequest();
|
|
@@ -4649,6 +4875,49 @@ class ImageUrl {
|
|
|
4649
4875
|
return toReturn;
|
|
4650
4876
|
}
|
|
4651
4877
|
}
|
|
4878
|
+
class KeywordGeneration {
|
|
4879
|
+
static fromProto(proto) {
|
|
4880
|
+
let m = new KeywordGeneration();
|
|
4881
|
+
m = Object.assign(m, proto);
|
|
4882
|
+
return m;
|
|
4883
|
+
}
|
|
4884
|
+
constructor(kwargs) {
|
|
4885
|
+
if (!kwargs) {
|
|
4886
|
+
return;
|
|
4887
|
+
}
|
|
4888
|
+
Object.assign(this, kwargs);
|
|
4889
|
+
}
|
|
4890
|
+
toApiJson() {
|
|
4891
|
+
const toReturn = {};
|
|
4892
|
+
if (typeof this.blogPostId !== 'undefined') {
|
|
4893
|
+
toReturn['blogPostId'] = this.blogPostId;
|
|
4894
|
+
}
|
|
4895
|
+
if (typeof this.keywordCount !== 'undefined') {
|
|
4896
|
+
toReturn['keywordCount'] = this.keywordCount;
|
|
4897
|
+
}
|
|
4898
|
+
return toReturn;
|
|
4899
|
+
}
|
|
4900
|
+
}
|
|
4901
|
+
class KeywordList {
|
|
4902
|
+
static fromProto(proto) {
|
|
4903
|
+
let m = new KeywordList();
|
|
4904
|
+
m = Object.assign(m, proto);
|
|
4905
|
+
return m;
|
|
4906
|
+
}
|
|
4907
|
+
constructor(kwargs) {
|
|
4908
|
+
if (!kwargs) {
|
|
4909
|
+
return;
|
|
4910
|
+
}
|
|
4911
|
+
Object.assign(this, kwargs);
|
|
4912
|
+
}
|
|
4913
|
+
toApiJson() {
|
|
4914
|
+
const toReturn = {};
|
|
4915
|
+
if (typeof this.keywords !== 'undefined') {
|
|
4916
|
+
toReturn['keywords'] = this.keywords;
|
|
4917
|
+
}
|
|
4918
|
+
return toReturn;
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4652
4921
|
class ListCuratedContentRequest {
|
|
4653
4922
|
static fromProto(proto) {
|
|
4654
4923
|
let m = new ListCuratedContentRequest();
|
|
@@ -4887,6 +5156,119 @@ class GeneratePostsResponsePost {
|
|
|
4887
5156
|
return toReturn;
|
|
4888
5157
|
}
|
|
4889
5158
|
}
|
|
5159
|
+
class PostContent {
|
|
5160
|
+
static fromProto(proto) {
|
|
5161
|
+
let m = new PostContent();
|
|
5162
|
+
m = Object.assign(m, proto);
|
|
5163
|
+
if (proto.singlePost) {
|
|
5164
|
+
m.singlePost = proto.singlePost.map(SinglePost.fromProto);
|
|
5165
|
+
}
|
|
5166
|
+
return m;
|
|
5167
|
+
}
|
|
5168
|
+
constructor(kwargs) {
|
|
5169
|
+
if (!kwargs) {
|
|
5170
|
+
return;
|
|
5171
|
+
}
|
|
5172
|
+
Object.assign(this, kwargs);
|
|
5173
|
+
}
|
|
5174
|
+
toApiJson() {
|
|
5175
|
+
const toReturn = {};
|
|
5176
|
+
if (typeof this.singlePost !== 'undefined' && this.singlePost !== null) {
|
|
5177
|
+
toReturn['singlePost'] = 'toApiJson' in this.singlePost ? this.singlePost.toApiJson() : this.singlePost;
|
|
5178
|
+
}
|
|
5179
|
+
return toReturn;
|
|
5180
|
+
}
|
|
5181
|
+
}
|
|
5182
|
+
class PostList {
|
|
5183
|
+
static fromProto(proto) {
|
|
5184
|
+
let m = new PostList();
|
|
5185
|
+
m = Object.assign(m, proto);
|
|
5186
|
+
if (proto.posts) {
|
|
5187
|
+
m.posts = proto.posts.map(Posts.fromProto);
|
|
5188
|
+
}
|
|
5189
|
+
return m;
|
|
5190
|
+
}
|
|
5191
|
+
constructor(kwargs) {
|
|
5192
|
+
if (!kwargs) {
|
|
5193
|
+
return;
|
|
5194
|
+
}
|
|
5195
|
+
Object.assign(this, kwargs);
|
|
5196
|
+
}
|
|
5197
|
+
toApiJson() {
|
|
5198
|
+
const toReturn = {};
|
|
5199
|
+
if (typeof this.topic !== 'undefined') {
|
|
5200
|
+
toReturn['topic'] = this.topic;
|
|
5201
|
+
}
|
|
5202
|
+
if (typeof this.posts !== 'undefined' && this.posts !== null) {
|
|
5203
|
+
toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
|
|
5204
|
+
}
|
|
5205
|
+
return toReturn;
|
|
5206
|
+
}
|
|
5207
|
+
}
|
|
5208
|
+
class Posts {
|
|
5209
|
+
static fromProto(proto) {
|
|
5210
|
+
let m = new Posts();
|
|
5211
|
+
m = Object.assign(m, proto);
|
|
5212
|
+
if (proto.postContent) {
|
|
5213
|
+
m.postContent = proto.postContent.map(PostContent.fromProto);
|
|
5214
|
+
}
|
|
5215
|
+
return m;
|
|
5216
|
+
}
|
|
5217
|
+
constructor(kwargs) {
|
|
5218
|
+
if (!kwargs) {
|
|
5219
|
+
return;
|
|
5220
|
+
}
|
|
5221
|
+
Object.assign(this, kwargs);
|
|
5222
|
+
}
|
|
5223
|
+
toApiJson() {
|
|
5224
|
+
const toReturn = {};
|
|
5225
|
+
if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
|
|
5226
|
+
toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
|
|
5227
|
+
}
|
|
5228
|
+
return toReturn;
|
|
5229
|
+
}
|
|
5230
|
+
}
|
|
5231
|
+
class PostsGeneration {
|
|
5232
|
+
static fromProto(proto) {
|
|
5233
|
+
let m = new PostsGeneration();
|
|
5234
|
+
m = Object.assign(m, proto);
|
|
5235
|
+
if (proto.tone) {
|
|
5236
|
+
m.tone = enumStringToValue$5(Tone, proto.tone);
|
|
5237
|
+
}
|
|
5238
|
+
if (proto.contentLength) {
|
|
5239
|
+
m.contentLength = enumStringToValue$5(ContentLength, proto.contentLength);
|
|
5240
|
+
}
|
|
5241
|
+
return m;
|
|
5242
|
+
}
|
|
5243
|
+
constructor(kwargs) {
|
|
5244
|
+
if (!kwargs) {
|
|
5245
|
+
return;
|
|
5246
|
+
}
|
|
5247
|
+
Object.assign(this, kwargs);
|
|
5248
|
+
}
|
|
5249
|
+
toApiJson() {
|
|
5250
|
+
const toReturn = {};
|
|
5251
|
+
if (typeof this.topic !== 'undefined') {
|
|
5252
|
+
toReturn['topic'] = this.topic;
|
|
5253
|
+
}
|
|
5254
|
+
if (typeof this.goal !== 'undefined') {
|
|
5255
|
+
toReturn['goal'] = this.goal;
|
|
5256
|
+
}
|
|
5257
|
+
if (typeof this.tone !== 'undefined') {
|
|
5258
|
+
toReturn['tone'] = this.tone;
|
|
5259
|
+
}
|
|
5260
|
+
if (typeof this.contentLength !== 'undefined') {
|
|
5261
|
+
toReturn['contentLength'] = this.contentLength;
|
|
5262
|
+
}
|
|
5263
|
+
if (typeof this.noOfPosts !== 'undefined') {
|
|
5264
|
+
toReturn['noOfPosts'] = this.noOfPosts;
|
|
5265
|
+
}
|
|
5266
|
+
if (typeof this.useCommonInstr !== 'undefined') {
|
|
5267
|
+
toReturn['useCommonInstr'] = this.useCommonInstr;
|
|
5268
|
+
}
|
|
5269
|
+
return toReturn;
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
4890
5272
|
class RepostSocialPostRequest {
|
|
4891
5273
|
static fromProto(proto) {
|
|
4892
5274
|
let m = new RepostSocialPostRequest();
|
|
@@ -4930,6 +5312,32 @@ class Response {
|
|
|
4930
5312
|
return toReturn;
|
|
4931
5313
|
}
|
|
4932
5314
|
}
|
|
5315
|
+
class SinglePost {
|
|
5316
|
+
static fromProto(proto) {
|
|
5317
|
+
let m = new SinglePost();
|
|
5318
|
+
m = Object.assign(m, proto);
|
|
5319
|
+
if (proto.socialNetwork) {
|
|
5320
|
+
m.socialNetwork = enumStringToValue$5(Network, proto.socialNetwork);
|
|
5321
|
+
}
|
|
5322
|
+
return m;
|
|
5323
|
+
}
|
|
5324
|
+
constructor(kwargs) {
|
|
5325
|
+
if (!kwargs) {
|
|
5326
|
+
return;
|
|
5327
|
+
}
|
|
5328
|
+
Object.assign(this, kwargs);
|
|
5329
|
+
}
|
|
5330
|
+
toApiJson() {
|
|
5331
|
+
const toReturn = {};
|
|
5332
|
+
if (typeof this.socialNetwork !== 'undefined') {
|
|
5333
|
+
toReturn['socialNetwork'] = this.socialNetwork;
|
|
5334
|
+
}
|
|
5335
|
+
if (typeof this.post !== 'undefined') {
|
|
5336
|
+
toReturn['post'] = this.post;
|
|
5337
|
+
}
|
|
5338
|
+
return toReturn;
|
|
5339
|
+
}
|
|
5340
|
+
}
|
|
4933
5341
|
class SocialPostOutput {
|
|
4934
5342
|
static fromProto(proto) {
|
|
4935
5343
|
let m = new SocialPostOutput();
|
|
@@ -4941,7 +5349,7 @@ class SocialPostOutput {
|
|
|
4941
5349
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
4942
5350
|
}
|
|
4943
5351
|
if (proto.status) {
|
|
4944
|
-
m.status = enumStringToValue$
|
|
5352
|
+
m.status = enumStringToValue$5(PostStatusV2, proto.status);
|
|
4945
5353
|
}
|
|
4946
5354
|
return m;
|
|
4947
5355
|
}
|
|
@@ -5017,6 +5425,26 @@ class SocialPostResponse {
|
|
|
5017
5425
|
return toReturn;
|
|
5018
5426
|
}
|
|
5019
5427
|
}
|
|
5428
|
+
class TitleGeneration {
|
|
5429
|
+
static fromProto(proto) {
|
|
5430
|
+
let m = new TitleGeneration();
|
|
5431
|
+
m = Object.assign(m, proto);
|
|
5432
|
+
return m;
|
|
5433
|
+
}
|
|
5434
|
+
constructor(kwargs) {
|
|
5435
|
+
if (!kwargs) {
|
|
5436
|
+
return;
|
|
5437
|
+
}
|
|
5438
|
+
Object.assign(this, kwargs);
|
|
5439
|
+
}
|
|
5440
|
+
toApiJson() {
|
|
5441
|
+
const toReturn = {};
|
|
5442
|
+
if (typeof this.blogTitle !== 'undefined') {
|
|
5443
|
+
toReturn['blogTitle'] = this.blogTitle;
|
|
5444
|
+
}
|
|
5445
|
+
return toReturn;
|
|
5446
|
+
}
|
|
5447
|
+
}
|
|
5020
5448
|
class UpdateCommonAiInstructionsRequest {
|
|
5021
5449
|
static fromProto(proto) {
|
|
5022
5450
|
let m = new UpdateCommonAiInstructionsRequest();
|
|
@@ -5159,7 +5587,7 @@ class UploadToStorageRequest {
|
|
|
5159
5587
|
let m = new UploadToStorageRequest();
|
|
5160
5588
|
m = Object.assign(m, proto);
|
|
5161
5589
|
if (proto.mediaType) {
|
|
5162
|
-
m.mediaType = enumStringToValue$
|
|
5590
|
+
m.mediaType = enumStringToValue$5(MediaType, proto.mediaType);
|
|
5163
5591
|
}
|
|
5164
5592
|
return m;
|
|
5165
5593
|
}
|
|
@@ -5227,7 +5655,7 @@ class UploadedMedia {
|
|
|
5227
5655
|
}
|
|
5228
5656
|
}
|
|
5229
5657
|
|
|
5230
|
-
function enumStringToValue$
|
|
5658
|
+
function enumStringToValue$4(enumRef, value) {
|
|
5231
5659
|
if (typeof value === 'number') {
|
|
5232
5660
|
return value;
|
|
5233
5661
|
}
|
|
@@ -5238,7 +5666,7 @@ class Action {
|
|
|
5238
5666
|
let m = new Action();
|
|
5239
5667
|
m = Object.assign(m, proto);
|
|
5240
5668
|
if (proto.actionType) {
|
|
5241
|
-
m.actionType = enumStringToValue$
|
|
5669
|
+
m.actionType = enumStringToValue$4(ActionType, proto.actionType);
|
|
5242
5670
|
}
|
|
5243
5671
|
return m;
|
|
5244
5672
|
}
|
|
@@ -5378,7 +5806,7 @@ class StartChatResponse {
|
|
|
5378
5806
|
}
|
|
5379
5807
|
}
|
|
5380
5808
|
|
|
5381
|
-
function enumStringToValue$
|
|
5809
|
+
function enumStringToValue$3(enumRef, value) {
|
|
5382
5810
|
if (typeof value === 'number') {
|
|
5383
5811
|
return value;
|
|
5384
5812
|
}
|
|
@@ -5389,7 +5817,7 @@ class ChatMessage {
|
|
|
5389
5817
|
let m = new ChatMessage();
|
|
5390
5818
|
m = Object.assign(m, proto);
|
|
5391
5819
|
if (proto.role) {
|
|
5392
|
-
m.role = enumStringToValue$
|
|
5820
|
+
m.role = enumStringToValue$3(Role, proto.role);
|
|
5393
5821
|
}
|
|
5394
5822
|
return m;
|
|
5395
5823
|
}
|
|
@@ -5469,7 +5897,7 @@ class SendMessageV2Response {
|
|
|
5469
5897
|
}
|
|
5470
5898
|
}
|
|
5471
5899
|
|
|
5472
|
-
function enumStringToValue$
|
|
5900
|
+
function enumStringToValue$2(enumRef, value) {
|
|
5473
5901
|
if (typeof value === 'number') {
|
|
5474
5902
|
return value;
|
|
5475
5903
|
}
|
|
@@ -5761,7 +6189,7 @@ class UpdateBlogConnectionRequest {
|
|
|
5761
6189
|
}
|
|
5762
6190
|
}
|
|
5763
6191
|
|
|
5764
|
-
function enumStringToValue(enumRef, value) {
|
|
6192
|
+
function enumStringToValue$1(enumRef, value) {
|
|
5765
6193
|
if (typeof value === 'number') {
|
|
5766
6194
|
return value;
|
|
5767
6195
|
}
|
|
@@ -6382,6 +6810,163 @@ class UpdateBlogPostRequest {
|
|
|
6382
6810
|
}
|
|
6383
6811
|
}
|
|
6384
6812
|
|
|
6813
|
+
function enumStringToValue(enumRef, value) {
|
|
6814
|
+
if (typeof value === 'number') {
|
|
6815
|
+
return value;
|
|
6816
|
+
}
|
|
6817
|
+
return enumRef[value];
|
|
6818
|
+
}
|
|
6819
|
+
class Campaign {
|
|
6820
|
+
static fromProto(proto) {
|
|
6821
|
+
let m = new Campaign();
|
|
6822
|
+
m = Object.assign(m, proto);
|
|
6823
|
+
return m;
|
|
6824
|
+
}
|
|
6825
|
+
constructor(kwargs) {
|
|
6826
|
+
if (!kwargs) {
|
|
6827
|
+
return;
|
|
6828
|
+
}
|
|
6829
|
+
Object.assign(this, kwargs);
|
|
6830
|
+
}
|
|
6831
|
+
toApiJson() {
|
|
6832
|
+
const toReturn = {};
|
|
6833
|
+
if (typeof this.campaignName !== 'undefined') {
|
|
6834
|
+
toReturn['campaignName'] = this.campaignName;
|
|
6835
|
+
}
|
|
6836
|
+
if (typeof this.businessId !== 'undefined') {
|
|
6837
|
+
toReturn['businessId'] = this.businessId;
|
|
6838
|
+
}
|
|
6839
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
6840
|
+
toReturn['partnerId'] = this.partnerId;
|
|
6841
|
+
}
|
|
6842
|
+
if (typeof this.id !== 'undefined') {
|
|
6843
|
+
toReturn['id'] = this.id;
|
|
6844
|
+
}
|
|
6845
|
+
return toReturn;
|
|
6846
|
+
}
|
|
6847
|
+
}
|
|
6848
|
+
class CreateCampaignRequest {
|
|
6849
|
+
static fromProto(proto) {
|
|
6850
|
+
let m = new CreateCampaignRequest();
|
|
6851
|
+
m = Object.assign(m, proto);
|
|
6852
|
+
return m;
|
|
6853
|
+
}
|
|
6854
|
+
constructor(kwargs) {
|
|
6855
|
+
if (!kwargs) {
|
|
6856
|
+
return;
|
|
6857
|
+
}
|
|
6858
|
+
Object.assign(this, kwargs);
|
|
6859
|
+
}
|
|
6860
|
+
toApiJson() {
|
|
6861
|
+
const toReturn = {};
|
|
6862
|
+
if (typeof this.name !== 'undefined') {
|
|
6863
|
+
toReturn['name'] = this.name;
|
|
6864
|
+
}
|
|
6865
|
+
if (typeof this.businessId !== 'undefined') {
|
|
6866
|
+
toReturn['businessId'] = this.businessId;
|
|
6867
|
+
}
|
|
6868
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
6869
|
+
toReturn['partnerId'] = this.partnerId;
|
|
6870
|
+
}
|
|
6871
|
+
return toReturn;
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
class CreateCampaignResponse {
|
|
6875
|
+
static fromProto(proto) {
|
|
6876
|
+
let m = new CreateCampaignResponse();
|
|
6877
|
+
m = Object.assign(m, proto);
|
|
6878
|
+
return m;
|
|
6879
|
+
}
|
|
6880
|
+
constructor(kwargs) {
|
|
6881
|
+
if (!kwargs) {
|
|
6882
|
+
return;
|
|
6883
|
+
}
|
|
6884
|
+
Object.assign(this, kwargs);
|
|
6885
|
+
}
|
|
6886
|
+
toApiJson() {
|
|
6887
|
+
const toReturn = {};
|
|
6888
|
+
if (typeof this.campaignId !== 'undefined') {
|
|
6889
|
+
toReturn['campaignId'] = this.campaignId;
|
|
6890
|
+
}
|
|
6891
|
+
return toReturn;
|
|
6892
|
+
}
|
|
6893
|
+
}
|
|
6894
|
+
class GetCampaignRequest {
|
|
6895
|
+
static fromProto(proto) {
|
|
6896
|
+
let m = new GetCampaignRequest();
|
|
6897
|
+
m = Object.assign(m, proto);
|
|
6898
|
+
return m;
|
|
6899
|
+
}
|
|
6900
|
+
constructor(kwargs) {
|
|
6901
|
+
if (!kwargs) {
|
|
6902
|
+
return;
|
|
6903
|
+
}
|
|
6904
|
+
Object.assign(this, kwargs);
|
|
6905
|
+
}
|
|
6906
|
+
toApiJson() {
|
|
6907
|
+
const toReturn = {};
|
|
6908
|
+
if (typeof this.campaignId !== 'undefined') {
|
|
6909
|
+
toReturn['campaignId'] = this.campaignId;
|
|
6910
|
+
}
|
|
6911
|
+
if (typeof this.businessId !== 'undefined') {
|
|
6912
|
+
toReturn['businessId'] = this.businessId;
|
|
6913
|
+
}
|
|
6914
|
+
return toReturn;
|
|
6915
|
+
}
|
|
6916
|
+
}
|
|
6917
|
+
class GetCampaignResponse {
|
|
6918
|
+
static fromProto(proto) {
|
|
6919
|
+
let m = new GetCampaignResponse();
|
|
6920
|
+
m = Object.assign(m, proto);
|
|
6921
|
+
if (proto.campaign) {
|
|
6922
|
+
m.campaign = Campaign.fromProto(proto.campaign);
|
|
6923
|
+
}
|
|
6924
|
+
return m;
|
|
6925
|
+
}
|
|
6926
|
+
constructor(kwargs) {
|
|
6927
|
+
if (!kwargs) {
|
|
6928
|
+
return;
|
|
6929
|
+
}
|
|
6930
|
+
Object.assign(this, kwargs);
|
|
6931
|
+
}
|
|
6932
|
+
toApiJson() {
|
|
6933
|
+
const toReturn = {};
|
|
6934
|
+
if (typeof this.campaign !== 'undefined' && this.campaign !== null) {
|
|
6935
|
+
toReturn['campaign'] = 'toApiJson' in this.campaign ? this.campaign.toApiJson() : this.campaign;
|
|
6936
|
+
}
|
|
6937
|
+
return toReturn;
|
|
6938
|
+
}
|
|
6939
|
+
}
|
|
6940
|
+
class UpdateCampaignRequest {
|
|
6941
|
+
static fromProto(proto) {
|
|
6942
|
+
let m = new UpdateCampaignRequest();
|
|
6943
|
+
m = Object.assign(m, proto);
|
|
6944
|
+
return m;
|
|
6945
|
+
}
|
|
6946
|
+
constructor(kwargs) {
|
|
6947
|
+
if (!kwargs) {
|
|
6948
|
+
return;
|
|
6949
|
+
}
|
|
6950
|
+
Object.assign(this, kwargs);
|
|
6951
|
+
}
|
|
6952
|
+
toApiJson() {
|
|
6953
|
+
const toReturn = {};
|
|
6954
|
+
if (typeof this.campaignId !== 'undefined') {
|
|
6955
|
+
toReturn['campaignId'] = this.campaignId;
|
|
6956
|
+
}
|
|
6957
|
+
if (typeof this.name !== 'undefined') {
|
|
6958
|
+
toReturn['name'] = this.name;
|
|
6959
|
+
}
|
|
6960
|
+
if (typeof this.businessId !== 'undefined') {
|
|
6961
|
+
toReturn['businessId'] = this.businessId;
|
|
6962
|
+
}
|
|
6963
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
6964
|
+
toReturn['partnerId'] = this.partnerId;
|
|
6965
|
+
}
|
|
6966
|
+
return toReturn;
|
|
6967
|
+
}
|
|
6968
|
+
}
|
|
6969
|
+
|
|
6385
6970
|
// *********************************
|
|
6386
6971
|
// Code generated by sdkgen
|
|
6387
6972
|
// DO NOT EDIT!.
|
|
@@ -6613,6 +7198,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6613
7198
|
args: [{ providedIn: 'root' }]
|
|
6614
7199
|
}] });
|
|
6615
7200
|
|
|
7201
|
+
// *********************************
|
|
7202
|
+
// Code generated by sdkgen
|
|
7203
|
+
// DO NOT EDIT!.
|
|
7204
|
+
//
|
|
7205
|
+
// API Service.
|
|
7206
|
+
// *********************************
|
|
7207
|
+
class CampaignApiService {
|
|
7208
|
+
constructor() {
|
|
7209
|
+
this.hostService = inject(HostService);
|
|
7210
|
+
this.http = inject(HttpClient);
|
|
7211
|
+
this._host = this.hostService.hostWithScheme;
|
|
7212
|
+
}
|
|
7213
|
+
apiOptions() {
|
|
7214
|
+
return {
|
|
7215
|
+
headers: new HttpHeaders({
|
|
7216
|
+
'Content-Type': 'application/json'
|
|
7217
|
+
}),
|
|
7218
|
+
withCredentials: true
|
|
7219
|
+
};
|
|
7220
|
+
}
|
|
7221
|
+
create(r) {
|
|
7222
|
+
const request = (r.toApiJson) ? r : new CreateCampaignRequest(r);
|
|
7223
|
+
return this.http.post(this._host + "/socialposts.v2.CampaignService/Create", request.toApiJson(), this.apiOptions())
|
|
7224
|
+
.pipe(map(resp => CreateCampaignResponse.fromProto(resp)));
|
|
7225
|
+
}
|
|
7226
|
+
get(r) {
|
|
7227
|
+
const request = (r.toApiJson) ? r : new GetCampaignRequest(r);
|
|
7228
|
+
return this.http.post(this._host + "/socialposts.v2.CampaignService/Get", request.toApiJson(), this.apiOptions())
|
|
7229
|
+
.pipe(map(resp => GetCampaignResponse.fromProto(resp)));
|
|
7230
|
+
}
|
|
7231
|
+
update(r) {
|
|
7232
|
+
const request = (r.toApiJson) ? r : new UpdateCampaignRequest(r);
|
|
7233
|
+
return this.http.post(this._host + "/socialposts.v2.CampaignService/Update", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
7234
|
+
}
|
|
7235
|
+
}
|
|
7236
|
+
CampaignApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7237
|
+
CampaignApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, providedIn: 'root' });
|
|
7238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, decorators: [{
|
|
7239
|
+
type: Injectable,
|
|
7240
|
+
args: [{ providedIn: 'root' }]
|
|
7241
|
+
}] });
|
|
7242
|
+
|
|
6616
7243
|
// *********************************
|
|
6617
7244
|
// Code generated by sdkgen
|
|
6618
7245
|
// DO NOT EDIT!.
|
|
@@ -6761,6 +7388,21 @@ class ContentGenerationApiService {
|
|
|
6761
7388
|
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/Generate", request.toApiJson(), this.apiOptions())
|
|
6762
7389
|
.pipe(map(resp => GenerateAiResponse.fromProto(resp)));
|
|
6763
7390
|
}
|
|
7391
|
+
generateContentMetaData(r) {
|
|
7392
|
+
const request = (r.toApiJson) ? r : new GenerateContentMetaDataRequest(r);
|
|
7393
|
+
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GenerateContentMetaData", request.toApiJson(), this.apiOptions())
|
|
7394
|
+
.pipe(map(resp => GenerateContentMetaDataResponse.fromProto(resp)));
|
|
7395
|
+
}
|
|
7396
|
+
generateBlogPostCampaign(r) {
|
|
7397
|
+
const request = (r.toApiJson) ? r : new GenerateBlogPostCampaignRequest(r);
|
|
7398
|
+
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GenerateBlogPostCampaign", request.toApiJson(), this.apiOptions())
|
|
7399
|
+
.pipe(map(resp => GenerateBlogPostCampaignResponse.fromProto(resp)));
|
|
7400
|
+
}
|
|
7401
|
+
generatePostCampaign(r) {
|
|
7402
|
+
const request = (r.toApiJson) ? r : new GeneratePostCampaignRequest(r);
|
|
7403
|
+
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GeneratePostCampaign", request.toApiJson(), this.apiOptions())
|
|
7404
|
+
.pipe(map(resp => GeneratePostCampaignResponse.fromProto(resp)));
|
|
7405
|
+
}
|
|
6764
7406
|
}
|
|
6765
7407
|
ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6766
7408
|
ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
|
|
@@ -7306,7 +7948,7 @@ class PostTemplatesService {
|
|
|
7306
7948
|
previews: previews,
|
|
7307
7949
|
options: options,
|
|
7308
7950
|
videoUrl: videoUrl,
|
|
7309
|
-
postType: postType || PostType.POST_TYPE_INVALID,
|
|
7951
|
+
postType: postType || PostType$1.POST_TYPE_INVALID,
|
|
7310
7952
|
mediaEntries: mediaEntries,
|
|
7311
7953
|
metaData: metadata,
|
|
7312
7954
|
youtubeCustomization: youtubeCustomization,
|
|
@@ -7326,7 +7968,7 @@ class PostTemplatesService {
|
|
|
7326
7968
|
previews: previews,
|
|
7327
7969
|
options: options,
|
|
7328
7970
|
videoUrl: videoUrl,
|
|
7329
|
-
postType: postType || PostType.POST_TYPE_INVALID,
|
|
7971
|
+
postType: postType || PostType$1.POST_TYPE_INVALID,
|
|
7330
7972
|
mediaEntries: mediaEntries,
|
|
7331
7973
|
metaData: metadata,
|
|
7332
7974
|
youtubeCustomization: youtubeCustomization,
|
|
@@ -7603,6 +8245,9 @@ class ContentGenerationService {
|
|
|
7603
8245
|
generate(r) {
|
|
7604
8246
|
return this.contentGenerationApiService.generate(r);
|
|
7605
8247
|
}
|
|
8248
|
+
generateContentMetaData(r) {
|
|
8249
|
+
return this.generateContentMetaData(r);
|
|
8250
|
+
}
|
|
7606
8251
|
}
|
|
7607
8252
|
ContentGenerationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, deps: [{ token: ContentGenerationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7608
8253
|
ContentGenerationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, providedIn: 'root' });
|
|
@@ -7796,5 +8441,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7796
8441
|
* Generated bundle index. Do not edit.
|
|
7797
8442
|
*/
|
|
7798
8443
|
|
|
7799
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author
|
|
8444
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, CallToAction, CallToActionCallToActionType, Campaign, 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, GenerateBlogPostCampaignRequest, GenerateBlogPostCampaignResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, 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, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContent, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostList, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType$1 as PostType, PostTypeV2, PostingStatus, Posts, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, SinglePost, 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, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
7800
8445
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|