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

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.
@@ -85,6 +85,10 @@ export interface JavaScriptAddons {
85
85
  * Vue integration data
86
86
  */
87
87
  vue?: VueIntegrationAddons;
88
+ /**
89
+ * Additional data extracted from the Sentry event addons
90
+ */
91
+ sentry?: SentryAddons;
88
92
  /**
89
93
  * Console log events collected from the browser
90
94
  */
@@ -128,3 +132,45 @@ export interface VueIntegrationAddons {
128
132
  */
129
133
  computed?: Json;
130
134
  }
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawk.so/types",
3
- "version": "0.1.32-rc.7",
3
+ "version": "0.1.32-rc.8",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -104,6 +104,11 @@ export interface JavaScriptAddons {
104
104
  */
105
105
  vue?: VueIntegrationAddons;
106
106
 
107
+ /**
108
+ * Additional data extracted from the Sentry event addons
109
+ */
110
+ sentry?: SentryAddons;
111
+
107
112
  /**
108
113
  * Console log events collected from the browser
109
114
  */
@@ -154,3 +159,46 @@ export interface VueIntegrationAddons {
154
159
  */
155
160
  computed?: Json;
156
161
  }
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
+ }
@@ -7,13 +7,18 @@ import type {
7
7
  NodeJSAddons,
8
8
  GoAddons,
9
9
  PythonAddons,
10
- DefaultAddons
10
+ DefaultAddons,
11
11
  } from '../base/event/addons';
12
12
 
13
13
  /**
14
14
  * Type that represents all supported Catcher message types for events
15
15
  */
16
- export type ErrorsCatcherType = 'errors/javascript' | 'errors/php' | 'errors/nodejs' | 'errors/go' | 'errors/python' | 'errors/default';
16
+ export type ErrorsCatcherType = 'errors/javascript'
17
+ | 'errors/php'
18
+ | 'errors/nodejs'
19
+ | 'errors/go'
20
+ | 'errors/python'
21
+ | 'errors/default'
17
22
 
18
23
  /**
19
24
  * Type that represents all supported Catcher message types for performance