feed-common 1.10.0 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [1.10.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.10.1...v1.10.2) (2024-05-12)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* upadate AppVariant type ([de0640a](https://github.com/advertikon/package-maxify-feed-common/commit/de0640a84eb4f9af325964c87a9ca3f7eabda0c3))
|
7
|
+
|
8
|
+
## [1.10.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.10.0...v1.10.1) (2024-05-12)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* upadate AppVariant type ([e1e0b79](https://github.com/advertikon/package-maxify-feed-common/commit/e1e0b7942f678747a0f3bc3bbaab63b23999780e))
|
14
|
+
|
1
15
|
# [1.10.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.9.8...v1.10.0) (2024-05-10)
|
2
16
|
|
3
17
|
|
@@ -2,7 +2,7 @@ import { GmcProductSyncStatus } from '../constants/google.constants.js';
|
|
2
2
|
import { ProductSyncStatus } from '../constants/product.constants.js';
|
3
3
|
import { ShopifyProductVariant } from './shopify.types.js';
|
4
4
|
export type AppProductStatus = 'active' | 'draft' | 'archived';
|
5
|
-
export type AppProductVariant = Pick<ShopifyProductVariant, 'id' | 'title' | 'price' | 'sku' | '
|
5
|
+
export type AppProductVariant = Pick<ShopifyProductVariant, 'id' | 'title' | 'price' | 'sku' | 'image_id' | 'inventory_quantity' | 'inventory_policy' | 'weight' | 'weight_unit' | 'compare_at_price'> & {
|
6
6
|
gmcProduct?: GmcProductId[];
|
7
7
|
};
|
8
8
|
export type GmcProductId = {
|
@@ -50,8 +50,24 @@ export type AppProduct = {
|
|
50
50
|
product_type: string;
|
51
51
|
syncStatus: ProductSyncStatus;
|
52
52
|
};
|
53
|
-
export type AppVariant =
|
53
|
+
export type AppVariant = {
|
54
|
+
status: AppProductStatus;
|
55
|
+
handle: string;
|
56
|
+
title: string;
|
57
|
+
id: number;
|
58
|
+
_id: string;
|
59
|
+
updated_at: string;
|
54
60
|
variants: AppProductVariant;
|
61
|
+
images: {
|
62
|
+
src: string;
|
63
|
+
id: string;
|
64
|
+
variant_ids: number[];
|
65
|
+
}[];
|
66
|
+
collections: AppCollection[];
|
67
|
+
tags: string[];
|
68
|
+
vendor: string;
|
69
|
+
product_type: string;
|
70
|
+
syncStatus: ProductSyncStatus;
|
55
71
|
};
|
56
72
|
export type AppGmcProduct = Omit<AppVariant, 'variants.gmcProduct'> & {
|
57
73
|
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;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GACzB,IAAI,CACF,qBAAqB,EACnB,IAAI,GACJ,OAAO,GACP,OAAO,GACP,KAAK,GACL,oBAAoB,GACpB,kBAAkB,GAClB,
|
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;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GACzB,IAAI,CACF,qBAAqB,EAC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;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,CAAC"}
|
package/package.json
CHANGED
@@ -11,11 +11,12 @@ export type AppProductVariant =
|
|
11
11
|
| 'title'
|
12
12
|
| 'price'
|
13
13
|
| 'sku'
|
14
|
+
| 'image_id'
|
14
15
|
| 'inventory_quantity'
|
15
16
|
| 'inventory_policy'
|
16
|
-
| 'compare_at_price'
|
17
17
|
| 'weight'
|
18
18
|
| 'weight_unit'
|
19
|
+
| 'compare_at_price'
|
19
20
|
>
|
20
21
|
& {
|
21
22
|
gmcProduct?: GmcProductId[];
|
@@ -71,10 +72,25 @@ export type AppProduct = {
|
|
71
72
|
syncStatus: ProductSyncStatus;
|
72
73
|
};
|
73
74
|
|
74
|
-
export type AppVariant =
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
export type AppVariant = {
|
76
|
+
status: AppProductStatus;
|
77
|
+
handle: string;
|
78
|
+
title: string;
|
79
|
+
id: number;
|
80
|
+
_id: string;
|
81
|
+
updated_at: string;
|
82
|
+
variants: AppProductVariant;
|
83
|
+
images: {
|
84
|
+
src: string;
|
85
|
+
id: string;
|
86
|
+
variant_ids: number[];
|
87
|
+
}[];
|
88
|
+
collections: AppCollection[];
|
89
|
+
tags: string[];
|
90
|
+
vendor: string;
|
91
|
+
product_type: string;
|
92
|
+
syncStatus: ProductSyncStatus;
|
93
|
+
};
|
78
94
|
|
79
95
|
export type AppGmcProduct = Omit<
|
80
96
|
AppVariant,
|