@aurigma/ng-storefront-api-client 2.22.30 → 2.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1944,6 +1944,103 @@
1944
1944
  }
1945
1945
  return rxjs.of(null);
1946
1946
  };
1947
+ /**
1948
+ * Creates a new project by 'Render HiRes' scenario.
1949
+ * @param storefrontId Storefront identifier.
1950
+ * @param tenantId (optional) Tenant identifier.
1951
+ * @param body (optional) Create operation parameters.
1952
+ * @return Success
1953
+ */
1954
+ ProjectsApiClient.prototype.createByRenderHiResScenario = function (storefrontId, tenantId, body) {
1955
+ var _this = this;
1956
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/by-scenario/render-hires?";
1957
+ if (storefrontId === undefined || storefrontId === null)
1958
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1959
+ else
1960
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1961
+ if (tenantId !== undefined && tenantId !== null)
1962
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1963
+ url_ = url_.replace(/[?&]$/, "");
1964
+ var content_ = JSON.stringify(body);
1965
+ var options_ = {
1966
+ body: content_,
1967
+ observe: "response",
1968
+ responseType: "blob",
1969
+ headers: new i1.HttpHeaders({
1970
+ "Content-Type": "application/json-patch+json",
1971
+ "Accept": "text/plain"
1972
+ })
1973
+ };
1974
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1975
+ return _this.http.request("post", url_, transformedOptions_);
1976
+ })).pipe(operators.mergeMap(function (response_) {
1977
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateByRenderHiResScenario(r); });
1978
+ })).pipe(operators.catchError(function (response_) {
1979
+ if (response_ instanceof i1.HttpResponseBase) {
1980
+ try {
1981
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateByRenderHiResScenario(r); });
1982
+ }
1983
+ catch (e) {
1984
+ return rxjs.throwError(e);
1985
+ }
1986
+ }
1987
+ else
1988
+ return rxjs.throwError(response_);
1989
+ }));
1990
+ };
1991
+ ProjectsApiClient.prototype.processCreateByRenderHiResScenario = function (response) {
1992
+ var e_17, _a;
1993
+ var _this = this;
1994
+ var status = response.status;
1995
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
1996
+ response.error instanceof Blob ? response.error : undefined;
1997
+ var _headers = {};
1998
+ if (response.headers) {
1999
+ try {
2000
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2001
+ var key = _c.value;
2002
+ _headers[key] = response.headers.get(key);
2003
+ }
2004
+ }
2005
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
2006
+ finally {
2007
+ try {
2008
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2009
+ }
2010
+ finally { if (e_17) throw e_17.error; }
2011
+ }
2012
+ }
2013
+ if (status === 201) {
2014
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2015
+ var result201 = null;
2016
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2017
+ return rxjs.of(result201);
2018
+ }));
2019
+ }
2020
+ else if (status === 409) {
2021
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2022
+ var result409 = null;
2023
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2024
+ return throwException("Conflict", status, _responseText, _headers, result409);
2025
+ }));
2026
+ }
2027
+ else if (status === 401) {
2028
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2029
+ return throwException("Unauthorized", status, _responseText, _headers);
2030
+ }));
2031
+ }
2032
+ else if (status === 403) {
2033
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2034
+ return throwException("Forbidden", status, _responseText, _headers);
2035
+ }));
2036
+ }
2037
+ else if (status !== 200 && status !== 204) {
2038
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2039
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2040
+ }));
2041
+ }
2042
+ return rxjs.of(null);
2043
+ };
1947
2044
  /**
1948
2045
  * Returns all available status transitions for a project.
1949
2046
  * @param id Project identifier.
@@ -1984,7 +2081,7 @@
1984
2081
  }));
1985
2082
  };
1986
2083
  ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
1987
- var e_17, _a;
2084
+ var e_18, _a;
1988
2085
  var _this = this;
1989
2086
  var status = response.status;
1990
2087
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1997,12 +2094,12 @@
1997
2094
  _headers[key] = response.headers.get(key);
1998
2095
  }
1999
2096
  }
2000
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2097
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
2001
2098
  finally {
2002
2099
  try {
2003
2100
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2004
2101
  }
2005
- finally { if (e_17) throw e_17.error; }
2102
+ finally { if (e_18) throw e_18.error; }
2006
2103
  }
2007
2104
  }
2008
2105
  if (status === 200) {
@@ -2094,7 +2191,7 @@
2094
2191
  }));
2095
2192
  };
2096
2193
  ProjectsApiClient.prototype.processChangeStatus = function (response) {
2097
- var e_18, _a;
2194
+ var e_19, _a;
2098
2195
  var _this = this;
2099
2196
  var status = response.status;
2100
2197
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2107,12 +2204,12 @@
2107
2204
  _headers[key] = response.headers.get(key);
2108
2205
  }
2109
2206
  }
2110
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2207
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
2111
2208
  finally {
2112
2209
  try {
2113
2210
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2114
2211
  }
2115
- finally { if (e_18) throw e_18.error; }
2212
+ finally { if (e_19) throw e_19.error; }
2116
2213
  }
2117
2214
  }
2118
2215
  if (status === 200) {
@@ -2204,7 +2301,7 @@
2204
2301
  }));
2205
2302
  };
2206
2303
  ProjectsApiClient.prototype.processForceStatus = function (response) {
2207
- var e_19, _a;
2304
+ var e_20, _a;
2208
2305
  var _this = this;
2209
2306
  var status = response.status;
2210
2307
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2217,12 +2314,12 @@
2217
2314
  _headers[key] = response.headers.get(key);
2218
2315
  }
2219
2316
  }
2220
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2317
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
2221
2318
  finally {
2222
2319
  try {
2223
2320
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2224
2321
  }
2225
- finally { if (e_19) throw e_19.error; }
2322
+ finally { if (e_20) throw e_20.error; }
2226
2323
  }
2227
2324
  }
2228
2325
  if (status === 200) {
@@ -2299,7 +2396,7 @@
2299
2396
  }));
2300
2397
  };
2301
2398
  ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
2302
- var e_20, _a;
2399
+ var e_21, _a;
2303
2400
  var _this = this;
2304
2401
  var status = response.status;
2305
2402
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2312,12 +2409,12 @@
2312
2409
  _headers[key] = response.headers.get(key);
2313
2410
  }
2314
2411
  }
2315
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2412
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
2316
2413
  finally {
2317
2414
  try {
2318
2415
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2319
2416
  }
2320
- finally { if (e_20) throw e_20.error; }
2417
+ finally { if (e_21) throw e_21.error; }
2321
2418
  }
2322
2419
  }
2323
2420
  if (status === 200) {
@@ -2380,7 +2477,7 @@
2380
2477
  }));
2381
2478
  };
2382
2479
  ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
2383
- var e_21, _a;
2480
+ var e_22, _a;
2384
2481
  var _this = this;
2385
2482
  var status = response.status;
2386
2483
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2393,12 +2490,12 @@
2393
2490
  _headers[key] = response.headers.get(key);
2394
2491
  }
2395
2492
  }
2396
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
2493
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2397
2494
  finally {
2398
2495
  try {
2399
2496
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2400
2497
  }
2401
- finally { if (e_21) throw e_21.error; }
2498
+ finally { if (e_22) throw e_22.error; }
2402
2499
  }
2403
2500
  }
2404
2501
  if (status === 200) {
@@ -2432,6 +2529,7 @@
2432
2529
  * @param designId Design identifier.
2433
2530
  * @param tenantId (optional) Tenant identifier.
2434
2531
  * @return Success
2532
+ * @deprecated
2435
2533
  */
