Version
This commit is contained in:
@@ -108,6 +108,56 @@ interface EventTypes {
|
||||
company: CompanyController;
|
||||
updatedFields: Partial<Company>;
|
||||
}) => void;
|
||||
|
||||
// ConnectWise Catalog Events
|
||||
"cw:catalog:refresh:check": () => void;
|
||||
"cw:catalog:refresh:started": (data: {
|
||||
totalCw: number;
|
||||
totalDb: number;
|
||||
staleCount: number;
|
||||
}) => void;
|
||||
"cw:catalog:refresh:completed": (data: {
|
||||
totalCw: number;
|
||||
totalDb: number;
|
||||
staleCount: number;
|
||||
itemsUpdated: number;
|
||||
}) => void;
|
||||
"cw:catalog:refresh:skipped": (data: {
|
||||
totalCw: number;
|
||||
totalDb: number;
|
||||
staleCount: number;
|
||||
}) => void;
|
||||
|
||||
// UniFi Events
|
||||
"unifi:login:ok": (data: {
|
||||
type: "unifi-os" | "legacy";
|
||||
status: number;
|
||||
}) => void;
|
||||
"unifi:login:fallback": () => void;
|
||||
"unifi:reauth": () => void;
|
||||
"unifi:sites:sync:started": () => void;
|
||||
"unifi:sites:sync:completed": (data: {
|
||||
total: number;
|
||||
created: number;
|
||||
updated: number;
|
||||
}) => void;
|
||||
"unifi:wlan:fetched": (data: { path: string }) => void;
|
||||
"unifi:wlan:fetch_failed": (data: {
|
||||
path: string;
|
||||
status: number | unknown;
|
||||
}) => void;
|
||||
|
||||
// ConnectWise Inventory Events
|
||||
"cw:inventory:refresh:check": () => void;
|
||||
"cw:inventory:refresh:started": (data: { totalItems: number }) => void;
|
||||
"cw:inventory:refresh:completed": (data: {
|
||||
totalItems: number;
|
||||
updatedCount: number;
|
||||
}) => void;
|
||||
"cw:inventory:refresh:skipped": (data: {
|
||||
totalItems: number;
|
||||
updatedCount: number;
|
||||
}) => void;
|
||||
}
|
||||
|
||||
export const events = new Eventra<EventTypes>();
|
||||
|
||||
Reference in New Issue
Block a user