@aurigma/ng-storefront-api-client 2.38.2 → 2.40.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.
@@ -520,6 +520,210 @@
520
520
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
521
521
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
522
522
  ]; };
523
+ var ProcessingPipelinesApiClient = /** @class */ (function (_super) {
524
+ __extends(ProcessingPipelinesApiClient, _super);
525
+ function ProcessingPipelinesApiClient(configuration, http, baseUrl) {
526
+ var _this = _super.call(this, configuration) || this;
527
+ _this.jsonParseReviver = undefined;
528
+ _this.http = http;
529
+ _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
530
+ return _this;
531
+ }
532
+ /**
533
+ * Returns all processing pipelines relevant to the specified query parameters.
534
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
535
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
536
+ * @param search (optional) Search string for partial by processing pipeline name.
537
+ * @param tenantId (optional) Tenant identifier.
538
+ * @return Success
539
+ */
540
+ ProcessingPipelinesApiClient.prototype.getAll = function (skip, take, search, tenantId) {
541
+ var _this = this;
542
+ var url_ = this.baseUrl + "/api/storefront/v1/processing-pipelines?";
543
+ if (skip !== undefined && skip !== null)
544
+ url_ += "skip=" + encodeURIComponent("" + skip) + "&";
545
+ if (take !== undefined && take !== null)
546
+ url_ += "take=" + encodeURIComponent("" + take) + "&";
547
+ if (search !== undefined && search !== null)
548
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
549
+ if (tenantId !== undefined && tenantId !== null)
550
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
551
+ url_ = url_.replace(/[?&]$/, "");
552
+ var options_ = {
553
+ observe: "response",
554
+ responseType: "blob",
555
+ headers: new i1.HttpHeaders({
556
+ "Accept": "text/plain"
557
+ })
558
+ };
559
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
560
+ return _this.http.request("get", url_, transformedOptions_);
561
+ })).pipe(operators.mergeMap(function (response_) {
562
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
563
+ })).pipe(operators.catchError(function (response_) {
564
+ if (response_ instanceof i1.HttpResponseBase) {
565
+ try {
566
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
567
+ }
568
+ catch (e) {
569
+ return rxjs.throwError(e);
570
+ }
571
+ }
572
+ else
573
+ return rxjs.throwError(response_);
574
+ }));
575
+ };
576
+ ProcessingPipelinesApiClient.prototype.processGetAll = function (response) {
577
+ var e_3, _a;
578
+ var _this = this;
579
+ var status = response.status;
580
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
581
+ response.error instanceof Blob ? response.error : undefined;
582
+ var _headers = {};
583
+ if (response.headers) {
584
+ try {
585
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
586
+ var key = _c.value;
587
+ _headers[key] = response.headers.get(key);
588
+ }
589
+ }
590
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
591
+ finally {
592
+ try {
593
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
594
+ }
595
+ finally { if (e_3) throw e_3.error; }
596
+ }
597
+ }
598
+ if (status === 200) {
599
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
600
+ var result200 = null;
601
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
602
+ return rxjs.of(result200);
603
+ }));
604
+ }
605
+ else if (status === 401) {
606
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
607
+ return throwException("Unauthorized", status, _responseText, _headers);
608
+ }));
609
+ }
610
+ else if (status === 403) {
611
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
612
+ return throwException("Forbidden", status, _responseText, _headers);
613
+ }));
614
+ }
615
+ else if (status !== 200 && status !== 204) {
616
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
617
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
618
+ }));
619
+ }
620
+ return rxjs.of(null);
621
+ };
622
+ /**
623
+ * Returns a processing pipeline.
624
+ * @param id Processing pipeline identifier..
625
+ * @param tenantId (optional) Tenant identifier.
626
+ * @return Success
627
+ */
628
+ ProcessingPipelinesApiClient.prototype.get = function (id, tenantId) {
629
+ var _this = this;
630
+ var url_ = this.baseUrl + "/api/storefront/v1/processing-pipelines/{id}?";
631
+ if (id === undefined || id === null)
632
+ throw new Error("The parameter 'id' must be defined.");
633
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
634
+ if (tenantId !== undefined && tenantId !== null)
635
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
636
+ url_ = url_.replace(/[?&]$/, "");
637
+ var options_ = {
638
+ observe: "response",
639
+ responseType: "blob",
640
+ headers: new i1.HttpHeaders({
641
+ "Accept": "text/plain"
642
+ })
643
+ };
644
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
645
+ return _this.http.request("get", url_, transformedOptions_);
646
+ })).pipe(operators.mergeMap(function (response_) {
647
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
648
+ })).pipe(operators.catchError(function (response_) {
649
+ if (response_ instanceof i1.HttpResponseBase) {
650
+ try {
651
+ return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
652
+ }
653
+ catch (e) {
654
+ return rxjs.throwError(e);
655
+ }
656
+ }
657
+ else
658
+ return rxjs.throwError(response_);
659
+ }));
660
+ };
661
+ ProcessingPipelinesApiClient.prototype.processGet = function (response) {
662
+ var e_4, _a;
663
+ var _this = this;
664
+ var status = response.status;
665
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
666
+ response.error instanceof Blob ? response.error : undefined;
667
+ var _headers = {};
668
+ if (response.headers) {
669
+ try {
670
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
671
+ var key = _c.value;
672
+ _headers[key] = response.headers.get(key);
673
+ }
674
+ }
675
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
676
+ finally {
677
+ try {
678
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
679
+ }
680
+ finally { if (e_4) throw e_4.error; }
681
+ }
682
+ }
683
+ if (status === 200) {
684
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
685
+ var result200 = null;
686
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
687
+ return rxjs.of(result200);
688
+ }));
689
+ }
690
+ else if (status === 404) {
691
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
692
+ var result404 = null;
693
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
694
+ return throwException("Not Found", status, _responseText, _headers, result404);
695
+ }));
696
+ }
697
+ else if (status === 401) {
698
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
699
+ return throwException("Unauthorized", status, _responseText, _headers);
700
+ }));
701
+ }
702
+ else if (status === 403) {
703
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
704
+ return throwException("Forbidden", status, _responseText, _headers);
705
+ }));
706
+ }
707
+ else if (status !== 200 && status !== 204) {
708
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
709
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
710
+ }));
711
+ }
712
+ return rxjs.of(null);
713
+ };
714
+ return ProcessingPipelinesApiClient;
715
+ }(ApiClientBase));
716
+ ProcessingPipelinesApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProcessingPipelinesApiClient_Factory() { return new ProcessingPipelinesApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProcessingPipelinesApiClient, providedIn: "root" });
717
+ ProcessingPipelinesApiClient.decorators = [
718
+ { type: i0.Injectable, args: [{
719
+ providedIn: 'root'
720
+ },] }
721
+ ];
722
+ ProcessingPipelinesApiClient.ctorParameters = function () { return [
723
+ { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
724
+ { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
725
+ { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
726
+ ]; };
523
727
  var ProductReferencesApiClient = /** @class */ (function (_super) {
524
728
  __extends(ProductReferencesApiClient, _super);
525
729
  function ProductReferencesApiClient(configuration, http, baseUrl) {
@@ -588,7 +792,7 @@
588
792
  }));
589
793
  };
590
794
  ProductReferencesApiClient.prototype.processGetAll = function (response) {
591
- var e_3, _a;
795
+ var e_5, _a;
592
796
  var _this = this;
593
797
  var status = response.status;
594
798
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -601,12 +805,12 @@
601
805
  _headers[key] = response.headers.get(key);
602
806
  }
603
807
  }
604
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
808
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
605
809
  finally {
606
810
  try {
607
811
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
608
812
  }
609
- finally { if (e_3) throw e_3.error; }
813
+ finally { if (e_5) throw e_5.error; }
610
814
  }
611
815
  }
