@aurigma/ng-storefront-api-client 2.46.4 → 2.49.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.
@@ -2062,40 +2062,35 @@
2062
2062
  return rxjs.of(null);
2063
2063
  };
2064
2064
  /**
2065
- * Creates a new project.
2066
- * @param storefrontId Storefront identifier.
2065
+ * Returns a project by identifier.
2066
+ * @param id Project identifier.
2067
2067
  * @param tenantId (optional) Tenant identifier.
2068
- * @param body (optional) Create operation parameters.
2069
2068
  * @return Success
2070
2069
  */
2071
- ProjectsApiClient.prototype.create = function (storefrontId, tenantId, body) {
2070
+ ProjectsApiClient.prototype.get = function (id, tenantId) {
2072
2071
  var _this = this;
2073
- var url_ = this.baseUrl + "/api/storefront/v1/projects?";
2074
- if (storefrontId === undefined || storefrontId === null)
2075
- throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
2076
- else
2077
- url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
2072
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}?";
2073
+ if (id === undefined || id === null)
2074
+ throw new Error("The parameter 'id' must be defined.");
2075
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2078
2076
  if (tenantId !== undefined && tenantId !== null)
2079
2077
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2080
2078
  url_ = url_.replace(/[?&]$/, "");
2081
- var content_ = JSON.stringify(body);
2082
2079
  var options_ = {
2083
- body: content_,
2084
2080
  observe: "response",
2085
2081
  responseType: "blob",
2086
2082
  headers: new i1.HttpHeaders({
2087
- "Content-Type": "application/json-patch+json",
2088
2083
  "Accept": "text/plain"
2089
2084
  })
2090
2085
  };
2091
2086
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2092
- return _this.http.request("post", url_, transformedOptions_);
2087
+ return _this.http.request("get", url_, transformedOptions_);
2093
2088
  })).pipe(operators.mergeMap(function (response_) {
2094
- return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
2089
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
2095
2090
  })).pipe(operators.catchError(function (response_) {
2096
2091
  if (response_ instanceof i1.HttpResponseBase) {
2097
2092
  try {
2098
- return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
2093
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
2099
2094
  }
2100
2095
  catch (e) {
2101
2096
  return rxjs.throwError(e);
@@ -2105,7 +2100,7 @@
2105
2100
  return rxjs.throwError(response_);
2106
2101
  }));
2107
2102
  };
2108
- ProjectsApiClient.prototype.processCreate = function (response) {
2103
+ ProjectsApiClient.prototype.processGet = function (response) {
2109
2104
  var e_18, _a;
2110
2105
  var _this = this;
2111
2106
  var status = response.status;
@@ -2127,18 +2122,18 @@
2127
2122
  finally { if (e_18) throw e_18.error; }
2128
2123
  }
2129
2124
  }
2130
- if (status === 201) {
2125
+ if (status === 200) {
2131
2126
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2132
- var result201 = null;
2133
- result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2134
- return rxjs.of(result201);
2127
+ var result200 = null;
2128
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2129
+ return rxjs.of(result200);
2135
2130
  }));
2136
2131
  }
2137
- else if (status === 409) {
2132
+ else if (status === 404) {
2138
2133
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2139
- var result409 = null;
2140
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2141
- return throwException("Conflict", status, _responseText, _headers, result409);
2134
+ var result404 = null;
2135
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2136
+ return throwException("Not Found", status, _responseText, _headers, result404);
2142
2137
  }));
2143
2138
  }
2144
2139
  else if (status === 401) {
@@ -2159,12 +2154,12 @@
2159
2154
  return rxjs.of(null);
2160
2155
  };
2161
2156
  /**
2162
- * Returns a project by identifier.
2157
+ * Removes a project by identifier.
2163
2158
  * @param id Project identifier.
2164
2159
  * @param tenantId (optional) Tenant identifier.
2165
2160
  * @return Success
2166
2161
  */
2167
- ProjectsApiClient.prototype.get = function (id, tenantId) {
2162
+ ProjectsApiClient.prototype.delete = function (id, tenantId) {
2168
2163
  var _this = this;
2169
2164
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}?";
2170
2165
  if (id === undefined || id === null)
@@ -2176,18 +2171,16 @@
2176
2171
  var options_ = {
2177
2172
  observe: "response",
2178
2173
  responseType: "blob",
2179
- headers: new i1.HttpHeaders({
2180
- "Accept": "text/plain"
2181
- })
2174
+ headers: new i1.HttpHeaders({})
2182
2175
  };
2183
2176
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2184
- return _this.http.request("get", url_, transformedOptions_);
2177
+ return _this.http.request("delete", url_, transformedOptions_);
2185
2178
  })).pipe(operators.mergeMap(function (response_) {
2186
- return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
2179
+ return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
2187
2180
  })).pipe(operators.catchError(function (response_) {
2188
2181
  if (response_ instanceof i1.HttpResponseBase) {
2189
2182
  try {
2190
- return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
2183
+ return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
2191
2184
  }
2192
2185
  catch (e) {
2193
2186
  return rxjs.throwError(e);
@@ -2197,7 +2190,7 @@
2197
2190
  return rxjs.throwError(response_);
2198
2191
  }));
2199
2192
  };
2200
- ProjectsApiClient.prototype.processGet = function (response) {
2193
+ ProjectsApiClient.prototype.processDelete = function (response) {
2201
2194
  var e_19, _a;
2202
2195
  var _this = this;
2203
2196
  var status = response.status;
@@ -2221,9 +2214,7 @@
2221
2214
  }
2222
2215
  if (status === 200) {
2223
2216
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2224
- var result200 = null;
2225
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2226
- return rxjs.of(result200);
2217
+ return rxjs.of(null);
2227
2218
  }));
