@aurigma/axios-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.
- package/dist/cjs/storefront-api-client.d.ts +38 -7
- package/dist/cjs/storefront-api-client.js +64 -2
- package/dist/cjs/storefront-api-client.js.map +1 -1
- package/dist/esm/storefront-api-client.d.ts +38 -7
- package/dist/esm/storefront-api-client.js +64 -2
- package/dist/esm/storefront-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -55,7 +55,7 @@ export interface IProcessingPipelinesApiClient {
|
|
|
55
55
|
getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProcessingPipelineDto>;
|
|
56
56
|
/**
|
|
57
57
|
* Returns a processing pipeline.
|
|
58
|
-
* @param id Processing pipeline identifier
|
|
58
|
+
* @param id Processing pipeline identifier.
|
|
59
59
|
* @param tenantId (optional) Tenant identifier.
|
|
60
60
|
* @return Success
|
|
61
61
|
*/
|
|
@@ -78,7 +78,7 @@ export declare class ProcessingPipelinesApiClient extends ApiClientBase implemen
|
|
|
78
78
|
protected processGetAll(response: AxiosResponse): Promise<PagedOfProcessingPipelineDto>;
|
|
79
79
|
/**
|
|
80
80
|
* Returns a processing pipeline.
|
|
81
|
-
* @param id Processing pipeline identifier
|
|
81
|
+
* @param id Processing pipeline identifier.
|
|
82
82
|
* @param tenantId (optional) Tenant identifier.
|
|
83
83
|
* @return Success
|
|
84
84
|
*/
|
|
@@ -842,6 +842,12 @@ export interface ITenantInfoApiClient {
|
|
|
842
842
|
* @return Success
|
|
843
843
|
*/
|
|
844
844
|
getInfo(tenantId?: number | null | undefined): Promise<TenantInfoDto>;
|
|
845
|
+
/**
|
|
846
|
+
* Returns an information about the tenant measure units.
|
|
847
|
+
* @param tenantId (optional) Tenant identifier.
|
|
848
|
+
* @return Success
|
|
849
|
+
*/
|
|
850
|
+
getMeasureUnitsInfo(tenantId?: number | null | undefined): Promise<TenantMeasureUnitsInfoDto>;
|
|
845
851
|
/**
|
|
846
852
|
* Returns a list of tenant users.
|
|
847
853
|
* @param tenantId (optional) Tenant identifier.
|
|
@@ -868,6 +874,13 @@ export declare class TenantInfoApiClient extends ApiClientBase implements ITenan
|
|
|
868
874
|
*/
|
|
869
875
|
getInfo(tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<TenantInfoDto>;
|
|
870
876
|
protected processGetInfo(response: AxiosResponse): Promise<TenantInfoDto>;
|
|
877
|
+
/**
|
|
878
|
+
* Returns an information about the tenant measure units.
|
|
879
|
+
* @param tenantId (optional) Tenant identifier.
|
|
880
|
+
* @return Success
|
|
881
|
+
*/
|
|
882
|
+
getMeasureUnitsInfo(tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<TenantMeasureUnitsInfoDto>;
|
|
883
|
+
protected processGetMeasureUnitsInfo(response: AxiosResponse): Promise<TenantMeasureUnitsInfoDto>;
|
|
871
884
|
/**
|
|
872
885
|
* Returns a list of tenant users.
|
|
873
886
|
* @param tenantId (optional) Tenant identifier.
|
|
@@ -893,8 +906,8 @@ export interface ProcessingPipelineDto {
|
|
|
893
906
|
id?: number;
|
|
894
907
|
/** Processing pipeline name. */
|
|
895
908
|
name?: string | null;
|
|
896
|
-
/** Processing pipeline content. */
|
|
897
|
-
|
|
909
|
+
/** Processing pipeline raw (uncompiled) content. */
|
|
910
|
+
rawContent?: string | null;
|
|
898
911
|
}
|
|
899
912
|
/** Paged list of items. */
|
|
900
913
|
export interface PagedOfProcessingPipelineDto {
|
|
@@ -989,7 +1002,7 @@ export declare enum WorkflowType {
|
|
|
989
1002
|
UIFramework = "UIFramework",
|
|
990
1003
|
SimpleEditor = "SimpleEditor",
|
|
991
1004
|
DesignEditor = "DesignEditor",
|
|
992
|
-
|
|
1005
|
+
WorkflowElements = "WorkflowElements"
|
|
993
1006
|
}
|
|
994
1007
|
/** Personalization workflow description DTO. */
|
|
995
1008
|
export interface PersonalizationWorkflowDto {
|
|
@@ -1400,8 +1413,10 @@ export interface TenantApplicationsInfoDto {
|
|
|
1400
1413
|
uiFrameworkUrl?: string | null;
|
|
1401
1414
|
/** An url to the 'Simple editor'. */
|
|
1402
1415
|
simpleEditorUrl?: string | null;
|
|
1403
|
-
/** An url to the '
|
|
1404
|
-
|
|
1416
|
+
/** An url to the 'Workflow Elements' web components library. */
|
|
1417
|
+
workflowElementsUrl?: string | null;
|
|
1418
|
+
/** An url to the 'Template editor'. */
|
|
1419
|
+
templateEditorUrl?: string | null;
|
|
1405
1420
|
/** An url to the 'Preflight' tenant application. */
|
|
1406
1421
|
preflightUrl?: string | null;
|
|
1407
1422
|
/** An url to the 'Dynamic Image' tenant application. */
|
|
@@ -1426,6 +1441,22 @@ export interface TenantInfoDto {
|
|
|
1426
1441
|
/** Tenant activeness status. */
|
|
1427
1442
|
isActive?: boolean;
|
|
1428
1443
|
}
|
|
1444
|
+
/** Dto class, containing information about size measure unit. */
|
|
1445
|
+
export interface SizeMeasureUnitDto {
|
|
1446
|
+
/** Measure unit full name. */
|
|
1447
|
+
name?: string | null;
|
|
1448
|
+
/** Measure unit short name. */
|
|
1449
|
+
shortName?: string | null;
|
|
1450
|
+
/** Measure unit ratio. */
|
|
1451
|
+
ratio?: number;
|
|
1452
|
+
/** Indicates if measure unit should be used by default. */
|
|
1453
|
+
isDefault?: boolean;
|
|
1454
|
+
}
|
|
1455
|
+
/** Dto class, containing information about tenant measure units. */
|
|
1456
|
+
export interface TenantMeasureUnitsInfoDto {
|
|
1457
|
+
/** A list of all 'size' measure units of the tenant. */
|
|
1458
|
+
sizeMeasureUntis?: SizeMeasureUnitDto[] | null;
|
|
1459
|
+
}
|
|
1429
1460
|
export interface TenantUserInfoDto {
|
|
1430
1461
|
/** Tenant identifier. */
|
|
1431
1462
|
tenantId?: number;
|
|
@@ -243,7 +243,7 @@ class ProcessingPipelinesApiClient extends ApiClientBase {
|
|
|
243
243
|
}
|
|
244
244
|
/**
|
|
245
245
|
* Returns a processing pipeline.
|
|
246
|
-
* @param id Processing pipeline identifier
|
|
246
|
+
* @param id Processing pipeline identifier.
|
|
247
247
|
* @param tenantId (optional) Tenant identifier.
|
|
248
248
|
* @return Success
|
|
249
249
|
*/
|
|
@@ -3597,6 +3597,68 @@ class TenantInfoApiClient extends ApiClientBase {
|
|
|
3597
3597
|
}
|
|
3598
3598
|
return Promise.resolve(null);
|
|
3599
3599
|
}
|
|
3600
|
+
/**
|
|
3601
|
+
* Returns an information about the tenant measure units.
|
|
3602
|
+
* @param tenantId (optional) Tenant identifier.
|
|
3603
|
+
* @return Success
|
|
3604
|
+
*/
|
|
3605
|
+
getMeasureUnitsInfo(tenantId, cancelToken) {
|
|
3606
|
+
let url_ = this.baseUrl + "/api/storefront/v1/tenant-info/measure-units?";
|
|
3607
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
3608
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3609
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3610
|
+
let options_ = {
|
|
3611
|
+
method: "GET",
|
|
3612
|
+
url: url_,
|
|
3613
|
+
headers: {
|
|
3614
|
+
"Accept": "text/plain"
|
|
3615
|
+
},
|
|
3616
|
+
cancelToken
|
|
3617
|
+
};
|
|
3618
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3619
|
+
return this.instance.request(transformedOptions_);
|
|
3620
|
+
}).catch((_error) => {
|
|
3621
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3622
|
+
return _error.response;
|
|
3623
|
+
}
|
|
3624
|
+
else {
|
|
3625
|
+
throw _error;
|
|
3626
|
+
}
|
|
3627
|
+
}).then((_response) => {
|
|
3628
|
+
return this.transformResult(url_, _response, (_response) => this.processGetMeasureUnitsInfo(_response));
|
|
3629
|
+
});
|
|
3630
|
+
}
|
|
3631
|
+
processGetMeasureUnitsInfo(response) {
|
|
3632
|
+
const status = response.status;
|
|
3633
|
+
let _headers = {};
|
|
3634
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3635
|
+
for (let k in response.headers) {
|
|
3636
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3637
|
+
_headers[k] = response.headers[k];
|
|
3638
|
+
}
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
if (status === 200) {
|
|
3642
|
+
const _responseText = response.data;
|
|
3643
|
+
let result200 = null;
|
|
3644
|
+
let resultData200 = _responseText;
|
|
3645
|
+
result200 = JSON.parse(resultData200);
|
|
3646
|
+
return Promise.resolve(result200);
|
|
3647
|
+
}
|
|
3648
|
+
else if (status === 401) {
|
|
3649
|
+
const _responseText = response.data;
|
|
3650
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3651
|
+
}
|
|
3652
|
+
else if (status === 403) {
|
|
3653
|
+
const _responseText = response.data;
|
|
3654
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3655
|
+
}
|
|
3656
|
+
else if (status !== 200 && status !== 204) {
|
|
3657
|
+
const _responseText = response.data;
|
|
3658
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3659
|
+
}
|
|
3660
|
+
return Promise.resolve(null);
|
|
3661
|
+
}
|
|
3600
3662
|
/**
|
|
3601
3663
|
* Returns a list of tenant users.
|
|
3602
3664
|
* @param tenantId (optional) Tenant identifier.
|
|
@@ -3667,7 +3729,7 @@ var WorkflowType;
|
|
|
3667
3729
|
WorkflowType["UIFramework"] = "UIFramework";
|
|
3668
3730
|
WorkflowType["SimpleEditor"] = "SimpleEditor";
|
|
3669
3731
|
WorkflowType["DesignEditor"] = "DesignEditor";
|
|
3670
|
-
WorkflowType["
|
|
3732
|
+
WorkflowType["WorkflowElements"] = "WorkflowElements";
|
|
3671
3733
|
})(WorkflowType = exports.WorkflowType || (exports.WorkflowType = {}));
|
|
3672
3734
|
/** Defines all available date period filter values for queries. */
|
|
3673
3735
|
var DatePeriod;
|