@aurigma/ng-design-atoms-api-client 2.26.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) {
@@ -3101,7 +3200,7 @@
3101
3200
  }));
3102
3201
  };
3103
3202
  DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
3104
- var e_33, _a;
3203
+ var e_34, _a;
3105
3204
  var _this = this;
3106
3205
  var status = response.status;
3107
3206
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3114,12 +3213,12 @@
3114
3213
  _headers[key] = response.headers.get(key);
3115
3214
  }
3116
3215
  }
3117
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3216
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3118
3217
  finally {
3119
3218
  try {
3120
3219
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3121
3220
  }
3122
- finally { if (e_33) throw e_33.error; }
3221
+ finally { if (e_34) throw e_34.error; }
3123
3222
  }
3124
3223
  }
3125
3224
  if (status === 200) {
@@ -3206,7 +3305,7 @@
3206
3305
  }));
3207
3306
  };
3208
3307
  DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
3209
- var e_34, _a;
3308
+ var e_35, _a;
3210
3309
  var _this = this;
3211
3310
  var status = response.status;
3212
3311
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3219,12 +3318,12 @@
3219
3318
  _headers[key] = response.headers.get(key);
3220
3319
  }
3221
3320
  }
3222
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3321
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3223
3322
  finally {
3224
3323
  try {
3225
3324
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3226
3325
  }
3227
- finally { if (e_34) throw e_34.error; }
3326
+ finally { if (e_35) throw e_35.error; }
3228
3327
  }
3229
3328
  }
3230
3329
  if (status === 200) {
@@ -3316,7 +3415,7 @@
3316
3415
  }));
3317
3416
  };
3318
3417
  DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
3319
- var e_35, _a;
3418
+ var e_36, _a;
3320
3419
  var _this = this;
3321
3420
  var status = response.status;
3322
3421
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3329,12 +3428,12 @@
3329
3428
  _headers[key] = response.headers.get(key);
3330
3429
  }
3331
3430
  }
3332
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3431
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3333
3432
  finally {
3334
3433
  try {
3335
3434
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3336
3435
  }
3337
- finally { if (e_35) throw e_35.error; }
3436
+ finally { if (e_36) throw e_36.error; }
3338
3437
  }
3339
3438
  }
3340
3439
  if (status === 200) {
@@ -3412,7 +3511,7 @@
3412
3511
  }));
3413
3512
  };
3414
3513
  DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
3415
- var e_36, _a;
3514
+ var e_37, _a;
3416
3515
  var _this = this;
3417
3516
  var status = response.status;
3418
3517
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3425,12 +3524,12 @@
3425
3524
  _headers[key] = response.headers.get(key);
3426
3525
  }
3427
3526
  }
3428
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
3527
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3429
3528
  finally {
3430
3529
  try {
3431
3530
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3432
3531
  }
3433
- finally { if (e_36) throw e_36.error; }
3532
+ finally { if (e_37) throw e_37.error; }
3434
3533
  }
3435
3534
  }
3436
3535
  if (status === 200) {
@@ -3504,7 +3603,7 @@
3504
3603
  }));
3505
3604
  };
3506
3605
  DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
3507
- var e_37, _a;
3606
+ var e_38, _a;
3508
3607
  var _this = this;
3509
3608
  var status = response.status;
3510
3609
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3517,12 +3616,12 @@
3517
3616
  _headers[key] = response.headers.get(key);
3518
3617
  }
3519
3618
  }
3520
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
3619
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3521
3620
  finally {
3522
3621
  try {
3523
3622
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3524
3623
  }
3525
- finally { if (e_37) throw e_37.error; }
3624
+ finally { if (e_38) throw e_38.error; }
3526
3625
  }
3527
3626
  }
3528
3627
  if (status === 200) {
@@ -3604,7 +3703,7 @@
3604
3703
  }));
3605
3704
  };
3606
3705
  DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
3607
- var e_38, _a;
3706
+ var e_39, _a;
3608
3707
  var _this = this;
3609
3708
  var status = response.status;
3610
3709
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3617,12 +3716,12 @@
3617
3716
  _headers[key] = response.headers.get(key);
3618
3717
  }
3619
3718
  }
