@vendasta/social-posts 5.17.1 → 5.19.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.
@@ -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$a(enumRef, value) {
8
+ function enumStringToValue$b(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$9(enumRef, value) {
35
+ function enumStringToValue$a(enumRef, value) {
36
36
  if (typeof value === 'number') {
37
37
  return value;
38
38
  }
@@ -205,7 +205,7 @@ var MediaType;
205
205
  // Enums Index.
206
206
  // *********************************
207
207
 
208
- function enumStringToValue$8(enumRef, value) {
208
+ function enumStringToValue$9(enumRef, value) {
209
209
  if (typeof value === 'number') {
210
210
  return value;
211
211
  }
@@ -216,7 +216,7 @@ class CallToAction {
216
216
  let m = new CallToAction();
217
217
  m = Object.assign(m, proto);
218
218
  if (proto.actionType) {
219
- m.actionType = enumStringToValue$8(CallToActionCallToActionType, proto.actionType);
219
+ m.actionType = enumStringToValue$9(CallToActionCallToActionType, proto.actionType);
220
220
  }
221
221
  return m;
222
222
  }
@@ -370,7 +370,7 @@ class PostTemplate {
370
370
  m.metaData = proto.metaData.map(MetaData.fromProto);
371
371
  }
372
372
  if (proto.postType) {
373
- m.postType = enumStringToValue$8(PostType, proto.postType);
373
+ m.postType = enumStringToValue$9(PostType, proto.postType);
374
374
  }
375
375
  if (proto.youtubeCustomization) {
376
376
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -447,7 +447,7 @@ class SSIDPostType {
447
447
  let m = new SSIDPostType();
448
448
  m = Object.assign(m, proto);
449
449
  if (proto.postType) {
450
- m.postType = enumStringToValue$8(PostType, proto.postType);
450
+ m.postType = enumStringToValue$9(PostType, proto.postType);
451
451
  }
452
452
  return m;
453
453
  }
@@ -508,10 +508,10 @@ class SocialPost {
508
508
  m.posted = new Date(proto.posted);
509
509
  }
510
510
  if (proto.deletionStatus) {
511
- m.deletionStatus = enumStringToValue$8(SocialPostDeletionStatus, proto.deletionStatus);
511
+ m.deletionStatus = enumStringToValue$9(SocialPostDeletionStatus, proto.deletionStatus);
512
512
  }
513
513
  if (proto.service) {
514
- m.service = enumStringToValue$8(SocialPostService, proto.service);
514
+ m.service = enumStringToValue$9(SocialPostService, proto.service);
515
515
  }
516
516
  if (proto.created) {
517
517
  m.created = new Date(proto.created);
@@ -520,7 +520,7 @@ class SocialPost {
520
520
  m.scheduled = new Date(proto.scheduled);
521
521
  }
522
522
  if (proto.status) {
523
- m.status = enumStringToValue$8(PostingStatus, proto.status);
523
+ m.status = enumStringToValue$9(PostingStatus, proto.status);
524
524
  }
525
525
  if (proto.event) {
526
526
  m.event = Event.fromProto(proto.event);
@@ -532,7 +532,7 @@ class SocialPost {
532
532
  m.error = Error.fromProto(proto.error);
533
533
  }
534
534
  if (proto.postType) {
535
- m.postType = enumStringToValue$8(PostType, proto.postType);
535
+ m.postType = enumStringToValue$9(PostType, proto.postType);
536
536
  }
537
537
  if (proto.mediaEntries) {
538
538
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -683,7 +683,7 @@ class YoutubeCustomization {
683
683
  let m = new YoutubeCustomization();
684
684
  m = Object.assign(m, proto);
685
685
  if (proto.privacyStatus) {
686
- m.privacyStatus = enumStringToValue$8(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
686
+ m.privacyStatus = enumStringToValue$9(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
687
687
  }
688
688
  return m;
689
689
  }
@@ -705,7 +705,7 @@ class YoutubeCustomization {
705
705
  }
706
706
  }
707
707
 
708
- function enumStringToValue$7(enumRef, value) {
708
+ function enumStringToValue$8(enumRef, value) {
709
709
  if (typeof value === 'number') {
710
710
  return value;
711
711
  }
@@ -934,7 +934,7 @@ class PostEvent {
934
934
  }
935
935
  }
936
936
 
937
- function enumStringToValue$6(enumRef, value) {
937
+ function enumStringToValue$7(enumRef, value) {
938
938
  if (typeof value === 'number') {
939
939
  return value;
940
940
  }
@@ -1072,7 +1072,7 @@ class PixabayImage {
1072
1072
  }
1073
1073
  }
1074
1074
 
1075
- function enumStringToValue$5(enumRef, value) {
1075
+ function enumStringToValue$6(enumRef, value) {
1076
1076
  if (typeof value === 'number') {
1077
1077
  return value;
1078
1078
  }
@@ -1199,7 +1199,7 @@ class TwitterPostStats {
1199
1199
  }
1200
1200
  }
1201
1201
 
1202
- function enumStringToValue$4(enumRef, value) {
1202
+ function enumStringToValue$5(enumRef, value) {
1203
1203
  if (typeof value === 'number') {
1204
1204
  return value;
1205
1205
  }
@@ -1305,7 +1305,7 @@ class TenorMediaObject {
1305
1305
  }
1306
1306
  }
1307
1307
 
1308
- function enumStringToValue$3(enumRef, value) {
1308
+ function enumStringToValue$4(enumRef, value) {
1309
1309
  if (typeof value === 'number') {
1310
1310
  return value;
1311
1311
  }
@@ -1428,7 +1428,7 @@ class CreatePostTemplateRequest {
1428
1428
  m.metaData = proto.metaData.map(MetaData.fromProto);
1429
1429
  }
1430
1430
  if (proto.postType) {
1431
- m.postType = enumStringToValue$3(PostType, proto.postType);
1431
+ m.postType = enumStringToValue$4(PostType, proto.postType);
1432
1432
  }
1433
1433
  if (proto.youtubeCustomization) {
1434
1434
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -2655,7 +2655,7 @@ class RemoveFromMultilocationPostRequest {
2655
2655
  let m = new RemoveFromMultilocationPostRequest();
2656
2656
  m = Object.assign(m, proto);
2657
2657
  if (proto.reason) {
2658
- m.reason = enumStringToValue$3(RemoveReason, proto.reason);
2658
+ m.reason = enumStringToValue$4(RemoveReason, proto.reason);
2659
2659
  }
2660
2660
  if (proto.locations) {
2661
2661
  m.locations = proto.locations.map(Location.fromProto);
@@ -2878,10 +2878,10 @@ class SuggestMessageRequest {
2878
2878
  let m = new SuggestMessageRequest();
2879
2879
  m = Object.assign(m, proto);
2880
2880
  if (proto.length) {
2881
- m.length = enumStringToValue$3(MessageLength, proto.length);
2881
+ m.length = enumStringToValue$4(MessageLength, proto.length);
2882
2882
  }
2883
2883
  if (proto.type) {
2884
- m.type = enumStringToValue$3(TemplateType, proto.type);
2884
+ m.type = enumStringToValue$4(TemplateType, proto.type);
2885
2885
  }
2886
2886
  if (proto.metadata) {
2887
2887
  m.metadata = proto.metadata.map(MetaData.fromProto);
@@ -2948,7 +2948,7 @@ class UpdatePostTemplateRequest {
2948
2948
  m.metaData = proto.metaData.map(MetaData.fromProto);
2949
2949
  }
2950
2950
  if (proto.postType) {
2951
- m.postType = enumStringToValue$3(PostType, proto.postType);
2951
+ m.postType = enumStringToValue$4(PostType, proto.postType);
2952
2952
  }
2953
2953
  if (proto.youtubeCustomization) {
2954
2954
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3015,7 +3015,7 @@ class UpdatePostTemplateRequest {
3015
3015
  }
3016
3016
  }
3017
3017
 
3018
- function enumStringToValue$2(enumRef, value) {
3018
+ function enumStringToValue$3(enumRef, value) {
3019
3019
  if (typeof value === 'number') {
3020
3020
  return value;
3021
3021
  }
@@ -3250,7 +3250,7 @@ class SocialPostV2 {
3250
3250
  m.customization = PostCustomizationV2.fromProto(proto.customization);
3251
3251
  }
3252
3252
  if (proto.postType) {
3253
- m.postType = enumStringToValue$2(PostTypeV2, proto.postType);
3253
+ m.postType = enumStringToValue$3(PostTypeV2, proto.postType);
3254
3254
  }
3255
3255
  if (proto.metadata) {
3256
3256
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
@@ -3312,7 +3312,7 @@ class YoutubeCustomizationV2 {
3312
3312
  let m = new YoutubeCustomizationV2();
3313
3313
  m = Object.assign(m, proto);
3314
3314
  if (proto.privacyStatus) {
3315
- m.privacyStatus = enumStringToValue$2(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
3315
+ m.privacyStatus = enumStringToValue$3(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
3316
3316
  }
3317
3317
  return m;
3318
3318
  }
@@ -3331,7 +3331,7 @@ class YoutubeCustomizationV2 {
3331
3331
  }
3332
3332
  }
3333
3333
 
3334
- function enumStringToValue$1(enumRef, value) {
3334
+ function enumStringToValue$2(enumRef, value) {
3335
3335
  if (typeof value === 'number') {
3336
3336
  return value;
3337
3337
  }
@@ -3342,7 +3342,7 @@ class Media {
3342
3342
  let m = new Media();
3343
3343
  m = Object.assign(m, proto);
3344
3344
  if (proto.mediaType) {
3345
- m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
3345
+ m.mediaType = enumStringToValue$2(MediaType, proto.mediaType);
3346
3346
  }
3347
3347
  return m;
3348
3348
  }
@@ -3364,16 +3364,25 @@ class Media {
3364
3364
  }
3365
3365
  }
3366
3366
 
3367
- function enumStringToValue(enumRef, value) {
3367
+ function enumStringToValue$1(enumRef, value) {
3368
3368
  if (typeof value === 'number') {
3369
3369
  return value;
3370
3370
  }
3371
3371
  return enumRef[value];
3372
3372
  }
3373
- class AiInstructions {
3373
+ class Ancestry {
3374
3374
  static fromProto(proto) {
3375
- let m = new AiInstructions();
3375
+ let m = new Ancestry();
3376
3376
  m = Object.assign(m, proto);
3377
+ if (proto.type) {
3378
+ m.type = SubAncestry.fromProto(proto.type);
3379
+ }
3380
+ if (proto.category) {
3381
+ m.category = SubAncestry.fromProto(proto.category);
3382
+ }
3383
+ if (proto.subcategory) {
3384
+ m.subcategory = SubAncestry.fromProto(proto.subcategory);
3385
+ }
3377
3386
  return m;
3378
3387
  }
3379
3388
  constructor(kwargs) {
@@ -3384,19 +3393,22 @@ class AiInstructions {
3384
3393
  }
3385
3394
  toApiJson() {
3386
3395
  const toReturn = {};
3387
- if (typeof this.commonAiInstructions !== 'undefined') {
3388
- toReturn['commonAiInstructions'] = this.commonAiInstructions;
3396
+ if (typeof this.type !== 'undefined' && this.type !== null) {
3397
+ toReturn['type'] = 'toApiJson' in this.type ? this.type.toApiJson() : this.type;
3398
+ }
3399
+ if (typeof this.category !== 'undefined' && this.category !== null) {
3400
+ toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;
3401
+ }
3402
+ if (typeof this.subcategory !== 'undefined' && this.subcategory !== null) {
3403
+ toReturn['subcategory'] = 'toApiJson' in this.subcategory ? this.subcategory.toApiJson() : this.subcategory;
3389
3404
  }
3390
3405
  return toReturn;
3391
3406
  }
3392
3407
  }
3393
- class CreateCommonAiInstructionsRequest {
3408
+ class Collection {
3394
3409
  static fromProto(proto) {
3395
- let m = new CreateCommonAiInstructionsRequest();
3410
+ let m = new Collection();
3396
3411
  m = Object.assign(m, proto);
3397
- if (proto.aiInstructions) {
3398
- m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
3399
- }
3400
3412
  return m;
3401
3413
  }
3402
3414
  constructor(kwargs) {
@@ -3407,25 +3419,34 @@ class CreateCommonAiInstructionsRequest {
3407
3419
  }
3408
3420
  toApiJson() {
3409
3421
  const toReturn = {};
3410
- if (typeof this.businessId !== 'undefined') {
3411
- toReturn['businessId'] = this.businessId;
3422
+ if (typeof this.id !== 'undefined') {
3423
+ toReturn['id'] = this.id;
3412
3424
  }
3413
- if (typeof this.partnerId !== 'undefined') {
3414
- toReturn['partnerId'] = this.partnerId;
3425
+ if (typeof this.title !== 'undefined') {
3426
+ toReturn['title'] = this.title;
3415
3427
  }
3416
- if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
3417
- toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
3428
+ if (typeof this.publishedAt !== 'undefined') {
3429
+ toReturn['publishedAt'] = this.publishedAt;
3430
+ }
3431
+ if (typeof this.lastCollectedAt !== 'undefined') {
3432
+ toReturn['lastCollectedAt'] = this.lastCollectedAt;
3433
+ }
3434
+ if (typeof this.updatedAt !== 'undefined') {
3435
+ toReturn['updatedAt'] = this.updatedAt;
3436
+ }
3437
+ if (typeof this.coverPhoto !== 'undefined') {
3438
+ toReturn['coverPhoto'] = this.coverPhoto;
3439
+ }
3440
+ if (typeof this.user !== 'undefined') {
3441
+ toReturn['user'] = this.user;
3418
3442
  }
3419
3443
  return toReturn;
3420
3444
  }
3421
3445
  }
3422
- class CreateCommonAiInstructionsResponse {
3446
+ class Image {
3423
3447
  static fromProto(proto) {
3424
- let m = new CreateCommonAiInstructionsResponse();
3448
+ let m = new Image();
3425
3449
  m = Object.assign(m, proto);
3426
- if (proto.aiInstructions) {
3427
- m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
3428
- }
3429
3450
  return m;
3430
3451
  }
3431
3452
  constructor(kwargs) {
@@ -3436,19 +3457,22 @@ class CreateCommonAiInstructionsResponse {
3436
3457
  }
3437
3458
  toApiJson() {
3438
3459
  const toReturn = {};
3439
- if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
3440
- toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
3460
+ if (typeof this.small !== 'undefined') {
3461
+ toReturn['small'] = this.small;
3462
+ }
3463
+ if (typeof this.medium !== 'undefined') {
3464
+ toReturn['medium'] = this.medium;
3465
+ }
3466
+ if (typeof this.large !== 'undefined') {
3467
+ toReturn['large'] = this.large;
3441
3468
  }
3442
3469
  return toReturn;
3443
3470
  }
3444
3471
  }
3445
- class CreateImageRequest {
3472
+ class Links {
3446
3473
  static fromProto(proto) {
3447
- let m = new CreateImageRequest();
3474
+ let m = new Links();
3448
3475
  m = Object.assign(m, proto);
3449
- if (proto.metadata) {
3450
- m.metadata = proto.metadata.map(MetadataV2.fromProto);
3451
- }
3452
3476
  return m;
3453
3477
  }
3454
3478
  constructor(kwargs) {
@@ -3459,45 +3483,48 @@ class CreateImageRequest {
3459
3483
  }
3460
3484
  toApiJson() {
3461
3485
  const toReturn = {};
3462
- if (typeof this.businessId !== 'undefined') {
3463
- toReturn['businessId'] = this.businessId;
3464
- }
3465
- if (typeof this.prompt !== 'undefined') {
3466
- toReturn['prompt'] = this.prompt;
3467
- }
3468
- if (typeof this.imageAmount !== 'undefined') {
3469
- toReturn['imageAmount'] = this.imageAmount;
3470
- }
3471
- if (typeof this.size !== 'undefined') {
3472
- toReturn['size'] = this.size;
3473
- }
3474
- if (typeof this.responseFormat !== 'undefined') {
3475
- toReturn['responseFormat'] = this.responseFormat;
3486
+ if (typeof this.self !== 'undefined') {
3487
+ toReturn['self'] = this.self;
3476
3488
  }
3477
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
3478
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
3479
- }
3480
- if (typeof this.model !== 'undefined') {
3481
- toReturn['model'] = this.model;
3489
+ if (typeof this.html !== 'undefined') {
3490
+ toReturn['html'] = this.html;
3482
3491
  }
3483
- if (typeof this.style !== 'undefined') {
3484
- toReturn['style'] = this.style;
3492
+ if (typeof this.download !== 'undefined') {
3493
+ toReturn['download'] = this.download;
3485
3494
  }
3486
- if (typeof this.quality !== 'undefined') {
3487
- toReturn['quality'] = this.quality;
3495
+ if (typeof this.downloadLocation !== 'undefined') {
3496
+ toReturn['downloadLocation'] = this.downloadLocation;
3488
3497
  }
3489
3498
  return toReturn;
3490
3499
  }
3491
3500
  }
3492
- class CreateImageResponse {
3501
+ class Photo {
3493
3502
  static fromProto(proto) {
3494
- let m = new CreateImageResponse();
3503
+ let m = new Photo();
3495
3504
  m = Object.assign(m, proto);
3496
- if (proto.createdId) {
3497
- m.createdId = parseInt(proto.createdId, 10);
3505
+ if (proto.width) {
3506
+ m.width = parseInt(proto.width, 10);
3498
3507
  }
3499
- if (proto.generatedImages) {
3500
- m.generatedImages = proto.generatedImages.map(ImageCreated.fromProto);
3508
+ if (proto.height) {
3509
+ m.height = parseInt(proto.height, 10);
3510
+ }
3511
+ if (proto.urls) {
3512
+ m.urls = Urls.fromProto(proto.urls);
3513
+ }
3514
+ if (proto.links) {
3515
+ m.links = Links.fromProto(proto.links);
3516
+ }
3517
+ if (proto.likes) {
3518
+ m.likes = parseInt(proto.likes, 10);
3519
+ }
3520
+ if (proto.currentUserCollections) {
3521
+ m.currentUserCollections = proto.currentUserCollections.map(Collection.fromProto);
3522
+ }
3523
+ if (proto.user) {
3524
+ m.user = User.fromProto(proto.user);
3525
+ }
3526
+ if (proto.tags) {
3527
+ m.tags = proto.tags.map(Tags.fromProto);
3501
3528
  }
3502
3529
  return m;
3503
3530
  }
@@ -3509,18 +3536,72 @@ class CreateImageResponse {
3509
3536
  }
3510
3537
  toApiJson() {
3511
3538
  const toReturn = {};
3512
- if (typeof this.createdId !== 'undefined') {
3513
- toReturn['createdId'] = this.createdId;
3539
+ if (typeof this.id !== 'undefined') {
3540
+ toReturn['id'] = this.id;
3514
3541
  }
3515
- if (typeof this.generatedImages !== 'undefined' && this.generatedImages !== null) {
3516
- toReturn['generatedImages'] = 'toApiJson' in this.generatedImages ? this.generatedImages.toApiJson() : this.generatedImages;
3542
+ if (typeof this.slug !== 'undefined') {
3543
+ toReturn['slug'] = this.slug;
3544
+ }
3545
+ if (typeof this.createdAt !== 'undefined') {
3546
+ toReturn['createdAt'] = this.createdAt;
3547
+ }
3548
+ if (typeof this.updatedAt !== 'undefined') {
3549
+ toReturn['updatedAt'] = this.updatedAt;
3550
+ }
3551
+ if (typeof this.promotedAt !== 'undefined') {
3552
+ toReturn['promotedAt'] = this.promotedAt;
3553
+ }
3554
+ if (typeof this.width !== 'undefined') {
3555
+ toReturn['width'] = this.width;
3556
+ }
3557
+ if (typeof this.height !== 'undefined') {
3558
+ toReturn['height'] = this.height;
3559
+ }
3560
+ if (typeof this.color !== 'undefined') {
3561
+ toReturn['color'] = this.color;
3562
+ }
3563
+ if (typeof this.blurHash !== 'undefined') {
3564
+ toReturn['blurHash'] = this.blurHash;
3565
+ }
3566
+ if (typeof this.description !== 'undefined') {
3567
+ toReturn['description'] = this.description;
3568
+ }
3569
+ if (typeof this.altDescription !== 'undefined') {
3570
+ toReturn['altDescription'] = this.altDescription;
3571
+ }
3572
+ if (typeof this.breadcrumbs !== 'undefined') {
3573
+ toReturn['breadcrumbs'] = this.breadcrumbs;
3574
+ }
3575
+ if (typeof this.urls !== 'undefined' && this.urls !== null) {
3576
+ toReturn['urls'] = 'toApiJson' in this.urls ? this.urls.toApiJson() : this.urls;
3577
+ }
3578
+ if (typeof this.links !== 'undefined' && this.links !== null) {
3579
+ toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
3580
+ }
3581
+ if (typeof this.likes !== 'undefined') {
3582
+ toReturn['likes'] = this.likes;
3583
+ }
3584
+ if (typeof this.likedByUser !== 'undefined') {
3585
+ toReturn['likedByUser'] = this.likedByUser;
3586
+ }
3587
+ if (typeof this.currentUserCollections !== 'undefined' && this.currentUserCollections !== null) {
3588
+ toReturn['currentUserCollections'] = 'toApiJson' in this.currentUserCollections ? this.currentUserCollections.toApiJson() : this.currentUserCollections;
3589
+ }
3590
+ if (typeof this.sponsorship !== 'undefined') {
3591
+ toReturn['sponsorship'] = this.sponsorship;
3592
+ }
3593
+ if (typeof this.user !== 'undefined' && this.user !== null) {
3594
+ toReturn['user'] = 'toApiJson' in this.user ? this.user.toApiJson() : this.user;
3595
+ }
3596
+ if (typeof this.tags !== 'undefined' && this.tags !== null) {
3597
+ toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;
3517
3598
  }
3518
3599
  return toReturn;
3519
3600
  }
3520
3601
  }
3521
- class DeletePostRequest {
3602
+ class Social {
3522
3603
  static fromProto(proto) {
3523
- let m = new DeletePostRequest();
3604
+ let m = new Social();
3524
3605
  m = Object.assign(m, proto);
3525
3606
  return m;
3526
3607
  }
@@ -3532,19 +3613,31 @@ class DeletePostRequest {
3532
3613
  }
3533
3614
  toApiJson() {
3534
3615
  const toReturn = {};
3535
- if (typeof this.accessToken !== 'undefined') {
3536
- toReturn['accessToken'] = this.accessToken;
3616
+ if (typeof this.instagramUsername !== 'undefined') {
3617
+ toReturn['instagramUsername'] = this.instagramUsername;
3537
3618
  }
3538
- if (typeof this.postId !== 'undefined') {
3539
- toReturn['postId'] = this.postId;
3619
+ if (typeof this.portfolioUrl !== 'undefined') {
3620
+ toReturn['portfolioUrl'] = this.portfolioUrl;
3621
+ }
3622
+ if (typeof this.twitterUsername !== 'undefined') {
3623
+ toReturn['twitterUsername'] = this.twitterUsername;
3624
+ }
3625
+ if (typeof this.paypalEmail !== 'undefined') {
3626
+ toReturn['paypalEmail'] = this.paypalEmail;
3540
3627
  }
3541
3628
  return toReturn;
3542
3629
  }
3543
3630
  }
3544
- class GetCommonAiInstructionsRequest {
3631
+ class Source {
3545
3632
  static fromProto(proto) {
3546
- let m = new GetCommonAiInstructionsRequest();
3633
+ let m = new Source();
3547
3634
  m = Object.assign(m, proto);
3635
+ if (proto.ancestry) {
3636
+ m.ancestry = Ancestry.fromProto(proto.ancestry);
3637
+ }
3638
+ if (proto.coverPhoto) {
3639
+ m.coverPhoto = Photo.fromProto(proto.coverPhoto);
3640
+ }
3548
3641
  return m;
3549
3642
  }
3550
3643
  constructor(kwargs) {
@@ -3555,22 +3648,34 @@ class GetCommonAiInstructionsRequest {
3555
3648
  }
3556
3649
  toApiJson() {
3557
3650
  const toReturn = {};
3558
- if (typeof this.businessId !== 'undefined') {
3559
- toReturn['businessId'] = this.businessId;
3651
+ if (typeof this.ancestry !== 'undefined' && this.ancestry !== null) {
3652
+ toReturn['ancestry'] = 'toApiJson' in this.ancestry ? this.ancestry.toApiJson() : this.ancestry;
3560
3653
  }
3561
- if (typeof this.partnerId !== 'undefined') {
3562
- toReturn['partnerId'] = this.partnerId;
3654
+ if (typeof this.title !== 'undefined') {
3655
+ toReturn['title'] = this.title;
3656
+ }
3657
+ if (typeof this.subtitle !== 'undefined') {
3658
+ toReturn['subtitle'] = this.subtitle;
3659
+ }
3660
+ if (typeof this.description !== 'undefined') {
3661
+ toReturn['description'] = this.description;
3662
+ }
3663
+ if (typeof this.metaTitle !== 'undefined') {
3664
+ toReturn['metaTitle'] = this.metaTitle;
3665
+ }
3666
+ if (typeof this.metaDescription !== 'undefined') {
3667
+ toReturn['metaDescription'] = this.metaDescription;
3668
+ }
3669
+ if (typeof this.coverPhoto !== 'undefined' && this.coverPhoto !== null) {
3670
+ toReturn['coverPhoto'] = 'toApiJson' in this.coverPhoto ? this.coverPhoto.toApiJson() : this.coverPhoto;
3563
3671
  }
3564
3672
  return toReturn;
3565
3673
  }
3566
3674
  }
3567
- class GetCommonAiInstructionsResponse {
3675
+ class SubAncestry {
3568
3676
  static fromProto(proto) {
3569
- let m = new GetCommonAiInstructionsResponse();
3677
+ let m = new SubAncestry();
3570
3678
  m = Object.assign(m, proto);
3571
- if (proto.aiInstructions) {
3572
- m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
3573
- }
3574
3679
  return m;
3575
3680
  }
3576
3681
  constructor(kwargs) {
@@ -3581,16 +3686,22 @@ class GetCommonAiInstructionsResponse {
3581
3686
  }
3582
3687
  toApiJson() {
3583
3688
  const toReturn = {};
3584
- if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
3585
- toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
3689
+ if (typeof this.slug !== 'undefined') {
3690
+ toReturn['slug'] = this.slug;
3691
+ }
3692
+ if (typeof this.prettySlug !== 'undefined') {
3693
+ toReturn['prettySlug'] = this.prettySlug;
3586
3694
  }
3587
3695
  return toReturn;
3588
3696
  }
3589
3697
  }
3590
- class ImageBlob {
3698
+ class Tags {
3591
3699
  static fromProto(proto) {
3592
- let m = new ImageBlob();
3700
+ let m = new Tags();
3593
3701
  m = Object.assign(m, proto);
3702
+ if (proto.source) {
3703
+ m.source = Source.fromProto(proto.source);
3704
+ }
3594
3705
  return m;
3595
3706
  }
3596
3707
  constructor(kwargs) {
@@ -3601,15 +3712,21 @@ class ImageBlob {
3601
3712
  }
3602
3713
  toApiJson() {
3603
3714
  const toReturn = {};
3604
- if (typeof this.blob !== 'undefined') {
3605
- toReturn['blob'] = this.blob;
3715
+ if (typeof this.type !== 'undefined') {
3716
+ toReturn['type'] = this.type;
3717
+ }
3718
+ if (typeof this.title !== 'undefined') {
3719
+ toReturn['title'] = this.title;
3720
+ }
3721
+ if (typeof this.source !== 'undefined' && this.source !== null) {
3722
+ toReturn['source'] = 'toApiJson' in this.source ? this.source.toApiJson() : this.source;
3606
3723
  }
3607
3724
  return toReturn;
3608
3725
  }
3609
3726
  }
3610
- class ImageCreated {
3727
+ class Urls {
3611
3728
  static fromProto(proto) {
3612
- let m = new ImageCreated();
3729
+ let m = new Urls();
3613
3730
  m = Object.assign(m, proto);
3614
3731
  return m;
3615
3732
  }
@@ -3621,22 +3738,52 @@ class ImageCreated {
3621
3738
  }
3622
3739
  toApiJson() {
3623
3740
  const toReturn = {};
3624
- if (typeof this.url !== 'undefined') {
3625
- toReturn['url'] = this.url;
3741
+ if (typeof this.raw !== 'undefined') {
3742
+ toReturn['raw'] = this.raw;
3626
3743
  }
3627
- if (typeof this.b64Json !== 'undefined') {
3628
- toReturn['b64Json'] = this.b64Json;
3744
+ if (typeof this.full !== 'undefined') {
3745
+ toReturn['full'] = this.full;
3629
3746
  }
3630
- if (typeof this.revisedPrompt !== 'undefined') {
3631
- toReturn['revisedPrompt'] = this.revisedPrompt;
3747
+ if (typeof this.regular !== 'undefined') {
3748
+ toReturn['regular'] = this.regular;
3749
+ }
3750
+ if (typeof this.small !== 'undefined') {
3751
+ toReturn['small'] = this.small;
3752
+ }
3753
+ if (typeof this.thumb !== 'undefined') {
3754
+ toReturn['thumb'] = this.thumb;
3755
+ }
3756
+ if (typeof this.smallS3 !== 'undefined') {
3757
+ toReturn['smallS3'] = this.smallS3;
3632
3758
  }
3633
3759
  return toReturn;
3634
3760
  }
3635
3761
  }
3636
- class ImageUrl {
3762
+ class User {
3637
3763
  static fromProto(proto) {
3638
- let m = new ImageUrl();
3764
+ let m = new User();
3639
3765
  m = Object.assign(m, proto);
3766
+ if (proto.links) {
3767
+ m.links = UserLink.fromProto(proto.links);
3768
+ }
3769
+ if (proto.profileImage) {
3770
+ m.profileImage = Image.fromProto(proto.profileImage);
3771
+ }
3772
+ if (proto.totalCollections) {
3773
+ m.totalCollections = parseInt(proto.totalCollections, 10);
3774
+ }
3775
+ if (proto.totalLikes) {
3776
+ m.totalLikes = parseInt(proto.totalLikes, 10);
3777
+ }
3778
+ if (proto.totalPhotos) {
3779
+ m.totalPhotos = parseInt(proto.totalPhotos, 10);
3780
+ }
3781
+ if (proto.totalPromotedPhotos) {
3782
+ m.totalPromotedPhotos = parseInt(proto.totalPromotedPhotos, 10);
3783
+ }
3784
+ if (proto.social) {
3785
+ m.social = Social.fromProto(proto.social);
3786
+ }
3640
3787
  return m;
3641
3788
  }
3642
3789
  constructor(kwargs) {
@@ -3647,19 +3794,73 @@ class ImageUrl {
3647
3794
  }
3648
3795
  toApiJson() {
3649
3796
  const toReturn = {};
3650
- if (typeof this.url !== 'undefined') {
3651
- toReturn['url'] = this.url;
3797
+ if (typeof this.id !== 'undefined') {
3798
+ toReturn['id'] = this.id;
3799
+ }
3800
+ if (typeof this.updatedAt !== 'undefined') {
3801
+ toReturn['updatedAt'] = this.updatedAt;
3802
+ }
3803
+ if (typeof this.username !== 'undefined') {
3804
+ toReturn['username'] = this.username;
3805
+ }
3806
+ if (typeof this.name !== 'undefined') {
3807
+ toReturn['name'] = this.name;
3808
+ }
3809
+ if (typeof this.firstName !== 'undefined') {
3810
+ toReturn['firstName'] = this.firstName;
3811
+ }
3812
+ if (typeof this.lastName !== 'undefined') {
3813
+ toReturn['lastName'] = this.lastName;
3814
+ }
3815
+ if (typeof this.twitterUsername !== 'undefined') {
3816
+ toReturn['twitterUsername'] = this.twitterUsername;
3817
+ }
3818
+ if (typeof this.portfolioUrl !== 'undefined') {
3819
+ toReturn['portfolioUrl'] = this.portfolioUrl;
3820
+ }
3821
+ if (typeof this.bio !== 'undefined') {
3822
+ toReturn['bio'] = this.bio;
3823
+ }
3824
+ if (typeof this.location !== 'undefined') {
3825
+ toReturn['location'] = this.location;
3826
+ }
3827
+ if (typeof this.links !== 'undefined' && this.links !== null) {
3828
+ toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
3829
+ }
3830
+ if (typeof this.profileImage !== 'undefined' && this.profileImage !== null) {
3831
+ toReturn['profileImage'] = 'toApiJson' in this.profileImage ? this.profileImage.toApiJson() : this.profileImage;
3832
+ }
3833
+ if (typeof this.instagramUsername !== 'undefined') {
3834
+ toReturn['instagramUsername'] = this.instagramUsername;
3835
+ }
3836
+ if (typeof this.totalCollections !== 'undefined') {
3837
+ toReturn['totalCollections'] = this.totalCollections;
3838
+ }
3839
+ if (typeof this.totalLikes !== 'undefined') {
3840
+ toReturn['totalLikes'] = this.totalLikes;
3841
+ }
3842
+ if (typeof this.totalPhotos !== 'undefined') {
3843
+ toReturn['totalPhotos'] = this.totalPhotos;
3844
+ }
3845
+ if (typeof this.totalPromotedPhotos !== 'undefined') {
3846
+ toReturn['totalPromotedPhotos'] = this.totalPromotedPhotos;
3847
+ }
3848
+ if (typeof this.acceptedTos !== 'undefined') {
3849
+ toReturn['acceptedTos'] = this.acceptedTos;
3850
+ }
3851
+ if (typeof this.forHire !== 'undefined') {
3852
+ toReturn['forHire'] = this.forHire;
3853
+ }
3854
+ if (typeof this.social !== 'undefined' && this.social !== null) {
3855
+ toReturn['social'] = 'toApiJson' in this.social ? this.social.toApiJson() : this.social;
3652
3856
  }
3653
3857
  return toReturn;
3654
3858
  }
3655
3859
  }
3656
- class MediaUploadRequest {
3860
+ class UserLink {
3657
3861
  static fromProto(proto) {
3658
- let m = new MediaUploadRequest();
3862
+ let m = new UserLink();
3659
3863
  m = Object.assign(m, proto);
3660
- if (proto.medias) {
3661
- m.medias = proto.medias.map(Media.fromProto);
3662
- }
3663
3864
  return m;
3664
3865
  }
3665
3866
  constructor(kwargs) {
@@ -3670,21 +3871,495 @@ class MediaUploadRequest {
3670
3871
  }
3671
3872
  toApiJson() {
3672
3873
  const toReturn = {};
3673
- if (typeof this.accessToken !== 'undefined') {
3674
- toReturn['accessToken'] = this.accessToken;
3874
+ if (typeof this.self !== 'undefined') {
3875
+ toReturn['self'] = this.self;
3675
3876
  }
3676
- if (typeof this.owner !== 'undefined') {
3677
- toReturn['owner'] = this.owner;
3877
+ if (typeof this.html !== 'undefined') {
3878
+ toReturn['html'] = this.html;
3678
3879
  }
3679
- if (typeof this.medias !== 'undefined' && this.medias !== null) {
3680
- toReturn['medias'] = 'toApiJson' in this.medias ? this.medias.toApiJson() : this.medias;
3880
+ if (typeof this.photos !== 'undefined') {
3881
+ toReturn['photos'] = this.photos;
3882
+ }
3883
+ if (typeof this.likes !== 'undefined') {
3884
+ toReturn['likes'] = this.likes;
3885
+ }
3886
+ if (typeof this.portfolio !== 'undefined') {
3887
+ toReturn['portfolio'] = this.portfolio;
3888
+ }
3889
+ if (typeof this.following !== 'undefined') {
3890
+ toReturn['following'] = this.following;
3891
+ }
3892
+ if (typeof this.followers !== 'undefined') {
3893
+ toReturn['followers'] = this.followers;
3681
3894
  }
3682
3895
  return toReturn;
3683
3896
  }
3684
3897
  }
3685
- class MediaUploadResponse {
3898
+
3899
+ function enumStringToValue(enumRef, value) {
3900
+ if (typeof value === 'number') {
3901
+ return value;
3902
+ }
3903
+ return enumRef[value];
3904
+ }
3905
+ class AiInstructions {
3686
3906
  static fromProto(proto) {
3687
- let m = new MediaUploadResponse();
3907
+ let m = new AiInstructions();
3908
+ m = Object.assign(m, proto);
3909
+ return m;
3910
+ }
3911
+ constructor(kwargs) {
3912
+ if (!kwargs) {
3913
+ return;
3914
+ }
3915
+ Object.assign(this, kwargs);
3916
+ }
3917
+ toApiJson() {
3918
+ const toReturn = {};
3919
+ if (typeof this.commonAiInstructions !== 'undefined') {
3920
+ toReturn['commonAiInstructions'] = this.commonAiInstructions;
3921
+ }
3922
+ return toReturn;
3923
+ }
3924
+ }
3925
+ class CreateCommonAiInstructionsRequest {
3926
+ static fromProto(proto) {
3927
+ let m = new CreateCommonAiInstructionsRequest();
3928
+ m = Object.assign(m, proto);
3929
+ if (proto.aiInstructions) {
3930
+ m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
3931
+ }
3932
+ return m;
3933
+ }
3934
+ constructor(kwargs) {
3935
+ if (!kwargs) {
3936
+ return;
3937
+ }
3938
+ Object.assign(this, kwargs);
3939
+ }
3940
+ toApiJson() {
3941
+ const toReturn = {};
3942
+ if (typeof this.businessId !== 'undefined') {
3943
+ toReturn['businessId'] = this.businessId;
3944
+ }
3945
+ if (typeof this.partnerId !== 'undefined') {
3946
+ toReturn['partnerId'] = this.partnerId;
3947
+ }
3948
+ if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
3949
+ toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
3950
+ }
3951
+ return toReturn;
3952
+ }
3953
+ }
3954
+ class CreateCommonAiInstructionsResponse {
3955
+ static fromProto(proto) {
3956
+ let m = new CreateCommonAiInstructionsResponse();
3957
+ m = Object.assign(m, proto);
3958
+ if (proto.aiInstructions) {
3959
+ m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
3960
+ }
3961
+ return m;
3962
+ }
3963
+ constructor(kwargs) {
3964
+ if (!kwargs) {
3965
+ return;
3966
+ }
3967
+ Object.assign(this, kwargs);
3968
+ }
3969
+ toApiJson() {
3970
+ const toReturn = {};
3971
+ if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
3972
+ toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
3973
+ }
3974
+ return toReturn;
3975
+ }
3976
+ }
3977
+ class CreateImageRequest {
3978
+ static fromProto(proto) {
3979
+ let m = new CreateImageRequest();
3980
+ m = Object.assign(m, proto);
3981
+ if (proto.metadata) {
3982
+ m.metadata = proto.metadata.map(MetadataV2.fromProto);
3983
+ }
3984
+ return m;
3985
+ }
3986
+ constructor(kwargs) {
3987
+ if (!kwargs) {
3988
+ return;
3989
+ }
3990
+ Object.assign(this, kwargs);
3991
+ }
3992
+ toApiJson() {
3993
+ const toReturn = {};
3994
+ if (typeof this.businessId !== 'undefined') {
3995
+ toReturn['businessId'] = this.businessId;
3996
+ }
3997
+ if (typeof this.prompt !== 'undefined') {
3998
+ toReturn['prompt'] = this.prompt;
3999
+ }
4000
+ if (typeof this.imageAmount !== 'undefined') {
4001
+ toReturn['imageAmount'] = this.imageAmount;
4002
+ }
4003
+ if (typeof this.size !== 'undefined') {
4004
+ toReturn['size'] = this.size;
4005
+ }
4006
+ if (typeof this.responseFormat !== 'undefined') {
4007
+ toReturn['responseFormat'] = this.responseFormat;
4008
+ }
4009
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
4010
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
4011
+ }
4012
+ if (typeof this.model !== 'undefined') {
4013
+ toReturn['model'] = this.model;
4014
+ }
4015
+ if (typeof this.style !== 'undefined') {
4016
+ toReturn['style'] = this.style;
4017
+ }
4018
+ if (typeof this.quality !== 'undefined') {
4019
+ toReturn['quality'] = this.quality;
4020
+ }
4021
+ return toReturn;
4022
+ }
4023
+ }
4024
+ class CreateImageResponse {
4025
+ static fromProto(proto) {
4026
+ let m = new CreateImageResponse();
4027
+ m = Object.assign(m, proto);
4028
+ if (proto.createdId) {
4029
+ m.createdId = parseInt(proto.createdId, 10);
4030
+ }
4031
+ if (proto.generatedImages) {
4032
+ m.generatedImages = proto.generatedImages.map(ImageCreated.fromProto);
4033
+ }
4034
+ return m;
4035
+ }
4036
+ constructor(kwargs) {
4037
+ if (!kwargs) {
4038
+ return;
4039
+ }
4040
+ Object.assign(this, kwargs);
4041
+ }
4042
+ toApiJson() {
4043
+ const toReturn = {};
4044
+ if (typeof this.createdId !== 'undefined') {
4045
+ toReturn['createdId'] = this.createdId;
4046
+ }
4047
+ if (typeof this.generatedImages !== 'undefined' && this.generatedImages !== null) {
4048
+ toReturn['generatedImages'] = 'toApiJson' in this.generatedImages ? this.generatedImages.toApiJson() : this.generatedImages;
4049
+ }
4050
+ return toReturn;
4051
+ }
4052
+ }
4053
+ class DeletePostRequest {
4054
+ static fromProto(proto) {
4055
+ let m = new DeletePostRequest();
4056
+ m = Object.assign(m, proto);
4057
+ return m;
4058
+ }
4059
+ constructor(kwargs) {
4060
+ if (!kwargs) {
4061
+ return;
4062
+ }
4063
+ Object.assign(this, kwargs);
4064
+ }
4065
+ toApiJson() {
4066
+ const toReturn = {};
4067
+ if (typeof this.accessToken !== 'undefined') {
4068
+ toReturn['accessToken'] = this.accessToken;
4069
+ }
4070
+ if (typeof this.postId !== 'undefined') {
4071
+ toReturn['postId'] = this.postId;
4072
+ }
4073
+ return toReturn;
4074
+ }
4075
+ }
4076
+ class GeneratePostsRequest {
4077
+ static fromProto(proto) {
4078
+ let m = new GeneratePostsRequest();
4079
+ m = Object.assign(m, proto);
4080
+ if (proto.numberOfPosts) {
4081
+ m.numberOfPosts = parseInt(proto.numberOfPosts, 10);
4082
+ }
4083
+ if (proto.postLength) {
4084
+ m.postLength = parseInt(proto.postLength, 10);
4085
+ }
4086
+ return m;
4087
+ }
4088
+ constructor(kwargs) {
4089
+ if (!kwargs) {
4090
+ return;
4091
+ }
4092
+ Object.assign(this, kwargs);
4093
+ }
4094
+ toApiJson() {
4095
+ const toReturn = {};
4096
+ if (typeof this.numberOfPosts !== 'undefined') {
4097
+ toReturn['numberOfPosts'] = this.numberOfPosts;
4098
+ }
4099
+ if (typeof this.topic !== 'undefined') {
4100
+ toReturn['topic'] = this.topic;
4101
+ }
4102
+ if (typeof this.commonInstructions !== 'undefined') {
4103
+ toReturn['commonInstructions'] = this.commonInstructions;
4104
+ }
4105
+ if (typeof this.tone !== 'undefined') {
4106
+ toReturn['tone'] = this.tone;
4107
+ }
4108
+ if (typeof this.postLength !== 'undefined') {
4109
+ toReturn['postLength'] = this.postLength;
4110
+ }
4111
+ return toReturn;
4112
+ }
4113
+ }
4114
+ class GeneratePostsResponse {
4115
+ static fromProto(proto) {
4116
+ let m = new GeneratePostsResponse();
4117
+ m = Object.assign(m, proto);
4118
+ if (proto.posts) {
4119
+ m.posts = proto.posts.map(GeneratePostsResponsePost.fromProto);
4120
+ }
4121
+ return m;
4122
+ }
4123
+ constructor(kwargs) {
4124
+ if (!kwargs) {
4125
+ return;
4126
+ }
4127
+ Object.assign(this, kwargs);
4128
+ }
4129
+ toApiJson() {
4130
+ const toReturn = {};
4131
+ if (typeof this.posts !== 'undefined' && this.posts !== null) {
4132
+ toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
4133
+ }
4134
+ return toReturn;
4135
+ }
4136
+ }
4137
+ class GetCommonAiInstructionsRequest {
4138
+ static fromProto(proto) {
4139
+ let m = new GetCommonAiInstructionsRequest();
4140
+ m = Object.assign(m, proto);
4141
+ return m;
4142
+ }
4143
+ constructor(kwargs) {
4144
+ if (!kwargs) {
4145
+ return;
4146
+ }
4147
+ Object.assign(this, kwargs);
4148
+ }
4149
+ toApiJson() {
4150
+ const toReturn = {};
4151
+ if (typeof this.businessId !== 'undefined') {
4152
+ toReturn['businessId'] = this.businessId;
4153
+ }
4154
+ if (typeof this.partnerId !== 'undefined') {
4155
+ toReturn['partnerId'] = this.partnerId;
4156
+ }
4157
+ return toReturn;
4158
+ }
4159
+ }
4160
+ class GetCommonAiInstructionsResponse {
4161
+ static fromProto(proto) {
4162
+ let m = new GetCommonAiInstructionsResponse();
4163
+ m = Object.assign(m, proto);
4164
+ if (proto.aiInstructions) {
4165
+ m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
4166
+ }
4167
+ return m;
4168
+ }
4169
+ constructor(kwargs) {
4170
+ if (!kwargs) {
4171
+ return;
4172
+ }
4173
+ Object.assign(this, kwargs);
4174
+ }
4175
+ toApiJson() {
4176
+ const toReturn = {};
4177
+ if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
4178
+ toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
4179
+ }
4180
+ return toReturn;
4181
+ }
4182
+ }
4183
+ class ImageBlob {
4184
+ static fromProto(proto) {
4185
+ let m = new ImageBlob();
4186
+ m = Object.assign(m, proto);
4187
+ return m;
4188
+ }
4189
+ constructor(kwargs) {
4190
+ if (!kwargs) {
4191
+ return;
4192
+ }
4193
+ Object.assign(this, kwargs);
4194
+ }
4195
+ toApiJson() {
4196
+ const toReturn = {};
4197
+ if (typeof this.blob !== 'undefined') {
4198
+ toReturn['blob'] = this.blob;
4199
+ }
4200
+ return toReturn;
4201
+ }
4202
+ }
4203
+ class ImageCreated {
4204
+ static fromProto(proto) {
4205
+ let m = new ImageCreated();
4206
+ m = Object.assign(m, proto);
4207
+ return m;
4208
+ }
4209
+ constructor(kwargs) {
4210
+ if (!kwargs) {
4211
+ return;
4212
+ }
4213
+ Object.assign(this, kwargs);
4214
+ }
4215
+ toApiJson() {
4216
+ const toReturn = {};
4217
+ if (typeof this.url !== 'undefined') {
4218
+ toReturn['url'] = this.url;
4219
+ }
4220
+ if (typeof this.b64Json !== 'undefined') {
4221
+ toReturn['b64Json'] = this.b64Json;
4222
+ }
4223
+ if (typeof this.revisedPrompt !== 'undefined') {
4224
+ toReturn['revisedPrompt'] = this.revisedPrompt;
4225
+ }
4226
+ return toReturn;
4227
+ }
4228
+ }
4229
+ class ImageUrl {
4230
+ static fromProto(proto) {
4231
+ let m = new ImageUrl();
4232
+ m = Object.assign(m, proto);
4233
+ return m;
4234
+ }
4235
+ constructor(kwargs) {
4236
+ if (!kwargs) {
4237
+ return;
4238
+ }
4239
+ Object.assign(this, kwargs);
4240
+ }
4241
+ toApiJson() {
4242
+ const toReturn = {};
4243
+ if (typeof this.url !== 'undefined') {
4244
+ toReturn['url'] = this.url;
4245
+ }
4246
+ return toReturn;
4247
+ }
4248
+ }
4249
+ class ListUnsplashImagesRequest {
4250
+ static fromProto(proto) {
4251
+ let m = new ListUnsplashImagesRequest();
4252
+ m = Object.assign(m, proto);
4253
+ if (proto.page) {
4254
+ m.page = parseInt(proto.page, 10);
4255
+ }
4256
+ if (proto.perPage) {
4257
+ m.perPage = parseInt(proto.perPage, 10);
4258
+ }
4259
+ return m;
4260
+ }
4261
+ constructor(kwargs) {
4262
+ if (!kwargs) {
4263
+ return;
4264
+ }
4265
+ Object.assign(this, kwargs);
4266
+ }
4267
+ toApiJson() {
4268
+ const toReturn = {};
4269
+ if (typeof this.query !== 'undefined') {
4270
+ toReturn['query'] = this.query;
4271
+ }
4272
+ if (typeof this.page !== 'undefined') {
4273
+ toReturn['page'] = this.page;
4274
+ }
4275
+ if (typeof this.perPage !== 'undefined') {
4276
+ toReturn['perPage'] = this.perPage;
4277
+ }
4278
+ if (typeof this.orderBy !== 'undefined') {
4279
+ toReturn['orderBy'] = this.orderBy;
4280
+ }
4281
+ if (typeof this.collection !== 'undefined') {
4282
+ toReturn['collection'] = this.collection;
4283
+ }
4284
+ if (typeof this.contentFilter !== 'undefined') {
4285
+ toReturn['contentFilter'] = this.contentFilter;
4286
+ }
4287
+ if (typeof this.color !== 'undefined') {
4288
+ toReturn['color'] = this.color;
4289
+ }
4290
+ if (typeof this.orientation !== 'undefined') {
4291
+ toReturn['orientation'] = this.orientation;
4292
+ }
4293
+ return toReturn;
4294
+ }
4295
+ }
4296
+ class ListUnsplashImagesResponse {
4297
+ static fromProto(proto) {
4298
+ let m = new ListUnsplashImagesResponse();
4299
+ m = Object.assign(m, proto);
4300
+ if (proto.total) {
4301
+ m.total = parseInt(proto.total, 10);
4302
+ }
4303
+ if (proto.totalPages) {
4304
+ m.totalPages = parseInt(proto.totalPages, 10);
4305
+ }
4306
+ if (proto.results) {
4307
+ m.results = proto.results.map(Photo.fromProto);
4308
+ }
4309
+ return m;
4310
+ }
4311
+ constructor(kwargs) {
4312
+ if (!kwargs) {
4313
+ return;
4314
+ }
4315
+ Object.assign(this, kwargs);
4316
+ }
4317
+ toApiJson() {
4318
+ const toReturn = {};
4319
+ if (typeof this.total !== 'undefined') {
4320
+ toReturn['total'] = this.total;
4321
+ }
4322
+ if (typeof this.totalPages !== 'undefined') {
4323
+ toReturn['totalPages'] = this.totalPages;
4324
+ }
4325
+ if (typeof this.results !== 'undefined' && this.results !== null) {
4326
+ toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
4327
+ }
4328
+ return toReturn;
4329
+ }
4330
+ }
4331
+ class MediaUploadRequest {
4332
+ static fromProto(proto) {
4333
+ let m = new MediaUploadRequest();
4334
+ m = Object.assign(m, proto);
4335
+ if (proto.medias) {
4336
+ m.medias = proto.medias.map(Media.fromProto);
4337
+ }
4338
+ return m;
4339
+ }
4340
+ constructor(kwargs) {
4341
+ if (!kwargs) {
4342
+ return;
4343
+ }
4344
+ Object.assign(this, kwargs);
4345
+ }
4346
+ toApiJson() {
4347
+ const toReturn = {};
4348
+ if (typeof this.accessToken !== 'undefined') {
4349
+ toReturn['accessToken'] = this.accessToken;
4350
+ }
4351
+ if (typeof this.owner !== 'undefined') {
4352
+ toReturn['owner'] = this.owner;
4353
+ }
4354
+ if (typeof this.medias !== 'undefined' && this.medias !== null) {
4355
+ toReturn['medias'] = 'toApiJson' in this.medias ? this.medias.toApiJson() : this.medias;
4356
+ }
4357
+ return toReturn;
4358
+ }
4359
+ }
4360
+ class MediaUploadResponse {
4361
+ static fromProto(proto) {
4362
+ let m = new MediaUploadResponse();
3688
4363
  m = Object.assign(m, proto);
3689
4364
  return m;
3690
4365
  }
@@ -3702,6 +4377,26 @@ class MediaUploadResponse {
3702
4377
  return toReturn;
3703
4378
  }
3704
4379
  }
4380
+ class GeneratePostsResponsePost {
4381
+ static fromProto(proto) {
4382
+ let m = new GeneratePostsResponsePost();
4383
+ m = Object.assign(m, proto);
4384
+ return m;
4385
+ }
4386
+ constructor(kwargs) {
4387
+ if (!kwargs) {
4388
+ return;
4389
+ }
4390
+ Object.assign(this, kwargs);
4391
+ }
4392
+ toApiJson() {
4393
+ const toReturn = {};
4394
+ if (typeof this.text !== 'undefined') {
4395
+ toReturn['text'] = this.text;
4396
+ }
4397
+ return toReturn;
4398
+ }
4399
+ }
3705
4400
  class RepostSocialPostRequest {
3706
4401
  static fromProto(proto) {
3707
4402
  let m = new RepostSocialPostRequest();
@@ -4182,6 +4877,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4182
4877
  args: [{ providedIn: 'root' }]
4183
4878
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
4184
4879
 
4880
+ // *********************************
4881
+ // Code generated by sdkgen
4882
+ // DO NOT EDIT!.
4883
+ //
4884
+ // API Service.
4885
+ // *********************************
4886
+ class ContentGenerationApiService {
4887
+ constructor(http, hostService) {
4888
+ this.http = http;
4889
+ this.hostService = hostService;
4890
+ this._host = this.hostService.hostWithScheme;
4891
+ }
4892
+ apiOptions() {
4893
+ return {
4894
+ headers: new HttpHeaders({
4895
+ 'Content-Type': 'application/json'
4896
+ }),
4897
+ withCredentials: true
4898
+ };
4899
+ }
4900
+ generatePosts(r) {
4901
+ const request = (r.toApiJson) ? r : new GeneratePostsRequest(r);
4902
+ return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GeneratePosts", request.toApiJson(), this.apiOptions())
4903
+ .pipe(map(resp => GeneratePostsResponse.fromProto(resp)));
4904
+ }
4905
+ }
4906
+ 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 });
4907
+ ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
4908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, decorators: [{
4909
+ type: Injectable,
4910
+ args: [{ providedIn: 'root' }]
4911
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
4912
+
4185
4913
  // *********************************
4186
4914
  // Code generated by sdkgen
4187
4915
  // DO NOT EDIT!.
@@ -4520,6 +5248,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4520
5248
  args: [{ providedIn: 'root' }]
4521
5249
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
4522
5250
 
5251
+ // *********************************
5252
+ // Code generated by sdkgen
5253
+ // DO NOT EDIT!.
5254
+ //
5255
+ // API Service.
5256
+ // *********************************
5257
+ class UnsplashApiService {
5258
+ constructor(http, hostService) {
5259
+ this.http = http;
5260
+ this.hostService = hostService;
5261
+ this._host = this.hostService.hostWithScheme;
5262
+ }
5263
+ apiOptions() {
5264
+ return {
5265
+ headers: new HttpHeaders({
5266
+ 'Content-Type': 'application/json'
5267
+ }),
5268
+ withCredentials: true
5269
+ };
5270
+ }
5271
+ listUnsplashImages(r) {
5272
+ const request = (r.toApiJson) ? r : new ListUnsplashImagesRequest(r);
5273
+ return this.http.post(this._host + "/socialposts.v2.Unsplash/ListUnsplashImages", request.toApiJson(), this.apiOptions())
5274
+ .pipe(map(resp => ListUnsplashImagesResponse.fromProto(resp)));
5275
+ }
5276
+ }
5277
+ UnsplashApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5278
+ UnsplashApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, providedIn: 'root' });
5279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, decorators: [{
5280
+ type: Injectable,
5281
+ args: [{ providedIn: 'root' }]
5282
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5283
+
4523
5284
  // *********************************
4524
5285
  // Code generated by sdkgen
4525
5286
  // DO NOT EDIT!.
@@ -4828,6 +5589,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4828
5589
  args: [{ providedIn: 'root' }]
4829
5590
  }], ctorParameters: function () { return [{ type: CommonAiInstructionsApiService }]; } });
4830
5591
 
5592
+ class ContentGenerationService {
5593
+ constructor(contentGenerationApiService) {
5594
+ this.contentGenerationApiService = contentGenerationApiService;
5595
+ }
5596
+ generatePosts(r) {
5597
+ return this.contentGenerationApiService.generatePosts(r);
5598
+ }
5599
+ }
5600
+ ContentGenerationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, deps: [{ token: ContentGenerationApiService }], target: i0.ɵɵFactoryTarget.Injectable });
5601
+ ContentGenerationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, providedIn: 'root' });
5602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationService, decorators: [{
5603
+ type: Injectable,
5604
+ args: [{ providedIn: 'root' }]
5605
+ }], ctorParameters: function () { return [{ type: ContentGenerationApiService }]; } });
5606
+
4831
5607
  class SocialPostsV2Service {
4832
5608
  constructor(socialpostV2ApiService) {
4833
5609
  this.socialpostV2ApiService = socialpostV2ApiService;
@@ -4862,5 +5638,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4862
5638
  * Generated bundle index. Do not edit.
4863
5639
  */
4864
5640
 
4865
- export { AiInstructionService, AiInstructions, CallToAction, CallToActionCallToActionType, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, ImageBlob, ImageCreated, ImageUrl, LinkV2, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SuggestMessageRequest, SuggestMessageResponse, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
5641
+ export { AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, 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, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
4866
5642
  //# sourceMappingURL=vendasta-social-posts.mjs.map