612
816
  if (status === 200) {
@@ -678,7 +882,7 @@
678
882
  }));
679
883
  };
680
884
  ProductReferencesApiClient.prototype.processCreate = function (response) {
681
- var e_4, _a;
885
+ var e_6, _a;
682
886
  var _this = this;
683
887
  var status = response.status;
684
888
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -691,12 +895,12 @@
691
895
  _headers[key] = response.headers.get(key);
692
896
  }
693
897
  }
694
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
898
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
695
899
  finally {
696
900
  try {
697
901
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
698
902
  }
699
- finally { if (e_4) throw e_4.error; }
903
+ finally { if (e_6) throw e_6.error; }
700
904
  }
701
905
  }
702
906
  if (status === 201) {
@@ -775,7 +979,7 @@
775
979
  }));
776
980
  };
777
981
  ProductReferencesApiClient.prototype.processGet = function (response) {
778
- var e_5, _a;
982
+ var e_7, _a;
779
983
  var _this = this;
780
984
  var status = response.status;
781
985
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -788,12 +992,12 @@
788
992
  _headers[key] = response.headers.get(key);
789
993
  }
790
994
  }
791
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
995
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
792
996
  finally {
793
997
  try {
794
998
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
795
999
  }
796
- finally { if (e_5) throw e_5.error; }
1000
+ finally { if (e_7) throw e_7.error; }
797
1001
  }
798
1002
  }
799
1003
  if (status === 200) {
@@ -872,7 +1076,7 @@
872
1076
  }));
873
1077
  };
874
1078
  ProductReferencesApiClient.prototype.processDelete = function (response) {
875
- var e_6, _a;
1079
+ var e_8, _a;
876
1080
  var _this = this;
877
1081
  var status = response.status;
878
1082
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -885,12 +1089,12 @@
885
1089
  _headers[key] = response.headers.get(key);
886
1090
  }
887
1091
  }
888
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
1092
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
889
1093
  finally {
890
1094
  try {
891
1095
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
892
1096
  }
893
- finally { if (e_6) throw e_6.error; }
1097
+ finally { if (e_8) throw e_8.error; }
894
1098
  }
895
1099
  }
896
1100
  if (status === 200) {
@@ -969,7 +1173,7 @@
969
1173
  }));
970
1174
  };
971
1175
  ProductReferencesApiClient.prototype.processGetProductSpecification = function (response) {
972
- var e_7, _a;
1176
+ var e_9, _a;
973
1177
  var _this = this;
974
1178
  var status = response.status;
975
1179
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -982,12 +1186,12 @@
982
1186
  _headers[key] = response.headers.get(key);
983
1187
  }
984
1188
  }
985
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
1189
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
986
1190
  finally {
987
1191
  try {
988
1192
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
989
1193
  }
990
- finally { if (e_7) throw e_7.error; }
1194
+ finally { if (e_9) throw e_9.error; }
991
1195
  }
992
1196
  }
993
1197
  if (status === 200) {
@@ -1022,22 +1226,38 @@
1022
1226
  return rxjs.of(null);
1023
1227
  };
1024
1228
  /**
1025
- * Returns a product personalization workflow configuration by storefront product reference.
1026
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
1229
+ * Returns a product cost details from ecommerce system.
1230
+ * @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
1231
+ * @param sku Product SKU.
1027
1232
  * @param storefrontId Storefront identifier.
1233
+ * @param storefrontUserId (optional) Storefront user identifier.
1234
+ * @param currencyCode (optional) Product cost currency code.
1235
+ * @param quantity (optional) Product quantity.
1028
1236
  * @param tenantId (optional) Tenant identifier.
1029
1237
  * @return Success
1030
1238
  */
1031
- ProductReferencesApiClient.prototype.getProductConfig = function (reference, storefrontId, tenantId) {
1239
+ ProductReferencesApiClient.prototype.getProductCostDetails = function (reference, sku, storefrontId, storefrontUserId, currencyCode, quantity, tenantId) {
1032
1240
  var _this = this;
1033
- var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-config?";
1241
+ var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-cost-details?";
1034
1242
  if (reference === undefined || reference === null)
1035
1243
  throw new Error("The parameter 'reference' must be defined.");
1036
1244
  url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
1245
+ if (sku === undefined || sku === null)
1246
+ throw new Error("The parameter 'sku' must be defined and cannot be null.");
1247
+ else
1248
+ url_ += "sku=" + encodeURIComponent("" + sku) + "&";
1037
1249
  if (storefrontId === undefined || storefrontId === null)
1038
1250
  throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1039
1251
  else
1040
1252
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1253
+ if (storefrontUserId !== undefined && storefrontUserId !== null)
1254
+ url_ += "storefrontUserId=" + encodeURIComponent("" + storefrontUserId) + "&";
1255
+ if (currencyCode !== undefined && currencyCode !== null)
1256
+ url_ += "currencyCode=" + encodeURIComponent("" + currencyCode) + "&";
1257
+ if (quantity === null)
1258
+ throw new Error("The parameter 'quantity' cannot be null.");
1259
+ else if (quantity !== undefined)
1260
+ url_ += "quantity=" + encodeURIComponent("" + quantity) + "&";
1041
1261
  if (tenantId !== undefined && tenantId !== null)
1042
1262
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1043
1263
  url_ = url_.replace(/[?&]$/, "");
@@ -1051,11 +1271,11 @@
1051
1271
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1052
1272
  return _this.http.request("get", url_, transformedOptions_);
1053
1273
  })).pipe(operators.mergeMap(function (response_) {
1054
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductConfig(r); });
1274
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductCostDetails(r); });
1055
1275
  })).pipe(operators.catchError(function (response_) {
1056
1276
  if (response_ instanceof i1.HttpResponseBase) {
1057
1277
  try {
1058
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductConfig(r); });
1278
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductCostDetails(r); });
1059
1279
  }
1060
1280
  catch (e) {
1061
1281
  return rxjs.throwError(e);
@@ -1065,8 +1285,9 @@
1065
1285
  return rxjs.throwError(response_);
1066
1286
  }));
1067
1287
  };
1068
- ProductReferencesApiClient.prototype.processGetProductConfig = function (response) {
1069
- var e_8, _a;
1288
+ ProductReferencesApiClient.prototype.processGetProductCostDetails = function (response) {
1289
+ var e_10, _a;
1290
+ var _this = this;
1070
1291
  var status = response.status;
1071
1292
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
1072
1293
  response.error instanceof Blob ? response.error : undefined;
@@ -1078,25 +1299,25 @@
1078
1299
  _headers[key] = response.headers.get(key);
1079
1300
  }
1080
1301
  }
1081
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
1302
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
1082
1303
  finally {
1083
1304
  try {
1084
1305
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1085
1306
  }
1086
- finally { if (e_8) throw e_8.error; }
1307
+ finally { if (e_10) throw e_10.error; }
1087
1308
  }
1088
1309
  }
1089
1310
  if (status === 200) {
1090
1311
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1091
1312
  var result200 = null;
1092
- result200 = _responseText === "" ? null : _responseText;
1313
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1093
1314
  return rxjs.of(result200);
1094
1315
  }));
1095
1316
  }
1096
1317
  else if (status === 404) {
1097
1318
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1098
1319
  var result404 = null;
1099
- result404 = _responseText === "" ? null : _responseText;
1320
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1100
1321
  return throwException("Not Found", status, _responseText, _headers, result404);
1101
1322
  }));