3620
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
3719
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3621
3720
  finally {
3622
3721
  try {
3623
3722
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3624
3723
  }
3625
- finally { if (e_38) throw e_38.error; }
3724
+ finally { if (e_39) throw e_39.error; }
3626
3725
  }
3627
3726
  }
3628
3727
  if (status === 200) {
@@ -3701,7 +3800,7 @@
3701
3800
  }));
3702
3801
  };
3703
3802
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
3704
- var e_39, _a;
3803
+ var e_40, _a;
3705
3804
  var status = response.status;
3706
3805
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3707
3806
  response.error instanceof Blob ? response.error : undefined;
@@ -3713,12 +3812,12 @@
3713
3812
  _headers[key] = response.headers.get(key);
3714
3813
  }
3715
3814
  }
3716
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
3815
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
3717
3816
  finally {
3718
3817
  try {
3719
3818
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3720
3819
  }
3721
- finally { if (e_39) throw e_39.error; }
3820
+ finally { if (e_40) throw e_40.error; }
3722
3821
  }
3723
3822
  }
3724
3823
  if (status === 201) {
@@ -3788,7 +3887,7 @@
3788
3887
  }));
3789
3888
  };
3790
3889
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
3791
- var e_40, _a;
3890
+ var e_41, _a;
3792
3891
  var status = response.status;
3793
3892
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3794
3893
  response.error instanceof Blob ? response.error : undefined;
@@ -3800,12 +3899,12 @@
3800
3899
  _headers[key] = response.headers.get(key);
3801
3900
  }
3802
3901
  }
3803
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
3902
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
3804
3903
  finally {
3805
3904
  try {
3806
3905
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3807
3906
  }
3808
- finally { if (e_40) throw e_40.error; }
3907
+ finally { if (e_41) throw e_41.error; }
3809
3908
  }
3810
3909
  }
3811
3910
  if (status === 201) {
@@ -3875,7 +3974,7 @@
3875
3974
  }));
3876
3975
  };
3877
3976
  DesignAtomsServiceApiClient.prototype.processRenderDesign = function (response) {
3878
- var e_41, _a;
3977
+ var e_42, _a;
3879
3978
  var status = response.status;
3880
3979
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3881
3980
  response.error instanceof Blob ? response.error : undefined;
@@ -3887,12 +3986,12 @@
3887
3986
  _headers[key] = response.headers.get(key);
3888
3987
  }
3889
3988
  }
3890
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
3989
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
3891
3990
  finally {
3892
3991
  try {
3893
3992
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3894
3993
  }
3895
- finally { if (e_41) throw e_41.error; }
3994
+ finally { if (e_42) throw e_42.error; }
3896
3995
  }
3897
3996
  }
3898
3997
  if (status === 200 || status === 206) {
@@ -3963,7 +4062,7 @@
3963
4062
  }));
3964
4063
  };
3965
4064
  DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
3966
- var e_42, _a;
4065
+ var e_43, _a;
3967
4066
  var status = response.status;
3968
4067
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
3969
4068
  response.error instanceof Blob ? response.error : undefined;
@@ -3975,12 +4074,12 @@
3975
4074
  _headers[key] = response.headers.get(key);
3976
4075
  }
3977
4076
  }
3978
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4077
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
3979
4078
  finally {
3980
4079
  try {
3981
4080
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3982
4081
  }
3983
- finally { if (e_42) throw e_42.error; }
4082
+ finally { if (e_43) throw e_43.error; }
3984
4083
  }
3985
4084
  }
3986
4085
  if (status === 200 || status === 206) {
@@ -4069,7 +4168,7 @@
4069
4168
  }));
4070
4169
  };
4071
4170
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
4072
- var e_43, _a;
4171
+ var e_44, _a;
4073
4172
  var _this = this;
4074
4173
  var status = response.status;
4075
4174
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4082,12 +4181,12 @@
4082
4181
  _headers[key] = response.headers.get(key);
4083
4182
  }
4084
4183
  }
4085
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
4184
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4086
4185
  finally {
4087
4186
  try {
4088
4187
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4089
4188
  }
4090
- finally { if (e_43) throw e_43.error; }
4189
+ finally { if (e_44) throw e_44.error; }
4091
4190
  }
4092
4191
  }
