refactor(core): More decouplings from internal hooks (no-changelog) (#10099)

This commit is contained in:
Iván Ovejero
2024-07-19 10:33:13 +02:00
committed by GitHub
parent 11db5a5b51
commit 5eca7c8e28
11 changed files with 106 additions and 52 deletions

View File

@@ -4,7 +4,7 @@ import type { Event } from './event.types';
@Service()
export class EventRelay extends EventEmitter {
emit<K extends keyof Event>(eventName: K, arg: Event[K]) {
emit<K extends keyof Event>(eventName: K, arg?: Event[K]) {
super.emit(eventName, arg);
return true;
}

View File

@@ -252,4 +252,24 @@ export type Event = {
credsPushed: number;
variablesPushed: number;
};
'license-renewal-attempted': {
success: boolean;
};
'security-audit-generated-via-cli': {
// no payload
};
'variable-created': {
variableType: string;
};
'external-secrets-provider-settings-saved': {
userId?: string;
vaultType: string;
isValid: boolean;
isNew: boolean;
errorMessage?: string;
};
};