@hawk.so/types 0.1.13 → 0.1.17
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/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/src/base/event/addons/default.d.ts +5 -0
- package/build/src/base/event/addons/default.js +2 -0
- package/build/src/base/event/addons/index.d.ts +3 -2
- package/build/src/catchers/catcher-message.d.ts +19 -0
- package/build/src/catchers/catcher-message.js +2 -0
- package/build/src/dbScheme/plan.d.ts +5 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/src/base/event/addons/default.ts +4 -0
- package/src/base/event/addons/index.ts +4 -1
- package/src/catchers/catcher-message.ts +22 -0
- package/src/dbScheme/plan.ts +6 -0
package/build/index.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export * from "./src/notifications/createProjectNotifications";
|
|
|
26
26
|
export * from "./src/notifications/receiveTypes";
|
|
27
27
|
export * from "./src/notifications/updateProjectNotifications";
|
|
28
28
|
export * from "./src/notifications/userNotification";
|
|
29
|
+
export * from "./src/catchers/catcher-message";
|
|
29
30
|
export * from './src/utils';
|
package/build/index.js
CHANGED
|
@@ -38,4 +38,5 @@ __exportStar(require("./src/notifications/createProjectNotifications"), exports)
|
|
|
38
38
|
__exportStar(require("./src/notifications/receiveTypes"), exports);
|
|
39
39
|
__exportStar(require("./src/notifications/updateProjectNotifications"), exports);
|
|
40
40
|
__exportStar(require("./src/notifications/userNotification"), exports);
|
|
41
|
+
__exportStar(require("./src/catchers/catcher-message"), exports);
|
|
41
42
|
__exportStar(require("./src/utils"), exports);
|
|
@@ -3,8 +3,9 @@ import { PhpAddons } from './php';
|
|
|
3
3
|
import { NodeJSAddons } from './nodejs';
|
|
4
4
|
import { GoAddons } from './go';
|
|
5
5
|
import { PythonAddons } from './python';
|
|
6
|
+
import { DefaultAddons } from './default';
|
|
6
7
|
/**
|
|
7
8
|
* Union Type describing all catcher-specific additional data
|
|
8
9
|
*/
|
|
9
|
-
declare type EventAddons = JavaScriptAddons | PhpAddons | NodeJSAddons | GoAddons | PythonAddons;
|
|
10
|
-
export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, EventAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons };
|
|
10
|
+
declare type EventAddons = JavaScriptAddons | PhpAddons | NodeJSAddons | GoAddons | PythonAddons | DefaultAddons;
|
|
11
|
+
export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, EventAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons, DefaultAddons };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventData } from "../base/event/event";
|
|
2
|
+
import { EventAddons } from "../base/event/addons";
|
|
3
|
+
/**
|
|
4
|
+
* Structure describing a message sending by Catcher
|
|
5
|
+
*/
|
|
6
|
+
export default interface CatcherMessage<CatcherAddons extends EventAddons> {
|
|
7
|
+
/**
|
|
8
|
+
* User project's Integration Token
|
|
9
|
+
*/
|
|
10
|
+
token: string;
|
|
11
|
+
/**
|
|
12
|
+
* Hawk Catcher name
|
|
13
|
+
*/
|
|
14
|
+
catcherType: string;
|
|
15
|
+
/**
|
|
16
|
+
* All information about the event
|
|
17
|
+
*/
|
|
18
|
+
payload: EventData<CatcherAddons>;
|
|
19
|
+
}
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { PhpAddons } from './php';
|
|
|
3
3
|
import { NodeJSAddons } from './nodejs';
|
|
4
4
|
import { GoAddons } from './go';
|
|
5
5
|
import { PythonAddons } from './python';
|
|
6
|
+
import { DefaultAddons } from './default';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Union Type describing all catcher-specific additional data
|
|
@@ -13,6 +14,7 @@ type EventAddons =
|
|
|
13
14
|
| NodeJSAddons
|
|
14
15
|
| GoAddons
|
|
15
16
|
| PythonAddons
|
|
17
|
+
| DefaultAddons
|
|
16
18
|
;
|
|
17
19
|
|
|
18
20
|
export {
|
|
@@ -24,5 +26,6 @@ export {
|
|
|
24
26
|
PhpAddons,
|
|
25
27
|
NodeJSAddons,
|
|
26
28
|
GoAddons,
|
|
27
|
-
PythonAddons
|
|
29
|
+
PythonAddons,
|
|
30
|
+
DefaultAddons
|
|
28
31
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventData } from "../base/event/event";
|
|
2
|
+
import { EventAddons } from "../base/event/addons";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Structure describing a message sending by Catcher
|
|
6
|
+
*/
|
|
7
|
+
export default interface CatcherMessage<CatcherAddons extends EventAddons> {
|
|
8
|
+
/**
|
|
9
|
+
* User project's Integration Token
|
|
10
|
+
*/
|
|
11
|
+
token: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Hawk Catcher name
|
|
15
|
+
*/
|
|
16
|
+
catcherType: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* All information about the event
|
|
20
|
+
*/
|
|
21
|
+
payload: EventData<CatcherAddons>;
|
|
22
|
+
}
|
package/src/dbScheme/plan.ts
CHANGED