@vendasta/social-posts 5.43.2 → 5.45.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.
Files changed (29) hide show
  1. package/esm2020/lib/_internal/index.mjs +2 -1
  2. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
  3. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/pexels-image.interface.mjs +8 -0
  6. package/esm2020/lib/_internal/objects/api-v2.mjs +171 -17
  7. package/esm2020/lib/_internal/objects/api.mjs +63 -1
  8. package/esm2020/lib/_internal/objects/index.mjs +4 -3
  9. package/esm2020/lib/_internal/objects/pexels-image.mjs +54 -0
  10. package/esm2020/lib/_internal/pexels-images.api.service.mjs +40 -0
  11. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +12 -2
  12. package/esm2020/lib/social-post-v2.service.mjs +10 -2
  13. package/fesm2015/vendasta-social-posts.mjs +350 -30
  14. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  15. package/fesm2020/vendasta-social-posts.mjs +350 -30
  16. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  17. package/lib/_internal/index.d.ts +1 -0
  18. package/lib/_internal/interfaces/api-v2.interface.d.ts +36 -4
  19. package/lib/_internal/interfaces/api.interface.d.ts +10 -0
  20. package/lib/_internal/interfaces/index.d.ts +3 -2
  21. package/lib/_internal/interfaces/pexels-image.interface.d.ts +9 -0
  22. package/lib/_internal/objects/api-v2.d.ts +54 -7
  23. package/lib/_internal/objects/api.d.ts +16 -0
  24. package/lib/_internal/objects/index.d.ts +3 -2
  25. package/lib/_internal/objects/pexels-image.d.ts +14 -0
  26. package/lib/_internal/pexels-images.api.service.d.ts +13 -0
  27. package/lib/_internal/social-posts-v2.api.service.d.ts +4 -2
  28. package/lib/social-post-v2.service.d.ts +3 -1
  29. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { of } from 'rxjs';
4
4
  import { HttpClient, HttpHeaders } from '@angular/common/http';
5
5
  import { map } from 'rxjs/operators';
6
6
 
