feed-common 1.41.2 → 1.43.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/types/company.types.d.ts +4 -3
- package/dist/types/company.types.d.ts.map +1 -1
- package/dist/types/profile.types.d.ts +2 -1
- package/dist/types/profile.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/company.types.ts +28 -27
- package/src/types/profile.types.ts +2 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [1.43.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.42.0...v1.43.0) (2024-08-31)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add locatio to xml feed stats payload ([91a78e0](https://github.com/advertikon/package-maxify-feed-common/commit/91a78e000bb49c1092d94c7119c49a6737c498dd))
|
7
|
+
|
8
|
+
# [1.42.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.41.2...v1.42.0) (2024-08-31)
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* add meta to SSE events payload ([a1e2727](https://github.com/advertikon/package-maxify-feed-common/commit/a1e2727b4a4c9494ca0dd69932b63085564fef8b))
|
14
|
+
|
1
15
|
## [1.41.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.41.1...v1.41.2) (2024-08-28)
|
2
16
|
|
3
17
|
|
@@ -1,17 +1,18 @@
|
|
1
|
-
import { ShopifyRecurringCharge } from
|
1
|
+
import { ShopifyRecurringCharge } from './shopify.types';
|
2
2
|
export type ServerSideEvent = {
|
3
3
|
shop: string;
|
4
4
|
eventID: string;
|
5
|
-
type:
|
5
|
+
type: 'progress' | 'schedule';
|
6
6
|
name: string;
|
7
7
|
status?: boolean;
|
8
|
+
meta?: Record<string, any>;
|
8
9
|
};
|
9
10
|
export type ServerSideProgressEvent = ServerSideEvent & {
|
10
11
|
progress: number;
|
11
12
|
totalCount: number;
|
12
13
|
};
|
13
14
|
export type ServerSideScheduleEvent = ServerSideEvent;
|
14
|
-
export type ShopifySubscriptionInfo = Omit<ShopifyRecurringCharge,
|
15
|
+
export type ShopifySubscriptionInfo = Omit<ShopifyRecurringCharge, 'return_url' | 'decorated_return_url' | 'confirmation_url'>;
|
15
16
|
export type CompanyStats = {
|
16
17
|
totalProductsCount: number;
|
17
18
|
syncedProductsCount: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"company.types.d.ts","sourceRoot":"","sources":["../../src/types/company.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;
|
1
|
+
{"version":3,"file":"company.types.d.ts","sourceRoot":"","sources":["../../src/types/company.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC;AAEtD,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,sBAAsB,EACtB,YAAY,GAAG,sBAAsB,GAAG,kBAAkB,CAC7D,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;IACJ,YAAY,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
@@ -56,11 +56,12 @@ export type ProductUploadProfile = BaseProductUploadProfile & {
|
|
56
56
|
profileIdTemplate: string;
|
57
57
|
};
|
58
58
|
export type XmlFeed = BaseProductUploadProfile & {
|
59
|
-
stats
|
59
|
+
stats?: {
|
60
60
|
total_product_count: number;
|
61
61
|
uploaded_products_count: number;
|
62
62
|
failed_products_count: number;
|
63
63
|
last_uploaded_at: Date;
|
64
|
+
location?: string;
|
64
65
|
};
|
65
66
|
total_uploads_number: number;
|
66
67
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.types.d.ts","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrH,OAAO,EAAE,mBAAmB,EAAE,MAAM,KAAK,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC;A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AQ,CAAC;IACzB,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACrC,CAAC"}
|
package/package.json
CHANGED
@@ -1,47 +1,48 @@
|
|
1
1
|
/* eslint-disable quotes */
|
2
|
-
import { ShopifyRecurringCharge } from
|
2
|
+
import { ShopifyRecurringCharge } from './shopify.types';
|
3
3
|
|
4
4
|
export type ServerSideEvent = {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
shop: string;
|
6
|
+
eventID: string;
|
7
|
+
type: 'progress' | 'schedule';
|
8
|
+
name: string;
|
9
|
+
status?: boolean;
|
10
|
+
meta?: Record<string, any>;
|
10
11
|
};
|
11
12
|
|
12
13
|
export type ServerSideProgressEvent = ServerSideEvent & {
|
13
|
-
|
14
|
-
|
14
|
+
progress: number;
|
15
|
+
totalCount: number;
|
15
16
|
};
|
16
17
|
|
17
18
|
export type ServerSideScheduleEvent = ServerSideEvent;
|
18
19
|
|
19
20
|
export type ShopifySubscriptionInfo = Omit<
|
20
|
-
|
21
|
-
|
21
|
+
ShopifyRecurringCharge,
|
22
|
+
'return_url' | 'decorated_return_url' | 'confirmation_url'
|
22
23
|
>;
|
23
24
|
|
24
25
|
export type CompanyStats = {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
26
|
+
totalProductsCount: number;
|
27
|
+
syncedProductsCount: number;
|
28
|
+
limits: AppLimits;
|
29
|
+
maxProducts: number;
|
30
|
+
profilesStats: {
|
31
|
+
count: number;
|
32
|
+
errors: number;
|
33
|
+
warnings: number;
|
34
|
+
profileId: string;
|
35
|
+
profile: string;
|
36
|
+
}[];
|
37
|
+
subscription: ShopifySubscriptionInfo;
|
37
38
|
};
|
38
39
|
|
39
40
|
export type SubscriptionPlan = {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
code: string;
|
42
|
+
level: number;
|
43
|
+
products: number;
|
44
|
+
profiles: number;
|
45
|
+
price: number;
|
45
46
|
};
|
46
47
|
|
47
48
|
export type AppLimits = { products: number; profiles: number };
|
@@ -67,11 +67,12 @@ export type ProductUploadProfile = BaseProductUploadProfile & {
|
|
67
67
|
};
|
68
68
|
|
69
69
|
export type XmlFeed = BaseProductUploadProfile & {
|
70
|
-
stats
|
70
|
+
stats?: {
|
71
71
|
total_product_count: number;
|
72
72
|
uploaded_products_count: number;
|
73
73
|
failed_products_count: number;
|
74
74
|
last_uploaded_at: Date;
|
75
|
+
location?: string;
|
75
76
|
};
|
76
77
|
total_uploads_number: number;
|
77
78
|
};
|