@aurigma/ng-design-atoms-api-client 2.65.1 → 2.66.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.
@@ -378,6 +378,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
378
378
  return of(result200);
379
379
  }));
380
380
  }
381
+ else if (status === 400) {
382
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
383
+ let result400 = null;
384
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
385
+ return throwException("Bad Request", status, _responseText, _headers, result400);
386
+ }));
387
+ }
381
388
  else if (status === 401) {
382
389
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
383
390
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -449,6 +456,13 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
449
456
  return of(result200);
450
457
  }));
451
458
  }
459
+ else if (status === 400) {
460
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
461
+ let result400 = null;
462
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
463
+ return throwException("Bad Request", status, _responseText, _headers, result400);
464
+ }));
465
+ }
452
466
  else if (status === 401) {
453
467
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
454
468
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -482,7 +496,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
482
496
  observe: "response",
483
497
  responseType: "blob",
484
498
  headers: new HttpHeaders({
485
- "Accept": "application/json"
499
+ "Accept": "application/octet-stream"
486
500
  })
487
501
  };
488
502
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -889,7 +903,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
889
903
  observe: "response",
890
904
  responseType: "blob",
891
905
  headers: new HttpHeaders({
892
- "Accept": "application/json"
906
+ "Accept": "application/octet-stream"
893
907
  })
894
908
  };
895
909
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -1037,7 +1051,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1037
1051
  observe: "response",
1038
1052
  responseType: "blob",
1039
1053
  headers: new HttpHeaders({
1040
- "Accept": "application/json"
1054
+ "Accept": "application/octet-stream"
1041
1055
  })
1042
1056
  };
1043
1057
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -1118,7 +1132,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1118
1132
  observe: "response",
1119
1133
  responseType: "blob",
1120
1134
  headers: new HttpHeaders({
1121
- "Accept": "application/json"
1135
+ "Accept": "application/octet-stream"
1122
1136
  })
1123
1137
  };
1124
1138
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -1245,7 +1259,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1245
1259
  observe: "response",
1246
1260
  responseType: "blob",
1247
1261
  headers: new HttpHeaders({
1248
- "Accept": "application/json"
1262
+ "Accept": "application/octet-stream"
1249
1263
  })
1250
1264
  };
1251
1265
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -1326,7 +1340,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
1326
1340
  observe: "response",
1327
1341
  responseType: "blob",
1328
1342
  headers: new HttpHeaders({
1329
- "Accept": "application/json"
1343
+ "Accept": "application/octet-stream"
1330
1344
  })
1331
1345
  };
1332
1346
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -2251,6 +2265,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2251
2265
  const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2252
2266
  return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2253
2267
  }
2268
+ else if (status === 404) {
2269
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2270
+ let result404 = null;
2271
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2272
+ return throwException("Not Found", status, _responseText, _headers, result404);
2273
+ }));
2274
+ }
2254
2275
  else if (status === 401) {
2255
2276
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2256
2277
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -2347,6 +2368,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2347
2368
  const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2348
2369
  return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2349
2370
  }
2371
+ else if (status === 404) {
2372
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2373
+ let result404 = null;
2374
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2375
+ return throwException("Not Found", status, _responseText, _headers, result404);
2376
+ }));
2377
+ }
2350
2378
  else if (status === 401) {
2351
2379
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2352
2380
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -2401,13 +2429,9 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2401
2429
  content_.append("resourceSourceId", resourceSourceId.toString());
2402
2430
  if (resourceType !== null && resourceType !== undefined)
2403
2431
  content_.append("resourceType", resourceType.toString());
2404
- if (anonymousAccess === null || anonymousAccess === undefined)
2405
- throw new Error("The parameter 'anonymousAccess' cannot be null.");
2406
- else
2432
+ if (anonymousAccess !== null && anonymousAccess !== undefined)
2407
2433
  content_.append("anonymousAccess", anonymousAccess.toString());
2408
- if (overwriteExistingResource === null || overwriteExistingResource === undefined)
2409
- throw new Error("The parameter 'overwriteExistingResource' cannot be null.");
2410
- else
2434
+ if (overwriteExistingResource !== null && overwriteExistingResource !== undefined)
2411
2435
  content_.append("overwriteExistingResource", overwriteExistingResource.toString());
2412
2436
  if (sourceFile !== null && sourceFile !== undefined)
2413
2437
  content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
@@ -2465,6 +2489,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2465
2489
  return of(result200);
2466
2490
  }));
2467
2491
  }
2492
+ else if (status === 404) {
2493
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2494
+ let result404 = null;
2495
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2496
+ return throwException("Not Found", status, _responseText, _headers, result404);
2497
+ }));
2498
+ }
2468
2499
  else if (status === 409) {
2469
2500
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2470
2501
  let result409 = null;
@@ -2549,6 +2580,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2549
2580
  const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2550
2581
  return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2551
2582
  }
2583
+ else if (status === 404) {
2584
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2585
+ let result404 = null;
2586
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2587
+ return throwException("Not Found", status, _responseText, _headers, result404);
2588
+ }));
2589
+ }
2552
2590
  else if (status === 401) {
2553
2591
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2554
2592
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -2623,6 +2661,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2623
2661
  return of(result200);
2624
2662
  }));
2625
2663
  }
2664
+ else if (status === 404) {
2665
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2666
+ let result404 = null;
2667
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2668
+ return throwException("Not Found", status, _responseText, _headers, result404);
2669
+ }));
2670
+ }
2626
2671
  else if (status === 409) {
2627
2672
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2628
2673
  let result409 = null;
@@ -2704,6 +2749,13 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
2704
2749
  return of(result200);
2705
2750
  }));
2706
2751
  }
2752
+ else if (status === 404) {
2753
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2754
+ let result404 = null;
2755
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2756
+ return throwException("Not Found", status, _responseText, _headers, result404);
2757
+ }));
2758
+ }
2707
2759
  else if (status === 409) {
2708
2760
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
2709
2761
  let result409 = null;
@@ -2861,7 +2913,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2861
2913
  observe: "response",
2862
2914
  responseType: "blob",
2863
2915
  headers: new HttpHeaders({
2864
- "Accept": "application/json"
2916
+ "Accept": "application/octet-stream"
2865
2917
  })
2866
2918
  };
2867
2919
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -2951,7 +3003,7 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
2951
3003
  observe: "response",
2952
3004
  responseType: "blob",
2953
3005
  headers: new HttpHeaders({
2954
- "Accept": "application/json"
3006
+ "Accept": "application/octet-stream"
2955
3007
  })
2956
3008
  };
