mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(editor): add tracking for the creation of linked-doc (#9266)
close: BS-2189
This commit is contained in:
@@ -7,6 +7,7 @@ import type {
|
||||
DocCreatedEvent,
|
||||
ElementCreationEvent,
|
||||
ElementLockEvent,
|
||||
LinkedDocCreatedEvent,
|
||||
MindMapCollapseEvent,
|
||||
TelemetryEvent,
|
||||
} from './types.js';
|
||||
@@ -15,7 +16,7 @@ export type TelemetryEventMap = OutDatabaseAllEvents &
|
||||
LinkToolbarEvents & {
|
||||
DocCreated: DocCreatedEvent;
|
||||
Link: TelemetryEvent;
|
||||
LinkedDocCreated: TelemetryEvent;
|
||||
LinkedDocCreated: LinkedDocCreatedEvent;
|
||||
SplitNote: TelemetryEvent;
|
||||
CanvasElementAdded: ElementCreationEvent;
|
||||
EdgelessElementLocked: ElementLockEvent;
|
||||
|
||||
@@ -22,6 +22,10 @@ export interface TelemetryEvent {
|
||||
other?: unknown;
|
||||
}
|
||||
|
||||
export interface LinkedDocCreatedEvent extends TelemetryEvent {
|
||||
parentFlavour?: string;
|
||||
}
|
||||
|
||||
export interface DocCreatedEvent extends TelemetryEvent {
|
||||
page?: 'doc editor' | 'whiteboard editor';
|
||||
segment?: 'whiteboard' | 'note' | 'doc';
|
||||
|
||||
Reference in New Issue
Block a user