truflow 0.0.159 → 0.0.161
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.
- package/dist/Classes/IRoute.d.ts +11 -0
- package/dist/Classes/IRoute.js +2 -0
- package/dist/IEvent.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -1
- package/src/Classes/IRoute.ts +10 -0
- package/src/IEvent.ts +1 -1
- package/src/index.ts +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Agenda } from "@hokify/agenda";
|
|
2
|
+
import { Server } from "socket.io";
|
|
3
|
+
import { IRequestHandler } from "../IExpress";
|
|
4
|
+
export interface IRouteConstructor {
|
|
5
|
+
io: Server;
|
|
6
|
+
agenda: Agenda;
|
|
7
|
+
handlers: {
|
|
8
|
+
[key: string]: IRequestHandler;
|
|
9
|
+
};
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
}
|
package/dist/IEvent.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface IOrderMovedEvent extends Event, IOrderMoved {
|
|
|
43
43
|
}
|
|
44
44
|
export interface IOrderProcessedEvent extends Event, IOrderProcessed {
|
|
45
45
|
}
|
|
46
|
-
export interface
|
|
46
|
+
export interface IRequestErrorEvent extends ILeanEvent {
|
|
47
47
|
requestData: {
|
|
48
48
|
body: any;
|
|
49
49
|
params: any;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "truflow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.161",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
"prepublish": "tsc"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@hokify/agenda": "^6.3.0",
|
|
11
12
|
"@types/express": "^4.17.17",
|
|
12
13
|
"@types/luxon": "^3.3.0",
|
|
13
14
|
"mongoose": "^7.3.4",
|
|
15
|
+
"socket.io": "^4.7.5",
|
|
14
16
|
"typescript": "^5.1.6"
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Agenda } from "@hokify/agenda";
|
|
2
|
+
import { Server } from "socket.io";
|
|
3
|
+
import { IRequestHandler } from "../IExpress";
|
|
4
|
+
|
|
5
|
+
export interface IRouteConstructor {
|
|
6
|
+
io: Server;
|
|
7
|
+
agenda: Agenda;
|
|
8
|
+
handlers: { [key: string]: IRequestHandler };
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
}
|
package/src/IEvent.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface ILeanEvent {
|
|
|
19
19
|
export interface IDateEntryMovedEvent extends Event, IDateEntryMoved {}
|
|
20
20
|
export interface IOrderMovedEvent extends Event, IOrderMoved {}
|
|
21
21
|
export interface IOrderProcessedEvent extends Event, IOrderProcessed {}
|
|
22
|
-
export interface
|
|
22
|
+
export interface IRequestErrorEvent extends ILeanEvent {
|
|
23
23
|
requestData: {
|
|
24
24
|
body: any;
|
|
25
25
|
params: any;
|
package/src/index.ts
CHANGED