2228
2219
  }
2229
2220
  else if (status === 404) {
@@ -2251,14 +2242,14 @@
2251
2242
  return rxjs.of(null);
2252
2243
  };
2253
2244
  /**
2254
- * Removes a project by identifier.
2245
+ * Returns a project preview file by project identifier.
2255
2246
  * @param id Project identifier.
2256
2247
  * @param tenantId (optional) Tenant identifier.
2257
2248
  * @return Success
2258
2249
  */
2259
- ProjectsApiClient.prototype.delete = function (id, tenantId) {
2250
+ ProjectsApiClient.prototype.getPreview = function (id, tenantId) {
2260
2251
  var _this = this;
2261
- var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}?";
2252
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/preview?";
2262
2253
  if (id === undefined || id === null)
2263
2254
  throw new Error("The parameter 'id' must be defined.");
2264
2255
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -2268,16 +2259,18 @@
2268
2259
  var options_ = {
2269
2260
  observe: "response",
2270
2261
  responseType: "blob",
2271
- headers: new i1.HttpHeaders({})
2262
+ headers: new i1.HttpHeaders({
2263
+ "Accept": "text/plain"
2264
+ })
2272
2265
  };
2273
2266
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2274
- return _this.http.request("delete", url_, transformedOptions_);
2267
+ return _this.http.request("get", url_, transformedOptions_);
2275
2268
  })).pipe(operators.mergeMap(function (response_) {
2276
- return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
2269
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreview(r); });
2277
2270
  })).pipe(operators.catchError(function (response_) {
2278
2271
  if (response_ instanceof i1.HttpResponseBase) {
2279
2272
  try {
2280
- return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
2273
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreview(r); });
2281
2274
  }
2282
2275
  catch (e) {
2283
2276
  return rxjs.throwError(e);
@@ -2287,7 +2280,7 @@
2287
2280
  return rxjs.throwError(response_);
2288
2281
  }));
2289
2282
  };
2290
- ProjectsApiClient.prototype.processDelete = function (response) {
2283
+ ProjectsApiClient.prototype.processGetPreview = function (response) {
2291
2284
  var e_20, _a;
2292
2285
  var _this = this;
2293
2286
  var status = response.status;
@@ -2309,10 +2302,11 @@
2309
2302
  finally { if (e_20) throw e_20.error; }
2310
2303
  }
2311
2304
  }
2312
- if (status === 200) {
2313
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2314
- return rxjs.of(null);
2315
- }));
2305
+ if (status === 200 || status === 206) {
2306
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
2307
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2308
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2309
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2316
2310
  }
2317
2311
  else if (status === 404) {
2318
2312
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -2339,14 +2333,14 @@
2339
2333
  return rxjs.of(null);
2340
2334
  };
2341
2335
  /**
2342
- * Returns a project preview file by project identifier.
2336
+ * Returns a project preview URL by project identifier.
2343
2337
  * @param id Project identifier.
2344
2338
  * @param tenantId (optional) Tenant identifier.
2345
2339
  * @return Success
2346
2340
  */
2347
- ProjectsApiClient.prototype.getPreview = function (id, tenantId) {
2341
+ ProjectsApiClient.prototype.getPreviewUrl = function (id, tenantId) {
2348
2342
  var _this = this;
2349
- var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/preview?";
2343
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/preview-url?";
2350
2344
  if (id === undefined || id === null)
2351
2345
  throw new Error("The parameter 'id' must be defined.");
2352
2346
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -2363,11 +2357,11 @@
2363
2357
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2364
2358
  return _this.http.request("get", url_, transformedOptions_);
2365
2359
  })).pipe(operators.mergeMap(function (response_) {
2366
- return _this.transformResult(url_, response_, function (r) { return _this.processGetPreview(r); });
2360
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreviewUrl(r); });
2367
2361
  })).pipe(operators.catchError(function (response_) {
2368
2362
  if (response_ instanceof i1.HttpResponseBase) {
2369
2363
  try {
2370
- return _this.transformResult(url_, response_, function (r) { return _this.processGetPreview(r); });
2364
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPreviewUrl(r); });
2371
2365
  }
2372
2366
  catch (e) {
2373
2367
  return rxjs.throwError(e);
@@ -2377,9 +2371,8 @@
2377
2371
  return rxjs.throwError(response_);
2378
2372
  }));
2379
2373
  };
2380
- ProjectsApiClient.prototype.processGetPreview = function (response) {
2374
+ ProjectsApiClient.prototype.processGetPreviewUrl = function (response) {
2381
2375
  var e_21, _a;
2382
- var _this = this;
2383
2376
  var status = response.status;
2384
2377
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
2385
2378
  response.error instanceof Blob ? response.error : undefined;
@@ -2399,16 +2392,17 @@
2399
2392
  finally { if (e_21) throw e_21.error; }
2400
2393
  }
2401
2394
  }
2402
- if (status === 200 || status === 206) {
2403
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
2404
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2405
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2406
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
2395
+ if (status === 200) {
2396
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2397
+ var result200 = null;
2398
+ result200 = _responseText === "" ? null : _responseText;
2399
+ return rxjs.of(result200);
2400
+ }));
2407
2401
  }
