@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;
|
|
@@ -237,7 +237,7 @@ export class ProcessingPipelinesApiClient extends ApiClientBase {
|
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* Returns a processing pipeline.
|
|
240
|
-
* @param id Processing pipeline identifier
|
|
240
|
+
* @param id Processing pipeline identifier.
|
|
241
241
|
* @param tenantId (optional) Tenant identifier.
|
|
242
242
|
* @return Success
|
|
243
243
|
*/
|
|
@@ -3585,6 +3585,68 @@ export class TenantInfoApiClient extends ApiClientBase {
|
|
|
3585
3585
|
}
|
|
3586
3586
|
return Promise.resolve(null);
|
|
3587
3587
|
}
|
|
3588
|
+
/**
|
|
3589
|
+
* Returns an information about the tenant measure units.
|
|
3590
|
+
* @param tenantId (optional) Tenant identifier.
|
|
3591
|
+
* @return Success
|
|
3592
|
+
*/
|
|
3593
|
+
getMeasureUnitsInfo(tenantId, cancelToken) {
|
|
3594
|
+
let url_ = this.baseUrl + "/api/storefront/v1/tenant-info/measure-units?";
|
|
3595
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
3596
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3597
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3598
|
+
let options_ = {
|
|
3599
|
+
method: "GET",
|
|
3600
|
+
url: url_,
|
|
3601
|
+
headers: {
|
|
3602
|
+
"Accept": "text/plain"
|
|
3603
|
+
},
|
|
3604
|
+
cancelToken
|
|
3605
|
+
};
|
|
3606
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3607
|
+
return this.instance.request(transformedOptions_);
|
|
3608
|
+
}).catch((_error) => {
|
|
3609
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3610
|
+
return _error.response;
|
|
3611
|
+
}
|
|
3612
|
+
else {
|
|
3613
|
+
throw _error;
|
|
3614
|
+
}
|
|
3615
|
+
}).then((_response) => {
|
|
3616
|
+
return this.transformResult(url_, _response, (_response) => this.processGetMeasureUnitsInfo(_response));
|
|
3617
|
+
});
|
|
3618
|
+
}
|
|
3619
|
+
processGetMeasureUnitsInfo(response) {
|
|
3620
|
+
const status = response.status;
|
|
3621
|
+
let _headers = {};
|
|
3622
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3623
|
+
for (let k in response.headers) {
|
|
3624
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3625
|
+
_headers[k] = response.headers[k];
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
if (status === 200) {
|
|
3630
|
+
const _responseText = response.data;
|
|
3631
|
+
let result200 = null;
|
|
3632
|
+
let resultData200 = _responseText;
|
|
3633
|
+
result200 = JSON.parse(resultData200);
|
|
3634
|
+
return Promise.resolve(result200);
|
|
3635
|
+
}
|
|
3636
|
+
else if (status === 401) {
|
|
3637
|
+
const _responseText = response.data;
|
|
3638
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3639
|
+
}
|
|
3640
|
+
else if (status === 403) {
|
|
3641
|
+
const _responseText = response.data;
|
|
3642
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3643
|
+
}
|
|
3644
|
+
else if (status !== 200 && status !== 204) {
|
|
3645
|
+
const _responseText = response.data;
|
|
3646
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3647
|
+
}
|
|
3648
|
+
return Promise.resolve(null);
|
|
3649
|
+
}
|
|
3588
3650
|
/**
|
|
3589
3651
|
* Returns a list of tenant users.
|
|
3590
3652
|
* @param tenantId (optional) Tenant identifier.
|
|
@@ -3654,7 +3716,7 @@ export var WorkflowType;
|
|
|
3654
3716
|
WorkflowType["UIFramework"] = "UIFramework";
|
|
3655
3717
|
WorkflowType["SimpleEditor"] = "SimpleEditor";
|
|
3656
3718
|
WorkflowType["DesignEditor"] = "DesignEditor";
|
|
3657
|
-
WorkflowType["
|
|
3719
|
+
WorkflowType["WorkflowElements"] = "WorkflowElements";
|
|
3658
3720
|
})(WorkflowType || (WorkflowType = {}));
|
|
3659
3721
|
/** Defines all available date period filter values for queries. */
|
|
3660
3722
|
export var DatePeriod;
|