1102
1323
  }
@@ -1118,38 +1339,22 @@
1118
1339
  return rxjs.of(null);
1119
1340
  };
1120
1341
  /**
1121
- * Returns a product cost details from ecommerce system.
1122
- * @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
1123
- * @param sku Product SKU.
1124
- * @param storefrontId Storefront identifier.
1125
- * @param storefrontUserId (optional) Storefront user identifier.
1126
- * @param currencyCode (optional) Product cost currency code.
1127
- * @param quantity (optional) Product quantity.
1342
+ * Returns a product personalization workflow description by product specification identifier.
1343
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
1344
+ * @param storefrontId (optional) Storefront identifier.
1128
1345
  * @param tenantId (optional) Tenant identifier.
1129
1346
  * @return Success
1130
1347
  */
1131
- ProductReferencesApiClient.prototype.getProductCostDetails = function (reference, sku, storefrontId, storefrontUserId, currencyCode, quantity, tenantId) {
1348
+ ProductReferencesApiClient.prototype.getPersonalizationWorkflow = function (reference, storefrontId, tenantId) {
1132
1349
  var _this = this;
1133
- var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-cost-details?";
1350
+ var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/personalization-workflow?";
1134
1351
  if (reference === undefined || reference === null)
1135
1352
  throw new Error("The parameter 'reference' must be defined.");
1136
1353
  url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
1137
- if (sku === undefined || sku === null)
1138
- throw new Error("The parameter 'sku' must be defined and cannot be null.");
1139
- else
1140
- url_ += "sku=" + encodeURIComponent("" + sku) + "&";
1141
- if (storefrontId === undefined || storefrontId === null)
1142
- throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1143
- else
1354
+ if (storefrontId === null)
1355
+ throw new Error("The parameter 'storefrontId' cannot be null.");
1356
+ else if (storefrontId !== undefined)
1144
1357
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1145
- if (storefrontUserId !== undefined && storefrontUserId !== null)
1146
- url_ += "storefrontUserId=" + encodeURIComponent("" + storefrontUserId) + "&";
1147
- if (currencyCode !== undefined && currencyCode !== null)
1148
- url_ += "currencyCode=" + encodeURIComponent("" + currencyCode) + "&";
1149
- if (quantity === null)
1150
- throw new Error("The parameter 'quantity' cannot be null.");
1151
- else if (quantity !== undefined)
1152
- url_ += "quantity=" + encodeURIComponent("" + quantity) + "&";
1153
1358
  if (tenantId !== undefined && tenantId !== null)
1154
1359
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1155
1360
  url_ = url_.replace(/[?&]$/, "");
@@ -1163,11 +1368,11 @@
1163
1368
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1164
1369
  return _this.http.request("get", url_, transformedOptions_);
1165
1370
  })).pipe(operators.mergeMap(function (response_) {
1166
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductCostDetails(r); });
1371
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
1167
1372
  })).pipe(operators.catchError(function (response_) {
1168
1373
  if (response_ instanceof i1.HttpResponseBase) {
1169
1374
  try {
1170
- return _this.transformResult(url_, response_, function (r) { return _this.processGetProductCostDetails(r); });
1375
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
1171
1376
  }
1172
1377
  catch (e) {
1173
1378
  return rxjs.throwError(e);
@@ -1177,8 +1382,8 @@
1177
1382
  return rxjs.throwError(response_);
1178
1383
  }));
1179
1384
  };
1180
- ProductReferencesApiClient.prototype.processGetProductCostDetails = function (response) {
1181
- var e_9, _a;
1385
+ ProductReferencesApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
1386
+ var e_11, _a;
1182
1387
  var _this = this;
1183
1388
  var status = response.status;
1184
1389
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1191,12 +1396,12 @@
1191
1396
  _headers[key] = response.headers.get(key);
1192
1397
  }
1193
1398
  }
1194
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
1399
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
1195
1400
  finally {
1196
1401
  try {
1197
1402
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1198
1403
  }
1199
- finally { if (e_9) throw e_9.error; }
1404
+ finally { if (e_11) throw e_11.error; }
1200
1405
  }
1201
1406
  }
1202
1407
  if (status === 200) {
@@ -1230,6 +1435,100 @@
1230
1435
  }
1231
1436
  return rxjs.of(null);
1232
1437
  };
1438
+ /**
1439
+ * @param tenantId (optional)
1440
+ * @return Success
1441
+ * @deprecated
1442
+ */
1443
+ ProductReferencesApiClient.prototype.getProductConfig = function (reference, storefrontId, tenantId) {
1444
+ var _this = this;
1445
+ var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-config?";
1446
+ if (reference === undefined || reference === null)
1447
+ throw new Error("The parameter 'reference' must be defined.");
1448
+ url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
1449
+ if (storefrontId === undefined || storefrontId === null)
1450
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1451
+ else
1452
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1453
+ if (tenantId !== undefined && tenantId !== null)
1454
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1455
+ url_ = url_.replace(/[?&]$/, "");
1456
+ var options_ = {
1457
+ observe: "response",
1458
+ responseType: "blob",
1459
+ headers: new i1.HttpHeaders({
1460
+ "Accept": "text/plain"
1461
+ })
1462
+ };
1463
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1464
+ return _this.http.request("get", url_, transformedOptions_);
1465
+ })).pipe(operators.mergeMap(function (response_) {
1466
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductConfig(r); });
1467
+ })).pipe(operators.catchError(function (response_) {
1468
+ if (response_ instanceof i1.HttpResponseBase) {
1469
+ try {
1470
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetProductConfig(r); });
1471
+ }
1472
+ catch (e) {
1473
+ return rxjs.throwError(e);
1474
+ }
1475
+ }
1476
+ else
1477
+ return rxjs.throwError(response_);
1478
+ }));
1479
+ };
1480
+ ProductReferencesApiClient.prototype.processGetProductConfig = function (response) {
1481
+ var e_12, _a;
1482
+ var status = response.status;
1483
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
1484
+ response.error instanceof Blob ? response.error : undefined;
1485
+ var _headers = {};
1486
+ if (response.headers) {
1487
+ try {
1488
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
1489
+ var key = _c.value;
1490
+ _headers[key] = response.headers.get(key);
1491
+ }
1492
+ }
1493
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
1494
+ finally {
1495
+ try {
1496
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1497
+ }
1498
+ finally { if (e_12) throw e_12.error; }
1499
+ }
1500
+ }
1501
+ if (status === 200) {
1502
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1503
+ var result200 = null;
1504
+ result200 = _responseText === "" ? null : _responseText;
1505
+ return rxjs.of(result200);
1506
+ }));
1507
+ }
1508
+ else if (status === 404) {
1509
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1510
+ var result404 = null;
1511
+ result404 = _responseText === "" ? null : _responseText;
1512
+ return throwException("Not Found", status, _responseText, _headers, result404);
1513
+ }));
1514
+ }
1515
+ else if (status === 401) {
1516
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1517
+ return throwException("Unauthorized", status, _responseText, _headers);
1518
+ }));
1519
+ }
1520
+ else if (status === 403) {
1521
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1522
+ return throwException("Forbidden", status, _responseText, _headers);
1523
+ }));
1524
+ }
1525
+ else if (status !== 200 && status !== 204) {
1526
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1527
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1528
+ }));
1529
+ }
1530
+ return rxjs.of(null);
1531
+ };
1233
1532
  return ProductReferencesApiClient;
1234
1533
  }(ApiClientBase));
1235
1534
  ProductReferencesApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProductReferencesApiClient_Factory() { return new ProductReferencesApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProductReferencesApiClient, providedIn: "root" });
