feed-common 1.5.1 → 1.6.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,17 @@
1
+ # [1.6.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.5.2...v1.6.0) (2024-05-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * add inventory policy and inventory quontity rules ([582a3d5](https://github.com/advertikon/package-maxify-feed-common/commit/582a3d57f4c1133da1059e604507e8b7dde4975d))
7
+
8
+ ## [1.5.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.5.1...v1.5.2) (2024-05-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add uploadError to GMC app product ([53163f0](https://github.com/advertikon/package-maxify-feed-common/commit/53163f0018ed6f643e56e94c39eb21a93c080d99))
14
+
1
15
  ## [1.5.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.5.0...v1.5.1) (2024-05-01)
2
16
 
3
17
 
@@ -2,7 +2,8 @@ export declare enum GmcProductSyncStatus {
2
2
  REJECTED = "rejected",
3
3
  APPROVED = "approved",
4
4
  WARNING = "warning",
5
- SYNC_SCHEDULED = "sync_scheduled"
5
+ SYNC_SCHEDULED = "sync_scheduled",
6
+ UPLOAD_ERROR = "upload_error"
6
7
  }
7
8
  export declare enum GoogleAccountStatus {
8
9
  ENABLED = "ENABLED",
@@ -1 +1 @@
1
- {"version":3,"file":"google.constants.d.ts","sourceRoot":"","sources":["../../src/constants/google.constants.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,cAAc,mBAAmB;CAClC;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB"}
1
+ {"version":3,"file":"google.constants.d.ts","sourceRoot":"","sources":["../../src/constants/google.constants.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;CAC9B;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB"}
@@ -4,6 +4,7 @@ export var GmcProductSyncStatus;
4
4
  GmcProductSyncStatus["APPROVED"] = "approved";
5
5
  GmcProductSyncStatus["WARNING"] = "warning";
6
6
  GmcProductSyncStatus["SYNC_SCHEDULED"] = "sync_scheduled";
7
+ GmcProductSyncStatus["UPLOAD_ERROR"] = "upload_error";
7
8
  })(GmcProductSyncStatus || (GmcProductSyncStatus = {}));
8
9
  export var GoogleAccountStatus;
9
10
  (function (GoogleAccountStatus) {
@@ -1 +1 @@
1
- {"version":3,"file":"google.constants.js","sourceRoot":"","sources":["../../src/constants/google.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,yDAAiC,CAAA;AACnC,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;AACvB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B"}
1
+ {"version":3,"file":"google.constants.js","sourceRoot":"","sources":["../../src/constants/google.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,yDAAiC,CAAA;IACjC,qDAA6B,CAAA;AAC/B,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B;AAED,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;AACvB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B"}
@@ -51,12 +51,32 @@ export declare const RuleOperators: {
51
51
  label: string;
52
52
  value: string;
53
53
  };
54
+ less: {
55
+ label: string;
56
+ value: string;
57
+ };
58
+ greater: {
59
+ label: string;
60
+ value: string;
61
+ };
62
+ lessOrEqual: {
63
+ label: string;
64
+ value: string;
65
+ };
66
+ greaterOrEqual: {
67
+ label: string;
68
+ value: string;
69
+ };
54
70
  };
55
71
  export declare const ProductUploadRulesOperators: {
56
72
  string: {
57
73
  label: string;
58
74
  value: string;
59
75
  }[];
76
+ number: {
77
+ label: string;
78
+ value: string;
79
+ }[];
60
80
  list: {
61
81
  label: string;
62
82
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"profile.constants.d.ts","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AACxD,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAE5C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCzB,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;CAYvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,2BAA2B,EA0BjE,CAAC;AASF,eAAO,MAAM,qBAAqB,EAAE,sBAAsB,EAiQzD,CAAC;AACF,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,sBAAsB,UAKlC,CAAC"}
1
+ {"version":3,"file":"profile.constants.d.ts","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AACxD,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAE5C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDzB,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;CAmBvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,2BAA2B,EAoCjE,CAAC;AASF,eAAO,MAAM,qBAAqB,EAAE,sBAAsB,EAiQzD,CAAC;AACF,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,sBAAsB,UAKlC,CAAC"}
@@ -50,6 +50,22 @@ export const RuleOperators = {
50
50
  label: "Not In",
51
51
  value: "notIn",
52
52
  },
53
+ less: {
54
+ label: "Less Than",
55
+ value: "less",
56
+ },
57
+ greater: {
58
+ label: "Greater Than",
59
+ value: "greater",
60
+ },
61
+ lessOrEqual: {
62
+ label: "Less Than or Equal",
63
+ value: "lessOrEqual",
64
+ },
65
+ greaterOrEqual: {
66
+ label: "Greater Than or Equal",
67
+ value: "greaterOrEqual",
68
+ },
53
69
  };
54
70
  export const ProductUploadRulesOperators = {
55
71
  string: [
@@ -62,6 +78,13 @@ export const ProductUploadRulesOperators = {
62
78
  RuleOperators.notStartsWith,
63
79
  RuleOperators.notEndsWith,
64
80
  ],
81
+ number: [
82
+ RuleOperators.equals,
83
+ RuleOperators.less,
84
+ RuleOperators.greater,
85
+ RuleOperators.lessOrEqual,
86
+ RuleOperators.greaterOrEqual,
87
+ ],
65
88
  list: [RuleOperators.in, RuleOperators.notIn],
66
89
  };
67
90
  export const ProductUploadRuleFilters = [
@@ -90,6 +113,16 @@ export const ProductUploadRuleFilters = [
90
113
  operators: ProductUploadRulesOperators.list,
91
114
  value: "tag",
92
115
  },
116
+ {
117
+ label: "Inventory Policy",
118
+ operators: ProductUploadRulesOperators.string,
119
+ value: "inventory_policy",
120
+ },
121
+ {
122
+ label: "Inventory Quantity",
123
+ operators: ProductUploadRulesOperators.number,
124
+ value: "inventory_quantity",
125
+ },
93
126
  ];
94
127
  const ShopifyProductSource = {
95
128
  vendor: { label: "Shopify Product Vendor", value: SOURCE_SHOPIFY_VENDORS },
@@ -1 +1 @@
1
- {"version":3,"file":"profile.constants.js","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,C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ACvD,MAAM;IACN,mCAAmC;IACnC,MAAM;IACN,6HAA6H;IAC7H,MAAM;IACN,gCAAgC;IAChC,MAAM;IACN,+KAA+K;IAC/K,MAAM;IACN,6BAA6B;IAC7B,MAAM;IACN,oHAAoH;IACpH,MAAM;IACN,2CAA2C;IAC3C,MAAM;IACN,oHAAoH;IACpH,MAAM;IACN,2CAA2C;IAC3C,MAAM;IACN,mHAAmH;IACnH,MAAM;IACN,0CAA0C;IAC1C,MAAM;IACN,qBAAqB;IACrB,MAAM;IACN,uCAAuC;IACvC,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,oDAAoD;IACpD,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,oDAAoD;IACpD,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,iDAAiD;IACjD,MAAM;IACN,qCAAqC;IACrC,MAAM;IACN,mDAAmD;IACnD,MAAM;IACN,wLAAwL;IACxL,MAAM;IACN,kDAAkD;IAClD,MAAM;IACN,sLAAsL;IACtL,MAAM;IACN,2BAA2B;IAC3B,MAAM;IACN,2EAA2E;IAC3E,MAAM;IACN,8BAA8B;IAC9B,MAAM;IACN,yDAAyD;IACzD,MAAM;IACN,4BAA4B;CAC7B,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAChC,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"profile.constants.js","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAA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AAM;IACN,sLAAsL;IACtL,MAAM;IACN,2BAA2B;IAC3B,MAAM;IACN,2EAA2E;IAC3E,MAAM;IACN,8BAA8B;IAC9B,MAAM;IACN,yDAAyD;IACzD,MAAM;IACN,4BAA4B;CAC7B,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAChC,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,UAAU;CACX,CAAC"}
@@ -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;
@@ -14,9 +14,10 @@ export type GmcProductId = {
14
14
  gmcAccount: string;
15
15
  uploaded_at: string;
16
16
  status?: GmcProductSyncStatus;
17
+ uploadError?: string;
17
18
  };
18
19
  export type GoogleProductIssue = {
19
- servability?: "demoted" | "disapproved" | "unaffected" | string;
20
+ servability?: 'demoted' | 'disapproved' | 'unaffected' | string;
20
21
  description?: string;
21
22
  documentation?: string;
22
23
  };
@@ -61,8 +62,8 @@ export type GetProductsQuery = {
61
62
  handle?: string;
62
63
  title?: string;
63
64
  id?: number[];
64
- sortField?: "title" | "id";
65
- sort?: "asc" | "desc";
65
+ sortField?: 'title' | 'id';
66
+ sort?: 'asc' | 'desc';
66
67
  fields?: string[];
67
68
  gmcProductId?: string[] | boolean;
68
69
  };
@@ -97,7 +98,7 @@ export type GmcProduct = {
97
98
  locale: string;
98
99
  country: string;
99
100
  gmcProductId: string;
100
- gmcIssues?: gmcIssue[][number]["issue"];
101
+ gmcIssues?: gmcIssue[][number]['issue'];
101
102
  profileId: string;
102
103
  updated_at: string;
103
104
  uploaded_to_gmc_at: 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;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;CAC7B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MA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,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,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.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -3,6 +3,7 @@ export enum GmcProductSyncStatus {
3
3
  APPROVED = 'approved',
4
4
  WARNING = 'warning',
5
5
  SYNC_SCHEDULED = 'sync_scheduled',
6
+ UPLOAD_ERROR = 'upload_error',
6
7
  }
7
8
 
8
9
  export enum GoogleAccountStatus {
@@ -59,6 +59,22 @@ export const RuleOperators = {
59
59
  label: "Not In",
60
60
  value: "notIn",
61
61
  },
62
+ less: {
63
+ label: "Less Than",
64
+ value: "less",
65
+ },
66
+ greater: {
67
+ label: "Greater Than",
68
+ value: "greater",
69
+ },
70
+ lessOrEqual: {
71
+ label: "Less Than or Equal",
72
+ value: "lessOrEqual",
73
+ },
74
+ greaterOrEqual: {
75
+ label: "Greater Than or Equal",
76
+ value: "greaterOrEqual",
77
+ },
62
78
  };
63
79
 
64
80
  export const ProductUploadRulesOperators = {
@@ -72,6 +88,13 @@ export const ProductUploadRulesOperators = {
72
88
  RuleOperators.notStartsWith,
73
89
  RuleOperators.notEndsWith,
74
90
  ],
91
+ number: [
92
+ RuleOperators.equals,
93
+ RuleOperators.less,
94
+ RuleOperators.greater,
95
+ RuleOperators.lessOrEqual,
96
+ RuleOperators.greaterOrEqual,
97
+ ],
75
98
  list: [RuleOperators.in, RuleOperators.notIn],
76
99
  };
77
100
 
@@ -101,6 +124,16 @@ export const ProductUploadRuleFilters: ProductUploadRuleFilterType[] = [
101
124
  operators: ProductUploadRulesOperators.list,
102
125
  value: "tag",
103
126
  },
127
+ {
128
+ label: "Inventory Policy",
129
+ operators: ProductUploadRulesOperators.string,
130
+ value: "inventory_policy",
131
+ },
132
+ {
133
+ label: "Inventory Quantity",
134
+ operators: ProductUploadRulesOperators.number,
135
+ value: "inventory_quantity",
136
+ },
104
137
  ];
105
138
 
106
139
  const ShopifyProductSource = {
@@ -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;
@@ -17,10 +17,11 @@ export type GmcProductId = {
17
17
  gmcAccount: string;
18
18
  uploaded_at: string;
19
19
  status?: GmcProductSyncStatus;
20
+ uploadError?: string;
20
21
  };
21
22
 
22
23
  export type GoogleProductIssue = {
23
- servability?: "demoted" | "disapproved" | "unaffected" | string;
24
+ servability?: 'demoted' | 'disapproved' | 'unaffected' | string;
24
25
  description?: string;
25
26
  documentation?: string;
26
27
  };
@@ -69,8 +70,8 @@ export type GetProductsQuery = {
69
70
  handle?: string;
70
71
  title?: string;
71
72
  id?: number[];
72
- sortField?: "title" | "id";
73
- sort?: "asc" | "desc";
73
+ sortField?: 'title' | 'id';
74
+ sort?: 'asc' | 'desc';
74
75
  fields?: string[];
75
76
  gmcProductId?: string[] | boolean;
76
77
  };
@@ -110,7 +111,7 @@ export type GmcProduct = {
110
111
  locale: string;
111
112
  country: string;
112
113
  gmcProductId: string;
113
- gmcIssues?: gmcIssue[][number]["issue"];
114
+ gmcIssues?: gmcIssue[][number]['issue'];
114
115
  profileId: string;
115
116
  updated_at: string;
116
117
  uploaded_to_gmc_at: string;