truflow 0.0.157 → 0.0.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ interface IOrderDetails {
4
4
  orderID: string;
5
5
  companyName: string;
6
6
  }
7
- export type IOrderMoved = (orderDetails: IOrderDetails, eventData: IMoveOrderEventData) => Promise<string>;
8
- export type IDateEntryMoved = (orderDetails: IOrderDetails, eventData: IMoveDateEntryEventData) => Promise<string>;
7
+ export type IOrderMoved = (orderDetails: IOrderDetails, eventData: IMoveOrderEventData, status: "success" | "warning" | "error", error?: any) => Promise<string>;
8
+ export type IDateEntryMoved = (orderDetails: IOrderDetails, eventData: IMoveDateEntryEventData, status: "success" | "warning" | "error", error?: any) => Promise<string>;
9
9
  export type IOrderProcessed = (input: any, message: string, status: "success" | "warning" | "error", source: "allmoxy" | "zapier", order?: IOrder, error?: any) => Promise<void>;
10
10
  export {};
package/dist/IEvent.d.ts CHANGED
@@ -32,6 +32,9 @@ export interface ILeanEvent {
32
32
  time: Date;
33
33
  orderID: string;
34
34
  status: "success" | "warning" | "error";
35
+ error?: any;
36
+ errorStack?: any;
37
+ errorDetails?: any;
35
38
  _type?: string;
36
39
  }
37
40
  export interface IDateEntryMovedEvent extends Event, IDateEntryMoved {
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "truflow",
3
- "version": "0.0.157",
3
+ "version": "0.0.158",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
- "build": "tsc"
7
+ "build": "tsc",
8
+ "prepublish": "tsc"
8
9
  },
9
10
  "dependencies": {
10
11
  "@types/express": "^4.17.17",
@@ -8,12 +8,16 @@ interface IOrderDetails {
8
8
 
9
9
  export type IOrderMoved = (
10
10
  orderDetails: IOrderDetails,
11
- eventData: IMoveOrderEventData
11
+ eventData: IMoveOrderEventData,
12
+ status: "success" | "warning" | "error",
13
+ error?: any
12
14
  ) => Promise<string>;
13
15
 
14
16
  export type IDateEntryMoved = (
15
17
  orderDetails: IOrderDetails,
16
- eventData: IMoveDateEntryEventData
18
+ eventData: IMoveDateEntryEventData,
19
+ status: "success" | "warning" | "error",
20
+ error?: any
17
21
  ) => Promise<string>;
18
22
 
19
23
  export type IOrderProcessed = (
package/src/IEvent.ts CHANGED
@@ -10,6 +10,9 @@ export interface ILeanEvent {
10
10
  time: Date;
11
11
  orderID: string;
12
12
  status: "success" | "warning" | "error";
13
+ error?: any;
14
+ errorStack?: any;
15
+ errorDetails?: any;
13
16
  _type?: string;
14
17
  }
15
18