@@ -1300,7 +1599,7 @@
1300
1599
  }));
1301
1600
  };
1302
1601
  ProductSpecificationsApiClient.prototype.processGetAll = function (response) {
1303
- var e_10, _a;
1602
+ var e_13, _a;
1304
1603
  var _this = this;
1305
1604
  var status = response.status;
1306
1605
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1313,12 +1612,12 @@
1313
1612
  _headers[key] = response.headers.get(key);
1314
1613
  }
1315
1614
  }
1316
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
1615
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
1317
1616
  finally {
1318
1617
  try {
1319
1618
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1320
1619
  }
1321
- finally { if (e_10) throw e_10.error; }
1620
+ finally { if (e_13) throw e_13.error; }
1322
1621
  }
1323
1622
  }
1324
1623
  if (status === 200) {
@@ -1385,7 +1684,7 @@
1385
1684
  }));
1386
1685
  };
1387
1686
  ProductSpecificationsApiClient.prototype.processGet = function (response) {
1388
- var e_11, _a;
1687
+ var e_14, _a;
1389
1688
  var _this = this;
1390
1689
  var status = response.status;
1391
1690
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1398,12 +1697,12 @@
1398
1697
  _headers[key] = response.headers.get(key);
1399
1698
  }
1400
1699
  }
1401
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
1700
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
1402
1701
  finally {
1403
1702
  try {
1404
1703
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1405
1704
  }
1406
- finally { if (e_11) throw e_11.error; }
1705
+ finally { if (e_14) throw e_14.error; }
1407
1706
  }
1408
1707
  }
1409
1708
  if (status === 200) {
@@ -1438,11 +1737,102 @@
1438
1737
  return rxjs.of(null);
1439
1738
  };
1440
1739
  /**
1441
- * Returns a product personlization workflow configuration by product specification identifier.
1740
+ * Returns a product personalization workflow description by product specification identifier.
1442
1741
  * @param id Product specification identifier.
1443
1742
  * @param tenantId (optional) Tenant identifier.
1444
1743
  * @return Success
1445
1744
  */
1745
+ ProductSpecificationsApiClient.prototype.getPersonalizationWorkflow = function (id, tenantId) {
1746
+ var _this = this;
1747
+ var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}/personalization-workflow?";
1748
+ if (id === undefined || id === null)
1749
+ throw new Error("The parameter 'id' must be defined.");
1750
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
1751
+ if (tenantId !== undefined && tenantId !== null)
1752
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1753
+ url_ = url_.replace(/[?&]$/, "");
1754
+ var options_ = {
1755
+ observe: "response",
1756
+ responseType: "blob",
1757
+ headers: new i1.HttpHeaders({
1758
+ "Accept": "text/plain"
1759
+ })
1760
+ };
1761
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
1762
+ return _this.http.request("get", url_, transformedOptions_);
1763
+ })).pipe(operators.mergeMap(function (response_) {
1764
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
1765
+ })).pipe(operators.catchError(function (response_) {
1766
+ if (response_ instanceof i1.HttpResponseBase) {
1767
+ try {
1768
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetPersonalizationWorkflow(r); });
1769
+ }
1770
+ catch (e) {
1771
+ return rxjs.throwError(e);
1772
+ }
1773
+ }
1774
+ else
1775
+ return rxjs.throwError(response_);
1776
+ }));
1777
+ };
1778
+ ProductSpecificationsApiClient.prototype.processGetPersonalizationWorkflow = function (response) {
1779
+ var e_15, _a;
1780
+ var _this = this;
1781
+ var status = response.status;
1782
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
1783
+ response.error instanceof Blob ? response.error : undefined;
1784
+ var _headers = {};
1785
+ if (response.headers) {
1786
+ try {
1787
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
1788
+ var key = _c.value;
1789
+ _headers[key] = response.headers.get(key);
1790
+ }
1791
+ }
1792
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
1793
+ finally {
1794
+ try {
1795
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1796
+ }
1797
+ finally { if (e_15) throw e_15.error; }
1798
+ }
1799
+ }
1800
+ if (status === 200) {
1801
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1802
+ var result200 = null;
1803
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1804
+ return rxjs.of(result200);
1805
+ }));
1806
+ }
1807
+ else if (status === 404) {
1808
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1809
+ var result404 = null;
1810
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
1811
+ return throwException("Not Found", status, _responseText, _headers, result404);
1812
+ }));
1813
+ }
1814
+ else if (status === 401) {
1815
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1816
+ return throwException("Unauthorized", status, _responseText, _headers);
1817
+ }));
1818
+ }
1819
+ else if (status === 403) {
1820
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1821
+ return throwException("Forbidden", status, _responseText, _headers);
1822
+ }));
1823
+ }
1824
+ else if (status !== 200 && status !== 204) {
1825
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
1826
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1827
+ }));
1828
+ }
1829
+ return rxjs.of(null);
1830
+ };
1831
+ /**
1832
+ * @param tenantId (optional)
1833
+ * @return Success
1834
+ * @deprecated
1835
+ */
1446
1836
  ProductSpecificationsApiClient.prototype.getConfiguration = function (id, tenantId) {
1447
1837
  var _this = this;
1448
1838
  var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}/config?";
@@ -1477,7 +1867,7 @@
1477
1867
  }));
1478
1868
  };
1479
1869
  ProductSpecificationsApiClient.prototype.processGetConfiguration = function (response) {
1480
- var e_12, _a;
1870
+ var e_16, _a;
1481
1871
  var status = response.status;
1482
1872
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
1483
1873
  response.error instanceof Blob ? response.error : undefined;
@@ -1489,12 +1879,12 @@
1489
1879
  _headers[key] = response.headers.get(key);
1490
1880
  }
1491
1881
  }
1492
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
1882
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
1493
1883
  finally {
1494
1884
  try {
1495
1885
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1496
1886
  }
1497
- finally { if (e_12) throw e_12.error; }
1887
+ finally { if (e_16) throw e_16.error; }
1498
1888
  }
1499
1889
  }
1500
1890
  if (status === 200) {
@@ -1561,11 +1951,12 @@
1561
1951
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
1562
1952
  * @param search (optional) Search string for partial match.
1563
1953
  * @param orderId (optional) Identifier of corresponding order.
1954
+ * @param processingStatus (optional) Project processing status filter.
1564
1955
  * @param storefrontId (optional) Storefront identifier.
1565
1956
  * @param tenantId (optional) Tenant identifier.
1566
1957
  * @return Success
1567
1958
  */
1568
- ProjectsApiClient.prototype.getAll = function (ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, storefrontId, tenantId) {
1959
+ ProjectsApiClient.prototype.getAll = function (ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, processingStatus, storefrontId, tenantId) {
1569
1960
  var _this = this;
1570
1961
  var url_ = this.baseUrl + "/api/storefront/v1/projects?";
1571
1962
  if (ownerId !== undefined && ownerId !== null)
@@ -1588,6 +1979,8 @@
1588
1979
  url_ += "search=" + encodeURIComponent("" + search) + "&";
1589
1980
  if (orderId !== undefined && orderId !== null)
1590
1981
  url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
1982
+ if (processingStatus !== undefined && processingStatus !== null)
1983
+ url_ += "processingStatus=" + encodeURIComponent("" + processingStatus) + "&";
1591
1984
  if (storefrontId !== undefined && storefrontId !== null)
1592
1985
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1593
1986
  if (tenantId !== undefined && tenantId !== null)
@@ -1618,7 +2011,7 @@
1618
2011
  }));
1619
2012
  };
