@aurigma/ng-storefront-api-client 2.38.1 → 2.39.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.
- package/aurigma-ng-storefront-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.js +180 -82
- 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 +101 -14
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +100 -13
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +54 -11
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ StorefrontModule.decorators = [
|
|
|
32
32
|
exports: []
|
|
33
33
|
},] }
|
|
34
34
|
];
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVmcm9udC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDMvX3dvcmsvMS9zL0JhY2tlbmQvc3JjL0JhY2tPZmZpY2UuV2ViLlB1YmxpY0FwaS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9zdG9yZWZyb250LWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL3N0b3JlZnJvbnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBc0IsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzVELE9BQ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AgICAgICB1c2VWYWx1ZTogYXBpVXJsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBTdG9yZWZyb250QXBpQ2xpZW50LkFwaUNsaWVudENvbmZpZ3VyYXRpb24sXG4gICAgICAgICAgdXNlRmFjdG9yeTogQ3JlYXRlQXBpQ2xpZW50Q29uZmlndXJhdGlvbi5iaW5kKHRoaXMsIHRva2VuICwgYXBpVXJsLCBhcGlLZXkpXG4gICAgICAgIH0sXG4gICAgICBdXG4gICAgfTtcbiAgfVxufVxuIl19
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/storefront.module';
|
|
5
5
|
export * from './lib/storefront-api-client';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMy9fd29yay8xL3MvQmFja2VuZC9zcmMvQmFja09mZmljZS5XZWIuUHVibGljQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3N0b3JlZnJvbnQtY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBjbGllbnRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZWZyb250Lm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdG9yZWZyb250LWFwaS1jbGllbnQnO1xuIl19
|
|
@@ -659,14 +659,14 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
659
659
|
if (status === 200) {
|
|
660
660
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
661
661
|
let result200 = null;
|
|
662
|
-
result200 = _responseText === "" ? null :
|
|
662
|
+
result200 = _responseText === "" ? null : _responseText;
|
|
663
663
|
return of(result200);
|
|
664
664
|
}));
|
|
665
665
|
}
|
|
666
666
|
else if (status === 404) {
|
|
667
667
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
668
668
|
let result404 = null;
|
|
669
|
-
result404 = _responseText === "" ? null :
|
|
669
|
+
result404 = _responseText === "" ? null : _responseText;
|
|
670
670
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
671
671
|
}));
|
|
672
672
|
}
|
|
@@ -1016,14 +1016,14 @@ class ProductSpecificationsApiClient extends ApiClientBase {
|
|
|
1016
1016
|
if (status === 200) {
|
|
1017
1017
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1018
1018
|
let result200 = null;
|
|
1019
|
-
result200 = _responseText === "" ? null :
|
|
1019
|
+
result200 = _responseText === "" ? null : _responseText;
|
|
1020
1020
|
return of(result200);
|
|
1021
1021
|
}));
|
|
1022
1022
|
}
|
|
1023
1023
|
else if (status === 404) {
|
|
1024
1024
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1025
1025
|
let result404 = null;
|
|
1026
|
-
result404 = _responseText === "" ? null :
|
|
1026
|
+
result404 = _responseText === "" ? null : _responseText;
|
|
1027
1027
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
1028
1028
|
}));
|
|
1029
1029
|
}
|
|
@@ -1074,11 +1074,12 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1074
1074
|
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
1075
1075
|
* @param search (optional) Search string for partial match.
|
|
1076
1076
|
* @param orderId (optional) Identifier of corresponding order.
|
|
1077
|
+
* @param processingStatus (optional) Project processing status filter.
|
|
1077
1078
|
* @param storefrontId (optional) Storefront identifier.
|
|
1078
1079
|
* @param tenantId (optional) Tenant identifier.
|
|
1079
1080
|
* @return Success
|
|
1080
1081
|
*/
|
|
1081
|
-
getAll(ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, storefrontId, tenantId) {
|
|
1082
|
+
getAll(ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, processingStatus, storefrontId, tenantId) {
|
|
1082
1083
|
let url_ = this.baseUrl + "/api/storefront/v1/projects?";
|
|
1083
1084
|
if (ownerId !== undefined && ownerId !== null)
|
|
1084
1085
|
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
@@ -1100,6 +1101,8 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1100
1101
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
1101
1102
|
if (orderId !== undefined && orderId !== null)
|
|
1102
1103
|
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
1104
|
+
if (processingStatus !== undefined && processingStatus !== null)
|
|
1105
|
+
url_ += "processingStatus=" + encodeURIComponent("" + processingStatus) + "&";
|
|
1103
1106
|
if (storefrontId !== undefined && storefrontId !== null)
|
|
1104
1107
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1105
1108
|
if (tenantId !== undefined && tenantId !== null)
|
|
@@ -1642,6 +1645,90 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1642
1645
|
}
|
|
1643
1646
|
return of(null);
|
|
1644
1647
|
}
|
|
1648
|
+
/**
|
|
1649
|
+
* Creates a new project by 'Specific Pipeline' scenario.
|
|
1650
|
+
* @param storefrontId Storefront identifier.
|
|
1651
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1652
|
+
* @param body (optional) Create operation parameters.
|
|
1653
|
+
* @return Success
|
|
1654
|
+
*/
|
|
1655
|
+
createBySpecificPipelineScenario(storefrontId, tenantId, body) {
|
|
1656
|
+
let url_ = this.baseUrl + "/api/storefront/v1/projects/by-scenario/specific-pipeline?";
|
|
1657
|
+
if (storefrontId === undefined || storefrontId === null)
|
|
1658
|
+
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
1659
|
+
else
|
|
1660
|
+
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1661
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
1662
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1663
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1664
|
+
const content_ = JSON.stringify(body);
|
|
1665
|
+
let options_ = {
|
|
1666
|
+
body: content_,
|
|
1667
|
+
observe: "response",
|
|
1668
|
+
responseType: "blob",
|
|
1669
|
+
headers: new HttpHeaders({
|
|
1670
|
+
"Content-Type": "application/json-patch+json",
|
|
1671
|
+
"Accept": "text/plain"
|
|
1672
|
+
})
|
|
1673
|
+
};
|
|
1674
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
1675
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
1676
|
+
})).pipe(mergeMap((response_) => {
|
|
1677
|
+
return this.transformResult(url_, response_, (r) => this.processCreateBySpecificPipelineScenario(r));
|
|
1678
|
+
})).pipe(catchError((response_) => {
|
|
1679
|
+
if (response_ instanceof HttpResponseBase) {
|
|
1680
|
+
try {
|
|
1681
|
+
return this.transformResult(url_, response_, (r) => this.processCreateBySpecificPipelineScenario(r));
|
|
1682
|
+
}
|
|
1683
|
+
catch (e) {
|
|
1684
|
+
return throwError(e);
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
else
|
|
1688
|
+
return throwError(response_);
|
|
1689
|
+
}));
|
|
1690
|
+
}
|
|
1691
|
+
processCreateBySpecificPipelineScenario(response) {
|
|
1692
|
+
const status = response.status;
|
|
1693
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
1694
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
1695
|
+
let _headers = {};
|
|
1696
|
+
if (response.headers) {
|
|
1697
|
+
for (let key of response.headers.keys()) {
|
|
1698
|
+
_headers[key] = response.headers.get(key);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
if (status === 201) {
|
|
1702
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1703
|
+
let result201 = null;
|
|
1704
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1705
|
+
return of(result201);
|
|
1706
|
+
}));
|
|
1707
|
+
}
|
|
1708
|
+
else if (status === 409) {
|
|
1709
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1710
|
+
let result409 = null;
|
|
1711
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1712
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
1713
|
+
}));
|
|
1714
|
+
}
|
|
1715
|
+
else if (status === 401) {
|
|
1716
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1717
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1718
|
+
}));
|
|
1719
|
+
}
|
|
1720
|
+
else if (status === 403) {
|
|
1721
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1722
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1723
|
+
}));
|
|
1724
|
+
}
|
|
1725
|
+
else if (status !== 200 && status !== 204) {
|
|
1726
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
1727
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1728
|
+
}));
|
|
1729
|
+
}
|
|
1730
|
+
return of(null);
|
|
1731
|
+
}
|
|
1645
1732
|
/**
|
|
1646
1733
|
* Returns all available status transitions for a project.
|
|
1647
1734
|
* @param id Project identifier.
|
|
@@ -3584,6 +3671,14 @@ var DatePeriod;
|
|
|
3584
3671
|
DatePeriod["Last7Days"] = "Last7Days";
|
|
3585
3672
|
DatePeriod["Last30Days"] = "Last30Days";
|
|
3586
3673
|
})(DatePeriod || (DatePeriod = {}));
|
|
3674
|
+
/** Available project processing statuses. */
|
|
3675
|
+
var ProjectProcessingStatus;
|
|
3676
|
+
(function (ProjectProcessingStatus) {
|
|
3677
|
+
ProjectProcessingStatus["Pending"] = "Pending";
|
|
3678
|
+
ProjectProcessingStatus["InProgress"] = "InProgress";
|
|
3679
|
+
ProjectProcessingStatus["Completed"] = "Completed";
|
|
3680
|
+
ProjectProcessingStatus["Failed"] = "Failed";
|
|
3681
|
+
})(ProjectProcessingStatus || (ProjectProcessingStatus = {}));
|
|
3587
3682
|
/** Available product resource types */
|
|
3588
3683
|
var ProjectItemResourceType;
|
|
3589
3684
|
(function (ProjectItemResourceType) {
|
|
@@ -3611,14 +3706,6 @@ var RenderHiResScenarioOutputFlipMode;
|
|
|
3611
3706
|
RenderHiResScenarioOutputFlipMode["Vertical"] = "Vertical";
|
|
3612
3707
|
RenderHiResScenarioOutputFlipMode["Both"] = "Both";
|
|
3613
3708
|
})(RenderHiResScenarioOutputFlipMode || (RenderHiResScenarioOutputFlipMode = {}));
|
|
3614
|
-
/** Available project processing statuses. */
|
|
3615
|
-
var ProjectProcessingStatus;
|
|
3616
|
-
(function (ProjectProcessingStatus) {
|
|
3617
|
-
ProjectProcessingStatus["Pending"] = "Pending";
|
|
3618
|
-
ProjectProcessingStatus["InProgress"] = "InProgress";
|
|
3619
|
-
ProjectProcessingStatus["Completed"] = "Completed";
|
|
3620
|
-
ProjectProcessingStatus["Failed"] = "Failed";
|
|
3621
|
-
})(ProjectProcessingStatus || (ProjectProcessingStatus = {}));
|
|
3622
3709
|
/** Available value types for order data item. */
|
|
3623
3710
|
var OrderDataItemValueType;
|
|
3624
3711
|
(function (OrderDataItemValueType) {
|