@hawk.so/types 0.1.32-rc.8 → 0.1.32

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,5 +1,10 @@
1
+ import { SentryAddons } from "./sentry";
1
2
  /**
2
3
  * This interface represents data that can be additionally collected by Default Catcher
3
4
  */
4
5
  export interface DefaultAddons {
6
+ /**
7
+ * Additional data extracted from the Sentry event addons
8
+ */
9
+ sentry?: SentryAddons;
5
10
  }
@@ -4,8 +4,9 @@ import { NodeJSAddons } from './nodejs';
4
4
  import { GoAddons } from './go';
5
5
  import { PythonAddons } from './python';
6
6
  import { DefaultAddons } from './default';
7
+ import { SentryAddons } from './sentry';
7
8
  /**
8
9
  * Union Type describing all catcher-specific additional data
9
10
  */
10
- declare type EventAddons = DefaultAddons | JavaScriptAddons | PhpAddons | NodeJSAddons | GoAddons | PythonAddons | DefaultAddons;
11
- export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, ConsoleLogEvent, EventAddons, DefaultAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons, };
11
+ declare type EventAddons = DefaultAddons | JavaScriptAddons | PhpAddons | NodeJSAddons | GoAddons | PythonAddons | DefaultAddons | SentryAddons;
12
+ export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, ConsoleLogEvent, EventAddons, DefaultAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons, SentryAddons, };
@@ -1,4 +1,5 @@
1
1
  import { Json } from '../../../utils';
2
+ import { SentryAddons } from './sentry';
2
3
  /**
3
4
  * Parsed user agent
4
5
  */
@@ -132,45 +133,3 @@ export interface VueIntegrationAddons {
132
133
  */
133
134
  computed?: Json;
134
135
  }
135
- /**
136
- * Additional data extracted from the Sentry event payload
137
- */
138
- export interface SentryAddons {
139
- message?: string;
140
- logentry?: {
141
- message?: string;
142
- params?: string[];
143
- };
144
- level?: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug';
145
- platform?: string;
146
- logger?: string;
147
- server_name?: string;
148
- dist?: string;
149
- environment?: string;
150
- request?: {
151
- url?: string;
152
- method?: string;
153
- data?: any;
154
- query_string?: string | {
155
- [key: string]: string;
156
- } | Array<[string, string]>;
157
- cookies?: {
158
- [key: string]: string;
159
- };
160
- env?: {
161
- [key: string]: string;
162
- };
163
- headers?: {
164
- [key: string]: string;
165
- };
166
- };
167
- transaction?: string;
168
- modules?: {
169
- [key: string]: string;
170
- };
171
- fingerprint?: string[];
172
- tags?: {
173
- [key: string]: number | string | boolean | bigint | symbol | null | undefined;
174
- };
175
- extra?: Record<string, unknown>;
176
- }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Additional data extracted from the Sentry event payload
3
+ */
4
+ export interface SentryAddons {
5
+ message?: string;
6
+ logentry?: {
7
+ message?: string;
8
+ params?: string[];
9
+ };
10
+ level?: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug';
11
+ platform?: string;
12
+ logger?: string;
13
+ server_name?: string;
14
+ dist?: string;
15
+ environment?: string;
16
+ request?: {
17
+ url?: string;
18
+ method?: string;
19
+ data?: any;
20
+ query_string?: string | {
21
+ [key: string]: string;
22
+ } | Array<[string, string]>;
23
+ cookies?: {
24
+ [key: string]: string;
25
+ };
26
+ env?: {
27
+ [key: string]: string;
28
+ };
29
+ headers?: {
30
+ [key: string]: string;
31
+ };
32
+ };
33
+ transaction?: string;
34
+ modules?: {
35
+ [key: string]: string;
36
+ };
37
+ fingerprint?: string[];
38
+ tags?: {
39
+ [key: string]: number | string | boolean | bigint | symbol | null | undefined;
40
+ };
41
+ extra?: Record<string, unknown>;
42
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawk.so/types",
3
- "version": "0.1.32-rc.8",
3
+ "version": "0.1.32",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -1,4 +1,11 @@
1
+ import { SentryAddons } from "./sentry";
2
+
1
3
  /**
2
4
  * This interface represents data that can be additionally collected by Default Catcher
3
5
  */
4
- export interface DefaultAddons {}
6
+ export interface DefaultAddons {
7
+ /**
8
+ * Additional data extracted from the Sentry event addons
9
+ */
10
+ sentry?: SentryAddons;
11
+ }
@@ -4,6 +4,7 @@ import { NodeJSAddons } from './nodejs';
4
4
  import { GoAddons } from './go';
5
5
  import { PythonAddons } from './python';
6
6
  import { DefaultAddons } from './default';
7
+ import { SentryAddons } from './sentry';
7
8
 
8
9
  /**
9
10
  * Union Type describing all catcher-specific additional data
@@ -16,7 +17,8 @@ type EventAddons =
16
17
  | GoAddons
17
18
  | PythonAddons
18
19
  | DefaultAddons
19
- ;
20
+ | SentryAddons;
21
+
20
22
 
21
23
  export {
22
24
  WindowData,
@@ -30,4 +32,5 @@ export {
30
32
  NodeJSAddons,
31
33
  GoAddons,
32
34
  PythonAddons,
35
+ SentryAddons,
33
36
  }
@@ -1,4 +1,5 @@
1
1
  import { Json } from '../../../utils';
2
+ import { SentryAddons } from './sentry';
2
3
 
3
4
  /**
4
5
  * Parsed user agent
@@ -159,46 +160,3 @@ export interface VueIntegrationAddons {
159
160
  */
160
161
  computed?: Json;
161
162
  }
