@vendasta/social-posts 5.24.0 → 5.26.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/content-generation.api.service.mjs +7 -2
- package/esm2020/lib/_internal/enums/api-v2.enum.mjs +13 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/wordpress-plugin.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/api-v2.mjs +108 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/esm2020/lib/_internal/objects/wordpress-plugin.mjs +62 -0
- package/esm2020/lib/_internal/wordpress-plugin.api.service.mjs +41 -0
- package/esm2020/lib/content-generation.service.mjs +4 -1
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/wordpress-plugin.service.mjs +19 -0
- package/fesm2015/vendasta-social-posts.mjs +275 -37
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +275 -37
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/content-generation.api.service.d.ts +3 -2
- package/lib/_internal/enums/api-v2.enum.d.ts +5 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api-v2.interface.d.ts +18 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/interfaces/wordpress-plugin.interface.d.ts +11 -0
- package/lib/_internal/objects/api-v2.d.ts +30 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/lib/_internal/objects/wordpress-plugin.d.ts +19 -0
- package/lib/_internal/wordpress-plugin.api.service.d.ts +16 -0
- package/lib/content-generation.service.d.ts +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/wordpress-plugin.service.d.ts +10 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import * as i1 from '@angular/common/http';
|
|
|
5
5
|
import { HttpHeaders } from '@angular/common/http';
|
|
6
6
|
import { map } from 'rxjs/operators';
|
|
7
7
|
|
|
8
|
-
function enumStringToValue$
|
|
8
|
+
function enumStringToValue$g(enumRef, value) {
|
|
9
9
|
if (typeof value === 'number') {
|
|
10
10
|
return value;
|
|
11
11
|
}
|
|
@@ -32,7 +32,7 @@ class FieldMask {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
function enumStringToValue$
|
|
35
|
+
function enumStringToValue$f(enumRef, value) {
|
|
36
36
|
if (typeof value === 'number') {
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
@@ -199,6 +199,19 @@ var MediaType;
|
|
|
199
199
|
MediaType[MediaType["MEDIA_TYPE_CAROUSEL"] = 4] = "MEDIA_TYPE_CAROUSEL";
|
|
200
200
|
})(MediaType || (MediaType = {}));
|
|
201
201
|
|
|
202
|
+
// *********************************
|
|
203
|
+
// Code generated by sdkgen
|
|
204
|
+
// DO NOT EDIT!.
|
|
205
|
+
//
|
|
206
|
+
// Enums.
|
|
207
|
+
// *********************************
|
|
208
|
+
var GenerateType;
|
|
209
|
+
(function (GenerateType) {
|
|
210
|
+
GenerateType[GenerateType["TITLE"] = 0] = "TITLE";
|
|
211
|
+
GenerateType[GenerateType["OUTLINE"] = 1] = "OUTLINE";
|
|
212
|
+
GenerateType[GenerateType["BLOG"] = 2] = "BLOG";
|
|
213
|
+
})(GenerateType || (GenerateType = {}));
|
|
214
|
+
|
|
202
215
|
// *********************************
|
|
203
216
|
// Code generated by sdkgen
|
|
204
217
|
// DO NOT EDIT!.
|
|
@@ -231,7 +244,7 @@ var Role;
|
|
|
231
244
|
// Enums Index.
|
|
232
245
|
// *********************************
|
|
233
246
|
|
|
234
|
-
function enumStringToValue$
|
|
247
|
+
function enumStringToValue$e(enumRef, value) {
|
|
235
248
|
if (typeof value === 'number') {
|
|
236
249
|
return value;
|
|
237
250
|
}
|
|
@@ -242,7 +255,7 @@ class CallToAction {
|
|
|
242
255
|
let m = new CallToAction();
|
|
243
256
|
m = Object.assign(m, proto);
|
|
244
257
|
if (proto.actionType) {
|
|
245
|
-
m.actionType = enumStringToValue$
|
|
258
|
+
m.actionType = enumStringToValue$e(CallToActionCallToActionType, proto.actionType);
|
|
246
259
|
}
|
|
247
260
|
return m;
|
|
248
261
|
}
|
|
@@ -396,7 +409,7 @@ class PostTemplate {
|
|
|
396
409
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
397
410
|
}
|
|
398
411
|
if (proto.postType) {
|
|
399
|
-
m.postType = enumStringToValue$
|
|
412
|
+
m.postType = enumStringToValue$e(PostType, proto.postType);
|
|
400
413
|
}
|
|
401
414
|
if (proto.youtubeCustomization) {
|
|
402
415
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -479,7 +492,7 @@ class SSIDPostType {
|
|
|
479
492
|
let m = new SSIDPostType();
|
|
480
493
|
m = Object.assign(m, proto);
|
|
481
494
|
if (proto.postType) {
|
|
482
|
-
m.postType = enumStringToValue$
|
|
495
|
+
m.postType = enumStringToValue$e(PostType, proto.postType);
|
|
483
496
|
}
|
|
484
497
|
return m;
|
|
485
498
|
}
|
|
@@ -540,10 +553,10 @@ class SocialPost {
|
|
|
540
553
|
m.posted = new Date(proto.posted);
|
|
541
554
|
}
|
|
542
555
|
if (proto.deletionStatus) {
|
|
543
|
-
m.deletionStatus = enumStringToValue$
|
|
556
|
+
m.deletionStatus = enumStringToValue$e(SocialPostDeletionStatus, proto.deletionStatus);
|
|
544
557
|
}
|
|
545
558
|
if (proto.service) {
|
|
546
|
-
m.service = enumStringToValue$
|
|
559
|
+
m.service = enumStringToValue$e(SocialPostService, proto.service);
|
|
547
560
|
}
|
|
548
561
|
if (proto.created) {
|
|
549
562
|
m.created = new Date(proto.created);
|
|
@@ -552,7 +565,7 @@ class SocialPost {
|
|
|
552
565
|
m.scheduled = new Date(proto.scheduled);
|
|
553
566
|
}
|
|
554
567
|
if (proto.status) {
|
|
555
|
-
m.status = enumStringToValue$
|
|
568
|
+
m.status = enumStringToValue$e(PostingStatus, proto.status);
|
|
556
569
|
}
|
|
557
570
|
if (proto.event) {
|
|
558
571
|
m.event = Event.fromProto(proto.event);
|
|
@@ -564,7 +577,7 @@ class SocialPost {
|
|
|
564
577
|
m.error = Error.fromProto(proto.error);
|
|
565
578
|
}
|
|
566
579
|
if (proto.postType) {
|
|
567
|
-
m.postType = enumStringToValue$
|
|
580
|
+
m.postType = enumStringToValue$e(PostType, proto.postType);
|
|
568
581
|
}
|
|
569
582
|
if (proto.mediaEntries) {
|
|
570
583
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -747,7 +760,7 @@ class YoutubeCustomization {
|
|
|
747
760
|
let m = new YoutubeCustomization();
|
|
748
761
|
m = Object.assign(m, proto);
|
|
749
762
|
if (proto.privacyStatus) {
|
|
750
|
-
m.privacyStatus = enumStringToValue$
|
|
763
|
+
m.privacyStatus = enumStringToValue$e(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
751
764
|
}
|
|
752
765
|
return m;
|
|
753
766
|
}
|
|
@@ -769,7 +782,7 @@ class YoutubeCustomization {
|
|
|
769
782
|
}
|
|
770
783
|
}
|
|
771
784
|
|
|
772
|
-
function enumStringToValue$
|
|
785
|
+
function enumStringToValue$d(enumRef, value) {
|
|
773
786
|
if (typeof value === 'number') {
|
|
774
787
|
return value;
|
|
775
788
|
}
|
|
@@ -998,7 +1011,7 @@ class PostEvent {
|
|
|
998
1011
|
}
|
|
999
1012
|
}
|
|
1000
1013
|
|
|
1001
|
-
function enumStringToValue$
|
|
1014
|
+
function enumStringToValue$c(enumRef, value) {
|
|
1002
1015
|
if (typeof value === 'number') {
|
|
1003
1016
|
return value;
|
|
1004
1017
|
}
|
|
@@ -1139,7 +1152,7 @@ class PixabayImage {
|
|
|
1139
1152
|
}
|
|
1140
1153
|
}
|
|
1141
1154
|
|
|
1142
|
-
function enumStringToValue$
|
|
1155
|
+
function enumStringToValue$b(enumRef, value) {
|
|
1143
1156
|
if (typeof value === 'number') {
|
|
1144
1157
|
return value;
|
|
1145
1158
|
}
|
|
@@ -1266,7 +1279,7 @@ class TwitterPostStats {
|
|
|
1266
1279
|
}
|
|
1267
1280
|
}
|
|
1268
1281
|
|
|
1269
|
-
function enumStringToValue$
|
|
1282
|
+
function enumStringToValue$a(enumRef, value) {
|
|
1270
1283
|
if (typeof value === 'number') {
|
|
1271
1284
|
return value;
|
|
1272
1285
|
}
|
|
@@ -1372,7 +1385,7 @@ class TenorMediaObject {
|
|
|
1372
1385
|
}
|
|
1373
1386
|
}
|
|
1374
1387
|
|
|
1375
|
-
function enumStringToValue$
|
|
1388
|
+
function enumStringToValue$9(enumRef, value) {
|
|
1376
1389
|
if (typeof value === 'number') {
|
|
1377
1390
|
return value;
|
|
1378
1391
|
}
|
|
@@ -1495,7 +1508,7 @@ class CreatePostTemplateRequest {
|
|
|
1495
1508
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
1496
1509
|
}
|
|
1497
1510
|
if (proto.postType) {
|
|
1498
|
-
m.postType = enumStringToValue$
|
|
1511
|
+
m.postType = enumStringToValue$9(PostType, proto.postType);
|
|
1499
1512
|
}
|
|
1500
1513
|
if (proto.youtubeCustomization) {
|
|
1501
1514
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -2728,7 +2741,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
2728
2741
|
let m = new RemoveFromMultilocationPostRequest();
|
|
2729
2742
|
m = Object.assign(m, proto);
|
|
2730
2743
|
if (proto.reason) {
|
|
2731
|
-
m.reason = enumStringToValue$
|
|
2744
|
+
m.reason = enumStringToValue$9(RemoveReason, proto.reason);
|
|
2732
2745
|
}
|
|
2733
2746
|
if (proto.locations) {
|
|
2734
2747
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -2951,10 +2964,10 @@ class SuggestMessageRequest {
|
|
|
2951
2964
|
let m = new SuggestMessageRequest();
|
|
2952
2965
|
m = Object.assign(m, proto);
|
|
2953
2966
|
if (proto.length) {
|
|
2954
|
-
m.length = enumStringToValue$
|
|
2967
|
+
m.length = enumStringToValue$9(MessageLength, proto.length);
|
|
2955
2968
|
}
|
|
2956
2969
|
if (proto.type) {
|
|
2957
|
-
m.type = enumStringToValue$
|
|
2970
|
+
m.type = enumStringToValue$9(TemplateType, proto.type);
|
|
2958
2971
|
}
|
|
2959
2972
|
if (proto.metadata) {
|
|
2960
2973
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -3021,7 +3034,7 @@ class UpdatePostTemplateRequest {
|
|
|
3021
3034
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
3022
3035
|
}
|
|
3023
3036
|
if (proto.postType) {
|
|
3024
|
-
m.postType = enumStringToValue$
|
|
3037
|
+
m.postType = enumStringToValue$9(PostType, proto.postType);
|
|
3025
3038
|
}
|
|
3026
3039
|
if (proto.youtubeCustomization) {
|
|
3027
3040
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3088,7 +3101,7 @@ class UpdatePostTemplateRequest {
|
|
|
3088
3101
|
}
|
|
3089
3102
|
}
|
|
3090
3103
|
|
|
3091
|
-
function enumStringToValue$
|
|
3104
|
+
function enumStringToValue$8(enumRef, value) {
|
|
3092
3105
|
if (typeof value === 'number') {
|
|
3093
3106
|
return value;
|
|
3094
3107
|
}
|
|
@@ -3118,7 +3131,7 @@ class Access {
|
|
|
3118
3131
|
}
|
|
3119
3132
|
}
|
|
3120
3133
|
|
|
3121
|
-
function enumStringToValue$
|
|
3134
|
+
function enumStringToValue$7(enumRef, value) {
|
|
3122
3135
|
if (typeof value === 'number') {
|
|
3123
3136
|
return value;
|
|
3124
3137
|
}
|
|
@@ -3353,7 +3366,7 @@ class SocialPostV2 {
|
|
|
3353
3366
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
3354
3367
|
}
|
|
3355
3368
|
if (proto.postType) {
|
|
3356
|
-
m.postType = enumStringToValue$
|
|
3369
|
+
m.postType = enumStringToValue$7(PostTypeV2, proto.postType);
|
|
3357
3370
|
}
|
|
3358
3371
|
if (proto.metadata) {
|
|
3359
3372
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -3453,7 +3466,7 @@ class YoutubeCustomizationV2 {
|
|
|
3453
3466
|
let m = new YoutubeCustomizationV2();
|
|
3454
3467
|
m = Object.assign(m, proto);
|
|
3455
3468
|
if (proto.privacyStatus) {
|
|
3456
|
-
m.privacyStatus = enumStringToValue$
|
|
3469
|
+
m.privacyStatus = enumStringToValue$7(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
3457
3470
|
}
|
|
3458
3471
|
return m;
|
|
3459
3472
|
}
|
|
@@ -3472,7 +3485,7 @@ class YoutubeCustomizationV2 {
|
|
|
3472
3485
|
}
|
|
3473
3486
|
}
|
|
3474
3487
|
|
|
3475
|
-
function enumStringToValue$
|
|
3488
|
+
function enumStringToValue$6(enumRef, value) {
|
|
3476
3489
|
if (typeof value === 'number') {
|
|
3477
3490
|
return value;
|
|
3478
3491
|
}
|
|
@@ -3483,7 +3496,7 @@ class Media {
|
|
|
3483
3496
|
let m = new Media();
|
|
3484
3497
|
m = Object.assign(m, proto);
|
|
3485
3498
|
if (proto.mediaType) {
|
|
3486
|
-
m.mediaType = enumStringToValue$
|
|
3499
|
+
m.mediaType = enumStringToValue$6(MediaType, proto.mediaType);
|
|
3487
3500
|
}
|
|
3488
3501
|
return m;
|
|
3489
3502
|
}
|
|
@@ -3505,7 +3518,7 @@ class Media {
|
|
|
3505
3518
|
}
|
|
3506
3519
|
}
|
|
3507
3520
|
|
|
3508
|
-
function enumStringToValue$
|
|
3521
|
+
function enumStringToValue$5(enumRef, value) {
|
|
3509
3522
|
if (typeof value === 'number') {
|
|
3510
3523
|
return value;
|
|
3511
3524
|
}
|
|
@@ -4040,7 +4053,7 @@ class UserLink {
|
|
|
4040
4053
|
}
|
|
4041
4054
|
}
|
|
4042
4055
|
|
|
4043
|
-
function enumStringToValue$
|
|
4056
|
+
function enumStringToValue$4(enumRef, value) {
|
|
4044
4057
|
if (typeof value === 'number') {
|
|
4045
4058
|
return value;
|
|
4046
4059
|
}
|
|
@@ -4261,6 +4274,73 @@ class DeletePostRequest {
|
|
|
4261
4274
|
return toReturn;
|
|
4262
4275
|
}
|
|
4263
4276
|
}
|
|
4277
|
+
class GenerateAiRequest {
|
|
4278
|
+
static fromProto(proto) {
|
|
4279
|
+
let m = new GenerateAiRequest();
|
|
4280
|
+
m = Object.assign(m, proto);
|
|
4281
|
+
if (proto.generateType) {
|
|
4282
|
+
m.generateType = enumStringToValue$4(GenerateType, proto.generateType);
|
|
4283
|
+
}
|
|
4284
|
+
return m;
|
|
4285
|
+
}
|
|
4286
|
+
constructor(kwargs) {
|
|
4287
|
+
if (!kwargs) {
|
|
4288
|
+
return;
|
|
4289
|
+
}
|
|
4290
|
+
Object.assign(this, kwargs);
|
|
4291
|
+
}
|
|
4292
|
+
toApiJson() {
|
|
4293
|
+
const toReturn = {};
|
|
4294
|
+
if (typeof this.goal !== 'undefined') {
|
|
4295
|
+
toReturn['goal'] = this.goal;
|
|
4296
|
+
}
|
|
4297
|
+
if (typeof this.instruction !== 'undefined') {
|
|
4298
|
+
toReturn['instruction'] = this.instruction;
|
|
4299
|
+
}
|
|
4300
|
+
if (typeof this.keyword !== 'undefined') {
|
|
4301
|
+
toReturn['keyword'] = this.keyword;
|
|
4302
|
+
}
|
|
4303
|
+
if (typeof this.tone !== 'undefined') {
|
|
4304
|
+
toReturn['tone'] = this.tone;
|
|
4305
|
+
}
|
|
4306
|
+
if (typeof this.length !== 'undefined') {
|
|
4307
|
+
toReturn['length'] = this.length;
|
|
4308
|
+
}
|
|
4309
|
+
if (typeof this.generateType !== 'undefined') {
|
|
4310
|
+
toReturn['generateType'] = this.generateType;
|
|
4311
|
+
}
|
|
4312
|
+
return toReturn;
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
class GenerateAiResponse {
|
|
4316
|
+
static fromProto(proto) {
|
|
4317
|
+
let m = new GenerateAiResponse();
|
|
4318
|
+
m = Object.assign(m, proto);
|
|
4319
|
+
if (proto.multiResult) {
|
|
4320
|
+
m.multiResult = MultiResponse.fromProto(proto.multiResult);
|
|
4321
|
+
}
|
|
4322
|
+
if (proto.result) {
|
|
4323
|
+
m.result = Response.fromProto(proto.result);
|
|
4324
|
+
}
|
|
4325
|
+
return m;
|
|
4326
|
+
}
|
|
4327
|
+
constructor(kwargs) {
|
|
4328
|
+
if (!kwargs) {
|
|
4329
|
+
return;
|
|
4330
|
+
}
|
|
4331
|
+
Object.assign(this, kwargs);
|
|
4332
|
+
}
|
|
4333
|
+
toApiJson() {
|
|
4334
|
+
const toReturn = {};
|
|
4335
|
+
if (typeof this.multiResult !== 'undefined' && this.multiResult !== null) {
|
|
4336
|
+
toReturn['multiResult'] = 'toApiJson' in this.multiResult ? this.multiResult.toApiJson() : this.multiResult;
|
|
4337
|
+
}
|
|
4338
|
+
if (typeof this.result !== 'undefined' && this.result !== null) {
|
|
4339
|
+
toReturn['result'] = 'toApiJson' in this.result ? this.result.toApiJson() : this.result;
|
|
4340
|
+
}
|
|
4341
|
+
return toReturn;
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4264
4344
|
class GeneratePostsRequest {
|
|
4265
4345
|
static fromProto(proto) {
|
|
4266
4346
|
let m = new GeneratePostsRequest();
|
|
@@ -4641,6 +4721,26 @@ class MediaUploadResponse {
|
|
|
4641
4721
|
return toReturn;
|
|
4642
4722
|
}
|
|
4643
4723
|
}
|
|
4724
|
+
class MultiResponse {
|
|
4725
|
+
static fromProto(proto) {
|
|
4726
|
+
let m = new MultiResponse();
|
|
4727
|
+
m = Object.assign(m, proto);
|
|
4728
|
+
return m;
|
|
4729
|
+
}
|
|
4730
|
+
constructor(kwargs) {
|
|
4731
|
+
if (!kwargs) {
|
|
4732
|
+
return;
|
|
4733
|
+
}
|
|
4734
|
+
Object.assign(this, kwargs);
|
|
4735
|
+
}
|
|
4736
|
+
toApiJson() {
|
|
4737
|
+
const toReturn = {};
|
|
4738
|
+
if (typeof this.items !== 'undefined') {
|
|
4739
|
+
toReturn['items'] = this.items;
|
|
4740
|
+
}
|
|
4741
|
+
return toReturn;
|
|
4742
|
+
}
|
|
4743
|
+
}
|
|
4644
4744
|
class GeneratePostsResponsePost {
|
|
4645
4745
|
static fromProto(proto) {
|
|
4646
4746
|
let m = new GeneratePostsResponsePost();
|
|
@@ -4684,6 +4784,26 @@ class RepostSocialPostRequest {
|
|
|
4684
4784
|
return toReturn;
|
|
4685
4785
|
}
|
|
4686
4786
|
}
|
|
4787
|
+
class Response {
|
|
4788
|
+
static fromProto(proto) {
|
|
4789
|
+
let m = new Response();
|
|
4790
|
+
m = Object.assign(m, proto);
|
|
4791
|
+
return m;
|
|
4792
|
+
}
|
|
4793
|
+
constructor(kwargs) {
|
|
4794
|
+
if (!kwargs) {
|
|
4795
|
+
return;
|
|
4796
|
+
}
|
|
4797
|
+
Object.assign(this, kwargs);
|
|
4798
|
+
}
|
|
4799
|
+
toApiJson() {
|
|
4800
|
+
const toReturn = {};
|
|
4801
|
+
if (typeof this.content !== 'undefined') {
|
|
4802
|
+
toReturn['content'] = this.content;
|
|
4803
|
+
}
|
|
4804
|
+
return toReturn;
|
|
4805
|
+
}
|
|
4806
|
+
}
|
|
4687
4807
|
class SocialPostOutput {
|
|
4688
4808
|
static fromProto(proto) {
|
|
4689
4809
|
let m = new SocialPostOutput();
|
|
@@ -4695,7 +4815,7 @@ class SocialPostOutput {
|
|
|
4695
4815
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
4696
4816
|
}
|
|
4697
4817
|
if (proto.status) {
|
|
4698
|
-
m.status = enumStringToValue$
|
|
4818
|
+
m.status = enumStringToValue$4(PostStatusV2, proto.status);
|
|
4699
4819
|
}
|
|
4700
4820
|
return m;
|
|
4701
4821
|
}
|
|
@@ -4913,7 +5033,7 @@ class UploadToStorageRequest {
|
|
|
4913
5033
|
let m = new UploadToStorageRequest();
|
|
4914
5034
|
m = Object.assign(m, proto);
|
|
4915
5035
|
if (proto.mediaType) {
|
|
4916
|
-
m.mediaType = enumStringToValue$
|
|
5036
|
+
m.mediaType = enumStringToValue$4(MediaType, proto.mediaType);
|
|
4917
5037
|
}
|
|
4918
5038
|
return m;
|
|
4919
5039
|
}
|
|
@@ -4981,7 +5101,7 @@ class UploadedMedia {
|
|
|
4981
5101
|
}
|
|
4982
5102
|
}
|
|
4983
5103
|
|
|
4984
|
-
function enumStringToValue$
|
|
5104
|
+
function enumStringToValue$3(enumRef, value) {
|
|
4985
5105
|
if (typeof value === 'number') {
|
|
4986
5106
|
return value;
|
|
4987
5107
|
}
|
|
@@ -4992,7 +5112,7 @@ class Action {
|
|
|
4992
5112
|
let m = new Action();
|
|
4993
5113
|
m = Object.assign(m, proto);
|
|
4994
5114
|
if (proto.actionType) {
|
|
4995
|
-
m.actionType = enumStringToValue$
|
|
5115
|
+
m.actionType = enumStringToValue$3(ActionType, proto.actionType);
|
|
4996
5116
|
}
|
|
4997
5117
|
return m;
|
|
4998
5118
|
}
|
|
@@ -5132,7 +5252,7 @@ class StartChatResponse {
|
|
|
5132
5252
|
}
|
|
5133
5253
|
}
|
|
5134
5254
|
|
|
5135
|
-
function enumStringToValue$
|
|
5255
|
+
function enumStringToValue$2(enumRef, value) {
|
|
5136
5256
|
if (typeof value === 'number') {
|
|
5137
5257
|
return value;
|
|
5138
5258
|
}
|
|
@@ -5143,7 +5263,7 @@ class ChatMessage {
|
|
|
5143
5263
|
let m = new ChatMessage();
|
|
5144
5264
|
m = Object.assign(m, proto);
|
|
5145
5265
|
if (proto.role) {
|
|
5146
|
-
m.role = enumStringToValue$
|
|
5266
|
+
m.role = enumStringToValue$2(Role, proto.role);
|
|
5147
5267
|
}
|
|
5148
5268
|
return m;
|
|
5149
5269
|
}
|
|
@@ -5223,7 +5343,7 @@ class SendMessageV2Response {
|
|
|
5223
5343
|
}
|
|
5224
5344
|
}
|
|
5225
5345
|
|
|
5226
|
-
function enumStringToValue(enumRef, value) {
|
|
5346
|
+
function enumStringToValue$1(enumRef, value) {
|
|
5227
5347
|
if (typeof value === 'number') {
|
|
5228
5348
|
return value;
|
|
5229
5349
|
}
|
|
@@ -5492,6 +5612,68 @@ class UpdateBlogConnectionRequest {
|
|
|
5492
5612
|
}
|
|
5493
5613
|
}
|
|
5494
5614
|
|
|
5615
|
+
function enumStringToValue(enumRef, value) {
|
|
5616
|
+
if (typeof value === 'number') {
|
|
5617
|
+
return value;
|
|
5618
|
+
}
|
|
5619
|
+
return enumRef[value];
|
|
5620
|
+
}
|
|
5621
|
+
class StatusRequest {
|
|
5622
|
+
static fromProto(proto) {
|
|
5623
|
+
let m = new StatusRequest();
|
|
5624
|
+
m = Object.assign(m, proto);
|
|
5625
|
+
return m;
|
|
5626
|
+
}
|
|
5627
|
+
constructor(kwargs) {
|
|
5628
|
+
if (!kwargs) {
|
|
5629
|
+
return;
|
|
5630
|
+
}
|
|
5631
|
+
Object.assign(this, kwargs);
|
|
5632
|
+
}
|
|
5633
|
+
toApiJson() {
|
|
5634
|
+
const toReturn = {};
|
|
5635
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5636
|
+
toReturn['businessId'] = this.businessId;
|
|
5637
|
+
}
|
|
5638
|
+
if (typeof this.apiKey !== 'undefined') {
|
|
5639
|
+
toReturn['apiKey'] = this.apiKey;
|
|
5640
|
+
}
|
|
5641
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
5642
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
5643
|
+
}
|
|
5644
|
+
return toReturn;
|
|
5645
|
+
}
|
|
5646
|
+
}
|
|
5647
|
+
class StatusResponse {
|
|
5648
|
+
static fromProto(proto) {
|
|
5649
|
+
let m = new StatusResponse();
|
|
5650
|
+
m = Object.assign(m, proto);
|
|
5651
|
+
return m;
|
|
5652
|
+
}
|
|
5653
|
+
constructor(kwargs) {
|
|
5654
|
+
if (!kwargs) {
|
|
5655
|
+
return;
|
|
5656
|
+
}
|
|
5657
|
+
Object.assign(this, kwargs);
|
|
5658
|
+
}
|
|
5659
|
+
toApiJson() {
|
|
5660
|
+
const toReturn = {};
|
|
5661
|
+
if (typeof this.status !== 'undefined') {
|
|
5662
|
+
toReturn['status'] = this.status;
|
|
5663
|
+
}
|
|
5664
|
+
if (typeof this.version !== 'undefined') {
|
|
5665
|
+
toReturn['version'] = this.version;
|
|
5666
|
+
}
|
|
5667
|
+
if (typeof this.logo !== 'undefined') {
|
|
5668
|
+
toReturn['logo'] = this.logo;
|
|
5669
|
+
}
|
|
5670
|
+
if (typeof this.name !== 'undefined') {
|
|
5671
|
+
toReturn['name'] = this.name;
|
|
5672
|
+
}
|
|
5673
|
+
return toReturn;
|
|
5674
|
+
}
|
|
5675
|
+
}
|
|
5676
|
+
|
|
5495
5677
|
// *********************************
|
|
5496
5678
|
// Code generated by sdkgen
|
|
5497
5679
|
// DO NOT EDIT!.
|
|
@@ -5821,6 +6003,11 @@ class ContentGenerationApiService {
|
|
|
5821
6003
|
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GeneratePosts", request.toApiJson(), this.apiOptions())
|
|
5822
6004
|
.pipe(map(resp => GeneratePostsResponse.fromProto(resp)));
|
|
5823
6005
|
}
|
|
6006
|
+
generate(r) {
|
|
6007
|
+
const request = (r.toApiJson) ? r : new GenerateAiRequest(r);
|
|
6008
|
+
return this.http.post(this._host + "/socialposts.v2.ContentGeneration/Generate", request.toApiJson(), this.apiOptions())
|
|
6009
|
+
.pipe(map(resp => GenerateAiResponse.fromProto(resp)));
|
|
6010
|
+
}
|
|
5824
6011
|
}
|
|
5825
6012
|
ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5826
6013
|
ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
|
|
@@ -6289,6 +6476,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6289
6476
|
args: [{ providedIn: 'root' }]
|
|
6290
6477
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
6291
6478
|
|
|
6479
|
+
// *********************************
|
|
6480
|
+
// Code generated by sdkgen
|
|
6481
|
+
// DO NOT EDIT!.
|
|
6482
|
+
//
|
|
6483
|
+
// API Service.
|
|
6484
|
+
// *********************************
|
|
6485
|
+
class WordpressPluginApiService {
|
|
6486
|
+
constructor(http, hostService) {
|
|
6487
|
+
this.http = http;
|
|
6488
|
+
this.hostService = hostService;
|
|
6489
|
+
this._host = this.hostService.hostWithScheme;
|
|
6490
|
+
}
|
|
6491
|
+
apiOptions() {
|
|
6492
|
+
return {
|
|
6493
|
+
headers: new HttpHeaders({
|
|
6494
|
+
'Content-Type': 'application/json'
|
|
6495
|
+
}),
|
|
6496
|
+
withCredentials: true
|
|
6497
|
+
};
|
|
6498
|
+
}
|
|
6499
|
+
status(r) {
|
|
6500
|
+
const request = (r.toApiJson) ? r : new StatusRequest(r);
|
|
6501
|
+
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/Status", request.toApiJson(), this.apiOptions())
|
|
6502
|
+
.pipe(map(resp => StatusResponse.fromProto(resp)));
|
|
6503
|
+
}
|
|
6504
|
+
}
|
|
6505
|
+
WordpressPluginApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6506
|
+
WordpressPluginApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, providedIn: 'root' });
|
|
6507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, decorators: [{
|
|
6508
|
+
type: Injectable,
|
|
6509
|
+
args: [{ providedIn: 'root' }]
|
|
6510
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
6511
|
+
|
|
6292
6512
|
// *********************************
|
|
6293
6513
|
// Code generated by sdkgen
|
|
6294
6514
|
// DO NOT EDIT!.
|
|
@@ -6606,6 +6826,9 @@ class ContentGenerationService {
|
|
|
6606
6826
|
generatePosts(r) {
|
|
6607
6827
|
return this.contentGenerationApiService.generatePosts(r);
|
|
6608
6828
|
}
|
|
6829
|
+
generate(r) {
|
|
6830
|
+
return this.contentGenerationApiService.generate(r);
|
|
6831
|
+
}
|
|
6609
6832
|
}
|
|
6610
6833
|
ContentGenerationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, deps: [{ token: ContentGenerationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6611
6834
|
ContentGenerationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, providedIn: 'root' });
|
|
@@ -6744,9 +6967,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6744
6967
|
args: [{ providedIn: 'root' }]
|
|
6745
6968
|
}], ctorParameters: function () { return [{ type: BlogConnectionApiService }]; } });
|
|
6746
6969
|
|
|
6970
|
+
class WordpressPluginService {
|
|
6971
|
+
constructor(wordpressPluginApiService) {
|
|
6972
|
+
this.wordpressPluginApiService = wordpressPluginApiService;
|
|
6973
|
+
}
|
|
6974
|
+
status(statusRequestInterface) {
|
|
6975
|
+
return this.wordpressPluginApiService.status(statusRequestInterface);
|
|
6976
|
+
}
|
|
6977
|
+
}
|
|
6978
|
+
WordpressPluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, deps: [{ token: WordpressPluginApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6979
|
+
WordpressPluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, providedIn: 'root' });
|
|
6980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, decorators: [{
|
|
6981
|
+
type: Injectable,
|
|
6982
|
+
args: [{ providedIn: 'root' }]
|
|
6983
|
+
}], ctorParameters: function () { return [{ type: WordpressPluginApiService }]; } });
|
|
6984
|
+
|
|
6747
6985
|
/**
|
|
6748
6986
|
* Generated bundle index. Do not edit.
|
|
6749
6987
|
*/
|
|
6750
6988
|
|
|
6751
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, BlogConnection, BlogConnectionService, CallToAction, CallToActionCallToActionType, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
6989
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, BlogConnection, BlogConnectionService, CallToAction, CallToActionCallToActionType, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
6752
6990
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|