1620
2013
  ProjectsApiClient.prototype.processGetAll = function (response) {
1621
- var e_13, _a;
2014
+ var e_17, _a;
1622
2015
  var _this = this;
1623
2016
  var status = response.status;
1624
2017
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1631,12 +2024,12 @@
1631
2024
  _headers[key] = response.headers.get(key);
1632
2025
  }
1633
2026
  }
1634
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
2027
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
1635
2028
  finally {
1636
2029
  try {
1637
2030
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1638
2031
  }
1639
- finally { if (e_13) throw e_13.error; }
2032
+ finally { if (e_17) throw e_17.error; }
1640
2033
  }
1641
2034
  }
1642
2035
  if (status === 200) {
@@ -1708,7 +2101,7 @@
1708
2101
  }));
1709
2102
  };
1710
2103
  ProjectsApiClient.prototype.processCreate = function (response) {
1711
- var e_14, _a;
2104
+ var e_18, _a;
1712
2105
  var _this = this;
1713
2106
  var status = response.status;
1714
2107
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1721,12 +2114,12 @@
1721
2114
  _headers[key] = response.headers.get(key);
1722
2115
  }
1723
2116
  }
1724
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
2117
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
1725
2118
  finally {
1726
2119
  try {
1727
2120
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1728
2121
  }
1729
- finally { if (e_14) throw e_14.error; }
2122
+ finally { if (e_18) throw e_18.error; }
1730
2123
  }
1731
2124
  }
1732
2125
  if (status === 201) {
@@ -1800,7 +2193,7 @@
1800
2193
  }));
1801
2194
  };
1802
2195
  ProjectsApiClient.prototype.processGet = function (response) {
1803
- var e_15, _a;
2196
+ var e_19, _a;
1804
2197
  var _this = this;
1805
2198
  var status = response.status;
1806
2199
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1813,12 +2206,12 @@
1813
2206
  _headers[key] = response.headers.get(key);
1814
2207
  }
1815
2208
  }
1816
- catch (e_15_1) { e_15 = { error: e_15_1 }; }
2209
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
1817
2210
  finally {
1818
2211
  try {
1819
2212
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1820
2213
  }
1821
- finally { if (e_15) throw e_15.error; }
2214
+ finally { if (e_19) throw e_19.error; }
1822
2215
  }
1823
2216
  }
1824
2217
  if (status === 200) {
@@ -1890,7 +2283,7 @@
1890
2283
  }));
1891
2284
  };
1892
2285
  ProjectsApiClient.prototype.processDelete = function (response) {
1893
- var e_16, _a;
2286
+ var e_20, _a;
1894
2287
  var _this = this;
1895
2288
  var status = response.status;
1896
2289
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1903,12 +2296,12 @@
1903
2296
  _headers[key] = response.headers.get(key);
1904
2297
  }
1905
2298
  }
1906
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
2299
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
1907
2300
  finally {
1908
2301
  try {
1909
2302
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1910
2303
  }
1911
- finally { if (e_16) throw e_16.error; }
2304
+ finally { if (e_20) throw e_20.error; }
1912
2305
  }
1913
2306
  }
1914
2307
  if (status === 200) {
@@ -1980,7 +2373,7 @@
1980
2373
  }));
1981
2374
  };
1982
2375
  ProjectsApiClient.prototype.processGetPreview = function (response) {
1983
- var e_17, _a;
2376
+ var e_21, _a;
1984
2377
  var _this = this;
1985
2378
  var status = response.status;
1986
2379
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -1993,12 +2386,12 @@
1993
2386
  _headers[key] = response.headers.get(key);
1994
2387
  }
1995
2388
  }
1996
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
2389
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
1997
2390
  finally {
1998
2391
  try {
1999
2392
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2000
2393
  }
2001
- finally { if (e_17) throw e_17.error; }
2394
+ finally { if (e_21) throw e_21.error; }
2002
2395
  }
2003
2396
  }
2004
2397
  if (status === 200 || status === 206) {
@@ -2071,7 +2464,7 @@
2071
2464
  }));
2072
2465
  };
2073
2466
  ProjectsApiClient.prototype.processGetPreviewUrl = function (response) {
2074
- var e_18, _a;
2467
+ var e_22, _a;
2075
2468
  var status = response.status;
2076
2469
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
2077
2470
  response.error instanceof Blob ? response.error : undefined;
@@ -2083,12 +2476,12 @@
2083
2476
  _headers[key] = response.headers.get(key);
2084
2477
  }
2085
2478
  }
2086
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
2479
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
2087
2480
  finally {
2088
2481
  try {
2089
2482
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2090
2483
  }
2091
- finally { if (e_18) throw e_18.error; }
2484
+ finally { if (e_22) throw e_22.error; }
2092
2485
  }
2093
2486
  }
2094
2487
  if (status === 200) {
@@ -2167,7 +2560,7 @@
2167
2560
  }));
2168
2561
  };
2169
2562
  ProjectsApiClient.prototype.processCreateByRenderHiResScenario = function (response) {
2170
- var e_19, _a;
2563
+ var e_23, _a;
2171
2564
  var _this = this;
2172
2565
  var status = response.status;
2173
2566
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2180,12 +2573,109 @@
2180
2573
  _headers[key] = response.headers.get(key);
2181
2574
  }
2182
2575
  }
2183
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
2576
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
2184
2577
  finally {
2185
2578
  try {
2186
2579
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2187
2580
  }
2188
- finally { if (e_19) throw e_19.error; }
2581
+ finally { if (e_23) throw e_23.error; }
2582
+ }
2583
+ }
2584
+ if (status === 201) {
2585
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2586
+ var result201 = null;
2587
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2588
+ return rxjs.of(result201);
2589
+ }));
2590
+ }
2591
+ else if (status === 409) {
2592
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2593
+ var result409 = null;
2594
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2595
+ return throwException("Conflict", status, _responseText, _headers, result409);
2596
+ }));
2597
+ }
2598
+ else if (status === 401) {
2599
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2600
+ return throwException("Unauthorized", status, _responseText, _headers);
2601
+ }));
2602
+ }
2603
+ else if (status === 403) {
2604
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2605
+ return throwException("Forbidden", status, _responseText, _headers);
2606
+ }));
2607
+ }
2608
+ else if (status !== 200 && status !== 204) {
2609
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2610
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2611
+ }));
2612
+ }
2613
+ return rxjs.of(null);
2614
+ };
2615
+ /**
2616
+ * Creates a new project by 'Specific Pipeline' scenario.
2617
+ * @param storefrontId Storefront identifier.
2618
+ * @param tenantId (optional) Tenant identifier.
2619
+ * @param body (optional) Create operation parameters.
2620
+ * @return Success
2621
+ */
2622
+ ProjectsApiClient.prototype.createBySpecificPipelineScenario = function (storefrontId, tenantId, body) {
2623
+ var _this = this;
2624
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/by-scenario/specific-pipeline?";
2625
+ if (storefrontId === undefined || storefrontId === null)
2626
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
2627
+ else
2628
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
2629
+ if (tenantId !== undefined && tenantId !== null)
2630
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2631
+ url_ = url_.replace(/[?&]$/, "");
2632
+ var content_ = JSON.stringify(body);
2633
+ var options_ = {
2634
+ body: content_,
2635
+ observe: "response",
2636
+ responseType: "blob",
2637
+ headers: new i1.HttpHeaders({
2638
+ "Content-Type": "application/json-patch+json",
2639
+ "Accept": "text/plain"
2640
+ })
2641
+ };
2642
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
2643
+ return _this.http.request("post", url_, transformedOptions_);
2644
+ })).pipe(operators.mergeMap(function (response_) {
2645
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateBySpecificPipelineScenario(r); });
2646
+ })).pipe(operators.catchError(function (response_) {
2647
+ if (response_ instanceof i1.HttpResponseBase) {
2648
+ try {
2649
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateBySpecificPipelineScenario(r); });
2650
+ }
2651
+ catch (e) {
2652
+ return rxjs.throwError(e);
2653
+ }
2654
+ }
2655
+ else
2656
+ return rxjs.throwError(response_);
2657
+ }));
2658
+ };
2659
+ ProjectsApiClient.prototype.processCreateBySpecificPipelineScenario = function (response) {
2660
+ var e_24, _a;
2661
+ var _this = this;
2662
+ var status = response.status;
2663
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
2664
+ response.error instanceof Blob ? response.error : undefined;
2665
+ var _headers = {};
2666
+ if (response.headers) {
2667
+ try {
2668
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
2669
+ var key = _c.value;
2670
+ _headers[key] = response.headers.get(key);
2671
+ }
2672
+ }
2673
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
2674
+ finally {
2675
+ try {
2676
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2677
+ }
2678
+ finally { if (e_24) throw e_24.error; }
2189
2679
  }
2190
2680
  }
