-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsession-replay-browser.d.ts
More file actions
86 lines (86 loc) · 4.16 KB
/
Copy pathsession-replay-browser.d.ts
File metadata and controls
86 lines (86 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import type * as SessionReplay from '../generated/browserSessionReplay';
export * from '../generated/browserSessionReplay';
/**
* For backward compatibility reasons, `undefined` should be accepted as a possible value for Browser segments, too.
**/
export declare const BrowserSource: {
readonly Browser: "browser";
};
export type BrowserSource = (typeof BrowserSource)[keyof typeof BrowserSource];
export declare const RecordType: {
FullSnapshot: SessionReplay.BrowserFullSnapshotRecord['type'];
IncrementalSnapshot: SessionReplay.BrowserIncrementalSnapshotRecord['type'];
Meta: SessionReplay.MetaRecord['type'];
Focus: SessionReplay.FocusRecord['type'];
ViewEnd: SessionReplay.ViewEndRecord['type'];
VisualViewport: SessionReplay.VisualViewportRecord['type'];
FrustrationRecord: SessionReplay.FrustrationRecord['type'];
Change: SessionReplay.BrowserChangeRecord['type'];
};
export type RecordType = (typeof RecordType)[keyof typeof RecordType];
export declare const NodeType: {
Document: SessionReplay.DocumentNode['type'];
DocumentType: SessionReplay.DocumentTypeNode['type'];
Element: SessionReplay.ElementNode['type'];
Text: SessionReplay.TextNode['type'];
CDATA: SessionReplay.CDataNode['type'];
DocumentFragment: SessionReplay.DocumentFragmentNode['type'];
};
export type NodeType = (typeof NodeType)[keyof typeof NodeType];
export declare const IncrementalSource: {
Mutation: SessionReplay.BrowserMutationData['source'];
MouseMove: Exclude<SessionReplay.MousemoveData['source'], 6>;
MouseInteraction: SessionReplay.MouseInteractionData['source'];
Scroll: SessionReplay.ScrollData['source'];
ViewportResize: SessionReplay.ViewportResizeData['source'];
Input: SessionReplay.InputData['source'];
TouchMove: Exclude<SessionReplay.MousemoveData['source'], 1>;
MediaInteraction: SessionReplay.MediaInteractionData['source'];
StyleSheetRule: SessionReplay.StyleSheetRuleData['source'];
PointerInteraction: SessionReplay.PointerInteractionData['source'];
};
export type IncrementalSource = (typeof IncrementalSource)[keyof typeof IncrementalSource];
export declare const MouseInteractionType: {
readonly MouseUp: 0;
readonly MouseDown: 1;
readonly Click: 2;
readonly ContextMenu: 3;
readonly DblClick: 4;
readonly Focus: 5;
readonly Blur: 6;
readonly TouchStart: 7;
readonly TouchEnd: 9;
};
export type MouseInteractionType = (typeof MouseInteractionType)[keyof typeof MouseInteractionType];
export declare const MediaInteractionType: {
readonly Play: 0;
readonly Pause: 1;
};
export type MediaInteractionType = (typeof MediaInteractionType)[keyof typeof MediaInteractionType];
type ChangeTypeId<Id, Data> = [Id, ...Data[]] extends SessionReplay.Change ? Id : never;
export declare const ChangeType: {
AddString: ChangeTypeId<0, SessionReplay.AddStringChange>;
AddNode: ChangeTypeId<1, SessionReplay.AddNodeChange>;
RemoveNode: ChangeTypeId<2, SessionReplay.RemoveNodeChange>;
Attribute: ChangeTypeId<3, SessionReplay.AttributeChange>;
Text: ChangeTypeId<4, SessionReplay.TextChange>;
Size: ChangeTypeId<5, SessionReplay.SizeChange>;
ScrollPosition: ChangeTypeId<6, SessionReplay.ScrollPositionChange>;
AddStyleSheet: ChangeTypeId<7, SessionReplay.AddStyleSheetChange>;
AttachedStyleSheets: ChangeTypeId<8, SessionReplay.AttachedStyleSheetsChange>;
MediaPlaybackState: ChangeTypeId<9, SessionReplay.MediaPlaybackStateChange>;
VisualViewport: ChangeTypeId<10, SessionReplay.VisualViewportChange>;
AddStringNamespace: ChangeTypeId<11, SessionReplay.AddStringNamespaceChange>;
AddNamespacedString: ChangeTypeId<12, SessionReplay.AddNamespacedStringChange>;
};
export type ChangeType = (typeof ChangeType)[keyof typeof ChangeType];
export declare const PlaybackState: {
Playing: SessionReplay.PlaybackStatePlaying;
Paused: SessionReplay.PlaybackStatePaused;
};
export type PlaybackState = (typeof PlaybackState)[keyof typeof PlaybackState];
export declare const SnapshotFormat: {
V1: SessionReplay.SnapshotFormatV1;
Change: SessionReplay.SnapshotFormatChange;
};
export type SnapshotFormat = (typeof SnapshotFormat)[keyof typeof SnapshotFormat];