@aurigma/ng-design-atoms-api-client 2.22.1 → 2.26.7

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.
@@ -2534,6 +2534,105 @@
2534
2534
  }
2535
2535
  return rxjs.of(null);
2536
2536
  };
2537
+ /**
2538
+ * Returns content of the background.
2539
+ * @param id Design identifier.
2540
+ * @param surfaceIndex (optional) Surface index.
2541
+ * @param privateStorageOwner (optional) Private storage owner identifier.
2542
+ * @param tenantId (optional) Tenant identifier
2543
+ * @return Success
2544
+ */
2545
+ DesignAtomsServiceApiClient.prototype.extractBackground = function (id, surfaceIndex, privateStorageOwner, tenantId) {
2546
+ var _this = this;
2547
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/background?";
2548
+ if (id === undefined || id === null)
2549
+ throw new Error("The parameter 'id' must be defined.");
2550
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2551
+ if (surfaceIndex !== undefined && surfaceIndex !== null)
2552
+ url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
2553
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2554
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2555
+ if (tenantId === null)
2556
+ throw new Error("The parameter 'tenantId' cannot be null.");
2557
+ else if (tenantId !== undefined)
2558
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2559
+ url_ = url_.replace(/[?&]$/, "");
2560
+ var options_ = {
2561
+ observe: "response",
2562
+ responseType: "blob",
2563
+ headers: new i1.HttpHeaders({
2564
+ "Accept": "application/octet-stream"
2565
+ })
2566
+ };
2567
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2568
+ return _this.http.request("get", url_, transformedOptions_);
2569
+ })).pipe(operators.mergeMap(function (response_) {
2570
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractBackground(r); });
2571
+ })).pipe(operators.catchError(function (response_) {
2572
+ if (response_ instanceof i1.HttpResponseBase) {
2573
+ try {
2574
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractBackground(r); });
2575
+ }
2576
+ catch (e) {
2577
+ return rxjs.throwError(e);
2578
+ }
2579
+ }
2580
+ else
2581
+ return rxjs.throwError(response_);
2582
+ }));
2583
+ };
2584
+ DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
2585
+ var e_28, _a;
2586
+ var _this = this;
2587
+ var status = response.status;
2588
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2589
+ response.error instanceof Blob ? response.error : undefined;
2590
+ var _headers = {};
2591
+ if (response.headers) {
2592
+ try {
2593
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2594
+ var key = _c.value;
2595
+ _headers[key] = response.headers.get(key);
2596
+ }
2597
+ }
2598
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
2599
+ finally {
2600
+ try {
2601
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2602
+ }
2603
+ finally { if (e_28) throw e_28.error; }
2604
+ }
2605
+ }
2606
+ if (status === 200 || status === 206) {
2607
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
2608
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2609
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2610
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2611
+ }
2612
+ else if (status === 404) {
2613
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2614
+ var result404 = null;
2615
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2616
+ return throwException("Not Found", status, _responseText, _headers, result404);
2617
+ }));
2618
+ }
2619
+ else if (status === 401) {
2620
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2621
+ return throwException("Unauthorized", status, _responseText, _headers);
2622
+ }));
2623
+ }
2624
+ else if (status === 403) {
2625
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2626
+ return throwException("Forbidden", status, _responseText, _headers);
2627
+ }));
2628
+ }
2629
+ else if (status !== 200 && status !== 204) {
2630
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2631
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2632
+ }));
2633
+ }
2634
+ return rxjs.of(null);
2635
+ };
2537
2636
  /**
2538
2637
  * Loads product (design model) from design file taken from storage
2539
2638
  * @param id Design identifier
@@ -2582,7 +2681,7 @@
2582
2681
  }));
2583
2682
  };
2584
2683
  DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
2585
- var e_28, _a;
2684
+ var e_29, _a;
2586
2685
  var _this = this;
2587
2686
  var status = response.status;
2588
2687
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2595,12 +2694,12 @@
2595
2694
  _headers[key] = response.headers.get(key);
2596
2695
  }
2597
2696
  }
2598
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
2697
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
2599
2698
  finally {
2600
2699
  try {
2601
2700
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2602
2701
  }
2603
- finally { if (e_28) throw e_28.error; }
2702
+ finally { if (e_29) throw e_29.error; }
2604
2703
  }
2605
2704
  }
2606
2705
  if (status === 200) {
@@ -2685,7 +2784,7 @@
2685
2784
  }));
2686
2785
  };
2687
2786
  DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
2688
- var e_29, _a;
2787
+ var e_30, _a;
2689
2788
  var _this = this;
2690
2789
  var status = response.status;
2691
2790
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2698,12 +2797,12 @@
2698
2797
  _headers[key] = response.headers.get(key);
2699
2798
  }
2700
2799
  }
2701
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
2800
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
2702
2801
  finally {
2703
2802
  try {
2704
2803
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2705
2804
  }
2706
- finally { if (e_29) throw e_29.error; }
2805
+ finally { if (e_30) throw e_30.error; }
2707
2806
  }
2708
2807
  }
2709
2808
  if (status === 200) {
@@ -2794,7 +2893,7 @@
2794
2893
  }));
2795
2894
  };
2796
2895
  DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
2797
- var e_30, _a;
2896
+ var e_31, _a;
2798
2897
  var _this = this;
2799
2898
  var status = response.status;
2800
2899
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2807,12 +2906,12 @@
2807
2906
  _headers[key] = response.headers.get(key);
2808
2907
  }
2809
2908
  }
2810
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
2909
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
2811
2910
  finally {
2812
2911
  try {
2813
2912
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2814
2913
  }
2815
- finally { if (e_30) throw e_30.error; }
2914
+ finally { if (e_31) throw e_31.error; }
2816
2915
  }
2817
2916
  }
2818
2917
  if (status === 200) {
@@ -2892,7 +2991,7 @@
2892
2991
  }));
2893
2992
  };
2894
2993
  DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
2895
- var e_31, _a;
2994
+ var e_32, _a;
2896
2995
  var _this = this;
2897
2996
  var status = response.status;
2898
2997
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2905,12 +3004,12 @@
2905
3004
  _headers[key] = response.headers.get(key);
2906
3005
  }
2907
3006
  }
2908
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3007
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
2909
3008
  finally {
2910
3009
  try {
2911
3010
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2912
3011
  }
2913
- finally { if (e_31) throw e_31.error; }
3012
+ finally { if (e_32) throw e_32.error; }
2914
3013
  }
2915
3014
  }
2916
3015
  if (status === 200 || status === 206) {
@@ -2998,7 +3097,7 @@
2998
3097
  }));
2999
3098
  };
3000
3099
  DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
3001
- var e_32, _a;
3100
+ var e_33, _a;
3002
3101
  var _this = this;
3003
3102
  var status = response.status;
3004
3103
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3011,12 +3110,12 @@
3011
3110
  _headers[key] = response.headers.get(key);
3012
3111
  }
3013
3112
  }
3014
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3113
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3015
3114
  finally {
3016
3115
  try {
3017
3116
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3018
3117
  }
3019
- finally { if (e_32) throw e_32.error; }
3118
+ finally { if (e_33) throw e_33.error; }
3020
3119
  }
3021
3120
  }
3022
3121
  if (status === 200) {
@@ -3081,7 +3180,6 @@
3081
3180
  responseType: "blob",
3082
3181
  headers: new i1.HttpHeaders({
3083
3182
  "Content-Type": "application/json",
3084
- "Accept": "application/json"
3085
3183
  })
3086
3184
  };
3087
3185
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
@@ -3102,7 +3200,7 @@
3102
3200
  }));
3103
3201
  };
3104
3202
  DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
3105
- var e_33, _a;
3203
+ var e_34, _a;
3106
3204
  var _this = this;
3107
3205
  var status = response.status;
3108
3206
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3115,19 +3213,17 @@
3115
3213
  _headers[key] = response.headers.get(key);
3116
3214
  }
3117
3215
  }
3118
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3216
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3119
3217
  finally {
3120
3218
  try {
3121
3219
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3122
3220
  }
3123
- finally { if (e_33) throw e_33.error; }
3221
+ finally { if (e_34) throw e_34.error; }
3124
3222
  }
3125
3223
  }
3126
3224
  if (status === 200) {
3127
3225
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3128
- var result200 = null;
3129
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3130
- return rxjs.of(result200);
3226
+ return rxjs.of(null);
3131
3227
  }));
3132
3228
  }
3133
3229
  else if (status === 404) {
@@ -3209,7 +3305,7 @@
3209
3305
  }));
3210
3306
  };
3211
3307
  DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
3212
- var e_34, _a;
3308
+ var e_35, _a;
3213
3309
  var _this = this;
3214
3310
  var status = response.status;
3215
3311
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3222,12 +3318,12 @@
3222
3318
  _headers[key] = response.headers.get(key);
3223
3319
  }
3224
3320
  }
3225
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3321
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3226
3322
  finally {
3227
3323
  try {
3228
3324
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3229
3325
  }
3230
- finally { if (e_34) throw e_34.error; }
3326
+ finally { if (e_35) throw e_35.error; }
3231
3327
  }
3232
3328
  }
3233
3329
  if (status === 200) {
@@ -3319,7 +3415,295 @@
3319
3415
  }));
3320
3416
  };
3321
3417
  DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
3322
- var e_35, _a;
3418
+ var e_36, _a;
3419
+ var _this = this;
3420
+ var status = response.status;
3421
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3422
+ response.error instanceof Blob ? response.error : undefined;
3423
+ var _headers = {};
3424
+ if (response.headers) {
3425
+ try {
3426
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3427
+ var key = _c.value;
3428
+ _headers[key] = response.headers.get(key);
3429
+ }
3430
+ }
3431
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3432
+ finally {
3433
+ try {
3434
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3435
+ }
3436
+ finally { if (e_36) throw e_36.error; }
3437
+ }
3438
+ }
3439
+ if (status === 200) {
3440
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3441
+ return rxjs.of(null);
3442
+ }));
3443
+ }
3444
+ else if (status === 404) {
3445
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3446
+ var result404 = null;
3447
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3448
+ return throwException("Not Found", status, _responseText, _headers, result404);
3449
+ }));
3450
+ }
3451
+ else if (status === 401) {
3452
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3453
+ return throwException("Unauthorized", status, _responseText, _headers);
3454
+ }));
3455
+ }
3456
+ else if (status === 403) {
3457
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3458
+ return throwException("Forbidden", status, _responseText, _headers);
3459
+ }));
3460
+ }
3461
+ else if (status !== 200 && status !== 204) {
3462
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3463
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3464
+ }));
3465
+ }
3466
+ return rxjs.of(null);
3467
+ };
3468
+ /**
3469
+ * Deletes variable data printing inforamtion from design file and updates design in storage.
3470
+ * @param id Design identifier
3471
+ * @param privateStorage (optional) If set to 'true' design will be taken from private storage
3472
+ * @param privateStorageOwner (optional) Private storage owner identifier
3473
+ * @param tenantId (optional) Tenant identifier
3474
+ * @return Success
3475
+ */
3476
+ DesignAtomsServiceApiClient.prototype.deleteVdpData = function (id, privateStorage, privateStorageOwner, tenantId) {
3477
+ var _this = this;
3478
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdpData?";
3479
+ if (id === undefined || id === null)
3480
+ throw new Error("The parameter 'id' must be defined.");
3481
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3482
+ if (privateStorage !== undefined && privateStorage !== null)
3483
+ url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
3484
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3485
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3486
+ if (tenantId === null)
3487
+ throw new Error("The parameter 'tenantId' cannot be null.");
3488
+ else if (tenantId !== undefined)
3489
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3490
+ url_ = url_.replace(/[?&]$/, "");
3491
+ var options_ = {
3492
+ observe: "response",
3493
+ responseType: "blob",
3494
+ headers: new i1.HttpHeaders({})
3495
+ };
3496
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3497
+ return _this.http.request("delete", url_, transformedOptions_);
3498
+ })).pipe(operators.mergeMap(function (response_) {
3499
+ return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
3500
+ })).pipe(operators.catchError(function (response_) {
3501
+ if (response_ instanceof i1.HttpResponseBase) {
3502
+ try {
3503
+ return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
3504
+ }
3505
+ catch (e) {
3506
+ return rxjs.throwError(e);
3507
+ }
3508
+ }
3509
+ else
3510
+ return rxjs.throwError(response_);
3511
+ }));
3512
+ };
3513
+ DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
3514
+ var e_37, _a;
3515
+ var _this = this;
3516
+ var status = response.status;
3517
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3518
+ response.error instanceof Blob ? response.error : undefined;
3519
+ var _headers = {};
3520
+ if (response.headers) {
3521
+ try {
3522
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3523
+ var key = _c.value;
3524
+ _headers[key] = response.headers.get(key);
3525
+ }
3526
+ }
3527
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3528
+ finally {
3529
+ try {
3530
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3531
+ }
3532
+ finally { if (e_37) throw e_37.error; }
3533
+ }
3534
+ }
3535
+ if (status === 200) {
3536
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3537
+ return rxjs.of(null);
3538
+ }));
3539
+ }
3540
+ else if (status === 409) {
3541
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3542
+ var result409 = null;
3543
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3544
+ return throwException("Conflict", status, _responseText, _headers, result409);
3545
+ }));
3546
+ }
3547
+ else if (status === 401) {
3548
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3549
+ return throwException("Unauthorized", status, _responseText, _headers);
3550
+ }));
3551
+ }
3552
+ else if (status === 403) {
3553
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3554
+ return throwException("Forbidden", status, _responseText, _headers);
3555
+ }));
3556
+ }
3557
+ else if (status !== 200 && status !== 204) {
3558
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3559
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3560
+ }));
3561
+ }
3562
+ return rxjs.of(null);
3563
+ };
3564
+ /**
3565
+ * Flatten items.
3566
+ * @param tenantId (optional) Tenant identifier
3567
+ * @param body (optional) Items to flatten.
3568
+ * @return Success
3569
+ */
3570
+ DesignAtomsServiceApiClient.prototype.flattenItems = function (tenantId, body) {
3571
+ var _this = this;
3572
+ var url_ = this.baseUrl + "/api/atoms/v1/flatten?";
3573
+ if (tenantId === null)
3574
+ throw new Error("The parameter 'tenantId' cannot be null.");
3575
+ else if (tenantId !== undefined)
3576
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3577
+ url_ = url_.replace(/[?&]$/, "");
3578
+ var content_ = JSON.stringify(body);
3579
+ var options_ = {
3580
+ body: content_,
3581
+ observe: "response",
3582
+ responseType: "blob",
3583
+ headers: new i1.HttpHeaders({
3584
+ "Content-Type": "application/json",
3585
+ "Accept": "application/json"
3586
+ })
3587
+ };
3588
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3589
+ return _this.http.request("post", url_, transformedOptions_);
3590
+ })).pipe(operators.mergeMap(function (response_) {
3591
+ return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
3592
+ })).pipe(operators.catchError(function (response_) {
3593
+ if (response_ instanceof i1.HttpResponseBase) {
3594
+ try {
3595
+ return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
3596
+ }
3597
+ catch (e) {
3598
+ return rxjs.throwError(e);
3599
+ }
3600
+ }
3601
+ else
3602
+ return rxjs.throwError(response_);
3603
+ }));
3604
+ };
3605
+ DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
3606
+ var e_38, _a;
3607
+ var _this = this;
3608
+ var status = response.status;
3609
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3610
+ response.error instanceof Blob ? response.error : undefined;
3611
+ var _headers = {};
3612
+ if (response.headers) {
3613
+ try {
3614
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3615
+ var key = _c.value;
3616
+ _headers[key] = response.headers.get(key);
3617
+ }
3618
+ }
3619
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3620
+ finally {
3621
+ try {
3622
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3623
+ }
3624
+ finally { if (e_38) throw e_38.error; }
3625
+ }
3626
+ }
3627
+ if (status === 200) {
3628
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3629
+ var result200 = null;
3630
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3631
+ return rxjs.of(result200);
3632
+ }));
3633
+ }
3634
+ else if (status === 401) {
3635
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3636
+ return throwException("Unauthorized", status, _responseText, _headers);
3637
+ }));
3638
+ }
3639
+ else if (status === 403) {
3640
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3641
+ return throwException("Forbidden", status, _responseText, _headers);
3642
+ }));
3643
+ }
3644
+ else if (status !== 200 && status !== 204) {
3645
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3646
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3647
+ }));
3648
+ }
3649
+ return rxjs.of(null);
3650
+ };
3651
+ /**
3652
+ * Creates product item
3653
+ * @param itemType (optional) Desired item type
3654
+ * @param tenantId (optional) Tenant identifier
3655
+ * @param sourceType (optional)
3656
+ * @param sourceId (optional)
3657
+ * @param sourceOwnerId (optional)
3658
+ * @param sourceFile (optional)
3659
+ * @return Success
3660
+ */
3661
+ DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
3662
+ var _this = this;
3663
+ var url_ = this.baseUrl + "/api/atoms/v1/itemCreator?";
3664
+ if (itemType !== undefined && itemType !== null)
3665
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
3666
+ if (tenantId === null)
3667
+ throw new Error("The parameter 'tenantId' cannot be null.");
3668
+ else if (tenantId !== undefined)
3669
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3670
+ url_ = url_.replace(/[?&]$/, "");
3671
+ var content_ = new FormData();
3672
+ if (sourceType !== null && sourceType !== undefined)
3673
+ content_.append("sourceType", sourceType.toString());
3674
+ if (sourceId !== null && sourceId !== undefined)
3675
+ content_.append("sourceId", sourceId.toString());
3676
+ if (sourceOwnerId !== null && sourceOwnerId !== undefined)
3677
+ content_.append("sourceOwnerId", sourceOwnerId.toString());
3678
+ if (sourceFile !== null && sourceFile !== undefined)
3679
+ content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
3680
+ var options_ = {
3681
+ body: content_,
3682
+ observe: "response",
3683
+ responseType: "blob",
3684
+ headers: new i1.HttpHeaders({
3685
+ "Accept": "application/json"
3686
+ })
3687
+ };
3688
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3689
+ return _this.http.request("post", url_, transformedOptions_);
3690
+ })).pipe(operators.mergeMap(function (response_) {
3691
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
3692
+ })).pipe(operators.catchError(function (response_) {
3693
+ if (response_ instanceof i1.HttpResponseBase) {
3694
+ try {
3695
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
3696
+ }
3697
+ catch (e) {
3698
+ return rxjs.throwError(e);
3699
+ }
3700
+ }
3701
+ else
3702
+ return rxjs.throwError(response_);
3703
+ }));
3704
+ };
3705
+ DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
3706
+ var e_39, _a;
3323
3707
  var _this = this;
