feed-common 1.14.0 → 1.14.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.14.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.14.1...v1.14.2) (2024-06-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * change GmcProduct price type ([4e1ca45](https://github.com/advertikon/package-maxify-feed-common/commit/4e1ca45a469d413436c64f8d590c355813fabd95))
7
+
8
+ ## [1.14.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.14.0...v1.14.1) (2024-06-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * change numeric types of AppProductVariant ([611b08c](https://github.com/advertikon/package-maxify-feed-common/commit/611b08c48607a5b2cada3d4dc04fa947613ae039))
14
+
1
15
  # [1.14.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.13.0...v1.14.0) (2024-06-08)
2
16
 
3
17
 
@@ -2,7 +2,11 @@ import { GmcProductSyncStatus } from '../constants/google.constants.js';
2
2
  import { ProductSyncStatus } from '../constants/product.constants.js';
3
3
  import { ShopifyProductImage, ShopifyProductVariant } from './shopify.types.js';
4
4
  export type AppProductStatus = 'active' | 'draft' | 'archived';
5
- export type AppProductVariant = Pick<ShopifyProductVariant, 'id' | 'title' | 'price' | 'sku' | 'barcode' | 'image_id' | 'inventory_quantity' | 'inventory_policy' | 'weight' | 'weight_unit' | 'compare_at_price' | 'requires_shipping'> & {
5
+ export type AppProductVariant = Pick<ShopifyProductVariant, 'id' | 'title' | 'sku' | 'barcode' | 'image_id' | 'inventory_policy' | 'weight_unit' | 'requires_shipping'> & {
6
+ price: number;
7
+ compare_at_price: number | null;
8
+ weight: number;
9
+ inventory_quantity: number;
6
10
  gmcProduct?: GmcProductId[];
7
11
  };
8
12
  export type GmcProductId = {
@@ -107,7 +111,7 @@ export type UploadProductBulkPayload = {
107
111
  export type GmcProduct = {
108
112
  id: number;
109
113
  title: string;
110
- price: string;
114
+ price: number;
111
115
  sku: string;
112
116
  image?: string;
113
117
  locale: string;
@@ -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,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,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,SAAS,GACT,UAAU,GACV,oBAAoB,GACpB,kBAAkB,GAClB,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,mBAAmB,CACtB,GACD;IACE,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;CAC7B,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,K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AM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feed-common",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -5,150 +5,139 @@ import { ShopifyProductImage, ShopifyProductVariant } from './shopify.types.js';
5
5
  export type AppProductStatus = 'active' | 'draft' | 'archived';
6
6
 
7
7
  export type AppProductVariant =
8
- | Pick<
9
- ShopifyProductVariant,
10
- | 'id'
11
- | 'title'
12
- | 'price'
13
- | 'sku'
14
- | 'barcode'
15
- | 'image_id'
16
- | 'inventory_quantity'
17
- | 'inventory_policy'
18
- | 'weight'
19
- | 'weight_unit'
20
- | 'compare_at_price'
21
- | 'requires_shipping'
22
- >
23
- & {
24
- gmcProduct?: GmcProductId[];
25
- };
8
+ | Pick<
9
+ ShopifyProductVariant,
10
+ 'id' | 'title' | 'sku' | 'barcode' | 'image_id' | 'inventory_policy' | 'weight_unit' | 'requires_shipping'
11
+ > & {
12
+ price: number;
13
+ compare_at_price: number | null;
14
+ weight: number;
15
+ inventory_quantity: number;
16
+ gmcProduct?: GmcProductId[];
17
+ };
26
18
 
27
19
  export type GmcProductId = {
28
- id: string;
29
- profileId: string;
30
- gmcAccount: string;
31
- uploaded_at: string;
32
- status?: GmcProductSyncStatus;
33
- uploadError?: string;
34
- issues?: GoogleProductIssue[];
20
+ id: string;
21
+ profileId: string;
22
+ gmcAccount: string;
23
+ uploaded_at: string;
24
+ status?: GmcProductSyncStatus;
25
+ uploadError?: string;
26
+ issues?: GoogleProductIssue[];
35
27
  };
36
28
 
37
29
  export type GoogleProductIssue = {
38
- servability?: 'demoted' | 'disapproved' | 'unaffected' | string;
39
- description?: string;
40
- documentation?: string;
30
+ servability?: 'demoted' | 'disapproved' | 'unaffected' | string;
31
+ description?: string;
32
+ documentation?: string;
41
33
  };
42
34
 
43
35
  export type gmcIssue = {
44
- gmcProductId: string;
45
- gmcAccount: string;
46
- updated_at: string;
47
- issue: GoogleProductIssue[];
36
+ gmcProductId: string;
37
+ gmcAccount: string;
38
+ updated_at: string;
39
+ issue: GoogleProductIssue[];
48
40
  };
49
41
 
50
42
  export type AppCollection = {
51
- id: number;
52
- handle: string;
53
- title: string;
43
+ id: number;
44
+ handle: string;
45
+ title: string;
54
46
  };
55
47
 
56
48
  export type AppProduct = {
57
- status: AppProductStatus;
58
- handle: string;
59
- title: string;
60
- category?: string;
61
- id: number;
62
- _id: string;
63
- updated_at: string;
64
- variants: AppProductVariant[];
65
- images: {
66
- src: string;
67
- id: string;
68
- variant_ids: number[];
69
- }[];
70
- collections: AppCollection[];
71
- tags: string[];
72
- vendor: string;
73
- product_type: string;
74
- syncStatus: ProductSyncStatus;
49
+ status: AppProductStatus;
50
+ handle: string;
51
+ title: string;
52
+ category?: string;
53
+ id: number;
54
+ _id: string;
55
+ updated_at: string;
56
+ variants: AppProductVariant[];
57
+ images: {
58
+ src: string;
59
+ id: string;
60
+ variant_ids: number[];
61
+ }[];
62
+ collections: AppCollection[];
63
+ tags: string[];
64
+ vendor: string;
65
+ product_type: string;
66
+ syncStatus: ProductSyncStatus;
75
67
  };
76
68
 
77
69
  export type AppVariant = {
78
- status: AppProductStatus;
79
- handle: string;
80
- title: string;
81
- id: number;
82
- _id: string;
83
- updated_at: string;
84
- variants: AppProductVariant;
85
- images: Pick<ShopifyProductImage, 'src' | 'id' | 'variant_ids'>[];
86
- collections: AppCollection[];
87
- tags: string[];
88
- vendor: string;
89
- product_type: string;
90
- syncStatus: ProductSyncStatus;
70
+ status: AppProductStatus;
71
+ handle: string;
72
+ title: string;
73
+ id: number;
74
+ _id: string;
75
+ updated_at: string;
76
+ variants: AppProductVariant;
77
+ images: Pick<ShopifyProductImage, 'src' | 'id' | 'variant_ids'>[];
78
+ collections: AppCollection[];
79
+ tags: string[];
80
+ vendor: string;
81
+ product_type: string;
82
+ syncStatus: ProductSyncStatus;
91
83
  };
92
84
 
93
- export type AppGmcProduct = Omit<
94
- AppVariant,
95
- 'variants.gmcProduct'
96
- > & { variants: {gmcProduct: GmcProductId} };
85
+ export type AppGmcProduct = Omit<AppVariant, 'variants.gmcProduct'> & { variants: { gmcProduct: GmcProductId } };
97
86
 
98
87
  export type GetProductsQuery = {
99
- before?: string;
100
- after?: string;
101
- limit?: number;
102
- handle?: string;
103
- title?: string;
104
- id?: number[];
105
- sortField?: 'title' | 'id';
106
- sort?: 'asc' | 'desc';
107
- fields?: string[];
108
- gmcProductId?: string[] | boolean;
88
+ before?: string;
89
+ after?: string;
90
+ limit?: number;
91
+ handle?: string;
92
+ title?: string;
93
+ id?: number[];
94
+ sortField?: 'title' | 'id';
95
+ sort?: 'asc' | 'desc';
96
+ fields?: string[];
97
+ gmcProductId?: string[] | boolean;
109
98
  };
110
99
 
111
100
  export type GetProductsResponse = {
112
- products: AppProduct[];
113
- pagination: {
114
- firstId: string;
115
- lastId: string;
116
- hasMore: boolean;
117
- hasLess: boolean;
118
- };
101
+ products: AppProduct[];
102
+ pagination: {
103
+ firstId: string;
104
+ lastId: string;
105
+ hasMore: boolean;
106
+ hasLess: boolean;
107
+ };
119
108
  };
120
109
 
121
110
  export type GetGmcProductsResponse = {
122
- products: GmcProduct[];
123
- total: number;
111
+ products: GmcProduct[];
112
+ total: number;
124
113
  };
125
114
 
126
115
  export type ProductsList = {
127
- ids: string[];
116
+ ids: string[];
128
117
  };
129
118
 
130
119
  export type UploadProductBulkPayload = {
131
- collections: string[];
132
- vendors: string[];
133
- types: string[];
134
- tags: string[];
120
+ collections: string[];
121
+ vendors: string[];
122
+ types: string[];
123
+ tags: string[];
135
124
  };
136
125
 
137
126
  export type GmcProduct = {
138
- id: number;
139
- title: string;
140
- price: string;
141
- sku: string;
142
- image?: string;
143
- locale: string;
144
- country: string;
145
- gmcProductId: string;
146
- gmcIssues?: gmcIssue[][number]['issue'];
147
- profileId: string;
148
- updated_at: string;
149
- uploaded_to_gmc_at: string;
150
- updated_issue_at?: string;
151
- profile: string;
152
- status?: GmcProductSyncStatus;
153
- uploadError?: string;
127
+ id: number;
128
+ title: string;
129
+ price: number;
130
+ sku: string;
131
+ image?: string;
132
+ locale: string;
133
+ country: string;
134
+ gmcProductId: string;
135
+ gmcIssues?: gmcIssue[][number]['issue'];
136
+ profileId: string;
137
+ updated_at: string;
138
+ uploaded_to_gmc_at: string;
139
+ updated_issue_at?: string;
140
+ profile: string;
141
+ status?: GmcProductSyncStatus;
142
+ uploadError?: string;
154
143
  };