mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
feat: add customer event (#7029)
This commit is contained in:
@@ -340,6 +340,9 @@ export interface AFFiNEConfig {
|
||||
|
||||
metrics: {
|
||||
enabled: boolean;
|
||||
customerIo: {
|
||||
token: string;
|
||||
};
|
||||
};
|
||||
|
||||
telemetry: {
|
||||
|
||||
@@ -188,6 +188,9 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
|
||||
},
|
||||
metrics: {
|
||||
enabled: false,
|
||||
customerIo: {
|
||||
token: '',
|
||||
},
|
||||
},
|
||||
telemetry: {
|
||||
enabled: isSelfhosted,
|
||||
|
||||
@@ -22,6 +22,7 @@ export interface DocEvents {
|
||||
}
|
||||
|
||||
export interface UserEvents {
|
||||
updated: Payload<Omit<User, 'password'>>;
|
||||
deleted: Payload<User>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user