@betterstore/sdk 0.3.94 → 0.3.96
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 -5
- package/dist/index.d.ts +9 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
15
15
|
|
|
16
16
|
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "vendor" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount"> & {
|
|
17
17
|
productId: string;
|
|
18
|
-
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions">;
|
|
18
|
+
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions" | "metadata">;
|
|
19
19
|
};
|
|
20
20
|
interface LineItem {
|
|
21
21
|
quantity: number;
|
|
@@ -100,21 +100,23 @@ type GetListParams<A, B> = {
|
|
|
100
100
|
query?: B;
|
|
101
101
|
};
|
|
102
102
|
type EnumQueryType<T> = {
|
|
103
|
+
equals?: T;
|
|
103
104
|
in?: T[];
|
|
104
|
-
notIn?: T[];
|
|
105
105
|
not?: T;
|
|
106
|
+
notIn?: T[];
|
|
106
107
|
};
|
|
107
108
|
type StringArrayQueryType<T = string> = {
|
|
108
|
-
|
|
109
|
+
equals?: T[];
|
|
110
|
+
has?: T;
|
|
109
111
|
hasEvery?: T[];
|
|
110
112
|
hasSome?: T[];
|
|
111
|
-
equals?: T[];
|
|
112
113
|
isEmpty?: boolean;
|
|
113
114
|
};
|
|
114
115
|
type DateQueryType = {
|
|
116
|
+
equals?: Date;
|
|
115
117
|
in?: Date[];
|
|
116
|
-
notIn?: Date[];
|
|
117
118
|
not?: Date;
|
|
119
|
+
notIn?: Date[];
|
|
118
120
|
gt?: Date;
|
|
119
121
|
gte?: Date;
|
|
120
122
|
lt?: Date;
|
|
@@ -146,6 +148,7 @@ interface ProductVariant {
|
|
|
146
148
|
billingType: ProductBillingType;
|
|
147
149
|
billingInterval: ProductBillingInterval;
|
|
148
150
|
billingIntervalCount: number;
|
|
151
|
+
metadata?: string;
|
|
149
152
|
variantOptions: VariantOption[];
|
|
150
153
|
}
|
|
151
154
|
interface ProductOption {
|
|
@@ -183,6 +186,7 @@ interface Product {
|
|
|
183
186
|
seoDescription?: string;
|
|
184
187
|
seoHandle?: string;
|
|
185
188
|
vendor?: string;
|
|
189
|
+
metadata?: string;
|
|
186
190
|
status: ProductStatus;
|
|
187
191
|
options: ProductOption[];
|
|
188
192
|
productVariants: ProductVariant[];
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
15
15
|
|
|
16
16
|
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "vendor" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount"> & {
|
|
17
17
|
productId: string;
|
|
18
|
-
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions">;
|
|
18
|
+
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "billingType" | "billingInterval" | "billingIntervalCount" | "variantOptions" | "metadata">;
|
|
19
19
|
};
|
|
20
20
|
interface LineItem {
|
|
21
21
|
quantity: number;
|
|
@@ -100,21 +100,23 @@ type GetListParams<A, B> = {
|
|
|
100
100
|
query?: B;
|
|
101
101
|
};
|
|
102
102
|
type EnumQueryType<T> = {
|
|
103
|
+
equals?: T;
|
|
103
104
|
in?: T[];
|
|
104
|
-
notIn?: T[];
|
|
105
105
|
not?: T;
|
|
106
|
+
notIn?: T[];
|
|
106
107
|
};
|
|
107
108
|
type StringArrayQueryType<T = string> = {
|
|
108
|
-
|
|
109
|
+
equals?: T[];
|
|
110
|
+
has?: T;
|
|
109
111
|
hasEvery?: T[];
|
|
110
112
|
hasSome?: T[];
|
|
111
|
-
equals?: T[];
|
|
112
113
|
isEmpty?: boolean;
|
|
113
114
|
};
|
|
114
115
|
type DateQueryType = {
|
|
116
|
+
equals?: Date;
|
|
115
117
|
in?: Date[];
|
|
116
|
-
notIn?: Date[];
|
|
117
118
|
not?: Date;
|
|
119
|
+
notIn?: Date[];
|
|
118
120
|
gt?: Date;
|
|
119
121
|
gte?: Date;
|
|
120
122
|
lt?: Date;
|
|
@@ -146,6 +148,7 @@ interface ProductVariant {
|
|
|
146
148
|
billingType: ProductBillingType;
|
|
147
149
|
billingInterval: ProductBillingInterval;
|
|
148
150
|
billingIntervalCount: number;
|
|
151
|
+
metadata?: string;
|
|
149
152
|
variantOptions: VariantOption[];
|
|
150
153
|
}
|
|
151
154
|
interface ProductOption {
|
|
@@ -183,6 +186,7 @@ interface Product {
|
|
|
183
186
|
seoDescription?: string;
|
|
184
187
|
seoHandle?: string;
|
|
185
188
|
vendor?: string;
|
|
189
|
+
metadata?: string;
|
|
186
190
|
status: ProductStatus;
|
|
187
191
|
options: ProductOption[];
|
|
188
192
|
productVariants: ProductVariant[];
|