@aurigma/axios-storefront-api-client 2.62.12 → 2.63.14
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 +133 -10
- package/dist/cjs/storefront-api-client.js +434 -12
- package/dist/cjs/storefront-api-client.js.map +1 -1
- package/dist/esm/storefront-api-client.d.ts +133 -10
- package/dist/esm/storefront-api-client.js +433 -11
- package/dist/esm/storefront-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -105,6 +105,14 @@ export interface IProductBundlesApiClient {
|
|
|
105
105
|
* @return Success
|
|
106
106
|
*/
|
|
107
107
|
getProductBundle(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProductBundleDto>;
|
|
108
|
+
/**
|
|
109
|
+
* Returns a product bundle personalization parameters by product identifier.
|
|
110
|
+
* @param id Product bundle identifier.
|
|
111
|
+
* @param productBundleVersionId (optional) Product bundle version identifier.
|
|
112
|
+
* @param tenantId (optional) Tenant identifier.
|
|
113
|
+
* @return Success
|
|
114
|
+
*/
|
|
115
|
+
getProductBundlePersonalizationParameters(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
|
|
108
116
|
/**
|
|
109
117
|
* Returns a product bundle summary by product bundle identifier.
|
|
110
118
|
* @param id Product bundle identifier.
|
|
@@ -150,6 +158,15 @@ export declare class ProductBundlesApiClient extends ApiClientBase implements IP
|
|
|
150
158
|
*/
|
|
151
159
|
getProductBundle(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductBundleDto>;
|
|
152
160
|
protected processGetProductBundle(response: AxiosResponse): Promise<ProductBundleDto>;
|
|
161
|
+
/**
|
|
162
|
+
* Returns a product bundle personalization parameters by product identifier.
|
|
163
|
+
* @param id Product bundle identifier.
|
|
164
|
+
* @param productBundleVersionId (optional) Product bundle version identifier.
|
|
165
|
+
* @param tenantId (optional) Tenant identifier.
|
|
166
|
+
* @return Success
|
|
167
|
+
*/
|
|
168
|
+
getProductBundlePersonalizationParameters(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
|
|
169
|
+
protected processGetProductBundlePersonalizationParameters(response: AxiosResponse): Promise<PersonalizationParametersDto>;
|
|
153
170
|
/**
|
|
154
171
|
* Returns a product bundle summary by product bundle identifier.
|
|
155
172
|
* @param id Product bundle identifier.
|
|
@@ -191,6 +208,14 @@ export interface IProductLinksApiClient {
|
|
|
191
208
|
* @return Success
|
|
192
209
|
*/
|
|
193
210
|
getProductLink(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProductLinkDto>;
|
|
211
|
+
/**
|
|
212
|
+
* Returns a product link personalization parameters by product identifier.
|
|
213
|
+
* @param id Product link identifier.
|
|
214
|
+
* @param productLinkVersionId (optional) Product link version identifier.
|
|
215
|
+
* @param tenantId (optional) Tenant identifier.
|
|
216
|
+
* @return Success
|
|
217
|
+
*/
|
|
218
|
+
getProductLinkPersonalizationParameters(id: number, productLinkVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
|
|
194
219
|
/**
|
|
195
220
|
* Returns a product link summary by product link identifier.
|
|
196
221
|
* @param id Product link identifier.
|
|
@@ -239,6 +264,15 @@ export declare class ProductLinksApiClient extends ApiClientBase implements IPro
|
|
|
239
264
|
*/
|
|
240
265
|
getProductLink(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductLinkDto>;
|
|
241
266
|
protected processGetProductLink(response: AxiosResponse): Promise<ProductLinkDto>;
|
|
267
|
+
/**
|
|
268
|
+
* Returns a product link personalization parameters by product identifier.
|
|
269
|
+
* @param id Product link identifier.
|
|
270
|
+
* @param productLinkVersionId (optional) Product link version identifier.
|
|
271
|
+
* @param tenantId (optional) Tenant identifier.
|
|
272
|
+
* @return Success
|
|
273
|
+
*/
|
|
274
|
+
getProductLinkPersonalizationParameters(id: number, productLinkVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
|
|
275
|
+
protected processGetProductLinkPersonalizationParameters(response: AxiosResponse): Promise<PersonalizationParametersDto>;
|
|
242
276
|
/**
|
|
243
277
|
* Returns a product link summary by product link identifier.
|
|
244
278
|
* @param id Product link identifier.
|
|
@@ -372,6 +406,14 @@ export interface IProductReferencesApiClient {
|
|
|
372
406
|
* @return Success
|
|
373
407
|
*/
|
|
374
408
|
get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<ProductReferenceDto>;
|
|
409
|
+
/**
|
|
410
|
+
* Returns a personalization parameters by the storefront product reference.
|
|
411
|
+
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
|
|
412
|
+
* @param storefrontId Storefront identifier.
|
|
413
|
+
* @param tenantId (optional) Tenant identifier.
|
|
414
|
+
* @return Success
|
|
415
|
+
*/
|
|
416
|
+
getPersonalizationParameters(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
|
|
375
417
|
/**
|
|
376
418
|
* Returns a product specification by the storefront product reference.
|
|
377
419
|
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
|
|
@@ -554,6 +596,15 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
|
|
|
554
596
|
*/
|
|
555
597
|
get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductReferenceDto>;
|
|
556
598
|
protected processGet(response: AxiosResponse): Promise<ProductReferenceDto>;
|
|
599
|
+
/**
|
|
600
|
+
* Returns a personalization parameters by the storefront product reference.
|
|
601
|
+
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
|
|
602
|
+
* @param storefrontId Storefront identifier.
|
|
603
|
+
* @param tenantId (optional) Tenant identifier.
|
|
604
|
+
* @return Success
|
|
605
|
+
*/
|
|
606
|
+
getPersonalizationParameters(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
|
|
607
|
+
protected processGetPersonalizationParameters(response: AxiosResponse): Promise<PersonalizationParametersDto>;
|
|
557
608
|
/**
|
|
558
609
|
* Returns a product specification by the storefront product reference.
|
|
559
610
|
* @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
|
|
@@ -646,6 +697,14 @@ export interface IProductsApiClient {
|
|
|
646
697
|
* @return Success
|
|
647
698
|
*/
|
|
648
699
|
getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProductDto>;
|
|
700
|
+
/**
|
|
701
|
+
* Returns a product personalization parameters by product identifier.
|
|
702
|
+
* @param id Product identifier.
|
|
703
|
+
* @param productVersionId (optional) Product version identifier.
|
|
704
|
+
* @param tenantId (optional) Tenant identifier.
|
|
705
|
+
* @return Success
|
|
706
|
+
*/
|
|
707
|
+
getProductSummary(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
|
|
649
708
|
/**
|
|
650
709
|
* Returns a product summary by product identifier.
|
|
651
710
|
* @param id Product identifier.
|
|
@@ -656,7 +715,7 @@ export interface IProductsApiClient {
|
|
|
656
715
|
* @param tenantId (optional) Tenant identifier.
|
|
657
716
|
* @return Success
|
|
658
717
|
*/
|
|
659
|
-
|
|
718
|
+
getProductSummary2(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Promise<ProductSummaryDto>;
|
|
660
719
|
/**
|
|
661
720
|
* Returns a list of product options.
|
|
662
721
|
* @param id Product identifier.
|
|
@@ -823,6 +882,15 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
|
|
|
823
882
|
*/
|
|
824
883
|
getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductDto>;
|
|
825
884
|
protected processGetProduct(response: AxiosResponse): Promise<ProductDto>;
|
|
885
|
+
/**
|
|
886
|
+
* Returns a product personalization parameters by product identifier.
|
|
887
|
+
* @param id Product identifier.
|
|
888
|
+
* @param productVersionId (optional) Product version identifier.
|
|
889
|
+
* @param tenantId (optional) Tenant identifier.
|
|
890
|
+
* @return Success
|
|
891
|
+
*/
|
|
892
|
+
getProductSummary(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
|
|
893
|
+
protected processGetProductSummary(response: AxiosResponse): Promise<PersonalizationParametersDto>;
|
|
826
894
|
/**
|
|
827
895
|
* Returns a product summary by product identifier.
|
|
828
896
|
* @param id Product identifier.
|
|
@@ -833,8 +901,8 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
|
|
|
833
901
|
* @param tenantId (optional) Tenant identifier.
|
|
834
902
|
* @return Success
|
|
835
903
|
*/
|
|
836
|
-
|
|
837
|
-
protected
|
|
904
|
+
getProductSummary2(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSummaryDto>;
|
|
905
|
+
protected processGetProductSummary2(response: AxiosResponse): Promise<ProductSummaryDto>;
|
|
838
906
|
/**
|
|
839
907
|
* Returns a list of product options.
|
|
840
908
|
* @param id Product identifier.
|
|
@@ -1003,6 +1071,13 @@ export interface IProductSpecificationsApiClient {
|
|
|
1003
1071
|
* @return Success
|
|
1004
1072
|
*/
|
|
1005
1073
|
get(id: number, tenantId?: number | null | undefined): Promise<ProductSpecificationDto>;
|
|
1074
|
+
/**
|
|
1075
|
+
* Returns a product specification personalization parameters by product identifier.
|
|
1076
|
+
* @param id Product specification identifier.
|
|
1077
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1078
|
+
* @return Success
|
|
1079
|
+
*/
|
|
1080
|
+
getProductSpecificationSummary(id: number, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
|
|
1006
1081
|
/**
|
|
1007
1082
|
* Returns a product personalization workflow description by product specification identifier.
|
|
1008
1083
|
* @param id Product specification identifier.
|
|
@@ -1035,6 +1110,14 @@ export declare class ProductSpecificationsApiClient extends ApiClientBase implem
|
|
|
1035
1110
|
*/
|
|
1036
1111
|
get(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSpecificationDto>;
|
|
1037
1112
|
protected processGet(response: AxiosResponse): Promise<ProductSpecificationDto>;
|
|
1113
|
+
/**
|
|
1114
|
+
* Returns a product specification personalization parameters by product identifier.
|
|
1115
|
+
* @param id Product specification identifier.
|
|
1116
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1117
|
+
* @return Success
|
|
1118
|
+
*/
|
|
1119
|
+
getProductSpecificationSummary(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
|
|
1120
|
+
protected processGetProductSpecificationSummary(response: AxiosResponse): Promise<PersonalizationParametersDto>;
|
|
1038
1121
|
/**
|
|
1039
1122
|
* Returns a product personalization workflow description by product specification identifier.
|
|
1040
1123
|
* @param id Product specification identifier.
|
|
@@ -1760,6 +1843,49 @@ export interface GeneralConflictDto {
|
|
|
1760
1843
|
/** Coflict type. */
|
|
1761
1844
|
type?: ConflictType;
|
|
1762
1845
|
}
|
|
1846
|
+
/** Customer's Canvas product type. */
|
|
1847
|
+
export declare enum ProductType {
|
|
1848
|
+
ProductSpecification = "ProductSpecification",
|
|
1849
|
+
Product = "Product",
|
|
1850
|
+
ProductLink = "ProductLink",
|
|
1851
|
+
ProductBundle = "ProductBundle"
|
|
1852
|
+
}
|
|
1853
|
+
/** Type of editor that should be configured by workflow. */
|
|
1854
|
+
export declare enum WorkflowType {
|
|
1855
|
+
UIFramework = "UIFramework",
|
|
1856
|
+
SimpleEditor = "SimpleEditor",
|
|
1857
|
+
DesignEditor = "DesignEditor",
|
|
1858
|
+
WorkflowElements = "WorkflowElements"
|
|
1859
|
+
}
|
|
1860
|
+
/** DTO class, containing information needed to start personalization process. */
|
|
1861
|
+
export interface PersonalizationParametersDto {
|
|
1862
|
+
/** Customer's Canvas product type. */
|
|
1863
|
+
productType?: ProductType;
|
|
1864
|
+
/** Customer's Canvas product identifier.
|
|
1865
|
+
May keep reference to `Product`, `Product Specification`, `Product Link` or `Product Bundle` (depending on `Type` value). */
|
|
1866
|
+
id?: number | null;
|
|
1867
|
+
/** Customer's Canvas product version identifier.
|
|
1868
|
+
May keep reference to version of `Product`, `Product Link` or `Product Bundle` (depending on `Type` value). */
|
|
1869
|
+
versionId?: number | null;
|
|
1870
|
+
/** API Gateway URL address. */
|
|
1871
|
+
apiGatewayUrl?: string | null;
|
|
1872
|
+
/** Design Editor application URL address. */
|
|
1873
|
+
designEditorUrl?: string | null;
|
|
1874
|
+
/** Preflight application URL address. */
|
|
1875
|
+
preflightUrl?: string | null;
|
|
1876
|
+
/** Dynamic Image application URL address. */
|
|
1877
|
+
dynamicImageUrl?: string | null;
|
|
1878
|
+
/** Link to UI-Framework bundle. */
|
|
1879
|
+
uiFrameworkUrl?: string | null;
|
|
1880
|
+
/** Link to Simple Editor bundle. */
|
|
1881
|
+
simpleEditorUrl?: string | null;
|
|
1882
|
+
/** Link to Workflow Elements bundle. */
|
|
1883
|
+
workflowElementsUrl?: string | null;
|
|
1884
|
+
/** Personalization workflow type. */
|
|
1885
|
+
workflowType?: WorkflowType;
|
|
1886
|
+
/** Serialized content of compiled personalization workflow. */
|
|
1887
|
+
workflowContent?: string | null;
|
|
1888
|
+
}
|
|
1763
1889
|
/** Available appearance types. */
|
|
1764
1890
|
export declare enum AppearanceDataType {
|
|
1765
1891
|
Radio = "Radio",
|
|
@@ -1858,6 +1984,8 @@ export interface ProductSummaryDto {
|
|
|
1858
1984
|
productVariantSku?: string | null;
|
|
1859
1985
|
/** Product variant price. If product variant is not specified, should be null. */
|
|
1860
1986
|
productVariantPrice?: number | null;
|
|
1987
|
+
/** Product variant weight. If product variant is not specified, should be null. */
|
|
1988
|
+
productVariantWeight?: number | null;
|
|
1861
1989
|
/** Product variant availability. If product variant is not specified, should be null. */
|
|
1862
1990
|
isProductVariantAvailable?: boolean | null;
|
|
1863
1991
|
/** Product name. If product link is specified, name of link will be used. */
|
|
@@ -1882,13 +2010,6 @@ export interface ProductSummaryDto {
|
|
|
1882
2010
|
If product link or variant is specified, product options will be filtered by link or variant options. */
|
|
1883
2011
|
options?: ProductSummaryOptionDto[] | null;
|
|
1884
2012
|
}
|
|
1885
|
-
/** Type of editor that should be configured by workflow. */
|
|
1886
|
-
export declare enum WorkflowType {
|
|
1887
|
-
UIFramework = "UIFramework",
|
|
1888
|
-
SimpleEditor = "SimpleEditor",
|
|
1889
|
-
DesignEditor = "DesignEditor",
|
|
1890
|
-
WorkflowElements = "WorkflowElements"
|
|
1891
|
-
}
|
|
1892
2013
|
/** Personalization workflow description DTO. */
|
|
1893
2014
|
export interface PersonalizationWorkflowDto {
|
|
1894
2015
|
/** Workflow identifier. */
|
|
@@ -2233,6 +2354,8 @@ export interface ProductVariantDto {
|
|
|
2233
2354
|
isAvailable?: boolean;
|
|
2234
2355
|
/** Product variant price. */
|
|
2235
2356
|
price?: number | null;
|
|
2357
|
+
/** Product variant weight. */
|
|
2358
|
+
weight?: number | null;
|
|
2236
2359
|
/** Product variant sort index. */
|
|
2237
2360
|
sortIndex?: number;
|
|
2238
2361
|
/** Product variant identifier (usually SKU) in storefront / online store. */
|