@grafikr/shopify-typescript 2.1.1 → 2.3.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/package.json
CHANGED
package/type/json/LineItem.d.ts
CHANGED
|
@@ -8,9 +8,6 @@ export type ProductVariant = {
|
|
|
8
8
|
compare_at_price: string;
|
|
9
9
|
fulfillment_service: string;
|
|
10
10
|
inventory_management: string;
|
|
11
|
-
option1: string | null;
|
|
12
|
-
option2: string | null;
|
|
13
|
-
option3: string | null;
|
|
14
11
|
created_at: string;
|
|
15
12
|
updated_at: string;
|
|
16
13
|
taxable: boolean;
|
|
@@ -20,4 +17,12 @@ export type ProductVariant = {
|
|
|
20
17
|
weight: number;
|
|
21
18
|
weight_unit: 'g' | 'kg';
|
|
22
19
|
requires_shipping: boolean;
|
|
20
|
+
|
|
21
|
+
// Deprecated properties
|
|
22
|
+
/** @deprecated Prefer to use options instead. */
|
|
23
|
+
option1: string | null;
|
|
24
|
+
/** @deprecated Prefer to use options instead. */
|
|
25
|
+
option2: string | null;
|
|
26
|
+
/** @deprecated Prefer to use options instead. */
|
|
27
|
+
option3: string | null;
|
|
23
28
|
};
|
|
@@ -4,9 +4,6 @@ import type { FeaturedVariantMedia } from './FeaturedVariantMedia';
|
|
|
4
4
|
export type ProductVariant = {
|
|
5
5
|
id: number;
|
|
6
6
|
title: string;
|
|
7
|
-
option1: string;
|
|
8
|
-
option2: string | null;
|
|
9
|
-
option3: string | null;
|
|
10
7
|
sku: string | null;
|
|
11
8
|
requires_shipping: boolean;
|
|
12
9
|
taxable: boolean;
|
|
@@ -26,4 +23,12 @@ export type ProductVariant = {
|
|
|
26
23
|
max: number | null;
|
|
27
24
|
min: number;
|
|
28
25
|
};
|
|
26
|
+
|
|
27
|
+
// Deprecated properties
|
|
28
|
+
/** @deprecated Prefer to use options instead. */
|
|
29
|
+
option1: string | null;
|
|
30
|
+
/** @deprecated Prefer to use options instead. */
|
|
31
|
+
option2: string | null;
|
|
32
|
+
/** @deprecated Prefer to use options instead. */
|
|
33
|
+
option3: string | null;
|
|
29
34
|
};
|