2191
2681
  if (status === 201) {
@@ -2259,7 +2749,7 @@
2259
2749
  }));
2260
2750
  };
2261
2751
  ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
2262
- var e_20, _a;
2752
+ var e_25, _a;
2263
2753
  var _this = this;
2264
2754
  var status = response.status;
2265
2755
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2272,12 +2762,12 @@
2272
2762
  _headers[key] = response.headers.get(key);
2273
2763
  }
2274
2764
  }
2275
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
2765
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
2276
2766
  finally {
2277
2767
  try {
2278
2768
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2279
2769
  }
2280
- finally { if (e_20) throw e_20.error; }
2770
+ finally { if (e_25) throw e_25.error; }
2281
2771
  }
2282
2772
  }
2283
2773
  if (status === 200) {
@@ -2369,7 +2859,7 @@
2369
2859
  }));
2370
2860
  };
2371
2861
  ProjectsApiClient.prototype.processChangeStatus = function (response) {
2372
- var e_21, _a;
2862
+ var e_26, _a;
2373
2863
  var _this = this;
2374
2864
  var status = response.status;
2375
2865
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2382,12 +2872,12 @@
2382
2872
  _headers[key] = response.headers.get(key);
2383
2873
  }
2384
2874
  }
2385
- catch (e_21_1) { e_21 = { error: e_21_1 }; }
2875
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
2386
2876
  finally {
2387
2877
  try {
2388
2878
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2389
2879
  }
2390
- finally { if (e_21) throw e_21.error; }
2880
+ finally { if (e_26) throw e_26.error; }
2391
2881
  }
2392
2882
  }
2393
2883
  if (status === 200) {
@@ -2479,7 +2969,7 @@
2479
2969
  }));
2480
2970
  };
2481
2971
  ProjectsApiClient.prototype.processForceStatus = function (response) {
2482
- var e_22, _a;
2972
+ var e_27, _a;
2483
2973
  var _this = this;
2484
2974
  var status = response.status;
2485
2975
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2492,12 +2982,12 @@
2492
2982
  _headers[key] = response.headers.get(key);
2493
2983
  }
2494
2984
  }
2495
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
2985
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
2496
2986
  finally {
2497
2987
  try {
2498
2988
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2499
2989
  }
2500
- finally { if (e_22) throw e_22.error; }
2990
+ finally { if (e_27) throw e_27.error; }
2501
2991
  }
2502
2992
  }
2503
2993
  if (status === 200) {
@@ -2574,7 +3064,7 @@
2574
3064
  }));
2575
3065
  };
2576
3066
  ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
2577
- var e_23, _a;
3067
+ var e_28, _a;
2578
3068
  var _this = this;
2579
3069
  var status = response.status;
2580
3070
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2587,12 +3077,12 @@
2587
3077
  _headers[key] = response.headers.get(key);
2588
3078
  }
2589
3079
  }
2590
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
3080
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
2591
3081
  finally {
2592
3082
  try {
2593
3083
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2594
3084
  }
2595
- finally { if (e_23) throw e_23.error; }
3085
+ finally { if (e_28) throw e_28.error; }
2596
3086
  }
2597
3087
  }
2598
3088
  if (status === 200) {
@@ -2655,7 +3145,7 @@
2655
3145
  }));
2656
3146
  };
2657
3147
  ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
2658
- var e_24, _a;
3148
+ var e_29, _a;
2659
3149
  var _this = this;
2660
3150
  var status = response.status;
2661
3151
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2668,12 +3158,12 @@
2668
3158
  _headers[key] = response.headers.get(key);
2669
3159
  }
2670
3160
  }
2671
- catch (e_24_1) { e_24 = { error: e_24_1 }; }
3161
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
2672
3162
  finally {
2673
3163
  try {
2674
3164
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2675
3165
  }
2676
- finally { if (e_24) throw e_24.error; }
3166
+ finally { if (e_29) throw e_29.error; }
2677
3167
  }
2678
3168
  }
2679
3169
  if (status === 200) {
@@ -2751,7 +3241,7 @@
2751
3241
  }));
2752
3242
  };
2753
3243
  ProjectsApiClient.prototype.processGetProjectPdfUrl = function (response) {
2754
- var e_25, _a;
3244
+ var e_30, _a;
2755
3245
  var _this = this;
2756
3246
  var status = response.status;
2757
3247
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2764,12 +3254,12 @@
2764
3254
  _headers[key] = response.headers.get(key);
2765
3255
  }
2766
3256
  }
2767
- catch (e_25_1) { e_25 = { error: e_25_1 }; }
3257
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
2768
3258
  finally {
2769
3259
  try {
2770
3260
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2771
3261
  }
2772
- finally { if (e_25) throw e_25.error; }
3262
+ finally { if (e_30) throw e_30.error; }
2773
3263
  }
2774
3264
  }
2775
3265
  if (status === 200) {
@@ -2850,7 +3340,7 @@
2850
3340
  }));
2851
3341
  };
2852
3342
  ProjectsApiClient.prototype.processGetProjectPdfZip = function (response) {
2853
- var e_26, _a;
3343
+ var e_31, _a;
2854
3344
  var _this = this;
2855
3345
  var status = response.status;
2856
3346
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2863,12 +3353,12 @@
2863
3353
  _headers[key] = response.headers.get(key);
2864
3354
  }
2865
3355
  }
2866
- catch (e_26_1) { e_26 = { error: e_26_1 }; }
3356
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
2867
3357
  finally {
2868
3358
  try {
2869
3359
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2870
3360
  }
2871
- finally { if (e_26) throw e_26.error; }
3361
+ finally { if (e_31) throw e_31.error; }
2872
3362
  }
2873
3363
  }
2874
3364
  if (status === 200 || status === 206) {
@@ -2941,7 +3431,7 @@
2941
3431
  }));
2942
3432
  };
2943
3433
  ProjectsApiClient.prototype.processGetProjectProcessingResults = function (response) {
2944
- var e_27, _a;
3434
+ var e_32, _a;
2945
3435
  var _this = this;
2946
3436
  var status = response.status;
2947
3437
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -2954,12 +3444,12 @@
2954
3444
  _headers[key] = response.headers.get(key);
2955
3445
  }
2956
3446
  }
2957
- catch (e_27_1) { e_27 = { error: e_27_1 }; }
3447
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
2958
3448
  finally {
2959
3449
  try {
2960
3450
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
2961
3451
  }
2962
- finally { if (e_27) throw e_27.error; }
3452
+ finally { if (e_32) throw e_32.error; }
2963
3453
  }
