@vendasta/social-posts 5.12.1 → 5.13.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.
@@ -3843,6 +3843,11 @@ class SocialPostsV2ApiService {
3843
3843
  return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GetImageByUrl", request.toApiJson(), this.apiOptions())
3844
3844
  .pipe(map(resp => ImageBlob.fromProto(resp)));
3845
3845
  }
3846
+ generateVariations(r) {
3847
+ const request = (r.toApiJson) ? r : new ImageUrl(r);
3848
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GenerateVariations", request.toApiJson(), this.apiOptions())
3849
+ .pipe(map(resp => CreateImageResponse.fromProto(resp)));
3850
+ }
3846
3851
  }
3847
3852
  SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SocialPostsV2ApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3848
3853
  SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
@@ -4149,6 +4154,10 @@ class SocialPostsV2Service {
4149
4154
  const urlRequest = new ImageUrl({ url: url });
4150
4155
  return this.socialpostV2ApiService.getImageByUrl(urlRequest);
4151
4156
  }
4157
+ generateVariations(url) {
4158
+ const urlRequest = new ImageUrl({ url: url });
4159
+ return this.socialpostV2ApiService.generateVariations(urlRequest);
4160
+ }
4152
4161
  }
4153
4162
  SocialPostsV2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SocialPostsV2Service, deps: [{ token: SocialPostsV2ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
4154
4163
  SocialPostsV2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SocialPostsV2Service, providedIn: 'root' });