3324
3708
  var status = response.status;
3325
3709
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3332,17 +3716,19 @@
3332
3716
  _headers[key] = response.headers.get(key);
3333
3717
  }
3334
3718
  }
3335
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3719
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3336
3720
  finally {
3337
3721
  try {
3338
3722
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3339
3723
  }
3340
- finally { if (e_35) throw e_35.error; }
3724
+ finally { if (e_39) throw e_39.error; }
3341
3725
  }
3342
3726
  }
3343
3727
  if (status === 200) {
3344
3728
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3345
- return rxjs.of(null);
3729
+ var result200 = null;
3730
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3731
+ return rxjs.of(result200);
3346
3732
  }));
3347
3733
  }
3348
3734
  else if (status === 404) {
@@ -3370,21 +3756,20 @@
3370
3756
  return rxjs.of(null);
3371
3757
  };
3372
3758
  /**
3373
- * Deletes variable data printing inforamtion from design file and updates design in storage.
3374
- * @param id Design identifier
3375
- * @param privateStorage (optional) If set to 'true' design will be taken from private storage
3376
- * @param privateStorageOwner (optional) Private storage owner identifier
3759
+ * Creates a private design from a public design.
3760
+ * @param designId (optional) Public design ID.
3761
+ * @param privateDesignId (optional) Private design ID.
3762
+ * @param privateStorageOwner (optional) Private storage owner ID.
3377
3763
  * @param tenantId (optional) Tenant identifier
3378
3764
  * @return Success
3379
3765
  */