2957
3009
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -3030,7 +3082,7 @@ DesignAtomsMockups3dApiClient.ctorParameters = () => [
3030
3082
  { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
3031
3083
  { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
3032
3084
  ];
3033
- class DesignAtomsPrintProductApiClient extends ApiClientBase {
3085
+ class DesignAtomsPalettesApiClient extends ApiClientBase {
3034
3086
  constructor(configuration, http, baseUrl) {
3035
3087
  super(configuration);
3036
3088
  this.jsonParseReviver = undefined;
@@ -3038,20 +3090,1405 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3038
3090
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
3039
3091
  }
3040
3092
  /**
3041
- * Patches a print-product of the specified design file.
3093
+ * Returns a closest color to provided color in a specified palette.
3094
+ * @param paletteUID (optional) Palette UID.
3095
+ * @param tenantId (optional) Tenant identifier
3096
+ * @param body (optional) Source color.
3097
+ * @return Success
3098
+ */
3099
+ findPaletteColor(paletteUID, tenantId, body) {
3100
+ let url_ = this.baseUrl + "/api/atoms/v1/palettes/find-color?";
3101
+ if (paletteUID !== undefined && paletteUID !== null)
3102
+ url_ += "paletteUID=" + encodeURIComponent("" + paletteUID) + "&";
3103
+ if (tenantId === null)
3104
+ throw new Error("The parameter 'tenantId' cannot be null.");
3105
+ else if (tenantId !== undefined)
3106
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3107
+ url_ = url_.replace(/[?&]$/, "");
3108
+ const content_ = JSON.stringify(body);
3109
+ let options_ = {
3110
+ body: content_,
3111
+ observe: "response",
3112
+ responseType: "blob",
3113
+ headers: new HttpHeaders({
3114
+ "Content-Type": "application/json",
3115
+ "Accept": "application/json"
3116
+ })
3117
+ };
3118
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3119
+ return this.http.request("post", url_, transformedOptions_);
3120
+ })).pipe(mergeMap((response_) => {
3121
+ return this.transformResult(url_, response_, (r) => this.processFindPaletteColor(r));
3122
+ })).pipe(catchError((response_) => {
3123
+ if (response_ instanceof HttpResponseBase) {
3124
+ try {
3125
+ return this.transformResult(url_, response_, (r) => this.processFindPaletteColor(r));
3126
+ }
3127
+ catch (e) {
3128
+ return throwError(e);
3129
+ }
3130
+ }
3131
+ else
3132
+ return throwError(response_);
3133
+ }));
3134
+ }
3135
+ processFindPaletteColor(response) {
3136
+ const status = response.status;
3137
+ const responseBlob = response instanceof HttpResponse ? response.body :
3138
+ response.error instanceof Blob ? response.error : undefined;
3139
+ let _headers = {};
3140
+ if (response.headers) {
3141
+ for (let key of response.headers.keys()) {
3142
+ _headers[key] = response.headers.get(key);
3143
+ }
3144
+ }
3145
+ if (status === 200) {
3146
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3147
+ let result200 = null;
3148
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3149
+ return of(result200);
3150
+ }));
3151
+ }
3152
+ else if (status === 400) {
3153
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3154
+ let result400 = null;
3155
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3156
+ return throwException("Bad Request", status, _responseText, _headers, result400);
3157
+ }));
3158
+ }
3159
+ else if (status === 404) {
3160
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3161
+ let result404 = null;
3162
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3163
+ return throwException("Not Found", status, _responseText, _headers, result404);
3164
+ }));
3165
+ }
3166
+ else if (status === 409) {
3167
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3168
+ let result409 = null;
3169
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3170
+ return throwException("Conflict", status, _responseText, _headers, result409);
3171
+ }));
3172
+ }
3173
+ else if (status === 401) {
3174
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3175
+ return throwException("Unauthorized", status, _responseText, _headers);
3176
+ }));
3177
+ }
3178
+ else if (status === 403) {
3179
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3180
+ return throwException("Forbidden", status, _responseText, _headers);
3181
+ }));
3182
+ }
3183
+ else if (status !== 200 && status !== 204) {
3184
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3185
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3186
+ }));
3187
+ }
3188
+ return of(null);
3189
+ }
3190
+ /**
3191
+ * Returns a serialized palette model by its identifier or UID.
3192
+ * @param id (optional) Palette identifier.
3193
+ * @param uid (optional) Palette UID.
3194
+ * @param tenantId (optional) Tenant identifier
3195
+ * @return Success
3196
+ */
3197
+ getPaletteModel(id, uid, tenantId) {
3198
+ let url_ = this.baseUrl + "/api/atoms/v1/palettes/model?";
3199
+ if (id !== undefined && id !== null)
3200
+ url_ += "id=" + encodeURIComponent("" + id) + "&";
3201
+ if (uid !== undefined && uid !== null)
3202
+ url_ += "uid=" + encodeURIComponent("" + uid) + "&";
3203
+ if (tenantId === null)
3204
+ throw new Error("The parameter 'tenantId' cannot be null.");
3205
+ else if (tenantId !== undefined)
3206
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3207
+ url_ = url_.replace(/[?&]$/, "");
3208
+ let options_ = {
3209
+ observe: "response",
3210
+ responseType: "blob",
3211
+ headers: new HttpHeaders({
3212
+ "Accept": "application/json"
3213
+ })
3214
+ };
3215
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3216
+ return this.http.request("get", url_, transformedOptions_);
3217
+ })).pipe(mergeMap((response_) => {
3218
+ return this.transformResult(url_, response_, (r) => this.processGetPaletteModel(r));
3219
+ })).pipe(catchError((response_) => {
3220
+ if (response_ instanceof HttpResponseBase) {
3221
+ try {
3222
+ return this.transformResult(url_, response_, (r) => this.processGetPaletteModel(r));
3223
+ }
3224
+ catch (e) {
3225
+ return throwError(e);
3226
+ }
3227
+ }
3228
+ else
3229
+ return throwError(response_);
3230
+ }));
3231
+ }
3232
+ processGetPaletteModel(response) {
3233
+ const status = response.status;
3234
+ const responseBlob = response instanceof HttpResponse ? response.body :
3235
+ response.error instanceof Blob ? response.error : undefined;
3236
+ let _headers = {};
3237
+ if (response.headers) {
3238
+ for (let key of response.headers.keys()) {
3239
+ _headers[key] = response.headers.get(key);
3240
+ }
3241
+ }
3242
+ if (status === 200) {
3243
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3244
+ let result200 = null;
3245
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3246
+ return of(result200);
3247
+ }));
3248
+ }
3249
+ else if (status === 400) {
3250
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3251
+ let result400 = null;
3252
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3253
+ return throwException("Bad Request", status, _responseText, _headers, result400);
3254
+ }));
3255
+ }
3256
+ else if (status === 404) {
3257
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3258
+ let result404 = null;
3259
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3260
+ return throwException("Not Found", status, _responseText, _headers, result404);
3261
+ }));
3262
+ }
3263
+ else if (status === 409) {
3264
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3265
+ let result409 = null;
3266
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3267
+ return throwException("Conflict", status, _responseText, _headers, result409);
3268
+ }));
3269
+ }
3270
+ else if (status === 401) {
3271
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3272
+ return throwException("Unauthorized", status, _responseText, _headers);
3273
+ }));
3274
+ }
3275
+ else if (status === 403) {
3276
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3277
+ return throwException("Forbidden", status, _responseText, _headers);
3278
+ }));
3279
+ }
3280
+ else if (status !== 200 && status !== 204) {
3281
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3282
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3283
+ }));
3284
+ }
3285
+ return of(null);
3286
+ }
3287
+ }
3288
+ DesignAtomsPalettesApiClient.ɵprov = ɵɵdefineInjectable({ factory: function DesignAtomsPalettesApiClient_Factory() { return new DesignAtomsPalettesApiClient(ɵɵinject(ApiClientConfiguration), ɵɵinject(HttpClient), ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsPalettesApiClient, providedIn: "root" });
3289
+ DesignAtomsPalettesApiClient.decorators = [
3290
+ { type: Injectable, args: [{
3291
+ providedIn: 'root'
3292
+ },] }
3293
+ ];
3294
+ DesignAtomsPalettesApiClient.ctorParameters = () => [
3295
+ { type: ApiClientConfiguration, decorators: [{ type: Inject, args: [ApiClientConfiguration,] }] },
3296
+ { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
3297
+ { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
3298
+ ];
3299
+ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3300
+ constructor(configuration, http, baseUrl) {
3301
+ super(configuration);
3302
+ this.jsonParseReviver = undefined;
3303
+ this.http = http;
3304
+ this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
3305
+ }
3306
+ /**
3307
+ * Patches a print-product of the specified design file.
3308
+ * @param id Design identifier.
3309
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3310
+ * @param tenantId (optional) Tenant identifier
3311
+ * @param patchType (optional)
3312
+ * @param replaceImageItemFileInfo_itemName (optional)
3313
+ * @param replaceImageItemFileInfo_sourceFile (optional)
3314
+ * @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
3315
+ * @param replacePlaceholderItemContentInfo_newContentType (optional)
3316
+ * @param replacePlaceholderItemContentInfo_sourceFile (optional)
3317
+ * @return No Content
3318
+ */
3319
+ patchDesignProduct(id, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile) {
3320
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product?";
3321
+ if (id === undefined || id === null)
3322
+ throw new Error("The parameter 'id' must be defined.");
3323
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3324
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3325
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3326
+ if (tenantId === null)
3327
+ throw new Error("The parameter 'tenantId' cannot be null.");
3328
+ else if (tenantId !== undefined)
3329
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3330
+ url_ = url_.replace(/[?&]$/, "");
3331
+ const content_ = new FormData();
3332
+ if (patchType === null || patchType === undefined)
3333
+ throw new Error("The parameter 'patchType' cannot be null.");
3334
+ else
3335
+ content_.append("patchType", patchType.toString());
3336
+ if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
3337
+ content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
3338
+ if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
3339
+ content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
3340
+ if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
3341
+ content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
3342
+ if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
3343
+ throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
3344
+ else
3345
+ content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
3346
+ if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
3347
+ content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
3348
+ let options_ = {
3349
+ body: content_,
3350
+ observe: "response",
3351
+ responseType: "blob",
3352
+ headers: new HttpHeaders({})
3353
+ };
3354
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3355
+ return this.http.request("patch", url_, transformedOptions_);
3356
+ })).pipe(mergeMap((response_) => {
3357
+ return this.transformResult(url_, response_, (r) => this.processPatchDesignProduct(r));
3358
+ })).pipe(catchError((response_) => {
3359
+ if (response_ instanceof HttpResponseBase) {
3360
+ try {
3361
+ return this.transformResult(url_, response_, (r) => this.processPatchDesignProduct(r));
3362
+ }
3363
+ catch (e) {
3364
+ return throwError(e);
3365
+ }
3366
+ }
3367
+ else
3368
+ return throwError(response_);
3369
+ }));
3370
+ }
3371
+ processPatchDesignProduct(response) {
3372
+ const status = response.status;
3373
+ const responseBlob = response instanceof HttpResponse ? response.body :
3374
+ response.error instanceof Blob ? response.error : undefined;
3375
+ let _headers = {};
3376
+ if (response.headers) {
3377
+ for (let key of response.headers.keys()) {
3378
+ _headers[key] = response.headers.get(key);
3379
+ }
3380
+ }
3381
+ if (status === 204) {
3382
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3383
+ return of(null);
3384
+ }));
3385
+ }
3386
+ else if (status === 404) {
3387
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3388
+ let result404 = null;
3389
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3390
+ return throwException("Not Found", status, _responseText, _headers, result404);
3391
+ }));
3392
+ }
3393
+ else if (status === 401) {
3394
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3395
+ return throwException("Unauthorized", status, _responseText, _headers);
3396
+ }));
3397
+ }
3398
+ else if (status === 403) {
3399
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3400
+ return throwException("Forbidden", status, _responseText, _headers);
3401
+ }));
3402
+ }
3403
+ else if (status !== 200 && status !== 204) {
3404
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3405
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3406
+ }));
3407
+ }
3408
+ return of(null);
3409
+ }
3410
+ /**
3411
+ * Returns a list of print-product container descriptions of the specified design file.
3412
+ * @param id Design identifier.
3413
+ * @param surfaceId (optional) Print-product surface identifier.
3414
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3415
+ * @param tenantId (optional) Tenant identifier
3416
+ * @return Success
3417
+ */
3418
+ getDesignSurfaceContainers(id, surfaceId, privateStorageOwner, tenantId) {
3419
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers?";
3420
+ if (id === undefined || id === null)
3421
+ throw new Error("The parameter 'id' must be defined.");
3422
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3423
+ if (surfaceId !== undefined && surfaceId !== null)
3424
+ url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
3425
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3426
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3427
+ if (tenantId === null)
3428
+ throw new Error("The parameter 'tenantId' cannot be null.");
3429
+ else if (tenantId !== undefined)
3430
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3431
+ url_ = url_.replace(/[?&]$/, "");
3432
+ let options_ = {
3433
+ observe: "response",
3434
+ responseType: "blob",
3435
+ headers: new HttpHeaders({
3436
+ "Accept": "application/json"
3437
+ })
3438
+ };
3439
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3440
+ return this.http.request("get", url_, transformedOptions_);
3441
+ })).pipe(mergeMap((response_) => {
3442
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceContainers(r));
3443
+ })).pipe(catchError((response_) => {
3444
+ if (response_ instanceof HttpResponseBase) {
3445
+ try {
3446
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceContainers(r));
3447
+ }
3448
+ catch (e) {
3449
+ return throwError(e);
3450
+ }
3451
+ }
3452
+ else
3453
+ return throwError(response_);
3454
+ }));
3455
+ }
3456
+ processGetDesignSurfaceContainers(response) {
3457
+ const status = response.status;
3458
+ const responseBlob = response instanceof HttpResponse ? response.body :
3459
+ response.error instanceof Blob ? response.error : undefined;
3460
+ let _headers = {};
3461
+ if (response.headers) {
3462
+ for (let key of response.headers.keys()) {
3463
+ _headers[key] = response.headers.get(key);
3464
+ }
3465
+ }
3466
+ if (status === 200) {
3467
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3468
+ let result200 = null;
3469
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3470
+ return of(result200);
3471
+ }));
3472
+ }
3473
+ else if (status === 404) {
3474
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3475
+ let result404 = null;
3476
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3477
+ return throwException("Not Found", status, _responseText, _headers, result404);
3478
+ }));
3479
+ }
3480
+ else if (status === 401) {
3481
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3482
+ return throwException("Unauthorized", status, _responseText, _headers);
3483
+ }));
3484
+ }
3485
+ else if (status === 403) {
3486
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3487
+ return throwException("Forbidden", status, _responseText, _headers);
3488
+ }));
3489
+ }
3490
+ else if (status !== 200 && status !== 204) {
3491
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3492
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3493
+ }));
3494
+ }
3495
+ return of(null);
3496
+ }
3497
+ /**
3498
+ * Deletes a specified print-product container in an existing design file.
3499
+ * @param id Design identifier.
3500
+ * @param containerId Print-product container identifier.
3501
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3502
+ * @param tenantId (optional) Tenant identifier
3503
+ * @return No Content
3504
+ */
3505
+ deleteDesignSurfaceContainer(id, containerId, privateStorageOwner, tenantId) {
3506
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
3507
+ if (id === undefined || id === null)
3508
+ throw new Error("The parameter 'id' must be defined.");
3509
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3510
+ if (containerId === undefined || containerId === null)
3511
+ throw new Error("The parameter 'containerId' must be defined.");
3512
+ url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
3513
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3514
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3515
+ if (tenantId === null)
3516
+ throw new Error("The parameter 'tenantId' cannot be null.");
3517
+ else if (tenantId !== undefined)
3518
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3519
+ url_ = url_.replace(/[?&]$/, "");
3520
+ let options_ = {
3521
+ observe: "response",
3522
+ responseType: "blob",
3523
+ headers: new HttpHeaders({})
3524
+ };
3525
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3526
+ return this.http.request("delete", url_, transformedOptions_);
3527
+ })).pipe(mergeMap((response_) => {
3528
+ return this.transformResult(url_, response_, (r) => this.processDeleteDesignSurfaceContainer(r));
3529
+ })).pipe(catchError((response_) => {
3530
+ if (response_ instanceof HttpResponseBase) {
3531
+ try {
3532
+ return this.transformResult(url_, response_, (r) => this.processDeleteDesignSurfaceContainer(r));
3533
+ }
3534
+ catch (e) {
3535
+ return throwError(e);
3536
+ }
3537
+ }
3538
+ else
3539
+ return throwError(response_);
3540
+ }));
3541
+ }
3542
+ processDeleteDesignSurfaceContainer(response) {
3543
+ const status = response.status;
3544
+ const responseBlob = response instanceof HttpResponse ? response.body :
3545
+ response.error instanceof Blob ? response.error : undefined;
3546
+ let _headers = {};
3547
+ if (response.headers) {
3548
+ for (let key of response.headers.keys()) {
3549
+ _headers[key] = response.headers.get(key);
3550
+ }
3551
+ }
3552
+ if (status === 204) {
3553
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3554
+ return of(null);
3555
+ }));
3556
+ }
3557
+ else if (status === 404) {
3558
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3559
+ let result404 = null;
3560
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3561
+ return throwException("Not Found", status, _responseText, _headers, result404);
3562
+ }));
3563
+ }
3564
+ else if (status === 409) {
3565
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3566
+ let result409 = null;
3567
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3568
+ return throwException("Conflict", status, _responseText, _headers, result409);
3569
+ }));
3570
+ }
3571
+ else if (status === 401) {
3572
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3573
+ return throwException("Unauthorized", status, _responseText, _headers);
3574
+ }));
3575
+ }
3576
+ else if (status === 403) {
3577
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3578
+ return throwException("Forbidden", status, _responseText, _headers);
3579
+ }));
3580
+ }
3581
+ else if (status !== 200 && status !== 204) {
3582
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3583
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3584
+ }));
3585
+ }
3586
+ return of(null);
3587
+ }
3588
+ /**
3589
+ * Returns a print-product container of the specified design file as a json-serialized model.
3590
+ * @param id Design identifier.
3591
+ * @param containerId Print-product container identifier.
3592
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3593
+ * @param tenantId (optional) Tenant identifier
3594
+ * @return Success
3595
+ */
3596
+ getDesignSurfaceContainerModel(id, containerId, privateStorageOwner, tenantId) {
3597
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}/model?";
3598
+ if (id === undefined || id === null)
3599
+ throw new Error("The parameter 'id' must be defined.");
3600
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3601
+ if (containerId === undefined || containerId === null)
3602
+ throw new Error("The parameter 'containerId' must be defined.");
3603
+ url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
3604
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3605
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3606
+ if (tenantId === null)
3607
+ throw new Error("The parameter 'tenantId' cannot be null.");
3608
+ else if (tenantId !== undefined)
3609
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3610
+ url_ = url_.replace(/[?&]$/, "");
3611
+ let options_ = {
3612
+ observe: "response",
3613
+ responseType: "blob",
3614
+ headers: new HttpHeaders({
3615
+ "Accept": "application/json"
3616
+ })
3617
+ };
3618
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3619
+ return this.http.request("get", url_, transformedOptions_);
3620
+ })).pipe(mergeMap((response_) => {
3621
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceContainerModel(r));
3622
+ })).pipe(catchError((response_) => {
3623
+ if (response_ instanceof HttpResponseBase) {
3624
+ try {
3625
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceContainerModel(r));
3626
+ }
3627
+ catch (e) {
3628
+ return throwError(e);
3629
+ }
3630
+ }
3631
+ else
3632
+ return throwError(response_);
3633
+ }));
3634
+ }
3635
+ processGetDesignSurfaceContainerModel(response) {
3636
+ const status = response.status;
3637
+ const responseBlob = response instanceof HttpResponse ? response.body :
3638
+ response.error instanceof Blob ? response.error : undefined;
3639
+ let _headers = {};
3640
+ if (response.headers) {
3641
+ for (let key of response.headers.keys()) {
3642
+ _headers[key] = response.headers.get(key);
3643
+ }
3644
+ }
3645
+ if (status === 200) {
3646
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3647
+ let result200 = null;
3648
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3649
+ return of(result200);
3650
+ }));
3651
+ }
3652
+ else if (status === 404) {
3653
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3654
+ let result404 = null;
3655
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3656
+ return throwException("Not Found", status, _responseText, _headers, result404);
3657
+ }));
3658
+ }
3659
+ else if (status === 409) {
3660
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3661
+ let result409 = null;
3662
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3663
+ return throwException("Conflict", status, _responseText, _headers, result409);
3664
+ }));
3665
+ }
3666
+ else if (status === 401) {
3667
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3668
+ return throwException("Unauthorized", status, _responseText, _headers);
3669
+ }));
3670
+ }
3671
+ else if (status === 403) {
3672
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3673
+ return throwException("Forbidden", status, _responseText, _headers);
3674
+ }));
3675
+ }
3676
+ else if (status !== 200 && status !== 204) {
3677
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3678
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3679
+ }));
3680
+ }
3681
+ return of(null);
3682
+ }
3683
+ /**
3684
+ * Updates a specified print-product container in an existing design file with the data provided as a json-serialized model.
3685
+ * @param id Design identifier.
3686
+ * @param containerId Print-product container identifier.
3687
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3688
+ * @param tenantId (optional) Tenant identifier
3689
+ * @param body (optional) Json-serialized model of a print-product container.
3690
+ * @return Success
3691
+ */
3692
+ updateDesignSurfaceContainerModel(id, containerId, privateStorageOwner, tenantId, body) {
3693
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}/model?";
3694
+ if (id === undefined || id === null)
3695
+ throw new Error("The parameter 'id' must be defined.");
3696
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3697
+ if (containerId === undefined || containerId === null)
3698
+ throw new Error("The parameter 'containerId' must be defined.");
3699
+ url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
3700
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3701
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3702
+ if (tenantId === null)
3703
+ throw new Error("The parameter 'tenantId' cannot be null.");
3704
+ else if (tenantId !== undefined)
3705
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3706
+ url_ = url_.replace(/[?&]$/, "");
3707
+ const content_ = JSON.stringify(body);
3708
+ let options_ = {
3709
+ body: content_,
3710
+ observe: "response",
3711
+ responseType: "blob",
3712
+ headers: new HttpHeaders({
3713
+ "Content-Type": "application/json",
3714
+ "Accept": "application/json"
3715
+ })
3716
+ };
3717
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3718
+ return this.http.request("put", url_, transformedOptions_);
3719
+ })).pipe(mergeMap((response_) => {
3720
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignSurfaceContainerModel(r));
3721
+ })).pipe(catchError((response_) => {
3722
+ if (response_ instanceof HttpResponseBase) {
3723
+ try {
3724
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignSurfaceContainerModel(r));
3725
+ }
3726
+ catch (e) {
3727
+ return throwError(e);
3728
+ }
3729
+ }
3730
+ else
3731
+ return throwError(response_);
3732
+ }));
3733
+ }
3734
+ processUpdateDesignSurfaceContainerModel(response) {
3735
+ const status = response.status;
3736
+ const responseBlob = response instanceof HttpResponse ? response.body :
3737
+ response.error instanceof Blob ? response.error : undefined;
3738
+ let _headers = {};
3739
+ if (response.headers) {
3740
+ for (let key of response.headers.keys()) {
3741
+ _headers[key] = response.headers.get(key);
3742
+ }
3743
+ }
3744
+ if (status === 200) {
3745
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3746
+ let result200 = null;
3747
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3748
+ return of(result200);
3749
+ }));
3750
+ }
3751
+ else if (status === 400) {
3752
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3753
+ let result400 = null;
3754
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3755
+ return throwException("Bad Request", status, _responseText, _headers, result400);
3756
+ }));
3757
+ }
3758
+ else if (status === 404) {
3759
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3760
+ let result404 = null;
3761
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3762
+ return throwException("Not Found", status, _responseText, _headers, result404);
3763
+ }));
3764
+ }
3765
+ else if (status === 409) {
3766
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3767
+ let result409 = null;
3768
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3769
+ return throwException("Conflict", status, _responseText, _headers, result409);
3770
+ }));
3771
+ }
3772
+ else if (status === 401) {
3773
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3774
+ return throwException("Unauthorized", status, _responseText, _headers);
3775
+ }));
3776
+ }
3777
+ else if (status === 403) {
3778
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3779
+ return throwException("Forbidden", status, _responseText, _headers);
3780
+ }));
3781
+ }
3782
+ else if (status !== 200 && status !== 204) {
3783
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3784
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3785
+ }));
3786
+ }
3787
+ return of(null);
3788
+ }
3789
+ /**
3790
+ * Inserts a new print-product container provided as a json-serialized model to the certain surface in an existing design file.
3791
+ Print-product container identifier will be reset by auto-generated value to prevent identifiers collisions.
3792
+ * @param id Design identifier.
3793
+ * @param surfaceId (optional) Print-product surface identifier.
3794
+ * @param index (optional) Container index within the conatiners list of a surface.
3795
+ * @param top (optional) Y axis position.
3796
+ * @param left (optional) X axis position.
3797
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3798
+ * @param tenantId (optional) Tenant identifier
3799
+ * @param body (optional) Json-serialized model of a new print-product container.
3800
+ * @return Success
3801
+ */
3802
+ addDesignSurfaceContainerModel(id, surfaceId, index, top, left, privateStorageOwner, tenantId, body) {
3803
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/model?";
3804
+ if (id === undefined || id === null)
3805
+ throw new Error("The parameter 'id' must be defined.");
3806
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3807
+ if (surfaceId !== undefined && surfaceId !== null)
3808
+ url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
3809
+ if (index !== undefined && index !== null)
3810
+ url_ += "index=" + encodeURIComponent("" + index) + "&";
3811
+ if (top === null)
3812
+ throw new Error("The parameter 'top' cannot be null.");
3813
+ else if (top !== undefined)
3814
+ url_ += "top=" + encodeURIComponent("" + top) + "&";
3815
+ if (left === null)
3816
+ throw new Error("The parameter 'left' cannot be null.");
3817
+ else if (left !== undefined)
3818
+ url_ += "left=" + encodeURIComponent("" + left) + "&";
3819
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3820
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3821
+ if (tenantId === null)
3822
+ throw new Error("The parameter 'tenantId' cannot be null.");
3823
+ else if (tenantId !== undefined)
3824
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3825
+ url_ = url_.replace(/[?&]$/, "");
3826
+ const content_ = JSON.stringify(body);
3827
+ let options_ = {
3828
+ body: content_,
3829
+ observe: "response",
3830
+ responseType: "blob",
3831
+ headers: new HttpHeaders({
3832
+ "Content-Type": "application/json",
3833
+ "Accept": "application/json"
3834
+ })
3835
+ };
3836
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3837
+ return this.http.request("post", url_, transformedOptions_);
3838
+ })).pipe(mergeMap((response_) => {
3839
+ return this.transformResult(url_, response_, (r) => this.processAddDesignSurfaceContainerModel(r));
3840
+ })).pipe(catchError((response_) => {
3841
+ if (response_ instanceof HttpResponseBase) {
3842
+ try {
3843
+ return this.transformResult(url_, response_, (r) => this.processAddDesignSurfaceContainerModel(r));
3844
+ }
3845
+ catch (e) {
3846
+ return throwError(e);
3847
+ }
3848
+ }
3849
+ else
3850
+ return throwError(response_);
3851
+ }));
3852
+ }
3853
+ processAddDesignSurfaceContainerModel(response) {
3854
+ const status = response.status;
3855
+ const responseBlob = response instanceof HttpResponse ? response.body :
3856
+ response.error instanceof Blob ? response.error : undefined;
3857
+ let _headers = {};
3858
+ if (response.headers) {
3859
+ for (let key of response.headers.keys()) {
3860
+ _headers[key] = response.headers.get(key);
3861
+ }
3862
+ }
3863
+ if (status === 200) {
3864
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3865
+ let result200 = null;
3866
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3867
+ return of(result200);
3868
+ }));
3869
+ }
3870
+ else if (status === 400) {
3871
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3872
+ let result400 = null;
3873
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3874
+ return throwException("Bad Request", status, _responseText, _headers, result400);
3875
+ }));
3876
+ }
3877
+ else if (status === 404) {
3878
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3879
+ let result404 = null;
3880
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3881
+ return throwException("Not Found", status, _responseText, _headers, result404);
3882
+ }));
3883
+ }
3884
+ else if (status === 401) {
3885
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3886
+ return throwException("Unauthorized", status, _responseText, _headers);
3887
+ }));
3888
+ }
3889
+ else if (status === 403) {
3890
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3891
+ return throwException("Forbidden", status, _responseText, _headers);
3892
+ }));
3893
+ }
3894
+ else if (status !== 200 && status !== 204) {
3895
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3896
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3897
+ }));
3898
+ }
3899
+ return of(null);
3900
+ }
3901
+ /**
3902
+ * Returns a list of print-product items descriptions of the specified design file.
3903
+ * @param id Design identifier.
3904
+ * @param surfaceId (optional) Print-product surface identifier.
3905
+ * @param containerId (optional) Print-product container identifier.
3906
+ * @param parentItemId (optional) Print-product item identifier.
3907
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3908
+ * @param tenantId (optional) Tenant identifier
3909
+ * @return Success
3910
+ */
3911
+ getDesignSurfaceItems(id, surfaceId, containerId, parentItemId, privateStorageOwner, tenantId) {
3912
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items?";
3913
+ if (id === undefined || id === null)
3914
+ throw new Error("The parameter 'id' must be defined.");
3915
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3916
+ if (surfaceId !== undefined && surfaceId !== null)
3917
+ url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
3918
+ if (containerId !== undefined && containerId !== null)
3919
+ url_ += "containerId=" + encodeURIComponent("" + containerId) + "&";
3920
+ if (parentItemId !== undefined && parentItemId !== null)
3921
+ url_ += "parentItemId=" + encodeURIComponent("" + parentItemId) + "&";
3922
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3923
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3924
+ if (tenantId === null)
3925
+ throw new Error("The parameter 'tenantId' cannot be null.");
3926
+ else if (tenantId !== undefined)
3927
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3928
+ url_ = url_.replace(/[?&]$/, "");
3929
+ let options_ = {
3930
+ observe: "response",
3931
+ responseType: "blob",
3932
+ headers: new HttpHeaders({
3933
+ "Accept": "application/json"
3934
+ })
3935
+ };
3936
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3937
+ return this.http.request("get", url_, transformedOptions_);
3938
+ })).pipe(mergeMap((response_) => {
3939
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceItems(r));
3940
+ })).pipe(catchError((response_) => {
3941
+ if (response_ instanceof HttpResponseBase) {
3942
+ try {
3943
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceItems(r));
3944
+ }
3945
+ catch (e) {
3946
+ return throwError(e);
3947
+ }
3948
+ }
3949
+ else
3950
+ return throwError(response_);
3951
+ }));
3952
+ }
3953
+ processGetDesignSurfaceItems(response) {
3954
+ const status = response.status;
3955
+ const responseBlob = response instanceof HttpResponse ? response.body :
3956
+ response.error instanceof Blob ? response.error : undefined;
3957
+ let _headers = {};
3958
+ if (response.headers) {
3959
+ for (let key of response.headers.keys()) {
3960
+ _headers[key] = response.headers.get(key);
3961
+ }
3962
+ }
3963
+ if (status === 200) {
3964
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3965
+ let result200 = null;
3966
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3967
+ return of(result200);
3968
+ }));
3969
+ }
3970
+ else if (status === 404) {
3971
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3972
+ let result404 = null;
3973
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3974
+ return throwException("Not Found", status, _responseText, _headers, result404);
3975
+ }));
3976
+ }
3977
+ else if (status === 401) {
3978
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3979
+ return throwException("Unauthorized", status, _responseText, _headers);
3980
+ }));
3981
+ }
3982
+ else if (status === 403) {
3983
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3984
+ return throwException("Forbidden", status, _responseText, _headers);
3985
+ }));
3986
+ }
3987
+ else if (status !== 200 && status !== 204) {
3988
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3989
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3990
+ }));
3991
+ }
3992
+ return of(null);
3993
+ }
3994
+ /**
3995
+ * Deletes a specified print-product item in an existing design file.
3996
+ * @param id Design identifier.
3997
+ * @param itemId Print-product item identifier.
3998
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3999
+ * @param tenantId (optional) Tenant identifier
4000
+ * @return No Content
4001
+ */
4002
+ deleteDesignSurfaceItem(id, itemId, privateStorageOwner, tenantId) {
4003
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/{itemId}?";
4004
+ if (id === undefined || id === null)
4005
+ throw new Error("The parameter 'id' must be defined.");
4006
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4007
+ if (itemId === undefined || itemId === null)
4008
+ throw new Error("The parameter 'itemId' must be defined.");
4009
+ url_ = url_.replace("{itemId}", encodeURIComponent("" + itemId));
4010
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4011
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4012
+ if (tenantId === null)
4013
+ throw new Error("The parameter 'tenantId' cannot be null.");
4014
+ else if (tenantId !== undefined)
4015
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4016
+ url_ = url_.replace(/[?&]$/, "");
4017
+ let options_ = {
4018
+ observe: "response",
4019
+ responseType: "blob",
4020
+ headers: new HttpHeaders({})
4021
+ };
4022
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
4023
+ return this.http.request("delete", url_, transformedOptions_);
4024
+ })).pipe(mergeMap((response_) => {
4025
+ return this.transformResult(url_, response_, (r) => this.processDeleteDesignSurfaceItem(r));
4026
+ })).pipe(catchError((response_) => {
4027
+ if (response_ instanceof HttpResponseBase) {
4028
+ try {
4029
+ return this.transformResult(url_, response_, (r) => this.processDeleteDesignSurfaceItem(r));
4030
+ }
4031
+ catch (e) {
4032
+ return throwError(e);
4033
+ }
4034
+ }
4035
+ else
4036
+ return throwError(response_);
4037
+ }));
4038
+ }
4039
+ processDeleteDesignSurfaceItem(response) {
4040
+ const status = response.status;
4041
+ const responseBlob = response instanceof HttpResponse ? response.body :
4042
+ response.error instanceof Blob ? response.error : undefined;
4043
+ let _headers = {};
4044
+ if (response.headers) {
4045
+ for (let key of response.headers.keys()) {
4046
+ _headers[key] = response.headers.get(key);
4047
+ }
4048
+ }
4049
+ if (status === 204) {
4050
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4051
+ return of(null);
4052
+ }));
4053
+ }
4054
+ else if (status === 404) {
4055
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4056
+ let result404 = null;
4057
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4058
+ return throwException("Not Found", status, _responseText, _headers, result404);
4059
+ }));
4060
+ }
4061
+ else if (status === 409) {
4062
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4063
+ let result409 = null;
4064
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4065
+ return throwException("Conflict", status, _responseText, _headers, result409);
4066
+ }));
4067
+ }
4068
+ else if (status === 401) {
4069
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4070
+ return throwException("Unauthorized", status, _responseText, _headers);
4071
+ }));
4072
+ }
4073
+ else if (status === 403) {
4074
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4075
+ return throwException("Forbidden", status, _responseText, _headers);
4076
+ }));
4077
+ }
4078
+ else if (status !== 200 && status !== 204) {
4079
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4080
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4081
+ }));
4082
+ }
4083
+ return of(null);
4084
+ }
4085
+ /**
4086
+ * Returns a print-product item of the specified design file as a json-serialized model.
4087
+ * @param id Design identifier.
4088
+ * @param itemId Print-product item identifier.
4089
+ * @param privateStorageOwner (optional) Private storage owner identifier.
4090
+ * @param tenantId (optional) Tenant identifier
4091
+ * @return Success
4092
+ */
4093
+ getDesignSurfaceItemModel(id, itemId, privateStorageOwner, tenantId) {
4094
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/{itemId}/model?";
4095
+ if (id === undefined || id === null)
4096
+ throw new Error("The parameter 'id' must be defined.");
4097
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4098
+ if (itemId === undefined || itemId === null)
4099
+ throw new Error("The parameter 'itemId' must be defined.");
4100
+ url_ = url_.replace("{itemId}", encodeURIComponent("" + itemId));
4101
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4102
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4103
+ if (tenantId === null)
4104
+ throw new Error("The parameter 'tenantId' cannot be null.");
4105
+ else if (tenantId !== undefined)
4106
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4107
+ url_ = url_.replace(/[?&]$/, "");
4108
+ let options_ = {
4109
+ observe: "response",
4110
+ responseType: "blob",
4111
+ headers: new HttpHeaders({
4112
+ "Accept": "application/json"
4113
+ })
4114
+ };
4115
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
4116
+ return this.http.request("get", url_, transformedOptions_);
4117
+ })).pipe(mergeMap((response_) => {
4118
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceItemModel(r));
4119
+ })).pipe(catchError((response_) => {
4120
+ if (response_ instanceof HttpResponseBase) {
4121
+ try {
4122
+ return this.transformResult(url_, response_, (r) => this.processGetDesignSurfaceItemModel(r));
4123
+ }
4124
+ catch (e) {
4125
+ return throwError(e);
4126
+ }
4127
+ }
4128
+ else
4129
+ return throwError(response_);
4130
+ }));
4131
+ }
4132
+ processGetDesignSurfaceItemModel(response) {
4133
+ const status = response.status;
4134
+ const responseBlob = response instanceof HttpResponse ? response.body :
4135
+ response.error instanceof Blob ? response.error : undefined;
4136
+ let _headers = {};
4137
+ if (response.headers) {
4138
+ for (let key of response.headers.keys()) {
4139
+ _headers[key] = response.headers.get(key);
4140
+ }
4141
+ }
4142
+ if (status === 200) {
4143
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4144
+ let result200 = null;
4145
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4146
+ return of(result200);
4147
+ }));
4148
+ }
4149
+ else if (status === 404) {
4150
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4151
+ let result404 = null;
4152
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4153
+ return throwException("Not Found", status, _responseText, _headers, result404);
4154
+ }));
4155
+ }
4156
+ else if (status === 409) {
4157
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4158
+ let result409 = null;
4159
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4160
+ return throwException("Conflict", status, _responseText, _headers, result409);
4161
+ }));
4162
+ }
4163
+ else if (status === 401) {
4164
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4165
+ return throwException("Unauthorized", status, _responseText, _headers);
4166
+ }));
4167
+ }
4168
+ else if (status === 403) {
4169
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4170
+ return throwException("Forbidden", status, _responseText, _headers);
4171
+ }));
4172
+ }
4173
+ else if (status !== 200 && status !== 204) {
4174
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4175
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4176
+ }));
4177
+ }
4178
+ return of(null);
4179
+ }
4180
+ /**
4181
+ * Updates a specified print-product surface item in an existing design file with the data provided as a json-serialized item model.
4182
+ * @param id Design identifier.
4183
+ * @param itemId Print-product item identifier.
4184
+ * @param privateStorageOwner (optional) Private storage owner identifier.
4185
+ * @param tenantId (optional) Tenant identifier
4186
+ * @param body (optional) Json-serialized model of a print-product item.
4187
+ * @return Success
4188
+ */
4189
+ updateDesignSurfaceItemModel(id, itemId, privateStorageOwner, tenantId, body) {
4190
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/{itemId}/model?";
4191
+ if (id === undefined || id === null)
4192
+ throw new Error("The parameter 'id' must be defined.");
4193
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4194
+ if (itemId === undefined || itemId === null)
4195
+ throw new Error("The parameter 'itemId' must be defined.");
4196
+ url_ = url_.replace("{itemId}", encodeURIComponent("" + itemId));
4197
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4198
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4199
+ if (tenantId === null)
4200
+ throw new Error("The parameter 'tenantId' cannot be null.");
4201
+ else if (tenantId !== undefined)
4202
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4203
+ url_ = url_.replace(/[?&]$/, "");
4204
+ const content_ = JSON.stringify(body);
4205
+ let options_ = {
4206
+ body: content_,
4207
+ observe: "response",
4208
+ responseType: "blob",
4209
+ headers: new HttpHeaders({
4210
+ "Content-Type": "application/json",
4211
+ "Accept": "application/json"
4212
+ })
4213
+ };
4214
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
4215
+ return this.http.request("put", url_, transformedOptions_);
4216
+ })).pipe(mergeMap((response_) => {
4217
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignSurfaceItemModel(r));
4218
+ })).pipe(catchError((response_) => {
4219
+ if (response_ instanceof HttpResponseBase) {
4220
+ try {
4221
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignSurfaceItemModel(r));
4222
+ }
4223
+ catch (e) {
4224
+ return throwError(e);
4225
+ }
4226
+ }
4227
+ else
4228
+ return throwError(response_);
4229
+ }));
4230
+ }
4231
+ processUpdateDesignSurfaceItemModel(response) {
4232
+ const status = response.status;
4233
+ const responseBlob = response instanceof HttpResponse ? response.body :
4234
+ response.error instanceof Blob ? response.error : undefined;
4235
+ let _headers = {};
4236
+ if (response.headers) {
4237
+ for (let key of response.headers.keys()) {
4238
+ _headers[key] = response.headers.get(key);
4239
+ }
4240
+ }
4241
+ if (status === 200) {
4242
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4243
+ let result200 = null;
4244
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4245
+ return of(result200);
4246
+ }));
4247
+ }
4248
+ else if (status === 400) {
4249
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4250
+ let result400 = null;
4251
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4252
+ return throwException("Bad Request", status, _responseText, _headers, result400);
4253
+ }));
4254
+ }
4255
+ else if (status === 404) {
4256
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4257
+ let result404 = null;
4258
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4259
+ return throwException("Not Found", status, _responseText, _headers, result404);
4260
+ }));
4261
+ }
4262
+ else if (status === 409) {
4263
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4264
+ let result409 = null;
4265
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4266
+ return throwException("Conflict", status, _responseText, _headers, result409);
4267
+ }));
4268
+ }
4269
+ else if (status === 401) {
4270
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4271
+ return throwException("Unauthorized", status, _responseText, _headers);
4272
+ }));
4273
+ }
4274
+ else if (status === 403) {
4275
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4276
+ return throwException("Forbidden", status, _responseText, _headers);
4277
+ }));
4278
+ }
4279
+ else if (status !== 200 && status !== 204) {
4280
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4281
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4282
+ }));
4283
+ }
4284
+ return of(null);
4285
+ }
4286
+ /**
4287
+ * Inserts a new print-product item provided as a json-serialized model to the specified surface in an existing design file.
4288
+ Item identifier will be reset by auto-generated value to prevent identifiers collisions.
4289
+ * @param id Design identifier.
4290
+ * @param containerId (optional) Parent surface identifier.
4291
+ * @param index (optional) Item index within the items list of a container.
4292
+ * @param top (optional) Y axis position.
4293
+ * @param left (optional) X axis position.
4294
+ * @param privateStorageOwner (optional) Private storage owner identifier.
4295
+ * @param tenantId (optional) Tenant identifier
4296
+ * @param body (optional) Json-serialized model of a new print-product item.
4297
+ * @return Success
4298
+ */
4299
+ addDesignSurfaceItemModel(id, containerId, index, top, left, privateStorageOwner, tenantId, body) {
4300
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/items/model?";
4301
+ if (id === undefined || id === null)
4302
+ throw new Error("The parameter 'id' must be defined.");
4303
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4304
+ if (containerId !== undefined && containerId !== null)
4305
+ url_ += "containerId=" + encodeURIComponent("" + containerId) + "&";
4306
+ if (index !== undefined && index !== null)
4307
+ url_ += "index=" + encodeURIComponent("" + index) + "&";
4308
+ if (top === null)
4309
+ throw new Error("The parameter 'top' cannot be null.");
4310
+ else if (top !== undefined)
4311
+ url_ += "top=" + encodeURIComponent("" + top) + "&";
4312
+ if (left === null)
4313
+ throw new Error("The parameter 'left' cannot be null.");
4314
+ else if (left !== undefined)
4315
+ url_ += "left=" + encodeURIComponent("" + left) + "&";
4316
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4317
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4318
+ if (tenantId === null)
4319
+ throw new Error("The parameter 'tenantId' cannot be null.");
4320
+ else if (tenantId !== undefined)
4321
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4322
+ url_ = url_.replace(/[?&]$/, "");
4323
+ const content_ = JSON.stringify(body);
4324
+ let options_ = {
4325
+ body: content_,
4326
+ observe: "response",
4327
+ responseType: "blob",
4328
+ headers: new HttpHeaders({
4329
+ "Content-Type": "application/json",
4330
+ "Accept": "application/json"
4331
+ })
4332
+ };
4333
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
4334
+ return this.http.request("post", url_, transformedOptions_);
4335
+ })).pipe(mergeMap((response_) => {
4336
+ return this.transformResult(url_, response_, (r) => this.processAddDesignSurfaceItemModel(r));
4337
+ })).pipe(catchError((response_) => {
4338
+ if (response_ instanceof HttpResponseBase) {
4339
+ try {
4340
+ return this.transformResult(url_, response_, (r) => this.processAddDesignSurfaceItemModel(r));
4341
+ }
4342
+ catch (e) {
4343
+ return throwError(e);
4344
+ }
4345
+ }
4346
+ else
4347
+ return throwError(response_);
4348
+ }));
4349
+ }
4350
+ processAddDesignSurfaceItemModel(response) {
4351
+ const status = response.status;
4352
+ const responseBlob = response instanceof HttpResponse ? response.body :
4353
+ response.error instanceof Blob ? response.error : undefined;
4354
+ let _headers = {};
4355
+ if (response.headers) {
4356
+ for (let key of response.headers.keys()) {
4357
+ _headers[key] = response.headers.get(key);
4358
+ }
4359
+ }
4360
+ if (status === 200) {
4361
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4362
+ let result200 = null;
4363
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4364
+ return of(result200);
4365
+ }));
4366
+ }
4367
+ else if (status === 400) {
4368
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4369
+ let result400 = null;
4370
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4371
+ return throwException("Bad Request", status, _responseText, _headers, result400);
4372
+ }));
4373
+ }
4374
+ else if (status === 404) {
4375
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4376
+ let result404 = null;
4377
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4378
+ return throwException("Not Found", status, _responseText, _headers, result404);
4379
+ }));
4380
+ }
4381
+ else if (status === 401) {
4382
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4383
+ return throwException("Unauthorized", status, _responseText, _headers);
4384
+ }));
4385
+ }
4386
+ else if (status === 403) {
4387
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4388
+ return throwException("Forbidden", status, _responseText, _headers);
4389
+ }));
4390
+ }
4391
+ else if (status !== 200 && status !== 204) {
4392
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4393
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4394
+ }));
4395
+ }
4396
+ return of(null);
4397
+ }
4398
+ /**
4399
+ * Returns a print-product of the specified design file as a json-serialized model.
4400
+ * @param id Design identifier.
4401
+ * @param privateStorageOwner (optional) Private storage owner identifier.
4402
+ * @param tenantId (optional) Tenant identifier
4403
+ * @return Success
4404
+ */
4405
+ getDesignProductModel(id, privateStorageOwner, tenantId) {
4406
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/model?";
4407
+ if (id === undefined || id === null)
4408
+ throw new Error("The parameter 'id' must be defined.");
4409
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4410
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4411
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4412
+ if (tenantId === null)
4413
+ throw new Error("The parameter 'tenantId' cannot be null.");
4414
+ else if (tenantId !== undefined)
4415
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4416
+ url_ = url_.replace(/[?&]$/, "");
4417
+ let options_ = {
4418
+ observe: "response",
4419
+ responseType: "blob",
4420
+ headers: new HttpHeaders({
4421
+ "Accept": "application/json"
4422
+ })
4423
+ };
4424
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
4425
+ return this.http.request("get", url_, transformedOptions_);
4426
+ })).pipe(mergeMap((response_) => {
4427
+ return this.transformResult(url_, response_, (r) => this.processGetDesignProductModel(r));
4428
+ })).pipe(catchError((response_) => {
4429
+ if (response_ instanceof HttpResponseBase) {
4430
+ try {
4431
+ return this.transformResult(url_, response_, (r) => this.processGetDesignProductModel(r));
4432
+ }
4433
+ catch (e) {
4434
+ return throwError(e);
4435
+ }
4436
+ }
4437
+ else
4438
+ return throwError(response_);
4439
+ }));
4440
+ }
4441
+ processGetDesignProductModel(response) {
4442
+ const status = response.status;
4443
+ const responseBlob = response instanceof HttpResponse ? response.body :
4444
+ response.error instanceof Blob ? response.error : undefined;
4445
+ let _headers = {};
4446
+ if (response.headers) {
4447
+ for (let key of response.headers.keys()) {
4448
+ _headers[key] = response.headers.get(key);
4449
+ }
4450
+ }
4451
+ if (status === 200) {
4452
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4453
+ let result200 = null;
4454
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4455
+ return of(result200);
4456
+ }));
4457
+ }
4458
+ else if (status === 404) {
4459
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4460
+ let result404 = null;
4461
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4462
+ return throwException("Not Found", status, _responseText, _headers, result404);
4463
+ }));
4464
+ }
4465
+ else if (status === 401) {
4466
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4467
+ return throwException("Unauthorized", status, _responseText, _headers);
4468
+ }));
4469
+ }
4470
+ else if (status === 403) {
4471
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4472
+ return throwException("Forbidden", status, _responseText, _headers);
4473
+ }));
4474
+ }
4475
+ else if (status !== 200 && status !== 204) {
4476
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4477
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4478
+ }));
4479
+ }
4480
+ return of(null);
4481
+ }
4482
+ /**
4483
+ * Updates a print-product provided as a json-serialized model is the specified design file.
3042
4484
  * @param id Design identifier.
3043
4485
  * @param privateStorageOwner (optional) Private storage owner identifier.
3044
4486
  * @param tenantId (optional) Tenant identifier
3045
- * @param patchType (optional)
3046
- * @param replaceImageItemFileInfo_itemName (optional)
3047
- * @param replaceImageItemFileInfo_sourceFile (optional)
3048
- * @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
3049
- * @param replacePlaceholderItemContentInfo_newContentType (optional)
3050
- * @param replacePlaceholderItemContentInfo_sourceFile (optional)
4487
+ * @param body (optional) Json-serialized model of a print-product .
3051
4488
  * @return No Content
3052
4489
  */