2408
2402
  else if (status === 404) {
2409
2403
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2410
2404
  var result404 = null;
2411
- result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2405
+ result404 = _responseText === "" ? null : _responseText;
2412
2406
  return throwException("Not Found", status, _responseText, _headers, result404);
2413
2407
  }));
2414
2408
  }
@@ -2430,35 +2424,40 @@
2430
2424
  return rxjs.of(null);
2431
2425
  };
2432
2426
  /**
2433
- * Returns a project preview URL by project identifier.
2434
- * @param id Project identifier.
2427
+ * Creates a new project with single item.
2428
+ * @param storefrontId Storefront identifier.
2435
2429
  * @param tenantId (optional) Tenant identifier.
2430
+ * @param body (optional) Create operation parameters.
2436
2431
  * @return Success
2437
2432
  */
2438
- ProjectsApiClient.prototype.getPreviewUrl = function (id, tenantId) {
2433
+ ProjectsApiClient.prototype.createWithSingleItem = function (storefrontId, tenantId, body) {
2439
2434
  var _this = this;
2440
- var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/preview-url?";
2441
- if (id === undefined || id === null)
2442
- throw new Error("The parameter 'id' must be defined.");
2443
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
2435
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/with-single-item?";
2436
+ if (storefrontId === undefined || storefrontId === null)
2437
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
2438
+ else
2439
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
2444
2440
  if (tenantId !== undefined && tenantId !== null)
2445
2441
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2446
2442
  url_ = url_.replace(/[?&]$/, "");
2443
+ var content_ = JSON.stringify(body);
2447
2444
  var options_ = {
2445
+ body: content_,
2448
2446
  observe: "response",
2449
2447
  responseType: "blob",
2450
2448
  headers: new i1.HttpHeaders({
2449
+ "Content-Type": "application/json-patch+json",
2451
2450
  "Accept": "text/plain"
2452
2451
  })
2453
2452
  };
2454
2453
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2455
- return _this.http.request("get", url_, transformedOptions_);
2454
+ return _this.http.request("post", url_, transformedOptions_);
2456
2455
  })).pipe(operators.mergeMap(function (response_) {
2457
- return _this.transformResult(url_, response_, function (r) { return _this.processGetPreviewUrl(r); });
2456
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateWithSingleItem(r); });
2458
2457
  })).pipe(operators.catchError(function (response_) {
2459
2458
  if (response_ instanceof i1.HttpResponseBase) {
2460
2459
  try {
2461
- return _this.transformResult(url_, response_, function (r) { return _this.processGetPreviewUrl(r); });
2460
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateWithSingleItem(r); });
2462
2461
  }
2463
2462
  catch (e) {
2464
2463
  return rxjs.throwError(e);
@@ -2468,8 +2467,9 @@
2468
2467
  return rxjs.throwError(response_);
2469
2468
  }));
2470
2469
  };
2471
- ProjectsApiClient.prototype.processGetPreviewUrl = function (response) {
2470
+ ProjectsApiClient.prototype.processCreateWithSingleItem = function (response) {
2472
2471
  var e_22, _a;
2472
+ var _this = this;
2473
2473
  var status = response.status;
2474
2474
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
2475
2475
  response.error instanceof Blob ? response.error : undefined;
@@ -2489,18 +2489,129 @@
2489
2489
  finally { if (e_22) throw e_22.error; }
2490
2490
  }
2491
2491
  }
2492
- if (status === 200) {
2492
+ if (status === 201) {
2493
2493
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2494
- var result200 = null;
2495
- result200 = _responseText === "" ? null : _responseText;
2496
- return rxjs.of(result200);
2494
+ var result201 = null;
2495
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2496
+ return rxjs.of(result201);
2497
2497
  }));
2498
2498
  }
