import { EventMap as BaseEventMap } from "react-eventizer";

import {
	AlarmModel,
	AssetGroupModel,
	AssetModel,
	FaultModel,
	EventModel,
} from "@/contracts/client.schemas";

export interface EventMap extends BaseEventMap {
	"ASSETS.CREATED": AssetModel;
	"ASSETS.DELETED": AssetModel;
	"ASSETS.UPDATED": AssetModel;

	"ASSET_GROUPS.CREATED": AssetGroupModel;
	"ASSET_GROUPS.DELETED": AssetGroupModel;
	"ASSET_GROUPS.UPDATED": AssetGroupModel;

	"ALARMS.CREATED": AlarmModel;
	"ALARMS.ACCEPTED": AlarmModel;
	"ALARMS.RESOLVED": AlarmModel;

	"FAULTS.CREATED": FaultModel;
	"FAULTS.DELETED": FaultModel;
	"EVENTS.CREATED": EventModel;
}
