@viu/emporix-sdk 2.34.0 → 2.36.0
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/CHANGELOG.md +98 -0
- package/README.md +22 -8
- package/dist/index.cjs +57 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +348 -12
- package/dist/index.d.ts +348 -12
- package/dist/index.js +57 -1
- package/dist/index.js.map +1 -1
- package/dist/orders.d.cts +29 -3
- package/dist/orders.d.ts +29 -3
- package/package.json +1 -1
package/dist/orders.d.cts
CHANGED
|
@@ -638,7 +638,9 @@ type TaxTotal = {
|
|
|
638
638
|
inclusive: boolean;
|
|
639
639
|
};
|
|
640
640
|
/**
|
|
641
|
-
* Product details.
|
|
641
|
+
* Product details stored on the order entry as a creation-time snapshot.
|
|
642
|
+
* For `DYNAMIC_VARIANT` products, the snapshot includes `parentVariantId`, `parentVariantPath`, `ownVariantAttributes`, `inheritedVariantAttributes`, and `sellable` when those fields are present on the source product. The fields are omitted when they are not present, for example on `BASIC` or `VARIANT` products.
|
|
643
|
+
*
|
|
642
644
|
*/
|
|
643
645
|
type Product = {
|
|
644
646
|
/**
|
|
@@ -672,9 +674,9 @@ type Product = {
|
|
|
672
674
|
*/
|
|
673
675
|
published?: boolean;
|
|
674
676
|
/**
|
|
675
|
-
* Type of the product
|
|
677
|
+
* Type of the product. Possible values: `BASIC`, `VARIANT`, `BUNDLE`, `DYNAMIC_VARIANT`.
|
|
676
678
|
*/
|
|
677
|
-
productType?: 'BASIC' | 'VARIANT' | 'BUNDLE';
|
|
679
|
+
productType?: 'BASIC' | 'VARIANT' | 'BUNDLE' | 'DYNAMIC_VARIANT';
|
|
678
680
|
/**
|
|
679
681
|
* The collection of products assigned to the bundle.
|
|
680
682
|
*/
|
|
@@ -690,6 +692,30 @@ type Product = {
|
|
|
690
692
|
mixins?: {
|
|
691
693
|
[key: string]: unknown;
|
|
692
694
|
};
|
|
695
|
+
/**
|
|
696
|
+
* Identifier of the immediate parent variant. Present only for `DYNAMIC_VARIANT` products that are not root variants.
|
|
697
|
+
*/
|
|
698
|
+
parentVariantId?: string;
|
|
699
|
+
/**
|
|
700
|
+
* Ancestor variant identifiers ordered from the direct parent (index 0) to the root variant. Present only for `DYNAMIC_VARIANT` products.
|
|
701
|
+
*/
|
|
702
|
+
parentVariantPath?: Array<string>;
|
|
703
|
+
/**
|
|
704
|
+
* Variant attributes defined on this `DYNAMIC_VARIANT` product.
|
|
705
|
+
*/
|
|
706
|
+
ownVariantAttributes?: {
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* Read-only variant attributes merged from ancestor variants of this `DYNAMIC_VARIANT` product.
|
|
711
|
+
*/
|
|
712
|
+
inheritedVariantAttributes?: {
|
|
713
|
+
[key: string]: unknown;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Flag indicating whether this `DYNAMIC_VARIANT` product can be sold. The value is set per product and is not inherited.
|
|
717
|
+
*/
|
|
718
|
+
sellable?: boolean;
|
|
693
719
|
metadata?: MixinsMetadata & {
|
|
694
720
|
[key: string]: unknown;
|
|
695
721
|
};
|
package/dist/orders.d.ts
CHANGED
|
@@ -638,7 +638,9 @@ type TaxTotal = {
|
|
|
638
638
|
inclusive: boolean;
|
|
639
639
|
};
|
|
640
640
|
/**
|
|
641
|
-
* Product details.
|
|
641
|
+
* Product details stored on the order entry as a creation-time snapshot.
|
|
642
|
+
* For `DYNAMIC_VARIANT` products, the snapshot includes `parentVariantId`, `parentVariantPath`, `ownVariantAttributes`, `inheritedVariantAttributes`, and `sellable` when those fields are present on the source product. The fields are omitted when they are not present, for example on `BASIC` or `VARIANT` products.
|
|
643
|
+
*
|
|
642
644
|
*/
|
|
643
645
|
type Product = {
|
|
644
646
|
/**
|
|
@@ -672,9 +674,9 @@ type Product = {
|
|
|
672
674
|
*/
|
|
673
675
|
published?: boolean;
|
|
674
676
|
/**
|
|
675
|
-
* Type of the product
|
|
677
|
+
* Type of the product. Possible values: `BASIC`, `VARIANT`, `BUNDLE`, `DYNAMIC_VARIANT`.
|
|
676
678
|
*/
|
|
677
|
-
productType?: 'BASIC' | 'VARIANT' | 'BUNDLE';
|
|
679
|
+
productType?: 'BASIC' | 'VARIANT' | 'BUNDLE' | 'DYNAMIC_VARIANT';
|
|
678
680
|
/**
|
|
679
681
|
* The collection of products assigned to the bundle.
|
|
680
682
|
*/
|
|
@@ -690,6 +692,30 @@ type Product = {
|
|
|
690
692
|
mixins?: {
|
|
691
693
|
[key: string]: unknown;
|
|
692
694
|
};
|
|
695
|
+
/**
|
|
696
|
+
* Identifier of the immediate parent variant. Present only for `DYNAMIC_VARIANT` products that are not root variants.
|
|
697
|
+
*/
|
|
698
|
+
parentVariantId?: string;
|
|
699
|
+
/**
|
|
700
|
+
* Ancestor variant identifiers ordered from the direct parent (index 0) to the root variant. Present only for `DYNAMIC_VARIANT` products.
|
|
701
|
+
*/
|
|
702
|
+
parentVariantPath?: Array<string>;
|
|
703
|
+
/**
|
|
704
|
+
* Variant attributes defined on this `DYNAMIC_VARIANT` product.
|
|
705
|
+
*/
|
|
706
|
+
ownVariantAttributes?: {
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* Read-only variant attributes merged from ancestor variants of this `DYNAMIC_VARIANT` product.
|
|
711
|
+
*/
|
|
712
|
+
inheritedVariantAttributes?: {
|
|
713
|
+
[key: string]: unknown;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Flag indicating whether this `DYNAMIC_VARIANT` product can be sold. The value is set per product and is not inherited.
|
|
717
|
+
*/
|
|
718
|
+
sellable?: boolean;
|
|
693
719
|
metadata?: MixinsMetadata & {
|
|
694
720
|
[key: string]: unknown;
|
|
695
721
|
};
|