feat: add customer event (#7029)

This commit is contained in:
darkskygit
2024-05-24 08:40:33 +00:00
parent 937b8bf166
commit 0302a85585
13 changed files with 137 additions and 50 deletions

View File

@@ -340,6 +340,9 @@ export interface AFFiNEConfig {
metrics: {
enabled: boolean;
customerIo: {
token: string;
};
};
telemetry: {

View File

@@ -188,6 +188,9 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
},
metrics: {
enabled: false,
customerIo: {
token: '',
},
},
telemetry: {
enabled: isSelfhosted,

View File

@@ -22,6 +22,7 @@ export interface DocEvents {
}
export interface UserEvents {
updated: Payload<Omit<User, 'password'>>;
deleted: Payload<User>;
}