2436
2534
  ProjectsApiClient.prototype.getProjectPdfUrl = function (id, designUserId, designId, tenantId) {
2437
2535
  var _this = this;
@@ -2475,7 +2573,7 @@
2475
2573
  }));
2476
2574
  };
2477
2575
  ProjectsApiClient.prototype.processGetProjectPdfUrl = function (response) {
2478
- var e_22, _a;
2576
+ var e_23, _a;
2479
2577
  var _this = this;
2480
2578
  var status = response.status;
2481
2579
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2488,12 +2586,12 @@
2488
2586
  _headers[key] = response.headers.get(key);
2489
2587
  }
2490
2588
  }
2491
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
2589
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2492
2590
  finally {
2493
2591
  try {
2494
2592
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2495
2593
  }
2496
- finally { if (e_22) throw e_22.error; }
2594
+ finally { if (e_23) throw e_23.error; }
2497
2595
  }
2498
2596
  }
2499
2597
  if (status === 200) {
@@ -2528,6 +2626,7 @@
2528
2626
  * @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
2529
2627
  * @param tenantId (optional) Tenant identifier.
2530
2628
  * @return Success
2629
+ * @deprecated
2531
2630
  */
2532
2631
  ProjectsApiClient.prototype.getProjectPdfZip = function (id, designUserId, designId, attachment, tenantId) {
2533
2632
  var _this = this;
@@ -2573,7 +2672,7 @@
2573
2672
  }));
