@vendasta/social-posts 5.19.2 → 5.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api-v2.mjs +4 -1
- package/esm2020/lib/unsplash-image.service.mjs +8 -2
- package/fesm2015/vendasta-social-posts.mjs +9 -0
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +9 -0
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/interfaces/api-v2.interface.d.ts +1 -0
- package/lib/_internal/objects/api-v2.d.ts +1 -0
- package/lib/unsplash-image.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4673,6 +4673,9 @@ class UploadToStorageRequest {
|
|
|
4673
4673
|
if (typeof this.mediaType !== 'undefined') {
|
|
4674
4674
|
toReturn['mediaType'] = this.mediaType;
|
|
4675
4675
|
}
|
|
4676
|
+
if (typeof this.agid !== 'undefined') {
|
|
4677
|
+
toReturn['agid'] = this.agid;
|
|
4678
|
+
}
|
|
4676
4679
|
return toReturn;
|
|
4677
4680
|
}
|
|
4678
4681
|
}
|
|
@@ -5701,6 +5704,12 @@ class UnsplashImageService {
|
|
|
5701
5704
|
});
|
|
5702
5705
|
return this.unsplashApiService.listUnsplashImages(request);
|
|
5703
5706
|
}
|
|
5707
|
+
uploadToStorage(url, agid) {
|
|
5708
|
+
const request = new UploadToStorageRequest({
|
|
5709
|
+
url: url, agid: agid
|
|
5710
|
+
});
|
|
5711
|
+
return this.unsplashApiService.uploadToStorage(request);
|
|
5712
|
+
}
|
|
5704
5713
|
}
|
|
5705
5714
|
UnsplashImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashImageService, deps: [{ token: UnsplashApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5706
5715
|
UnsplashImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashImageService, providedIn: 'root' });
|