2499
- else if (status === 404) {
2499
+ else if (status === 400) {
2500
2500
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2501
- var result404 = null;
2502
- result404 = _responseText === "" ? null : _responseText;
2503
- return throwException("Not Found", status, _responseText, _headers, result404);
2501
+ var result400 = null;
2502
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2503
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2504
+ }));
2505
+ }
2506
+ else if (status === 409) {
2507
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2508
+ var result409 = null;
2509
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2510
+ return throwException("Conflict", status, _responseText, _headers, result409);
2511
+ }));
2512
+ }
2513
+ else if (status === 401) {
2514
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2515
+ return throwException("Unauthorized", status, _responseText, _headers);
2516
+ }));
2517
+ }
2518
+ else if (status === 403) {
2519
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2520
+ return throwException("Forbidden", status, _responseText, _headers);
2521
+ }));
2522
+ }
2523
+ else if (status !== 200 && status !== 204) {
2524
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2525
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2526
+ }));
2527
+ }
2528
+ return rxjs.of(null);
2529
+ };
2530
+ /**
2531
+ * Creates a new project with multiple items.
2532
+ * @param storefrontId Storefront identifier.
2533
+ * @param tenantId (optional) Tenant identifier.
2534
+ * @param body (optional) Create operation parameters.
2535
+ * @return Success
2536
+ */
2537
+ ProjectsApiClient.prototype.createWithMultipleItems = function (storefrontId, tenantId, body) {
2538
+ var _this = this;
2539
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/with-multiple-items?";
2540
+ if (storefrontId === undefined || storefrontId === null)
2541
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
2542
+ else
2543
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
2544
+ if (tenantId !== undefined && tenantId !== null)
2545
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2546
+ url_ = url_.replace(/[?&]$/, "");
2547
+ var content_ = JSON.stringify(body);
2548
+ var options_ = {
2549
+ body: content_,
2550
+ observe: "response",
2551
+ responseType: "blob",
2552
+ headers: new i1.HttpHeaders({
2553
+ "Content-Type": "application/json-patch+json",
2554
+ "Accept": "text/plain"
2555
+ })
2556
+ };
2557
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2558
+ return _this.http.request("post", url_, transformedOptions_);
2559
+ })).pipe(operators.mergeMap(function (response_) {
2560
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateWithMultipleItems(r); });
2561
+ })).pipe(operators.catchError(function (response_) {
2562
+ if (response_ instanceof i1.HttpResponseBase) {
2563
+ try {
2564
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateWithMultipleItems(r); });
2565
+ }
2566
+ catch (e) {
2567
+ return rxjs.throwError(e);
2568
+ }
2569
+ }
2570
+ else
2571
+ return rxjs.throwError(response_);
2572
+ }));
2573
+ };
2574
+ ProjectsApiClient.prototype.processCreateWithMultipleItems = function (response) {
2575
+ var e_23, _a;
2576
+ var _this = this;
2577
+ var status = response.status;
2578
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2579
+ response.error instanceof Blob ? response.error : undefined;
2580
+ var _headers = {};
2581
+ if (response.headers) {
2582
+ try {
2583
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2584
+ var key = _c.value;
2585
+ _headers[key] = response.headers.get(key);
2586
+ }
2587
+ }
2588
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2589
+ finally {
2590
+ try {
2591
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2592
+ }
2593
+ finally { if (e_23) throw e_23.error; }
2594
+ }
2595
+ }
2596
+ if (status === 201) {
2597
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2598
+ var result201 = null;
2599
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2600
+ return rxjs.of(result201);
2601
+ }));
2602
+ }
2603
+ else if (status === 400) {
2604
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2605
+ var result400 = null;
2606
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2607
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2608
+ }));
2609
+ }
2610
+ else if (status === 409) {
2611
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2612
+ var result409 = null;
2613
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2614
+ return throwException("Conflict", status, _responseText, _headers, result409);
2504
2615
  }));
2505
2616
  }
2506
2617
  else if (status === 401) {
@@ -2565,7 +2676,7 @@
2565
2676
  }));
2566
2677
  };
2567
2678
  ProjectsApiClient.prototype.processCreateByRenderHiResScenario = function (response) {
2568
- var e_23, _a;
2679
+ var e_24, _a;
2569
2680
  var _this = this;
2570
2681
  var status = response.status;
2571
2682
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2578,12 +2689,12 @@
2578
2689
  _headers[key] = response.headers.get(key);
2579
2690
  }
2580
2691
  }
2581
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
2692
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2582
2693
  finally {
2583
2694
  try {
2584
2695
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2585
2696
  }
2586
- finally { if (e_23) throw e_23.error; }
2697
+ finally { if (e_24) throw e_24.error; }
2587
2698
  }
2588
2699
  }
2589
2700
  if (status === 201) {
@@ -2593,6 +2704,13 @@
2593
2704
  return rxjs.of(result201);
2594
2705
  }));
2595
2706
  }
2707
+ else if (status === 400) {
2708
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2709
+ var result400 = null;
2710
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2711
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2712
+ }));
2713
+ }
2596
2714
  else if (status === 409) {
2597
2715
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2598
2716
  var result409 = null;
@@ -2662,7 +2780,7 @@
2662
2780
  }));
2663
2781
  };
2664
2782
  ProjectsApiClient.prototype.processCreateBySpecificPipelineScenario = function (response) {
2665
- var e_24, _a;
2783
+ var e_25, _a;
2666
2784
  var _this = this;
2667
2785
  var status = response.status;
2668
2786
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2675,12 +2793,12 @@
2675
2793
  _headers[key] = response.headers.get(key);
2676
2794
  }
2677
2795
  }
2678
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
2796
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2679
2797
  finally {
2680
2798
  try {
2681
2799
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2682
2800
  }
2683
- finally { if (e_24) throw e_24.error; }
2801
+ finally { if (e_25) throw e_25.error; }
2684
2802
  }
2685
2803
  }
2686
2804
  if (status === 201) {
@@ -2690,6 +2808,13 @@
2690
2808
  return rxjs.of(result201);
2691
2809
  }));
2692
2810
  }
2811
+ else if (status === 400) {
2812
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2813
+ var result400 = null;
2814
+ result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2815
+ return throwException("Bad Request", status, _responseText, _headers, result400);
2816
+ }));
2817
+ }
2693
2818
  else if (status === 409) {
2694
2819
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2695
2820
  var result409 = null;
@@ -2754,7 +2879,7 @@
2754
2879
  }));
2755
2880
  };
2756
2881
  ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
2757
- var e_25, _a;
2882
+ var e_26, _a;
2758
2883
  var _this = this;
2759
2884
  var status = response.status;
2760
2885
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2767,12 +2892,12 @@
2767
2892
  _headers[key] = response.headers.get(key);
2768
2893
  }
2769
2894
  }
2770
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
2895
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2771
2896
  finally {
2772
2897
  try {
2773
2898
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2774
2899
  }
2775
- finally { if (e_25) throw e_25.error; }
2900
+ finally { if (e_26) throw e_26.error; }
2776
2901
  }
2777
2902
  }
2778
2903
  if (status === 200) {
@@ -2864,7 +2989,7 @@
2864
2989
  }));
2865
2990
  };