4093
4192
  if (status === 200) {
@@ -4144,7 +4243,7 @@
4144
4243
  }));
4145
4244
  };
4146
4245
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
4147
- var e_44, _a;
4246
+ var e_45, _a;
4148
4247
  var _this = this;
4149
4248
  var status = response.status;
4150
4249
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4157,12 +4256,12 @@
4157
4256
  _headers[key] = response.headers.get(key);
4158
4257
  }
4159
4258
  }
4160
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
4259
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
4161
4260
  finally {
4162
4261
  try {
4163
4262
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4164
4263
  }
4165
- finally { if (e_44) throw e_44.error; }
4264
+ finally { if (e_45) throw e_45.error; }
4166
4265
  }
4167
4266
  }
4168
4267
  if (status === 200 || status === 206) {
@@ -4225,7 +4324,7 @@
4225
4324
  }));
4226
4325
  };
4227
4326
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
4228
- var e_45, _a;
4327
+ var e_46, _a;
4229
4328
  var _this = this;
4230
4329
  var status = response.status;
4231
4330
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4238,12 +4337,12 @@
4238
4337
  _headers[key] = response.headers.get(key);
4239
4338
  }
4240
4339
  }
4241
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
4340
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4242
4341
  finally {
4243
4342
  try {
4244
4343
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4245
4344
  }
4246
- finally { if (e_45) throw e_45.error; }
4345
+ finally { if (e_46) throw e_46.error; }
4247
4346
  }
4248
4347
  }
4249
4348
  if (status === 200 || status === 206) {
@@ -4307,7 +4406,7 @@
4307
4406
  }));
4308
4407
  };
4309
4408
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
4310
- var e_46, _a;
4409
+ var e_47, _a;
4311
4410
  var _this = this;
4312
4411
  var status = response.status;
4313
4412
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4320,12 +4419,12 @@
4320
4419
  _headers[key] = response.headers.get(key);
4321
4420
  }
4322
4421
  }
4323
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
4422
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4324
4423
  finally {
4325
4424
  try {
4326
4425
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4327
4426
  }
4328
- finally { if (e_46) throw e_46.error; }
4427
+ finally { if (e_47) throw e_47.error; }
4329
4428
  }
4330
4429
  }
4331
4430
  if (status === 200) {
@@ -4383,7 +4482,7 @@
4383
4482
  }));
4384
4483
  };
4385
4484
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
4386
- var e_47, _a;
4485
+ var e_48, _a;
4387
4486
  var _this = this;
4388
4487
  var status = response.status;
4389
4488
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4396,12 +4495,12 @@
4396
4495
  _headers[key] = response.headers.get(key);
4397
4496
  }
4398
4497
  }
4399
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
4498
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4400
4499
  finally {
4401
4500
  try {
4402
4501
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4403
4502
  }
4404
- finally { if (e_47) throw e_47.error; }
4503
+ finally { if (e_48) throw e_48.error; }
4405
4504
  }
4406
4505
  }
4407
4506
  if (status === 200) {
@@ -4459,7 +4558,7 @@
4459
4558
  }));
4460
4559
  };
4461
4560
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
4462
- var e_48, _a;
4561
+ var e_49, _a;
4463
4562
  var _this = this;
4464
4563
  var status = response.status;
4465
4564
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4472,12 +4571,12 @@
4472
4571
  _headers[key] = response.headers.get(key);
4473
4572
  }
4474
4573
  }
4475
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
4574
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4476
4575
  finally {
4477
4576
  try {
4478
4577
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4479
4578
  }
4480
- finally { if (e_48) throw e_48.error; }
4579
+ finally { if (e_49) throw e_49.error; }
4481
4580
  }
4482
4581
  }
4483
4582
  if (status === 200) {
@@ -4579,7 +4678,7 @@
4579
4678
  }));
4580
4679
  };
4581
4680
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
4582
- var e_49, _a;
4681
+ var e_50, _a;
4583
4682
  var _this = this;
4584
4683
  var status = response.status;
4585
4684
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4592,12 +4691,12 @@
4592
4691
  _headers[key] = response.headers.get(key);
4593
4692
  }
4594
4693
  }
