@aurigma/ng-storefront-api-client 2.16.1 → 2.17.17
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.
- package/aurigma-ng-storefront-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.js +193 -75
- package/bundles/aurigma-ng-storefront-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-storefront-api-client.js +1 -1
- package/esm2015/lib/storefront-api-client.js +108 -1
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +108 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +88 -1
- package/package.json +1 -1
|
@@ -1115,6 +1115,119 @@
|
|
|
1115
1115
|
}
|
|
1116
1116
|
return rxjs.of(null);
|
|
1117
1117
|
};
|
|
1118
|
+
/**
|
|
1119
|
+
* Returns a product cost details from ecommerce system.
|
|
1120
|
+
* @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
|
|
1121
|
+
* @param sku Product SKU.
|
|
1122
|
+
* @param storefrontId Storefront identifier.
|
|
1123
|
+
* @param storefrontUserId (optional) Storefront user identifier.
|
|
1124
|
+
* @param currencyCode (optional) Product cost currency code.
|
|
1125
|
+
* @param quantity (optional) Product quantity.
|
|
1126
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1127
|
+
* @return Success
|
|
1128
|
+
*/
|
|
1129
|
+
ProductReferencesApiClient.prototype.getProductCostDetails = function (reference, sku, storefrontId, storefrontUserId, currencyCode, quantity, tenantId) {
|
|
1130
|
+
var _this = this;
|
|
1131
|
+
var url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-cost-details?";
|
|
1132
|
+
if (reference === undefined || reference === null)
|
|
1133
|
+
throw new Error("The parameter 'reference' must be defined.");
|
|
1134
|
+
url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
|
|
1135
|
+
if (sku === undefined || sku === null)
|
|
1136
|
+
throw new Error("The parameter 'sku' must be defined and cannot be null.");
|
|
1137
|
+
else
|
|
1138
|
+
url_ += "sku=" + encodeURIComponent("" + sku) + "&";
|
|
1139
|
+
if (storefrontId === undefined || storefrontId === null)
|
|
1140
|
+
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
1141
|
+
else
|
|
1142
|
+
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1143
|
+
if (storefrontUserId !== undefined && storefrontUserId !== null)
|
|
1144
|
+
url_ += "storefrontUserId=" + encodeURIComponent("" + storefrontUserId) + "&";
|
|
1145
|
+
if (currencyCode !== undefined && currencyCode !== null)
|
|
1146
|
+
url_ += "currencyCode=" + encodeURIComponent("" + currencyCode) + "&";
|
|
1147
|
+
if (quantity === null)
|
|
1148
|
+
throw new Error("The parameter 'quantity' cannot be null.");
|
|
1149
|
+
else if (quantity !== undefined)
|
|
1150
|
+
url_ += "quantity=" + encodeURIComponent("" + quantity) + "&";
|
|
1151
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
1152
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1153
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1154
|
+
var options_ = {
|
|
1155
|
+
observe: "response",
|
|
1156
|
+
responseType: "blob",
|
|
1157
|
+
headers: new i1.HttpHeaders({
|
|
1158
|
+
"Accept": "text/plain"
|
|
1159
|
+
})
|
|
1160
|
+
};
|
|
1161
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
1162
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
1163
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
1164
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetProductCostDetails(r); });
|
|
1165
|
+
})).pipe(operators.catchError(function (response_) {
|
|
1166
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
1167
|
+
try {
|
|
1168
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetProductCostDetails(r); });
|
|
1169
|
+
}
|
|
1170
|
+
catch (e) {
|
|
1171
|
+
return rxjs.throwError(e);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
else
|
|
1175
|
+
return rxjs.throwError(response_);
|
|
1176
|
+
}));
|
|
1177
|
+
};
|
|
1178
|
+
ProductReferencesApiClient.prototype.processGetProductCostDetails = function (response) {
|
|
1179
|
+
var e_9, _a;
|
|
1180
|
+
var _this = this;
|
|
1181
|
+
var status = response.status;
|
|
1182
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
1183
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
1184
|
+
var _headers = {};
|
|
1185
|
+
if (response.headers) {
|
|
1186
|
+
try {
|
|
1187
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1188
|
+
var key = _c.value;
|
|
1189
|
+
_headers[key] = response.headers.get(key);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
1193
|
+
finally {
|
|
1194
|
+
try {
|
|
1195
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1196
|
+
}
|
|
1197
|
+
finally { if (e_9) throw e_9.error; }
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
if (status === 200) {
|
|
1201
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1202
|
+
var result200 = null;
|
|
1203
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1204
|
+
return rxjs.of(result200);
|
|
1205
|
+
}));
|
|
1206
|
+
}
|
|
1207
|
+
else if (status === 404) {
|
|
1208
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1209
|
+
var result404 = null;
|
|
1210
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1211
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1212
|
+
}));
|
|
1213
|
+
}
|
|
1214
|
+
else if (status === 401) {
|
|
1215
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1216
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1217
|
+
}));
|
|
1218
|
+
}
|
|
1219
|
+
else if (status === 403) {
|
|
1220
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1221
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1222
|
+
}));
|
|
1223
|
+
}
|
|
1224
|
+
else if (status !== 200 && status !== 204) {
|
|
1225
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
1226
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1227
|
+
}));
|
|
1228
|
+
}
|
|
1229
|
+
return rxjs.of(null);
|
|
1230
|
+
};
|
|
1118
1231
|
return ProductReferencesApiClient;
|
|
1119
1232
|
}(ApiClientBase));
|
|
1120
1233
|
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" });
|
|
@@ -1185,7 +1298,7 @@
|
|
|
1185
1298
|
}));
|
|
1186
1299
|
};
|
|
1187
1300
|
ProductSpecificationsApiClient.prototype.processGetAll = function (response) {
|
|
1188
|
-
var
|
|
1301
|
+
var e_10, _a;
|
|
1189
1302
|
var _this = this;
|
|
1190
1303
|
var status = response.status;
|
|
1191
1304
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1198,12 +1311,12 @@
|
|
|
1198
1311
|
_headers[key] = response.headers.get(key);
|
|
1199
1312
|
}
|
|
1200
1313
|
}
|
|
1201
|
-
catch (
|
|
1314
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
1202
1315
|
finally {
|
|
1203
1316
|
try {
|
|
1204
1317
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1205
1318
|
}
|
|
1206
|
-
finally { if (
|
|
1319
|
+
finally { if (e_10) throw e_10.error; }
|
|
1207
1320
|
}
|
|
1208
1321
|
}
|
|
1209
1322
|
if (status === 200) {
|
|
@@ -1270,7 +1383,7 @@
|
|
|
1270
1383
|
}));
|
|
1271
1384
|
};
|
|
1272
1385
|
ProductSpecificationsApiClient.prototype.processGet = function (response) {
|
|
1273
|
-
var
|
|
1386
|
+
var e_11, _a;
|
|
1274
1387
|
var _this = this;
|
|
1275
1388
|
var status = response.status;
|
|
1276
1389
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1283,12 +1396,12 @@
|
|
|
1283
1396
|
_headers[key] = response.headers.get(key);
|
|
1284
1397
|
}
|
|
1285
1398
|
}
|
|
1286
|
-
catch (
|
|
1399
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
1287
1400
|
finally {
|
|
1288
1401
|
try {
|
|
1289
1402
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1290
1403
|
}
|
|
1291
|
-
finally { if (
|
|
1404
|
+
finally { if (e_11) throw e_11.error; }
|
|
1292
1405
|
}
|
|
1293
1406
|
}
|
|
1294
1407
|
if (status === 200) {
|
|
@@ -1362,7 +1475,7 @@
|
|
|
1362
1475
|
}));
|
|
1363
1476
|
};
|
|
1364
1477
|
ProductSpecificationsApiClient.prototype.processGetConfiguration = function (response) {
|
|
1365
|
-
var
|
|
1478
|
+
var e_12, _a;
|
|
1366
1479
|
var _this = this;
|
|
1367
1480
|
var status = response.status;
|
|
1368
1481
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1375,12 +1488,12 @@
|
|
|
1375
1488
|
_headers[key] = response.headers.get(key);
|
|
1376
1489
|
}
|
|
1377
1490
|
}
|
|
1378
|
-
catch (
|
|
1491
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
1379
1492
|
finally {
|
|
1380
1493
|
try {
|
|
1381
1494
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1382
1495
|
}
|
|
1383
|
-
finally { if (
|
|
1496
|
+
finally { if (e_12) throw e_12.error; }
|
|
1384
1497
|
}
|
|
1385
1498
|
}
|
|
1386
1499
|
if (status === 200) {
|
|
@@ -1503,7 +1616,7 @@
|
|
|
1503
1616
|
}));
|
|
1504
1617
|
};
|
|
1505
1618
|
ProjectsApiClient.prototype.processGetAll = function (response) {
|
|
1506
|
-
var
|
|
1619
|
+
var e_13, _a;
|
|
1507
1620
|
var _this = this;
|
|
1508
1621
|
var status = response.status;
|
|
1509
1622
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1516,12 +1629,12 @@
|
|
|
1516
1629
|
_headers[key] = response.headers.get(key);
|
|
1517
1630
|
}
|
|
1518
1631
|
}
|
|
1519
|
-
catch (
|
|
1632
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1520
1633
|
finally {
|
|
1521
1634
|
try {
|
|
1522
1635
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1523
1636
|
}
|
|
1524
|
-
finally { if (
|
|
1637
|
+
finally { if (e_13) throw e_13.error; }
|
|
1525
1638
|
}
|
|
1526
1639
|
}
|
|
1527
1640
|
if (status === 200) {
|
|
@@ -1593,7 +1706,7 @@
|
|
|
1593
1706
|
}));
|
|
1594
1707
|
};
|
|
1595
1708
|
ProjectsApiClient.prototype.processCreate = function (response) {
|
|
1596
|
-
var
|
|
1709
|
+
var e_14, _a;
|
|
1597
1710
|
var _this = this;
|
|
1598
1711
|
var status = response.status;
|
|
1599
1712
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1606,12 +1719,12 @@
|
|
|
1606
1719
|
_headers[key] = response.headers.get(key);
|
|
1607
1720
|
}
|
|
1608
1721
|
}
|
|
1609
|
-
catch (
|
|
1722
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
1610
1723
|
finally {
|
|
1611
1724
|
try {
|
|
1612
1725
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1613
1726
|
}
|
|
1614
|
-
finally { if (
|
|
1727
|
+
finally { if (e_14) throw e_14.error; }
|
|
1615
1728
|
}
|
|
1616
1729
|
}
|
|
1617
1730
|
if (status === 201) {
|
|
@@ -1685,7 +1798,7 @@
|
|
|
1685
1798
|
}));
|
|
1686
1799
|
};
|
|
1687
1800
|
ProjectsApiClient.prototype.processGet = function (response) {
|
|
1688
|
-
var
|
|
1801
|
+
var e_15, _a;
|
|
1689
1802
|
var _this = this;
|
|
1690
1803
|
var status = response.status;
|
|
1691
1804
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1698,12 +1811,12 @@
|
|
|
1698
1811
|
_headers[key] = response.headers.get(key);
|
|
1699
1812
|
}
|
|
1700
1813
|
}
|
|
1701
|
-
catch (
|
|
1814
|
+
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
1702
1815
|
finally {
|
|
1703
1816
|
try {
|
|
1704
1817
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1705
1818
|
}
|
|
1706
|
-
finally { if (
|
|
1819
|
+
finally { if (e_15) throw e_15.error; }
|
|
1707
1820
|
}
|
|
1708
1821
|
}
|
|
1709
1822
|
if (status === 200) {
|
|
@@ -1777,7 +1890,7 @@
|
|
|
1777
1890
|
}));
|
|
1778
1891
|
};
|
|
1779
1892
|
ProjectsApiClient.prototype.processGetAvailableTransitions = function (response) {
|
|
1780
|
-
var
|
|
1893
|
+
var e_16, _a;
|
|
1781
1894
|
var _this = this;
|
|
1782
1895
|
var status = response.status;
|
|
1783
1896
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1790,12 +1903,12 @@
|
|
|
1790
1903
|
_headers[key] = response.headers.get(key);
|
|
1791
1904
|
}
|
|
1792
1905
|
}
|
|
1793
|
-
catch (
|
|
1906
|
+
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
1794
1907
|
finally {
|
|
1795
1908
|
try {
|
|
1796
1909
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1797
1910
|
}
|
|
1798
|
-
finally { if (
|
|
1911
|
+
finally { if (e_16) throw e_16.error; }
|
|
1799
1912
|
}
|
|
1800
1913
|
}
|
|
1801
1914
|
if (status === 200) {
|
|
@@ -1887,7 +2000,7 @@
|
|
|
1887
2000
|
}));
|
|
1888
2001
|
};
|
|
1889
2002
|
ProjectsApiClient.prototype.processChangeStatus = function (response) {
|
|
1890
|
-
var
|
|
2003
|
+
var e_17, _a;
|
|
1891
2004
|
var _this = this;
|
|
1892
2005
|
var status = response.status;
|
|
1893
2006
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -1900,12 +2013,12 @@
|
|
|
1900
2013
|
_headers[key] = response.headers.get(key);
|
|
1901
2014
|
}
|
|
1902
2015
|
}
|
|
1903
|
-
catch (
|
|
2016
|
+
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
1904
2017
|
finally {
|
|
1905
2018
|
try {
|
|
1906
2019
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1907
2020
|
}
|
|
1908
|
-
finally { if (
|
|
2021
|
+
finally { if (e_17) throw e_17.error; }
|
|
1909
2022
|
}
|
|
1910
2023
|
}
|
|
1911
2024
|
if (status === 200) {
|
|
@@ -1997,7 +2110,7 @@
|
|
|
1997
2110
|
}));
|
|
1998
2111
|
};
|
|
1999
2112
|
ProjectsApiClient.prototype.processForceStatus = function (response) {
|
|
2000
|
-
var
|
|
2113
|
+
var e_18, _a;
|
|
2001
2114
|
var _this = this;
|
|
2002
2115
|
var status = response.status;
|
|
2003
2116
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2010,12 +2123,12 @@
|
|
|
2010
2123
|
_headers[key] = response.headers.get(key);
|
|
2011
2124
|
}
|
|
2012
2125
|
}
|
|
2013
|
-
catch (
|
|
2126
|
+
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
2014
2127
|
finally {
|
|
2015
2128
|
try {
|
|
2016
2129
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2017
2130
|
}
|
|
2018
|
-
finally { if (
|
|
2131
|
+
finally { if (e_18) throw e_18.error; }
|
|
2019
2132
|
}
|
|
2020
2133
|
}
|
|
2021
2134
|
if (status === 200) {
|
|
@@ -2092,7 +2205,7 @@
|
|
|
2092
2205
|
}));
|
|
2093
2206
|
};
|
|
2094
2207
|
ProjectsApiClient.prototype.processGetAllStatuses = function (response) {
|
|
2095
|
-
var
|
|
2208
|
+
var e_19, _a;
|
|
2096
2209
|
var _this = this;
|
|
2097
2210
|
var status = response.status;
|
|
2098
2211
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2105,12 +2218,12 @@
|
|
|
2105
2218
|
_headers[key] = response.headers.get(key);
|
|
2106
2219
|
}
|
|
2107
2220
|
}
|
|
2108
|
-
catch (
|
|
2221
|
+
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
2109
2222
|
finally {
|
|
2110
2223
|
try {
|
|
2111
2224
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2112
2225
|
}
|
|
2113
|
-
finally { if (
|
|
2226
|
+
finally { if (e_19) throw e_19.error; }
|
|
2114
2227
|
}
|
|
2115
2228
|
}
|
|
2116
2229
|
if (status === 200) {
|
|
@@ -2173,7 +2286,7 @@
|
|
|
2173
2286
|
}));
|
|
2174
2287
|
};
|
|
2175
2288
|
ProjectsApiClient.prototype.processGetAllTransitions = function (response) {
|
|
2176
|
-
var
|
|
2289
|
+
var e_20, _a;
|
|
2177
2290
|
var _this = this;
|
|
2178
2291
|
var status = response.status;
|
|
2179
2292
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2186,12 +2299,12 @@
|
|
|
2186
2299
|
_headers[key] = response.headers.get(key);
|
|
2187
2300
|
}
|
|
2188
2301
|
}
|
|
2189
|
-
catch (
|
|
2302
|
+
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
2190
2303
|
finally {
|
|
2191
2304
|
try {
|
|
2192
2305
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2193
2306
|
}
|
|
2194
|
-
finally { if (
|
|
2307
|
+
finally { if (e_20) throw e_20.error; }
|
|
2195
2308
|
}
|
|
2196
2309
|
}
|
|
2197
2310
|
if (status === 200) {
|
|
@@ -2268,7 +2381,7 @@
|
|
|
2268
2381
|
}));
|
|
2269
2382
|
};
|
|
2270
2383
|
ProjectsApiClient.prototype.processGetProjectPdfUrl = function (response) {
|
|
2271
|
-
var
|
|
2384
|
+
var e_21, _a;
|
|
2272
2385
|
var _this = this;
|
|
2273
2386
|
var status = response.status;
|
|
2274
2387
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2281,12 +2394,12 @@
|
|
|
2281
2394
|
_headers[key] = response.headers.get(key);
|
|
2282
2395
|
}
|
|
2283
2396
|
}
|
|
2284
|
-
catch (
|
|
2397
|
+
catch (e_21_1) { e_21 = { error: e_21_1 }; }
|
|
2285
2398
|
finally {
|
|
2286
2399
|
try {
|
|
2287
2400
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2288
2401
|
}
|
|
2289
|
-
finally { if (
|
|
2402
|
+
finally { if (e_21) throw e_21.error; }
|
|
2290
2403
|
}
|
|
2291
2404
|
}
|
|
2292
2405
|
if (status === 200) {
|
|
@@ -2366,7 +2479,7 @@
|
|
|
2366
2479
|
}));
|
|
2367
2480
|
};
|
|
2368
2481
|
ProjectsApiClient.prototype.processGetProjectPdfZip = function (response) {
|
|
2369
|
-
var
|
|
2482
|
+
var e_22, _a;
|
|
2370
2483
|
var _this = this;
|
|
2371
2484
|
var status = response.status;
|
|
2372
2485
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2379,12 +2492,12 @@
|
|
|
2379
2492
|
_headers[key] = response.headers.get(key);
|
|
2380
2493
|
}
|
|
2381
2494
|
}
|
|
2382
|
-
catch (
|
|
2495
|
+
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
2383
2496
|
finally {
|
|
2384
2497
|
try {
|
|
2385
2498
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2386
2499
|
}
|
|
2387
|
-
finally { if (
|
|
2500
|
+
finally { if (e_22) throw e_22.error; }
|
|
2388
2501
|
}
|
|
2389
2502
|
}
|
|
2390
2503
|
if (status === 200 || status === 206) {
|
|
@@ -2457,7 +2570,7 @@
|
|
|
2457
2570
|
}));
|
|
2458
2571
|
};
|
|
2459
2572
|
ProjectsApiClient.prototype.processGetProjectOrder = function (response) {
|
|
2460
|
-
var
|
|
2573
|
+
var e_23, _a;
|
|
2461
2574
|
var _this = this;
|
|
2462
2575
|
var status = response.status;
|
|
2463
2576
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2470,12 +2583,12 @@
|
|
|
2470
2583
|
_headers[key] = response.headers.get(key);
|
|
2471
2584
|
}
|
|
2472
2585
|
}
|
|
2473
|
-
catch (
|
|
2586
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
|
2474
2587
|
finally {
|
|
2475
2588
|
try {
|
|
2476
2589
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2477
2590
|
}
|
|
2478
|
-
finally { if (
|
|
2591
|
+
finally { if (e_23) throw e_23.error; }
|
|
2479
2592
|
}
|
|
2480
2593
|
}
|
|
2481
2594
|
if (status === 200) {
|
|
@@ -2582,7 +2695,7 @@
|
|
|
2582
2695
|
}));
|
|
2583
2696
|
};
|
|
2584
2697
|
StorefrontsApiClient.prototype.processGetAll = function (response) {
|
|
2585
|
-
var
|
|
2698
|
+
var e_24, _a;
|
|
2586
2699
|
var _this = this;
|
|
2587
2700
|
var status = response.status;
|
|
2588
2701
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2595,12 +2708,12 @@
|
|
|
2595
2708
|
_headers[key] = response.headers.get(key);
|
|
2596
2709
|
}
|
|
2597
2710
|
}
|
|
2598
|
-
catch (
|
|
2711
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
|
2599
2712
|
finally {
|
|
2600
2713
|
try {
|
|
2601
2714
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2602
2715
|
}
|
|
2603
|
-
finally { if (
|
|
2716
|
+
finally { if (e_24) throw e_24.error; }
|
|
2604
2717
|
}
|
|
2605
2718
|
}
|
|
2606
2719
|
if (status === 200) {
|
|
@@ -2667,7 +2780,7 @@
|
|
|
2667
2780
|
}));
|
|
2668
2781
|
};
|
|
2669
2782
|
StorefrontsApiClient.prototype.processGet = function (response) {
|
|
2670
|
-
var
|
|
2783
|
+
var e_25, _a;
|
|
2671
2784
|
var _this = this;
|
|
2672
2785
|
var status = response.status;
|
|
2673
2786
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2680,12 +2793,12 @@
|
|
|
2680
2793
|
_headers[key] = response.headers.get(key);
|
|
2681
2794
|
}
|
|
2682
2795
|
}
|
|
2683
|
-
catch (
|
|
2796
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
|
2684
2797
|
finally {
|
|
2685
2798
|
try {
|
|
2686
2799
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2687
2800
|
}
|
|
2688
|
-
finally { if (
|
|
2801
|
+
finally { if (e_25) throw e_25.error; }
|
|
2689
2802
|
}
|
|
2690
2803
|
}
|
|
2691
2804
|
if (status === 200) {
|
|
@@ -2797,7 +2910,7 @@
|
|
|
2797
2910
|
}));
|
|
2798
2911
|
};
|
|
2799
2912
|
StorefrontUsersApiClient.prototype.processGetAll = function (response) {
|
|
2800
|
-
var
|
|
2913
|
+
var e_26, _a;
|
|
2801
2914
|
var _this = this;
|
|
2802
2915
|
var status = response.status;
|
|
2803
2916
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2810,12 +2923,12 @@
|
|
|
2810
2923
|
_headers[key] = response.headers.get(key);
|
|
2811
2924
|
}
|
|
2812
2925
|
}
|
|
2813
|
-
catch (
|
|
2926
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
|
2814
2927
|
finally {
|
|
2815
2928
|
try {
|
|
2816
2929
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2817
2930
|
}
|
|
2818
|
-
finally { if (
|
|
2931
|
+
finally { if (e_26) throw e_26.error; }
|
|
2819
2932
|
}
|
|
2820
2933
|
}
|
|
2821
2934
|
if (status === 200) {
|
|
@@ -2887,7 +3000,7 @@
|
|
|
2887
3000
|
}));
|
|
2888
3001
|
};
|
|
2889
3002
|
StorefrontUsersApiClient.prototype.processCreate = function (response) {
|
|
2890
|
-
var
|
|
3003
|
+
var e_27, _a;
|
|
2891
3004
|
var _this = this;
|
|
2892
3005
|
var status = response.status;
|
|
2893
3006
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2900,12 +3013,12 @@
|
|
|
2900
3013
|
_headers[key] = response.headers.get(key);
|
|
2901
3014
|
}
|
|
2902
3015
|
}
|
|
2903
|
-
catch (
|
|
3016
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
2904
3017
|
finally {
|
|
2905
3018
|
try {
|
|
2906
3019
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2907
3020
|
}
|
|
2908
|
-
finally { if (
|
|
3021
|
+
finally { if (e_27) throw e_27.error; }
|
|
2909
3022
|
}
|
|
2910
3023
|
}
|
|
2911
3024
|
if (status === 201) {
|
|
@@ -2984,7 +3097,7 @@
|
|
|
2984
3097
|
}));
|
|
2985
3098
|
};
|
|
2986
3099
|
StorefrontUsersApiClient.prototype.processGet = function (response) {
|
|
2987
|
-
var
|
|
3100
|
+
var e_28, _a;
|
|
2988
3101
|
var _this = this;
|
|
2989
3102
|
var status = response.status;
|
|
2990
3103
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -2997,12 +3110,12 @@
|
|
|
2997
3110
|
_headers[key] = response.headers.get(key);
|
|
2998
3111
|
}
|
|
2999
3112
|
}
|
|
3000
|
-
catch (
|
|
3113
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
3001
3114
|
finally {
|
|
3002
3115
|
try {
|
|
3003
3116
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3004
3117
|
}
|
|
3005
|
-
finally { if (
|
|
3118
|
+
finally { if (e_28) throw e_28.error; }
|
|
3006
3119
|
}
|
|
3007
3120
|
}
|
|
3008
3121
|
if (status === 200) {
|
|
@@ -3081,7 +3194,7 @@
|
|
|
3081
3194
|
}));
|
|
3082
3195
|
};
|
|
3083
3196
|
StorefrontUsersApiClient.prototype.processRegister = function (response) {
|
|
3084
|
-
var
|
|
3197
|
+
var e_29, _a;
|
|
3085
3198
|
var _this = this;
|
|
3086
3199
|
var status = response.status;
|
|
3087
3200
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3094,12 +3207,12 @@
|
|
|
3094
3207
|
_headers[key] = response.headers.get(key);
|
|
3095
3208
|
}
|
|
3096
3209
|
}
|
|
3097
|
-
catch (
|
|
3210
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
3098
3211
|
finally {
|
|
3099
3212
|
try {
|
|
3100
3213
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3101
3214
|
}
|
|
3102
|
-
finally { if (
|
|
3215
|
+
finally { if (e_29) throw e_29.error; }
|
|
3103
3216
|
}
|
|
3104
3217
|
}
|
|
3105
3218
|
if (status === 200) {
|
|
@@ -3177,7 +3290,7 @@
|
|
|
3177
3290
|
}));
|
|
3178
3291
|
};
|
|
3179
3292
|
StorefrontUsersApiClient.prototype.processMergeAnonymous = function (response) {
|
|
3180
|
-
var
|
|
3293
|
+
var e_30, _a;
|
|
3181
3294
|
var _this = this;
|
|
3182
3295
|
var status = response.status;
|
|
3183
3296
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3190,12 +3303,12 @@
|
|
|
3190
3303
|
_headers[key] = response.headers.get(key);
|
|
3191
3304
|
}
|
|
3192
3305
|
}
|
|
3193
|
-
catch (
|
|
3306
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
3194
3307
|
finally {
|
|
3195
3308
|
try {
|
|
3196
3309
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3197
3310
|
}
|
|
3198
|
-
finally { if (
|
|
3311
|
+
finally { if (e_30) throw e_30.error; }
|
|
3199
3312
|
}
|
|
3200
3313
|
}
|
|
3201
3314
|
if (status === 200) {
|
|
@@ -3280,7 +3393,7 @@
|
|
|
3280
3393
|
}));
|
|
3281
3394
|
};
|
|
3282
3395
|
StorefrontUsersApiClient.prototype.processGetToken = function (response) {
|
|
3283
|
-
var
|
|
3396
|
+
var e_31, _a;
|
|
3284
3397
|
var _this = this;
|
|
3285
3398
|
var status = response.status;
|
|
3286
3399
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3293,12 +3406,12 @@
|
|
|
3293
3406
|
_headers[key] = response.headers.get(key);
|
|
3294
3407
|
}
|
|
3295
3408
|
}
|
|
3296
|
-
catch (
|
|
3409
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
3297
3410
|
finally {
|
|
3298
3411
|
try {
|
|
3299
3412
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3300
3413
|
}
|
|
3301
|
-
finally { if (
|
|
3414
|
+
finally { if (e_31) throw e_31.error; }
|
|
3302
3415
|
}
|
|
3303
3416
|
}
|
|
3304
3417
|
if (status === 201) {
|
|
@@ -3397,7 +3510,7 @@
|
|
|
3397
3510
|
}));
|
|
3398
3511
|
};
|
|
3399
3512
|
TenantInfoApiClient.prototype.processGetApplicationsInfo = function (response) {
|
|
3400
|
-
var
|
|
3513
|
+
var e_32, _a;
|
|
3401
3514
|
var _this = this;
|
|
3402
3515
|
var status = response.status;
|
|
3403
3516
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3410,12 +3523,12 @@
|
|
|
3410
3523
|
_headers[key] = response.headers.get(key);
|
|
3411
3524
|
}
|
|
3412
3525
|
}
|
|
3413
|
-
catch (
|
|
3526
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
3414
3527
|
finally {
|
|
3415
3528
|
try {
|
|
3416
3529
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3417
3530
|
}
|
|
3418
|
-
finally { if (
|
|
3531
|
+
finally { if (e_32) throw e_32.error; }
|
|
3419
3532
|
}
|
|
3420
3533
|
}
|
|
3421
3534
|
if (status === 200) {
|
|
@@ -3478,7 +3591,7 @@
|
|
|
3478
3591
|
}));
|
|
3479
3592
|
};
|
|
3480
3593
|
TenantInfoApiClient.prototype.processGetInfo = function (response) {
|
|
3481
|
-
var
|
|
3594
|
+
var e_33, _a;
|
|
3482
3595
|
var _this = this;
|
|
3483
3596
|
var status = response.status;
|
|
3484
3597
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3491,12 +3604,12 @@
|
|
|
3491
3604
|
_headers[key] = response.headers.get(key);
|
|
3492
3605
|
}
|
|
3493
3606
|
}
|
|
3494
|
-
catch (
|
|
3607
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
3495
3608
|
finally {
|
|
3496
3609
|
try {
|
|
3497
3610
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3498
3611
|
}
|
|
3499
|
-
finally { if (
|
|
3612
|
+
finally { if (e_33) throw e_33.error; }
|
|
3500
3613
|
}
|
|
3501
3614
|
}
|
|
3502
3615
|
if (status === 200) {
|
|
@@ -3559,7 +3672,7 @@
|
|
|
3559
3672
|
}));
|
|
3560
3673
|
};
|
|
3561
3674
|
TenantInfoApiClient.prototype.processGetUsersInfo = function (response) {
|
|
3562
|
-
var
|
|
3675
|
+
var e_34, _a;
|
|
3563
3676
|
var _this = this;
|
|
3564
3677
|
var status = response.status;
|
|
3565
3678
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -3572,12 +3685,12 @@
|
|
|
3572
3685
|
_headers[key] = response.headers.get(key);
|
|
3573
3686
|
}
|
|
3574
3687
|
}
|
|
3575
|
-
catch (
|
|
3688
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3576
3689
|
finally {
|
|
3577
3690
|
try {
|
|
3578
3691
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
3579
3692
|
}
|
|
3580
|
-
finally { if (
|
|
3693
|
+
finally { if (e_34) throw e_34.error; }
|
|
3581
3694
|
}
|
|
3582
3695
|
}
|
|
3583
3696
|
if (status === 200) {
|
|
@@ -3623,6 +3736,11 @@
|
|
|
3623
3736
|
DatePeriod["Last7Days"] = "Last7Days";
|
|
3624
3737
|
DatePeriod["Last30Days"] = "Last30Days";
|
|
3625
3738
|
})(exports.DatePeriod || (exports.DatePeriod = {}));
|
|
3739
|
+
(function (ProjectProductResourceType) {
|
|
3740
|
+
ProjectProductResourceType[ProjectProductResourceType["_0"] = 0] = "_0";
|
|
3741
|
+
ProjectProductResourceType[ProjectProductResourceType["_1"] = 1] = "_1";
|
|
3742
|
+
ProjectProductResourceType[ProjectProductResourceType["_2"] = 2] = "_2";
|
|
3743
|
+
})(exports.ProjectProductResourceType || (exports.ProjectProductResourceType = {}));
|
|
3626
3744
|
(function (StorefrontType) {
|
|
3627
3745
|
StorefrontType["Custom"] = "Custom";
|
|
3628
3746
|
StorefrontType["Shopify"] = "Shopify";
|