2866
2991
  ProjectsApiClient.prototype.processChangeStatus = function (response) {
2867
- var e_26, _a;
2992
+ var e_27, _a;
2868
2993
  var _this = this;
2869
2994
  var status = response.status;
2870
2995
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2877,12 +3002,12 @@
2877
3002
  _headers[key] = response.headers.get(key);
2878
3003
  }
2879
3004
  }
2880
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3005
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2881
3006
  finally {
2882
3007
  try {
2883
3008
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2884
3009
  }
2885
- finally { if (e_26) throw e_26.error; }
3010
+ finally { if (e_27) throw e_27.error; }
2886
3011
  }
2887
3012
  }
2888
3013
  if (status === 200) {
@@ -2974,7 +3099,7 @@
2974
3099
  }));
2975
3100
  };
2976
3101
  ProjectsApiClient.prototype.processForceStatus = function (response) {
2977
- var e_27, _a;
3102
+ var e_28, _a;
2978
3103
  var _this = this;
2979
3104
  var status = response.status;
2980
3105
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2987,12 +3112,12 @@
2987
3112
  _headers[key] = response.headers.get(key);
2988
3113
  }
2989
3114
  }
2990
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3115
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
2991
3116
  finally {
2992
3117
  try {
2993
3118
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2994
3119
  }
2995
- finally { if (e_27) throw e_27.error; }
3120
+ finally { if (e_28) throw e_28.error; }
2996
3121
  }
2997
3122
  }
2998
3123
  if (status === 200) {
@@ -3069,7 +3194,7 @@
3069
3194
  }));
3070
3195
  };
3071
3196
  ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
3072
- var e_28, _a;
3197
+ var e_29, _a;
3073
3198
  var _this = this;
3074
3199
  var status = response.status;
3075
3200
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3082,12 +3207,12 @@
3082
3207
  _headers[key] = response.headers.get(key);
3083
3208
  }
3084
3209
  }
3085
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3210
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
3086
3211
  finally {
3087
3212
  try {
3088
3213
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3089
3214
  }
3090
- finally { if (e_28) throw e_28.error; }
3215
+ finally { if (e_29) throw e_29.error; }
3091
3216
  }
3092
3217
  }
3093
3218
  if (status === 200) {
@@ -3150,7 +3275,7 @@
3150
3275
  }));
3151
3276
  };
3152
3277
  ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
3153
- var e_29, _a;
3278
+ var e_30, _a;
3154
3279
  var _this = this;
3155
3280
  var status = response.status;
3156
3281
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3163,12 +3288,12 @@
3163
3288
  _headers[key] = response.headers.get(key);
3164
3289
  }
3165
3290
  }
3166
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3291
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3167
3292
  finally {
3168
3293
  try {
3169
3294
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3170
3295
  }
3171
- finally { if (e_29) throw e_29.error; }
3296
+ finally { if (e_30) throw e_30.error; }
3172
3297
  }
3173
3298
  }
3174
3299
  if (status === 200) {
@@ -3246,7 +3371,7 @@
3246
3371
  }));
3247
3372
  };
3248
3373
  ProjectsApiClient.prototype.processGetProjectPdfUrl = function (response) {
3249
- var e_30, _a;
3374
+ var e_31, _a;
3250
3375
  var _this = this;
3251
3376
  var status = response.status;
3252
3377
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3259,12 +3384,12 @@
3259
3384
  _headers[key] = response.headers.get(key);
3260
3385
  }
3261
3386
  }
3262
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3387
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3263
3388
  finally {
3264
3389
  try {
3265
3390
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3266
3391
  }
3267
- finally { if (e_30) throw e_30.error; }
3392
+ finally { if (e_31) throw e_31.error; }
3268
3393
  }
3269
3394
  }
3270
3395
  if (status === 200) {
@@ -3345,7 +3470,7 @@
3345
3470
  }));
3346
3471
  };
3347
3472
  ProjectsApiClient.prototype.processGetProjectPdfZip = function (response) {
3348
- var e_31, _a;
3473
+ var e_32, _a;
3349
3474
  var _this = this;
3350
3475
  var status = response.status;
3351
3476
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3358,12 +3483,12 @@
3358
3483
  _headers[key] = response.headers.get(key);
3359
3484
  }
3360
3485
  }
3361
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3486
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3362
3487
  finally {
3363
3488
  try {
3364
3489
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3365
3490
  }
3366
- finally { if (e_31) throw e_31.error; }
3491
+ finally { if (e_32) throw e_32.error; }
3367
3492
  }
3368
3493
  }
3369
3494
  if (status === 200 || status === 206) {
@@ -3399,15 +3524,18 @@
3399
3524
  /**
3400
3525
  * Returns a project processing results.
3401
3526
  * @param id Project identifier.
3527
+ * @param itemId (optional) Project item identifier.
3402
3528
  * @param tenantId (optional) Tenant identifier.
3403
3529
  * @return Success
3404
3530
  */
3405
- ProjectsApiClient.prototype.getProjectProcessingResults = function (id, tenantId) {
3531
+ ProjectsApiClient.prototype.getProjectProcessingResults = function (id, itemId, tenantId) {
3406
3532
  var _this = this;
3407
3533
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/processing-results?";
3408
3534
  if (id === undefined || id === null)
3409
3535
  throw new Error("The parameter 'id' must be defined.");
3410
3536
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3537
+ if (itemId !== undefined && itemId !== null)
3538
+ url_ += "itemId=" + encodeURIComponent("" + itemId) + "&";
3411
3539
  if (tenantId !== undefined && tenantId !== null)
3412
3540
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3413
3541
  url_ = url_.replace(/[?&]$/, "");
@@ -3436,7 +3564,7 @@
3436
3564
  }));