7
- function enumStringToValue$h(enumRef, value) {
7
+ function enumStringToValue$i(enumRef, value) {
8
8
  if (typeof value === 'number') {
9
9
  return value;
10
10
  }
@@ -31,7 +31,7 @@ class FieldMask {
31
31
  }
32
32
  }
33
33
 
34
- function enumStringToValue$g(enumRef, value) {
34
+ function enumStringToValue$h(enumRef, value) {
35
35
  if (typeof value === 'number') {
36
36
  return value;
37
37
  }
@@ -304,7 +304,7 @@ var Role;
304
304
  // Enums Index.
305
305
  // *********************************
306
306
 
307
- function enumStringToValue$f(enumRef, value) {
307
+ function enumStringToValue$g(enumRef, value) {
308
308
  if (typeof value === 'number') {
309
309
  return value;
310
310
  }
@@ -376,7 +376,7 @@ class CallToAction {
376
376
  let m = new CallToAction();
377
377
  m = Object.assign(m, proto);
378
378
  if (proto.actionType) {
379
- m.actionType = enumStringToValue$f(CallToActionCallToActionType, proto.actionType);
379
+ m.actionType = enumStringToValue$g(CallToActionCallToActionType, proto.actionType);
380
380
  }
381
381
  return m;
382
382
  }
@@ -582,7 +582,7 @@ class PostTemplate {
582
582
  m.metaData = proto.metaData.map(MetaData.fromProto);
583
583
  }
584
584
  if (proto.postType) {
585
- m.postType = enumStringToValue$f(PostType, proto.postType);
585
+ m.postType = enumStringToValue$g(PostType, proto.postType);
586
586
  }
587
587
  if (proto.youtubeCustomization) {
588
588
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -665,7 +665,7 @@ class SSIDPostType {
665
665
  let m = new SSIDPostType();
666
666
  m = Object.assign(m, proto);
667
667
  if (proto.postType) {
668
- m.postType = enumStringToValue$f(PostType, proto.postType);
668
+ m.postType = enumStringToValue$g(PostType, proto.postType);
669
669
  }
670
670
  return m;
671
671
  }
@@ -749,10 +749,10 @@ class SocialPost {
749
749
  m.posted = new Date(proto.posted);
750
750
  }
751
751
  if (proto.deletionStatus) {
752
- m.deletionStatus = enumStringToValue$f(SocialPostDeletionStatus, proto.deletionStatus);
752
+ m.deletionStatus = enumStringToValue$g(SocialPostDeletionStatus, proto.deletionStatus);
753
753
  }
754
754
  if (proto.service) {
755
- m.service = enumStringToValue$f(SocialPostService, proto.service);
755
+ m.service = enumStringToValue$g(SocialPostService, proto.service);
756
756
  }
757
757
  if (proto.created) {
758
758
  m.created = new Date(proto.created);
@@ -761,7 +761,7 @@ class SocialPost {
761
761
  m.scheduled = new Date(proto.scheduled);
762
762
  }
763
763
  if (proto.status) {
764
- m.status = enumStringToValue$f(PostingStatus, proto.status);
764
+ m.status = enumStringToValue$g(PostingStatus, proto.status);
765
765
  }
766
766
  if (proto.event) {
767
767
  m.event = Event.fromProto(proto.event);
@@ -773,7 +773,7 @@ class SocialPost {
773
773
  m.error = Error.fromProto(proto.error);
774
774
  }
775
775
  if (proto.postType) {
776
- m.postType = enumStringToValue$f(PostType, proto.postType);
776
+ m.postType = enumStringToValue$g(PostType, proto.postType);
777
777
  }
778
778
  if (proto.mediaEntries) {
779
779
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -968,7 +968,7 @@ class YoutubeCustomization {
968
968
  let m = new YoutubeCustomization();
969
969
  m = Object.assign(m, proto);
970
970
  if (proto.privacyStatus) {
971
- m.privacyStatus = enumStringToValue$f(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
971
+ m.privacyStatus = enumStringToValue$g(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
972
972
  }
973
973
  return m;
974
974
  }
@@ -990,7 +990,7 @@ class YoutubeCustomization {
990
990
  }
991
991
  }
992
992
 
993
- function enumStringToValue$e(enumRef, value) {
993
+ function enumStringToValue$f(enumRef, value) {
994
994
  if (typeof value === 'number') {
995
995
  return value;
996
996
  }
@@ -1131,7 +1131,7 @@ class MultilocationPost {
1131
1131
  m.postCategory = MLPostCategory.fromProto(proto.postCategory);
1132
1132
  }
1133
1133
  if (proto.postState) {
1134
- m.postState = enumStringToValue$e(MLPostState, proto.postState);
1134
+ m.postState = enumStringToValue$f(MLPostState, proto.postState);
1135
1135
  }
1136
1136
  return m;
1137
1137
  }
@@ -1334,6 +1334,60 @@ class PostEvent {
1334
1334
  }
1335
1335
  }
1336
1336
 
1337
+ function enumStringToValue$e(enumRef, value) {
1338
+ if (typeof value === 'number') {
1339
+ return value;
1340
+ }
1341
+ return enumRef[value];
1342
+ }
1343
+ class PexelsImage {
1344
+ static fromProto(proto) {
1345
+ let m = new PexelsImage();
1346
+ m = Object.assign(m, proto);
1347
+ if (proto.imageId) {
1348
+ m.imageId = parseInt(proto.imageId, 10);
1349
+ }
1350
+ if (proto.width) {
1351
+ m.width = parseInt(proto.width, 10);
1352
+ }
1353
+ if (proto.height) {
1354
+ m.height = parseInt(proto.height, 10);
1355
+ }
1356
+ return m;
1357
+ }
1358
+ constructor(kwargs) {
1359
+ if (!kwargs) {
1360
+ return;
1361
+ }
1362
+ Object.assign(this, kwargs);
1363
+ }
1364
+ toApiJson() {
1365
+ const toReturn = {};
1366
+ if (typeof this.imageId !== 'undefined') {
1367
+ toReturn['imageId'] = this.imageId;
1368
+ }
1369
+ if (typeof this.imagePreviewUrl !== 'undefined') {
1370
+ toReturn['imagePreviewUrl'] = this.imagePreviewUrl;
1371
+ }
1372
+ if (typeof this.pexelsPageUrl !== 'undefined') {
1373
+ toReturn['pexelsPageUrl'] = this.pexelsPageUrl;
1374
+ }
1375
+ if (typeof this.photographerName !== 'undefined') {
1376
+ toReturn['photographerName'] = this.photographerName;
1377
+ }
1378
+ if (typeof this.photographerUrl !== 'undefined') {
1379
+ toReturn['photographerUrl'] = this.photographerUrl;
1380
+ }
1381
+ if (typeof this.width !== 'undefined') {
1382
+ toReturn['width'] = this.width;
1383
+ }
1384
+ if (typeof this.height !== 'undefined') {
1385
+ toReturn['height'] = this.height;
1386
+ }
1387
+ return toReturn;
1388
+ }
1389
+ }
1390
+
1337
1391
  function enumStringToValue$d(enumRef, value) {
1338
1392
  if (typeof value === 'number') {
1339
1393
  return value;
@@ -2702,6 +2756,67 @@ class ListMultilocationPostsForBrandResponse {
2702
2756
  return toReturn;
2703
2757
  }
2704
2758
  }
2759
+ class ListPexelsImagesRequest {
2760
+ static fromProto(proto) {
2761
+ let m = new ListPexelsImagesRequest();
2762
+ m = Object.assign(m, proto);
2763
+ if (proto.pageNumber) {
2764
+ m.pageNumber = parseInt(proto.pageNumber, 10);
2765
+ }
2766
+ if (proto.pageSize) {
2767
+ m.pageSize = parseInt(proto.pageSize, 10);
2768
+ }
2769
+ return m;
2770
+ }
2771
+ constructor(kwargs) {
2772
+ if (!kwargs) {
2773
+ return;
2774
+ }
2775
+ Object.assign(this, kwargs);
2776
+ }
2777
+ toApiJson() {
2778
+ const toReturn = {};
2779
+ if (typeof this.query !== 'undefined') {
2780
+ toReturn['query'] = this.query;
2781
+ }
2782
+ if (typeof this.pageNumber !== 'undefined') {
2783
+ toReturn['pageNumber'] = this.pageNumber;
2784
+ }
2785
+ if (typeof this.pageSize !== 'undefined') {
2786
+ toReturn['pageSize'] = this.pageSize;
2787
+ }
2788
+ return toReturn;
2789
+ }
2790
+ }
2791
+ class ListPexelsImagesResponse {
2792
+ static fromProto(proto) {
2793
+ let m = new ListPexelsImagesResponse();
2794
+ m = Object.assign(m, proto);
2795
+ if (proto.totalHits) {
2796
+ m.totalHits = parseInt(proto.totalHits, 10);
2797
+ }
2798
+ if (proto.pexelsImages) {
2799
+ m.pexelsImages = proto.pexelsImages.map(PexelsImage.fromProto);
2800
+ }
2801
+ return m;
2802
+ }
2803
+ constructor(kwargs) {
2804
+ if (!kwargs) {
2805
+ return;
2806
+ }
2807
+ Object.assign(this, kwargs);
2808
+ }
2809
+ toApiJson() {
2810
+ const toReturn = {};
2811
+ if (typeof this.totalHits !== 'undefined') {
2812
+ toReturn['totalHits'] = this.totalHits;
2813
+ }
2814
+ if (typeof this.pexelsImages !== 'undefined' && this.pexelsImages !== null) {
2815
+ toReturn['pexelsImages'] = 'toApiJson' in this.pexelsImages ? this.pexelsImages.toApiJson() : this.pexelsImages;
2816
+ }
2817
+ return toReturn;
2818
+ }
2819
+ }
2705
2820
  class ListPixabayImagesRequest {
2706
2821
  static fromProto(proto) {
2707
2822
  let m = new ListPixabayImagesRequest();
@@ -5156,6 +5271,49 @@ class GetCommonAiInstructionsResponse {
5156
5271
  return toReturn;
5157
5272
  }
5158
5273
  }
5274
+ class GetMediaMetadataFromURLRequest {
5275
+ static fromProto(proto) {
5276
+ let m = new GetMediaMetadataFromURLRequest();
5277
+ m = Object.assign(m, proto);
5278
+ return m;
5279
+ }
5280
+ constructor(kwargs) {
5281
+ if (!kwargs) {
5282
+ return;
5283
+ }
5284
+ Object.assign(this, kwargs);
5285
+ }
5286
+ toApiJson() {
5287
+ const toReturn = {};
5288
+ if (typeof this.url !== 'undefined') {
5289
+ toReturn['url'] = this.url;
5290
+ }
5291
+ return toReturn;
5292
+ }
5293
+ }
5294
+ class GetMediaMetadataFromURLResponse {
5295
+ static fromProto(proto) {
5296
+ let m = new GetMediaMetadataFromURLResponse();
5297
+ m = Object.assign(m, proto);
5298
+ return m;
5299
+ }
5300
+ constructor(kwargs) {
5301
+ if (!kwargs) {
5302
+ return;
5303
+ }
5304
+ Object.assign(this, kwargs);
5305
+ }
5306
+ toApiJson() {
5307
+ const toReturn = {};
5308
+ if (typeof this.blobType !== 'undefined') {
5309
+ toReturn['blobType'] = this.blobType;
5310
+ }
5311
+ if (typeof this.finalUrl !== 'undefined') {
5312
+ toReturn['finalUrl'] = this.finalUrl;
5313
+ }
5314
+ return toReturn;
5315
+ }
5316
+ }
5159
5317
  class ImageBlob {
5160
5318
  static fromProto(proto) {
5161
5319
  let m = new ImageBlob();
@@ -5393,6 +5551,49 @@ class ListCuratedContentResponse {
5393
5551
  return toReturn;
5394
5552
  }
5395
5553
  }
5554
+ class ListPostableSocialServiceRequest {
5555
+ static fromProto(proto) {
5556
+ let m = new ListPostableSocialServiceRequest();
5557
+ m = Object.assign(m, proto);
5558
+ return m;
5559
+ }
5560
+ constructor(kwargs) {
5561
+ if (!kwargs) {
5562
+ return;
5563
+ }
5564
+ Object.assign(this, kwargs);
5565
+ }
5566
+ toApiJson() {
5567
+ const toReturn = {};
5568
+ if (typeof this.businessId !== 'undefined') {
5569
+ toReturn['businessId'] = this.businessId;
5570
+ }
5571
+ return toReturn;
5572
+ }
5573
+ }
5574
+ class ListPostableSocialServiceResponse {
5575
+ static fromProto(proto) {
5576
+ let m = new ListPostableSocialServiceResponse();
5577
+ m = Object.assign(m, proto);
5578
+ if (proto.postableSocialService) {
5579
+ m.postableSocialService = proto.postableSocialService.map(SocialService.fromProto);
5580
+ }
5581
+ return m;
5582
+ }
5583
+ constructor(kwargs) {
5584
+ if (!kwargs) {
5585
+ return;
5586
+ }
5587
+ Object.assign(this, kwargs);
5588
+ }
5589
+ toApiJson() {
5590
+ const toReturn = {};
5591
+ if (typeof this.postableSocialService !== 'undefined' && this.postableSocialService !== null) {
5592
+ toReturn['postableSocialService'] = 'toApiJson' in this.postableSocialService ? this.postableSocialService.toApiJson() : this.postableSocialService;
5593
+ }
5594
+ return toReturn;
5595
+ }
5596
+ }
5396
5597
  class ListUnsplashImagesRequest {
5397
5598
  static fromProto(proto) {
5398
5599
  let m = new ListUnsplashImagesRequest();
@@ -5550,12 +5751,12 @@ class MultiResponse {
5550
5751
  return toReturn;
5551
5752
  }
5552
5753
  }
5553
- class GeneratePostsResponsePost {
5754
+ class Post {
5554
5755
  static fromProto(proto) {
5555
- let m = new GeneratePostsResponsePost();
5756
+ let m = new Post();
5556
5757
  m = Object.assign(m, proto);
5557
- if (proto.imageResponse) {
5558
- m.imageResponse = GeneratePostsResponseImageResponse.fromProto(proto.imageResponse);
5758
+ if (proto.postContent) {
5759
+ m.postContent = proto.postContent.map(PostContent.fromProto);
5559
5760
  }
5560
5761
  return m;
5561
5762
  }
@@ -5567,21 +5768,21 @@ class GeneratePostsResponsePost {
5567
5768
  }
5568
5769
  toApiJson() {
5569
5770
  const toReturn = {};
5570
- if (typeof this.text !== 'undefined') {
5571
- toReturn['text'] = this.text;
5771
+ if (typeof this.topic !== 'undefined') {
5772
+ toReturn['topic'] = this.topic;
5572
5773
  }
5573
- if (typeof this.imageResponse !== 'undefined' && this.imageResponse !== null) {
5574
- toReturn['imageResponse'] = 'toApiJson' in this.imageResponse ? this.imageResponse.toApiJson() : this.imageResponse;
5774
+ if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
5775
+ toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
5575
5776
  }
5576
5777
  return toReturn;
5577
5778
  }
5578
5779
  }
5579
- class Post {
5780
+ class GeneratePostsResponsePost {
5580
5781
  static fromProto(proto) {
5581
- let m = new Post();
5782
+ let m = new GeneratePostsResponsePost();
5582
5783
  m = Object.assign(m, proto);
5583
- if (proto.postContent) {
5584
- m.postContent = proto.postContent.map(PostContent.fromProto);
5784
+ if (proto.imageResponse) {
5785
+ m.imageResponse = GeneratePostsResponseImageResponse.fromProto(proto.imageResponse);
5585
5786
  }
5586
5787
  return m;
5587
5788
  }
@@ -5593,11 +5794,11 @@ class Post {
5593
5794
  }
5594
5795
  toApiJson() {
5595
5796
  const toReturn = {};
5596
- if (typeof this.topic !== 'undefined') {
5597
- toReturn['topic'] = this.topic;
5797
+ if (typeof this.text !== 'undefined') {
5798
+ toReturn['text'] = this.text;
5598
5799
  }
5599
- if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
5600
- toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
5800
+ if (typeof this.imageResponse !== 'undefined' && this.imageResponse !== null) {
5801
+ toReturn['imageResponse'] = 'toApiJson' in this.imageResponse ? this.imageResponse.toApiJson() : this.imageResponse;
5601
5802
  }
5602
5803
  return toReturn;
5603
5804
  }
@@ -5799,6 +6000,74 @@ class SocialPostResponse {
5799
6000
  return toReturn;
5800
6001
  }
5801
6002
  }
6003
+ class SocialService {
6004
+ static fromProto(proto) {
6005
+ let m = new SocialService();
6006
+ m = Object.assign(m, proto);
6007
+ return m;
6008
+ }
6009
+ constructor(kwargs) {
6010
+ if (!kwargs) {
6011
+ return;
6012
+ }
6013
+ Object.assign(this, kwargs);
6014
+ }
6015
+ toApiJson() {
6016
+ const toReturn = {};
6017
+ if (typeof this.ssid !== 'undefined') {
6018
+ toReturn['ssid'] = this.ssid;
6019
+ }
6020
+ if (typeof this.spid !== 'undefined') {
6021
+ toReturn['spid'] = this.spid;
6022
+ }
6023
+ if (typeof this.accountGroupId !== 'undefined') {
6024
+ toReturn['accountGroupId'] = this.accountGroupId;
6025
+ }
6026
+ if (typeof this.isAuthenticated !== 'undefined') {
6027
+ toReturn['isAuthenticated'] = this.isAuthenticated;
6028
+ }
6029
+ if (typeof this.profileUrl !== 'undefined') {
6030
+ toReturn['profileUrl'] = this.profileUrl;
6031
+ }
6032
+ if (typeof this.profileImageUrl !== 'undefined') {
6033
+ toReturn['profileImageUrl'] = this.profileImageUrl;
6034
+ }
6035
+ if (typeof this.serviceType !== 'undefined') {
6036
+ toReturn['serviceType'] = this.serviceType;
6037
+ }
6038
+ if (typeof this.socialProfileId !== 'undefined') {
6039
+ toReturn['socialProfileId'] = this.socialProfileId;
6040
+ }
6041
+ if (typeof this.isSyncing !== 'undefined') {
6042
+ toReturn['isSyncing'] = this.isSyncing;
6043
+ }
6044
+ if (typeof this.clientTags !== 'undefined') {
6045
+ toReturn['clientTags'] = this.clientTags;
6046
+ }
6047
+ if (typeof this.serviceId !== 'undefined') {
6048
+ toReturn['serviceId'] = this.serviceId;
6049
+ }
6050
+ if (typeof this.isDisabledFlag !== 'undefined') {
6051
+ toReturn['isDisabledFlag'] = this.isDisabledFlag;
6052
+ }
6053
+ if (typeof this.socialTokenBroken !== 'undefined') {
6054
+ toReturn['socialTokenBroken'] = this.socialTokenBroken;
6055
+ }
6056
+ if (typeof this.name !== 'undefined') {
6057
+ toReturn['name'] = this.name;
6058
+ }
6059
+ if (typeof this.fullName !== 'undefined') {
6060
+ toReturn['fullName'] = this.fullName;
6061
+ }
6062
+ if (typeof this.collectPostsFlag !== 'undefined') {
6063
+ toReturn['collectPostsFlag'] = this.collectPostsFlag;
6064
+ }
6065
+ if (typeof this.collectStatsFlag !== 'undefined') {
6066
+ toReturn['collectStatsFlag'] = this.collectStatsFlag;
6067
+ }
6068
+ return toReturn;
6069
+ }
6070
+ }
5802
6071
  class TitleGeneration {
5803
6072
  static fromProto(proto) {
5804
6073
  let m = new TitleGeneration();
@@ -8164,6 +8433,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8164
8433
  args: [{ providedIn: 'root' }]
8165
8434
  }] });
8166
8435
 
8436
+ // *********************************
8437
+ // Code generated by sdkgen
8438
+ // DO NOT EDIT!.
8439
+ //
8440
+ // API Service.
8441
+ // *********************************
8442
+ class PexelsImagesApiService {
8443
+ constructor() {
8444
+ this.hostService = inject(HostService);
8445
+ this.http = inject(HttpClient);
8446
+ this._host = this.hostService.hostWithScheme;
8447
+ }
8448
+ apiOptions() {
8449
+ return {
8450
+ headers: new HttpHeaders({
8451
+ 'Content-Type': 'application/json'
8452
+ }),
8453
+ withCredentials: true
8454
+ };
8455
+ }
8456
+ listPexelsImages(r) {
8457
+ const request = (r.toApiJson) ? r : new ListPexelsImagesRequest(r);
8458
+ return this.http.post(this._host + "/socialposts.v1.PexelsImages/ListPexelsImages", request.toApiJson(), this.apiOptions())
8459
+ .pipe(map(resp => ListPexelsImagesResponse.fromProto(resp)));
8460
+ }
8461
+ }
8462
+ PexelsImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PexelsImagesApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8463
+ PexelsImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PexelsImagesApiService, providedIn: 'root' });
8464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PexelsImagesApiService, decorators: [{
8465
+ type: Injectable,
8466
+ args: [{ providedIn: 'root' }]
8467
+ }] });
8468
+
8167
8469
  // *********************************
8168
8470
  // Code generated by sdkgen
8169
8471
  // DO NOT EDIT!.
@@ -8284,6 +8586,16 @@ class SocialPostsV2ApiService {
8284
8586
  const request = (r.toApiJson) ? r : new RepostSocialPostRequest(r);
8285
8587
  return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/RepostSocialPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
8286
8588
  }
8589
+ listPostableSocialServices(r) {
8590
+ const request = (r.toApiJson) ? r : new ListPostableSocialServiceRequest(r);
8591
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/ListPostableSocialServices", request.toApiJson(), this.apiOptions())
8592
+ .pipe(map(resp => ListPostableSocialServiceResponse.fromProto(resp)));
8593
+ }
8594
+ getMediaMetadataFromUrl(r) {
8595
+ const request = (r.toApiJson) ? r : new GetMediaMetadataFromURLRequest(r);
8596
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GetMediaMetadataFromURL", request.toApiJson(), this.apiOptions())
8597
+ .pipe(map(resp => GetMediaMetadataFromURLResponse.fromProto(resp)));
8598
+ }
8287
8599
  }
8288
8600
  SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8289
8601
  SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
@@ -8786,6 +9098,14 @@ class SocialPostsV2Service {
8786
9098
  const repostRequest = new RepostSocialPostRequest({ socialPostId: socialPostId, accountGroupId: businessId });
8787
9099
  return this.socialpostV2ApiService.repostSocialPost(repostRequest);
8788
9100
  }
9101
+ listPostableSocialServices(businessId) {
9102
+ const listPostableSocialServiceRequest = new ListPostableSocialServiceRequest({ businessId: businessId });
9103
+ return this.socialpostV2ApiService.listPostableSocialServices(listPostableSocialServiceRequest);
9104
+ }
9105
+ getMediaMetadataFromUrl(url) {
9106
+ const urlRequest = new GetMediaMetadataFromURLRequest({ url: url });
9107
+ return this.socialpostV2ApiService.getMediaMetadataFromUrl(urlRequest);
9108
+ }
8789
9109
  }
8790
9110
  SocialPostsV2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, deps: [{ token: SocialPostsV2ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
8791
9111
  SocialPostsV2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, providedIn: 'root' });
@@ -8979,5 +9299,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8979
9299
  * Generated bundle index. Do not edit.
8980
9300
  */
8981
9301
 
8982
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
9302
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
8983
9303
  //# sourceMappingURL=vendasta-social-posts.mjs.map