@betterstore/sdk 0.3.44 → 0.3.46
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 +12 -0
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -40,9 +40,13 @@ interface VariantOption {
|
|
|
40
40
|
}
|
|
41
41
|
interface ProductVariant {
|
|
42
42
|
title: string;
|
|
43
|
+
images: string[];
|
|
44
|
+
trackInventory: boolean;
|
|
43
45
|
sku?: string;
|
|
44
46
|
barcode?: string;
|
|
45
|
-
|
|
47
|
+
stockAvailable: number;
|
|
48
|
+
stockCommited: number;
|
|
49
|
+
stockUnavailable: number;
|
|
46
50
|
isPhysical: boolean;
|
|
47
51
|
weightInGrams?: number;
|
|
48
52
|
heightInCm?: number;
|
|
@@ -73,6 +77,9 @@ interface Product {
|
|
|
73
77
|
widthInCm?: number;
|
|
74
78
|
lengthInCm?: number;
|
|
75
79
|
priceInCents: number;
|
|
80
|
+
trackInventory: boolean;
|
|
81
|
+
sku?: string;
|
|
82
|
+
barcode?: string;
|
|
76
83
|
stockAvailable: number;
|
|
77
84
|
stockCommited: number;
|
|
78
85
|
stockUnavailable: number;
|
|
@@ -97,7 +104,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
97
104
|
clientSecret: string;
|
|
98
105
|
}
|
|
99
106
|
|
|
100
|
-
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
107
|
+
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
101
108
|
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
102
109
|
};
|
|
103
110
|
interface LineItem {
|
package/dist/index.d.ts
CHANGED
|
@@ -40,9 +40,13 @@ interface VariantOption {
|
|
|
40
40
|
}
|
|
41
41
|
interface ProductVariant {
|
|
42
42
|
title: string;
|
|
43
|
+
images: string[];
|
|
44
|
+
trackInventory: boolean;
|
|
43
45
|
sku?: string;
|
|
44
46
|
barcode?: string;
|
|
45
|
-
|
|
47
|
+
stockAvailable: number;
|
|
48
|
+
stockCommited: number;
|
|
49
|
+
stockUnavailable: number;
|
|
46
50
|
isPhysical: boolean;
|
|
47
51
|
weightInGrams?: number;
|
|
48
52
|
heightInCm?: number;
|
|
@@ -73,6 +77,9 @@ interface Product {
|
|
|
73
77
|
widthInCm?: number;
|
|
74
78
|
lengthInCm?: number;
|
|
75
79
|
priceInCents: number;
|
|
80
|
+
trackInventory: boolean;
|
|
81
|
+
sku?: string;
|
|
82
|
+
barcode?: string;
|
|
76
83
|
stockAvailable: number;
|
|
77
84
|
stockCommited: number;
|
|
78
85
|
stockUnavailable: number;
|
|
@@ -97,7 +104,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
97
104
|
clientSecret: string;
|
|
98
105
|
}
|
|
99
106
|
|
|
100
|
-
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
107
|
+
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
101
108
|
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
102
109
|
};
|
|
103
110
|
interface LineItem {
|
package/dist/index.js
CHANGED
|
@@ -408,7 +408,7 @@ var Helpers = class {
|
|
|
408
408
|
TRY: "tr-TR"
|
|
409
409
|
// Turkish Lira
|
|
410
410
|
};
|
|
411
|
-
const locale = (_a = currencyLocales[currency]) != null ? _a : void 0;
|
|
411
|
+
const locale = (_a = currencyLocales[currency.toUpperCase()]) != null ? _a : void 0;
|
|
412
412
|
const formattedPrice = new Intl.NumberFormat(locale, {
|
|
413
413
|
style: "currency",
|
|
414
414
|
currency,
|
package/dist/index.mjs
CHANGED
|
@@ -372,7 +372,7 @@ var Helpers = class {
|
|
|
372
372
|
TRY: "tr-TR"
|
|
373
373
|
// Turkish Lira
|
|
374
374
|
};
|
|
375
|
-
const locale = (_a = currencyLocales[currency]) != null ? _a : void 0;
|
|
375
|
+
const locale = (_a = currencyLocales[currency.toUpperCase()]) != null ? _a : void 0;
|
|
376
376
|
const formattedPrice = new Intl.NumberFormat(locale, {
|
|
377
377
|
style: "currency",
|
|
378
378
|
currency,
|