3437
3565
  };
3438
3566
  ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
3439
- var e_32, _a;
3567
+ var e_33, _a;
3440
3568
  var _this = this;
3441
3569
  var status = response.status;
3442
3570
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3449,12 +3577,12 @@
3449
3577
  _headers[key] = response.headers.get(key);
3450
3578
  }
3451
3579
  }
3452
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3580
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3453
3581
  finally {
3454
3582
  try {
3455
3583
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3456
3584
  }
3457
- finally { if (e_32) throw e_32.error; }
3585
+ finally { if (e_33) throw e_33.error; }
3458
3586
  }
3459
3587
  }
3460
3588
  if (status === 200) {
@@ -3491,15 +3619,18 @@
3491
3619
  /**
3492
3620
  * Resumes project processing.
3493
3621
  * @param id Project identifier.
3622
+ * @param itemId (optional) Project item identifier. If value is set, only specified item processing will be resumed.
3494
3623
  * @param tenantId (optional) Tenant identifier.
3495
3624
  * @return Success
3496
3625
  */
3497
- ProjectsApiClient.prototype.resumeProjectProcessing = function (id, tenantId) {
3626
+ ProjectsApiClient.prototype.resumeProjectProcessing = function (id, itemId, tenantId) {
3498
3627
  var _this = this;
3499
3628
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/resume-processing?";
3500
3629
  if (id === undefined || id === null)
3501
3630
  throw new Error("The parameter 'id' must be defined.");
3502
3631
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3632
+ if (itemId !== undefined && itemId !== null)
3633
+ url_ += "itemId=" + encodeURIComponent("" + itemId) + "&";
3503
3634
  if (tenantId !== undefined && tenantId !== null)
3504
3635
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3505
3636
  url_ = url_.replace(/[?&]$/, "");
@@ -3526,7 +3657,7 @@
3526
3657
  }));
3527
3658
  };
3528
3659
  ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
3529
- var e_33, _a;
3660
+ var e_34, _a;
3530
3661
  var _this = this;
3531
3662
  var status = response.status;
3532
3663
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3539,12 +3670,12 @@
3539
3670
  _headers[key] = response.headers.get(key);
3540
3671
  }
3541
3672
  }
3542
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
3673
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3543
3674
  finally {
3544
3675
  try {
3545
3676
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3546
3677
  }
3547
- finally { if (e_33) throw e_33.error; }
3678
+ finally { if (e_34) throw e_34.error; }
3548
3679
  }
3549
3680
  }
3550
3681
  if (status === 204) {
@@ -3579,15 +3710,18 @@
3579
3710
  /**
3580
3711
  * Restarts a project processing routine.
3581
3712
  * @param id Project identifier.
3713
+ * @param itemId (optional) Project item identifier. If value is set, only specified item processing will be restarted.
3582
3714
  * @param tenantId (optional) Tenant identifier.
3583
3715
  * @return Success
3584
3716
  */
3585
- ProjectsApiClient.prototype.restartProjectProcessing = function (id, tenantId) {
3717
+ ProjectsApiClient.prototype.restartProjectProcessing = function (id, itemId, tenantId) {
3586
3718
  var _this = this;
3587
3719
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/restart-processing?";
3588
3720
  if (id === undefined || id === null)
3589
3721
  throw new Error("The parameter 'id' must be defined.");
3590
3722
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3723
+ if (itemId !== undefined && itemId !== null)
3724
+ url_ += "itemId=" + encodeURIComponent("" + itemId) + "&";
3591
3725
  if (tenantId !== undefined && tenantId !== null)
3592
3726
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3593
3727
  url_ = url_.replace(/[?&]$/, "");
@@ -3614,7 +3748,7 @@
3614
3748
  }));
3615
3749
  };
3616
3750
  ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
3617
- var e_34, _a;
3751
+ var e_35, _a;
3618
3752
  var _this = this;
3619
3753
  var status = response.status;
3620
3754
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3627,12 +3761,12 @@
3627
3761
  _headers[key] = response.headers.get(key);
3628
3762
  }
3629
3763
  }
3630
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
3764
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3631
3765
  finally {
3632
3766
  try {
3633
3767
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3634
3768
  }
3635
- finally { if (e_34) throw e_34.error; }
3769
+ finally { if (e_35) throw e_35.error; }
3636
3770
  }
3637
3771
  }
3638
3772
  if (status === 204) {
@@ -3704,7 +3838,7 @@
3704
3838
  }));
3705
3839
  };
3706
3840
  ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
3707
- var e_35, _a;
3841
+ var e_36, _a;
3708
3842
  var _this = this;
3709
3843
  var status = response.status;
3710
3844
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3717,12 +3851,12 @@
3717
3851
  _headers[key] = response.headers.get(key);
3718
3852
  }
3719
3853
  }
3720
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
3854
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3721
3855
  finally {
3722
3856
  try {
3723
3857
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3724
3858
  }
3725
- finally { if (e_35) throw e_35.error; }
3859
+ finally { if (e_36) throw e_36.error; }
3726
3860
  }
3727
3861
  }
