feed-common 1.5.0 → 1.5.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.5.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.5.1...v1.5.2) (2024-05-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add uploadError to GMC app product ([53163f0](https://github.com/advertikon/package-maxify-feed-common/commit/53163f0018ed6f643e56e94c39eb21a93c080d99))
7
+
8
+ ## [1.5.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.5.0...v1.5.1) (2024-05-01)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add totals to GetGmcProductsResponse ([445420c](https://github.com/advertikon/package-maxify-feed-common/commit/445420c9de3f67ae56ce068cd5101b978efe0245))
14
+
1
15
  # [1.5.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.4.1...v1.5.0) (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"}
@@ -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
  };
@@ -77,6 +78,7 @@ export type GetProductsResponse = {
77
78
  };
78
79
  export type GetGmcProductsResponse = {
79
80
  products: GmcProduct[];
81
+ total: number;
80
82
  };
81
83
  export type ProductsList = {
82
84
  ids: string[];
@@ -96,7 +98,7 @@ export type GmcProduct = {
96
98
  locale: string;
97
99
  country: string;
98
100
  gmcProductId: string;
99
- gmcIssues?: gmcIssue[][number]["issue"];
101
+ gmcIssues?: gmcIssue[][number]['issue'];
100
102
  profileId: string;
101
103
  updated_at: string;
102
104
  uploaded_to_gmc_at: string;
@@ -1 +1 @@
1
- {"version":3,"file":"product.types.d.ts","sour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AAC;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.0",
3
+ "version": "1.5.2",
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 {
@@ -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
  };
@@ -87,6 +88,7 @@ export type GetProductsResponse = {
87
88
 
88
89
  export type GetGmcProductsResponse = {
89
90
  products: GmcProduct[];
91
+ total: number;
90
92
  };
91
93
 
92
94
  export type ProductsList = {
@@ -109,7 +111,7 @@ export type GmcProduct = {
109
111
  locale: string;
110
112
  country: string;
111
113
  gmcProductId: string;
112
- gmcIssues?: gmcIssue[][number]["issue"];
114
+ gmcIssues?: gmcIssue[][number]['issue'];
113
115
  profileId: string;
114
116
  updated_at: string;
115
117
  uploaded_to_gmc_at: string;