3053
- patchDesignProduct(id, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile) {
3054
- let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product?";
4490
+ updateDesignProductModel(id, privateStorageOwner, tenantId, body) {
4491
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/model?";
3055
4492
  if (id === undefined || id === null)
3056
4493
  throw new Error("The parameter 'id' must be defined.");
3057
4494
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -3062,37 +4499,23 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3062
4499
  else if (tenantId !== undefined)
3063
4500
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3064
4501
  url_ = url_.replace(/[?&]$/, "");
3065
- const content_ = new FormData();
3066
- if (patchType === null || patchType === undefined)
3067
- throw new Error("The parameter 'patchType' cannot be null.");
3068
- else
3069
- content_.append("patchType", patchType.toString());
3070
- if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
3071
- content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
3072
- if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
3073
- content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
3074
- if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
3075
- content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
3076
- if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
3077
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
3078
- else
3079
- content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
3080
- if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
3081
- content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
4502
+ const content_ = JSON.stringify(body);
3082
4503
  let options_ = {
3083
4504
  body: content_,
3084
4505
  observe: "response",
3085
4506
  responseType: "blob",
3086
- headers: new HttpHeaders({})
4507
+ headers: new HttpHeaders({
4508
+ "Content-Type": "application/json",
4509
+ })
3087
4510
  };
3088
4511
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3089
- return this.http.request("patch", url_, transformedOptions_);
4512
+ return this.http.request("put", url_, transformedOptions_);
3090
4513
  })).pipe(mergeMap((response_) => {
3091
- return this.transformResult(url_, response_, (r) => this.processPatchDesignProduct(r));
4514
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignProductModel(r));
3092
4515
  })).pipe(catchError((response_) => {
3093
4516
  if (response_ instanceof HttpResponseBase) {
3094
4517
  try {
3095
- return this.transformResult(url_, response_, (r) => this.processPatchDesignProduct(r));
4518
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignProductModel(r));
3096
4519
  }
3097
4520
  catch (e) {
3098
4521
  return throwError(e);
@@ -3102,7 +4525,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3102
4525
  return throwError(response_);
3103
4526
  }));
3104
4527
  }
