feed-common 1.41.2 → 1.42.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.42.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.41.2...v1.42.0) (2024-08-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * add meta to SSE events payload ([a1e2727](https://github.com/advertikon/package-maxify-feed-common/commit/a1e2727b4a4c9494ca0dd69932b63085564fef8b))
7
+
1
8
  ## [1.41.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.41.1...v1.41.2) (2024-08-28)
2
9
 
3
10
 
@@ -1,17 +1,18 @@
1
- import { ShopifyRecurringCharge } from "./shopify.types";
1
+ import { ShopifyRecurringCharge } from './shopify.types';
2
2
  export type ServerSideEvent = {
3
3
  shop: string;
4
4
  eventID: string;
5
- type: "progress" | "schedule";
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, "return_url" | "decorated_return_url" | "confirmation_url">;
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;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAC9B,IAAI,EAAE,MAAM,CA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0",
4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,47 +1,48 @@
1
1
  /* eslint-disable quotes */
2
- import { ShopifyRecurringCharge } from "./shopify.types";
2
+ import { ShopifyRecurringCharge } from './shopify.types';
3
3
 
4
4
  export type ServerSideEvent = {
5
- shop: string;
6
- eventID: string;
7
- type: "progress" | "schedule";
8
- name: string;
9
- status?: boolean;
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
- progress: number;
14
- totalCount: number;
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
- ShopifyRecurringCharge,
21
- "return_url" | "decorated_return_url" | "confirmation_url"
21
+ ShopifyRecurringCharge,
22
+ 'return_url' | 'decorated_return_url' | 'confirmation_url'
22
23
  >;
23
24
 
24
25
  export type CompanyStats = {
25
- totalProductsCount: number;
26
- syncedProductsCount: number;
27
- limits: AppLimits;
28
- maxProducts: number;
29
- profilesStats: {
30
- count: number;
31
- errors: number;
32
- warnings: number;
33
- profileId: string;
34
- profile: string;
35
- }[];
36
- subscription: ShopifySubscriptionInfo;
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
- code: string;
41
- level: number;
42
- products: number;
43
- profiles: number;
44
- price: number;
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 };