@aurigma/axios-storefront-api-client 2.60.2 → 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 +147 -14
- package/dist/cjs/storefront-api-client.js +443 -14
- package/dist/cjs/storefront-api-client.js.map +1 -1
- package/dist/esm/storefront-api-client.d.ts +147 -14
- package/dist/esm/storefront-api-client.js +442 -13
- 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.
|
|
@@ -674,7 +733,7 @@ export interface IProductsApiClient {
|
|
|
674
733
|
/**
|
|
675
734
|
* Returns a list of product links.
|
|
676
735
|
* @param id Product identifier.
|
|
677
|
-
* @param productVersionId (optional)
|
|
736
|
+
* @param productVersionId (optional) Product version identifier.
|
|
678
737
|
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
679
738
|
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
|
|
680
739
|
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
@@ -687,7 +746,7 @@ export interface IProductsApiClient {
|
|
|
687
746
|
* Returns a product link.
|
|
688
747
|
* @param id Product identifier.
|
|
689
748
|
* @param productLinkId Product link identifier.
|
|
690
|
-
* @param productVersionId (optional)
|
|
749
|
+
* @param productVersionId (optional) Product version identifier.
|
|
691
750
|
* @param tenantId (optional) Tenant identifier.
|
|
692
751
|
* @return Success
|
|
693
752
|
*/
|
|
@@ -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.
|
|
@@ -854,7 +922,7 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
|
|
|
854
922
|
/**
|
|
855
923
|
* Returns a list of product links.
|
|
856
924
|
* @param id Product identifier.
|
|
857
|
-
* @param productVersionId (optional)
|
|
925
|
+
* @param productVersionId (optional) Product version identifier.
|
|
858
926
|
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
859
927
|
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
|
|
860
928
|
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
@@ -868,7 +936,7 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
|
|
|
868
936
|
* Returns a product link.
|
|
869
937
|
* @param id Product identifier.
|
|
870
938
|
* @param productLinkId Product link identifier.
|
|
871
|
-
* @param productVersionId (optional)
|
|
939
|
+
* @param productVersionId (optional) Product version identifier.
|
|
872
940
|
* @param tenantId (optional) Tenant identifier.
|
|
873
941
|
* @return Success
|
|
874
942
|
*/
|
|
@@ -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.
|
|
@@ -1687,6 +1770,10 @@ export interface ProductBundleResourceDto {
|
|
|
1687
1770
|
export interface ProductBundleItemDto {
|
|
1688
1771
|
/** Product bundle item identifier. */
|
|
1689
1772
|
id?: number;
|
|
1773
|
+
/** Product bundle item name. */
|
|
1774
|
+
name?: string | null;
|
|
1775
|
+
/** Product bundle item description. */
|
|
1776
|
+
description?: string | null;
|
|
1690
1777
|
/** Bundled product identifier. */
|
|
1691
1778
|
productId?: number | null;
|
|
1692
1779
|
/** Bundled product version identifier. */
|
|
@@ -1756,6 +1843,49 @@ export interface GeneralConflictDto {
|
|
|
1756
1843
|
/** Coflict type. */
|
|
1757
1844
|
type?: ConflictType;
|
|
1758
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
|
+
}
|
|
1759
1889
|
/** Available appearance types. */
|
|
1760
1890
|
export declare enum AppearanceDataType {
|
|
1761
1891
|
Radio = "Radio",
|
|
@@ -1854,6 +1984,8 @@ export interface ProductSummaryDto {
|
|
|
1854
1984
|
productVariantSku?: string | null;
|
|
1855
1985
|
/** Product variant price. If product variant is not specified, should be null. */
|
|
1856
1986
|
productVariantPrice?: number | null;
|
|
1987
|
+
/** Product variant weight. If product variant is not specified, should be null. */
|
|
1988
|
+
productVariantWeight?: number | null;
|
|
1857
1989
|
/** Product variant availability. If product variant is not specified, should be null. */
|
|
1858
1990
|
isProductVariantAvailable?: boolean | null;
|
|
1859
1991
|
/** Product name. If product link is specified, name of link will be used. */
|
|
@@ -1878,13 +2010,6 @@ export interface ProductSummaryDto {
|
|
|
1878
2010
|
If product link or variant is specified, product options will be filtered by link or variant options. */
|
|
1879
2011
|
options?: ProductSummaryOptionDto[] | null;
|
|
1880
2012
|
}
|
|
1881
|
-
/** Type of editor that should be configured by workflow. */
|
|
1882
|
-
export declare enum WorkflowType {
|
|
1883
|
-
UIFramework = "UIFramework",
|
|
1884
|
-
SimpleEditor = "SimpleEditor",
|
|
1885
|
-
DesignEditor = "DesignEditor",
|
|
1886
|
-
WorkflowElements = "WorkflowElements"
|
|
1887
|
-
}
|
|
1888
2013
|
/** Personalization workflow description DTO. */
|
|
1889
2014
|
export interface PersonalizationWorkflowDto {
|
|
1890
2015
|
/** Workflow identifier. */
|
|
@@ -2229,6 +2354,8 @@ export interface ProductVariantDto {
|
|
|
2229
2354
|
isAvailable?: boolean;
|
|
2230
2355
|
/** Product variant price. */
|
|
2231
2356
|
price?: number | null;
|
|
2357
|
+
/** Product variant weight. */
|
|
2358
|
+
weight?: number | null;
|
|
2232
2359
|
/** Product variant sort index. */
|
|
2233
2360
|
sortIndex?: number;
|
|
2234
2361
|
/** Product variant identifier (usually SKU) in storefront / online store. */
|
|
@@ -2351,6 +2478,8 @@ export interface ProductVariantMockupDto {
|
|
|
2351
2478
|
mockupId?: string | null;
|
|
2352
2479
|
/** Mockup name. */
|
|
2353
2480
|
mockupName?: string | null;
|
|
2481
|
+
/** Mockup validation type. */
|
|
2482
|
+
mockupValidationType?: string | null;
|
|
2354
2483
|
/** Mockup type. */
|
|
2355
2484
|
mockupType?: ProductVariantMockupType;
|
|
2356
2485
|
/** Surface index indicates a surface of a design to which mockup should be applied. */
|
|
@@ -2442,6 +2571,8 @@ export interface ProjectItemDto {
|
|
|
2442
2571
|
id?: number;
|
|
2443
2572
|
/** Item name. */
|
|
2444
2573
|
name?: string | null;
|
|
2574
|
+
/** Project item group identifier. */
|
|
2575
|
+
groupId?: string | null;
|
|
2445
2576
|
/** Item quantity information. */
|
|
2446
2577
|
quantity?: number | null;
|
|
2447
2578
|
/** Order item identifier from storefront order. */
|
|
@@ -2545,6 +2676,8 @@ May keep reference to version of `Product` (depending on `Type` value). */
|
|
|
2545
2676
|
export interface ProjectItemParametersDto {
|
|
2546
2677
|
/** Item name. */
|
|
2547
2678
|
name?: string | null;
|
|
2679
|
+
/** Project item group identifier. */
|
|
2680
|
+
groupId?: string | null;
|
|
2548
2681
|
/** Item quantity information. */
|
|
2549
2682
|
quantity?: number | null;
|
|
2550
2683
|
/** Line item index from ecommerce system order. */
|