3380
- DesignAtomsServiceApiClient.prototype.deleteVdpData = function (id, privateStorage, privateStorageOwner, tenantId) {
3766
+ DesignAtomsServiceApiClient.prototype.createPrivateDesignFromDesign = function (designId, privateDesignId, privateStorageOwner, tenantId) {
3381
3767
  var _this = this;
3382
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdpData?";
3383
- if (id === undefined || id === null)
3384
- throw new Error("The parameter 'id' must be defined.");
3385
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
3386
- if (privateStorage !== undefined && privateStorage !== null)
3387
- url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
3768
+ var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
3769
+ if (designId !== undefined && designId !== null)
3770
+ url_ += "designId=" + encodeURIComponent("" + designId) + "&";
3771
+ if (privateDesignId !== undefined && privateDesignId !== null)
3772
+ url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
3388
3773
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3389
3774
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3390
3775
  if (tenantId === null)
@@ -3398,13 +3783,13 @@
3398
3783
  headers: new i1.HttpHeaders({})
3399
3784
  };
3400
3785
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3401
- return _this.http.request("delete", url_, transformedOptions_);
3786
+ return _this.http.request("post", url_, transformedOptions_);
3402
3787
  })).pipe(operators.mergeMap(function (response_) {
3403
- return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
3788
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromDesign(r); });
3404
3789
  })).pipe(operators.catchError(function (response_) {
3405
3790
  if (response_ instanceof i1.HttpResponseBase) {
3406
3791
  try {
3407
- return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
3792
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromDesign(r); });
3408
3793
  }
3409
3794
  catch (e) {
3410
3795
  return rxjs.throwError(e);
@@ -3414,9 +3799,8 @@
3414
3799
  return rxjs.throwError(response_);
3415
3800
  }));