3105
- processPatchDesignProduct(response) {
4528
+ processUpdateDesignProductModel(response) {
3106
4529
  const status = response.status;
3107
4530
  const responseBlob = response instanceof HttpResponse ? response.body :
3108
4531
  response.error instanceof Blob ? response.error : undefined;
@@ -3142,17 +4565,20 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3142
4565
  return of(null);
3143
4566
  }
3144
4567
  /**
3145
- * Returns a print-product of the specified design file as a json-serialized model.
4568
+ * Returns a list of print-area descriptions of the specified design file.
3146
4569
  * @param id Design identifier.
4570
+ * @param surfaceId (optional)
3147
4571
  * @param privateStorageOwner (optional) Private storage owner identifier.
3148
4572
  * @param tenantId (optional) Tenant identifier
3149
4573
  * @return Success
3150
4574
  */
3151
- getDesignProductModel(id, privateStorageOwner, tenantId) {
3152
- let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/model?";
4575
+ getDesignPrintAreas(id, surfaceId, privateStorageOwner, tenantId) {
4576
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas?";
3153
4577
  if (id === undefined || id === null)
3154
4578
  throw new Error("The parameter 'id' must be defined.");
3155
4579
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4580
+ if (surfaceId !== undefined && surfaceId !== null)
4581
+ url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
3156
4582
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3157
4583
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3158
4584
  if (tenantId === null)
@@ -3170,11 +4596,11 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3170
4596
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3171
4597
  return this.http.request("get", url_, transformedOptions_);
3172
4598
  })).pipe(mergeMap((response_) => {
3173
- return this.transformResult(url_, response_, (r) => this.processGetDesignProductModel(r));
4599
+ return this.transformResult(url_, response_, (r) => this.processGetDesignPrintAreas(r));
3174
4600
  })).pipe(catchError((response_) => {
3175
4601
  if (response_ instanceof HttpResponseBase) {
3176
4602
  try {
3177
- return this.transformResult(url_, response_, (r) => this.processGetDesignProductModel(r));
4603
+ return this.transformResult(url_, response_, (r) => this.processGetDesignPrintAreas(r));
3178
4604
  }
3179
4605
  catch (e) {
3180
4606
  return throwError(e);
@@ -3184,7 +4610,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3184
4610
  return throwError(response_);
3185
4611
  }));
3186
4612
  }
3187
- processGetDesignProductModel(response) {
4613
+ processGetDesignPrintAreas(response) {
3188
4614
  const status = response.status;
3189
4615
  const responseBlob = response instanceof HttpResponse ? response.body :
3190
4616
  response.error instanceof Blob ? response.error : undefined;
@@ -3226,15 +4652,16 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3226
4652
  return of(null);
3227
4653
  }
3228
4654
  /**
3229
- * Saves a print-product provided as a json-serialized model to the specified design file.
4655
+ * Inserts a new print-area created by the description at the specified position in an existing design file.
4656
+ Print-area identifier will be reset by auto-generated value to prevent identifiers collisions.
3230
4657
  * @param id Design identifier.
3231
4658
  * @param privateStorageOwner (optional) Private storage owner identifier.
3232
4659
  * @param tenantId (optional) Tenant identifier
3233
- * @param body (optional) Serialized print-product description.
3234
- * @return No Content
4660
+ * @param body (optional) Print-area description model.
4661
+ * @return Success
3235
4662
  */
3236
- updateDesignProductModel(id, privateStorageOwner, tenantId, body) {
3237
- let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/model?";
4663
+ addDesignPrintArea(id, privateStorageOwner, tenantId, body) {
4664
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas?";
3238
4665
  if (id === undefined || id === null)
3239
4666
  throw new Error("The parameter 'id' must be defined.");
3240
4667
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -3252,16 +4679,17 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3252
4679
  responseType: "blob",
3253
4680
  headers: new HttpHeaders({
3254
4681
  "Content-Type": "application/json",
4682
+ "Accept": "application/json"
3255
4683
  })
3256
4684
  };
3257
4685
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3258
- return this.http.request("put", url_, transformedOptions_);
4686
+ return this.http.request("post", url_, transformedOptions_);
3259
4687
  })).pipe(mergeMap((response_) => {
3260
- return this.transformResult(url_, response_, (r) => this.processUpdateDesignProductModel(r));
4688
+ return this.transformResult(url_, response_, (r) => this.processAddDesignPrintArea(r));
3261
4689
  })).pipe(catchError((response_) => {
3262
4690
  if (response_ instanceof HttpResponseBase) {
3263
4691
  try {
3264
- return this.transformResult(url_, response_, (r) => this.processUpdateDesignProductModel(r));
4692
+ return this.transformResult(url_, response_, (r) => this.processAddDesignPrintArea(r));
3265
4693
  }
3266
4694
  catch (e) {
3267
4695
  return throwError(e);
@@ -3271,7 +4699,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3271
4699
  return throwError(response_);
3272
4700
  }));
3273
4701
  }
3274
- processUpdateDesignProductModel(response) {
4702
+ processAddDesignPrintArea(response) {
3275
4703
  const status = response.status;
3276
4704
  const responseBlob = response instanceof HttpResponse ? response.body :
3277
4705
  response.error instanceof Blob ? response.error : undefined;
@@ -3281,9 +4709,18 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3281
4709
  _headers[key] = response.headers.get(key);
3282
4710
  }
3283
4711
  }
3284
- if (status === 204) {
4712
+ if (status === 200) {
3285
4713
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3286
- return of(null);
4714
+ let result200 = null;
4715
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4716
+ return of(result200);
4717
+ }));
4718
+ }
4719
+ else if (status === 400) {
4720
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4721
+ let result400 = null;
4722
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4723
+ return throwException("Bad Request", status, _responseText, _headers, result400);
3287
4724
  }));
