@grafikr/shopify-typescript 2.3.1 → 2.5.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.
|
@@ -2,6 +2,7 @@ type YesNo = '' | 'yes' | 'no';
|
|
|
2
2
|
|
|
3
3
|
export type CustomerPrivacy = {
|
|
4
4
|
analyticsProcessingAllowed(): boolean;
|
|
5
|
+
consentId(): string;
|
|
5
6
|
currentVisitorConsent(): {
|
|
6
7
|
marketing: YesNo;
|
|
7
8
|
analytics: YesNo;
|
|
@@ -12,6 +13,8 @@ export type CustomerPrivacy = {
|
|
|
12
13
|
doesMerchantSupportGranularConsent(): boolean;
|
|
13
14
|
firstPartyMarketingAllowed(): boolean;
|
|
14
15
|
getCCPAConsent(): YesNo;
|
|
16
|
+
/** Returns a ISO 3166-2-formatted string with a two character country code, followed by an optional one to three character region code. Returns an empty string if the location can't be determined. */
|
|
17
|
+
getRegion(): string;
|
|
15
18
|
getRegulation(): string;
|
|
16
19
|
getShopPrefs(): { limit: Array<string> };
|
|
17
20
|
getTrackingConsent(): YesNo;
|
package/package.json
CHANGED
|
@@ -16,6 +16,14 @@ export type ProductVariant = {
|
|
|
16
16
|
image_id: number | null;
|
|
17
17
|
weight: number;
|
|
18
18
|
weight_unit: 'g' | 'kg';
|
|
19
|
+
unit_price?: string;
|
|
20
|
+
unit_price_measurement?: {
|
|
21
|
+
measured_type: string;
|
|
22
|
+
quantity_value: string;
|
|
23
|
+
quantity_unit: string;
|
|
24
|
+
reference_value: number;
|
|
25
|
+
reference_unit: string;
|
|
26
|
+
};
|
|
19
27
|
requires_shipping: boolean;
|
|
20
28
|
|
|
21
29
|
// Deprecated properties
|
|
@@ -23,6 +23,14 @@ export type ProductVariant = {
|
|
|
23
23
|
max: number | null;
|
|
24
24
|
min: number;
|
|
25
25
|
};
|
|
26
|
+
unit_price?: string;
|
|
27
|
+
unit_price_measurement?: {
|
|
28
|
+
measured_type: string;
|
|
29
|
+
quantity_value: string;
|
|
30
|
+
quantity_unit: string;
|
|
31
|
+
reference_value: number;
|
|
32
|
+
reference_unit: string;
|
|
33
|
+
};
|
|
26
34
|
|
|
27
35
|
// Deprecated properties
|
|
28
36
|
/** @deprecated Prefer to use options instead. */
|