4595
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
4694
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4596
4695
  finally {
4597
4696
  try {
4598
4697
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4599
4698
  }
4600
- finally { if (e_49) throw e_49.error; }
4699
+ finally { if (e_50) throw e_50.error; }
4601
4700
  }
4602
4701
  }
4603
4702
  if (status === 200 || status === 206) {
@@ -4662,7 +4761,7 @@
4662
4761
  }));
4663
4762
  };
4664
4763
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
4665
- var e_50, _a;
4764
+ var e_51, _a;
4666
4765
  var _this = this;
4667
4766
  var status = response.status;
4668
4767
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4675,12 +4774,12 @@
4675
4774
  _headers[key] = response.headers.get(key);
4676
4775
  }
4677
4776
  }
4678
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
4777
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
4679
4778
  finally {
4680
4779
  try {
4681
4780
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4682
4781
  }
4683
- finally { if (e_50) throw e_50.error; }
4782
+ finally { if (e_51) throw e_51.error; }
4684
4783
  }
4685
4784
  }
4686
4785
  if (status === 200) {
@@ -4737,7 +4836,7 @@
4737
4836
  }));
4738
4837
  };
4739
4838
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
4740
- var e_51, _a;
4839
+ var e_52, _a;
4741
4840
  var _this = this;
4742
4841
  var status = response.status;
4743
4842
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4750,12 +4849,12 @@
4750
4849
  _headers[key] = response.headers.get(key);
4751
4850
  }
4752
4851
  }
4753
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
4852
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4754
4853
  finally {
4755
4854
  try {
4756
4855
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4757
4856
  }
4758
- finally { if (e_51) throw e_51.error; }
4857
+ finally { if (e_52) throw e_52.error; }
4759
4858
  }
4760
4859
  }
4761
4860
  if (status === 200 || status === 206) {
@@ -4823,7 +4922,7 @@
4823
4922
  }));
4824
4923
  };
4825
4924
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
4826
- var e_52, _a;
4925
+ var e_53, _a;
4827
4926
  var _this = this;
4828
4927
  var status = response.status;
4829
4928
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4836,12 +4935,12 @@
4836
4935
  _headers[key] = response.headers.get(key);
4837
4936
  }
4838
4937
  }
4839
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
4938
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
4840
4939
  finally {
4841
4940
  try {
4842
4941
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4843
4942
  }
4844
- finally { if (e_52) throw e_52.error; }
4943
+ finally { if (e_53) throw e_53.error; }
4845
4944
  }
4846
4945
  }
4847
4946
  if (status === 200 || status === 206) {
@@ -4904,7 +5003,7 @@
4904
5003
  }));
4905
5004
  };
4906
5005
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
4907
- var e_53, _a;
5006
+ var e_54, _a;
4908
5007
  var _this = this;
4909
5008
  var status = response.status;
4910
5009
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4917,12 +5016,12 @@
4917
5016
  _headers[key] = response.headers.get(key);
4918
5017
  }
4919
5018
  }
4920
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
5019
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
4921
5020
  finally {
4922
5021
  try {
4923
5022
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4924
5023
  }
4925
- finally { if (e_53) throw e_53.error; }
5024
+ finally { if (e_54) throw e_54.error; }
4926
5025
  }
4927
5026
  }
4928
5027
  if (status === 200 || status === 206) {
@@ -4990,7 +5089,7 @@
4990
5089
  }));
4991
5090
  };
4992
5091
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
4993
- var e_54, _a;
5092
+ var e_55, _a;
4994
5093
  var _this = this;
4995
5094
  var status = response.status;
4996
5095
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5003,12 +5102,12 @@
5003
5102
  _headers[key] = response.headers.get(key);
5004
5103
  }
5005
5104
  }
5006
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
5105
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
5007
5106
  finally {
5008
5107
  try {
5009
5108
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5010
5109
  }
5011
- finally { if (e_54) throw e_54.error; }
5110
+ finally { if (e_55) throw e_55.error; }
5012
5111
  }
5013
5112
  }
5014
5113
  if (status === 200 || status === 206) {
@@ -5077,7 +5176,7 @@
5077
5176
  }));
5078
5177
  };
5079
5178
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
5080
- var e_55, _a;
5179
+ var e_56, _a;
5081
5180
  var _this = this;
