@aurigma/axios-storefront-api-client 2.66.6 → 2.68.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Aurigma Customer's Canvas SDK - Storefront API Client
2
2
 
3
- This module is an Axios API client for Storefront API service which is a part of [**Customer's Canvas**](https://customerscanvas.com) web-to-print system. It is supposed that you are familiar with its services and understand how to use its APIs. To learn more about Customer's Canvas and its services, refer the [Getting Started section of its documentation](https://customerscanvas.com/dev/getting-started/intro.html).
3
+ This module is an Axios API client for Storefront API which is a part of [**Customer's Canvas**](https://customerscanvas.com) web-to-print system. It is supposed that you are familiar with its services and understand how to use its APIs. To learn more about Customer's Canvas and its services, refer the [Getting Started section of its documentation](https://customerscanvas.com/dev/getting-started/intro.html).
4
4
 
5
5
  The API client is automatically generated with [NSwag tool](https://github.com/RicoSuter/NSwag). If for any reasons this API client does not work well for you, feel free to generate it yourself using Swagger document published at [Customer's Canvas API Gateway](https://api.customerscanvashub.com/).
6
6
 
@@ -410,10 +410,11 @@ export interface IProductReferencesApiClient {
410
410
  * Returns a personalization parameters by the storefront product reference.
411
411
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
412
412
  * @param storefrontId Storefront identifier.
413
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
413
414
  * @param tenantId (optional) Tenant identifier.
414
415
  * @return Success
415
416
  */
416
- getPersonalizationParameters(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
417
+ getPersonalizationParameters(reference: string | null, storefrontId: number, designId?: string | null | undefined, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
417
418
  /**
418
419
  * Returns a product specification by the storefront product reference.
419
420
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
@@ -600,10 +601,11 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
600
601
  * Returns a personalization parameters by the storefront product reference.
601
602
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
602
603
  * @param storefrontId Storefront identifier.
604
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
603
605
  * @param tenantId (optional) Tenant identifier.
604
606
  * @return Success
605
607
  */
606
- getPersonalizationParameters(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
608
+ getPersonalizationParameters(reference: string | null, storefrontId: number, designId?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
607
609
  protected processGetPersonalizationParameters(response: AxiosResponse): Promise<PersonalizationParametersDto>;
608
610
  /**
609
611
  * Returns a product specification by the storefront product reference.
@@ -701,10 +703,11 @@ export interface IProductsApiClient {
701
703
  * Returns a product personalization parameters by product identifier.
702
704
  * @param id Product identifier.
703
705
  * @param productVersionId (optional) Product version identifier.
706
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
704
707
  * @param tenantId (optional) Tenant identifier.
705
708
  * @return Success
706
709
  */
707
- getPersonalizationParameters(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
710
+ getPersonalizationParameters(id: number, productVersionId?: number | null | undefined, designId?: string | null | undefined, tenantId?: number | null | undefined): Promise<PersonalizationParametersDto>;
708
711
  /**
709
712
  * Returns a product summary by product identifier.
710
713
  * @param id Product identifier.
@@ -886,10 +889,11 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
886
889
  * Returns a product personalization parameters by product identifier.
887
890
  * @param id Product identifier.
888
891
  * @param productVersionId (optional) Product version identifier.
892
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
889
893
  * @param tenantId (optional) Tenant identifier.
890
894
  * @return Success
891
895
  */
892
- getPersonalizationParameters(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
896
+ getPersonalizationParameters(id: number, productVersionId?: number | null | undefined, designId?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationParametersDto>;
893
897
  protected processGetPersonalizationParameters(response: AxiosResponse): Promise<PersonalizationParametersDto>;
894
898
  /**
895
899
  * Returns a product summary by product identifier.
@@ -2422,6 +2426,8 @@ export interface ProductVariantDesignDto {
2422
2426
  price?: number | null;
2423
2427
  /** Product variant sort index. */
2424
2428
  sortIndex?: number;
2429
+ /** Design-specific personalization workflow identifier. */
2430
+ personalizationWorkflowId?: number | null;
2425
2431
  /** Product variant identifier (usually SKU) in storefront / online store. */
2426
2432
  storefrontProductVariantId?: string | null;
2427
2433
  /** Product variant SKU. */
@@ -1830,10 +1830,11 @@ class ProductReferencesApiClient extends ApiClientBase {
1830
1830
  * Returns a personalization parameters by the storefront product reference.
1831
1831
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
1832
1832
  * @param storefrontId Storefront identifier.
1833
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
1833
1834
  * @param tenantId (optional) Tenant identifier.
1834
1835
  * @return Success
1835
1836
  */
1836
- getPersonalizationParameters(reference, storefrontId, tenantId, cancelToken) {
1837
+ getPersonalizationParameters(reference, storefrontId, designId, tenantId, cancelToken) {
1837
1838
  let url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/personalization-parameters?";
1838
1839
  if (reference === undefined || reference === null)
1839
1840
  throw new Error("The parameter 'reference' must be defined.");
@@ -1842,6 +1843,8 @@ class ProductReferencesApiClient extends ApiClientBase {
1842
1843
  throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1843
1844
  else
1844
1845
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1846
+ if (designId !== undefined && designId !== null)
1847
+ url_ += "designId=" + encodeURIComponent("" + designId) + "&";
1845
1848
  if (tenantId !== undefined && tenantId !== null)
1846
1849
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1847
1850
  url_ = url_.replace(/[?&]$/, "");
@@ -2709,16 +2712,19 @@ class ProductsApiClient extends ApiClientBase {
2709
2712
  * Returns a product personalization parameters by product identifier.
2710
2713
  * @param id Product identifier.
2711
2714
  * @param productVersionId (optional) Product version identifier.
2715
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
2712
2716
  * @param tenantId (optional) Tenant identifier.
2713
2717
  * @return Success
2714
2718
  */
2715
- getPersonalizationParameters(id, productVersionId, tenantId, cancelToken) {
2719
+ getPersonalizationParameters(id, productVersionId, designId, tenantId, cancelToken) {
2716
2720
  let url_ = this.baseUrl + "/api/storefront/v1/products/{id}/personalization-parameters?";
2717
2721
  if (id === undefined || id === null)
2718
2722
  throw new Error("The parameter 'id' must be defined.");
2719
2723
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2720
2724
  if (productVersionId !== undefined && productVersionId !== null)
2721
2725
  url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
2726
+ if (designId !== undefined && designId !== null)
2727
+ url_ += "designId=" + encodeURIComponent("" + designId) + "&";
2722
2728
  if (tenantId !== undefined && tenantId !== null)
2723
2729
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2724
2730
  url_ = url_.replace(/[?&]$/, "");