feed-common 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.4.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.3.2...v1.4.0) (2024-04-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * add product variant type ([b271915](https://github.com/advertikon/package-maxify-feed-common/commit/b2719156eee8534208b8581c6246b4c6c17795df))
7
+
1
8
  ## [1.3.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.3.1...v1.3.2) (2024-04-14)
2
9
 
3
10
 
@@ -1,6 +1,6 @@
1
- import { GmcProductSyncStatus } from '../constants/google.constants.js';
2
- import { ProductSyncStatus } from '../constants/product.constants.js';
3
- export type AppProductStatus = 'active' | 'draft' | 'archived';
1
+ import { GmcProductSyncStatus } from "../constants/google.constants.js";
2
+ import { ProductSyncStatus } from "../constants/product.constants.js";
3
+ export type AppProductStatus = "active" | "draft" | "archived";
4
4
  export type AppProductVariant = {
5
5
  id: number;
6
6
  title: string;
@@ -16,7 +16,7 @@ export type GmcProductId = {
16
16
  status?: GmcProductSyncStatus;
17
17
  };
18
18
  export type GoogleProductIssue = {
19
- servability?: 'demoted' | 'disapproved' | 'unaffected' | string;
19
+ servability?: "demoted" | "disapproved" | "unaffected" | string;
20
20
  description?: string;
21
21
  documentation?: string;
22
22
  };
@@ -61,8 +61,8 @@ export type GetProductsQuery = {
61
61
  handle?: string;
62
62
  title?: string;
63
63
  id?: number[];
64
- sortField?: 'title' | 'id';
65
- sort?: 'asc' | 'desc';
64
+ sortField?: "title" | "id";
65
+ sort?: "asc" | "desc";
66
66
  fields?: string[];
67
67
  gmcProductId?: string[] | boolean;
68
68
  };
@@ -84,4 +84,21 @@ export type UploadProductBulkPayload = {
84
84
  types: string[];
85
85
  tags: string[];
86
86
  };
87
+ export type ProductVariant = {
88
+ id: number;
89
+ title: string;
90
+ price: string;
91
+ sku: string;
92
+ image?: string;
93
+ locale: string;
94
+ country: string;
95
+ gmcProductId: string;
96
+ gmcIssues?: gmcIssue[][number]["issue"];
97
+ profileId: string;
98
+ updated_at: string;
99
+ uploaded_to_gmc_at: string;
100
+ updated_issue_at?: string;
101
+ profile: string;
102
+ status?: GmcProductSyncStatus;
103
+ };
87
104
  //# sourceMappingURL=product.types.d.ts.map
@@ -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;AAEtE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,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;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,KAAK,EAAE,kBAAkB,EAAE,CAAC;CA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CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feed-common",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,7 +1,7 @@
1
- import { GmcProductSyncStatus } from '../constants/google.constants.js';
2
- import { ProductSyncStatus } from '../constants/product.constants.js';
1
+ import { GmcProductSyncStatus } from "../constants/google.constants.js";
2
+ import { ProductSyncStatus } from "../constants/product.constants.js";
3
3
 
4
- export type AppProductStatus = 'active' | 'draft' | 'archived';
4
+ export type AppProductStatus = "active" | "draft" | "archived";
5
5
 
6
6
  export type AppProductVariant = {
7
7
  id: number;
@@ -20,7 +20,7 @@ export type GmcProductId = {
20
20
  };
21
21
 
22
22
  export type GoogleProductIssue = {
23
- servability?: 'demoted' | 'disapproved' | 'unaffected' | string;
23
+ servability?: "demoted" | "disapproved" | "unaffected" | string;
24
24
  description?: string;
25
25
  documentation?: string;
26
26
  };
@@ -69,8 +69,8 @@ export type GetProductsQuery = {
69
69
  handle?: string;
70
70
  title?: string;
71
71
  id?: number[];
72
- sortField?: 'title' | 'id';
73
- sort?: 'asc' | 'desc';
72
+ sortField?: "title" | "id";
73
+ sort?: "asc" | "desc";
74
74
  fields?: string[];
75
75
  gmcProductId?: string[] | boolean;
76
76
  };
@@ -95,3 +95,21 @@ export type UploadProductBulkPayload = {
95
95
  types: string[];
96
96
  tags: string[];
97
97
  };
98
+
99
+ export type ProductVariant = {
100
+ id: number;
101
+ title: string;
102
+ price: string;
103
+ sku: string;
104
+ image?: string;
105
+ locale: string;
106
+ country: string;
107
+ gmcProductId: string;
108
+ gmcIssues?: gmcIssue[][number]["issue"];
109
+ profileId: string;
110
+ updated_at: string;
111
+ uploaded_to_gmc_at: string;
112
+ updated_issue_at?: string;
113
+ profile: string;
114
+ status?: GmcProductSyncStatus;
115
+ };