feed-common 1.2.0 → 1.3.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.3.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.2.0...v1.3.0) (2024-04-14)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add ShopifySubscriptionInfo type ([ea7284f](https://github.com/advertikon/package-maxify-feed-common/commit/ea7284f655f8d5e0c2936b0c2aaee19e324945c5))
|
7
|
+
|
1
8
|
# [1.2.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.1.2...v1.2.0) (2024-02-25)
|
2
9
|
|
3
10
|
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import { ShopifyRecurringCharge } from "./shopify.types";
|
1
2
|
export type ServerSideEvent = {
|
2
3
|
shop: string;
|
3
4
|
eventID: string;
|
4
|
-
type:
|
5
|
+
type: "progress" | "schedule";
|
5
6
|
name: string;
|
6
7
|
status?: boolean;
|
7
8
|
};
|
@@ -10,6 +11,7 @@ export type ServerSideProgressEvent = ServerSideEvent & {
|
|
10
11
|
totalCount: number;
|
11
12
|
};
|
12
13
|
export type ServerSideScheduleEvent = ServerSideEvent;
|
14
|
+
export type ShopifySubscriptionInfo = Pick<ShopifyRecurringCharge, "id" | "name" | "price" | "status" | "crated_at" | "updated_at" | "activated_on" | "trial_days" | "trial_ends_on" | "test">;
|
13
15
|
export type CompanyStats = {
|
14
16
|
totalProductsCount: number;
|
15
17
|
syncedProductsCount: number;
|
@@ -22,6 +24,7 @@ export type CompanyStats = {
|
|
22
24
|
profileId: string;
|
23
25
|
profile: string;
|
24
26
|
}[];
|
27
|
+
subscription: ShopifySubscriptionInfo;
|
25
28
|
};
|
26
29
|
export type SubscriptionPlan = {
|
27
30
|
code: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"company.types.d.ts","sourceRoot":"","sources":["../../src/types/company.types.ts"],"names":[],"mappings":"
|
1
|
+
{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AAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
/* eslint-disable quotes */
|
2
|
+
import { ShopifyRecurringCharge } from "./shopify.types";
|
3
|
+
|
1
4
|
export type ServerSideEvent = {
|
2
5
|
shop: string;
|
3
6
|
eventID: string;
|
4
|
-
type:
|
7
|
+
type: "progress" | "schedule";
|
5
8
|
name: string;
|
6
9
|
status?: boolean;
|
7
10
|
};
|
@@ -13,6 +16,20 @@ export type ServerSideProgressEvent = ServerSideEvent & {
|
|
13
16
|
|
14
17
|
export type ServerSideScheduleEvent = ServerSideEvent;
|
15
18
|
|
19
|
+
export type ShopifySubscriptionInfo = Pick<
|
20
|
+
ShopifyRecurringCharge,
|
21
|
+
| "id"
|
22
|
+
| "name"
|
23
|
+
| "price"
|
24
|
+
| "status"
|
25
|
+
| "crated_at"
|
26
|
+
| "updated_at"
|
27
|
+
| "activated_on"
|
28
|
+
| "trial_days"
|
29
|
+
| "trial_ends_on"
|
30
|
+
| "test"
|
31
|
+
>;
|
32
|
+
|
16
33
|
export type CompanyStats = {
|
17
34
|
totalProductsCount: number;
|
18
35
|
syncedProductsCount: number;
|
@@ -25,6 +42,7 @@ export type CompanyStats = {
|
|
25
42
|
profileId: string;
|
26
43
|
profile: string;
|
27
44
|
}[];
|
45
|
+
subscription: ShopifySubscriptionInfo;
|
28
46
|
};
|
29
47
|
|
30
48
|
export type SubscriptionPlan = {
|
@@ -35,4 +53,4 @@ export type SubscriptionPlan = {
|
|
35
53
|
price: number;
|
36
54
|
};
|
37
55
|
|
38
|
-
export type AppLimits = { products: number; profiles: number }
|
56
|
+
export type AppLimits = { products: number; profiles: number };
|