3288
4725
  }
3289
4726
  else if (status === 404) {
@@ -3311,20 +4748,22 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3311
4748
  return of(null);
3312
4749
  }
3313
4750
  /**
3314
- * Returns a list of print-area descriptions of the specified design file.
4751
+ * Updates a specified print-area using a description in an existing design file.
3315
4752
  * @param id Design identifier.
3316
- * @param surfaceId (optional)
4753
+ * @param printAreaId Design print-area identifier.
3317
4754
  * @param privateStorageOwner (optional) Private storage owner identifier.
3318
4755
  * @param tenantId (optional) Tenant identifier
4756
+ * @param body (optional) Print-area description model.
3319
4757
  * @return Success
3320
4758
  */
3321
- getDesignPrintAreas(id, surfaceId, privateStorageOwner, tenantId) {
3322
- let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas?";
4759
+ updateDesignPrintArea(id, printAreaId, privateStorageOwner, tenantId, body) {
4760
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/print-areas/{printAreaId}?";
3323
4761
  if (id === undefined || id === null)
3324
4762
  throw new Error("The parameter 'id' must be defined.");
3325
4763
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3326
- if (surfaceId !== undefined && surfaceId !== null)
3327
- url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
4764
+ if (printAreaId === undefined || printAreaId === null)
4765
+ throw new Error("The parameter 'printAreaId' must be defined.");
4766
+ url_ = url_.replace("{printAreaId}", encodeURIComponent("" + printAreaId));
3328
4767
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3329
4768
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3330
4769
  if (tenantId === null)
@@ -3332,21 +4771,24 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3332
4771
  else if (tenantId !== undefined)
3333
4772
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3334
4773
  url_ = url_.replace(/[?&]$/, "");
4774
+ const content_ = JSON.stringify(body);
3335
4775
  let options_ = {
4776
+ body: content_,
3336
4777
  observe: "response",
3337
4778
  responseType: "blob",
3338
4779
  headers: new HttpHeaders({
4780
+ "Content-Type": "application/json",
3339
4781
  "Accept": "application/json"
3340
4782
  })
3341
4783
  };
3342
4784
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3343
- return this.http.request("get", url_, transformedOptions_);
4785
+ return this.http.request("put", url_, transformedOptions_);
3344
4786
  })).pipe(mergeMap((response_) => {
3345
- return this.transformResult(url_, response_, (r) => this.processGetDesignPrintAreas(r));
4787
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignPrintArea(r));
3346
4788
  })).pipe(catchError((response_) => {
3347
4789
  if (response_ instanceof HttpResponseBase) {
3348
4790
  try {
3349
- return this.transformResult(url_, response_, (r) => this.processGetDesignPrintAreas(r));
4791
+ return this.transformResult(url_, response_, (r) => this.processUpdateDesignPrintArea(r));
3350
4792
  }
3351
4793
  catch (e) {
3352
4794
  return throwError(e);
@@ -3356,7 +4798,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3356
4798
  return throwError(response_);
3357
4799
  }));
3358
4800
  }
3359
- processGetDesignPrintAreas(response) {
4801
+ processUpdateDesignPrintArea(response) {
3360
4802
  const status = response.status;
3361
4803
  const responseBlob = response instanceof HttpResponse ? response.body :
3362
4804
  response.error instanceof Blob ? response.error : undefined;
@@ -3373,6 +4815,13 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3373
4815
  return of(result200);
3374
4816
  }));
