truflow 0.0.156 → 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>;
|
|
9
|
-
export type IOrderProcessed = (input: any, message: string, status: "success" | "warning" | "error", order?: IOrder, error?: any) => Promise<void>;
|
|
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
|
+
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
package/src/Helpers/IEvents.ts
CHANGED
|
@@ -8,18 +8,23 @@ 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 = (
|
|
20
24
|
input: any,
|
|
21
25
|
message: string,
|
|
22
26
|
status: "success" | "warning" | "error",
|
|
27
|
+
source: "allmoxy" | "zapier",
|
|
23
28
|
order?: IOrder,
|
|
24
29
|
error?: any
|
|
25
30
|
) => Promise<void>;
|