162
-
163
- /**
164
- * Additional data extracted from the Sentry event payload
165
- */
166
- export interface SentryAddons {
167
- message?: string;
168
- logentry?: {
169
- message?: string;
170
- params?: string[];
171
- };
172
- level?: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug';
173
- platform?: string;
174
- logger?: string;
175
- server_name?: string;
176
- dist?: string;
177
- environment?: string;
178
- request?: {
179
- url?: string;
180
- method?: string;
181
- data?: any;
182
- query_string?: string | {
183
- [key: string]: string;
184
- } | Array<[string, string]>;
185
- cookies?: {
186
- [key: string]: string;
187
- };
188
- env?: {
189
- [key: string]: string;
190
- };
191
- headers?: {
192
- [key: string]: string;
193
- };
194
- };
195
- transaction?: string;
196
- modules?: {
197
- [key: string]: string;
198
- };
199
- fingerprint?: string[];
200
- tags?: {
201
- [key: string]: number | string | boolean | bigint | symbol | null | undefined;
202
- };
203
- extra?: Record<string, unknown>;
204
- }
@@ -0,0 +1,43 @@
1
+
2
+ /**
3
+ * Additional data extracted from the Sentry event payload
4
+ */
5
+ export interface SentryAddons {
6
+ message?: string;
7
+ logentry?: {
8
+ message?: string;
9
+ params?: string[];
10
+ };
11
+ level?: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug';
12
+ platform?: string;
13
+ logger?: string;
14
+ server_name?: string;
15
+ dist?: string;
16
+ environment?: string;
17
+ request?: {
18
+ url?: string;
19
+ method?: string;
20
+ data?: any;
21
+ query_string?: string | {
22
+ [key: string]: string;
23
+ } | Array<[string, string]>;
24
+ cookies?: {
25
+ [key: string]: string;
26
+ };
27
+ env?: {
28
+ [key: string]: string;
29
+ };
30
+ headers?: {
31
+ [key: string]: string;
32
+ };
33
+ };
34
+ transaction?: string;
35
+ modules?: {
36
+ [key: string]: string;
37
+ };
38
+ fingerprint?: string[];
39
+ tags?: {
40
+ [key: string]: number | string | boolean | bigint | symbol | null | undefined;
41
+ };
42
+ extra?: Record<string, unknown>;
43
+ }