3375
4817
  }
4818
+ else if (status === 400) {
4819
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4820
+ let result400 = null;
4821
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4822
+ return throwException("Bad Request", status, _responseText, _headers, result400);
4823
+ }));
4824
+ }
3376
4825
  else if (status === 404) {
3377
4826
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3378
4827
  let result404 = null;
@@ -3380,6 +4829,13 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3380
4829
  return throwException("Not Found", status, _responseText, _headers, result404);
3381
4830
  }));
3382
4831
  }
4832
+ else if (status === 409) {
4833
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4834
+ let result409 = null;
4835
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4836
+ return throwException("Conflict", status, _responseText, _headers, result409);
4837
+ }));
4838
+ }
3383
4839
  else if (status === 401) {
3384
4840
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3385
4841
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3589,7 +5045,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3589
5045
  * @param printAreaId Design print-area identifier.
3590
5046
  * @param privateStorageOwner (optional) Private storage owner identifier.
3591
5047
  * @param tenantId (optional) Tenant identifier
3592
- * @param body (optional) Updated print-area model.
5048
+ * @param body (optional) Json-serialized model of a print-area.
3593
5049
  * @return Success
3594
5050
  */
3595
5051
  updateDesignPrintAreaModel(id, printAreaId, privateStorageOwner, tenantId, body) {
@@ -3696,7 +5152,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3696
5152
  * @param surfaceId (optional) Parent surface identifier.
3697
5153
  * @param privateStorageOwner (optional) Private storage owner identifier.
3698
5154
  * @param tenantId (optional) Tenant identifier
3699
- * @param body (optional) New print-area model.
5155
+ * @param body (optional) Json serialized model of a print-area.
3700
5156
  * @return Success
3701
5157
  */
3702
5158
  addDesignPrintAreaModel(id, surfaceId, privateStorageOwner, tenantId, body) {
@@ -3875,7 +5331,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3875
5331
  /**
3876
5332
  * Deletes a specified print-product surface in an existing design file.
3877
5333
  * @param id Design identifier.
3878
- * @param surfaceId Surface identifier.
5334
+ * @param surfaceId Print-product surface identifier.
3879
5335
  * @param privateStorageOwner (optional) Private storage owner identifier.
3880
5336
  * @param tenantId (optional) Tenant identifier
3881
5337
  * @return No Content
@@ -3964,9 +5420,9 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
3964
5420
  return of(null);
3965
5421
  }
3966
5422
  /**
3967
- * Returns a down-mockup description of the specified surface in an existing design file.
5423
+ * Returns a down-mockup description of the specified print-product surface in an existing design file.
3968
5424
  * @param id Design identifier.
3969
- * @param surfaceId Design surface identifier.
5425
+ * @param surfaceId Print product surface identifier.
3970
5426
  * @param privateStorageOwner (optional) Private storage owner identifier.
3971
5427
  * @param tenantId (optional) Tenant identifier
3972
5428
  * @return Success
@@ -4066,9 +5522,9 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4066
5522
  return of(null);
4067
5523
  }
4068
5524
  /**
4069
- * Updates a content file of down-mockup for the specified surface in an existing design file.
5525
+ * Updates a content file of down-mockup for the specified print-product surface in an existing design file.
4070
5526
  * @param id Design identifier.
4071
- * @param surfaceId Design surface identifier.
5527
+ * @param surfaceId Print-product surface identifier.
4072
5528
  * @param privateStorageOwner (optional) Private storage owner identifier.
4073
5529
  * @param tenantId (optional) Tenant identifier
4074
5530
  * @param position_top (optional)
@@ -4183,9 +5639,9 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4183
5639
  return of(null);
4184
5640
  }
4185
5641
  /**
4186
- * Returns a content file for down-mockup of the specified surface in an existing design file.
5642
+ * Returns a content file for down-mockup of the specified print-product surface in an existing design file.
4187
5643
  * @param id Design identifier.
4188
- * @param surfaceId Design surface identifier.
5644
+ * @param surfaceId Print-product surface identifier.
4189
5645
  * @param privateStorageOwner (optional) Private storage owner identifier.
4190
5646
  * @param tenantId (optional) Tenant identifier
4191
5647
  * @return Success
@@ -4209,7 +5665,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4209
5665
  observe: "response",
4210
5666
  responseType: "blob",
4211
5667
  headers: new HttpHeaders({
4212
- "Accept": "application/json"
5668
+ "Accept": "application/octet-stream"
4213
5669
  })
4214
5670
  };
4215
5671
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -4284,9 +5740,9 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4284
5740
  return of(null);
4285
5741
  }
4286
5742
  /**
4287
- * Returns an up-mockup description of the specified surface in an existing design file.
5743
+ * Returns an up-mockup description of the specified print-product surface in an existing design file.
4288
5744
  * @param id Design identifier.
4289
- * @param surfaceId Design surface identifier.
5745
+ * @param surfaceId Print-product surface identifier.
4290
5746
  * @param privateStorageOwner (optional) Private storage owner identifier.
4291
5747
  * @param tenantId (optional) Tenant identifier
4292
5748
  * @return Success
@@ -4386,9 +5842,9 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4386
5842
  return of(null);
4387
5843
  }
4388
5844
  /**
4389
- * Updates a content file of up-mockup for the specified surface in an existing design.
5845
+ * Updates a content file of up-mockup for the specified print-product surface in an existing design.
4390
5846
  * @param id Design identifier.
4391
- * @param surfaceId Design surface identifier.
5847
+ * @param surfaceId Print-product surface identifier.
4392
5848
  * @param privateStorageOwner (optional) Private storage owner identifier.
4393
5849
  * @param tenantId (optional) Tenant identifier
4394
5850
  * @param position_top (optional)
@@ -4503,9 +5959,9 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4503
5959
  return of(null);
4504
5960
  }
4505
5961
  /**
4506
- * Returns a content file for up-mockup of the specified surface in an existing design file.
5962
+ * Returns a content file for up-mockup of the specified print-product surface in an existing design file.
4507
5963
  * @param id Design identifier.
4508
- * @param surfaceId Design surface identifier.
5964
+ * @param surfaceId Print-product surface identifier.
4509
5965
  * @param privateStorageOwner (optional) Private storage owner identifier.
4510
5966
  * @param tenantId (optional) Tenant identifier
4511
5967
  * @return Success
@@ -4529,7 +5985,7 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4529
5985
  observe: "response",
4530
5986
  responseType: "blob",
4531
5987
  headers: new HttpHeaders({
4532
- "Accept": "application/json"
5988
+ "Accept": "application/octet-stream"
4533
5989
  })
4534
5990
  };
4535
5991
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -4565,11 +6021,6 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4565
6021
  const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4566
6022
  return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4567
6023
  }
4568
- else if (status === 204) {
4569
- return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4570
- return throwException("No Content", status, _responseText, _headers);
4571
- }));
4572
- }
4573
6024
  else if (status === 400) {
4574
6025
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
4575
6026
  let result400 = null;
@@ -4705,12 +6156,12 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4705
6156
  }
4706
6157
  /**
4707
6158
  * Replaces a specified print-product surface in an existing design file with the data provided as a json-serialized surface model.
4708
- All identifiers of a replaced surface (including surface identifier) will be reset by auto-generated values to prevent identifiers collisions.
6159
+ All design elements identifiers within the surface (including surface identifier) will be reset by auto-generated values to prevent identifiers collisions.
4709
6160
  * @param id Design identifier.
4710
- * @param surfaceId Design surface identifier.
6161
+ * @param surfaceId Print-product surface identifier.
4711
6162
  * @param privateStorageOwner (optional) Private storage owner identifier.
4712
6163
  * @param tenantId (optional) Tenant identifier
4713
- * @param body (optional) Updated surface model.
6164
+ * @param body (optional) Json-serialized model of a print-product surface.
4714
6165
  * @return Success
4715
6166
  */
4716
6167
  replaceDesignSurfaceModel(id, surfaceId, privateStorageOwner, tenantId, body) {
@@ -4812,23 +6263,21 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
4812
6263
  }
4813
6264
  /**
4814
6265
  * Inserts a new surface provided as a json-serialized model at the specified position in an existing design file.
4815
- All identifiers of a replaced surface (including surface identifier) will be reset by auto-generated values to prevent identifiers collisions.
6266
+ All design elements identifiers within the surface (including surface identifier) will be reset by auto-generated values to prevent identifiers collisions.
4816
6267
  * @param id Design identifier.
4817
- * @param surfaceIndex (optional) New surface index.
6268
+ * @param index (optional) Surface index within the surfaces list of a design.
4818
6269
  * @param privateStorageOwner (optional) Private storage owner identifier.
4819
6270
  * @param tenantId (optional) Tenant identifier
4820
- * @param body (optional) New surface model.
6271
+ * @param body (optional) Json-serialized model of a print-prouduct surface.
4821
6272
  * @return Success
4822
6273
  */
4823
- addDesignSurfaceModel(id, surfaceIndex, privateStorageOwner, tenantId, body) {
6274
+ addDesignSurfaceModel(id, index, privateStorageOwner, tenantId, body) {
4824
6275
  let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/surfaces/model?";
4825
6276
  if (id === undefined || id === null)
4826
6277
  throw new Error("The parameter 'id' must be defined.");
4827
6278
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
4828
- if (surfaceIndex === null)
4829
- throw new Error("The parameter 'surfaceIndex' cannot be null.");
4830
- else if (surfaceIndex !== undefined)
4831
- url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
6279
+ if (index !== undefined && index !== null)
6280
+ url_ += "index=" + encodeURIComponent("" + index) + "&";
4832
6281
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4833
6282
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
4834
6283
  if (tenantId === null)
@@ -4930,6 +6379,80 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
4930
6379
  this.http = http;
4931
6380
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
4932
6381
  }
6382
+ /**
6383
+ * Apply effects to print-product item image.
6384
+ * @param tenantId (optional) Tenant identifier
6385
+ * @param body (optional)
6386
+ * @return Success
6387
+ */
6388
+ applyItemEffects(tenantId, body) {
6389
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/apply-effects?";
6390
+ if (tenantId === null)
6391
+ throw new Error("The parameter 'tenantId' cannot be null.");
6392
+ else if (tenantId !== undefined)
6393
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
6394
+ url_ = url_.replace(/[?&]$/, "");
6395
+ const content_ = JSON.stringify(body);
6396
+ let options_ = {
6397
+ body: content_,
6398
+ observe: "response",
6399
+ responseType: "blob",
6400
+ headers: new HttpHeaders({
6401
+ "Content-Type": "application/json",
6402
+ "Accept": "application/json"
6403
+ })
6404
+ };
6405
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
6406
+ return this.http.request("post", url_, transformedOptions_);
6407
+ })).pipe(mergeMap((response_) => {
6408
+ return this.transformResult(url_, response_, (r) => this.processApplyItemEffects(r));
6409
+ })).pipe(catchError((response_) => {
6410
+ if (response_ instanceof HttpResponseBase) {
6411
+ try {
6412
+ return this.transformResult(url_, response_, (r) => this.processApplyItemEffects(r));
6413
+ }
6414
+ catch (e) {
6415
+ return throwError(e);
6416
+ }
6417
+ }
6418
+ else
6419
+ return throwError(response_);
6420
+ }));
6421
+ }
6422
+ processApplyItemEffects(response) {
6423
+ const status = response.status;
6424
+ const responseBlob = response instanceof HttpResponse ? response.body :
6425
+ response.error instanceof Blob ? response.error : undefined;
6426
+ let _headers = {};
6427
+ if (response.headers) {
6428
+ for (let key of response.headers.keys()) {
6429
+ _headers[key] = response.headers.get(key);
6430
+ }
6431
+ }
6432
+ if (status === 200) {
6433
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
6434
+ let result200 = null;
6435
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6436
+ return of(result200);
6437
+ }));
6438
+ }
6439
+ else if (status === 401) {
6440
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
6441
+ return throwException("Unauthorized", status, _responseText, _headers);
6442
+ }));
6443
+ }
6444
+ else if (status === 403) {
6445
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
6446
+ return throwException("Forbidden", status, _responseText, _headers);
6447
+ }));
6448
+ }
6449
+ else if (status !== 200 && status !== 204) {
6450
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
6451
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6452
+ }));
6453
+ }
6454
+ return of(null);
6455
+ }
4933
6456
  /**
4934
6457
  * Extracts print-product item image.
4935
6458
  * @param tenantId (optional) Tenant identifier
@@ -5005,12 +6528,15 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5005
6528
  }
5006
6529
  /**
5007
6530
  * Flattens print-product items.
6531
+ * @param paletteUID (optional)
5008
6532
  * @param tenantId (optional) Tenant identifier
5009
6533
  * @param body (optional) List of print-product items to flatten.
5010
6534
  * @return Success
5011
6535
  */