3728
3862
  if (status === 200) {
@@ -3759,16 +3893,19 @@
3759
3893
  /**
3760
3894
  * Attachs the specified data to the project's order in ecommerce system.
3761
3895
  * @param id Project identifier.
3896
+ * @param itemId (optional)
3762
3897
  * @param tenantId (optional) Tenant identifier.
3763
3898
  * @param body (optional) A list of data items, which should be attached to project's order.
3764
3899
  * @return Success
3765
3900
  */
3766
- ProjectsApiClient.prototype.attachDataToProjectOrder = function (id, tenantId, body) {
3901
+ ProjectsApiClient.prototype.attachDataToProjectOrder = function (id, itemId, tenantId, body) {
3767
3902
  var _this = this;
3768
3903
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/order-data?";
3769
3904
  if (id === undefined || id === null)
3770
3905
  throw new Error("The parameter 'id' must be defined.");
3771
3906
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3907
+ if (itemId !== undefined && itemId !== null)
3908
+ url_ += "itemId=" + encodeURIComponent("" + itemId) + "&";
3772
3909
  if (tenantId !== undefined && tenantId !== null)
3773
3910
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3774
3911
  url_ = url_.replace(/[?&]$/, "");
@@ -3799,7 +3936,7 @@
3799
3936
  }));
3800
3937
  };
3801
3938
  ProjectsApiClient.prototype.processAttachDataToProjectOrder = function (response) {
3802
- var e_36, _a;
3939
+ var e_37, _a;
3803
3940
  var _this = this;
3804
3941
  var status = response.status;
3805
3942
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3812,12 +3949,12 @@
3812
3949
  _headers[key] = response.headers.get(key);
3813
3950
  }
3814
3951
  }
3815
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
3952
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3816
3953
  finally {
3817
3954
  try {
3818
3955
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3819
3956
  }
3820
- finally { if (e_36) throw e_36.error; }
3957
+ finally { if (e_37) throw e_37.error; }
3821
3958
  }
3822
3959
  }
3823
3960
  if (status === 204) {
@@ -3922,7 +4059,7 @@
3922
4059
  }));
3923
4060
  };
3924
4061
  StorefrontsApiClient.prototype.processGetAll = function (response) {
3925
- var e_37, _a;
4062
+ var e_38, _a;
3926
4063
  var _this = this;
3927
4064
  var status = response.status;
3928
4065
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3935,12 +4072,12 @@
3935
4072
  _headers[key] = response.headers.get(key);
3936
4073
  }
3937
4074
  }
3938
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4075
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3939
4076
  finally {
3940
4077
  try {
3941
4078
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3942
4079
  }
3943
- finally { if (e_37) throw e_37.error; }
4080
+ finally { if (e_38) throw e_38.error; }
3944
4081
  }
3945
4082
  }
3946
4083
  if (status === 200) {
@@ -4007,7 +4144,7 @@
4007
4144
  }));
4008
4145
  };
4009
4146
  StorefrontsApiClient.prototype.processGet = function (response) {
4010
- var e_38, _a;
4147
+ var e_39, _a;
4011
4148
  var _this = this;
4012
4149
  var status = response.status;
4013
4150
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4020,12 +4157,12 @@
4020
4157
  _headers[key] = response.headers.get(key);
4021
4158
  }
4022
4159
  }
4023
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4160
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
4024
4161
  finally {
4025
4162
  try {
4026
4163
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4027
4164
  }
4028
- finally { if (e_38) throw e_38.error; }
4165
+ finally { if (e_39) throw e_39.error; }
4029
4166
  }
4030
4167
  }
4031
4168
  if (status === 200) {
@@ -4137,7 +4274,7 @@
4137
4274
  }));
4138
4275
  };
4139
4276
  StorefrontUsersApiClient.prototype.processGetAll = function (response) {
4140
- var e_39, _a;
4277
+ var e_40, _a;
4141
4278
  var _this = this;
4142
4279
  var status = response.status;
4143
4280
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4150,12 +4287,12 @@
4150
4287
  _headers[key] = response.headers.get(key);
4151
4288
  }
4152
4289
  }
4153
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4290
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
4154
4291
  finally {
4155
4292
  try {
4156
4293
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4157
4294
  }
4158
- finally { if (e_39) throw e_39.error; }
4295
+ finally { if (e_40) throw e_40.error; }
4159
4296
  }
4160
4297
  }
4161
4298
  if (status === 200) {
@@ -4227,7 +4364,7 @@
4227
4364
  }));
4228
4365
  };
4229
4366
  StorefrontUsersApiClient.prototype.processCreate = function (response) {
4230
- var e_40, _a;
4367
+ var e_41, _a;
4231
4368
  var _this = this;
4232
4369
  var status = response.status;
4233
4370
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4240,12 +4377,12 @@
4240
4377
  _headers[key] = response.headers.get(key);
4241
4378
  }
4242
4379
  }
4243
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4380
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
4244
4381
  finally {
4245
4382
  try {
4246
4383
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4247
4384
  }
4248
- finally { if (e_40) throw e_40.error; }
4385
+ finally { if (e_41) throw e_41.error; }
4249
4386
  }
4250
4387
  }
4251
4388
  if (status === 201) {
@@ -4324,7 +4461,7 @@
4324
4461
  }));
4325
4462
  };
4326
4463
  StorefrontUsersApiClient.prototype.processGet = function (response) {
4327
- var e_41, _a;
4464
+ var e_42, _a;
4328
4465
  var _this = this;
4329
4466
  var status = response.status;
4330
4467
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4337,12 +4474,12 @@
4337
4474
  _headers[key] = response.headers.get(key);
4338
4475
  }
4339
4476
  }
4340
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
4477
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
4341
4478
  finally {
4342
4479
  try {
4343
4480
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4344
4481
  }
4345
- finally { if (e_41) throw e_41.error; }
4482
+ finally { if (e_42) throw e_42.error; }
4346
4483
  }
