@vendasta/social-posts 5.48.0 → 5.49.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/enums/drafts-api.enum.mjs +7 -1
- package/esm2020/lib/_internal/enums/image-generation.enum.mjs +42 -0
- package/esm2020/lib/_internal/enums/index.mjs +5 -4
- package/esm2020/lib/_internal/image-generation.api.service.mjs +40 -0
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/drafts-api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/image-generation.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/drafts-api.mjs +7 -1
- package/esm2020/lib/_internal/objects/image-generation.mjs +155 -0
- package/esm2020/lib/_internal/objects/index.mjs +4 -3
- package/fesm2015/vendasta-social-posts.mjs +316 -76
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +316 -76
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/enums/drafts-api.enum.d.ts +5 -0
- package/lib/_internal/enums/image-generation.enum.d.ts +30 -0
- package/lib/_internal/enums/index.d.ts +4 -3
- package/lib/_internal/image-generation.api.service.d.ts +13 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/drafts-api.interface.d.ts +1 -0
- package/lib/_internal/interfaces/image-generation.interface.d.ts +28 -0
- package/lib/_internal/interfaces/index.d.ts +3 -2
- package/lib/_internal/objects/drafts-api.d.ts +1 -0
- package/lib/_internal/objects/image-generation.d.ts +42 -0
- package/lib/_internal/objects/index.d.ts +3 -2
- 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$q(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$p(enumRef, value) {
|
|
35
35
|
if (typeof value === 'number') {
|
|
36
36
|
return value;
|
|
37
37
|
}
|
|
@@ -388,6 +388,12 @@ var DraftYoutubeCustomizationPrivacyStatus;
|
|
|
388
388
|
//
|
|
389
389
|
// Enums.
|
|
390
390
|
// *********************************
|
|
391
|
+
var FilterBy;
|
|
392
|
+
(function (FilterBy) {
|
|
393
|
+
FilterBy[FilterBy["FILTER_BY_INVALID"] = 0] = "FILTER_BY_INVALID";
|
|
394
|
+
FilterBy[FilterBy["FILTER_BY_UPDATED"] = 1] = "FILTER_BY_UPDATED";
|
|
395
|
+
FilterBy[FilterBy["FILTER_BY_SCHEDULED"] = 2] = "FILTER_BY_SCHEDULED";
|
|
396
|
+
})(FilterBy || (FilterBy = {}));
|
|
391
397
|
var VisibilityType;
|
|
392
398
|
(function (VisibilityType) {
|
|
393
399
|
VisibilityType[VisibilityType["VISIBILITY_TYPE_INVALID"] = 0] = "VISIBILITY_TYPE_INVALID";
|
|
@@ -447,6 +453,48 @@ var SocialContentType;
|
|
|
447
453
|
SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_BLOG_ARTICLE"] = 2] = "SOCIAL_CONTENT_TYPE_BLOG_ARTICLE";
|
|
448
454
|
})(SocialContentType || (SocialContentType = {}));
|
|
449
455
|
|
|
456
|
+
// *********************************
|
|
457
|
+
// Code generated by sdkgen
|
|
458
|
+
// DO NOT EDIT!.
|
|
459
|
+
//
|
|
460
|
+
// Enums.
|
|
461
|
+
// *********************************
|
|
462
|
+
var ImageBackground;
|
|
463
|
+
(function (ImageBackground) {
|
|
464
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_UNSPECIFIED"] = 0] = "IMAGE_BACKGROUND_UNSPECIFIED";
|
|
465
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_TRANSPARENT"] = 1] = "IMAGE_BACKGROUND_TRANSPARENT";
|
|
466
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_OPAQUE"] = 2] = "IMAGE_BACKGROUND_OPAQUE";
|
|
467
|
+
ImageBackground[ImageBackground["IMAGE_BACKGROUND_AUTO"] = 3] = "IMAGE_BACKGROUND_AUTO";
|
|
468
|
+
})(ImageBackground || (ImageBackground = {}));
|
|
469
|
+
var ImageModel;
|
|
470
|
+
(function (ImageModel) {
|
|
471
|
+
ImageModel[ImageModel["IMAGE_MODEL_UNSPECIFIED"] = 0] = "IMAGE_MODEL_UNSPECIFIED";
|
|
472
|
+
ImageModel[ImageModel["DALL_E_2"] = 1] = "DALL_E_2";
|
|
473
|
+
ImageModel[ImageModel["DALL_E_3"] = 2] = "DALL_E_3";
|
|
474
|
+
ImageModel[ImageModel["GPT_IMAGE_1"] = 3] = "GPT_IMAGE_1";
|
|
475
|
+
ImageModel[ImageModel["GPT_IMAGE_1_5"] = 4] = "GPT_IMAGE_1_5";
|
|
476
|
+
})(ImageModel || (ImageModel = {}));
|
|
477
|
+
var ImageOutputFormat;
|
|
478
|
+
(function (ImageOutputFormat) {
|
|
479
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_UNSPECIFIED"] = 0] = "IMAGE_OUTPUT_FORMAT_UNSPECIFIED";
|
|
480
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_PNG"] = 1] = "IMAGE_OUTPUT_FORMAT_PNG";
|
|
481
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_JPEG"] = 2] = "IMAGE_OUTPUT_FORMAT_JPEG";
|
|
482
|
+
ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_WEBP"] = 3] = "IMAGE_OUTPUT_FORMAT_WEBP";
|
|
483
|
+
})(ImageOutputFormat || (ImageOutputFormat = {}));
|
|
484
|
+
var ImageQuality;
|
|
485
|
+
(function (ImageQuality) {
|
|
486
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_UNSPECIFIED"] = 0] = "IMAGE_QUALITY_UNSPECIFIED";
|
|
487
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_LOW"] = 1] = "IMAGE_QUALITY_LOW";
|
|
488
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_MEDIUM"] = 2] = "IMAGE_QUALITY_MEDIUM";
|
|
489
|
+
ImageQuality[ImageQuality["IMAGE_QUALITY_STANDARD"] = 3] = "IMAGE_QUALITY_STANDARD";
|
|
490
|
+
})(ImageQuality || (ImageQuality = {}));
|
|
491
|
+
var ImageStyle;
|
|
492
|
+
(function (ImageStyle) {
|
|
493
|
+
ImageStyle[ImageStyle["IMAGE_STYLE_UNSPECIFIED"] = 0] = "IMAGE_STYLE_UNSPECIFIED";
|
|
494
|
+
ImageStyle[ImageStyle["IMAGE_STYLE_VIVID"] = 1] = "IMAGE_STYLE_VIVID";
|
|
495
|
+
ImageStyle[ImageStyle["IMAGE_STYLE_NATURAL"] = 2] = "IMAGE_STYLE_NATURAL";
|
|
496
|
+
})(ImageStyle || (ImageStyle = {}));
|
|
497
|
+
|
|
450
498
|
// *********************************
|
|
451
499
|
// Code generated by sdkgen
|
|
452
500
|
// DO NOT EDIT!.
|
|
@@ -454,7 +502,7 @@ var SocialContentType;
|
|
|
454
502
|
// Enums Index.
|
|
455
503
|
// *********************************
|
|
456
504
|
|
|
457
|
-
function enumStringToValue$
|
|
505
|
+
function enumStringToValue$o(enumRef, value) {
|
|
458
506
|
if (typeof value === 'number') {
|
|
459
507
|
return value;
|
|
460
508
|
}
|
|
@@ -526,7 +574,7 @@ class CallToAction {
|
|
|
526
574
|
let m = new CallToAction();
|
|
527
575
|
m = Object.assign(m, proto);
|
|
528
576
|
if (proto.actionType) {
|
|
529
|
-
m.actionType = enumStringToValue$
|
|
577
|
+
m.actionType = enumStringToValue$o(CallToActionCallToActionType, proto.actionType);
|
|
530
578
|
}
|
|
531
579
|
return m;
|
|
532
580
|
}
|
|
@@ -764,7 +812,7 @@ class PostTemplate {
|
|
|
764
812
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
765
813
|
}
|
|
766
814
|
if (proto.postType) {
|
|
767
|
-
m.postType = enumStringToValue$
|
|
815
|
+
m.postType = enumStringToValue$o(PostType, proto.postType);
|
|
768
816
|
}
|
|
769
817
|
if (proto.youtubeCustomization) {
|
|
770
818
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -847,7 +895,7 @@ class SSIDPostType {
|
|
|
847
895
|
let m = new SSIDPostType();
|
|
848
896
|
m = Object.assign(m, proto);
|
|
849
897
|
if (proto.postType) {
|
|
850
|
-
m.postType = enumStringToValue$
|
|
898
|
+
m.postType = enumStringToValue$o(PostType, proto.postType);
|
|
851
899
|
}
|
|
852
900
|
return m;
|
|
853
901
|
}
|
|
@@ -931,10 +979,10 @@ class SocialPost {
|
|
|
931
979
|
m.posted = new Date(proto.posted);
|
|
932
980
|
}
|
|
933
981
|
if (proto.deletionStatus) {
|
|
934
|
-
m.deletionStatus = enumStringToValue$
|
|
982
|
+
m.deletionStatus = enumStringToValue$o(SocialPostDeletionStatus, proto.deletionStatus);
|
|
935
983
|
}
|
|
936
984
|
if (proto.service) {
|
|
937
|
-
m.service = enumStringToValue$
|
|
985
|
+
m.service = enumStringToValue$o(SocialPostService, proto.service);
|
|
938
986
|
}
|
|
939
987
|
if (proto.created) {
|
|
940
988
|
m.created = new Date(proto.created);
|
|
@@ -943,7 +991,7 @@ class SocialPost {
|
|
|
943
991
|
m.scheduled = new Date(proto.scheduled);
|
|
944
992
|
}
|
|
945
993
|
if (proto.status) {
|
|
946
|
-
m.status = enumStringToValue$
|
|
994
|
+
m.status = enumStringToValue$o(PostingStatus, proto.status);
|
|
947
995
|
}
|
|
948
996
|
if (proto.event) {
|
|
949
997
|
m.event = Event.fromProto(proto.event);
|
|
@@ -955,7 +1003,7 @@ class SocialPost {
|
|
|
955
1003
|
m.error = Error.fromProto(proto.error);
|
|
956
1004
|
}
|
|
957
1005
|
if (proto.postType) {
|
|
958
|
-
m.postType = enumStringToValue$
|
|
1006
|
+
m.postType = enumStringToValue$o(PostType, proto.postType);
|
|
959
1007
|
}
|
|
960
1008
|
if (proto.mediaEntries) {
|
|
961
1009
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -1156,7 +1204,7 @@ class YoutubeCustomization {
|
|
|
1156
1204
|
let m = new YoutubeCustomization();
|
|
1157
1205
|
m = Object.assign(m, proto);
|
|
1158
1206
|
if (proto.privacyStatus) {
|
|
1159
|
-
m.privacyStatus = enumStringToValue$
|
|
1207
|
+
m.privacyStatus = enumStringToValue$o(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
1160
1208
|
}
|
|
1161
1209
|
return m;
|
|
1162
1210
|
}
|
|
@@ -1178,7 +1226,7 @@ class YoutubeCustomization {
|
|
|
1178
1226
|
}
|
|
1179
1227
|
}
|
|
1180
1228
|
|
|
1181
|
-
function enumStringToValue$
|
|
1229
|
+
function enumStringToValue$n(enumRef, value) {
|
|
1182
1230
|
if (typeof value === 'number') {
|
|
1183
1231
|
return value;
|
|
1184
1232
|
}
|
|
@@ -1319,7 +1367,7 @@ class MultilocationPost {
|
|
|
1319
1367
|
m.postCategory = MLPostCategory.fromProto(proto.postCategory);
|
|
1320
1368
|
}
|
|
1321
1369
|
if (proto.postState) {
|
|
1322
|
-
m.postState = enumStringToValue$
|
|
1370
|
+
m.postState = enumStringToValue$n(MLPostState, proto.postState);
|
|
1323
1371
|
}
|
|
1324
1372
|
if (proto.postCustomizationByLocation) {
|
|
1325
1373
|
m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
|
|
@@ -1503,7 +1551,7 @@ class PostCustomizationByLocation {
|
|
|
1503
1551
|
let m = new PostCustomizationByLocation();
|
|
1504
1552
|
m = Object.assign(m, proto);
|
|
1505
1553
|
if (proto.customizationStatus) {
|
|
1506
|
-
m.customizationStatus = enumStringToValue$
|
|
1554
|
+
m.customizationStatus = enumStringToValue$n(CustomizationStatus, proto.customizationStatus);
|
|
1507
1555
|
}
|
|
1508
1556
|
return m;
|
|
1509
1557
|
}
|
|
@@ -1557,7 +1605,7 @@ class PostEvent {
|
|
|
1557
1605
|
}
|
|
1558
1606
|
}
|
|
1559
1607
|
|
|
1560
|
-
function enumStringToValue$
|
|
1608
|
+
function enumStringToValue$m(enumRef, value) {
|
|
1561
1609
|
if (typeof value === 'number') {
|
|
1562
1610
|
return value;
|
|
1563
1611
|
}
|
|
@@ -1611,7 +1659,7 @@ class PexelsImage {
|
|
|
1611
1659
|
}
|
|
1612
1660
|
}
|
|
1613
1661
|
|
|
1614
|
-
function enumStringToValue$
|
|
1662
|
+
function enumStringToValue$l(enumRef, value) {
|
|
1615
1663
|
if (typeof value === 'number') {
|
|
1616
1664
|
return value;
|
|
1617
1665
|
}
|
|
@@ -1752,7 +1800,7 @@ class PixabayImage {
|
|
|
1752
1800
|
}
|
|
1753
1801
|
}
|
|
1754
1802
|
|
|
1755
|
-
function enumStringToValue$
|
|
1803
|
+
function enumStringToValue$k(enumRef, value) {
|
|
1756
1804
|
if (typeof value === 'number') {
|
|
1757
1805
|
return value;
|
|
1758
1806
|
}
|
|
@@ -2091,7 +2139,7 @@ class YoutubePostStats {
|
|
|
2091
2139
|
}
|
|
2092
2140
|
}
|
|
2093
2141
|
|
|
2094
|
-
function enumStringToValue$
|
|
2142
|
+
function enumStringToValue$j(enumRef, value) {
|
|
2095
2143
|
if (typeof value === 'number') {
|
|
2096
2144
|
return value;
|
|
2097
2145
|
}
|
|
@@ -2197,7 +2245,7 @@ class TenorMediaObject {
|
|
|
2197
2245
|
}
|
|
2198
2246
|
}
|
|
2199
2247
|
|
|
2200
|
-
function enumStringToValue$
|
|
2248
|
+
function enumStringToValue$i(enumRef, value) {
|
|
2201
2249
|
if (typeof value === 'number') {
|
|
2202
2250
|
return value;
|
|
2203
2251
|
}
|
|
@@ -2246,7 +2294,7 @@ class BulkCreateMultilocationPostResponse {
|
|
|
2246
2294
|
let m = new BulkCreateMultilocationPostResponse();
|
|
2247
2295
|
m = Object.assign(m, proto);
|
|
2248
2296
|
if (proto.status) {
|
|
2249
|
-
m.status = enumStringToValue$
|
|
2297
|
+
m.status = enumStringToValue$i(BulkPostStatus, proto.status);
|
|
2250
2298
|
}
|
|
2251
2299
|
if (proto.error) {
|
|
2252
2300
|
m.error = proto.error.map(MultilocationPostError.fromProto);
|
|
@@ -2405,7 +2453,7 @@ class CreatePostTemplateRequest {
|
|
|
2405
2453
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
2406
2454
|
}
|
|
2407
2455
|
if (proto.postType) {
|
|
2408
|
-
m.postType = enumStringToValue$
|
|
2456
|
+
m.postType = enumStringToValue$i(PostType, proto.postType);
|
|
2409
2457
|
}
|
|
2410
2458
|
if (proto.youtubeCustomization) {
|
|
2411
2459
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3810,7 +3858,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
3810
3858
|
let m = new RemoveFromMultilocationPostRequest();
|
|
3811
3859
|
m = Object.assign(m, proto);
|
|
3812
3860
|
if (proto.reason) {
|
|
3813
|
-
m.reason = enumStringToValue$
|
|
3861
|
+
m.reason = enumStringToValue$i(RemoveReason, proto.reason);
|
|
3814
3862
|
}
|
|
3815
3863
|
if (proto.locations) {
|
|
3816
3864
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -4033,10 +4081,10 @@ class SuggestMessageRequest {
|
|
|
4033
4081
|
let m = new SuggestMessageRequest();
|
|
4034
4082
|
m = Object.assign(m, proto);
|
|
4035
4083
|
if (proto.length) {
|
|
4036
|
-
m.length = enumStringToValue$
|
|
4084
|
+
m.length = enumStringToValue$i(MessageLength, proto.length);
|
|
4037
4085
|
}
|
|
4038
4086
|
if (proto.type) {
|
|
4039
|
-
m.type = enumStringToValue$
|
|
4087
|
+
m.type = enumStringToValue$i(TemplateType, proto.type);
|
|
4040
4088
|
}
|
|
4041
4089
|
if (proto.metadata) {
|
|
4042
4090
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -4103,7 +4151,7 @@ class UpdatePostTemplateRequest {
|
|
|
4103
4151
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
4104
4152
|
}
|
|
4105
4153
|
if (proto.postType) {
|
|
4106
|
-
m.postType = enumStringToValue$
|
|
4154
|
+
m.postType = enumStringToValue$i(PostType, proto.postType);
|
|
4107
4155
|
}
|
|
4108
4156
|
if (proto.youtubeCustomization) {
|
|
4109
4157
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -4170,7 +4218,7 @@ class UpdatePostTemplateRequest {
|
|
|
4170
4218
|
}
|
|
4171
4219
|
}
|
|
4172
4220
|
|
|
4173
|
-
function enumStringToValue$
|
|
4221
|
+
function enumStringToValue$h(enumRef, value) {
|
|
4174
4222
|
if (typeof value === 'number') {
|
|
4175
4223
|
return value;
|
|
4176
4224
|
}
|
|
@@ -4367,7 +4415,7 @@ class SortBy {
|
|
|
4367
4415
|
let m = new SortBy();
|
|
4368
4416
|
m = Object.assign(m, proto);
|
|
4369
4417
|
if (proto.sortDirection) {
|
|
4370
|
-
m.sortDirection = enumStringToValue$
|
|
4418
|
+
m.sortDirection = enumStringToValue$h(SortBySortDirection, proto.sortDirection);
|
|
4371
4419
|
}
|
|
4372
4420
|
return m;
|
|
4373
4421
|
}
|
|
@@ -4389,7 +4437,7 @@ class SortBy {
|
|
|
4389
4437
|
}
|
|
4390
4438
|
}
|
|
4391
4439
|
|
|
4392
|
-
function enumStringToValue$
|
|
4440
|
+
function enumStringToValue$g(enumRef, value) {
|
|
4393
4441
|
if (typeof value === 'number') {
|
|
4394
4442
|
return value;
|
|
4395
4443
|
}
|
|
@@ -4403,7 +4451,7 @@ class ListStockImagesRequest {
|
|
|
4403
4451
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
4404
4452
|
}
|
|
4405
4453
|
if (proto.imageSource) {
|
|
4406
|
-
m.imageSource = enumStringToValue$
|
|
4454
|
+
m.imageSource = enumStringToValue$g(ImageSource, proto.imageSource);
|
|
4407
4455
|
}
|
|
4408
4456
|
return m;
|
|
4409
4457
|
}
|
|
@@ -4476,7 +4524,7 @@ class Namespace {
|
|
|
4476
4524
|
let m = new Namespace();
|
|
4477
4525
|
m = Object.assign(m, proto);
|
|
4478
4526
|
if (proto.namespaceType) {
|
|
4479
|
-
m.namespaceType = enumStringToValue$
|
|
4527
|
+
m.namespaceType = enumStringToValue$g(NamespaceType, proto.namespaceType);
|
|
4480
4528
|
}
|
|
4481
4529
|
return m;
|
|
4482
4530
|
}
|
|
@@ -4502,7 +4550,7 @@ class StockImage {
|
|
|
4502
4550
|
let m = new StockImage();
|
|
4503
4551
|
m = Object.assign(m, proto);
|
|
4504
4552
|
if (proto.source) {
|
|
4505
|
-
m.source = enumStringToValue$
|
|
4553
|
+
m.source = enumStringToValue$g(ImageSource, proto.source);
|
|
4506
4554
|
}
|
|
4507
4555
|
return m;
|
|
4508
4556
|
}
|
|
@@ -4556,7 +4604,7 @@ class StockImageError {
|
|
|
4556
4604
|
}
|
|
4557
4605
|
}
|
|
4558
4606
|
|
|
4559
|
-
function enumStringToValue$
|
|
4607
|
+
function enumStringToValue$f(enumRef, value) {
|
|
4560
4608
|
if (typeof value === 'number') {
|
|
4561
4609
|
return value;
|
|
4562
4610
|
}
|
|
@@ -4705,7 +4753,7 @@ class GetBlogWebsiteDetailsResponse {
|
|
|
4705
4753
|
}
|
|
4706
4754
|
}
|
|
4707
4755
|
|
|
4708
|
-
function enumStringToValue$
|
|
4756
|
+
function enumStringToValue$e(enumRef, value) {
|
|
4709
4757
|
if (typeof value === 'number') {
|
|
4710
4758
|
return value;
|
|
4711
4759
|
}
|
|
@@ -4755,7 +4803,7 @@ class MCPOptions {
|
|
|
4755
4803
|
}
|
|
4756
4804
|
}
|
|
4757
4805
|
|
|
4758
|
-
function enumStringToValue$
|
|
4806
|
+
function enumStringToValue$d(enumRef, value) {
|
|
4759
4807
|
if (typeof value === 'number') {
|
|
4760
4808
|
return value;
|
|
4761
4809
|
}
|
|
@@ -4990,7 +5038,7 @@ class SocialPostV2 {
|
|
|
4990
5038
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
4991
5039
|
}
|
|
4992
5040
|
if (proto.postType) {
|
|
4993
|
-
m.postType = enumStringToValue$
|
|
5041
|
+
m.postType = enumStringToValue$d(PostTypeV2, proto.postType);
|
|
4994
5042
|
}
|
|
4995
5043
|
if (proto.metadata) {
|
|
4996
5044
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -5099,7 +5147,7 @@ class YoutubeCustomizationV2 {
|
|
|
5099
5147
|
let m = new YoutubeCustomizationV2();
|
|
5100
5148
|
m = Object.assign(m, proto);
|
|
5101
5149
|
if (proto.privacyStatus) {
|
|
5102
|
-
m.privacyStatus = enumStringToValue$
|
|
5150
|
+
m.privacyStatus = enumStringToValue$d(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
5103
5151
|
}
|
|
5104
5152
|
return m;
|
|
5105
5153
|
}
|
|
@@ -5118,7 +5166,7 @@ class YoutubeCustomizationV2 {
|
|
|
5118
5166
|
}
|
|
5119
5167
|
}
|
|
5120
5168
|
|
|
5121
|
-
function enumStringToValue$
|
|
5169
|
+
function enumStringToValue$c(enumRef, value) {
|
|
5122
5170
|
if (typeof value === 'number') {
|
|
5123
5171
|
return value;
|
|
5124
5172
|
}
|
|
@@ -5129,7 +5177,7 @@ class Media {
|
|
|
5129
5177
|
let m = new Media();
|
|
5130
5178
|
m = Object.assign(m, proto);
|
|
5131
5179
|
if (proto.mediaType) {
|
|
5132
|
-
m.mediaType = enumStringToValue$
|
|
5180
|
+
m.mediaType = enumStringToValue$c(MediaType, proto.mediaType);
|
|
5133
5181
|
}
|
|
5134
5182
|
return m;
|
|
5135
5183
|
}
|
|
@@ -5151,7 +5199,7 @@ class Media {
|
|
|
5151
5199
|
}
|
|
5152
5200
|
}
|
|
5153
5201
|
|
|
5154
|
-
function enumStringToValue$
|
|
5202
|
+
function enumStringToValue$b(enumRef, value) {
|
|
5155
5203
|
if (typeof value === 'number') {
|
|
5156
5204
|
return value;
|
|
5157
5205
|
}
|
|
@@ -5686,7 +5734,7 @@ class UserLink {
|
|
|
5686
5734
|
}
|
|
5687
5735
|
}
|
|
5688
5736
|
|
|
5689
|
-
function enumStringToValue$
|
|
5737
|
+
function enumStringToValue$a(enumRef, value) {
|
|
5690
5738
|
if (typeof value === 'number') {
|
|
5691
5739
|
return value;
|
|
5692
5740
|
}
|
|
@@ -5697,7 +5745,7 @@ class ProvisionRequest {
|
|
|
5697
5745
|
let m = new ProvisionRequest();
|
|
5698
5746
|
m = Object.assign(m, proto);
|
|
5699
5747
|
if (proto.action) {
|
|
5700
|
-
m.action = enumStringToValue$
|
|
5748
|
+
m.action = enumStringToValue$a(ProvisionAction, proto.action);
|
|
5701
5749
|
}
|
|
5702
5750
|
return m;
|
|
5703
5751
|
}
|
|
@@ -5728,7 +5776,7 @@ class ProvisionRequest {
|
|
|
5728
5776
|
}
|
|
5729
5777
|
}
|
|
5730
5778
|
|
|
5731
|
-
function enumStringToValue$
|
|
5779
|
+
function enumStringToValue$9(enumRef, value) {
|
|
5732
5780
|
if (typeof value === 'number') {
|
|
5733
5781
|
return value;
|
|
5734
5782
|
}
|
|
@@ -5777,7 +5825,7 @@ class BlogPostCampaign {
|
|
|
5777
5825
|
let m = new BlogPostCampaign();
|
|
5778
5826
|
m = Object.assign(m, proto);
|
|
5779
5827
|
if (proto.blogPostType) {
|
|
5780
|
-
m.blogPostType = enumStringToValue$
|
|
5828
|
+
m.blogPostType = enumStringToValue$9(PostCategory, proto.blogPostType);
|
|
5781
5829
|
}
|
|
5782
5830
|
return m;
|
|
5783
5831
|
}
|
|
@@ -6059,10 +6107,10 @@ class GenerateAiRequest {
|
|
|
6059
6107
|
let m = new GenerateAiRequest();
|
|
6060
6108
|
m = Object.assign(m, proto);
|
|
6061
6109
|
if (proto.length) {
|
|
6062
|
-
m.length = enumStringToValue$
|
|
6110
|
+
m.length = enumStringToValue$9(ContentLength, proto.length);
|
|
6063
6111
|
}
|
|
6064
6112
|
if (proto.generateType) {
|
|
6065
|
-
m.generateType = enumStringToValue$
|
|
6113
|
+
m.generateType = enumStringToValue$9(GenerateType, proto.generateType);
|
|
6066
6114
|
}
|
|
6067
6115
|
if (proto.metadata) {
|
|
6068
6116
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -6135,7 +6183,7 @@ class GenerateBlogPostCampaignRequest {
|
|
|
6135
6183
|
let m = new GenerateBlogPostCampaignRequest();
|
|
6136
6184
|
m = Object.assign(m, proto);
|
|
6137
6185
|
if (proto.networkType) {
|
|
6138
|
-
m.networkType = proto.networkType.map((v) => enumStringToValue$
|
|
6186
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
|
|
6139
6187
|
}
|
|
6140
6188
|
if (proto.blogCampaign) {
|
|
6141
6189
|
m.blogCampaign = BlogPostCampaign.fromProto(proto.blogCampaign);
|
|
@@ -6228,7 +6276,7 @@ class GeneratePostCampaignRequest {
|
|
|
6228
6276
|
let m = new GeneratePostCampaignRequest();
|
|
6229
6277
|
m = Object.assign(m, proto);
|
|
6230
6278
|
if (proto.networkType) {
|
|
6231
|
-
m.networkType = proto.networkType.map((v) => enumStringToValue$
|
|
6279
|
+
m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
|
|
6232
6280
|
}
|
|
6233
6281
|
if (proto.postGeneration) {
|
|
6234
6282
|
m.postGeneration = PostsGeneration.fromProto(proto.postGeneration);
|
|
@@ -6569,7 +6617,7 @@ class KeywordGeneration {
|
|
|
6569
6617
|
let m = new KeywordGeneration();
|
|
6570
6618
|
m = Object.assign(m, proto);
|
|
6571
6619
|
if (proto.postType) {
|
|
6572
|
-
m.postType = enumStringToValue$
|
|
6620
|
+
m.postType = enumStringToValue$9(PostCategory, proto.postType);
|
|
6573
6621
|
}
|
|
6574
6622
|
return m;
|
|
6575
6623
|
}
|
|
@@ -6934,7 +6982,7 @@ class PostContent {
|
|
|
6934
6982
|
let m = new PostContent();
|
|
6935
6983
|
m = Object.assign(m, proto);
|
|
6936
6984
|
if (proto.socialNetwork) {
|
|
6937
|
-
m.socialNetwork = enumStringToValue$
|
|
6985
|
+
m.socialNetwork = enumStringToValue$9(Network, proto.socialNetwork);
|
|
6938
6986
|
}
|
|
6939
6987
|
return m;
|
|
6940
6988
|
}
|
|
@@ -6960,10 +7008,10 @@ class PostsGeneration {
|
|
|
6960
7008
|
let m = new PostsGeneration();
|
|
6961
7009
|
m = Object.assign(m, proto);
|
|
6962
7010
|
if (proto.tone) {
|
|
6963
|
-
m.tone = enumStringToValue$
|
|
7011
|
+
m.tone = enumStringToValue$9(Tone, proto.tone);
|
|
6964
7012
|
}
|
|
6965
7013
|
if (proto.contentLength) {
|
|
6966
|
-
m.contentLength = enumStringToValue$
|
|
7014
|
+
m.contentLength = enumStringToValue$9(ContentLength, proto.contentLength);
|
|
6967
7015
|
}
|
|
6968
7016
|
return m;
|
|
6969
7017
|
}
|
|
@@ -7050,7 +7098,7 @@ class SocialPostOutput {
|
|
|
7050
7098
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
7051
7099
|
}
|
|
7052
7100
|
if (proto.status) {
|
|
7053
|
-
m.status = enumStringToValue$
|
|
7101
|
+
m.status = enumStringToValue$9(PostStatusV2, proto.status);
|
|
7054
7102
|
}
|
|
7055
7103
|
return m;
|
|
7056
7104
|
}
|
|
@@ -7359,7 +7407,7 @@ class UploadToStorageRequest {
|
|
|
7359
7407
|
let m = new UploadToStorageRequest();
|
|
7360
7408
|
m = Object.assign(m, proto);
|
|
7361
7409
|
if (proto.mediaType) {
|
|
7362
|
-
m.mediaType = enumStringToValue$
|
|
7410
|
+
m.mediaType = enumStringToValue$9(MediaType, proto.mediaType);
|
|
7363
7411
|
}
|
|
7364
7412
|
return m;
|
|
7365
7413
|
}
|
|
@@ -7427,7 +7475,7 @@ class UploadedMedia {
|
|
|
7427
7475
|
}
|
|
7428
7476
|
}
|
|
7429
7477
|
|
|
7430
|
-
function enumStringToValue$
|
|
7478
|
+
function enumStringToValue$8(enumRef, value) {
|
|
7431
7479
|
if (typeof value === 'number') {
|
|
7432
7480
|
return value;
|
|
7433
7481
|
}
|
|
@@ -7438,7 +7486,7 @@ class Action {
|
|
|
7438
7486
|
let m = new Action();
|
|
7439
7487
|
m = Object.assign(m, proto);
|
|
7440
7488
|
if (proto.actionType) {
|
|
7441
|
-
m.actionType = enumStringToValue$
|
|
7489
|
+
m.actionType = enumStringToValue$8(ActionType, proto.actionType);
|
|
7442
7490
|
}
|
|
7443
7491
|
return m;
|
|
7444
7492
|
}
|
|
@@ -7578,7 +7626,7 @@ class StartChatResponse {
|
|
|
7578
7626
|
}
|
|
7579
7627
|
}
|
|
7580
7628
|
|
|
7581
|
-
function enumStringToValue$
|
|
7629
|
+
function enumStringToValue$7(enumRef, value) {
|
|
7582
7630
|
if (typeof value === 'number') {
|
|
7583
7631
|
return value;
|
|
7584
7632
|
}
|
|
@@ -7589,7 +7637,7 @@ class ChatMessage {
|
|
|
7589
7637
|
let m = new ChatMessage();
|
|
7590
7638
|
m = Object.assign(m, proto);
|
|
7591
7639
|
if (proto.role) {
|
|
7592
|
-
m.role = enumStringToValue$
|
|
7640
|
+
m.role = enumStringToValue$7(Role, proto.role);
|
|
7593
7641
|
}
|
|
7594
7642
|
return m;
|
|
7595
7643
|
}
|
|
@@ -7669,7 +7717,7 @@ class SendMessageV2Response {
|
|
|
7669
7717
|
}
|
|
7670
7718
|
}
|
|
7671
7719
|
|
|
7672
|
-
function enumStringToValue$
|
|
7720
|
+
function enumStringToValue$6(enumRef, value) {
|
|
7673
7721
|
if (typeof value === 'number') {
|
|
7674
7722
|
return value;
|
|
7675
7723
|
}
|
|
@@ -7961,7 +8009,7 @@ class UpdateBlogConnectionRequest {
|
|
|
7961
8009
|
}
|
|
7962
8010
|
}
|
|
7963
8011
|
|
|
7964
|
-
function enumStringToValue$
|
|
8012
|
+
function enumStringToValue$5(enumRef, value) {
|
|
7965
8013
|
if (typeof value === 'number') {
|
|
7966
8014
|
return value;
|
|
7967
8015
|
}
|
|
@@ -8582,7 +8630,7 @@ class UpdateBlogPostRequest {
|
|
|
8582
8630
|
}
|
|
8583
8631
|
}
|
|
8584
8632
|
|
|
8585
|
-
function enumStringToValue$
|
|
8633
|
+
function enumStringToValue$4(enumRef, value) {
|
|
8586
8634
|
if (typeof value === 'number') {
|
|
8587
8635
|
return value;
|
|
8588
8636
|
}
|
|
@@ -8783,7 +8831,7 @@ class UpdateCampaignIdRequest {
|
|
|
8783
8831
|
let m = new UpdateCampaignIdRequest();
|
|
8784
8832
|
m = Object.assign(m, proto);
|
|
8785
8833
|
if (proto.type) {
|
|
8786
|
-
m.type = enumStringToValue$
|
|
8834
|
+
m.type = enumStringToValue$4(PostCategory, proto.type);
|
|
8787
8835
|
}
|
|
8788
8836
|
return m;
|
|
8789
8837
|
}
|
|
@@ -8840,7 +8888,7 @@ class UpdateCampaignRequest {
|
|
|
8840
8888
|
}
|
|
8841
8889
|
}
|
|
8842
8890
|
|
|
8843
|
-
function enumStringToValue$
|
|
8891
|
+
function enumStringToValue$3(enumRef, value) {
|
|
8844
8892
|
if (typeof value === 'number') {
|
|
8845
8893
|
return value;
|
|
8846
8894
|
}
|
|
@@ -8918,7 +8966,7 @@ class Draft {
|
|
|
8918
8966
|
m.media = proto.media.map(DraftMedia.fromProto);
|
|
8919
8967
|
}
|
|
8920
8968
|
if (proto.draftType) {
|
|
8921
|
-
m.draftType = enumStringToValue$
|
|
8969
|
+
m.draftType = enumStringToValue$3(DraftType, proto.draftType);
|
|
8922
8970
|
}
|
|
8923
8971
|
if (proto.metadata) {
|
|
8924
8972
|
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
@@ -9176,7 +9224,7 @@ class DraftYoutubeCustomization {
|
|
|
9176
9224
|
let m = new DraftYoutubeCustomization();
|
|
9177
9225
|
m = Object.assign(m, proto);
|
|
9178
9226
|
if (proto.privacyStatus) {
|
|
9179
|
-
m.privacyStatus = enumStringToValue$
|
|
9227
|
+
m.privacyStatus = enumStringToValue$3(DraftYoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
9180
9228
|
}
|
|
9181
9229
|
return m;
|
|
9182
9230
|
}
|
|
@@ -9263,7 +9311,7 @@ class SSIDDraftType {
|
|
|
9263
9311
|
let m = new SSIDDraftType();
|
|
9264
9312
|
m = Object.assign(m, proto);
|
|
9265
9313
|
if (proto.draftType) {
|
|
9266
|
-
m.draftType = enumStringToValue$
|
|
9314
|
+
m.draftType = enumStringToValue$3(DraftType, proto.draftType);
|
|
9267
9315
|
}
|
|
9268
9316
|
return m;
|
|
9269
9317
|
}
|
|
@@ -9285,7 +9333,7 @@ class SSIDDraftType {
|
|
|
9285
9333
|
}
|
|
9286
9334
|
}
|
|
9287
9335
|
|
|
9288
|
-
function enumStringToValue$
|
|
9336
|
+
function enumStringToValue$2(enumRef, value) {
|
|
9289
9337
|
if (typeof value === 'number') {
|
|
9290
9338
|
return value;
|
|
9291
9339
|
}
|
|
@@ -9305,7 +9353,7 @@ class CreateDraftRequest {
|
|
|
9305
9353
|
m.media = proto.media.map(DraftMedia.fromProto);
|
|
9306
9354
|
}
|
|
9307
9355
|
if (proto.draftType) {
|
|
9308
|
-
m.draftType = enumStringToValue$
|
|
9356
|
+
m.draftType = enumStringToValue$2(DraftType, proto.draftType);
|
|
9309
9357
|
}
|
|
9310
9358
|
if (proto.metadata) {
|
|
9311
9359
|
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
@@ -9608,7 +9656,10 @@ class ListDraftsRequest {
|
|
|
9608
9656
|
m.end = new Date(proto.end);
|
|
9609
9657
|
}
|
|
9610
9658
|
if (proto.visibilityType) {
|
|
9611
|
-
m.visibilityType = enumStringToValue$
|
|
9659
|
+
m.visibilityType = enumStringToValue$2(VisibilityType, proto.visibilityType);
|
|
9660
|
+
}
|
|
9661
|
+
if (proto.filterBy) {
|
|
9662
|
+
m.filterBy = enumStringToValue$2(FilterBy, proto.filterBy);
|
|
9612
9663
|
}
|
|
9613
9664
|
return m;
|
|
9614
9665
|
}
|
|
@@ -9644,6 +9695,9 @@ class ListDraftsRequest {
|
|
|
9644
9695
|
if (typeof this.visibilityType !== 'undefined') {
|
|
9645
9696
|
toReturn['visibilityType'] = this.visibilityType;
|
|
9646
9697
|
}
|
|
9698
|
+
if (typeof this.filterBy !== 'undefined') {
|
|
9699
|
+
toReturn['filterBy'] = this.filterBy;
|
|
9700
|
+
}
|
|
9647
9701
|
return toReturn;
|
|
9648
9702
|
}
|
|
9649
9703
|
}
|
|
@@ -9765,7 +9819,7 @@ class UpdateDraftRequest {
|
|
|
9765
9819
|
m.media = proto.media.map(DraftMedia.fromProto);
|
|
9766
9820
|
}
|
|
9767
9821
|
if (proto.draftType) {
|
|
9768
|
-
m.draftType = enumStringToValue$
|
|
9822
|
+
m.draftType = enumStringToValue$2(DraftType, proto.draftType);
|
|
9769
9823
|
}
|
|
9770
9824
|
if (proto.metadata) {
|
|
9771
9825
|
m.metadata = proto.metadata.map(DraftMetaData.fromProto);
|
|
@@ -9905,7 +9959,7 @@ class UpdateMultiMLDraftsRequest {
|
|
|
9905
9959
|
}
|
|
9906
9960
|
}
|
|
9907
9961
|
|
|
9908
|
-
function enumStringToValue(enumRef, value) {
|
|
9962
|
+
function enumStringToValue$1(enumRef, value) {
|
|
9909
9963
|
if (typeof value === 'number') {
|
|
9910
9964
|
return value;
|
|
9911
9965
|
}
|
|
@@ -10038,7 +10092,7 @@ class GMBCustomization {
|
|
|
10038
10092
|
m.eventEnd = new Date(proto.eventEnd);
|
|
10039
10093
|
}
|
|
10040
10094
|
if (proto.ctaType) {
|
|
10041
|
-
m.ctaType = enumStringToValue(CallToActionType, proto.ctaType);
|
|
10095
|
+
m.ctaType = enumStringToValue$1(CallToActionType, proto.ctaType);
|
|
10042
10096
|
}
|
|
10043
10097
|
return m;
|
|
10044
10098
|
}
|
|
@@ -10108,7 +10162,7 @@ class MediaItem {
|
|
|
10108
10162
|
let m = new MediaItem();
|
|
10109
10163
|
m = Object.assign(m, proto);
|
|
10110
10164
|
if (proto.mediaType) {
|
|
10111
|
-
m.mediaType = enumStringToValue(MediaType
|
|
10165
|
+
m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
|
|
10112
10166
|
}
|
|
10113
10167
|
return m;
|
|
10114
10168
|
}
|
|
@@ -10140,10 +10194,10 @@ class SocialContentItem {
|
|
|
10140
10194
|
let m = new SocialContentItem();
|
|
10141
10195
|
m = Object.assign(m, proto);
|
|
10142
10196
|
if (proto.type) {
|
|
10143
|
-
m.type = enumStringToValue(SocialContentType, proto.type);
|
|
10197
|
+
m.type = enumStringToValue$1(SocialContentType, proto.type);
|
|
10144
10198
|
}
|
|
10145
10199
|
if (proto.mode) {
|
|
10146
|
-
m.mode = enumStringToValue(PublishMode, proto.mode);
|
|
10200
|
+
m.mode = enumStringToValue$1(PublishMode, proto.mode);
|
|
10147
10201
|
}
|
|
10148
10202
|
if (proto.ssidTypes) {
|
|
10149
10203
|
m.ssidTypes = proto.ssidTypes.map(SsidPostType.fromProto);
|
|
@@ -10264,7 +10318,7 @@ class SsidPostType {
|
|
|
10264
10318
|
let m = new SsidPostType();
|
|
10265
10319
|
m = Object.assign(m, proto);
|
|
10266
10320
|
if (proto.mediaContentType) {
|
|
10267
|
-
m.mediaContentType = enumStringToValue(MediaContentType, proto.mediaContentType);
|
|
10321
|
+
m.mediaContentType = enumStringToValue$1(MediaContentType, proto.mediaContentType);
|
|
10268
10322
|
}
|
|
10269
10323
|
return m;
|
|
10270
10324
|
}
|
|
@@ -10286,6 +10340,159 @@ class SsidPostType {
|
|
|
10286
10340
|
}
|
|
10287
10341
|
}
|
|
10288
10342
|
|
|
10343
|
+
function enumStringToValue(enumRef, value) {
|
|
10344
|
+
if (typeof value === 'number') {
|
|
10345
|
+
return value;
|
|
10346
|
+
}
|
|
10347
|
+
return enumRef[value];
|
|
10348
|
+
}
|
|
10349
|
+
class CreateOrEditRequest {
|
|
10350
|
+
static fromProto(proto) {
|
|
10351
|
+
let m = new CreateOrEditRequest();
|
|
10352
|
+
m = Object.assign(m, proto);
|
|
10353
|
+
if (proto.namespace) {
|
|
10354
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
10355
|
+
}
|
|
10356
|
+
if (proto.imageInputs) {
|
|
10357
|
+
m.imageInputs = proto.imageInputs.map(ImageInputSource.fromProto);
|
|
10358
|
+
}
|
|
10359
|
+
if (proto.model) {
|
|
10360
|
+
m.model = enumStringToValue(ImageModel, proto.model);
|
|
10361
|
+
}
|
|
10362
|
+
if (proto.quality) {
|
|
10363
|
+
m.quality = enumStringToValue(ImageQuality, proto.quality);
|
|
10364
|
+
}
|
|
10365
|
+
if (proto.style) {
|
|
10366
|
+
m.style = enumStringToValue(ImageStyle, proto.style);
|
|
10367
|
+
}
|
|
10368
|
+
if (proto.background) {
|
|
10369
|
+
m.background = enumStringToValue(ImageBackground, proto.background);
|
|
10370
|
+
}
|
|
10371
|
+
if (proto.outputFormat) {
|
|
10372
|
+
m.outputFormat = enumStringToValue(ImageOutputFormat, proto.outputFormat);
|
|
10373
|
+
}
|
|
10374
|
+
return m;
|
|
10375
|
+
}
|
|
10376
|
+
constructor(kwargs) {
|
|
10377
|
+
if (!kwargs) {
|
|
10378
|
+
return;
|
|
10379
|
+
}
|
|
10380
|
+
Object.assign(this, kwargs);
|
|
10381
|
+
}
|
|
10382
|
+
toApiJson() {
|
|
10383
|
+
const toReturn = {};
|
|
10384
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
10385
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
10386
|
+
}
|
|
10387
|
+
if (typeof this.prompt !== 'undefined') {
|
|
10388
|
+
toReturn['prompt'] = this.prompt;
|
|
10389
|
+
}
|
|
10390
|
+
if (typeof this.imageInputs !== 'undefined' && this.imageInputs !== null) {
|
|
10391
|
+
toReturn['imageInputs'] = 'toApiJson' in this.imageInputs ? this.imageInputs.toApiJson() : this.imageInputs;
|
|
10392
|
+
}
|
|
10393
|
+
if (typeof this.model !== 'undefined') {
|
|
10394
|
+
toReturn['model'] = this.model;
|
|
10395
|
+
}
|
|
10396
|
+
if (typeof this.imageCount !== 'undefined') {
|
|
10397
|
+
toReturn['imageCount'] = this.imageCount;
|
|
10398
|
+
}
|
|
10399
|
+
if (typeof this.size !== 'undefined') {
|
|
10400
|
+
toReturn['size'] = this.size;
|
|
10401
|
+
}
|
|
10402
|
+
if (typeof this.quality !== 'undefined') {
|
|
10403
|
+
toReturn['quality'] = this.quality;
|
|
10404
|
+
}
|
|
10405
|
+
if (typeof this.responseFormat !== 'undefined') {
|
|
10406
|
+
toReturn['responseFormat'] = this.responseFormat;
|
|
10407
|
+
}
|
|
10408
|
+
if (typeof this.style !== 'undefined') {
|
|
10409
|
+
toReturn['style'] = this.style;
|
|
10410
|
+
}
|
|
10411
|
+
if (typeof this.background !== 'undefined') {
|
|
10412
|
+
toReturn['background'] = this.background;
|
|
10413
|
+
}
|
|
10414
|
+
if (typeof this.outputFormat !== 'undefined') {
|
|
10415
|
+
toReturn['outputFormat'] = this.outputFormat;
|
|
10416
|
+
}
|
|
10417
|
+
if (typeof this.moderation !== 'undefined') {
|
|
10418
|
+
toReturn['moderation'] = this.moderation;
|
|
10419
|
+
}
|
|
10420
|
+
return toReturn;
|
|
10421
|
+
}
|
|
10422
|
+
}
|
|
10423
|
+
class CreateOrEditResponse {
|
|
10424
|
+
static fromProto(proto) {
|
|
10425
|
+
let m = new CreateOrEditResponse();
|
|
10426
|
+
m = Object.assign(m, proto);
|
|
10427
|
+
if (proto.images) {
|
|
10428
|
+
m.images = proto.images.map(GeneratedImage.fromProto);
|
|
10429
|
+
}
|
|
10430
|
+
return m;
|
|
10431
|
+
}
|
|
10432
|
+
constructor(kwargs) {
|
|
10433
|
+
if (!kwargs) {
|
|
10434
|
+
return;
|
|
10435
|
+
}
|
|
10436
|
+
Object.assign(this, kwargs);
|
|
10437
|
+
}
|
|
10438
|
+
toApiJson() {
|
|
10439
|
+
const toReturn = {};
|
|
10440
|
+
if (typeof this.images !== 'undefined' && this.images !== null) {
|
|
10441
|
+
toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
|
|
10442
|
+
}
|
|
10443
|
+
return toReturn;
|
|
10444
|
+
}
|
|
10445
|
+
}
|
|
10446
|
+
class GeneratedImage {
|
|
10447
|
+
static fromProto(proto) {
|
|
10448
|
+
let m = new GeneratedImage();
|
|
10449
|
+
m = Object.assign(m, proto);
|
|
10450
|
+
return m;
|
|
10451
|
+
}
|
|
10452
|
+
constructor(kwargs) {
|
|
10453
|
+
if (!kwargs) {
|
|
10454
|
+
return;
|
|
10455
|
+
}
|
|
10456
|
+
Object.assign(this, kwargs);
|
|
10457
|
+
}
|
|
10458
|
+
toApiJson() {
|
|
10459
|
+
const toReturn = {};
|
|
10460
|
+
if (typeof this.url !== 'undefined') {
|
|
10461
|
+
toReturn['url'] = this.url;
|
|
10462
|
+
}
|
|
10463
|
+
if (typeof this.b64Json !== 'undefined') {
|
|
10464
|
+
toReturn['b64Json'] = this.b64Json;
|
|
10465
|
+
}
|
|
10466
|
+
if (typeof this.revisedPrompt !== 'undefined') {
|
|
10467
|
+
toReturn['revisedPrompt'] = this.revisedPrompt;
|
|
10468
|
+
}
|
|
10469
|
+
return toReturn;
|
|
10470
|
+
}
|
|
10471
|
+
}
|
|
10472
|
+
class ImageInputSource {
|
|
10473
|
+
static fromProto(proto) {
|
|
10474
|
+
let m = new ImageInputSource();
|
|
10475
|
+
m = Object.assign(m, proto);
|
|
10476
|
+
return m;
|
|
10477
|
+
}
|
|
10478
|
+
constructor(kwargs) {
|
|
10479
|
+
if (!kwargs) {
|
|
10480
|
+
return;
|
|
10481
|
+
}
|
|
10482
|
+
Object.assign(this, kwargs);
|
|
10483
|
+
}
|
|
10484
|
+
toApiJson() {
|
|
10485
|
+
const toReturn = {};
|
|
10486
|
+
if (typeof this.url !== 'undefined') {
|
|
10487
|
+
toReturn['url'] = this.url;
|
|
10488
|
+
}
|
|
10489
|
+
if (typeof this.data !== 'undefined') {
|
|
10490
|
+
toReturn['data'] = this.data;
|
|
10491
|
+
}
|
|
10492
|
+
return toReturn;
|
|
10493
|
+
}
|
|
10494
|
+
}
|
|
10495
|
+
|
|
10289
10496
|
// *********************************
|
|
10290
10497
|
// Code generated by sdkgen
|
|
10291
10498
|
// DO NOT EDIT!.
|
|
@@ -10991,6 +11198,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
10991
11198
|
args: [{ providedIn: 'root' }]
|
|
10992
11199
|
}] });
|
|
10993
11200
|
|
|
11201
|
+
// *********************************
|
|
11202
|
+
// Code generated by sdkgen
|
|
11203
|
+
// DO NOT EDIT!.
|
|
11204
|
+
//
|
|
11205
|
+
// API Service.
|
|
11206
|
+
// *********************************
|
|
11207
|
+
class ImageGenerationApiService {
|
|
11208
|
+
constructor() {
|
|
11209
|
+
this.hostService = inject(HostService);
|
|
11210
|
+
this.http = inject(HttpClient);
|
|
11211
|
+
this._host = this.hostService.hostWithScheme;
|
|
11212
|
+
}
|
|
11213
|
+
apiOptions() {
|
|
11214
|
+
return {
|
|
11215
|
+
headers: new HttpHeaders({
|
|
11216
|
+
'Content-Type': 'application/json'
|
|
11217
|
+
}),
|
|
11218
|
+
withCredentials: true
|
|
11219
|
+
};
|
|
11220
|
+
}
|
|
11221
|
+
createOrEdit(r) {
|
|
11222
|
+
const request = (r.toApiJson) ? r : new CreateOrEditRequest(r);
|
|
11223
|
+
return this.http.post(this._host + "/socialposts.v1.ImageGeneration/CreateOrEdit", request.toApiJson(), this.apiOptions())
|
|
11224
|
+
.pipe(map(resp => CreateOrEditResponse.fromProto(resp)));
|
|
11225
|
+
}
|
|
11226
|
+
}
|
|
11227
|
+
ImageGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11228
|
+
ImageGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, providedIn: 'root' });
|
|
11229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, decorators: [{
|
|
11230
|
+
type: Injectable,
|
|
11231
|
+
args: [{ providedIn: 'root' }]
|
|
11232
|
+
}] });
|
|
11233
|
+
|
|
10994
11234
|
// *********************************
|
|
10995
11235
|
// Code generated by sdkgen
|
|
10996
11236
|
// DO NOT EDIT!.
|
|
@@ -12246,5 +12486,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
12246
12486
|
* Generated bundle index. Do not edit.
|
|
12247
12487
|
*/
|
|
12248
12488
|
|
|
12249
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author
|
|
12489
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogAuthor, BlogCategory, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostOptions, BlogPostsService, BlogVideo, BlogWebsiteDetails, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, CallToActionType, Campaign, CampaignCustomization, CampaignService, Categories, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, ContentMetadata, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateContentRequest, CreateContentResponse, CreateDraftRequest, CreateDraftResponse, CreateImageRequest, CreateImageResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreateOrEditRequest, CreateOrEditResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteDraftRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftType, DraftYoutubeCustomization, DraftYoutubeCustomizationPrivacyStatus, DraftsService, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, Error, Event, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, FilterBy, GMBCustomization, GMBPostCustomization, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GeneratedImage, GetBlogConnectionRequest, GetBlogConnectionResponse, GetBlogWebsiteDetailsRequest, GetBlogWebsiteDetailsResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetDraftRequest, GetDraftResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBackground, ImageBlob, ImageCreated, ImageInputSource, ImageModel, ImageOutputFormat, ImageQuality, ImageResponse, ImageSource, ImageStyle, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, Link, LinkV2, MediaType$1 as LinkedInMediaType, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaContentType, MediaEntry, MediaItem, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MlDraftPost, MultiDeleteMLDraftPostsRequest, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Namespace, NamespaceType, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, ProvisionAction, ProvisionRequest, PublishMode, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDDraftType, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialContentItem, SocialContentResult, SocialContentType, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, SortBy, SortBySortDirection, Source, SsidPostType, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, StockImageError, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, VisibilityType, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats };
|
|
12250
12490
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|