5012
- flattenItems(tenantId, body) {
6536
+ flattenItems(paletteUID, tenantId, body) {
5013
6537
  let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/flatten?";
6538
+ if (paletteUID !== undefined && paletteUID !== null)
6539
+ url_ += "paletteUID=" + encodeURIComponent("" + paletteUID) + "&";
5014
6540
  if (tenantId === null)
5015
6541
  throw new Error("The parameter 'tenantId' cannot be null.");
5016
6542
  else if (tenantId !== undefined)
@@ -5082,9 +6608,11 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5082
6608
  * @param itemType (optional) Desired item type.
5083
6609
  * @param tenantId (optional) Tenant identifier
5084
6610
  * @param sourceFile (optional)
6611
+ * @param paletteUID (optional)
6612
+ * @param preserveOriginalFile (optional)
5085
6613
  * @return Success
5086
6614
  */
5087
- createItemFromFile(itemType, tenantId, sourceFile) {
6615
+ createItemFromFile(itemType, tenantId, sourceFile, paletteUID, preserveOriginalFile) {
5088
6616
  let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file?";
5089
6617
  if (itemType !== undefined && itemType !== null)
5090
6618
  url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
@@ -5096,6 +6624,10 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5096
6624
  const content_ = new FormData();
5097
6625
  if (sourceFile !== null && sourceFile !== undefined)
5098
6626
  content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
6627
+ if (paletteUID !== null && paletteUID !== undefined)
6628
+ content_.append("paletteUID", paletteUID.toString());
6629
+ if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
6630
+ content_.append("preserveOriginalFile", preserveOriginalFile.toString());
5099
6631
  let options_ = {
5100
6632
  body: content_,
5101
6633
  observe: "response",
@@ -5174,9 +6706,11 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5174
6706
  * @param itemType (optional) Desired print-product items type.
5175
6707
  * @param tenantId (optional) Tenant identifier
5176
6708
  * @param sourceFiles (optional)
6709
+ * @param paletteUID (optional)
6710
+ * @param preserveOriginalFile (optional)
5177
6711
  * @return Success
5178
6712
  */
5179
- batchCreateItemsFromFile(itemType, tenantId, sourceFiles) {
6713
+ batchCreateItemsFromFile(itemType, tenantId, sourceFiles, paletteUID, preserveOriginalFile) {
5180
6714
  let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/from-file/batch-create?";
5181
6715
  if (itemType !== undefined && itemType !== null)
5182
6716
  url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
@@ -5188,6 +6722,10 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
5188
6722
  const content_ = new FormData();
5189
6723
  if (sourceFiles !== null && sourceFiles !== undefined)
5190
6724
  sourceFiles.forEach(item_ => content_.append("sourceFiles", item_.data, item_.fileName ? item_.fileName : "sourceFiles"));
6725
+ if (paletteUID !== null && paletteUID !== undefined)
6726
+ content_.append("paletteUID", paletteUID.toString());
6727
+ if (preserveOriginalFile !== null && preserveOriginalFile !== undefined)
6728
+ content_.append("preserveOriginalFile", preserveOriginalFile.toString());
5191
6729
  let options_ = {
5192
6730
  body: content_,
5193
6731
  observe: "response",
@@ -5704,6 +7242,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
5704
7242
  return of(result201);
5705
7243
  }));
5706
7244
  }
7245
+ else if (status === 409) {
7246
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
7247
+ let result409 = null;
7248
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7249
+ return throwException("Conflict", status, _responseText, _headers, result409);
7250
+ }));
7251
+ }
5707
7252
  else if (status === 401) {
5708
7253
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
5709
7254
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -6984,6 +8529,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
6984
8529
  return of(result200);
6985
8530
  }));
