@aurigma/ng-storefront-api-client 2.5.1 → 2.6.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.
@@ -374,7 +374,7 @@
374
374
  return _this;
375
375
  }
376
376
  /**
377
- * Gets assembly build info
377
+ * Returns an assembly build info.
378
378
  * @return Success
379
379
  */
380
380
  BuildInfoApiClient.prototype.headInfo = function () {
@@ -437,7 +437,7 @@
437
437
  return rxjs.of(null);
438
438
  };
439
439
  /**
440
- * Gets assembly build info
440
+ * Returns an assembly build info.
441
441
  * @return Success
442
442
  */
443
443
  BuildInfoApiClient.prototype.getInfo = function () {
@@ -527,19 +527,18 @@
527
527
  return _this;
528
528
  }
529
529
  /**
530
- * Gets all storefront product references relevant to specified query parameters
531
- * @param storefrontId Storefront identifier
532
- * @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier
533
- * @param productSpecificationId (optional) Cusomer's Canvas product specification filter
534
- * @param skip (optional) Defines page start offset from beginning of sorted result list
535
- * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
536
- * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
537
- * @param search (optional) Search string for partial match
538
- * @param tenantId (optional) Tenant identifier
539
- * @param userId (optional) User identifier
530
+ * Returns all storefront product references relevant to the specified query parameters.
531
+ * @param storefrontId Storefront identifier.
532
+ * @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier.
533
+ * @param productSpecificationId (optional) Cusomer's Canvas product specification filter.
534
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
535
+ * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
536
+ * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
537
+ * @param search (optional) Search string for partial match.
538
+ * @param tenantId (optional) Tenant identifier.
540
539
  * @return Success
541
540
  */
