refactor(core): More decouplings from internal hooks (no-changelog) (#10099)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user