@aurigma/axios-storefront-api-client 2.39.1 → 2.41.2
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 +134 -28
- package/dist/cjs/storefront-api-client.js +346 -35
- package/dist/cjs/storefront-api-client.js.map +1 -1
- package/dist/esm/storefront-api-client.d.ts +134 -28
- package/dist/esm/storefront-api-client.js +344 -34
- package/dist/esm/storefront-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -43,6 +43,48 @@ export declare class BuildInfoApiClient extends ApiClientBase implements IBuildI
|
|
|
43
43
|
getInfo(cancelToken?: CancelToken | undefined): Promise<BuildInfoModel>;
|
|
44
44
|
protected processGetInfo(response: AxiosResponse): Promise<BuildInfoModel>;
|
|
45
45
|
}
|
|
46
|
+
export interface IProcessingPipelinesApiClient {
|
|
47
|
+
/**
|
|
48
|
+
* Returns all processing pipelines relevant to the specified query parameters.
|
|
49
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
50
|
+
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
|
|
51
|
+
* @param search (optional) Search string for partial by processing pipeline name.
|
|
52
|
+
* @param tenantId (optional) Tenant identifier.
|
|
53
|
+
* @return Success
|
|
54
|
+
*/
|
|
55
|
+
getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProcessingPipelineDto>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns a processing pipeline.
|
|
58
|
+
* @param id Processing pipeline identifier.
|
|
59
|
+
* @param tenantId (optional) Tenant identifier.
|
|
60
|
+
* @return Success
|
|
61
|
+
*/
|
|
62
|
+
get(id: number, tenantId?: number | null | undefined): Promise<ProcessingPipelineDto>;
|
|
63
|
+
}
|
|
64
|
+
export declare class ProcessingPipelinesApiClient extends ApiClientBase implements IProcessingPipelinesApiClient {
|
|
65
|
+
private instance;
|
|
66
|
+
private baseUrl;
|
|
67
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
68
|
+
constructor(configuration: ApiClientConfiguration, baseUrl?: string, instance?: AxiosInstance);
|
|
69
|
+
/**
|
|
70
|
+
* Returns all processing pipelines relevant to the specified query parameters.
|
|
71
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
72
|
+
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
|
|
73
|
+
* @param search (optional) Search string for partial by processing pipeline name.
|
|
74
|
+
* @param tenantId (optional) Tenant identifier.
|
|
75
|
+
* @return Success
|
|
76
|
+
*/
|
|
77
|
+
getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProcessingPipelineDto>;
|
|
78
|
+
protected processGetAll(response: AxiosResponse): Promise<PagedOfProcessingPipelineDto>;
|
|
79
|
+
/**
|
|
80
|
+
* Returns a processing pipeline.
|
|
81
|
+
* @param id Processing pipeline identifier.
|
|
82
|
+
* @param tenantId (optional) Tenant identifier.
|
|
83
|
+
* @return Success
|
|
84
|
+
*/
|
|
85
|
+
get(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProcessingPipelineDto>;
|
|
86
|
+
protected processGet(response: AxiosResponse): Promise<ProcessingPipelineDto>;
|
|
87
|
+
}
|
|
46
88
|
export interface IProductReferencesApiClient {
|
|
47
89
|
/**
|
|
48
90
|
* Returns all storefront product references relevant to the specified query parameters.
|
|
@@ -89,14 +131,6 @@ export interface IProductReferencesApiClient {
|
|
|
89
131
|
* @return Success
|
|
90
132
|
*/
|
|
91
133
|
getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<ProductSpecificationDto>;
|
|
92
|
-
/**
|
|
93
|
-
* Returns a product personalization workflow configuration by storefront product reference.
|
|
94
|
-
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
95
|
-
* @param storefrontId Storefront identifier.
|
|
96
|
-
* @param tenantId (optional) Tenant identifier.
|
|
97
|
-
* @return Success
|
|
98
|
-
*/
|
|
99
|
-
getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<string>;
|
|
100
134
|
/**
|
|
101
135
|
* Returns a product cost details from ecommerce system.
|
|
102
136
|
* @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
|
|
@@ -109,6 +143,20 @@ export interface IProductReferencesApiClient {
|
|
|
109
143
|
* @return Success
|
|
110
144
|
*/
|
|
111
145
|
getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined): Promise<ProductCostDetailsDto>;
|
|
146
|
+
/**
|
|
147
|
+
* Returns a product personalization workflow description by product specification identifier.
|
|
148
|
+
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
149
|
+
* @param storefrontId (optional) Storefront identifier.
|
|
150
|
+
* @param tenantId (optional) Tenant identifier.
|
|
151
|
+
* @return Success
|
|
152
|
+
*/
|
|
153
|
+
getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined): Promise<PersonalizationWorkflowDto>;
|
|
154
|
+
/**
|
|
155
|
+
* @param tenantId (optional)
|
|
156
|
+
* @return Success
|
|
157
|
+
* @deprecated
|
|
158
|
+
*/
|
|
159
|
+
getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<string>;
|
|
112
160
|
}
|
|
113
161
|
export declare class ProductReferencesApiClient extends ApiClientBase implements IProductReferencesApiClient {
|
|
114
162
|
private instance;
|
|
@@ -165,15 +213,6 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
|
|
|
165
213
|
*/
|
|
166
214
|
getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSpecificationDto>;
|
|
167
215
|
protected processGetProductSpecification(response: AxiosResponse): Promise<ProductSpecificationDto>;
|
|
168
|
-
/**
|
|
169
|
-
* Returns a product personalization workflow configuration by storefront product reference.
|
|
170
|
-
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
171
|
-
* @param storefrontId Storefront identifier.
|
|
172
|
-
* @param tenantId (optional) Tenant identifier.
|
|
173
|
-
* @return Success
|
|
174
|
-
*/
|
|
175
|
-
getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
|
|
176
|
-
protected processGetProductConfig(response: AxiosResponse): Promise<string>;
|
|
177
216
|
/**
|
|
178
217
|
* Returns a product cost details from ecommerce system.
|
|
179
218
|
* @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
|
|
@@ -187,6 +226,22 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
|
|
|
187
226
|
*/
|
|
188
227
|
getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductCostDetailsDto>;
|
|
189
228
|
protected processGetProductCostDetails(response: AxiosResponse): Promise<ProductCostDetailsDto>;
|
|
229
|
+
/**
|
|
230
|
+
* Returns a product personalization workflow description by product specification identifier.
|
|
231
|
+
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
232
|
+
* @param storefrontId (optional) Storefront identifier.
|
|
233
|
+
* @param tenantId (optional) Tenant identifier.
|
|
234
|
+
* @return Success
|
|
235
|
+
*/
|
|
236
|
+
getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationWorkflowDto>;
|
|
237
|
+
protected processGetPersonalizationWorkflow(response: AxiosResponse): Promise<PersonalizationWorkflowDto>;
|
|
238
|
+
/**
|
|
239
|
+
* @param tenantId (optional)
|
|
240
|
+
* @return Success
|
|
241
|
+
* @deprecated
|
|
242
|
+
*/
|
|
243
|
+
getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
|
|
244
|
+
protected processGetProductConfig(response: AxiosResponse): Promise<string>;
|
|
190
245
|
}
|
|
191
246
|
export interface IProductSpecificationsApiClient {
|
|
192
247
|
/**
|
|
@@ -207,11 +262,17 @@ export interface IProductSpecificationsApiClient {
|
|
|
207
262
|
*/
|
|
208
263
|
get(id: number, tenantId?: number | null | undefined): Promise<ProductSpecificationDto>;
|
|
209
264
|
/**
|
|
210
|
-
* Returns a product
|
|
265
|
+
* Returns a product personalization workflow description by product specification identifier.
|
|
211
266
|
* @param id Product specification identifier.
|
|
212
267
|
* @param tenantId (optional) Tenant identifier.
|
|
213
268
|
* @return Success
|
|
214
269
|
*/
|
|
270
|
+
getPersonalizationWorkflow(id: number, tenantId?: number | null | undefined): Promise<PersonalizationWorkflowDto>;
|
|
271
|
+
/**
|
|
272
|
+
* @param tenantId (optional)
|
|
273
|
+
* @return Success
|
|
274
|
+
* @deprecated
|
|
275
|
+
*/
|
|
215
276
|
getConfiguration(id: number, tenantId?: number | null | undefined): Promise<string>;
|
|
216
277
|
}
|
|
217
278
|
export declare class ProductSpecificationsApiClient extends ApiClientBase implements IProductSpecificationsApiClient {
|
|
@@ -239,11 +300,18 @@ export declare class ProductSpecificationsApiClient extends ApiClientBase implem
|
|
|
239
300
|
get(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSpecificationDto>;
|
|
240
301
|
protected processGet(response: AxiosResponse): Promise<ProductSpecificationDto>;
|
|
241
302
|
/**
|
|
242
|
-
* Returns a product
|
|
303
|
+
* Returns a product personalization workflow description by product specification identifier.
|
|
243
304
|
* @param id Product specification identifier.
|
|
244
305
|
* @param tenantId (optional) Tenant identifier.
|
|
245
306
|
* @return Success
|
|
246
307
|
*/
|
|
308
|
+
getPersonalizationWorkflow(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationWorkflowDto>;
|
|
309
|
+
protected processGetPersonalizationWorkflow(response: AxiosResponse): Promise<PersonalizationWorkflowDto>;
|
|
310
|
+
/**
|
|
311
|
+
* @param tenantId (optional)
|
|
312
|
+
* @return Success
|
|
313
|
+
* @deprecated
|
|
314
|
+
*/
|
|
247
315
|
getConfiguration(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
|
|
248
316
|
protected processGetConfiguration(response: AxiosResponse): Promise<string>;
|
|
249
317
|
}
|
|
@@ -819,6 +887,29 @@ export interface BuildInfoModel {
|
|
|
819
887
|
/** Service name. */
|
|
820
888
|
appName?: string | null;
|
|
821
889
|
}
|
|
890
|
+
/** Dto class, containing information about processing pipeline details. */
|
|
891
|
+
export interface ProcessingPipelineDto {
|
|
892
|
+
/** Processing pipeline identifier. */
|
|
893
|
+
id?: number;
|
|
894
|
+
/** Processing pipeline name. */
|
|
895
|
+
name?: string | null;
|
|
896
|
+
/** Processing pipeline raw (uncompiled) content. */
|
|
897
|
+
rawContent?: string | null;
|
|
898
|
+
}
|
|
899
|
+
/** Paged list of items. */
|
|
900
|
+
export interface PagedOfProcessingPipelineDto {
|
|
901
|
+
/** Items count. */
|
|
902
|
+
total?: number;
|
|
903
|
+
/** Items list. */
|
|
904
|
+
items?: ProcessingPipelineDto[] | null;
|
|
905
|
+
}
|
|
906
|
+
export interface ProblemDetails {
|
|
907
|
+
type?: string | null;
|
|
908
|
+
title?: string | null;
|
|
909
|
+
status?: number | null;
|
|
910
|
+
detail?: string | null;
|
|
911
|
+
instance?: string | null;
|
|
912
|
+
}
|
|
822
913
|
/** Dto class, containing information about storefront product reference. */
|
|
823
914
|
export interface ProductReferenceDto {
|
|
824
915
|
/** Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier. */
|
|
@@ -846,13 +937,6 @@ export interface CreateProductReferenceDto {
|
|
|
846
937
|
/** Customer's Canvas product specification identifier. */
|
|
847
938
|
productSpecificationId: number;
|
|
848
939
|
}
|
|
849
|
-
export interface ProblemDetails {
|
|
850
|
-
type?: string | null;
|
|
851
|
-
title?: string | null;
|
|
852
|
-
status?: number | null;
|
|
853
|
-
detail?: string | null;
|
|
854
|
-
instance?: string | null;
|
|
855
|
-
}
|
|
856
940
|
/** Dto class, containing information about product attribute. */
|
|
857
941
|
export interface ProductAttributeDto {
|
|
858
942
|
/** Product attribute name. */
|
|
@@ -876,6 +960,10 @@ export interface ProductSpecificationDto {
|
|
|
876
960
|
created?: string;
|
|
877
961
|
/** Product specification modification time. */
|
|
878
962
|
lastModified?: string | null;
|
|
963
|
+
/** Personalization workflow identifier. */
|
|
964
|
+
personalizationWorkflowId?: number;
|
|
965
|
+
/** Processing pipeline identifier. */
|
|
966
|
+
processingPipelineId?: number;
|
|
879
967
|
}
|
|
880
968
|
/** Dto class, containing information about storefront product cost details. */
|
|
881
969
|
export interface ProductCostDetailsDto {
|
|
@@ -896,6 +984,22 @@ export interface ProductCostDetailsDto {
|
|
|
896
984
|
/** Tenant identifier. */
|
|
897
985
|
tenantId?: number;
|
|
898
986
|
}
|
|
987
|
+
/** Type of editor that should be configured by workflow. */
|
|
988
|
+
export declare enum WorkflowType {
|
|
989
|
+
UIFramework = "UIFramework",
|
|
990
|
+
SimpleEditor = "SimpleEditor",
|
|
991
|
+
DesignEditor = "DesignEditor",
|
|
992
|
+
WorkflowElements = "WorkflowElements"
|
|
993
|
+
}
|
|
994
|
+
/** Personalization workflow description DTO. */
|
|
995
|
+
export interface PersonalizationWorkflowDto {
|
|
996
|
+
/** Workflow identifier. */
|
|
997
|
+
id?: number;
|
|
998
|
+
/** Processed workflow JSON. */
|
|
999
|
+
content?: string | null;
|
|
1000
|
+
/** Workflow type. */
|
|
1001
|
+
workflowType?: WorkflowType;
|
|
1002
|
+
}
|
|
899
1003
|
/** Paged list of items. */
|
|
900
1004
|
export interface PagedOfProductSpecificationDto {
|
|
901
1005
|
/** Items count. */
|
|
@@ -1296,8 +1400,10 @@ export interface TenantApplicationsInfoDto {
|
|
|
1296
1400
|
uiFrameworkUrl?: string | null;
|
|
1297
1401
|
/** An url to the 'Simple editor'. */
|
|
1298
1402
|
simpleEditorUrl?: string | null;
|
|
1299
|
-
/** An url to the '
|
|
1300
|
-
|
|
1403
|
+
/** An url to the 'Workflow Elements' web components library. */
|
|
1404
|
+
workflowElementsUrl?: string | null;
|
|
1405
|
+
/** An url to the 'Template editor'. */
|
|
1406
|
+
templateEditorUrl?: string | null;
|
|
1301
1407
|
/** An url to the 'Preflight' tenant application. */
|
|
1302
1408
|
preflightUrl?: string | null;
|
|
1303
1409
|
/** An url to the 'Dynamic Image' tenant application. */
|