Skip to content

Commit b31832b

Browse files
committed
chore: Replace BreadcrumbLevel and BreadcrumbType enums with String to accept arbitrary SDK values
1 parent 8c3059e commit b31832b

2 files changed

Lines changed: 9 additions & 28 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hawk.api",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"main": "index.ts",
55
"license": "BUSL-1.1",
66
"scripts": {

src/typeDefs/event.ts

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -116,29 +116,6 @@ type EventUser {
116116
photo: String
117117
}
118118
119-
"""
120-
Breadcrumb severity level
121-
"""
122-
enum BreadcrumbLevel {
123-
fatal
124-
error
125-
warning
126-
info
127-
debug
128-
}
129-
130-
"""
131-
Breadcrumb type - controls categorization and UI appearance
132-
"""
133-
enum BreadcrumbType {
134-
default
135-
request
136-
ui
137-
navigation
138-
logic
139-
error
140-
}
141-
142119
"""
143120
Single breadcrumb entry - represents an event that occurred before the error
144121
"""
@@ -149,9 +126,11 @@ type Breadcrumb {
149126
timestamp: Float!
150127
151128
"""
152-
Type of breadcrumb - controls UI categorization
129+
Type of breadcrumb - controls UI categorization.
130+
Common values: default, request, ui, navigation, logic, error.
131+
Accepts any string since SDK users may send custom types.
153132
"""
154-
type: BreadcrumbType
133+
type: String
155134
156135
"""
157136
Category of the event - more specific than type
@@ -164,9 +143,11 @@ type Breadcrumb {
164143
message: String
165144
166145
"""
167-
Severity level of the breadcrumb
146+
Severity level of the breadcrumb.
147+
Common values: fatal, error, warning, info, debug.
148+
Accepts any string since SDK users may send custom levels.
168149
"""
169-
level: BreadcrumbLevel
150+
level: String
170151
171152
"""
172153
Arbitrary key-value data associated with the breadcrumb

0 commit comments

Comments
 (0)