gantri-components 2.129.0-beta.2 → 2.129.0-beta.3

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.
@@ -1,6 +1,6 @@
1
1
  import { GenerateSkusForProductIdProps } from './generate-skus-for-product-id.types';
2
2
  /**
3
- * Provide all of a product's options (available colors are automatically configured based on product ID) and get all possible skus back.
3
+ * Provide all of a product's options (if `isPainted` is `true`, available colors are automatically configured based on product ID) and get all possible skus back.
4
4
  *
5
5
  * *`variants` must be input in the same index order they were provided in!*
6
6
  *
@@ -8,6 +8,7 @@ import { GenerateSkusForProductIdProps } from './generate-skus-for-product-id.ty
8
8
  *
9
9
  * // options as strings
10
10
  * const sku = generateSkusForProductId({
11
+ * isPainted: true,
11
12
  * productId: 123456,
12
13
  * size: 'sm',
13
14
  * variants: [
@@ -18,6 +19,7 @@ import { GenerateSkusForProductIdProps } from './generate-skus-for-product-id.ty
18
19
  *
19
20
  * // options as code objects
20
21
  * const sku = generateSkusForProductId({
22
+ * isPainted: true,
21
23
  * productId: 123456,
22
24
  * size: { code: 'sm' },
23
25
  * variants: [
@@ -1,5 +1,6 @@
1
1
  import { ProductOption } from '../generate-skus.types';
2
2
  export interface GenerateSkusForProductIdProps {
3
+ isPainted: boolean;
3
4
  productId: number;
4
5
  size: ProductOption;
5
6
  variants: ProductOption[][] | null | undefined;