3416
3801
  };
3417
- DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
3418
- var e_36, _a;
3419
- var _this = this;
3802
+ DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
3803
+ var e_40, _a;
3420
3804
  var status = response.status;
3421
3805
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3422
3806
  response.error instanceof Blob ? response.error : undefined;
@@ -3428,26 +3812,19 @@
3428
3812
  _headers[key] = response.headers.get(key);
3429
3813
  }
3430
3814
  }
3431
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
3815
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
3432
3816
  finally {
3433
3817
  try {
3434
3818
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3435
3819
  }
3436
- finally { if (e_36) throw e_36.error; }
3820
+ finally { if (e_40) throw e_40.error; }
3437
3821
  }
3438
3822
  }
3439
- if (status === 200) {
3823
+ if (status === 201) {
3440
3824
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3441
3825
  return rxjs.of(null);
3442
3826
  }));
3443
3827
  }
3444
- else if (status === 409) {
3445
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3446
- var result409 = null;
3447
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3448
- return throwException("Conflict", status, _responseText, _headers, result409);
3449
- }));
3450
- }
3451
3828
  else if (status === 401) {
3452
3829
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3453
3830
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3466,37 +3843,40 @@
3466
3843
  return rxjs.of(null);
3467
3844
  };
3468
3845
  /**
3469
- * Flatten items
3846
+ * Creates a private design from a public resource.
3847
+ * @param resourceId (optional) Resource ID.
3848
+ * @param privateDesignId (optional) Private design ID.
3849
+ * @param privateStorageOwner (optional) Private storage owner ID.
3470
3850
  * @param tenantId (optional) Tenant identifier
3471
- * @param body (optional) Items to flatten
3472
3851
  * @return Success
3473
3852
  */
3474
- DesignAtomsServiceApiClient.prototype.flattenItems = function (tenantId, body) {
3853
+ DesignAtomsServiceApiClient.prototype.createPrivateDesignFromResource = function (resourceId, privateDesignId, privateStorageOwner, tenantId) {
3475
3854
  var _this = this;
3476
- var url_ = this.baseUrl + "/api/atoms/v1/flatten?";
3855
+ var url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
3856
+ if (resourceId !== undefined && resourceId !== null)
3857
+ url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
3858
+ if (privateDesignId !== undefined && privateDesignId !== null)
3859
+ url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
3860
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3861
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3477
3862
  if (tenantId === null)
3478
3863
  throw new Error("The parameter 'tenantId' cannot be null.");
3479
3864
  else if (tenantId !== undefined)
3480
3865
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3481
3866
  url_ = url_.replace(/[?&]$/, "");
3482
- var content_ = JSON.stringify(body);
3483
3867
  var options_ = {
3484
- body: content_,
3485
3868
  observe: "response",
3486
3869
  responseType: "blob",
3487
- headers: new i1.HttpHeaders({
3488
- "Content-Type": "application/json",
3489
- "Accept": "application/json"
3490
- })
3870
+ headers: new i1.HttpHeaders({})
3491
3871
  };
3492
3872
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3493
3873
  return _this.http.request("post", url_, transformedOptions_);
3494
3874
  })).pipe(operators.mergeMap(function (response_) {
3495
- return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
3875
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
3496
3876
  })).pipe(operators.catchError(function (response_) {
3497
3877
  if (response_ instanceof i1.HttpResponseBase) {
3498
3878
  try {
3499
- return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
3879
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreatePrivateDesignFromResource(r); });
3500
3880
  }
3501
3881
  catch (e) {
3502
3882
  return rxjs.throwError(e);
@@ -3506,9 +3886,8 @@
3506
3886
  return rxjs.throwError(response_);
3507
3887
  }));
