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.
42 lines
1.8 KiB
Go
42 lines
1.8 KiB
Go
package response
|
|
|
|
import (
|
|
"agent-desk/internal/pkg/dto/request"
|
|
"agent-desk/internal/pkg/enums"
|
|
)
|
|
|
|
type SupportCalendarResponse struct {
|
|
request.SupportCalendarRequest
|
|
EffectiveTimezone string `json:"effectiveTimezone"`
|
|
DeploymentTimezone string `json:"deploymentTimezone"`
|
|
}
|
|
type SupportCalendarPreviewResponse struct {
|
|
Open bool `json:"open"`
|
|
Timezone string `json:"timezone"`
|
|
Mode string `json:"mode"`
|
|
NextOpeningAt string `json:"nextOpeningAt,omitempty"`
|
|
}
|
|
type SupportAvailabilityResponse struct {
|
|
UserID int64 `json:"userId"`
|
|
ProfileID int64 `json:"profileId"`
|
|
TeamID int64 `json:"teamId"`
|
|
DisplayName string `json:"displayName"`
|
|
ServiceStatus enums.ServiceStatus `json:"serviceStatus"`
|
|
ReturnServiceStatus enums.ServiceStatus `json:"returnServiceStatus"`
|
|
EffectiveServiceStatus enums.ServiceStatus `json:"effectiveServiceStatus"`
|
|
AbsenceStartAt string `json:"absenceStartAt,omitempty"`
|
|
AbsenceEndAt string `json:"absenceEndAt,omitempty"`
|
|
Online bool `json:"online"`
|
|
Eligible bool `json:"eligible"`
|
|
Reason string `json:"reason"`
|
|
Calendar SupportCalendarResponse `json:"calendar"`
|
|
CalendarOpen bool `json:"calendarOpen"`
|
|
NextOpeningAt string `json:"nextOpeningAt,omitempty"`
|
|
}
|
|
type PublicSupportStatusResponse struct {
|
|
Available bool `json:"available"`
|
|
Reason string `json:"reason"`
|
|
Timezone string `json:"timezone"`
|
|
NextOpeningAt string `json:"nextOpeningAt,omitempty"`
|
|
}
|