@aurigma/ng-design-atoms-api-client 2.44.1 → 2.48.1

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.
@@ -53,7 +53,7 @@ class BuildInfoApiClient extends ApiClientBase {
53
53
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
54
54
  }
55
55
  /**
56
- * Gets assembly build info
56
+ * Get assembly build info.
57
57
  * @return Success
58
58
  */
59
59
  headInfo() {
@@ -111,7 +111,7 @@ class BuildInfoApiClient extends ApiClientBase {
111
111
  return of(null);
112
112
  }
113
113
  /**
114
- * Gets assembly build info
114
+ * Get assembly build info.
115
115
  * @return Success
116
116
  */
117
117
  getInfo() {
@@ -825,9 +825,11 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
825
825
  * @param alphaMask (optional)
826
826
  * @param page (optional)
827
827
  * @param colorizeColor (optional)
828
+ * @param rw (optional)
829
+ * @param rh (optional)
828
830
  * @return Success
829
831
  */
830
- img(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor) {
832
+ img(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
831
833
  let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/img?";
832
834
  if (tenantId === undefined || tenantId === null)
833
835
  throw new Error("The parameter 'tenantId' must be defined.");
@@ -864,6 +866,10 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
864
866
  url_ += "page=" + encodeURIComponent("" + page) + "&";
865
867
  if (colorizeColor !== undefined && colorizeColor !== null)
866
868
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
869
+ if (rw !== undefined && rw !== null)
870
+ url_ += "rw=" + encodeURIComponent("" + rw) + "&";
871
+ if (rh !== undefined && rh !== null)
872
+ url_ += "rh=" + encodeURIComponent("" + rh) + "&";
867
873
  url_ = url_.replace(/[?&]$/, "");
868
874
  let options_ = {
869
875
  observe: "response",
@@ -1148,15 +1154,66 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1148
1154
  }
1149
1155
  /**
1150
1156
  * @param f (optional)
1157
+ * @param w (optional)
1158
+ * @param h (optional)
1159
+ * @param cmyk (optional)
1160
+ * @param rgb (optional)
1161
+ * @param grayscale (optional)
1162
+ * @param target (optional)
1163
+ * @param sq (optional)
1164
+ * @param effect (optional)
1165
+ * @param kp (optional)
1166
+ * @param color (optional)
1167
+ * @param obm (optional)
1168
+ * @param oo (optional)
1169
+ * @param alphaMask (optional)
1170
+ * @param page (optional)
1171
+ * @param colorizeColor (optional)
1172
+ * @param rw (optional)
1173
+ * @param rh (optional)
1151
1174
  * @return Success
1152
1175
  */
1153
- svg(tenantId, f) {
1176
+ svg(tenantId, f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh) {
1154
1177
  let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/svg?";
1155
1178
  if (tenantId === undefined || tenantId === null)
1156
1179
  throw new Error("The parameter 'tenantId' must be defined.");
1157
1180
  url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
1158
1181
  if (f !== undefined && f !== null)
1159
1182
  url_ += "f=" + encodeURIComponent("" + f) + "&";
1183
+ if (w !== undefined && w !== null)
1184
+ url_ += "w=" + encodeURIComponent("" + w) + "&";
1185
+ if (h !== undefined && h !== null)
1186
+ url_ += "h=" + encodeURIComponent("" + h) + "&";
1187
+ if (cmyk !== undefined && cmyk !== null)
1188
+ url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
1189
+ if (rgb !== undefined && rgb !== null)
1190
+ url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
1191
+ if (grayscale !== undefined && grayscale !== null)
1192
+ url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
1193
+ if (target !== undefined && target !== null)
1194
+ url_ += "target=" + encodeURIComponent("" + target) + "&";
1195
+ if (sq !== undefined && sq !== null)
1196
+ url_ += "sq=" + encodeURIComponent("" + sq) + "&";
1197
+ if (effect !== undefined && effect !== null)
1198
+ url_ += "effect=" + encodeURIComponent("" + effect) + "&";
1199
+ if (kp !== undefined && kp !== null)
1200
+ url_ += "kp=" + encodeURIComponent("" + kp) + "&";
1201
+ if (color !== undefined && color !== null)
1202
+ url_ += "color=" + encodeURIComponent("" + color) + "&";
1203
+ if (obm !== undefined && obm !== null)
1204
+ url_ += "obm=" + encodeURIComponent("" + obm) + "&";
1205
+ if (oo !== undefined && oo !== null)
1206
+ url_ += "oo=" + encodeURIComponent("" + oo) + "&";
1207
+ if (alphaMask !== undefined && alphaMask !== null)
1208
+ url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
1209
+ if (page !== undefined && page !== null)
1210
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
1211
+ if (colorizeColor !== undefined && colorizeColor !== null)
1212
+ url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
1213
+ if (rw !== undefined && rw !== null)
1214
+ url_ += "rw=" + encodeURIComponent("" + rw) + "&";
1215
+ if (rh !== undefined && rh !== null)
1216
+ url_ += "rh=" + encodeURIComponent("" + rh) + "&";
1160
1217
  url_ = url_.replace(/[?&]$/, "");
1161
1218
  let options_ = {
1162
1219
  observe: "response",
@@ -3061,6 +3118,97 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
3061
3118
  }
3062
3119
  return of(null);
3063
3120
  }
3121
+ /**
3122
+ * Returns design parameters stored in product model.
3123
+ * @param id Design identifier.
3124
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3125
+ * @param tenantId (optional) Tenant identifier
3126
+ * @return Success
3127
+ */
3128
+ getDesignParameters(id, privateStorageOwner, tenantId) {
3129
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/parameters?";
3130
+ if (id === undefined || id === null)
3131
+ throw new Error("The parameter 'id' must be defined.");
3132
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3133
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3134
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3135
+ if (tenantId === null)
3136
+ throw new Error("The parameter 'tenantId' cannot be null.");
3137
+ else if (tenantId !== undefined)
3138
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3139
+ url_ = url_.replace(/[?&]$/, "");
3140
+ let options_ = {
3141
+ observe: "response",
3142
+ responseType: "blob",
3143
+ headers: new HttpHeaders({
3144
+ "Accept": "application/json"
3145
+ })
3146
+ };
3147
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3148
+ return this.http.request("get", url_, transformedOptions_);
3149
+ })).pipe(mergeMap((response_) => {
3150
+ return this.transformResult(url_, response_, (r) => this.processGetDesignParameters(r));
3151
+ })).pipe(catchError((response_) => {
3152
+ if (response_ instanceof HttpResponseBase) {
3153
+ try {
3154
+ return this.transformResult(url_, response_, (r) => this.processGetDesignParameters(r));
3155
+ }
3156
+ catch (e) {
3157
+ return throwError(e);
3158
+ }
3159
+ }
3160
+ else
3161
+ return throwError(response_);
3162
+ }));
3163
+ }
3164
+ processGetDesignParameters(response) {
3165
+ const status = response.status;
3166
+ const responseBlob = response instanceof HttpResponse ? response.body :
3167
+ response.error instanceof Blob ? response.error : undefined;
3168
+ let _headers = {};
3169
+ if (response.headers) {
3170
+ for (let key of response.headers.keys()) {
3171
+ _headers[key] = response.headers.get(key);
3172
+ }
3173
+ }
3174
+ if (status === 200) {
3175
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3176
+ let result200 = null;
3177
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3178
+ return of(result200);
3179
+ }));
3180
+ }
3181
+ else if (status === 404) {
3182
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3183
+ let result404 = null;
3184
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3185
+ return throwException("Not Found", status, _responseText, _headers, result404);
3186
+ }));
3187
+ }
3188
+ else if (status === 401) {
3189
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3190
+ return throwException("Unauthorized", status, _responseText, _headers);
3191
+ }));
3192
+ }
3193
+ else if (status === 403) {
3194
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3195
+ return throwException("Forbidden", status, _responseText, _headers);
3196
+ }));
3197
+ }
3198
+ else if (status === 500) {
3199
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3200
+ let result500 = null;
3201
+ result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3202
+ return throwException("Internal server error", status, _responseText, _headers, result500);
3203
+ }));
3204
+ }
3205
+ else if (status !== 200 && status !== 204) {
3206
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3207
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3208
+ }));
3209
+ }
3210
+ return of(null);
3211
+ }
3064
3212
  /**
3065
3213
  * Loads data schema from design file taken from storage
3066
3214
  * @param id Design identifier
@@ -5012,10 +5160,12 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5012
5160
  * @param alphaMask (optional)
5013
5161
  * @param page (optional)
5014
5162
  * @param colorizeColor (optional)
5163
+ * @param rw (optional)
5164
+ * @param rh (optional)
5015
5165
  * @param tenantId (optional) Tenant identifier
5016
5166
  * @return Success
5017
5167
  */