542
- ProductReferencesApiClient.prototype.getAll = function (storefrontId, productReference, productSpecificationId, skip, take, sorting, search, tenantId, userId) {
541
+ ProductReferencesApiClient.prototype.getAll = function (storefrontId, productReference, productSpecificationId, skip, take, sorting, search, tenantId) {
543
542
  var _this = this;
544
543
  var url_ = this.baseUrl + "/api/storefront/v1/product-references?";
545
544
  if (storefrontId === undefined || storefrontId === null)
@@ -560,8 +559,6 @@
560
559
  url_ += "search=" + encodeURIComponent("" + search) + "&";
561
560
  if (tenantId !== undefined && tenantId !== null)
562
561
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
563
- if (userId !== undefined && userId !== null)
564
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
565
562
  url_ = url_.replace(/[?&]$/, "");
566
563
  var options_ = {
567
564
  observe: "response",
@@ -634,14 +631,13 @@
634
631
  return rxjs.of(null);
635
632
  };
636
633
  /**
637
- * Creates new storefront product reference
638
- * @param storefrontId Storefront identifier
639
- * @param tenantId (optional) Tenant identifier
640
- * @param userId (optional) User identifier
641
- * @param body (optional) Create operation parameters
634
+ * Creates a new storefront product reference.
635
+ * @param storefrontId Storefront identifier.
636
+ * @param tenantId (optional) Tenant identifier.
637
+ * @param body (optional) Create operation parameters.
642
638
  * @return Success
643
639
  */
644
- ProductReferencesApiClient.prototype.create = function (storefrontId, tenantId, userId, body) {
640
+ ProductReferencesApiClient.prototype.create = function (storefrontId, tenantId, body) {
645
641
  var _this = this;
646
642
  var url_ = this.baseUrl + "/api/storefront/v1/product-references?";
647
643
  if (storefrontId === undefined || storefrontId === null)
@@ -650,8 +646,6 @@
650
646
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
651
647
  if (tenantId !== undefined && tenantId !== null)
652
648
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
653
- if (userId !== undefined && userId !== null)
654
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
655
649
  url_ = url_.replace(/[?&]$/, "");
656
650
  var content_ = JSON.stringify(body);
657
651
  var options_ = {
@@ -734,14 +728,13 @@
734
728
  return rxjs.of(null);
735
729
  };
736
730
  /**
737
- * Gets storefront product reference
738
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
739
- * @param storefrontId Storefront identifier
740
- * @param tenantId (optional) Tenant identifier
741
- * @param userId (optional) User identifier
731
+ * Returns a storefront product reference.
732
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
733
+ * @param storefrontId Storefront identifier.
734
+ * @param tenantId (optional) Tenant identifier.
742
735
  * @return Success
743
736
  */
744
- ProductReferencesApiClient.prototype.get = function (reference, storefrontId, tenantId, userId) {
737
+ ProductReferencesApiClient.prototype.get = function (reference, storefrontId, tenantId) {
745
738
  var _this = this;
746
739
  var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}?";
747
740
  if (reference === undefined || reference === null)
@@ -753,8 +746,6 @@
753
746
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
754
747
  if (tenantId !== undefined && tenantId !== null)
755
748
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
756
- if (userId !== undefined && userId !== null)
757
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
758
749
  url_ = url_.replace(/[?&]$/, "");
759
750
  var options_ = {
760
751
  observe: "response",
@@ -834,14 +825,13 @@
834
825
  return rxjs.of(null);
835
826
  };
836
827
  /**
837
- * Deletes storefront product reference
838
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
839
- * @param storefrontId Storefront identifier
840
- * @param tenantId (optional) Tenant identifier
841
- * @param userId (optional) User identifier
828
+ * Deletes the storefront product reference.
829
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
830
+ * @param storefrontId Storefront identifier.
831
+ * @param tenantId (optional) Tenant identifier.
842
832
  * @return Success
843
833
  */
844
- ProductReferencesApiClient.prototype.delete = function (reference, storefrontId, tenantId, userId) {
834
+ ProductReferencesApiClient.prototype.delete = function (reference, storefrontId, tenantId) {
845
835
  var _this = this;
846
836
  var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}?";
847
837
  if (reference === undefined || reference === null)
@@ -853,8 +843,6 @@
853
843
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
854
844
  if (tenantId !== undefined && tenantId !== null)
855
845
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
856
- if (userId !== undefined && userId !== null)
857
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
858
846
  url_ = url_.replace(/[?&]$/, "");
859
847
  var options_ = {
860
848
  observe: "response",
@@ -934,14 +922,13 @@
934
922
  return rxjs.of(null);
935
923
  };
936
924
  /**
937
- * Gets product specification by storefront product reference
938
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
939
- * @param storefrontId Storefront identifier
940
- * @param tenantId (optional) Tenant identifier
941
- * @param userId (optional) User identifier
925
+ * Returns a product specification by the storefront product reference.
926
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
927
+ * @param storefrontId Storefront identifier.
928
+ * @param tenantId (optional) Tenant identifier.
942
929
  * @return Success
943
930
  */
944
- ProductReferencesApiClient.prototype.getProductSpecification = function (reference, storefrontId, tenantId, userId) {
931
+ ProductReferencesApiClient.prototype.getProductSpecification = function (reference, storefrontId, tenantId) {
945
932
  var _this = this;
946
933
  var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-specification?";
947
934
  if (reference === undefined || reference === null)
@@ -953,8 +940,6 @@
953
940
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
954
941
  if (tenantId !== undefined && tenantId !== null)
955
942
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
956
- if (userId !== undefined && userId !== null)
957
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
958
943
  url_ = url_.replace(/[?&]$/, "");
959
944
  var options_ = {
960
945
  observe: "response",
@@ -1034,14 +1019,13 @@
1034
1019
  return rxjs.of(null);
1035
1020
  };
1036
1021
  /**
1037
- * Gets product configuration information by storefront product reference
1038
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
1039
- * @param storefrontId Storefront identifier
1040
- * @param tenantId (optional) Tenant identifier
1041
- * @param userId (optional) User identifier
1022
+ * Returns a product personalization workflow configuration by storefront product reference.
1023
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
1024
+ * @param storefrontId Storefront identifier.
1025
+ * @param tenantId (optional) Tenant identifier.
1042
1026
  * @return Success
1043
1027
  */
1044
- ProductReferencesApiClient.prototype.getProductConfig = function (reference, storefrontId, tenantId, userId) {
1028
+ ProductReferencesApiClient.prototype.getProductConfig = function (reference, storefrontId, tenantId) {
1045
1029
  var _this = this;
1046
1030
  var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-config?";
1047
1031
  if (reference === undefined || reference === null)
@@ -1053,8 +1037,6 @@
1053
1037
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1054
1038
  if (tenantId !== undefined && tenantId !== null)
1055
1039
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1056
- if (userId !== undefined && userId !== null)
1057
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1058
1040
  url_ = url_.replace(/[?&]$/, "");
1059
1041
  var options_ = {
1060
1042
  observe: "response",
@@ -1156,16 +1138,15 @@
1156
1138
  return _this;
1157
1139
  }
1158
1140
  /**
1159
- * Gets all product specifications relevant to specified query parameters
1160
- * @param skip (optional) Defines page start offset from beginning of sorted result list
1161
- * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
1162
- * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
1163
- * @param search (optional) Search string for partial match
1164
- * @param tenantId (optional) Tenant identifier
1165
- * @param userId (optional) User identifier
1141
+ * Returns all product specifications, relevant to the specified query parameters.
1142
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
1143
+ * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
1144
+ * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
1145
+ * @param search (optional) Search string for partial match.
1146
+ * @param tenantId (optional) Tenant identifier.
1166
1147
  * @return Success
1167
1148
  */
1168
- ProductSpecificationsApiClient.prototype.getAll = function (skip, take, sorting, search, tenantId, userId) {
1149
+ ProductSpecificationsApiClient.prototype.getAll = function (skip, take, sorting, search, tenantId) {
1169
1150
  var _this = this;
1170
1151
  var url_ = this.baseUrl + "/api/storefront/v1/product-specifications?";
1171
1152
  if (skip !== undefined && skip !== null)
@@ -1178,8 +1159,6 @@
1178
1159
  url_ += "search=" + encodeURIComponent("" + search) + "&";
1179
1160
  if (tenantId !== undefined && tenantId !== null)
1180
1161
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1181
- if (userId !== undefined && userId !== null)
1182
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1183
1162
  url_ = url_.replace(/[?&]$/, "");
1184
1163
  var options_ = {
1185
1164
  observe: "response",
@@ -1252,13 +1231,12 @@
1252
1231
  return rxjs.of(null);
1253
1232
  };
1254
1233
  /**
1255
- * Gets product specification by id
1256
- * @param id Product specification identifier
1257
- * @param tenantId (optional) Tenant identifier
1258
- * @param userId (optional) User identifier
1234
+ * Returns a product specification by identifier.
1235
+ * @param id Product specification identifier.
1236
+ * @param tenantId (optional) Tenant identifier.
1259
1237
  * @return Success
1260
1238
  */
1261
- ProductSpecificationsApiClient.prototype.get = function (id, tenantId, userId) {
1239
+ ProductSpecificationsApiClient.prototype.get = function (id, tenantId) {
1262
1240
  var _this = this;
1263
1241
  var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}?";
1264
1242
  if (id === undefined || id === null)
@@ -1266,8 +1244,6 @@
1266
1244
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
1267
1245
  if (tenantId !== undefined && tenantId !== null)
1268
1246
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1269
- if (userId !== undefined && userId !== null)
1270
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1271
1247
  url_ = url_.replace(/[?&]$/, "");
1272
1248
  var options_ = {
1273
1249
  observe: "response",
@@ -1347,13 +1323,12 @@
1347
1323
  return rxjs.of(null);
1348
1324
  };
1349
1325
  /**
1350
- * Gets product configuration description by product specification id
1351
- * @param id Product specification identifier
1352
- * @param tenantId (optional) Tenant identifier
1353
- * @param userId (optional) User identifier
1326
+ * Returns a product personlization workflow configuration by product specification identifier.
1327
+ * @param id Product specification identifier.
1328
+ * @param tenantId (optional) Tenant identifier.
1354
1329
  * @return Success
1355
1330
  */
1356
- ProductSpecificationsApiClient.prototype.getConfiguration = function (id, tenantId, userId) {
1331
+ ProductSpecificationsApiClient.prototype.getConfiguration = function (id, tenantId) {
1357
1332
  var _this = this;
1358
1333
  var url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}/config?";
1359
1334
  if (id === undefined || id === null)
@@ -1361,8 +1336,6 @@
1361
1336
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
1362
1337
  if (tenantId !== undefined && tenantId !== null)
1363
1338
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1364
- if (userId !== undefined && userId !== null)
1365
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1366
1339
  url_ = url_.replace(/[?&]$/, "");
1367
1340
  var options_ = {
1368
1341
  observe: "response",
@@ -1464,21 +1437,20 @@
1464
1437
  return _this;
1465
1438
  }
1466
1439
  /**
1467
- * Gets all projects relevant to specified query parameters
1468
- * @param storefrontId Storefront identifier
1469
- * @param ownerId (optional) Project owner (storefront user id) filter
1470
- * @param productReference (optional) Product reference filter
1471
- * @param status (optional) Project status filter
1472
- * @param datePeriod (optional) Project date period filter
1473
- * @param skip (optional) Defines page start offset from beginning of sorted result list
1474
- * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
1475
- * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
1476
- * @param search (optional) Search string for partial match
1477
- * @param tenantId (optional) Tenant identifier
1478
- * @param userId (optional) User identifier
1440
+ * Returns all projects, relevant to the specified query parameters.
1441
+ * @param storefrontId Storefront identifier.
1442
+ * @param ownerId (optional) Project owner (storefront user id) filter.
1443
+ * @param productReference (optional) Product reference filter.
1444
+ * @param status (optional) Project status filter.
1445
+ * @param datePeriod (optional) Project date period filter.
1446
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
1447
+ * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
1448
+ * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
1449
+ * @param search (optional) Search string for partial match.
1450
+ * @param tenantId (optional) Tenant identifier.
1479
1451
  * @return Success
1480
1452
  */
1481
- ProjectsApiClient.prototype.getAll = function (storefrontId, ownerId, productReference, status, datePeriod, skip, take, sorting, search, tenantId, userId) {
1453
+ ProjectsApiClient.prototype.getAll = function (storefrontId, ownerId, productReference, status, datePeriod, skip, take, sorting, search, tenantId) {
1482
1454
  var _this = this;
1483
1455
  var url_ = this.baseUrl + "/api/storefront/v1/projects?";
1484
1456
  if (storefrontId === undefined || storefrontId === null)
@@ -1505,8 +1477,6 @@
1505
1477
  url_ += "search=" + encodeURIComponent("" + search) + "&";
1506
1478
  if (tenantId !== undefined && tenantId !== null)
1507
1479
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1508
- if (userId !== undefined && userId !== null)
1509
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1510
1480
  url_ = url_.replace(/[?&]$/, "");
1511
1481
  var options_ = {
1512
1482
  observe: "response",
@@ -1579,14 +1549,13 @@
1579
1549
  return rxjs.of(null);
1580
1550
  };
1581
1551
  /**
1582
- * Creates new project
1583
- * @param storefrontId Storefront identifier
1584
- * @param tenantId (optional) Tenant identifier
1585
- * @param userId (optional) User identifier
1586
- * @param body (optional) Create operation parameters
1552
+ * Creates a new project.
1553
+ * @param storefrontId Storefront identifier.
1554
+ * @param tenantId (optional) Tenant identifier.
1555
+ * @param body (optional) Create operation parameters.
1587
1556
  * @return Success
1588
1557
  */
1589
- ProjectsApiClient.prototype.create = function (storefrontId, tenantId, userId, body) {
1558
+ ProjectsApiClient.prototype.create = function (storefrontId, tenantId, body) {
1590
1559
  var _this = this;
1591
1560
  var url_ = this.baseUrl + "/api/storefront/v1/projects?";
1592
1561
  if (storefrontId === undefined || storefrontId === null)
@@ -1595,8 +1564,6 @@
1595
1564
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1596
1565
  if (tenantId !== undefined && tenantId !== null)
1597
1566
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1598
- if (userId !== undefined && userId !== null)
1599
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1600
1567
  url_ = url_.replace(/[?&]$/, "");
1601
1568
  var content_ = JSON.stringify(body);
1602
1569
  var options_ = {
@@ -1679,13 +1646,12 @@
1679
1646
  return rxjs.of(null);
1680
1647
  };
1681
1648
  /**
1682
- * Gets project by id
1683
- * @param id Project identifier
1684
- * @param tenantId (optional) Tenant identifier
1685
- * @param userId (optional) User identifier
1649
+ * Returns a project by identifier.
1650
+ * @param id Project identifier.
1651
+ * @param tenantId (optional) Tenant identifier.
1686
1652
  * @return Success
1687
1653
  */
1688
- ProjectsApiClient.prototype.get = function (id, tenantId, userId) {
1654
+ ProjectsApiClient.prototype.get = function (id, tenantId) {
1689
1655
  var _this = this;
1690
1656
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}?";
1691
1657
  if (id === undefined || id === null)
@@ -1693,8 +1659,6 @@
1693
1659
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
1694
1660
  if (tenantId !== undefined && tenantId !== null)
1695
1661
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1696
- if (userId !== undefined && userId !== null)
1697
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1698
1662
  url_ = url_.replace(/[?&]$/, "");
1699
1663
  var options_ = {
1700
1664
  observe: "response",
@@ -1774,13 +1738,12 @@
1774
1738
  return rxjs.of(null);
1775
1739
  };
1776
1740
  /**
1777
- * Gets available project transitions
1778
- * @param id Project identifier
1779
- * @param tenantId (optional) Tenant identifier
1780
- * @param userId (optional) User identifier
1741
+ * Returns all available status transitions for a project.
1742
+ * @param id Project identifier.
1743
+ * @param tenantId (optional) Tenant identifier.
1781
1744
  * @return Success
1782
1745
  */
1783
- ProjectsApiClient.prototype.getAvailableTransitions = function (id, tenantId, userId) {
1746
+ ProjectsApiClient.prototype.getAvailableTransitions = function (id, tenantId) {
1784
1747
  var _this = this;
1785
1748
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/transitions?";
1786
1749
  if (id === undefined || id === null)
@@ -1788,8 +1751,6 @@
1788
1751
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
1789
1752
  if (tenantId !== undefined && tenantId !== null)
1790
1753
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1791
- if (userId !== undefined && userId !== null)
1792
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1793
1754
  url_ = url_.replace(/[?&]$/, "");
1794
1755
  var options_ = {
1795
1756
  observe: "response",
@@ -1883,14 +1844,13 @@
1883
1844
  return rxjs.of(null);
1884
1845
  };
1885
1846
  /**
1886
- * Changes project status
1847
+ * Changes the project status.
1887
1848
  * @param id Project identifier
1888
- * @param transition Transition identifying name
1889
- * @param tenantId (optional) Tenant identifier
1890
- * @param userId (optional) User identifier
1849
+ * @param transition Transition identifying name.
1850
+ * @param tenantId (optional) Tenant identifier.
1891
1851
  * @return Success
1892
1852
  */
1893
- ProjectsApiClient.prototype.changeStatus = function (id, transition, tenantId, userId) {
1853
+ ProjectsApiClient.prototype.changeStatus = function (id, transition, tenantId) {
1894
1854
  var _this = this;
1895
1855
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/transitions/{transition}?";
1896
1856
  if (id === undefined || id === null)
@@ -1901,8 +1861,6 @@
1901
1861
  url_ = url_.replace("{transition}", encodeURIComponent("" + transition));
1902
1862
  if (tenantId !== undefined && tenantId !== null)
1903
1863
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1904
- if (userId !== undefined && userId !== null)
1905
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
1906
1864
  url_ = url_.replace(/[?&]$/, "");
1907
1865
  var options_ = {
1908
1866
  observe: "response",
@@ -1996,14 +1954,13 @@
1996
1954
  return rxjs.of(null);
1997
1955
  };
1998
1956
  /**
1999
- * Force changes project status
2000
- * @param id Project identifier
2001
- * @param status Project status code
2002
- * @param tenantId (optional) Tenant identifier
2003
- * @param userId (optional) User identifier
1957
+ * Changes the project status forcibly without a proper transition.
1958
+ * @param id Project identifier.
1959
+ * @param status Project status code.
1960
+ * @param tenantId (optional) Tenant identifier.
2004
1961
  * @return Success
2005
1962
  */
2006
- ProjectsApiClient.prototype.forceStatus = function (id, status, tenantId, userId) {
1963
+ ProjectsApiClient.prototype.forceStatus = function (id, status, tenantId) {
2007
1964
  var _this = this;
2008
1965
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/statuses/{status}?";
2009
1966
  if (id === undefined || id === null)
@@ -2014,8 +1971,6 @@
2014
1971
  url_ = url_.replace("{status}", encodeURIComponent("" + status));
2015
1972
  if (tenantId !== undefined && tenantId !== null)
2016
1973
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2017
- if (userId !== undefined && userId !== null)
2018
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2019
1974
  url_ = url_.replace(/[?&]$/, "");
2020
1975
  var options_ = {
2021
1976
  observe: "response",
@@ -2102,18 +2057,15 @@
2102
2057
  return rxjs.of(null);
2103
2058
  };
2104
2059
  /**
2105
- * Gets all project statuses
2106
- * @param tenantId (optional) Tenant identifier
2107
- * @param userId (optional) User identifier
2060
+ * Returns a list of all existing project statuses.
2061
+ * @param tenantId (optional) Tenant identifier.
2108
2062
  * @return Success
2109
2063
  */
2110
- ProjectsApiClient.prototype.getAllStatuses = function (tenantId, userId) {
2064
+ ProjectsApiClient.prototype.getAllStatuses = function (tenantId) {
2111
2065
  var _this = this;
2112
2066
  var url_ = this.baseUrl + "/api/storefront/v1/projects/statuses?";
2113
2067
  if (tenantId !== undefined && tenantId !== null)
2114
2068
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2115
- if (userId !== undefined && userId !== null)
2116
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2117
2069
  url_ = url_.replace(/[?&]$/, "");
2118
2070
  var options_ = {
2119
2071
  observe: "response",
@@ -2186,18 +2138,15 @@
2186
2138
  return rxjs.of(null);
2187
2139
  };
2188
2140
  /**
2189
- * Gets all project transitions
2190
- * @param tenantId (optional) Tenant identifier
2191
- * @param userId (optional) User identifier
2141
+ * Returns a list of all existing project status transitions.
2142
+ * @param tenantId (optional) Tenant identifier.
2192
2143
  * @return Success
2193
2144
  */
2194
- ProjectsApiClient.prototype.getAllTransitions = function (tenantId, userId) {
2145
+ ProjectsApiClient.prototype.getAllTransitions = function (tenantId) {
2195
2146
  var _this = this;
2196
2147
  var url_ = this.baseUrl + "/api/storefront/v1/projects/transitions?";
2197
2148
  if (tenantId !== undefined && tenantId !== null)
2198
2149
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2199
- if (userId !== undefined && userId !== null)
2200
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2201
2150
  url_ = url_.replace(/[?&]$/, "");
2202
2151
  var options_ = {
2203
2152
  observe: "response",
@@ -2270,15 +2219,14 @@
2270
2219
  return rxjs.of(null);
2271
2220
  };
2272
2221
  /**
2273
- * Gets project pdf url
2274
- * @param id Project unique identifier
2275
- * @param designUserId User identifier
2276
- * @param designId Design identifier
2277
- * @param tenantId (optional) Tenant identifier
2278
- * @param userId (optional) User identifier
2222
+ * Returns an url to download project print file.
2223
+ * @param id Project identifier.
2224
+ * @param designUserId Design owner identifier.
2225
+ * @param designId Design identifier.
2226
+ * @param tenantId (optional) Tenant identifier.
2279
2227
  * @return Success
2280
2228
  */
2281
- ProjectsApiClient.prototype.getProjectPdfUrl = function (id, designUserId, designId, tenantId, userId) {
2229
+ ProjectsApiClient.prototype.getProjectPdfUrl = function (id, designUserId, designId, tenantId) {
2282
2230
  var _this = this;
2283
2231
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/project-pdf?";
2284
2232
  if (id === undefined || id === null)
@@ -2294,8 +2242,6 @@
2294
2242
  url_ += "designId=" + encodeURIComponent("" + designId) + "&";
2295
2243
  if (tenantId !== undefined && tenantId !== null)
2296
2244
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2297
- if (userId !== undefined && userId !== null)
2298
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2299
2245
  url_ = url_.replace(/[?&]$/, "");
2300
2246
  var options_ = {
2301
2247
  observe: "response",
@@ -2368,16 +2314,15 @@
2368
2314
  return rxjs.of(null);
2369
2315
  };
2370
2316
  /**
2371
- * Gets project pdf files in zip archive
2372
- * @param id Project unique identifier
2373
- * @param designUserId User identifier
2374
- * @param designId Design identifier
2375
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with proper filename supplied (default value is 'false')
2376
- * @param tenantId (optional) Tenant identifier
2377
- * @param userId (optional) User identifier
2317
+ * Returns an archive file, which contains all project print files.
2318
+ * @param id Project identifier.
2319
+ * @param designUserId Design owner identifier.
2320
+ * @param designId Design identifier.
2321
+ * @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
2322
+ * @param tenantId (optional) Tenant identifier.
2378
2323
  * @return Success
2379
2324
  */
2380
- ProjectsApiClient.prototype.getProjectPdfZip = function (id, designUserId, designId, attachment, tenantId, userId) {
2325
+ ProjectsApiClient.prototype.getProjectPdfZip = function (id, designUserId, designId, attachment, tenantId) {
2381
2326
  var _this = this;
2382
2327
  var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/project-pdf-zip?";
2383
2328
  if (id === undefined || id === null)
@@ -2395,8 +2340,6 @@
2395
2340
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
2396
2341
  if (tenantId !== undefined && tenantId !== null)
2397
2342
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2398
- if (userId !== undefined && userId !== null)
2399
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2400
2343
  url_ = url_.replace(/[?&]$/, "");
2401
2344
  var options_ = {
2402
2345
  observe: "response",
@@ -2475,16 +2418,19 @@
2475
2418
  return rxjs.of(null);
2476
2419
  };
2477
2420
  /**
2478
- * Gets project order data from ecommerce system
2479
- * @param id Project identifier
2421
+ * Returns an order description from the ecommerce system for the specified project.
2422
+ * @param id Project identifier.
2423
+ * @param tenantId (optional) Tenant identifier.
2480
2424
  * @return Success
2481
2425
  */
2482
- ProjectsApiClient.prototype.getProjectOrder = function (id) {
2426
+ ProjectsApiClient.prototype.getProjectOrder = function (id, tenantId) {
2483
2427
  var _this = this;
2484
- var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/order";
2428
+ var url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/order?";
2485
2429
  if (id === undefined || id === null)
2486
2430
  throw new Error("The parameter 'id' must be defined.");
2487
2431
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2432
+ if (tenantId !== undefined && tenantId !== null)
2433
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2488
2434
  url_ = url_.replace(/[?&]$/, "");
2489
2435
  var options_ = {
2490
2436
  observe: "response",
@@ -2586,17 +2532,16 @@
2586
2532
  return _this;
2587
2533
  }
2588
2534
  /**
2589
- * Gets all storefronts relevant to specified query parameters
2590
- * @param types (optional) Storefront type filter
2591
- * @param skip (optional) Defines page start offset from beginning of sorted result list
2592
- * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
2593
- * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
2594
- * @param search (optional) Search string for partial match
2595
- * @param tenantId (optional) Tenant identifier
2596
- * @param userId (optional) User identifier
2535
+ * Returns all storefronts, relevant to the specified query parameters.
2536
+ * @param types (optional) Storefront type filter.
2537
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
2538
+ * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
2539
+ * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
2540
+ * @param search (optional) Search string for partial match.
2541
+ * @param tenantId (optional) Tenant identifier.
2597
2542
  * @return Success
2598
2543
  */
2599
- StorefrontsApiClient.prototype.getAll = function (types, skip, take, sorting, search, tenantId, userId) {
2544
+ StorefrontsApiClient.prototype.getAll = function (types, skip, take, sorting, search, tenantId) {
2600
2545
  var _this = this;
2601
2546
  var url_ = this.baseUrl + "/api/storefront/v1/storefronts?";
2602
2547
  if (types !== undefined && types !== null)
@@ -2611,8 +2556,6 @@
2611
2556
  url_ += "search=" + encodeURIComponent("" + search) + "&";
2612
2557
  if (tenantId !== undefined && tenantId !== null)
2613
2558
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2614
- if (userId !== undefined && userId !== null)
2615
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2616
2559
  url_ = url_.replace(/[?&]$/, "");
2617
2560
  var options_ = {
2618
2561
  observe: "response",
@@ -2685,13 +2628,12 @@
2685
2628
  return rxjs.of(null);
2686
2629
  };
2687
2630
  /**
2688
- * Gets storefront
2689
- * @param id Storefront identifier
2690
- * @param tenantId (optional) Tenant identifier
2691
- * @param userId (optional) User identifier
2631
+ * Returns a storefront by identifier.
2632
+ * @param id Storefront identifier.
2633
+ * @param tenantId (optional) Tenant identifier.
2692
2634
  * @return Success
2693
2635
  */
2694
- StorefrontsApiClient.prototype.get = function (id, tenantId, userId) {
2636
+ StorefrontsApiClient.prototype.get = function (id, tenantId) {
2695
2637
  var _this = this;
2696
2638
  var url_ = this.baseUrl + "/api/storefront/v1/storefronts/{id}?";
2697
2639
  if (id === undefined || id === null)
@@ -2699,8 +2641,6 @@
2699
2641
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2700
2642
  if (tenantId !== undefined && tenantId !== null)
2701
2643
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2702
- if (userId !== undefined && userId !== null)
2703
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2704
2644
  url_ = url_.replace(/[?&]$/, "");
2705
2645
  var options_ = {
2706
2646
  observe: "response",
@@ -2802,18 +2742,17 @@
2802
2742
  return _this;
2803
2743
  }
2804
2744
  /**
2805
- * Gets all storefront users relevant to specified query parameters
2806
- * @param storefrontId Storefront identifier
2807
- * @param storefrontUserId (optional) Storefront user identifier
2808
- * @param skip (optional) Defines page start offset from beginning of sorted result list
2809
- * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
2810
- * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
2811
- * @param search (optional) Search string for partial match
2812
- * @param tenantId (optional) Tenant identifier
2813
- * @param userId (optional) User identifier
2745
+ * Returns all storefront users, relevant to the specified query parameters.
2746
+ * @param storefrontId Storefront identifier.
2747
+ * @param storefrontUserId (optional) Storefront user identifier.
2748
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
2749
+ * @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
2750
+ * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
2751
+ * @param search (optional) Search string for partial match.
2752
+ * @param tenantId (optional) Tenant identifier.
2814
2753
  * @return Success
2815
2754
  */
2816
- StorefrontUsersApiClient.prototype.getAll = function (storefrontId, storefrontUserId, skip, take, sorting, search, tenantId, userId) {
2755
+ StorefrontUsersApiClient.prototype.getAll = function (storefrontId, storefrontUserId, skip, take, sorting, search, tenantId) {
2817
2756
  var _this = this;
2818
2757
  var url_ = this.baseUrl + "/api/storefront/v1/storefront-users?";
2819
2758
  if (storefrontId === undefined || storefrontId === null)
@@ -2832,8 +2771,6 @@
2832
2771
  url_ += "search=" + encodeURIComponent("" + search) + "&";
2833
2772
  if (tenantId !== undefined && tenantId !== null)
2834
2773
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2835
- if (userId !== undefined && userId !== null)
2836
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2837
2774
  url_ = url_.replace(/[?&]$/, "");
2838
2775
  var options_ = {
2839
2776
  observe: "response",
@@ -2906,14 +2843,13 @@
2906
2843
  return rxjs.of(null);
2907
2844
  };
2908
2845
  /**
2909
- * Creates new storefront user
2910
- * @param storefrontId Storefront identifier
2911
- * @param tenantId (optional) Tenant identifier
2912
- * @param userId (optional) User identifier
2913
- * @param body (optional) Create operation parameters
2846
+ * Creates a new storefront user.
2847
+ * @param storefrontId Storefront identifier.
2848
+ * @param tenantId (optional) Tenant identifier.
2849
+ * @param body (optional) Operation parameters.
2914
2850
  * @return Success
2915
2851
  */
2916
- StorefrontUsersApiClient.prototype.create = function (storefrontId, tenantId, userId, body) {
2852
+ StorefrontUsersApiClient.prototype.create = function (storefrontId, tenantId, body) {
2917
2853
  var _this = this;
2918
2854
  var url_ = this.baseUrl + "/api/storefront/v1/storefront-users?";
2919
2855
  if (storefrontId === undefined || storefrontId === null)
@@ -2922,8 +2858,6 @@
2922
2858
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
2923
2859
  if (tenantId !== undefined && tenantId !== null)
2924
2860
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2925
- if (userId !== undefined && userId !== null)
2926
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
2927
2861
  url_ = url_.replace(/[?&]$/, "");
2928
2862
  var content_ = JSON.stringify(body);
2929
2863
  var options_ = {
@@ -2981,6 +2915,13 @@
2981
2915
  return rxjs.of(result201);
2982
2916
  }));
2983
2917
  }
2918
+ else if (status === 409) {
2919
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2920
+ var result409 = null;
2921
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
2922
+ return throwException("Conflict", status, _responseText, _headers, result409);
2923
+ }));
2924
+ }
2984
2925
  else if (status === 401) {
2985
2926
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
2986
2927
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -2999,14 +2940,13 @@
2999
2940
  return rxjs.of(null);
3000
2941
  };
3001
2942
  /**
3002
- * Gets storefront user by id
3003
- * @param id Storefront user identifier
3004
- * @param storefrontId Storefront identifier
3005
- * @param tenantId (optional) Tenant identifier
3006
- * @param userId (optional) User identifier
2943
+ * Returns a storefront user by identifier.
2944
+ * @param id Storefront user identifier.
2945
+ * @param storefrontId Storefront identifier.
2946
+ * @param tenantId (optional) Tenant identifier.
3007
2947
  * @return Success
3008
2948
  */
3009
- StorefrontUsersApiClient.prototype.get = function (id, storefrontId, tenantId, userId) {
2949
+ StorefrontUsersApiClient.prototype.get = function (id, storefrontId, tenantId) {
3010
2950
  var _this = this;
3011
2951
  var url_ = this.baseUrl + "/api/storefront/v1/storefront-users/{id}?";
3012
2952
  if (id === undefined || id === null)
@@ -3018,8 +2958,6 @@
3018
2958
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
3019
2959
  if (tenantId !== undefined && tenantId !== null)
3020
2960
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3021
- if (userId !== undefined && userId !== null)
3022
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
3023
2961
  url_ = url_.replace(/[?&]$/, "");
3024
2962
  var options_ = {
3025
2963
  observe: "response",
@@ -3099,14 +3037,110 @@
3099
3037
  return rxjs.of(null);
3100
3038
  };
3101
3039
  /**
3102
- * Merges anonymous storefront user data to regular storefront user account
3103
- * @param storefrontId Storefront identifier
3104
- * @param tenantId (optional) Tenant identifier
3105
- * @param userId (optional) User identifier
3106
- * @param body (optional) Merge operation parameters
3040
+ * Registers a storefront user with the specified identifier.
3041
+ * @param storefrontId Storefront identifier.
3042
+ * @param tenantId (optional) Tenant identifier.
3043
+ * @param body (optional) Operation parameters.
3044
+ * @return Success
3045
+ */
3046
+ StorefrontUsersApiClient.prototype.register = function (storefrontId, tenantId, body) {
3047
+ var _this = this;
3048
+ var url_ = this.baseUrl + "/api/storefront/v1/storefront-users/register?";
3049
+ if (storefrontId === undefined || storefrontId === null)
3050
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
3051
+ else
3052
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
3053
+ if (tenantId !== undefined && tenantId !== null)
3054
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3055
+ url_ = url_.replace(/[?&]$/, "");
3056
+ var content_ = JSON.stringify(body);
3057
+ var options_ = {
3058
+ body: content_,
3059
+ observe: "response",
3060
+ responseType: "blob",
3061
+ headers: new i1.HttpHeaders({
3062
+ "Content-Type": "application/json-patch+json",
3063
+ "Accept": "text/plain"
3064
+ })
3065
+ };
3066
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3067
+ return _this.http.request("post", url_, transformedOptions_);
3068
+ })).pipe(operators.mergeMap(function (response_) {
3069
+ return _this.transformResult(url_, response_, function (r) { return _this.processRegister(r); });
3070
+ })).pipe(operators.catchError(function (response_) {
3071
+ if (response_ instanceof i1.HttpResponseBase) {
3072
+ try {
3073
+ return _this.transformResult(url_, response_, function (r) { return _this.processRegister(r); });
3074
+ }
3075
+ catch (e) {
3076
+ return rxjs.throwError(e);
3077
+ }
3078
+ }
3079
+ else
3080
+ return rxjs.throwError(response_);
3081
+ }));
3082
+ };
3083
+ StorefrontUsersApiClient.prototype.processRegister = function (response) {
3084
+ var e_28, _a;
3085
+ var _this = this;
3086
+ var status = response.status;
3087
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3088
+ response.error instanceof Blob ? response.error : undefined;
3089
+ var _headers = {};
3090
+ if (response.headers) {
3091
+ try {
3092
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3093
+ var key = _c.value;
3094
+ _headers[key] = response.headers.get(key);
3095
+ }
3096
+ }
3097
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
3098
+ finally {
3099
+ try {
3100
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3101
+ }
3102
+ finally { if (e_28) throw e_28.error; }
3103
+ }
3104
+ }
3105
+ if (status === 200) {
3106
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3107
+ var result200 = null;
3108
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3109
+ return rxjs.of(result200);
3110
+ }));
3111
+ }
3112
+ else if (status === 409) {
3113
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3114
+ var result409 = null;
3115
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3116
+ return throwException("Conflict", status, _responseText, _headers, result409);
3117
+ }));
3118
+ }
3119
+ else if (status === 401) {
3120
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3121
+ return throwException("Unauthorized", status, _responseText, _headers);
3122
+ }));
3123
+ }
3124
+ else if (status === 403) {
3125
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3126
+ return throwException("Forbidden", status, _responseText, _headers);
3127
+ }));
3128
+ }
3129
+ else if (status !== 200 && status !== 204) {
3130
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3131
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3132
+ }));
3133
+ }
3134
+ return rxjs.of(null);
3135
+ };
3136
+ /**
3137
+ * Transfers all existing data for the anonymous storefront user to the selected regular storefront user account.
3138
+ * @param storefrontId Storefront identifier.
3139
+ * @param tenantId (optional) Tenant identifier.
3140
+ * @param body (optional) Operation parameters.
3107
3141
  * @return Success
3108
3142
  */
3109
- StorefrontUsersApiClient.prototype.mergeAnonymous = function (storefrontId, tenantId, userId, body) {
3143
+ StorefrontUsersApiClient.prototype.mergeAnonymous = function (storefrontId, tenantId, body) {
3110
3144
  var _this = this;
3111
3145
  var url_ = this.baseUrl + "/api/storefront/v1/storefront-users/merge-anonymous?";
3112
3146
  if (storefrontId === undefined || storefrontId === null)
@@ -3115,8 +3149,6 @@
3115
3149
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
3116
3150
  if (tenantId !== undefined && tenantId !== null)
3117
3151
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3118
- if (userId !== undefined && userId !== null)
3119
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
3120
3152
  url_ = url_.replace(/[?&]$/, "");
3121
3153
  var content_ = JSON.stringify(body);
3122
3154
  var options_ = {
@@ -3145,7 +3177,7 @@
3145
3177
  }));
3146
3178
  };
3147
3179
  StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
3148
- var e_28, _a;
3180
+ var e_29, _a;
3149
3181
  var _this = this;
3150
3182
  var status = response.status;
3151
3183
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3158,12 +3190,12 @@
3158
3190
  _headers[key] = response.headers.get(key);
3159
3191
  }
3160
3192
  }
3161
- catch (e_28_1) { e_28 = { error: e_28_1 }; }
3193
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
3162
3194
  finally {
3163
3195
  try {
3164
3196
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3165
3197
  }
3166
- finally { if (e_28) throw e_28.error; }
3198
+ finally { if (e_29) throw e_29.error; }
3167
3199
  }
3168
3200
  }
3169
3201
  if (status === 200) {
@@ -3203,14 +3235,13 @@
3203
3235
  return rxjs.of(null);
3204
3236
  };
3205
3237
  /**
3206
- * Gets storefront user token
3207
- * @param storefrontUserId Storefront user identifier
3208
- * @param storefrontId Storefront identifier
3209
- * @param tenantId (optional) Tenant identifier
3210
- * @param userId (optional) User identifier
3238
+ * Returns an API access token for the specified storefront user.
3239
+ * @param storefrontUserId Storefront user identifier.
3240
+ * @param storefrontId Storefront identifier.
3241
+ * @param tenantId (optional) Tenant identifier.
3211
3242
  * @return Success
3212
3243
  */
3213
- StorefrontUsersApiClient.prototype.getToken = function (storefrontUserId, storefrontId, tenantId, userId) {
3244
+ StorefrontUsersApiClient.prototype.getToken = function (storefrontUserId, storefrontId, tenantId) {
3214
3245
  var _this = this;
3215
3246
  var url_ = this.baseUrl + "/api/storefront/v1/storefront-users/token?";
3216
3247
  if (storefrontUserId === undefined || storefrontUserId === null)
@@ -3223,13 +3254,13 @@
3223
3254
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
3224
3255
  if (tenantId !== undefined && tenantId !== null)
3225
3256
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3226
- if (userId !== undefined && userId !== null)
3227
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
3228
3257
  url_ = url_.replace(/[?&]$/, "");
3229
3258
  var options_ = {
3230
3259
  observe: "response",
3231
3260
  responseType: "blob",
3232
- headers: new i1.HttpHeaders({})
3261
+ headers: new i1.HttpHeaders({
3262
+ "Accept": "text/plain"
3263
+ })
3233
3264
  };
3234
3265
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3235
3266
  return _this.http.request("get", url_, transformedOptions_);
@@ -3249,7 +3280,7 @@
3249
3280
  }));
3250
3281
  };
3251
3282
  StorefrontUsersApiClient.prototype.processGetToken = function (response) {
3252
- var e_29, _a;
3283
+ var e_30, _a;
3253
3284
  var _this = this;
3254
3285
  var status = response.status;
3255
3286
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3262,17 +3293,19 @@
3262
3293
  _headers[key] = response.headers.get(key);
3263
3294
  }
3264
3295
  }
3265
- catch (e_29_1) { e_29 = { error: e_29_1 }; }
3296
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3266
3297
  finally {
3267
3298
  try {
3268
3299
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3269
3300
  }
3270
- finally { if (e_29) throw e_29.error; }
3301
+ finally { if (e_30) throw e_30.error; }
3271
3302
  }
3272
3303
  }
3273
3304
  if (status === 201) {
3274
3305
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3275
- return rxjs.of(null);
3306
+ var result201 = null;
3307
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3308
+ return rxjs.of(result201);
3276
3309
  }));
3277
3310
  }
3278
3311
  else if (status === 404) {
@@ -3329,18 +3362,15 @@
3329
3362
  return _this;
3330
3363
  }
3331
3364
  /**
3332
- * Gets information about tenant applications
3333
- * @param tenantId (optional) Tenant identifier
3334
- * @param userId (optional) User identifier
3365
+ * Returns an information about the tenant applications.
3366
+ * @param tenantId (optional) Tenant identifier.
3335
3367
  * @return Success
3336
3368
  */
3337
- TenantInfoApiClient.prototype.getApplicationsInfo = function (tenantId, userId) {
3369
+ TenantInfoApiClient.prototype.getApplicationsInfo = function (tenantId) {
3338
3370
  var _this = this;
3339
3371
  var url_ = this.baseUrl + "/api/storefront/v1/tenant-info/applications?";
3340
3372
  if (tenantId !== undefined && tenantId !== null)
3341
3373
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3342
- if (userId !== undefined && userId !== null)
3343
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
3344
3374
  url_ = url_.replace(/[?&]$/, "");
3345
3375
  var options_ = {
3346
3376
  observe: "response",
@@ -3367,7 +3397,7 @@
3367
3397
  }));
3368
3398
  };
3369
3399
  TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
3370
- var e_30, _a;
3400
+ var e_31, _a;
3371
3401
  var _this = this;
3372
3402
  var status = response.status;
3373
3403
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3380,12 +3410,12 @@
3380
3410
  _headers[key] = response.headers.get(key);
3381
3411
  }
3382
3412
  }
3383
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
3413
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3384
3414
  finally {
3385
3415
  try {
3386
3416
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3387
3417
  }
3388
- finally { if (e_30) throw e_30.error; }
3418
+ finally { if (e_31) throw e_31.error; }
3389
3419
  }
3390
3420
  }
3391
3421
  if (status === 200) {
@@ -3413,18 +3443,15 @@
3413
3443
  return rxjs.of(null);
3414
3444
  };
3415
3445
  /**
3416
- * Gets information about tenant
3417
- * @param tenantId (optional) Tenant identifier
3418
- * @param userId (optional) User identifier
3446
+ * Returns an information about the tenant.
3447
+ * @param tenantId (optional) Tenant identifier.
3419
3448
  * @return Success
3420
3449
  */
3421
- TenantInfoApiClient.prototype.getInfo = function (tenantId, userId) {
3450
+ TenantInfoApiClient.prototype.getInfo = function (tenantId) {
3422
3451
  var _this = this;
3423
3452
  var url_ = this.baseUrl + "/api/storefront/v1/tenant-info?";
3424
3453
  if (tenantId !== undefined && tenantId !== null)
3425
3454
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3426
- if (userId !== undefined && userId !== null)
3427
- url_ += "userId=" + encodeURIComponent("" + userId) + "&";
3428
3455
  url_ = url_.replace(/[?&]$/, "");
3429
3456
  var options_ = {
3430
3457
  observe: "response",
@@ -3451,7 +3478,7 @@
3451
3478
  }));
3452
3479
  };
3453
3480
  TenantInfoApiClient.prototype.processGetInfo = function (response) {
3454
- var e_31, _a;
3481
+ var e_32, _a;
3455
3482
  var _this = this;
3456
3483
  var status = response.status;
3457
3484
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3464,12 +3491,12 @@
3464
3491
  _headers[key] = response.headers.get(key);
3465
3492
  }
3466
3493
  }
3467
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
3494
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3468
3495
  finally {
3469
3496
  try {
3470
3497
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3471
3498
  }
3472
- finally { if (e_31) throw e_31.error; }
3499
+ finally { if (e_32) throw e_32.error; }
3473
3500
  }
3474
3501
  }
3475
3502
  if (status === 200) {