2964
3454
  }
2965
3455
  if (status === 200) {
@@ -3031,7 +3521,7 @@
3031
3521
  }));
3032
3522
  };
3033
3523
  ProjectsApiClient.prototype.processResumeProjectProcessing = function (response) {
3034
- var e_28, _a;
3524
+ var e_33, _a;
3035
3525
  var _this = this;
3036
3526
  var status = response.status;
3037
3527
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3044,12 +3534,12 @@
3044
3534
  _headers[key] = response.headers.get(key);
3045
3535
  }
3046
3536
  }
3047
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3537
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3048
3538
  finally {
3049
3539
  try {
3050
3540
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3051
3541
  }
3052
- finally { if (e_28) throw e_28.error; }
3542
+ finally { if (e_33) throw e_33.error; }
3053
3543
  }
3054
3544
  }
3055
3545
  if (status === 204) {
@@ -3119,7 +3609,7 @@
3119
3609
  }));
3120
3610
  };
3121
3611
  ProjectsApiClient.prototype.processRestartProjectProcessing = function (response) {
3122
- var e_29, _a;
3612
+ var e_34, _a;
3123
3613
  var _this = this;
3124
3614
  var status = response.status;
3125
3615
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3132,12 +3622,12 @@
3132
3622
  _headers[key] = response.headers.get(key);
3133
3623
  }
3134
3624
  }
3135
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3625
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3136
3626
  finally {
3137
3627
  try {
3138
3628
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3139
3629
  }
3140
- finally { if (e_29) throw e_29.error; }
3630
+ finally { if (e_34) throw e_34.error; }
3141
3631
  }
3142
3632
  }
3143
3633
  if (status === 204) {
@@ -3209,7 +3699,7 @@
3209
3699
  }));
3210
3700
  };
3211
3701
  ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
3212
- var e_30, _a;
3702
+ var e_35, _a;
3213
3703
  var _this = this;
3214
3704
  var status = response.status;
3215
3705
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3222,12 +3712,12 @@
3222
3712
  _headers[key] = response.headers.get(key);
3223
3713
  }
3224
3714
  }
3225
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3715
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3226
3716
  finally {
3227
3717
  try {
3228
3718
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3229
3719
  }
3230
- finally { if (e_30) throw e_30.error; }
3720
+ finally { if (e_35) throw e_35.error; }
3231
3721
  }
3232
3722
  }
3233
3723
  if (status === 200) {
@@ -3304,7 +3794,7 @@
3304
3794
  }));
3305
3795
  };
3306
3796
  ProjectsApiClient.prototype.processAttachDataToProjectOrder = function (response) {
3307
- var e_31, _a;
3797
+ var e_36, _a;
3308
3798
  var _this = this;
3309
3799
  var status = response.status;
3310
3800
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3317,12 +3807,12 @@
3317
3807
  _headers[key] = response.headers.get(key);
3318
3808
  }
3319
3809
  }
3320
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3810
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3321
3811
  finally {
3322
3812
  try {
3323
3813
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3324
3814
  }
3325
- finally { if (e_31) throw e_31.error; }
3815
+ finally { if (e_36) throw e_36.error; }
3326
3816
  }
3327
3817
  }
3328
3818
  if (status === 204) {
@@ -3427,7 +3917,7 @@
3427
3917
  }));
3428
3918
  };
3429
3919
  StorefrontsApiClient.prototype.processGetAll = function (response) {
3430
- var e_32, _a;
3920
+ var e_37, _a;
3431
3921
  var _this = this;
3432
3922
  var status = response.status;
3433
3923
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3440,12 +3930,12 @@
3440
3930
  _headers[key] = response.headers.get(key);
3441
3931
  }
3442
3932
  }
3443
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
3933
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3444
3934
  finally {
3445
3935
  try {
3446
3936
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3447
3937
  }
3448
- finally { if (e_32) throw e_32.error; }
3938
+ finally { if (e_37) throw e_37.error; }
3449
3939
  }
3450
3940
  }
3451
3941
  if (status === 200) {
@@ -3512,7 +4002,7 @@
3512
4002
  }));
3513
4003
  };
3514
4004
  StorefrontsApiClient.prototype.processGet = function (response) {
3515
- var e_33, _a;
4005
+ var e_38, _a;
3516
4006
  var _this = this;
3517
4007
  var status = response.status;
3518
4008
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3525,12 +4015,12 @@
3525
4015
  _headers[key] = response.headers.get(key);
3526
4016
  }
3527
4017
  }
3528
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
4018
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3529
4019
  finally {
3530
4020
  try {
3531
4021
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3532
4022
  }
3533
- finally { if (e_33) throw e_33.error; }
4023
+ finally { if (e_38) throw e_38.error; }
3534
4024
  }
3535
4025
  }
3536
4026
  if (status === 200) {
@@ -3642,7 +4132,7 @@
3642
4132
  }));
3643
4133
  };
3644
4134
  StorefrontUsersApiClient.prototype.processGetAll = function (response) {
3645
- var e_34, _a;
4135
+ var e_39, _a;
3646
4136
  var _this = this;
3647
4137
  var status = response.status;
3648
4138
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3655,12 +4145,12 @@
3655
4145
  _headers[key] = response.headers.get(key);
3656
4146
  }
3657
4147
  }
3658
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
4148
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
3659
4149
  finally {
3660
4150
  try {
3661
4151
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3662
4152
  }
3663
- finally { if (e_34) throw e_34.error; }
4153
+ finally { if (e_39) throw e_39.error; }
3664
4154
  }
3665
4155
  }
3666
4156
  if (status === 200) {
@@ -3732,7 +4222,7 @@
3732
4222
  }));
3733
4223
  };
3734
4224
  StorefrontUsersApiClient.prototype.processCreate = function (response) {
3735
- var e_35, _a;
4225
+ var e_40, _a;
3736
4226
  var _this = this;
3737
4227
  var status = response.status;
3738
4228
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3745,12 +4235,12 @@
3745
4235
  _headers[key] = response.headers.get(key);
3746
4236
  }
3747
4237
  }
3748
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
4238
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
3749
4239
  finally {
3750
4240
  try {
3751
4241
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3752
4242
  }
3753
- finally { if (e_35) throw e_35.error; }
4243
+ finally { if (e_40) throw e_40.error; }
3754
4244
  }
3755
4245
  }
3756
4246
  if (status === 201) {
@@ -3829,7 +4319,7 @@
3829
4319
  }));
3830
4320
  };
3831
4321
  StorefrontUsersApiClient.prototype.processGet = function (response) {
3832
- var e_36, _a;
4322
+ var e_41, _a;
3833
4323
  var _this = this;
3834
4324
  var status = response.status;
3835
4325
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3842,12 +4332,12 @@
3842
4332
  _headers[key] = response.headers.get(key);
3843
4333
  }
3844
4334
  }
3845
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
4335
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
3846
4336
  finally {
3847
4337
  try {
3848
4338
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3849
4339
  }
3850
- finally { if (e_36) throw e_36.error; }
4340
+ finally { if (e_41) throw e_41.error; }
3851
4341
  }
3852
4342
  }
3853
4343
  if (status === 200) {
@@ -3926,7 +4416,7 @@
3926
4416
  }));
3927
4417
  };
3928
4418
  StorefrontUsersApiClient.prototype.processRegister = function (response) {
3929
- var e_37, _a;
4419
+ var e_42, _a;
3930
4420
  var _this = this;
3931
4421
  var status = response.status;
3932
4422
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3939,12 +4429,12 @@
3939
4429
  _headers[key] = response.headers.get(key);
3940
4430
  }