5082
5181
  var status = response.status;
5083
5182
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5090,12 +5189,12 @@
5090
5189
  _headers[key] = response.headers.get(key);
5091
5190
  }
5092
5191
  }
5093
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
5192
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
5094
5193
  finally {
5095
5194
  try {
5096
5195
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5097
5196
  }
5098
- finally { if (e_55) throw e_55.error; }
5197
+ finally { if (e_56) throw e_56.error; }
5099
5198
  }
5100
5199
  }
5101
5200
  if (status === 200) {
@@ -5153,7 +5252,7 @@
5153
5252
  }));
5154
5253
  };
5155
5254
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
5156
- var e_56, _a;
5255
+ var e_57, _a;
5157
5256
  var _this = this;
5158
5257
  var status = response.status;
5159
5258
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5166,12 +5265,12 @@
5166
5265
  _headers[key] = response.headers.get(key);
5167
5266
  }
5168
5267
  }
5169
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
5268
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
5170
5269
  finally {
5171
5270
  try {
5172
5271
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5173
5272
  }
5174
- finally { if (e_56) throw e_56.error; }
5273
+ finally { if (e_57) throw e_57.error; }
5175
5274
  }
5176
5275
  }
5177
5276
  if (status === 200) {
@@ -5229,7 +5328,7 @@
5229
5328
  }));
5230
5329
  };
5231
5330
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
5232
- var e_57, _a;
5331
+ var e_58, _a;
5233
5332
  var _this = this;
5234
5333
  var status = response.status;
5235
5334
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5242,12 +5341,12 @@
5242
5341
  _headers[key] = response.headers.get(key);
5243
5342
  }
5244
5343
  }
5245
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
5344
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
5246
5345
  finally {
5247
5346
  try {
5248
5347
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5249
5348
  }
5250
- finally { if (e_57) throw e_57.error; }
5349
+ finally { if (e_58) throw e_58.error; }
5251
5350
  }
5252
5351
  }
5253
5352
  if (status === 200) {
@@ -5305,7 +5404,7 @@
5305
5404
  }));
5306
5405
  };
5307
5406
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
5308
- var e_58, _a;
5407
+ var e_59, _a;
5309
5408
  var _this = this;
5310
5409
  var status = response.status;
5311
5410
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5318,12 +5417,12 @@
5318
5417
  _headers[key] = response.headers.get(key);
5319
5418
  }
5320
5419
  }
5321
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
5420
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
5322
5421
  finally {
5323
5422
  try {
5324
5423
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5325
5424
  }
5326
- finally { if (e_58) throw e_58.error; }
5425
+ finally { if (e_59) throw e_59.error; }
5327
5426
  }
5328
5427
  }
5329
5428
  if (status === 200) {
@@ -5381,7 +5480,7 @@
5381
5480
  }));
5382
5481
  };
5383
5482
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
5384
- var e_59, _a;
5483
+ var e_60, _a;
5385
5484
  var _this = this;
5386
5485
  var status = response.status;
5387
5486
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5394,12 +5493,12 @@
5394
5493
  _headers[key] = response.headers.get(key);
5395
5494
  }
5396
5495
  }
5397
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
5496
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5398
5497
  finally {
5399
5498
  try {
5400
5499
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5401
5500
  }
5402
- finally { if (e_59) throw e_59.error; }
5501
+ finally { if (e_60) throw e_60.error; }
5403
5502
  }
5404
5503
  }
5405
5504
  if (status === 200) {
@@ -5457,7 +5556,7 @@
5457
5556
  }));
5458
5557
  };
5459
5558
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
5460
- var e_60, _a;
5559
+ var e_61, _a;
5461
5560
  var _this = this;
5462
5561
  var status = response.status;
5463
5562
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5470,12 +5569,12 @@
5470
5569
  _headers[key] = response.headers.get(key);
5471
5570
  }
5472
5571
  }
5473
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
5572
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5474
5573
  finally {
5475
5574
  try {
5476
5575
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5477
5576
  }
5478
- finally { if (e_60) throw e_60.error; }
5577
+ finally { if (e_61) throw e_61.error; }
5479
5578
  }
5480
5579
  }