5018
- img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, tenantId) {
5168
+ img(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
5019
5169
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/img?";
5020
5170
  if (f !== undefined && f !== null)
5021
5171
  url_ += "f=" + encodeURIComponent("" + f) + "&";
@@ -5049,6 +5199,10 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5049
5199
  url_ += "page=" + encodeURIComponent("" + page) + "&";
5050
5200
  if (colorizeColor !== undefined && colorizeColor !== null)
5051
5201
  url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
5202
+ if (rw !== undefined && rw !== null)
5203
+ url_ += "rw=" + encodeURIComponent("" + rw) + "&";
5204
+ if (rh !== undefined && rh !== null)
5205
+ url_ += "rh=" + encodeURIComponent("" + rh) + "&";
5052
5206
  if (tenantId === null)
5053
5207
  throw new Error("The parameter 'tenantId' cannot be null.");
5054
5208
  else if (tenantId !== undefined)
@@ -5343,13 +5497,64 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
5343
5497
  }
5344
5498
  /**
5345
5499
  * @param f (optional)
5500
+ * @param w (optional)
5501
+ * @param h (optional)
5502
+ * @param cmyk (optional)
5503
+ * @param rgb (optional)
5504
+ * @param grayscale (optional)
5505
+ * @param target (optional)
5506
+ * @param sq (optional)
5507
+ * @param effect (optional)
5508
+ * @param kp (optional)
5509
+ * @param color (optional)
5510
+ * @param obm (optional)
5511
+ * @param oo (optional)
5512
+ * @param alphaMask (optional)
5513
+ * @param page (optional)
5514
+ * @param colorizeColor (optional)
5515
+ * @param rw (optional)
5516
+ * @param rh (optional)
5346
5517
  * @param tenantId (optional) Tenant identifier
5347
5518
  * @return Success
5348
5519
  */
5349
- svg(f, tenantId) {
5520
+ svg(f, w, h, cmyk, rgb, grayscale, target, sq, effect, kp, color, obm, oo, alphaMask, page, colorizeColor, rw, rh, tenantId) {
5350
5521
  let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/svg?";
5351
5522
  if (f !== undefined && f !== null)
5352
5523
  url_ += "f=" + encodeURIComponent("" + f) + "&";
5524
+ if (w !== undefined && w !== null)
5525
+ url_ += "w=" + encodeURIComponent("" + w) + "&";
5526
+ if (h !== undefined && h !== null)
5527
+ url_ += "h=" + encodeURIComponent("" + h) + "&";
5528
+ if (cmyk !== undefined && cmyk !== null)
5529
+ url_ += "cmyk=" + encodeURIComponent("" + cmyk) + "&";
5530
+ if (rgb !== undefined && rgb !== null)
5531
+ url_ += "rgb=" + encodeURIComponent("" + rgb) + "&";
5532
+ if (grayscale !== undefined && grayscale !== null)
5533
+ url_ += "grayscale=" + encodeURIComponent("" + grayscale) + "&";
5534
+ if (target !== undefined && target !== null)
5535
+ url_ += "target=" + encodeURIComponent("" + target) + "&";
5536
+ if (sq !== undefined && sq !== null)
5537
+ url_ += "sq=" + encodeURIComponent("" + sq) + "&";
5538
+ if (effect !== undefined && effect !== null)
5539
+ url_ += "effect=" + encodeURIComponent("" + effect) + "&";
5540
+ if (kp !== undefined && kp !== null)
5541
+ url_ += "kp=" + encodeURIComponent("" + kp) + "&";
5542
+ if (color !== undefined && color !== null)
5543
+ url_ += "color=" + encodeURIComponent("" + color) + "&";
5544
+ if (obm !== undefined && obm !== null)
5545
+ url_ += "obm=" + encodeURIComponent("" + obm) + "&";
5546
+ if (oo !== undefined && oo !== null)
5547
+ url_ += "oo=" + encodeURIComponent("" + oo) + "&";
5548
+ if (alphaMask !== undefined && alphaMask !== null)
5549
+ url_ += "alphaMask=" + encodeURIComponent("" + alphaMask) + "&";
5550
+ if (page !== undefined && page !== null)
5551
+ url_ += "page=" + encodeURIComponent("" + page) + "&";
5552
+ if (colorizeColor !== undefined && colorizeColor !== null)
5553
+ url_ += "colorizeColor=" + encodeURIComponent("" + colorizeColor) + "&";
5554
+ if (rw !== undefined && rw !== null)
5555
+ url_ += "rw=" + encodeURIComponent("" + rw) + "&";
5556
+ if (rh !== undefined && rh !== null)
5557
+ url_ += "rh=" + encodeURIComponent("" + rh) + "&";
5353
5558
  if (tenantId === null)
5354
5559
  throw new Error("The parameter 'tenantId' cannot be null.");
5355
5560
  else if (tenantId !== undefined)
@@ -6296,9 +6501,15 @@ var ImagePreviewFormat;
6296
6501
  (function (ImagePreviewFormat) {
6297
6502
  ImagePreviewFormat["Jpeg"] = "Jpeg";
6298
6503
  ImagePreviewFormat["Png"] = "Png";
6299
- ImagePreviewFormat["Tiff"] = "Tiff";
6300
- ImagePreviewFormat["Pdf"] = "Pdf";
6301
6504
  })(ImagePreviewFormat || (ImagePreviewFormat = {}));
6505
+ /** Image preview fit mode. */
6506
+ var ImagePreviewFitMode;
6507
+ (function (ImagePreviewFitMode) {
6508
+ ImagePreviewFitMode["Fit"] = "Fit";
6509
+ ImagePreviewFitMode["Shrink"] = "Shrink";
6510
+ ImagePreviewFitMode["Resize"] = "Resize";
6511
+ ImagePreviewFitMode["Fill"] = "Fill";
6512
+ })(ImagePreviewFitMode || (ImagePreviewFitMode = {}));
6302
6513
  var DesignElementType;
6303
6514
  (function (DesignElementType) {
6304
6515
  DesignElementType["Product"] = "Product";
@@ -6339,8 +6550,6 @@ var ProductPreviewFormat;
6339
6550
  (function (ProductPreviewFormat) {
6340
6551
  ProductPreviewFormat["Jpeg"] = "Jpeg";
6341
6552
  ProductPreviewFormat["Png"] = "Png";
6342
- ProductPreviewFormat["Tiff"] = "Tiff";
6343
- ProductPreviewFormat["Pdf"] = "Pdf";
6344
6553
  })(ProductPreviewFormat || (ProductPreviewFormat = {}));
6345
6554
  var ProductProofFormat;
6346
6555
  (function (ProductProofFormat) {
@@ -6441,5 +6650,5 @@ DesignAtomsApiModule.decorators = [
6441
6650
  * Generated bundle index. Do not edit.
6442
6651
  */
6443
6652
 
6444
- export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ColorSpace, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
6653
+ export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ColorSpace, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
6445
6654
  //# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map