4347
4484
  }
4348
4485
  if (status === 200) {
@@ -4421,7 +4558,7 @@
4421
4558
  }));
4422
4559
  };
4423
4560
  StorefrontUsersApiClient.prototype.processRegister = function (response) {
4424
- var e_42, _a;
4561
+ var e_43, _a;
4425
4562
  var _this = this;
4426
4563
  var status = response.status;
4427
4564
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4434,12 +4571,12 @@
4434
4571
  _headers[key] = response.headers.get(key);
4435
4572
  }
4436
4573
  }
4437
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4574
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
4438
4575
  finally {
4439
4576
  try {
4440
4577
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4441
4578
  }
4442
- finally { if (e_42) throw e_42.error; }
4579
+ finally { if (e_43) throw e_43.error; }
4443
4580
  }
4444
4581
  }
4445
4582
  if (status === 200) {
@@ -4517,7 +4654,7 @@
4517
4654
  }));
4518
4655
  };
4519
4656
  StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
4520
- var e_43, _a;
4657
+ var e_44, _a;
4521
4658
  var _this = this;
4522
4659
  var status = response.status;
4523
4660
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4530,12 +4667,12 @@
4530
4667
  _headers[key] = response.headers.get(key);
4531
4668
  }
4532
4669
  }
4533
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
4670
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4534
4671
  finally {
4535
4672
  try {
4536
4673
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4537
4674
  }
4538
- finally { if (e_43) throw e_43.error; }
4675
+ finally { if (e_44) throw e_44.error; }
4539
4676
  }
4540
4677
  }
4541
4678
  if (status === 200) {
@@ -4620,7 +4757,7 @@
4620
4757
  }));
4621
4758
  };
4622
4759
  StorefrontUsersApiClient.prototype.processGetToken = function (response) {
4623
- var e_44, _a;
4760
+ var e_45, _a;
4624
4761
  var status = response.status;
4625
4762
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
4626
4763
  response.error instanceof Blob ? response.error : undefined;
@@ -4632,12 +4769,12 @@
4632
4769
  _headers[key] = response.headers.get(key);
4633
4770
  }
4634
4771
  }
4635
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
4772
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
4636
4773
  finally {
4637
4774
  try {
4638
4775
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4639
4776
  }
4640
- finally { if (e_44) throw e_44.error; }
4777
+ finally { if (e_45) throw e_45.error; }
4641
4778
  }
4642
4779
  }
4643
4780
  if (status === 200) {
@@ -4736,7 +4873,7 @@
4736
4873
  }));
4737
4874
  };
4738
4875
  TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
4739
- var e_45, _a;
4876
+ var e_46, _a;
4740
4877
  var _this = this;
4741
4878
  var status = response.status;
4742
4879
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4749,12 +4886,12 @@
4749
4886
  _headers[key] = response.headers.get(key);
4750
4887
  }
4751
4888
  }
4752
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
4889
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4753
4890
  finally {
4754
4891
  try {
4755
4892
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4756
4893
  }
4757
- finally { if (e_45) throw e_45.error; }
4894
+ finally { if (e_46) throw e_46.error; }
4758
4895
  }
4759
4896
  }
4760
4897
  if (status === 200) {
@@ -4817,7 +4954,7 @@
4817
4954
  }));
4818
4955
  };
4819
4956
  TenantInfoApiClient.prototype.processGetInfo = function (response) {
4820
- var e_46, _a;
4957
+ var e_47, _a;
4821
4958
  var _this = this;
4822
4959
  var status = response.status;
4823
4960
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4830,12 +4967,12 @@
4830
4967
  _headers[key] = response.headers.get(key);
4831
4968
  }
4832
4969
  }
4833
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
4970
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4834
4971
  finally {
4835
4972
  try {
4836
4973
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4837
4974
  }
4838
- finally { if (e_46) throw e_46.error; }
4975
+ finally { if (e_47) throw e_47.error; }
4839
4976
  }
4840
4977
  }
4841
4978
  if (status === 200) {
@@ -4898,7 +5035,7 @@
4898
5035
  }));
4899
5036
  };
4900
5037
  TenantInfoApiClient.prototype.processGetMeasureUnitsInfo = function (response) {
4901
- var e_47, _a;
5038
+ var e_48, _a;
4902
5039
  var _this = this;
4903
5040
  var status = response.status;
4904
5041
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4911,12 +5048,12 @@
4911
5048
  _headers[key] = response.headers.get(key);
4912
5049
  }
4913
5050
  }
4914
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
5051
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
4915
5052
  finally {
4916
5053
  try {
4917
5054
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4918
5055
  }
4919
- finally { if (e_47) throw e_47.error; }
5056
+ finally { if (e_48) throw e_48.error; }
4920
5057
  }
4921
5058
  }
4922
5059
  if (status === 200) {
@@ -4979,7 +5116,7 @@
4979
5116
  }));
4980
5117
  };
4981
5118
  TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
4982
- var e_48, _a;
5119
+ var e_49, _a;
4983
5120
  var _this = this;
4984
5121
  var status = response.status;
4985
5122
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4992,12 +5129,12 @@
4992
5129
  _headers[key] = response.headers.get(key);
4993
5130
  }
4994
5131
  }
4995
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
5132
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
4996
5133
  finally {
4997
5134
  try {
4998
5135
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4999
5136
  }
5000
- finally { if (e_48) throw e_48.error; }
5137
+ finally { if (e_49) throw e_49.error; }
5001
5138
  }
5002
5139
  }
5003
5140
  if (status === 200) {