feed-common 1.28.0 → 1.28.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/types/product.types.d.ts +11 -17
- package/dist/types/product.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/product.types.ts +6 -17
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [1.28.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.28.1...v1.28.2) (2024-08-04)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* fix AppProductVariant type ([1b78de6](https://github.com/advertikon/package-maxify-feed-common/commit/1b78de60d13b4da23704ade35bdb03931fa88db9))
|
7
|
+
|
8
|
+
## [1.28.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.28.0...v1.28.1) (2024-08-04)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* fix AppVariant type ([a321aef](https://github.com/advertikon/package-maxify-feed-common/commit/a321aef0a2dd37280a32dd97cc567772231d318b))
|
14
|
+
|
1
15
|
# [1.28.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.27.0...v1.28.0) (2024-08-02)
|
2
16
|
|
3
17
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { GmcProductSyncStatus } from '../constants/google.constants.js';
|
2
2
|
import { ProductSyncStatus } from '../constants/product.constants.js';
|
3
|
-
import { ShopifyProductImage } from './shopify.types.js';
|
4
3
|
export type AppProductStatus = 'active' | 'draft' | 'archived';
|
5
4
|
export type AppProductVariant = {
|
6
5
|
id: number;
|
7
6
|
title: string;
|
8
7
|
price: number;
|
9
|
-
sku: string
|
8
|
+
sku: string;
|
10
9
|
barcode: string | null;
|
11
10
|
inventory_quantity: number;
|
12
11
|
inventory_policy: string;
|
13
12
|
compare_at_price: number | null;
|
14
|
-
|
13
|
+
image: string | null;
|
14
|
+
gmcProduct?: GmcProductId[];
|
15
15
|
};
|
16
16
|
export type GmcProductId = {
|
17
17
|
id: string;
|
@@ -47,28 +47,22 @@ export type AppProduct = {
|
|
47
47
|
_id: string;
|
48
48
|
updated_at: string;
|
49
49
|
variants: AppProductVariant[];
|
50
|
-
featured_image: string;
|
50
|
+
featured_image: string | null;
|
51
51
|
images: string[];
|
52
52
|
collections: AppCollection[];
|
53
53
|
tags: string[];
|
54
54
|
vendor: string;
|
55
55
|
product_type: string;
|
56
56
|
syncStatus: ProductSyncStatus;
|
57
|
+
metafields: {
|
58
|
+
key: string;
|
59
|
+
jsonValue: string;
|
60
|
+
type: string;
|
61
|
+
namespace: string;
|
62
|
+
}[];
|
57
63
|
};
|
58
|
-
export type AppVariant = {
|
59
|
-
status: AppProductStatus;
|
60
|
-
handle: string;
|
61
|
-
title: string;
|
62
|
-
id: number;
|
63
|
-
_id: string;
|
64
|
-
updated_at: string;
|
64
|
+
export type AppVariant = Omit<AppProduct, 'variants'> & {
|
65
65
|
variants: AppProductVariant;
|
66
|
-
images: Pick<ShopifyProductImage, 'src' | 'id' | 'variant_ids' | 'position'>[];
|
67
|
-
collections: AppCollection[];
|
68
|
-
tags: string[];
|
69
|
-
vendor: string;
|
70
|
-
product_type: string;
|
71
|
-
syncStatus: ProductSyncStatus;
|
72
66
|
};
|
73
67
|
export type AppGmcProduct = Omit<AppVariant, 'variants.gmcProduct'> & {
|
74
68
|
variants: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.types.d.ts","sourceRoot":"","sources":["../../src/types/product.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;
|
1
|
+
{"version":3,"file":"product.types.d.ts","sourceRoot":"","sources":["../../src/types/product.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEt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BAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { GmcProductSyncStatus } from '../constants/google.constants.js';
|
2
2
|
import { ProductSyncStatus } from '../constants/product.constants.js';
|
3
|
-
import { ShopifyProductImage } from './shopify.types.js';
|
4
3
|
|
5
4
|
export type AppProductStatus = 'active' | 'draft' | 'archived';
|
6
5
|
|
@@ -8,12 +7,13 @@ export type AppProductVariant = {
|
|
8
7
|
id: number;
|
9
8
|
title: string;
|
10
9
|
price: number;
|
11
|
-
sku: string
|
10
|
+
sku: string;
|
12
11
|
barcode: string|null;
|
13
12
|
inventory_quantity: number;
|
14
13
|
inventory_policy: string;
|
15
14
|
compare_at_price: number|null;
|
16
|
-
|
15
|
+
image: string|null;
|
16
|
+
gmcProduct?: GmcProductId[];
|
17
17
|
}
|
18
18
|
|
19
19
|
export type GmcProductId = {
|
@@ -54,29 +54,18 @@ export type AppProduct = {
|
|
54
54
|
_id: string;
|
55
55
|
updated_at: string;
|
56
56
|
variants: AppProductVariant[];
|
57
|
-
featured_image: string;
|
57
|
+
featured_image: string|null;
|
58
58
|
images: string[];
|
59
59
|
collections: AppCollection[];
|
60
60
|
tags: string[];
|
61
61
|
vendor: string;
|
62
62
|
product_type: string;
|
63
63
|
syncStatus: ProductSyncStatus;
|
64
|
+
metafields: { key: string; jsonValue: string; type: string; namespace: string; }[];
|
64
65
|
};
|
65
66
|
|
66
|
-
export type AppVariant = {
|
67
|
-
status: AppProductStatus;
|
68
|
-
handle: string;
|
69
|
-
title: string;
|
70
|
-
id: number;
|
71
|
-
_id: string;
|
72
|
-
updated_at: string;
|
67
|
+
export type AppVariant = Omit<AppProduct, 'variants'> & {
|
73
68
|
variants: AppProductVariant;
|
74
|
-
images: Pick<ShopifyProductImage, 'src' | 'id' | 'variant_ids' | 'position'>[];
|
75
|
-
collections: AppCollection[];
|
76
|
-
tags: string[];
|
77
|
-
vendor: string;
|
78
|
-
product_type: string;
|
79
|
-
syncStatus: ProductSyncStatus;
|
80
69
|
};
|
81
70
|
|
82
71
|
export type AppGmcProduct = Omit<AppVariant, 'variants.gmcProduct'> & { variants: { gmcProduct: GmcProductId } };
|