@aurigma/ng-storefront-api-client 2.65.1 → 2.66.6
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 +8 -8
- 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/lib/storefront-api-client.js +9 -9
- package/fesm2015/aurigma-ng-storefront-api-client.js +8 -8
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +6 -6
- package/package.json +1 -1
|
@@ -2918,7 +2918,7 @@ class ProductsApiClient extends ApiClientBase {
|
|
|
2918
2918
|
* @param tenantId (optional) Tenant identifier.
|
|
2919
2919
|
* @return Success
|
|
2920
2920
|
*/
|
|
2921
|
-
|
|
2921
|
+
getPersonalizationParameters(id, productVersionId, tenantId) {
|
|
2922
2922
|
let url_ = this.baseUrl + "/api/storefront/v1/products/{id}/personalization-parameters?";
|
|
2923
2923
|
if (id === undefined || id === null)
|
|
2924
2924
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -2938,11 +2938,11 @@ class ProductsApiClient extends ApiClientBase {
|
|
|
2938
2938
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2939
2939
|
return this.http.request("get", url_, transformedOptions_);
|
|
2940
2940
|
})).pipe(mergeMap((response_) => {
|
|
2941
|
-
return this.transformResult(url_, response_, (r) => this.
|
|
2941
|
+
return this.transformResult(url_, response_, (r) => this.processGetPersonalizationParameters(r));
|
|
2942
2942
|
})).pipe(catchError((response_) => {
|
|
2943
2943
|
if (response_ instanceof HttpResponseBase) {
|
|
2944
2944
|
try {
|
|
2945
|
-
return this.transformResult(url_, response_, (r) => this.
|
|
2945
|
+
return this.transformResult(url_, response_, (r) => this.processGetPersonalizationParameters(r));
|
|
2946
2946
|
}
|
|
2947
2947
|
catch (e) {
|
|
2948
2948
|
return throwError(e);
|
|
@@ -2952,7 +2952,7 @@ class ProductsApiClient extends ApiClientBase {
|
|
|
2952
2952
|
return throwError(response_);
|
|
2953
2953
|
}));
|
|
2954
2954
|
}
|
|
2955
|
-
|
|
2955
|
+
processGetPersonalizationParameters(response) {
|
|
2956
2956
|
const status = response.status;
|
|
2957
2957
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2958
2958
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -3010,7 +3010,7 @@ class ProductsApiClient extends ApiClientBase {
|
|
|
3010
3010
|
* @param tenantId (optional) Tenant identifier.
|
|
3011
3011
|
* @return Success
|
|
3012
3012
|
*/
|
|
3013
|
-
|
|
3013
|
+
getProductSummary(id, productVersionId, productLinkId, productVariantId, sku, tenantId) {
|
|
3014
3014
|
let url_ = this.baseUrl + "/api/storefront/v1/products/{id}/summary?";
|
|
3015
3015
|
if (id === undefined || id === null)
|
|
3016
3016
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -3036,11 +3036,11 @@ class ProductsApiClient extends ApiClientBase {
|
|
|
3036
3036
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
3037
3037
|
return this.http.request("get", url_, transformedOptions_);
|
|
3038
3038
|
})).pipe(mergeMap((response_) => {
|
|
3039
|
-
return this.transformResult(url_, response_, (r) => this.
|
|
3039
|
+
return this.transformResult(url_, response_, (r) => this.processGetProductSummary(r));
|
|
3040
3040
|
})).pipe(catchError((response_) => {
|
|
3041
3041
|
if (response_ instanceof HttpResponseBase) {
|
|
3042
3042
|
try {
|
|
3043
|
-
return this.transformResult(url_, response_, (r) => this.
|
|
3043
|
+
return this.transformResult(url_, response_, (r) => this.processGetProductSummary(r));
|
|
3044
3044
|
}
|
|
3045
3045
|
catch (e) {
|
|
3046
3046
|
return throwError(e);
|
|
@@ -3050,7 +3050,7 @@ class ProductsApiClient extends ApiClientBase {
|
|
|
3050
3050
|
return throwError(response_);
|
|
3051
3051
|
}));
|
|
3052
3052
|
}
|
|
3053
|
-
|
|
3053
|
+
processGetProductSummary(response) {
|
|
3054
3054
|
const status = response.status;
|
|
3055
3055
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
3056
3056
|
response.error instanceof Blob ? response.error : undefined;
|