@aurigma/ng-storefront-api-client 2.40.1 → 2.42.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.
@@ -255,7 +255,7 @@ class ProcessingPipelinesApiClient extends ApiClientBase {
255
255
  }
256
256
  /**
257
257
  * Returns a processing pipeline.
258
- * @param id Processing pipeline identifier..
258
+ * @param id Processing pipeline identifier.
259
259
  * @param tenantId (optional) Tenant identifier.
260
260
  * @return Success
261
261
  */
@@ -3918,6 +3918,74 @@ class TenantInfoApiClient extends ApiClientBase {
3918
3918
  }
3919
3919
  return of(null);
3920
3920
  }
3921
+ /**
3922
+ * Returns an information about the tenant measure units.
3923
+ * @param tenantId (optional) Tenant identifier.
3924
+ * @return Success
3925
+ */
3926
+ getMeasureUnitsInfo(tenantId) {
3927
+ let url_ = this.baseUrl + "/api/storefront/v1/tenant-info/measure-units?";
3928
+ if (tenantId !== undefined && tenantId !== null)
3929
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3930
+ url_ = url_.replace(/[?&]$/, "");
3931
+ let options_ = {
3932
+ observe: "response",
3933
+ responseType: "blob",
3934
+ headers: new HttpHeaders({
3935
+ "Accept": "text/plain"
3936
+ })
3937
+ };
3938
+ return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
3939
+ return this.http.request("get", url_, transformedOptions_);
3940
+ })).pipe(mergeMap((response_) => {
3941
+ return this.transformResult(url_, response_, (r) => this.processGetMeasureUnitsInfo(r));
3942
+ })).pipe(catchError((response_) => {
3943
+ if (response_ instanceof HttpResponseBase) {
3944
+ try {
3945
+ return this.transformResult(url_, response_, (r) => this.processGetMeasureUnitsInfo(r));
3946
+ }
3947
+ catch (e) {
3948
+ return throwError(e);
3949
+ }
3950
+ }
3951
+ else
3952
+ return throwError(response_);
3953
+ }));
3954
+ }
3955
+ processGetMeasureUnitsInfo(response) {
3956
+ const status = response.status;
3957
+ const responseBlob = response instanceof HttpResponse ? response.body :
3958
+ response.error instanceof Blob ? response.error : undefined;
3959
+ let _headers = {};
3960
+ if (response.headers) {
3961
+ for (let key of response.headers.keys()) {
3962
+ _headers[key] = response.headers.get(key);
3963
+ }
3964
+ }
3965
+ if (status === 200) {
3966
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3967
+ let result200 = null;
3968
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3969
+ return of(result200);
3970
+ }));
3971
+ }
3972
+ else if (status === 401) {
3973
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3974
+ return throwException("Unauthorized", status, _responseText, _headers);
3975
+ }));
3976
+ }
3977
+ else if (status === 403) {
3978
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3979
+ return throwException("Forbidden", status, _responseText, _headers);
3980
+ }));
3981
+ }
3982
+ else if (status !== 200 && status !== 204) {
3983
+ return blobToText(responseBlob).pipe(mergeMap(_responseText => {
3984
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3985
+ }));
3986
+ }
3987
+ return of(null);
3988
+ }
3921
3989
  /**
3922
3990
  * Returns a list of tenant users.
3923
3991
  * @param tenantId (optional) Tenant identifier.
@@ -4004,7 +4072,7 @@ var WorkflowType;
4004
4072
  WorkflowType["UIFramework"] = "UIFramework";
4005
4073
  WorkflowType["SimpleEditor"] = "SimpleEditor";
4006
4074
  WorkflowType["DesignEditor"] = "DesignEditor";
4007
- WorkflowType["HandyEditor"] = "HandyEditor";
4075
+ WorkflowType["WorkflowElements"] = "WorkflowElements";
4008
4076
  })(WorkflowType || (WorkflowType = {}));
4009
4077
  /** Defines all available date period filter values for queries. */
4010
4078
  var DatePeriod;