@hawk.so/types 0.1.29 → 0.1.31

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.
@@ -1,4 +1,4 @@
1
- import { JavaScriptAddons, WindowData, VueIntegrationAddons, BeautifiedUserAgent } from './javascript';
1
+ import { JavaScriptAddons, WindowData, VueIntegrationAddons, BeautifiedUserAgent, ConsoleLogEvent } from './javascript';
2
2
  import { PhpAddons } from './php';
3
3
  import { NodeJSAddons } from './nodejs';
4
4
  import { GoAddons } from './go';
@@ -8,4 +8,4 @@ import { DefaultAddons } from './default';
8
8
  * Union Type describing all catcher-specific additional data
9
9
  */
10
10
  declare type EventAddons = DefaultAddons | JavaScriptAddons | PhpAddons | NodeJSAddons | GoAddons | PythonAddons | DefaultAddons;
11
- export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, EventAddons, DefaultAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons, };
11
+ export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, ConsoleLogEvent, EventAddons, DefaultAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons, };
@@ -48,6 +48,10 @@ export interface ConsoleLogEvent {
48
48
  * File and line number where the log occurred
49
49
  */
50
50
  fileLine?: string;
51
+ /**
52
+ * CSS styles for %c formatting
53
+ */
54
+ styles?: string[];
51
55
  }
52
56
  /**
53
57
  * Additional data that can be sent by the JavaScript Catcher
@@ -41,4 +41,8 @@ export interface ProjectNotificationsRuleDBScheme {
41
41
  * Size of period (in milliseconds) to count events to compare to rule threshold
42
42
  */
43
43
  thresholdPeriod?: number;
44
+ /**
45
+ * If rule is created automatically (on project creation or conversion of old projects)
46
+ */
47
+ autoAdded?: string;
44
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawk.so/types",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -1,4 +1,4 @@
1
- import { JavaScriptAddons, WindowData, VueIntegrationAddons, BeautifiedUserAgent } from './javascript';
1
+ import { JavaScriptAddons, WindowData, VueIntegrationAddons, BeautifiedUserAgent, ConsoleLogEvent } from './javascript';
2
2
  import { PhpAddons } from './php';
3
3
  import { NodeJSAddons } from './nodejs';
4
4
  import { GoAddons } from './go';
@@ -22,6 +22,7 @@ export {
22
22
  WindowData,
23
23
  VueIntegrationAddons,
24
24
  BeautifiedUserAgent,
25
+ ConsoleLogEvent,
25
26
  EventAddons,
26
27
  DefaultAddons,
27
28
  JavaScriptAddons,
@@ -58,6 +58,11 @@ export interface ConsoleLogEvent {
58
58
  * File and line number where the log occurred
59
59
  */
60
60
  fileLine?: string;
61
+
62
+ /**
63
+ * CSS styles for %c formatting
64
+ */
65
+ styles?: string[];
61
66
  }
62
67
 
63
68
  /**
@@ -50,4 +50,9 @@ export interface ProjectNotificationsRuleDBScheme {
50
50
  * Size of period (in milliseconds) to count events to compare to rule threshold
51
51
  */
52
52
  thresholdPeriod?: number;
53
+
54
+ /**
55
+ * If rule is created automatically (on project creation or conversion of old projects)
56
+ */
57
+ autoAdded?: string;
53
58
  }