package apps

type AppInfo struct {
	Name            string `json:"name"`
	Path            string `json:"path"`
	BundleID        string `json:"bundleID"` // On Windows this can be ProductCode or Registry Key Name
	UninstallString string `json:"uninstallString"`
	Size            int64  `json:"size"`
	Icon            string `json:"icon,omitempty"`
}

type AssociatedFile struct {
	Path string `json:"path"`
	Type string `json:"type"` // "cache", "config", "log", "data"
	Size int64  `json:"size"`
}

type AppDetails struct {
	AppInfo
	Associated []AssociatedFile `json:"associated"`
	TotalSize  int64            `json:"totalSize"`
}
