@aurigma/ng-storefront-api-client 2.63.14 → 2.66.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 +16 -9
- 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 +19 -10
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +19 -10
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +45 -22
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmVmcm9udC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDIvX3dvcmsvMS9zL0JhY2tlbmQvc3JjL0JhY2tPZmZpY2UuV2ViLlB1YmxpY0FwaS5TdG9yZWZyb250VHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvc3RvcmVmcm9udC1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9zdG9yZWZyb250Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXNCLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQ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UElfQkFTRV9VUkwsXG4gICAgICAgICAgdXNlVmFsdWU6IGFwaVVybFxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogU3RvcmVmcm9udEFwaUNsaWVudC5BcGlDbGllbnRDb25maWd1cmF0aW9uLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IENyZWF0ZUFwaUNsaWVudENvbmZpZ3VyYXRpb24uYmluZCh0aGlzLCB0b2tlbiAsIGFwaVVybCwgYXBpS2V5KVxuICAgICAgICB9LFxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMi9fd29yay8xL3MvQmFja2VuZC9zcmMvQmFja09mZmljZS5XZWIuUHVibGljQXBpLlN0b3JlZnJvbnRUeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9zdG9yZWZyb250LWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyw2QkFBNkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY2xpZW50XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvc3RvcmVmcm9udC5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvc3RvcmVmcm9udC1hcGktY2xpZW50JztcbiJdfQ==
|
|
@@ -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;
|
|
@@ -6394,10 +6394,11 @@ class StorefrontsApiClient extends ApiClientBase {
|
|
|
6394
6394
|
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
|
|
6395
6395
|
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
6396
6396
|
* @param search (optional) Search string for partial match.
|
|
6397
|
+
* @param status (optional) Storefront status.
|
|
6397
6398
|
* @param tenantId (optional) Tenant identifier.
|
|
6398
6399
|
* @return Success
|
|
6399
6400
|
*/
|
|
6400
|
-
getAll(types, skip, take, sorting, search, tenantId) {
|
|
6401
|
+
getAll(types, skip, take, sorting, search, status, tenantId) {
|
|
6401
6402
|
let url_ = this.baseUrl + "/api/storefront/v1/storefronts?";
|
|
6402
6403
|
if (types !== undefined && types !== null)
|
|
6403
6404
|
types && types.forEach(item => { url_ += "types=" + encodeURIComponent("" + item) + "&"; });
|
|
@@ -6409,6 +6410,8 @@ class StorefrontsApiClient extends ApiClientBase {
|
|
|
6409
6410
|
url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
|
|
6410
6411
|
if (search !== undefined && search !== null)
|
|
6411
6412
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
6413
|
+
if (status !== undefined && status !== null)
|
|
6414
|
+
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
6412
6415
|
if (tenantId !== undefined && tenantId !== null)
|
|
6413
6416
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6414
6417
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -7577,6 +7580,12 @@ var StorefrontType;
|
|
|
7577
7580
|
StorefrontType["Shopify"] = "Shopify";
|
|
7578
7581
|
StorefrontType["ShopifyCustom"] = "ShopifyCustom";
|
|
7579
7582
|
})(StorefrontType || (StorefrontType = {}));
|
|
7583
|
+
/** Storefront status. */
|
|
7584
|
+
var StorefrontStatus;
|
|
7585
|
+
(function (StorefrontStatus) {
|
|
7586
|
+
StorefrontStatus["Dev"] = "Dev";
|
|
7587
|
+
StorefrontStatus["Prod"] = "Prod";
|
|
7588
|
+
})(StorefrontStatus || (StorefrontStatus = {}));
|
|
7580
7589
|
class ApiException extends Error {
|
|
7581
7590
|
constructor(message, status, response, headers, result) {
|
|
7582
7591
|
super();
|
|
@@ -7652,5 +7661,5 @@ StorefrontModule.decorators = [
|
|
|
7652
7661
|
* Generated bundle index. Do not edit.
|
|
7653
7662
|
*/
|
|
7654
7663
|
|
|
7655
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, AppearanceDataType, BuildInfoApiClient, ConflictType, CreateApiClientConfiguration, DatePeriod, OptionType, OrderDataItemValueType, ProcessingPipelinesApiClient, ProductBundleResourceType, ProductBundlesApiClient, ProductLinkResourceType, ProductLinksApiClient, ProductReferenceType, ProductReferencesApiClient, ProductSpecificationsApiClient, ProductType, ProductVariantMockupType, ProductVariantResourceType, ProductsApiClient, ProjectItemProductType, ProjectItemResourceType, ProjectProcessingStatus, ProjectsApiClient, RenderHiResScenarioOutputColorSpace, RenderHiResScenarioOutputFlipMode, RenderHiResScenarioOutputFormat, RenderHiResScenarioOutputRotateMode, StorefrontModule, StorefrontType, StorefrontUsersApiClient, StorefrontsApiClient, SurfaceUsageType, TenantInfoApiClient, WorkflowType };
|
|
7664
|
+
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, AppearanceDataType, BuildInfoApiClient, ConflictType, CreateApiClientConfiguration, DatePeriod, OptionType, OrderDataItemValueType, ProcessingPipelinesApiClient, ProductBundleResourceType, ProductBundlesApiClient, ProductLinkResourceType, ProductLinksApiClient, ProductReferenceType, ProductReferencesApiClient, ProductSpecificationsApiClient, ProductType, ProductVariantMockupType, ProductVariantResourceType, ProductsApiClient, ProjectItemProductType, ProjectItemResourceType, ProjectProcessingStatus, ProjectsApiClient, RenderHiResScenarioOutputColorSpace, RenderHiResScenarioOutputFlipMode, RenderHiResScenarioOutputFormat, RenderHiResScenarioOutputRotateMode, StorefrontModule, StorefrontStatus, StorefrontType, StorefrontUsersApiClient, StorefrontsApiClient, SurfaceUsageType, TenantInfoApiClient, WorkflowType };
|
|
7656
7665
|
//# sourceMappingURL=aurigma-ng-storefront-api-client.js.map
|