@vendasta/social-posts 5.18.0 → 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,6 +3364,538 @@ class Media {
3364
3364
  }
3365
3365
  }
3366
3366
 
3367
+ function enumStringToValue$1(enumRef, value) {
3368
+ if (typeof value === 'number') {
3369
+ return value;
3370
+ }
3371
+ return enumRef[value];
3372
+ }
3373
+ class Ancestry {
3374
+ static fromProto(proto) {
3375
+ let m = new Ancestry();
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
+ }
3386
+ return m;
3387
+ }
3388
+ constructor(kwargs) {
3389
+ if (!kwargs) {
3390
+ return;
3391
+ }
3392
+ Object.assign(this, kwargs);
3393
+ }
3394
+ toApiJson() {
3395
+ const toReturn = {};
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;
3404
+ }
3405
+ return toReturn;
3406
+ }
3407
+ }
3408
+ class Collection {
3409
+ static fromProto(proto) {
3410
+ let m = new Collection();
3411
+ m = Object.assign(m, proto);
3412
+ return m;
3413
+ }
3414
+ constructor(kwargs) {
3415
+ if (!kwargs) {
3416
+ return;
3417
+ }
3418
+ Object.assign(this, kwargs);
3419
+ }
3420
+ toApiJson() {
3421
+ const toReturn = {};
3422
+ if (typeof this.id !== 'undefined') {
3423
+ toReturn['id'] = this.id;
3424
+ }
3425
+ if (typeof this.title !== 'undefined') {
3426
+ toReturn['title'] = this.title;
3427
+ }
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;
3442
+ }
3443
+ return toReturn;
3444
+ }
3445
+ }
3446
+ class Image {
3447
+ static fromProto(proto) {
3448
+ let m = new Image();
3449
+ m = Object.assign(m, proto);
3450
+ return m;
3451
+ }
3452
+ constructor(kwargs) {
3453
+ if (!kwargs) {
3454
+ return;
3455
+ }
3456
+ Object.assign(this, kwargs);
3457
+ }
3458
+ toApiJson() {
3459
+ const toReturn = {};
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;
3468
+ }
3469
+ return toReturn;
3470
+ }
3471
+ }
3472
+ class Links {
3473
+ static fromProto(proto) {
3474
+ let m = new Links();
3475
+ m = Object.assign(m, proto);
3476
+ return m;
3477
+ }
3478
+ constructor(kwargs) {
3479
+ if (!kwargs) {
3480
+ return;
3481
+ }
3482
+ Object.assign(this, kwargs);
3483
+ }
3484
+ toApiJson() {
3485
+ const toReturn = {};
3486
+ if (typeof this.self !== 'undefined') {
3487
+ toReturn['self'] = this.self;
3488
+ }
3489
+ if (typeof this.html !== 'undefined') {
3490
+ toReturn['html'] = this.html;
3491
+ }
3492
+ if (typeof this.download !== 'undefined') {
3493
+ toReturn['download'] = this.download;
3494
+ }
3495
+ if (typeof this.downloadLocation !== 'undefined') {
3496
+ toReturn['downloadLocation'] = this.downloadLocation;
3497
+ }
3498
+ return toReturn;
3499
+ }
3500
+ }
3501
+ class Photo {
3502
+ static fromProto(proto) {
3503
+ let m = new Photo();
3504
+ m = Object.assign(m, proto);
3505
+ if (proto.width) {
3506
+ m.width = parseInt(proto.width, 10);
3507
+ }
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);
3528
+ }
3529
+ return m;
3530
+ }
3531
+ constructor(kwargs) {
3532
+ if (!kwargs) {
3533
+ return;
3534
+ }
3535
+ Object.assign(this, kwargs);
3536
+ }
3537
+ toApiJson() {
3538
+ const toReturn = {};
3539
+ if (typeof this.id !== 'undefined') {
3540
+ toReturn['id'] = this.id;
3541
+ }
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;
3598
+ }
3599
+ return toReturn;
3600
+ }
3601
+ }
3602
+ class Social {
3603
+ static fromProto(proto) {
3604
+ let m = new Social();
3605
+ m = Object.assign(m, proto);
3606
+ return m;
3607
+ }
3608
+ constructor(kwargs) {
3609
+ if (!kwargs) {
3610
+ return;
3611
+ }
3612
+ Object.assign(this, kwargs);
3613
+ }
3614
+ toApiJson() {
3615
+ const toReturn = {};
3616
+ if (typeof this.instagramUsername !== 'undefined') {
3617
+ toReturn['instagramUsername'] = this.instagramUsername;
3618
+ }
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;
3627
+ }
3628
+ return toReturn;
3629
+ }
3630
+ }
3631
+ class Source {
3632
+ static fromProto(proto) {
3633
+ let m = new Source();
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
+ }
3641
+ return m;
3642
+ }
3643
+ constructor(kwargs) {
3644
+ if (!kwargs) {
3645
+ return;
3646
+ }
3647
+ Object.assign(this, kwargs);
3648
+ }
3649
+ toApiJson() {
3650
+ const toReturn = {};
3651
+ if (typeof this.ancestry !== 'undefined' && this.ancestry !== null) {
3652
+ toReturn['ancestry'] = 'toApiJson' in this.ancestry ? this.ancestry.toApiJson() : this.ancestry;
3653
+ }
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;
3671
+ }
3672
+ return toReturn;
3673
+ }
3674
+ }
3675
+ class SubAncestry {
3676
+ static fromProto(proto) {
3677
+ let m = new SubAncestry();
3678
+ m = Object.assign(m, proto);
3679
+ return m;
3680
+ }
3681
+ constructor(kwargs) {
3682
+ if (!kwargs) {
3683
+ return;
3684
+ }
3685
+ Object.assign(this, kwargs);
3686
+ }
3687
+ toApiJson() {
3688
+ const toReturn = {};
3689
+ if (typeof this.slug !== 'undefined') {
3690
+ toReturn['slug'] = this.slug;
3691
+ }
3692
+ if (typeof this.prettySlug !== 'undefined') {
3693
+ toReturn['prettySlug'] = this.prettySlug;
3694
+ }
3695
+ return toReturn;
3696
+ }
3697
+ }
3698
+ class Tags {
3699
+ static fromProto(proto) {
3700
+ let m = new Tags();
3701
+ m = Object.assign(m, proto);
3702
+ if (proto.source) {
3703
+ m.source = Source.fromProto(proto.source);
3704
+ }
3705
+ return m;
3706
+ }
3707
+ constructor(kwargs) {
3708
+ if (!kwargs) {
3709
+ return;
3710
+ }
3711
+ Object.assign(this, kwargs);
3712
+ }
3713
+ toApiJson() {
3714
+ const toReturn = {};
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;
3723
+ }
3724
+ return toReturn;
3725
+ }
3726
+ }
3727
+ class Urls {
3728
+ static fromProto(proto) {
3729
+ let m = new Urls();
3730
+ m = Object.assign(m, proto);
3731
+ return m;
3732
+ }
3733
+ constructor(kwargs) {
3734
+ if (!kwargs) {
3735
+ return;
3736
+ }
3737
+ Object.assign(this, kwargs);
3738
+ }
3739
+ toApiJson() {
3740
+ const toReturn = {};
3741
+ if (typeof this.raw !== 'undefined') {
3742
+ toReturn['raw'] = this.raw;
3743
+ }
3744
+ if (typeof this.full !== 'undefined') {
3745
+ toReturn['full'] = this.full;
3746
+ }
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;
3758
+ }
3759
+ return toReturn;
3760
+ }
3761
+ }
3762
+ class User {
3763
+ static fromProto(proto) {
3764
+ let m = new User();
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
+ }
3787
+ return m;
3788
+ }
3789
+ constructor(kwargs) {
3790
+ if (!kwargs) {
3791
+ return;
3792
+ }
3793
+ Object.assign(this, kwargs);
3794
+ }
3795
+ toApiJson() {
3796
+ const toReturn = {};
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;
3856
+ }
3857
+ return toReturn;
3858
+ }
3859
+ }
3860
+ class UserLink {
3861
+ static fromProto(proto) {
3862
+ let m = new UserLink();
3863
+ m = Object.assign(m, proto);
3864
+ return m;
3865
+ }
3866
+ constructor(kwargs) {
3867
+ if (!kwargs) {
3868
+ return;
3869
+ }
3870
+ Object.assign(this, kwargs);
3871
+ }
3872
+ toApiJson() {
3873
+ const toReturn = {};
3874
+ if (typeof this.self !== 'undefined') {
3875
+ toReturn['self'] = this.self;
3876
+ }
3877
+ if (typeof this.html !== 'undefined') {
3878
+ toReturn['html'] = this.html;
3879
+ }
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;
3894
+ }
3895
+ return toReturn;
3896
+ }
3897
+ }
3898
+
3367
3899
  function enumStringToValue(enumRef, value) {
3368
3900
  if (typeof value === 'number') {
3369
3901
  return value;
@@ -3714,6 +4246,88 @@ class ImageUrl {
3714
4246
  return toReturn;
3715
4247
  }
3716
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
+ }
3717
4331
  class MediaUploadRequest {
3718
4332
  static fromProto(proto) {
3719
4333
  let m = new MediaUploadRequest();
@@ -4635,6 +5249,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4635
5249
  args: [{ providedIn: 'root' }]
4636
5250
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
4637
5251
 
5252
+ // *********************************
5253
+ // Code generated by sdkgen
5254
+ // DO NOT EDIT!.
5255
+ //
5256
+ // API Service.
5257
+ // *********************************
5258
+ class UnsplashApiService {
5259
+ constructor(http, hostService) {
5260
+ this.http = http;
5261
+ this.hostService = hostService;
5262
+ this._host = this.hostService.hostWithScheme;
5263
+ }
5264
+ apiOptions() {
5265
+ return {
5266
+ headers: new HttpHeaders({
5267
+ 'Content-Type': 'application/json'
5268
+ }),
5269
+ withCredentials: true
5270
+ };
5271
+ }
5272
+ listUnsplashImages(r) {
5273
+ const request = (r.toApiJson) ? r : new ListUnsplashImagesRequest(r);
5274
+ return this.http.post(this._host + "/socialposts.v2.Unsplash/ListUnsplashImages", request.toApiJson(), this.apiOptions())
5275
+ .pipe(map(resp => ListUnsplashImagesResponse.fromProto(resp)));
5276
+ }
5277
+ }
5278
+ 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 });
5279
+ UnsplashApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, providedIn: 'root' });
5280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, decorators: [{
5281
+ type: Injectable,
5282
+ args: [{ providedIn: 'root' }]
5283
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5284
+
4638
5285
  // *********************************
4639
5286
  // Code generated by sdkgen
4640
5287
  // DO NOT EDIT!.
@@ -4992,5 +5639,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4992
5639
  * Generated bundle index. Do not edit.
4993
5640
  */
4994
5641
 
4995
- export { AiInstructionService, AiInstructions, CallToAction, CallToActionCallToActionType, 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, 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 };
5642
+ 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 };
4996
5643
  //# sourceMappingURL=vendasta-social-posts.mjs.map