3941
4431
  }
3942
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4432
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
3943
4433
  finally {
3944
4434
  try {
3945
4435
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3946
4436
  }
3947
- finally { if (e_37) throw e_37.error; }
4437
+ finally { if (e_42) throw e_42.error; }
3948
4438
  }
3949
4439
  }
3950
4440
  if (status === 200) {
@@ -4022,7 +4512,7 @@
4022
4512
  }));
4023
4513
  };
4024
4514
  StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
4025
- var e_38, _a;
4515
+ var e_43, _a;
4026
4516
  var _this = this;
4027
4517
  var status = response.status;
4028
4518
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4035,12 +4525,12 @@
4035
4525
  _headers[key] = response.headers.get(key);
4036
4526
  }
4037
4527
  }
4038
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4528
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
4039
4529
  finally {
4040
4530
  try {
4041
4531
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4042
4532
  }
4043
- finally { if (e_38) throw e_38.error; }
4533
+ finally { if (e_43) throw e_43.error; }
4044
4534
  }
4045
4535
  }
4046
4536
  if (status === 200) {
@@ -4125,7 +4615,7 @@
4125
4615
  }));
4126
4616
  };
4127
4617
  StorefrontUsersApiClient.prototype.processGetToken = function (response) {
4128
- var e_39, _a;
4618
+ var e_44, _a;
4129
4619
  var status = response.status;
4130
4620
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
4131
4621
  response.error instanceof Blob ? response.error : undefined;
@@ -4137,12 +4627,12 @@
4137
4627
  _headers[key] = response.headers.get(key);
4138
4628
  }
4139
4629
  }
4140
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
4630
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
4141
4631
  finally {
4142
4632
  try {
4143
4633
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4144
4634
  }
4145
- finally { if (e_39) throw e_39.error; }
4635
+ finally { if (e_44) throw e_44.error; }
4146
4636
  }
4147
4637
  }
4148
4638
  if (status === 200) {
@@ -4241,7 +4731,7 @@
4241
4731
  }));
4242
4732
  };
4243
4733
  TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
4244
- var e_40, _a;
4734
+ var e_45, _a;
4245
4735
  var _this = this;
4246
4736
  var status = response.status;
4247
4737
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4254,12 +4744,12 @@
4254
4744
  _headers[key] = response.headers.get(key);
4255
4745
  }
4256
4746
  }
4257
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
4747
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
4258
4748
  finally {
4259
4749
  try {
4260
4750
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4261
4751
  }
4262
- finally { if (e_40) throw e_40.error; }
4752
+ finally { if (e_45) throw e_45.error; }
4263
4753
  }
4264
4754
  }
4265
4755
  if (status === 200) {
@@ -4322,7 +4812,7 @@
4322
4812
  }));
4323
4813
  };
4324
4814
  TenantInfoApiClient.prototype.processGetInfo = function (response) {
4325
- var e_41, _a;
4815
+ var e_46, _a;
4326
4816
  var _this = this;
4327
4817
  var status = response.status;
4328
4818
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4335,12 +4825,12 @@
4335
4825
  _headers[key] = response.headers.get(key);
4336
4826
  }
4337
4827
  }
4338
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
4828
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
4339
4829
  finally {
4340
4830
  try {
4341
4831
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4342
4832
  }
4343
- finally { if (e_41) throw e_41.error; }
4833
+ finally { if (e_46) throw e_46.error; }
4344
4834
  }
4345
4835
  }
4346
4836
  if (status === 200) {
@@ -4403,7 +4893,7 @@
4403
4893
  }));
4404
4894
  };
4405
4895
  TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
4406
- var e_42, _a;
4896
+ var e_47, _a;
4407
4897
  var _this = this;
4408
4898
  var status = response.status;
4409
4899
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4416,12 +4906,12 @@
4416
4906
  _headers[key] = response.headers.get(key);
4417
4907
  }
4418
4908
  }
4419
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
4909
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
4420
4910
  finally {
4421
4911
  try {
4422
4912
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4423
4913
  }
4424
- finally { if (e_42) throw e_42.error; }
4914
+ finally { if (e_47) throw e_47.error; }
4425
4915
  }
4426
4916
  }
4427
4917
  if (status === 200) {
@@ -4461,12 +4951,24 @@
4461
4951
  { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
4462
4952
  { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
4463
4953
  ]; };
4954
+ (function (WorkflowType) {
4955
+ WorkflowType["UIFramework"] = "UIFramework";
4956
+ WorkflowType["SimpleEditor"] = "SimpleEditor";
4957
+ WorkflowType["DesignEditor"] = "DesignEditor";
4958
+ WorkflowType["HandyEditor"] = "HandyEditor";
4959
+ })(exports.WorkflowType || (exports.WorkflowType = {}));
4464
4960
  (function (DatePeriod) {
4465
4961
  DatePeriod["All"] = "All";
4466
4962
  DatePeriod["Today"] = "Today";
4467
4963
  DatePeriod["Last7Days"] = "Last7Days";
4468
4964
  DatePeriod["Last30Days"] = "Last30Days";
4469
4965
  })(exports.DatePeriod || (exports.DatePeriod = {}));
4966
+ (function (ProjectProcessingStatus) {
4967
+ ProjectProcessingStatus["Pending"] = "Pending";
4968
+ ProjectProcessingStatus["InProgress"] = "InProgress";
4969
+ ProjectProcessingStatus["Completed"] = "Completed";
4970
+ ProjectProcessingStatus["Failed"] = "Failed";
4971
+ })(exports.ProjectProcessingStatus || (exports.ProjectProcessingStatus = {}));
4470
4972
  (function (ProjectItemResourceType) {
4471
4973
  ProjectItemResourceType["General"] = "General";
4472
4974
  ProjectItemResourceType["Preview"] = "Preview";
@@ -4489,12 +4991,6 @@
4489
4991
  RenderHiResScenarioOutputFlipMode["Vertical"] = "Vertical";
4490
4992
  RenderHiResScenarioOutputFlipMode["Both"] = "Both";
4491
4993
  })(exports.RenderHiResScenarioOutputFlipMode || (exports.RenderHiResScenarioOutputFlipMode = {}));
4492
- (function (ProjectProcessingStatus) {
4493
- ProjectProcessingStatus["Pending"] = "Pending";
4494
- ProjectProcessingStatus["InProgress"] = "InProgress";
4495
- ProjectProcessingStatus["Completed"] = "Completed";
4496
- ProjectProcessingStatus["Failed"] = "Failed";
4497
- })(exports.ProjectProcessingStatus || (exports.ProjectProcessingStatus = {}));
4498
4994
  (function (OrderDataItemValueType) {
4499
4995
  OrderDataItemValueType["PlainText"] = "PlainText";
4500
4996
  OrderDataItemValueType["CommaSeparatedList"] = "CommaSeparatedList";
@@ -4604,6 +5100,7 @@
4604
5100
  exports.ApiException = ApiException;
4605
5101
  exports.BuildInfoApiClient = BuildInfoApiClient;
4606
5102
  exports.CreateApiClientConfiguration = CreateApiClientConfiguration;
5103
+ exports.ProcessingPipelinesApiClient = ProcessingPipelinesApiClient;
4607
5104
  exports.ProductReferencesApiClient = ProductReferencesApiClient;
4608
5105
  exports.ProductSpecificationsApiClient = ProductSpecificationsApiClient;
4609
5106
  exports.ProjectsApiClient = ProjectsApiClient;