5481
5580
  if (status === 200) {
@@ -5533,7 +5632,7 @@
5533
5632
  }));
5534
5633
  };
5535
5634
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
5536
- var e_61, _a;
5635
+ var e_62, _a;
5537
5636
  var _this = this;
5538
5637
  var status = response.status;
5539
5638
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5546,12 +5645,12 @@
5546
5645
  _headers[key] = response.headers.get(key);
5547
5646
  }
5548
5647
  }
5549
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
5648
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
5550
5649
  finally {
5551
5650
  try {
5552
5651
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5553
5652
  }
5554
- finally { if (e_61) throw e_61.error; }
5653
+ finally { if (e_62) throw e_62.error; }
5555
5654
  }
5556
5655
  }
5557
5656
  if (status === 200) {
@@ -5609,7 +5708,7 @@
5609
5708
  }));
5610
5709
  };
5611
5710
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
5612
- var e_62, _a;
5711
+ var e_63, _a;
5613
5712
  var _this = this;
5614
5713
  var status = response.status;
5615
5714
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5622,12 +5721,12 @@
5622
5721
  _headers[key] = response.headers.get(key);
5623
5722
  }
5624
5723
  }
5625
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
5724
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
5626
5725
  finally {
5627
5726
  try {
5628
5727
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5629
5728
  }
5630
- finally { if (e_62) throw e_62.error; }
5729
+ finally { if (e_63) throw e_63.error; }
5631
5730
  }
5632
5731
  }
5633
5732
  if (status === 200) {
@@ -5685,7 +5784,7 @@
5685
5784
  }));
5686
5785
  };
5687
5786
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
5688
- var e_63, _a;
5787
+ var e_64, _a;
5689
5788
  var _this = this;
5690
5789
  var status = response.status;
5691
5790
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5698,12 +5797,12 @@
5698
5797
  _headers[key] = response.headers.get(key);
5699
5798
  }
5700
5799
  }
5701
- catch (e_63_1) { e_63 = { error: e_63_1 }; }
5800
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
5702
5801
  finally {
5703
5802
  try {
5704
5803
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5705
5804
  }
5706
- finally { if (e_63) throw e_63.error; }
5805
+ finally { if (e_64) throw e_64.error; }
5707
5806
  }
5708
5807
  }
5709
5808
  if (status === 200) {
@@ -5761,7 +5860,7 @@
5761
5860
  }));
5762
5861
  };
5763
5862
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
5764
- var e_64, _a;
5863
+ var e_65, _a;
5765
5864
  var _this = this;
5766
5865
  var status = response.status;
5767
5866
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5774,12 +5873,12 @@
5774
5873
  _headers[key] = response.headers.get(key);
5775
5874
  }
5776
5875
  }
5777
- catch (e_64_1) { e_64 = { error: e_64_1 }; }
5876
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
5778
5877
  finally {
5779
5878
  try {
5780
5879
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5781
5880
  }
5782
- finally { if (e_64) throw e_64.error; }
5881
+ finally { if (e_65) throw e_65.error; }
5783
5882
  }
5784
5883
  }
5785
5884
  if (status === 200) {
@@ -5837,7 +5936,7 @@
5837
5936
  }));
5838
5937
  };
5839
5938
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
5840
- var e_65, _a;
5939
+ var e_66, _a;
5841
5940
  var _this = this;
5842
5941
  var status = response.status;
5843
5942
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5850,12 +5949,12 @@
5850
5949
  _headers[key] = response.headers.get(key);
5851
5950
  }
5852
5951
  }
5853
- catch (e_65_1) { e_65 = { error: e_65_1 }; }
5952
+ catch (e_66_1) { e_66 = { error: e_66_1 }; }
5854
5953
  finally {
5855
5954
  try {
5856
5955
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5857
5956
  }
5858
- finally { if (e_65) throw e_65.error; }
5957
+ finally { if (e_66) throw e_66.error; }
5859
5958
  }
5860
5959
  }
5861
5960
  if (status === 200) {
@@ -5885,6 +5984,14 @@
5885
5984
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
5886
5985
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
5887
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 = {}));
5888
5995
  (function (ProductPatchType) {
5889
5996
  ProductPatchType["Undefined"] = "Undefined";
5890
5997
  ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";