3508
3888
  };
3509
- DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
3510
- var e_37, _a;
3511
- var _this = this;
3889
+ DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
3890
+ var e_41, _a;
3512
3891
  var status = response.status;
3513
3892
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3514
3893
  response.error instanceof Blob ? response.error : undefined;
@@ -3520,19 +3899,17 @@
3520
3899
  _headers[key] = response.headers.get(key);
3521
3900
  }
3522
3901
  }
3523
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
3902
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
3524
3903
  finally {
3525
3904
  try {
3526
3905
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3527
3906
  }
3528
- finally { if (e_37) throw e_37.error; }
3907
+ finally { if (e_41) throw e_41.error; }
3529
3908
  }
3530
3909
  }
3531
- if (status === 200) {
3910
+ if (status === 201) {
3532
3911
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3533
- var result200 = null;
3534
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3535
- return rxjs.of(result200);
3912
+ return rxjs.of(null);
3536
3913
  }));
3537
3914
  }
3538
3915
  else if (status === 401) {
@@ -3553,50 +3930,40 @@
3553
3930
  return rxjs.of(null);
3554
3931
  };
3555
3932
  /**
3556
- * Creates product item
3557
- * @param itemType (optional) Desired item type
3933
+ * Renders a design with the specified parameters.
3934
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
3558
3935
  * @param tenantId (optional) Tenant identifier
3559
- * @param sourceType (optional)
3560
- * @param sourceId (optional)
3561
- * @param sourceOwnerId (optional)
3562
- * @param sourceFile (optional)
3936
+ * @param body (optional) Render model with preview parameters.
3563
3937
  * @return Success
3564
3938
  */
3565
- DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
3939
+ DesignAtomsServiceApiClient.prototype.renderDesign = function (attachment, tenantId, body) {
3566
3940
  var _this = this;
3567
- var url_ = this.baseUrl + "/api/atoms/v1/itemCreator?";
3568
- if (itemType !== undefined && itemType !== null)
3569
- url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
3941
+ var url_ = this.baseUrl + "/api/atoms/v1/render-design-preview?";
3942
+ if (attachment !== undefined && attachment !== null)
3943
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
3570
3944
  if (tenantId === null)
3571
3945
  throw new Error("The parameter 'tenantId' cannot be null.");
3572
3946
  else if (tenantId !== undefined)
3573
3947
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3574
3948
  url_ = url_.replace(/[?&]$/, "");
3575
- var content_ = new FormData();
3576
- if (sourceType !== null && sourceType !== undefined)
3577
- content_.append("sourceType", sourceType.toString());
3578
- if (sourceId !== null && sourceId !== undefined)
3579
- content_.append("sourceId", sourceId.toString());
3580
- if (sourceOwnerId !== null && sourceOwnerId !== undefined)
3581
- content_.append("sourceOwnerId", sourceOwnerId.toString());
3582
- if (sourceFile !== null && sourceFile !== undefined)
3583
- content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
3949
+ var content_ = JSON.stringify(body);
3584
3950
  var options_ = {
3585
3951
  body: content_,
3586
3952
  observe: "response",
3587
3953
  responseType: "blob",
3588
3954
  headers: new i1.HttpHeaders({
3589
- "Accept": "application/json"
3955
+ "Content-Type": "application/json",
3956
+ "Accept": "application/octet-stream"
3590
3957
  })
3591
3958
  };
3592
3959
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3593
3960
  return _this.http.request("post", url_, transformedOptions_);
3594
3961
  })).pipe(operators.mergeMap(function (response_) {
3595
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
3962
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesign(r); });
3596
3963
  })).pipe(operators.catchError(function (response_) {
3597
3964
  if (response_ instanceof i1.HttpResponseBase) {
3598
3965
  try {
3599
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
3966
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesign(r); });
3600
3967
  }
3601
3968
  catch (e) {
3602
3969
  return rxjs.throwError(e);
@@ -3606,9 +3973,8 @@
3606
3973
  return rxjs.throwError(response_);
3607
3974
  }));
3608
3975
  };
3609
- DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
3610
- var e_38, _a;
3611
- var _this = this;
3976
+ DesignAtomsServiceApiClient.prototype.processRenderDesign = function (response) {
3977
+ var e_42, _a;
3612
3978
  var status = response.status;
3613
3979
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3614
3980
  response.error instanceof Blob ? response.error : undefined;
@@ -3620,27 +3986,19 @@
3620
3986
  _headers[key] = response.headers.get(key);
3621
3987
  }
3622
3988
  }
3623
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
3989
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
3624
3990
  finally {
3625
3991
  try {
3626
3992
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3627
3993
  }
3628
- finally { if (e_38) throw e_38.error; }
3994
+ finally { if (e_42) throw e_42.error; }
3629
3995
  }
3630
3996
  }
3631
- if (status === 200) {
3632
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3633
- var result200 = null;
3634
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3635
- return rxjs.of(result200);
3636
- }));
3637
- }
3638
- else if (status === 404) {
3639
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3640
- var result404 = null;
3641
- result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3642
- return throwException("Not Found", status, _responseText, _headers, result404);
3643
- }));
3997
+ if (status === 200 || status === 206) {
3998
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3999
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4000
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4001
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
3644
4002
  }
3645
4003
  else if (status === 401) {
3646
4004
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -3661,9 +4019,9 @@
3661
4019
  };
3662
4020
  /**
3663
4021
  * Render product proof image with specified parameters.
3664
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
4022
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
3665
4023
  * @param tenantId (optional) Tenant identifier
3666
- * @param body (optional) Preview parameters
4024
+ * @param body (optional) Preview parameters.
3667
4025
  * @return Success
3668
4026
  */
3669
4027
  DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
@@ -3683,7 +4041,7 @@
3683
4041
  responseType: "blob",
3684
4042
  headers: new i1.HttpHeaders({
3685
4043
  "Content-Type": "application/json",
3686
- "Accept": "application/json"
4044
+ "Accept": "application/octet-stream"
3687
4045
  })
3688
4046
  };
3689
4047
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
@@ -3704,7 +4062,7 @@
3704
4062
  }));