2574
2673
  };
2575
2674
  ProjectsApiClient.prototype.processGetProjectPdfZip = function (response) {
2576
- var e_23, _a;
2675
+ var e_24, _a;
2577
2676
  var _this = this;
2578
2677
  var status = response.status;
2579
2678
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2586,12 +2685,12 @@
2586
2685
  _headers[key] = response.headers.get(key);
2587
2686
  }
2588
2687
  }
2589
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
2688
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2590
2689
  finally {
2591
2690
  try {
2592
2691
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2593
2692
  }
2594
- finally { if (e_23) throw e_23.error; }
2693
+ finally { if (e_24) throw e_24.error; }
2595
2694
  }
2596
2695
  }
2597
2696
  if (status === 200 || status === 206) {
@@ -2624,6 +2723,274 @@
2624
2723
  }
2625
2724
  return rxjs.of(null);
2626
2725
  };
2726
+ /**
2727
+ * Returns a project processing results.
2728
+ * @param id Project identifier.
2729
+ * @param tenantId (optional) Tenant identifier.
2730
+ * @return Success
2731
+ */
2732
+ ProjectsApiClient.prototype.getProjectProcessingResults = function (id, tenantId) {
2733
+ var _this = this;
2734
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/processing-results?";
2735
+ if (id === undefined || id === null)
2736
+ throw new Error("The parameter 'id' must be defined.");
2737
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2738
+ if (tenantId !== undefined && tenantId !== null)
2739
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2740
+ url_ = url_.replace(/[?&]$/, "");
2741
+ var options_ = {
2742
+ observe: "response",
2743
+ responseType: "blob",
2744
+ headers: new i1.HttpHeaders({
2745
+ "Accept": "text/plain"
2746
+ })
2747
+ };
2748
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2749
+ return _this.http.request("get", url_, transformedOptions_);
2750
+ })).pipe(operators.mergeMap(function (response_) {
2751
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProjectProcessingResults(r); });
2752
+ })).pipe(operators.catchError(function (response_) {
2753
+ if (response_ instanceof i1.HttpResponseBase) {
2754
+ try {
2755
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProjectProcessingResults(r); });
2756
+ }
2757
+ catch (e) {
2758
+ return rxjs.throwError(e);
2759
+ }
2760
+ }
2761
+ else
2762
+ return rxjs.throwError(response_);
2763
+ }));
2764
+ };
2765
+ ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
2766
+ var e_25, _a;
2767
+ var _this = this;
2768
+ var status = response.status;
2769
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2770
+ response.error instanceof Blob ? response.error : undefined;
2771
+ var _headers = {};
2772
+ if (response.headers) {
2773
+ try {
2774
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2775
+ var key = _c.value;
2776
+ _headers[key] = response.headers.get(key);
2777
+ }
2778
+ }
2779
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2780
+ finally {
2781
+ try {
2782
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2783
+ }
2784
+ finally { if (e_25) throw e_25.error; }
2785
+ }
2786
+ }
2787
+ if (status === 200) {
2788
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2789
+ var result200 = null;
2790
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2791
+ return rxjs.of(result200);
2792
+ }));
2793
+ }
2794
+ else if (status === 404) {
2795
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2796
+ var result404 = null;
2797
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2798
+ return throwException("Not Found", status, _responseText, _headers, result404);
2799
+ }));
2800
+ }
2801
+ else if (status === 401) {
2802
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2803
+ return throwException("Unauthorized", status, _responseText, _headers);
2804
+ }));
2805
+ }
2806
+ else if (status === 403) {
2807
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2808
+ return throwException("Forbidden", status, _responseText, _headers);
2809
+ }));
2810
+ }
2811
+ else if (status !== 200 && status !== 204) {
2812
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2813
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2814
+ }));
2815
+ }
2816
+ return rxjs.of(null);
2817
+ };
2818
+ /**
2819
+ * Resumes project processing.
2820
+ * @param id Project identifier.
2821
+ * @param tenantId (optional) Tenant identifier.
2822
+ * @return Success
2823
+ */
2824
+ ProjectsApiClient.prototype.resumeProjectProcessing = function (id, tenantId) {
2825
+ var _this = this;
2826
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/resume-processing?";
2827
+ if (id === undefined || id === null)
2828
+ throw new Error("The parameter 'id' must be defined.");
2829
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2830
+ if (tenantId !== undefined && tenantId !== null)
2831
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2832
+ url_ = url_.replace(/[?&]$/, "");
2833
+ var options_ = {
2834
+ observe: "response",
2835
+ responseType: "blob",
2836
+ headers: new i1.HttpHeaders({})
2837
+ };
2838
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2839
+ return _this.http.request("post", url_, transformedOptions_);
2840
+ })).pipe(operators.mergeMap(function (response_) {
2841
+ return _this.transformResult(url_, response_, function (r) { return _this.processResumeProjectProcessing(r); });
2842
+ })).pipe(operators.catchError(function (response_) {
2843
+ if (response_ instanceof i1.HttpResponseBase) {
2844
+ try {
2845
+ return _this.transformResult(url_, response_, function (r) { return _this.processResumeProjectProcessing(r); });
2846
+ }
2847
+ catch (e) {
2848
+ return rxjs.throwError(e);
2849
+ }
2850
+ }
2851
+ else
2852
+ return rxjs.throwError(response_);
2853
+ }));
2854
+ };
2855
+ ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
2856
+ var e_26, _a;
2857
+ var _this = this;
2858
+ var status = response.status;
2859
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2860
+ response.error instanceof Blob ? response.error : undefined;
2861
+ var _headers = {};
2862
+ if (response.headers) {
2863
+ try {
2864
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2865
+ var key = _c.value;
2866
+ _headers[key] = response.headers.get(key);
2867
+ }
2868
+ }
2869
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2870
+ finally {
2871
+ try {
2872
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2873
+ }
2874
+ finally { if (e_26) throw e_26.error; }
2875
+ }
2876
+ }
2877
+ if (status === 204) {
2878
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2879
+ return rxjs.of(null);
2880
+ }));
2881
+ }
2882
+ else if (status === 404) {
2883
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2884
+ var result404 = null;
2885
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2886
+ return throwException("Not Found", status, _responseText, _headers, result404);
2887
+ }));
2888
+ }
2889
+ else if (status === 401) {
2890
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2891
+ return throwException("Unauthorized", status, _responseText, _headers);
2892
+ }));
2893
+ }
2894
+ else if (status === 403) {
2895
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2896
+ return throwException("Forbidden", status, _responseText, _headers);
2897
+ }));
2898
+ }
2899
+ else if (status !== 200 && status !== 204) {
2900
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2901
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2902
+ }));
2903
+ }
2904
+ return rxjs.of(null);
2905
+ };
2906
+ /**
2907
+ * Restarts a project processing routine.
2908
+ * @param id Project identifier.
2909
+ * @param tenantId (optional) Tenant identifier.
2910
+ * @return Success
2911
+ */
2912
+ ProjectsApiClient.prototype.restartProjectProcessing = function (id, tenantId) {
2913
+ var _this = this;
2914
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/restart-processing?";
2915
+ if (id === undefined || id === null)
2916
+ throw new Error("The parameter 'id' must be defined.");
2917
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2918
+ if (tenantId !== undefined && tenantId !== null)
2919
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2920
+ url_ = url_.replace(/[?&]$/, "");
2921
+ var options_ = {
2922
+ observe: "response",
2923
+ responseType: "blob",
2924
+ headers: new i1.HttpHeaders({})
2925
+ };
2926
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2927
+ return _this.http.request("post", url_, transformedOptions_);
2928
+ })).pipe(operators.mergeMap(function (response_) {
2929
+ return _this.transformResult(url_, response_, function (r) { return _this.processRestartProjectProcessing(r); });
2930
+ })).pipe(operators.catchError(function (response_) {
2931
+ if (response_ instanceof i1.HttpResponseBase) {
2932
+ try {
2933
+ return _this.transformResult(url_, response_, function (r) { return _this.processRestartProjectProcessing(r); });
2934
+ }
2935
+ catch (e) {
2936
+ return rxjs.throwError(e);
2937
+ }
2938
+ }
2939
+ else
2940
+ return rxjs.throwError(response_);
2941
+ }));
2942
+ };
2943
+ ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
2944
+ var e_27, _a;
2945
+ var _this = this;
2946
+ var status = response.status;
2947
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2948
+ response.error instanceof Blob ? response.error : undefined;
2949
+ var _headers = {};
2950
+ if (response.headers) {
2951
+ try {
2952
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2953
+ var key = _c.value;
2954
+ _headers[key] = response.headers.get(key);
2955
+ }
2956
+ }
2957
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2958
+ finally {
2959
+ try {
2960
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2961
+ }
2962
+ finally { if (e_27) throw e_27.error; }
2963
+ }
2964
+ }
2965
+ if (status === 204) {
2966
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2967
+ return rxjs.of(null);
2968
+ }));
2969
+ }
2970
+ else if (status === 404) {
2971
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2972
+ var result404 = null;
2973
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2974
+ return throwException("Not Found", status, _responseText, _headers, result404);
2975
+ }));
2976
+ }
2977
+ else if (status === 401) {
2978
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2979
+ return throwException("Unauthorized", status, _responseText, _headers);
2980
+ }));
2981
+ }
2982
+ else if (status === 403) {
2983
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2984
+ return throwException("Forbidden", status, _responseText, _headers);
2985
+ }));
2986
+ }
2987
+ else if (status !== 200 && status !== 204) {
2988
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2989
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2990
+ }));
2991
+ }
2992
+ return rxjs.of(null);
2993
+ };
2627
2994
  /**
2628
2995
  * Returns an order description from the ecommerce system for the specified project.
2629
2996
  * @param id Project identifier.
@@ -2664,7 +3031,7 @@
2664
3031
  }));
2665
3032
  };
2666
3033
  ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
2667
- var e_24, _a;
3034
+ var e_28, _a;
2668
3035
  var _this = this;
2669
3036
  var status = response.status;
2670
3037
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2677,12 +3044,12 @@
2677
3044
  _headers[key] = response.headers.get(key);
2678
3045
  }
2679
3046
  }
2680
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
3047
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
2681
3048
  finally {
2682
3049
  try {
2683
3050
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2684
3051
  }
2685
- finally { if (e_24) throw e_24.error; }
3052
+ finally { if (e_28) throw e_28.error; }
2686
3053
  }
2687
3054
  }
2688
3055
  if (status === 200) {
@@ -2789,7 +3156,7 @@
2789
3156
  }));
2790
3157
  };
2791
3158
  StorefrontsApiClient.prototype.processGetAll = function (response) {
2792
- var e_25, _a;
3159
+ var e_29, _a;
2793
3160
  var _this = this;
2794
3161
  var status = response.status;
2795
3162
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2802,12 +3169,12 @@
2802
3169
  _headers[key] = response.headers.get(key);
2803
3170
  }
2804
3171
  }
2805
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
3172
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
2806
3173
  finally {
2807
3174
  try {
2808
3175
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2809
3176
  }
2810
- finally { if (e_25) throw e_25.error; }
3177
+ finally { if (e_29) throw e_29.error; }
2811
3178
  }
2812
3179
  }
2813
3180
  if (status === 200) {
@@ -2874,7 +3241,7 @@
2874
3241
  }));
2875
3242
  };
2876
3243
  StorefrontsApiClient.prototype.processGet = function (response) {
2877
- var e_26, _a;
3244
+ var e_30, _a;
2878
3245
  var _this = this;
2879
3246
  var status = response.status;
2880
3247
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2887,12 +3254,12 @@
2887
3254
  _headers[key] = response.headers.get(key);
2888
3255
  }
2889
3256
  }
2890
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3257
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
2891
3258
  finally {
2892
3259
  try {
2893
3260
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2894
3261
  }
2895
- finally { if (e_26) throw e_26.error; }
3262
+ finally { if (e_30) throw e_30.error; }
2896
3263
  }
2897
3264
  }
2898
3265
  if (status === 200) {
@@ -3004,7 +3371,7 @@
3004
3371
  }));
3005
3372
  };
3006
3373
  StorefrontUsersApiClient.prototype.processGetAll = function (response) {
3007
- var e_27, _a;
3374
+ var e_31, _a;
3008
3375
  var _this = this;
3009
3376
  var status = response.status;
3010
3377
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3017,12 +3384,12 @@
3017
3384
  _headers[key] = response.headers.get(key);
3018
3385
  }
3019
3386
  }
3020
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3387
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3021
3388
  finally {
3022
3389
  try {
3023
3390
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3024
3391
  }
3025
- finally { if (e_27) throw e_27.error; }
3392
+ finally { if (e_31) throw e_31.error; }
3026
3393
  }
3027
3394
  }
3028
3395
  if (status === 200) {
@@ -3094,7 +3461,7 @@
3094
3461
  }));
3095
3462
  };
3096
3463
  StorefrontUsersApiClient.prototype.processCreate = function (response) {
3097
- var e_28, _a;
3464
+ var e_32, _a;
3098
3465
  var _this = this;
3099
3466
  var status = response.status;
3100
3467
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3107,12 +3474,12 @@
3107
3474
  _headers[key] = response.headers.get(key);
3108
3475
  }
3109
3476
  }
3110
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3477
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3111
3478
  finally {
3112
3479
  try {
3113
3480
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3114
3481
  }
3115
- finally { if (e_28) throw e_28.error; }
3482
+ finally { if (e_32) throw e_32.error; }
3116
3483
  }
3117
3484
  }
3118
3485
  if (status === 201) {
@@ -3191,7 +3558,7 @@
3191
3558
  }));
3192
3559
  };
3193
3560
  StorefrontUsersApiClient.prototype.processGet = function (response) {
3194
- var e_29, _a;
3561
+ var e_33, _a;
3195
3562
  var _this = this;
3196
3563
  var status = response.status;
3197
3564
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3204,12 +3571,12 @@
3204
3571
  _headers[key] = response.headers.get(key);
3205
3572
  }
3206
3573
  }
3207
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3574
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3208
3575
  finally {
3209
3576
  try {
3210
3577
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3211
3578
  }
3212
- finally { if (e_29) throw e_29.error; }
3579
+ finally { if (e_33) throw e_33.error; }
3213
3580
  }
3214
3581
  }
3215
3582
  if (status === 200) {
@@ -3288,7 +3655,7 @@
3288
3655
  }));
3289
3656
  };
3290
3657
  StorefrontUsersApiClient.prototype.processRegister = function (response) {
3291
- var e_30, _a;
3658
+ var e_34, _a;
3292
3659
  var _this = this;
3293
3660
  var status = response.status;
3294
3661
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3301,12 +3668,12 @@
3301
3668
  _headers[key] = response.headers.get(key);
3302
3669
  }
3303
3670
  }
3304
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3671
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3305
3672
  finally {
3306
3673
  try {
3307
3674
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3308
3675
  }
3309
- finally { if (e_30) throw e_30.error; }
3676
+ finally { if (e_34) throw e_34.error; }
3310
3677
  }
3311
3678
  }
3312
3679
  if (status === 200) {
@@ -3384,7 +3751,7 @@
3384
3751
  }));
3385
3752
  };
3386
3753
  StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
3387
- var e_31, _a;
3754
+ var e_35, _a;
3388
3755
  var _this = this;
3389
3756
  var status = response.status;
3390
3757
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3397,12 +3764,12 @@
3397
3764
  _headers[key] = response.headers.get(key);
3398
3765
  }
3399
3766
  }
3400
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3767
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3401
3768
  finally {
3402
3769
  try {
3403
3770
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3404
3771
  }
3405
- finally { if (e_31) throw e_31.error; }
3772
+ finally { if (e_35) throw e_35.error; }
3406
3773
  }
3407
3774
  }
3408
3775
  if (status === 200) {
@@ -3487,7 +3854,7 @@
3487
3854
  }));
3488
3855
  };
3489
3856
  StorefrontUsersApiClient.prototype.processGetToken = function (response) {
3490
- var e_32, _a;
3857
+ var e_36, _a;
3491
3858
  var _this = this;
3492
3859
  var status = response.status;
3493
3860
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3500,12 +3867,12 @@
3500
3867
  _headers[key] = response.headers.get(key);
3501
3868
  }
3502
3869
  }
3503
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3870
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3504
3871
  finally {
3505
3872
  try {
3506
3873
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3507
3874
  }
3508
- finally { if (e_32) throw e_32.error; }
3875
+ finally { if (e_36) throw e_36.error; }
3509
3876
  }
3510
3877
  }
3511
3878
  if (status === 201) {
@@ -3604,7 +3971,7 @@
3604
3971
  }));
3605
3972
  };
3606
3973
  TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
3607
- var e_33, _a;
3974
+ var e_37, _a;
3608
3975
  var _this = this;
3609
3976
  var status = response.status;
3610
3977
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3617,12 +3984,12 @@
3617
3984
  _headers[key] = response.headers.get(key);
3618
3985
  }
3619
3986
  }
3620
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3987
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3621
3988
  finally {
3622
3989
  try {
3623
3990
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3624
3991
  }
3625
- finally { if (e_33) throw e_33.error; }
3992
+ finally { if (e_37) throw e_37.error; }
3626
3993
  }
3627
3994
  }
3628
3995
  if (status === 200) {
@@ -3685,7 +4052,7 @@
3685
4052
  }));
3686
4053
  };
3687
4054
  TenantInfoApiClient.prototype.processGetInfo = function (response) {
3688
- var e_34, _a;
4055
+ var e_38, _a;
3689
4056
  var _this = this;
3690
4057
  var status = response.status;
3691
4058
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3698,12 +4065,12 @@
3698
4065
  _headers[key] = response.headers.get(key);
3699
4066
  }
3700
4067
  }
3701
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
4068
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3702
4069
  finally {
3703
4070
  try {
3704
4071
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3705
4072
  }
3706
- finally { if (e_34) throw e_34.error; }
4073
+ finally { if (e_38) throw e_38.error; }
3707
4074
  }
3708
4075
  }
3709
4076
  if (status === 200) {
@@ -3766,7 +4133,7 @@
3766
4133
  }));
3767
4134
  };
3768
4135
  TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
3769
- var e_35, _a;
4136
+ var e_39, _a;
3770
4137
  var _this = this;
3771
4138
  var status = response.status;
3772
4139
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3779,12 +4146,12 @@
3779
4146
  _headers[key] = response.headers.get(key);
3780
4147
  }
3781
4148
  }
3782
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
4149
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3783
4150
  finally {
3784
4151
  try {
3785
4152
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3786
4153
  }
3787
- finally { if (e_35) throw e_35.error; }
4154
+ finally { if (e_39) throw e_39.error; }
3788
4155
  }
3789
4156
  }
3790
4157
  if (status === 200) {
@@ -3830,11 +4197,34 @@
3830
4197
  DatePeriod["Last7Days"] = "Last7Days";
3831
4198
  DatePeriod["Last30Days"] = "Last30Days";
3832
4199
  })(exports.DatePeriod || (exports.DatePeriod = {}));
3833
- (function (ProjectProductResourceType) {
3834
- ProjectProductResourceType[ProjectProductResourceType["_0"] = 0] = "_0";
3835
- ProjectProductResourceType[ProjectProductResourceType["_1"] = 1] = "_1";
3836
- ProjectProductResourceType[ProjectProductResourceType["_2"] = 2] = "_2";
3837
- })(exports.ProjectProductResourceType || (exports.ProjectProductResourceType = {}));
4200
+ (function (ProjectItemResourceType) {
4201
+ ProjectItemResourceType["General"] = "General";
4202
+ ProjectItemResourceType["Preview"] = "Preview";
4203
+ ProjectItemResourceType["Hires"] = "Hires";
4204
+ })(exports.ProjectItemResourceType || (exports.ProjectItemResourceType = {}));
4205
+ (function (RenderHiResScenarioOutputFormat) {
4206
+ RenderHiResScenarioOutputFormat["Pdf"] = "Pdf";
4207
+ RenderHiResScenarioOutputFormat["Jpeg"] = "Jpeg";
4208
+ RenderHiResScenarioOutputFormat["Png"] = "Png";
4209
+ RenderHiResScenarioOutputFormat["Tiff"] = "Tiff";
4210
+ })(exports.RenderHiResScenarioOutputFormat || (exports.RenderHiResScenarioOutputFormat = {}));
4211
+ (function (RenderHiResScenarioOutputColorSpace) {
4212
+ RenderHiResScenarioOutputColorSpace["Rgb"] = "Rgb";
4213
+ RenderHiResScenarioOutputColorSpace["Grayscale"] = "Grayscale";
4214
+ RenderHiResScenarioOutputColorSpace["Cmyk"] = "Cmyk";
4215
+ })(exports.RenderHiResScenarioOutputColorSpace || (exports.RenderHiResScenarioOutputColorSpace = {}));
4216
+ (function (RenderHiResScenarioOutputFlipMode) {
4217
+ RenderHiResScenarioOutputFlipMode["None"] = "None";
4218
+ RenderHiResScenarioOutputFlipMode["Horizontal"] = "Horizontal";
4219
+ RenderHiResScenarioOutputFlipMode["Vertical"] = "Vertical";
4220
+ RenderHiResScenarioOutputFlipMode["Both"] = "Both";
4221
+ })(exports.RenderHiResScenarioOutputFlipMode || (exports.RenderHiResScenarioOutputFlipMode = {}));
4222
+ (function (ProjectProcessingStatus) {
4223
+ ProjectProcessingStatus["Pending"] = "Pending";
4224
+ ProjectProcessingStatus["InProgress"] = "InProgress";
4225
+ ProjectProcessingStatus["Completed"] = "Completed";
4226
+ ProjectProcessingStatus["Failed"] = "Failed";
4227
+ })(exports.ProjectProcessingStatus || (exports.ProjectProcessingStatus = {}));
3838
4228
  (function (StorefrontType) {
3839
4229
  StorefrontType["Custom"] = "Custom";
3840
4230
  StorefrontType["ShopifyLegacy"] = "ShopifyLegacy";