@vendasta/social-posts 5.19.2 → 5.19.4

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.
@@ -3596,6 +3596,9 @@ class Photo {
3596
3596
  if (typeof this.tags !== 'undefined' && this.tags !== null) {
3597
3597
  toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;
3598
3598
  }
3599
+ if (typeof this.storageUrl !== 'undefined') {
3600
+ toReturn['storageUrl'] = this.storageUrl;
3601
+ }
3599
3602
  return toReturn;
3600
3603
  }
3601
3604
  }
@@ -4296,6 +4299,9 @@ class ListUnsplashImagesRequest {
4296
4299
  if (typeof this.random !== 'undefined') {
4297
4300
  toReturn['random'] = this.random;
4298
4301
  }
4302
+ if (typeof this.includeLocalUrl !== 'undefined') {
4303
+ toReturn['includeLocalUrl'] = this.includeLocalUrl;
4304
+ }
4299
4305
  return toReturn;
4300
4306
  }
4301
4307
  }
@@ -4673,6 +4679,9 @@ class UploadToStorageRequest {
4673
4679
  if (typeof this.mediaType !== 'undefined') {
4674
4680
  toReturn['mediaType'] = this.mediaType;
4675
4681
  }
4682
+ if (typeof this.agid !== 'undefined') {
4683
+ toReturn['agid'] = this.agid;
4684
+ }
4676
4685
  return toReturn;
4677
4686
  }
4678
4687
  }
@@ -5695,12 +5704,18 @@ class UnsplashImageService {
5695
5704
  constructor(unsplashApiService) {
5696
5705
  this.unsplashApiService = unsplashApiService;
5697
5706
  }
5698
- listUnsplashImages(query, page = 1, perPage = 20, orderBy = "relevent", orientation = "squarish") {
5707
+ listUnsplashImages(query, page = 1, perPage = 20, orderBy = "relevent", orientation = "squarish", includeLocalUrl = false) {
5699
5708
  const request = new ListUnsplashImagesRequest({
5700
- query: query, page: page, perPage: perPage, orderBy: orderBy, orientation: orientation,
5709
+ query: query, page: page, perPage: perPage, orderBy: orderBy, orientation: orientation, includeLocalUrl: includeLocalUrl
5701
5710
  });
5702
5711
  return this.unsplashApiService.listUnsplashImages(request);
5703
5712
  }
5713
+ uploadToStorage(url, agid) {
5714
+ const request = new UploadToStorageRequest({
5715
+ url: url, agid: agid
5716
+ });
5717
+ return this.unsplashApiService.uploadToStorage(request);
5718
+ }
5704
5719
  }
5705
5720
  UnsplashImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashImageService, deps: [{ token: UnsplashApiService }], target: i0.ɵɵFactoryTarget.Injectable });
5706
5721
  UnsplashImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashImageService, providedIn: 'root' });