3705
4063
  };
3706
4064
  DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
3707
- var e_39, _a;
4065
+ var e_43, _a;
3708
4066
  var status = response.status;
3709
4067
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3710
4068
  response.error instanceof Blob ? response.error : undefined;
@@ -3716,12 +4074,12 @@
3716
4074
  _headers[key] = response.headers.get(key);
3717
4075
  }
3718
4076
  }
3719
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4077
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
3720
4078
  finally {
3721
4079
  try {
3722
4080
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3723
4081
  }
3724
- finally { if (e_39) throw e_39.error; }
4082
+ finally { if (e_43) throw e_43.error; }
3725
4083
  }
3726
4084
  }
3727
4085
  if (status === 200 || status === 206) {
@@ -3810,7 +4168,7 @@
3810
4168
  }));
3811
4169
  };
3812
4170
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
3813
- var e_40, _a;
4171
+ var e_44, _a;
3814
4172
  var _this = this;
3815
4173
  var status = response.status;
3816
4174
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3823,12 +4181,12 @@
3823
4181
  _headers[key] = response.headers.get(key);
3824
4182
  }
3825
4183
  }
3826
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4184
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
3827
4185
  finally {
3828
4186
  try {
3829
4187
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3830
4188
  }
3831
- finally { if (e_40) throw e_40.error; }
4189
+ finally { if (e_44) throw e_44.error; }
3832
4190
  }
3833
4191
  }
3834
4192
  if (status === 200) {
@@ -3885,7 +4243,7 @@
3885
4243
  }));
3886
4244
  };
3887
4245
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
3888
- var e_41, _a;
4246
+ var e_45, _a;
3889
4247
  var _this = this;
3890
4248
  var status = response.status;
3891
4249
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3898,12 +4256,12 @@
3898
4256
  _headers[key] = response.headers.get(key);
3899
4257
  }
3900
4258
  }
3901
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
4259
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
3902
4260
  finally {
3903
4261
  try {
3904
4262
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3905
4263
  }
3906
- finally { if (e_41) throw e_41.error; }
4264
+ finally { if (e_45) throw e_45.error; }
3907
4265
  }
3908
4266
  }
3909
4267
  if (status === 200 || status === 206) {
@@ -3966,7 +4324,7 @@
3966
4324
  }));
3967
4325
  };
3968
4326
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
3969
- var e_42, _a;
4327
+ var e_46, _a;
3970
4328
  var _this = this;
3971
4329
  var status = response.status;
3972
4330
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3979,12 +4337,12 @@
3979
4337
  _headers[key] = response.headers.get(key);
3980
4338
  }
3981
4339
  }
3982
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4340
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
3983
4341
  finally {
3984
4342
  try {
3985
4343
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3986
4344
  }
3987
- finally { if (e_42) throw e_42.error; }
4345
+ finally { if (e_46) throw e_46.error; }
3988
4346
  }
3989
4347
  }
3990
4348
  if (status === 200 || status === 206) {
@@ -4048,7 +4406,7 @@
4048
4406
  }));
4049
4407
  };
4050
4408
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
4051
- var e_43, _a;
4409
+ var e_47, _a;
4052
4410
  var _this = this;
4053
4411
  var status = response.status;
4054
4412
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4061,12 +4419,12 @@
4061
4419
  _headers[key] = response.headers.get(key);
4062
4420
  }
4063
4421
  }
4064
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
4422
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4065
4423
  finally {
4066
4424
  try {
4067
4425
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4068
4426
  }
4069
- finally { if (e_43) throw e_43.error; }
4427
+ finally { if (e_47) throw e_47.error; }
4070
4428
  }
4071
4429
  }
4072
4430
  if (status === 200) {
@@ -4124,7 +4482,7 @@
4124
4482
  }));
4125
4483
  };
4126
4484
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
4127
- var e_44, _a;
4485
+ var e_48, _a;
4128
4486
  var _this = this;
4129
4487
  var status = response.status;
4130
4488
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4137,12 +4495,12 @@
4137
4495
  _headers[key] = response.headers.get(key);
4138
4496
  }
4139
4497
  }
4140
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
4498
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4141
4499
  finally {
4142
4500
  try {
4143
4501
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4144
4502
  }
4145
- finally { if (e_44) throw e_44.error; }
4503
+ finally { if (e_48) throw e_48.error; }
4146
4504
  }
4147
4505
  }
4148
4506
  if (status === 200) {
@@ -4200,7 +4558,7 @@
4200
4558
  }));
4201
4559
  };
4202
4560
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
4203
- var e_45, _a;
4561
+ var e_49, _a;
4204
4562
  var _this = this;
4205
4563
  var status = response.status;
4206
4564
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4213,12 +4571,12 @@
4213
4571
  _headers[key] = response.headers.get(key);
4214
4572
  }
4215
4573
  }
4216
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
4574
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4217
4575
  finally {
4218
4576
  try {
4219
4577
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4220
4578
  }
4221
- finally { if (e_45) throw e_45.error; }
4579
+ finally { if (e_49) throw e_49.error; }
4222
4580
  }
4223
4581
  }
4224
4582
  if (status === 200) {
@@ -4320,7 +4678,7 @@
4320
4678
  }));
4321
4679
  };
4322
4680
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
4323
- var e_46, _a;
4681
+ var e_50, _a;
4324
4682
  var _this = this;
4325
4683
  var status = response.status;
4326
4684
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4333,12 +4691,12 @@
4333
4691
  _headers[key] = response.headers.get(key);
4334
4692
  }
4335
4693
  }
4336
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
4694
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4337
4695
  finally {
4338
4696
  try {
4339
4697
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4340
4698
  }
4341
- finally { if (e_46) throw e_46.error; }
4699
+ finally { if (e_50) throw e_50.error; }
4342
4700
  }
4343
4701
  }
4344
4702
  if (status === 200 || status === 206) {
@@ -4403,7 +4761,7 @@
4403
4761
  }));
4404
4762
  };
4405
4763
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
4406
- var e_47, _a;
4764
+ var e_51, _a;
4407
4765
  var _this = this;
4408
4766
  var status = response.status;
4409
4767
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4416,12 +4774,12 @@
4416
4774
  _headers[key] = response.headers.get(key);
4417
4775
  }
4418
4776
  }
