Source-only publication of reviewed commit 64e96a7f423673dc29ad56485be9fc79bce8af1c.
Passed in isolation: focused frontend/backend tests, race checks, TypeScript typecheck, lint, Go compilation, Flowgram build, and deterministic SDK build/tests.
Not accepted as a production release: Next.js export/native assembly remains blocked by environment memory limits; browser interaction and MySQL staging acceptance remain unverified. No production server, database/schema, runtime configuration, deployment, release tag, or workflow execution was performed.
Expected source tree: 0a4a7528e9.
70 lines
1.8 KiB
Go
70 lines
1.8 KiB
Go
// Modified in AgentDeskNext: authenticated support availability and calendars.
|
|
package enums
|
|
|
|
type AgentRunResolutionStatus string
|
|
|
|
const (
|
|
AgentRunResolutionStatusUnknown AgentRunResolutionStatus = "unknown"
|
|
AgentRunResolutionStatusResolved AgentRunResolutionStatus = "resolved"
|
|
AgentRunResolutionStatusUnresolved AgentRunResolutionStatus = "unresolved"
|
|
)
|
|
|
|
var AgentRunResolutionStatusValues = []AgentRunResolutionStatus{
|
|
AgentRunResolutionStatusUnknown,
|
|
AgentRunResolutionStatusResolved,
|
|
AgentRunResolutionStatusUnresolved,
|
|
}
|
|
|
|
type AgentRunEvidenceStatus string
|
|
|
|
const (
|
|
AgentRunEvidenceStatusUnknown AgentRunEvidenceStatus = "unknown"
|
|
AgentRunEvidenceStatusSupported AgentRunEvidenceStatus = "supported"
|
|
AgentRunEvidenceStatusUnsupported AgentRunEvidenceStatus = "unsupported"
|
|
)
|
|
|
|
var AgentRunEvidenceStatusValues = []AgentRunEvidenceStatus{
|
|
AgentRunEvidenceStatusUnknown,
|
|
AgentRunEvidenceStatusSupported,
|
|
AgentRunEvidenceStatusUnsupported,
|
|
}
|
|
|
|
type ServiceStatus int
|
|
|
|
const (
|
|
ServiceStatusIdle ServiceStatus = 0
|
|
ServiceStatusBusy ServiceStatus = 1
|
|
ServiceStatusBreak ServiceStatus = 2
|
|
ServiceStatusUnavailable ServiceStatus = 3
|
|
ServiceStatusVacation ServiceStatus = 4
|
|
)
|
|
|
|
var ServiceStatusValues = []ServiceStatus{
|
|
ServiceStatusIdle,
|
|
ServiceStatusBusy,
|
|
ServiceStatusBreak,
|
|
ServiceStatusUnavailable,
|
|
ServiceStatusVacation,
|
|
}
|
|
|
|
var serviceStatusLabelMap = map[ServiceStatus]string{
|
|
ServiceStatusIdle: "空闲",
|
|
ServiceStatusBusy: "忙碌",
|
|
ServiceStatusBreak: "休息",
|
|
ServiceStatusUnavailable: "不可用",
|
|
ServiceStatusVacation: "休假",
|
|
}
|
|
|
|
func IsValidServiceStatus(status ServiceStatus) bool {
|
|
for _, item := range ServiceStatusValues {
|
|
if item == status {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|
|
|
|
func GetServiceStatusLabel(status ServiceStatus) string {
|
|
return serviceStatusLabelMap[status]
|
|
}
|