6986
8531
  }
8532
+ else if (status === 404) {
8533
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
8534
+ let result404 = null;
8535
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8536
+ return throwException("Not Found", status, _responseText, _headers, result404);
8537
+ }));
8538
+ }
6987
8539
  else if (status === 409) {
6988
8540
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
6989
8541
  let result409 = null;
@@ -7068,6 +8620,13 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
7068
8620
  const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
7069
8621
  return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
7070
8622
  }
8623
+ else if (status === 404) {
8624
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
8625
+ let result404 = null;
8626
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8627
+ return throwException("Not Found", status, _responseText, _headers, result404);
8628
+ }));
8629
+ }
7071
8630
  else if (status === 401) {
7072
8631
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
7073
8632
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -8067,6 +9626,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8067
9626
  return of(result200);
8068
9627
  }));
8069
9628
  }
9629
+ else if (status === 400) {
9630
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
9631
+ let result400 = null;
9632
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9633
+ return throwException("Bad Request", status, _responseText, _headers, result400);
9634
+ }));
9635
+ }
8070
9636
  else if (status === 401) {
8071
9637
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
8072
9638
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -8140,6 +9706,13 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8140
9706
  return of(result200);
8141
9707
  }));
8142
9708
  }
9709
+ else if (status === 400) {
9710
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
9711
+ let result400 = null;
9712
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9713
+ return throwException("Bad Request", status, _responseText, _headers, result400);
9714
+ }));
9715
+ }
8143
9716
  else if (status === 401) {
8144
9717
  return blobToText(responseBlob).pipe(mergeMap(_responseText => {
8145
9718
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -8175,7 +9748,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8175
9748
  observe: "response",
8176
9749
  responseType: "blob",
8177
9750
  headers: new HttpHeaders({
8178
- "Accept": "application/json"
9751
+ "Accept": "application/octet-stream"
8179
9752
  })
8180
9753
  };
8181
9754
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -8592,7 +10165,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8592
10165
  observe: "response",
8593
10166
  responseType: "blob",
8594
10167
  headers: new HttpHeaders({
8595
- "Accept": "application/json"
10168
+ "Accept": "application/octet-stream"
8596
10169
  })
8597
10170
  };
8598
10171
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -8744,7 +10317,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8744
10317
  observe: "response",
8745
10318
  responseType: "blob",
8746
10319
  headers: new HttpHeaders({
8747
- "Accept": "application/json"
10320
+ "Accept": "application/octet-stream"
8748
10321
  })
8749
10322
  };
8750
10323
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -8827,7 +10400,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8827
10400
  observe: "response",
8828
10401
  responseType: "blob",
8829
10402
  headers: new HttpHeaders({
8830
- "Accept": "application/json"
10403
+ "Accept": "application/octet-stream"
8831
10404
  })
8832
10405
  };
8833
10406
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -8956,7 +10529,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
8956
10529
  observe: "response",
8957
10530
  responseType: "blob",
8958
10531
  headers: new HttpHeaders({
8959
- "Accept": "application/json"
10532
+ "Accept": "application/octet-stream"
8960
10533
  })
8961
10534
  };
8962
10535
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -9039,7 +10612,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
9039
10612
  observe: "response",
9040
10613
  responseType: "blob",
9041
10614
  headers: new HttpHeaders({
9042
- "Accept": "application/json"
10615
+ "Accept": "application/octet-stream"
9043
10616
  })
9044
10617
  };
9045
10618
  return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
@@ -9919,6 +11492,22 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
9919
11492
  { type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
9920
11493
  { type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
9921
11494
  ];
11495
+ var ColorSpace;
11496
+ (function (ColorSpace) {
11497
+ ColorSpace["Rgb"] = "Rgb";
11498
+ ColorSpace["Cmyk"] = "Cmyk";
11499
+ ColorSpace["Grayscale"] = "Grayscale";
11500
+ ColorSpace["Lab"] = "Lab";
11501
+ ColorSpace["Spot"] = "Spot";
11502
+ })(ColorSpace || (ColorSpace = {}));
11503
+ /** Conflict types. */
11504
+ var ConflictType;
11505
+ (function (ConflictType) {
11506
+ ConflictType["NameConflict"] = "NameConflict";
11507
+ ConflictType["FolderOverwriteConflict"] = "FolderOverwriteConflict";
11508
+ ConflictType["IdConflict"] = "IdConflict";
11509
+ ConflictType["GeneralConflict"] = "GeneralConflict";
11510
+ })(ConflictType || (ConflictType = {}));
9922
11511
  var DesignElementType;
9923
11512
  (function (DesignElementType) {
9924
11513
  DesignElementType["Product"] = "Product";
@@ -10074,5 +11663,5 @@ DesignAtomsApiModule.decorators = [
10074
11663
  * Generated bundle index. Do not edit.
10075
11664
  */
10076
11665
 
10077
- export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsPrintProductApiClient, DesignAtomsPrintProductItemsApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
11666
+ export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ColorSpace, ConflictType, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsPalettesApiClient, DesignAtomsPrintProductApiClient, DesignAtomsPrintProductItemsApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFitMode, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
10078
11667
  //# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map