@aurigma/axios-storefront-api-client 2.66.1 → 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.
@@ -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. */
@@ -1821,10 +1821,11 @@ export class ProductReferencesApiClient extends ApiClientBase {
1821
1821
  * Returns a personalization parameters by the storefront product reference.
1822
1822
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
1823
1823
  * @param storefrontId Storefront identifier.
1824
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
1824
1825
  * @param tenantId (optional) Tenant identifier.
1825
1826
  * @return Success
1826
1827
  */
1827
- getPersonalizationParameters(reference, storefrontId, tenantId, cancelToken) {
1828
+ getPersonalizationParameters(reference, storefrontId, designId, tenantId, cancelToken) {
1828
1829
  let url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/personalization-parameters?";
1829
1830
  if (reference === undefined || reference === null)
1830
1831
  throw new Error("The parameter 'reference' must be defined.");
@@ -1833,6 +1834,8 @@ export class ProductReferencesApiClient extends ApiClientBase {
1833
1834
  throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1834
1835
  else
1835
1836
  url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1837
+ if (designId !== undefined && designId !== null)
1838
+ url_ += "designId=" + encodeURIComponent("" + designId) + "&";
1836
1839
  if (tenantId !== undefined && tenantId !== null)
1837
1840
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1838
1841
  url_ = url_.replace(/[?&]$/, "");
@@ -2699,16 +2702,19 @@ export class ProductsApiClient extends ApiClientBase {
2699
2702
  * Returns a product personalization parameters by product identifier.
2700
2703
  * @param id Product identifier.
2701
2704
  * @param productVersionId (optional) Product version identifier.
2705
+ * @param designId (optional) Design identifier (for PIM products with design-specific workflows).
2702
2706
  * @param tenantId (optional) Tenant identifier.
2703
2707
  * @return Success
2704
2708
  */
2705
- getPersonalizationParameters(id, productVersionId, tenantId, cancelToken) {
2709
+ getPersonalizationParameters(id, productVersionId, designId, tenantId, cancelToken) {
2706
2710
  let url_ = this.baseUrl + "/api/storefront/v1/products/{id}/personalization-parameters?";
2707
2711
  if (id === undefined || id === null)
2708
2712
  throw new Error("The parameter 'id' must be defined.");
2709
2713
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
2710
2714
  if (productVersionId !== undefined && productVersionId !== null)
2711
2715
  url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
2716
+ if (designId !== undefined && designId !== null)
2717
+ url_ += "designId=" + encodeURIComponent("" + designId) + "&";
2712
2718
  if (tenantId !== undefined && tenantId !== null)
2713
2719
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2714
2720
  url_ = url_.replace(/[?&]$/, "");