4419
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
4777
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
4420
4778
  finally {
4421
4779
  try {
4422
4780
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4423
4781
  }
4424
- finally { if (e_47) throw e_47.error; }
4782
+ finally { if (e_51) throw e_51.error; }
4425
4783
  }
4426
4784
  }
4427
4785
  if (status === 200) {
@@ -4478,7 +4836,7 @@
4478
4836
  }));
4479
4837
  };
4480
4838
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
4481
- var e_48, _a;
4839
+ var e_52, _a;
4482
4840
  var _this = this;
4483
4841
  var status = response.status;
4484
4842
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4491,12 +4849,12 @@
4491
4849
  _headers[key] = response.headers.get(key);
4492
4850
  }
4493
4851
  }
4494
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
4852
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4495
4853
  finally {
4496
4854
  try {
4497
4855
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4498
4856
  }
4499
- finally { if (e_48) throw e_48.error; }
4857
+ finally { if (e_52) throw e_52.error; }
4500
4858
  }
4501
4859
  }
4502
4860
  if (status === 200 || status === 206) {
@@ -4564,7 +4922,7 @@
4564
4922
  }));
4565
4923
  };
4566
4924
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
4567
- var e_49, _a;
4925
+ var e_53, _a;
4568
4926
  var _this = this;
4569
4927
  var status = response.status;
4570
4928
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4577,12 +4935,12 @@
4577
4935
  _headers[key] = response.headers.get(key);
4578
4936
  }
4579
4937
  }
4580
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
4938
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
4581
4939
  finally {
4582
4940
  try {
4583
4941
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4584
4942
  }
4585
- finally { if (e_49) throw e_49.error; }
4943
+ finally { if (e_53) throw e_53.error; }
4586
4944
  }
4587
4945
  }
4588
4946
  if (status === 200 || status === 206) {
@@ -4645,7 +5003,7 @@
4645
5003
  }));
4646
5004
  };
4647
5005
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
4648
- var e_50, _a;
5006
+ var e_54, _a;
4649
5007
  var _this = this;
4650
5008
  var status = response.status;
4651
5009
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4658,12 +5016,12 @@
4658
5016
  _headers[key] = response.headers.get(key);
4659
5017
  }
4660
5018
  }
4661
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
5019
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
4662
5020
  finally {
4663
5021
  try {
4664
5022
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4665
5023
  }
4666
- finally { if (e_50) throw e_50.error; }
5024
+ finally { if (e_54) throw e_54.error; }
4667
5025
  }
4668
5026
  }
4669
5027
  if (status === 200 || status === 206) {
@@ -4731,7 +5089,7 @@
4731
5089
  }));
4732
5090
  };
4733
5091
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
4734
- var e_51, _a;
5092
+ var e_55, _a;
4735
5093
  var _this = this;
4736
5094
  var status = response.status;
4737
5095
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4744,12 +5102,12 @@
4744
5102
  _headers[key] = response.headers.get(key);
4745
5103
  }
4746
5104
  }
4747
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
5105
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
4748
5106
  finally {
4749
5107
  try {
4750
5108
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4751
5109
  }
4752
- finally { if (e_51) throw e_51.error; }
5110
+ finally { if (e_55) throw e_55.error; }
4753
5111
  }
4754
5112
  }
4755
5113
  if (status === 200 || status === 206) {
@@ -4818,7 +5176,7 @@
4818
5176
  }));
4819
5177
  };
4820
5178
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
4821
- var e_52, _a;
5179
+ var e_56, _a;
4822
5180
  var _this = this;
4823
5181
  var status = response.status;
4824
5182
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4831,12 +5189,12 @@
4831
5189
  _headers[key] = response.headers.get(key);
4832
5190
  }
4833
5191
  }
4834
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
5192
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
4835
5193
  finally {
4836
5194
  try {
4837
5195
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4838
5196
  }
4839
- finally { if (e_52) throw e_52.error; }
5197
+ finally { if (e_56) throw e_56.error; }
4840
5198
  }
4841
5199
  }
4842
5200
  if (status === 200) {
@@ -4894,7 +5252,7 @@
4894
5252
  }));
4895
5253
  };
4896
5254
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
4897
- var e_53, _a;
5255
+ var e_57, _a;
4898
5256
  var _this = this;
4899
5257
  var status = response.status;
4900
5258
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4907,12 +5265,12 @@
4907
5265
  _headers[key] = response.headers.get(key);
4908
5266
  }
4909
5267
  }
4910
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
5268
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
4911
5269
  finally {
4912
5270
  try {
4913
5271
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4914
5272
  }
4915
- finally { if (e_53) throw e_53.error; }
5273
+ finally { if (e_57) throw e_57.error; }
4916
5274
  }
4917
5275
  }
4918
5276
  if (status === 200) {
@@ -4970,7 +5328,7 @@
4970
5328
  }));
4971
5329
  };
4972
5330
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
4973
- var e_54, _a;
5331
+ var e_58, _a;
4974
5332
  var _this = this;
4975
5333
  var status = response.status;
4976
5334
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4983,12 +5341,12 @@
4983
5341
  _headers[key] = response.headers.get(key);
4984
5342
  }
4985
5343
  }
4986
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
5344
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
4987
5345
  finally {
4988
5346
  try {
4989
5347
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4990
5348
  }
4991
- finally { if (e_54) throw e_54.error; }
5349
+ finally { if (e_58) throw e_58.error; }
4992
5350
  }
4993
5351
  }
4994
5352
  if (status === 200) {
@@ -5046,7 +5404,7 @@
5046
5404
  }));
5047
5405
  };
5048
5406
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
5049
- var e_55, _a;
5407
+ var e_59, _a;
5050
5408
  var _this = this;
5051
5409
  var status = response.status;
5052
5410
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5059,12 +5417,12 @@
5059
5417
  _headers[key] = response.headers.get(key);
5060
5418
  }
5061
5419
  }
5062
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
5420
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5063
5421
  finally {
5064
5422
  try {
5065
5423
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5066
5424
  }
5067
- finally { if (e_55) throw e_55.error; }
5425
+ finally { if (e_59) throw e_59.error; }
5068
5426
  }
5069
5427
  }
5070
5428
  if (status === 200) {
@@ -5122,7 +5480,7 @@
5122
5480
  }));
5123
5481
  };
5124
5482
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
5125
- var e_56, _a;
5483
+ var e_60, _a;
5126
5484
  var _this = this;
5127
5485
  var status = response.status;
