Skip to content

Commit b9af9ac

Browse files
committed
Switch source_type formats
1 parent 7d0c64f commit b9af9ac

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
286286
/**
287287
* Source type of the error (the language or platform impacting the error stacktrace format)
288288
*/
289-
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' | 'pe' | 'elf' | 'macho';
289+
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' | 'windows' | 'macos' | 'linux';
290290
/**
291291
* Resource properties of the error
292292
*/

lib/esm/generated/rum.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export type RumErrorEvent = CommonProperties & ActionChildProperties & ViewConta
286286
/**
287287
* Source type of the error (the language or platform impacting the error stacktrace format)
288288
*/
289-
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' | 'pe' | 'elf' | 'macho';
289+
readonly source_type?: 'android' | 'browser' | 'ios' | 'react-native' | 'flutter' | 'roku' | 'ndk' | 'ios+il2cpp' | 'ndk+il2cpp' | 'windows' | 'macos' | 'linux';
290290
/**
291291
* Resource properties of the error
292292
*/

lib/src/session-replay-browser.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const BrowserSource = {
99
Browser: 'browser',
1010
} as const
1111

12-
export type BrowserSource = typeof BrowserSource[keyof typeof BrowserSource]
12+
export type BrowserSource = (typeof BrowserSource)[keyof typeof BrowserSource]
1313

1414
export const RecordType: {
1515
FullSnapshot: SessionReplay.BrowserFullSnapshotRecord['type']
@@ -31,7 +31,7 @@ export const RecordType: {
3131
Change: 12,
3232
} as const
3333

34-
export type RecordType = typeof RecordType[keyof typeof RecordType]
34+
export type RecordType = (typeof RecordType)[keyof typeof RecordType]
3535

3636
export const NodeType: {
3737
Document: SessionReplay.DocumentNode['type']
@@ -49,7 +49,7 @@ export const NodeType: {
4949
DocumentFragment: 11,
5050
} as const
5151

52-
export type NodeType = typeof NodeType[keyof typeof NodeType]
52+
export type NodeType = (typeof NodeType)[keyof typeof NodeType]
5353

5454
export const IncrementalSource: {
5555
Mutation: SessionReplay.BrowserMutationData['source']
@@ -76,7 +76,7 @@ export const IncrementalSource: {
7676
// Font : 10,
7777
} as const
7878

79-
export type IncrementalSource = typeof IncrementalSource[keyof typeof IncrementalSource]
79+
export type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource]
8080

8181
export const MouseInteractionType = {
8282
MouseUp: 0,
@@ -90,14 +90,14 @@ export const MouseInteractionType = {
9090
TouchEnd: 9,
9191
} as const
9292

93-
export type MouseInteractionType = typeof MouseInteractionType[keyof typeof MouseInteractionType]
93+
export type MouseInteractionType = (typeof MouseInteractionType)[keyof typeof MouseInteractionType]
9494

9595
export const MediaInteractionType = {
9696
Play: 0,
9797
Pause: 1,
9898
} as const
9999

100-
export type MediaInteractionType = typeof MediaInteractionType[keyof typeof MediaInteractionType]
100+
export type MediaInteractionType = (typeof MediaInteractionType)[keyof typeof MediaInteractionType]
101101

102102
// ChangeTypeId evaluates to Id if [Id, ...Data[]] is a valid variant of Change;
103103
// otherwise, it triggers a compile-time error.
@@ -129,7 +129,7 @@ export const ChangeType: {
129129
VisualViewport: 10,
130130
} as const
131131

132-
export type ChangeType = typeof ChangeType[keyof typeof ChangeType]
132+
export type ChangeType = (typeof ChangeType)[keyof typeof ChangeType]
133133

134134
export const PlaybackState: {
135135
Playing: SessionReplay.PlaybackStatePlaying
@@ -139,4 +139,4 @@ export const PlaybackState: {
139139
Paused: 1,
140140
} as const
141141

142-
export type PlaybackState = typeof PlaybackState[keyof typeof PlaybackState]
142+
export type PlaybackState = (typeof PlaybackState)[keyof typeof PlaybackState]

lib/src/session-replay-mobile.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const MobileSource = {
1010
KotlinMultiplatform: 'kotlin-multiplatform',
1111
} as const
1212

13-
export type MobileSource = typeof MobileSource[keyof typeof MobileSource]
13+
export type MobileSource = (typeof MobileSource)[keyof typeof MobileSource]
1414

1515
export const RecordType: {
1616
FullSnapshot: SessionReplay.MobileFullSnapshotRecord['type']
@@ -28,7 +28,7 @@ export const RecordType: {
2828
VisualViewport: 8,
2929
} as const
3030

31-
export type RecordType = typeof RecordType[keyof typeof RecordType]
31+
export type RecordType = (typeof RecordType)[keyof typeof RecordType]
3232

3333
export const WireframeType: {
3434
Shape: SessionReplay.ShapeWireframe['type']
@@ -38,7 +38,7 @@ export const WireframeType: {
3838
Text: 'text',
3939
} as const
4040

41-
export type WireframeType = typeof WireframeType[keyof typeof WireframeType]
41+
export type WireframeType = (typeof WireframeType)[keyof typeof WireframeType]
4242

4343
export const IncrementalSource: {
4444
Mutation: SessionReplay.MobileMutationData['source']
@@ -52,4 +52,4 @@ export const IncrementalSource: {
5252
PointerInteraction: 9,
5353
} as const
5454

55-
export type IncrementalSource = typeof IncrementalSource[keyof typeof IncrementalSource]
55+
export type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource]

lib/src/session-replay.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const RecordType: {
4444
BrowserChange: 12,
4545
} as const
4646

47-
export type RecordType = typeof RecordType[keyof typeof RecordType]
47+
export type RecordType = (typeof RecordType)[keyof typeof RecordType]
4848

4949
export type IncrementalSource = BrowserIncrementalSource | MobileIncrementalSource
5050

@@ -54,15 +54,15 @@ export const PointerEventType = {
5454
PointerMove: 'move',
5555
} as const
5656

57-
export type PointerEventType = typeof PointerEventType[keyof typeof PointerEventType]
57+
export type PointerEventType = (typeof PointerEventType)[keyof typeof PointerEventType]
5858

5959
export const PointerType = {
6060
Mouse: 'mouse',
6161
Touch: 'touch',
6262
Pen: 'pen',
6363
} as const
6464

65-
export type PointerType = typeof PointerType[keyof typeof PointerType]
65+
export type PointerType = (typeof PointerType)[keyof typeof PointerType]
6666

6767
export type NodeId = number & { __brand: 'NodeId' }
6868
export type StringId = number & { __brand: 'StringId' }

schemas/rum/error-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@
128128
"ndk",
129129
"ios+il2cpp",
130130
"ndk+il2cpp",
131-
"pe",
132-
"elf",
133-
"macho"
131+
"windows",
132+
"macos",
133+
"linux"
134134
],
135135
"readOnly": true
136136
},

0 commit comments

Comments
 (0)