5128
5486
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5135,12 +5493,12 @@
5135
5493
  _headers[key] = response.headers.get(key);
5136
5494
  }
5137
5495
  }
5138
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
5496
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5139
5497
  finally {
5140
5498
  try {
5141
5499
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5142
5500
  }
5143
- finally { if (e_56) throw e_56.error; }
5501
+ finally { if (e_60) throw e_60.error; }
5144
5502
  }
5145
5503
  }
5146
5504
  if (status === 200) {
@@ -5198,7 +5556,7 @@
5198
5556
  }));
5199
5557
  };
5200
5558
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
5201
- var e_57, _a;
5559
+ var e_61, _a;
5202
5560
  var _this = this;
5203
5561
  var status = response.status;
5204
5562
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5211,12 +5569,12 @@
5211
5569
  _headers[key] = response.headers.get(key);
5212
5570
  }
5213
5571
  }
5214
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
5572
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5215
5573
  finally {
5216
5574
  try {
5217
5575
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5218
5576
  }
5219
- finally { if (e_57) throw e_57.error; }
5577
+ finally { if (e_61) throw e_61.error; }
5220
5578
  }
5221
5579
  }
5222
5580
  if (status === 200) {
@@ -5274,7 +5632,7 @@
5274
5632
  }));
5275
5633
  };
5276
5634
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
5277
- var e_58, _a;
5635
+ var e_62, _a;
5278
5636
  var _this = this;
5279
5637
  var status = response.status;
5280
5638
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5287,12 +5645,12 @@
5287
5645
  _headers[key] = response.headers.get(key);
5288
5646
  }
5289
5647
  }
5290
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
5648
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
5291
5649
  finally {
5292
5650
  try {
5293
5651
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5294
5652
  }
5295
- finally { if (e_58) throw e_58.error; }
5653
+ finally { if (e_62) throw e_62.error; }
5296
5654
  }
5297
5655
  }
5298
5656
  if (status === 200) {
@@ -5350,7 +5708,7 @@
5350
5708
  }));
5351
5709
  };
5352
5710
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
5353
- var e_59, _a;
5711
+ var e_63, _a;
5354
5712
  var _this = this;
5355
5713
  var status = response.status;
5356
5714
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5363,12 +5721,12 @@
5363
5721
  _headers[key] = response.headers.get(key);
5364
5722
  }
5365
5723
  }
5366
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
5724
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
5367
5725
  finally {
5368
5726
  try {
5369
5727
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5370
5728
  }
5371
- finally { if (e_59) throw e_59.error; }
5729
+ finally { if (e_63) throw e_63.error; }
5372
5730
  }
5373
5731
  }
5374
5732
  if (status === 200) {
@@ -5426,7 +5784,7 @@
5426
5784
  }));
5427
5785
  };
5428
5786
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
5429
- var e_60, _a;
5787
+ var e_64, _a;
5430
5788
  var _this = this;
5431
5789
  var status = response.status;
5432
5790
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5439,12 +5797,12 @@
5439
5797
  _headers[key] = response.headers.get(key);
5440
5798
  }
5441
5799
  }
5442
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
5800
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
5443
5801
  finally {
5444
5802
  try {
5445
5803
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5446
5804
  }
5447
- finally { if (e_60) throw e_60.error; }
5805
+ finally { if (e_64) throw e_64.error; }
5448
5806
  }
5449
5807
  }
5450
5808
  if (status === 200) {
@@ -5502,7 +5860,7 @@
5502
5860
  }));
5503
5861
  };
5504
5862
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
5505
- var e_61, _a;
5863
+ var e_65, _a;
5506
5864
  var _this = this;
5507
5865
  var status = response.status;
5508
5866
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5515,12 +5873,12 @@
5515
5873
  _headers[key] = response.headers.get(key);
5516
5874
  }
5517
5875
  }
5518
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
5876
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
5519
5877
  finally {
5520
5878
  try {
5521
5879
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5522
5880
  }
5523
- finally { if (e_61) throw e_61.error; }
5881
+ finally { if (e_65) throw e_65.error; }
5524
5882
  }
5525
5883
  }
5526
5884
  if (status === 200) {
@@ -5578,7 +5936,7 @@
5578
5936
  }));
5579
5937
  };
5580
5938
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
5581
- var e_62, _a;
5939
+ var e_66, _a;
5582
5940
  var _this = this;
5583
5941
  var status = response.status;
5584
5942
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5591,12 +5949,12 @@
5591
5949
  _headers[key] = response.headers.get(key);
5592
5950
  }
5593
5951
  }
5594
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
5952
+ catch (e_66_1) { e_66 = { error: e_66_1 }; }
5595
5953
  finally {
5596
5954
  try {
5597
5955
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5598
5956
  }
5599
- finally { if (e_62) throw e_62.error; }
5957
+ finally { if (e_66) throw e_66.error; }
5600
5958
  }
5601
5959
  }
5602
5960
  if (status === 200) {
@@ -5626,6 +5984,14 @@
5626
5984
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
5627
5985
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
5628
5986
  ]; };
5987
+ (function (DesignElementType) {
5988
+ DesignElementType["Product"] = "Product";
5989
+ DesignElementType["Design"] = "Design";
5990
+ DesignElementType["Surface"] = "Surface";
5991
+ DesignElementType["Container"] = "Container";
5992
+ DesignElementType["PrintArea"] = "PrintArea";
5993
+ DesignElementType["Item"] = "Item";
5994
+ })(exports.DesignElementType || (exports.DesignElementType = {}));
5629
5995
  (function (ProductPatchType) {
5630
5996
  ProductPatchType["Undefined"] = "Undefined";
5631
5997
  ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
@@ -5641,6 +6007,12 @@
5641
6007
  ItemSourceType["ImageStorage"] = "ImageStorage";
5642
6008
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
5643
6009
  })(exports.ItemSourceType || (exports.ItemSourceType = {}));
6010
+ (function (ProductPreviewFormat) {
6011
+ ProductPreviewFormat["Jpeg"] = "Jpeg";
6012
+ ProductPreviewFormat["Png"] = "Png";
6013
+ ProductPreviewFormat["Tiff"] = "Tiff";
6014
+ ProductPreviewFormat["Pdf"] = "Pdf";
6015
+ })(exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
5644
6016
  (function (ProductProofFormat) {
5645
6017
  ProductProofFormat["Jpeg"] = "Jpeg";
5646
6018
  ProductProofFormat["Png"] = "Png";