Documentation ¶
Index ¶
- Variables
- type AgentAbsence
- func (a *AgentAbsence) CreateAgentAbsence(ctx context.Context, user *model.SignedInUser, in *model.AgentAbsence) (*model.AgentAbsence, error)
- func (a *AgentAbsence) CreateAgentsAbsencesBulk(ctx context.Context, user *model.SignedInUser, agentIds []int64, ...) ([]*model.AgentAbsences, error)
- func (a *AgentAbsence) DeleteAgentAbsence(ctx context.Context, user *model.SignedInUser, agentId, id int64) error
- func (a *AgentAbsence) ReadAgentAbsences(ctx context.Context, user *model.SignedInUser, ...) (*model.AgentAbsences, error)
- func (a *AgentAbsence) SearchAgentsAbsences(ctx context.Context, user *model.SignedInUser, ...) ([]*model.AgentAbsences, bool, error)
- func (a *AgentAbsence) UpdateAgentAbsence(ctx context.Context, user *model.SignedInUser, in *model.AgentAbsence) (*model.AgentAbsence, error)
- type AgentAbsenceManager
- type AgentWorkingConditions
- type AgentWorkingConditionsManager
- type AgentWorkingSchedule
- type AgentWorkingScheduleManager
- type ForecastCalculation
- func (f *ForecastCalculation) CreateForecastCalculation(ctx context.Context, user *model.SignedInUser, in *model.ForecastCalculation) (*model.ForecastCalculation, error)
- func (f *ForecastCalculation) DeleteForecastCalculation(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
- func (f *ForecastCalculation) ExecuteForecastCalculation(ctx context.Context, user *model.SignedInUser, id, teamId int64, ...) ([]*model.ForecastCalculationResult, error)
- func (f *ForecastCalculation) ReadForecastCalculation(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.ForecastCalculation, error)
- func (f *ForecastCalculation) SearchForecastCalculation(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.ForecastCalculation, bool, error)
- func (f *ForecastCalculation) UpdateForecastCalculation(ctx context.Context, user *model.SignedInUser, in *model.ForecastCalculation) (*model.ForecastCalculation, error)
- type ForecastCalculationManager
- type PauseTemplate
- func (p *PauseTemplate) CreatePauseTemplate(ctx context.Context, user *model.SignedInUser, in *model.PauseTemplate) (int64, error)
- func (p *PauseTemplate) DeletePauseTemplate(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
- func (p *PauseTemplate) ReadPauseTemplate(ctx context.Context, user *model.SignedInUser, id int64, fields []string) (*model.PauseTemplate, error)
- func (p *PauseTemplate) SearchPauseTemplate(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.PauseTemplate, bool, error)
- func (p *PauseTemplate) UpdatePauseTemplate(ctx context.Context, user *model.SignedInUser, in *model.PauseTemplate) error
- type PauseTemplateManager
- type ShiftTemplate
- func (s *ShiftTemplate) CreateShiftTemplate(ctx context.Context, user *model.SignedInUser, in *model.ShiftTemplate) (int64, error)
- func (s *ShiftTemplate) DeleteShiftTemplate(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
- func (s *ShiftTemplate) ReadShiftTemplate(ctx context.Context, user *model.SignedInUser, id int64, fields []string) (*model.ShiftTemplate, error)
- func (s *ShiftTemplate) SearchShiftTemplate(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.ShiftTemplate, bool, error)
- func (s *ShiftTemplate) UpdateShiftTemplate(ctx context.Context, user *model.SignedInUser, in *model.ShiftTemplate) error
- type ShiftTemplateManager
- type WorkingCondition
- func (w *WorkingCondition) CreateWorkingCondition(ctx context.Context, user *model.SignedInUser, in *model.WorkingCondition) (int64, error)
- func (w *WorkingCondition) DeleteWorkingCondition(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
- func (w *WorkingCondition) ReadWorkingCondition(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.WorkingCondition, error)
- func (w *WorkingCondition) SearchWorkingCondition(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.WorkingCondition, bool, error)
- func (w *WorkingCondition) UpdateWorkingCondition(ctx context.Context, user *model.SignedInUser, in *model.WorkingCondition) error
- type WorkingConditionManager
- type WorkingSchedule
- func (w *WorkingSchedule) CreateWorkingSchedule(ctx context.Context, user *model.SignedInUser, in *model.WorkingSchedule) (*model.WorkingSchedule, error)
- func (w *WorkingSchedule) DeleteWorkingSchedule(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
- func (w *WorkingSchedule) ReadWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.WorkingSchedule, error)
- func (w *WorkingSchedule) SearchWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.WorkingSchedule, bool, error)
- func (w *WorkingSchedule) UpdateWorkingSchedule(ctx context.Context, user *model.SignedInUser, in *model.WorkingSchedule) (*model.WorkingSchedule, error)
- func (w *WorkingSchedule) UpdateWorkingScheduleAddAgents(ctx context.Context, user *model.SignedInUser, id int64, agentIds []int64) ([]*model.LookupItem, error)
- func (w *WorkingSchedule) UpdateWorkingScheduleRemoveAgents(ctx context.Context, user *model.SignedInUser, id int64, agentIds []int64) ([]*model.LookupItem, error)
- type WorkingScheduleManager
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWorkingScheduleUpdateDraft = werror.InvalidArgument("working schedule can only be updated in a draft state", werror.WithID("service.working_schedule.state")) ErrAgentNotAllowed = werror.Forbidden("you haven't read access to a desired set of agents") )
View Source
var ErrAgentWorkingScheduleDateFilter = werror.InvalidArgument("invalid input: agent working schedule date filter")
View Source
var Set = wire.NewSet(NewPauseTemplate, wire.Bind(new(PauseTemplateManager), new(*PauseTemplate)), NewShiftTemplate, wire.Bind(new(ShiftTemplateManager), new(*ShiftTemplate)), NewWorkingCondition, wire.Bind(new(WorkingConditionManager), new(*WorkingCondition)), NewAgentWorkingConditions, wire.Bind(new(AgentWorkingConditionsManager), new(*AgentWorkingConditions)), NewAgentAbsence, wire.Bind(new(AgentAbsenceManager), new(*AgentAbsence)), NewForecastCalculation, wire.Bind(new(ForecastCalculationManager), new(*ForecastCalculation)), NewWorkingSchedule, wire.Bind(new(WorkingScheduleManager), new(*WorkingSchedule)), NewAgentWorkingSchedule, wire.Bind(new(AgentWorkingScheduleManager), new(*AgentWorkingSchedule)), )
Functions ¶
This section is empty.
Types ¶
type AgentAbsence ¶
type AgentAbsence struct {
// contains filtered or unexported fields
}
func NewAgentAbsence ¶
func NewAgentAbsence(storage storage.AgentAbsenceManager, audit *logger.Audit, engine *engine.Client) *AgentAbsence
func (*AgentAbsence) CreateAgentAbsence ¶
func (a *AgentAbsence) CreateAgentAbsence(ctx context.Context, user *model.SignedInUser, in *model.AgentAbsence) (*model.AgentAbsence, error)
func (*AgentAbsence) CreateAgentsAbsencesBulk ¶
func (a *AgentAbsence) CreateAgentsAbsencesBulk(ctx context.Context, user *model.SignedInUser, agentIds []int64, in []*model.AgentAbsenceBulk) ([]*model.AgentAbsences, error)
func (*AgentAbsence) DeleteAgentAbsence ¶
func (a *AgentAbsence) DeleteAgentAbsence(ctx context.Context, user *model.SignedInUser, agentId, id int64) error
func (*AgentAbsence) ReadAgentAbsences ¶
func (a *AgentAbsence) ReadAgentAbsences(ctx context.Context, user *model.SignedInUser, search *model.AgentAbsenceSearch) (*model.AgentAbsences, error)
func (*AgentAbsence) SearchAgentsAbsences ¶
func (a *AgentAbsence) SearchAgentsAbsences(ctx context.Context, user *model.SignedInUser, search *model.AgentAbsenceSearch) ([]*model.AgentAbsences, bool, error)
func (*AgentAbsence) UpdateAgentAbsence ¶
func (a *AgentAbsence) UpdateAgentAbsence(ctx context.Context, user *model.SignedInUser, in *model.AgentAbsence) (*model.AgentAbsence, error)
type AgentAbsenceManager ¶
type AgentAbsenceManager interface { CreateAgentAbsence(ctx context.Context, user *model.SignedInUser, in *model.AgentAbsence) (*model.AgentAbsence, error) UpdateAgentAbsence(ctx context.Context, user *model.SignedInUser, in *model.AgentAbsence) (*model.AgentAbsence, error) DeleteAgentAbsence(ctx context.Context, user *model.SignedInUser, agentId, id int64) error CreateAgentsAbsencesBulk(ctx context.Context, user *model.SignedInUser, agentIds []int64, in []*model.AgentAbsenceBulk) ([]*model.AgentAbsences, error) ReadAgentAbsences(ctx context.Context, user *model.SignedInUser, search *model.AgentAbsenceSearch) (*model.AgentAbsences, error) SearchAgentsAbsences(ctx context.Context, user *model.SignedInUser, search *model.AgentAbsenceSearch) ([]*model.AgentAbsences, bool, error) }
type AgentWorkingConditions ¶
type AgentWorkingConditions struct {
// contains filtered or unexported fields
}
func NewAgentWorkingConditions ¶
func NewAgentWorkingConditions(storage storage.AgentWorkingConditionsManager, engine *engine.Client) *AgentWorkingConditions
func (*AgentWorkingConditions) ReadAgentWorkingConditions ¶
func (a *AgentWorkingConditions) ReadAgentWorkingConditions(ctx context.Context, user *model.SignedInUser, agentId int64) (*model.AgentWorkingConditions, error)
func (*AgentWorkingConditions) UpdateAgentWorkingConditions ¶
func (a *AgentWorkingConditions) UpdateAgentWorkingConditions(ctx context.Context, user *model.SignedInUser, agentId int64, in *model.AgentWorkingConditions) error
type AgentWorkingConditionsManager ¶
type AgentWorkingConditionsManager interface { ReadAgentWorkingConditions(ctx context.Context, user *model.SignedInUser, agentId int64) (*model.AgentWorkingConditions, error) UpdateAgentWorkingConditions(ctx context.Context, user *model.SignedInUser, agentId int64, in *model.AgentWorkingConditions) error }
type AgentWorkingSchedule ¶
type AgentWorkingSchedule struct {
// contains filtered or unexported fields
}
func NewAgentWorkingSchedule ¶
func NewAgentWorkingSchedule(storage storage.AgentWorkingScheduleManager, workingScheduleStorage storage.WorkingScheduleManager, engine *engine.Client) *AgentWorkingSchedule
func (*AgentWorkingSchedule) SearchAgentWorkingSchedule ¶
func (a *AgentWorkingSchedule) SearchAgentWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.AgentWorkingScheduleSearch) ([]*model.AgentWorkingSchedule, []*model.Holiday, error)
type AgentWorkingScheduleManager ¶
type AgentWorkingScheduleManager interface {
SearchAgentWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.AgentWorkingScheduleSearch) ([]*model.AgentWorkingSchedule, []*model.Holiday, error)
}
type ForecastCalculation ¶
type ForecastCalculation struct {
// contains filtered or unexported fields
}
func NewForecastCalculation ¶
func NewForecastCalculation(svc storage.ForecastCalculationManager) *ForecastCalculation
func (*ForecastCalculation) CreateForecastCalculation ¶
func (f *ForecastCalculation) CreateForecastCalculation(ctx context.Context, user *model.SignedInUser, in *model.ForecastCalculation) (*model.ForecastCalculation, error)
func (*ForecastCalculation) DeleteForecastCalculation ¶
func (f *ForecastCalculation) DeleteForecastCalculation(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
func (*ForecastCalculation) ExecuteForecastCalculation ¶
func (f *ForecastCalculation) ExecuteForecastCalculation(ctx context.Context, user *model.SignedInUser, id, teamId int64, forecast *model.FilterBetween) ([]*model.ForecastCalculationResult, error)
func (*ForecastCalculation) ReadForecastCalculation ¶
func (f *ForecastCalculation) ReadForecastCalculation(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.ForecastCalculation, error)
func (*ForecastCalculation) SearchForecastCalculation ¶
func (f *ForecastCalculation) SearchForecastCalculation(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.ForecastCalculation, bool, error)
func (*ForecastCalculation) UpdateForecastCalculation ¶
func (f *ForecastCalculation) UpdateForecastCalculation(ctx context.Context, user *model.SignedInUser, in *model.ForecastCalculation) (*model.ForecastCalculation, error)
type ForecastCalculationManager ¶
type ForecastCalculationManager interface { CreateForecastCalculation(ctx context.Context, user *model.SignedInUser, in *model.ForecastCalculation) (*model.ForecastCalculation, error) ReadForecastCalculation(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.ForecastCalculation, error) SearchForecastCalculation(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.ForecastCalculation, bool, error) UpdateForecastCalculation(ctx context.Context, user *model.SignedInUser, in *model.ForecastCalculation) (*model.ForecastCalculation, error) DeleteForecastCalculation(ctx context.Context, user *model.SignedInUser, id int64) (int64, error) ExecuteForecastCalculation(ctx context.Context, user *model.SignedInUser, id, teamId int64, forecast *model.FilterBetween) ([]*model.ForecastCalculationResult, error) }
type PauseTemplate ¶
type PauseTemplate struct {
// contains filtered or unexported fields
}
func NewPauseTemplate ¶
func NewPauseTemplate(storage storage.PauseTemplateManager) *PauseTemplate
func (*PauseTemplate) CreatePauseTemplate ¶
func (p *PauseTemplate) CreatePauseTemplate(ctx context.Context, user *model.SignedInUser, in *model.PauseTemplate) (int64, error)
func (*PauseTemplate) DeletePauseTemplate ¶
func (p *PauseTemplate) DeletePauseTemplate(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
func (*PauseTemplate) ReadPauseTemplate ¶
func (p *PauseTemplate) ReadPauseTemplate(ctx context.Context, user *model.SignedInUser, id int64, fields []string) (*model.PauseTemplate, error)
func (*PauseTemplate) SearchPauseTemplate ¶
func (p *PauseTemplate) SearchPauseTemplate(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.PauseTemplate, bool, error)
func (*PauseTemplate) UpdatePauseTemplate ¶
func (p *PauseTemplate) UpdatePauseTemplate(ctx context.Context, user *model.SignedInUser, in *model.PauseTemplate) error
type PauseTemplateManager ¶
type PauseTemplateManager interface { CreatePauseTemplate(ctx context.Context, user *model.SignedInUser, in *model.PauseTemplate) (int64, error) ReadPauseTemplate(ctx context.Context, user *model.SignedInUser, id int64, fields []string) (*model.PauseTemplate, error) SearchPauseTemplate(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.PauseTemplate, bool, error) UpdatePauseTemplate(ctx context.Context, user *model.SignedInUser, in *model.PauseTemplate) error DeletePauseTemplate(ctx context.Context, user *model.SignedInUser, id int64) (int64, error) }
type ShiftTemplate ¶
type ShiftTemplate struct {
// contains filtered or unexported fields
}
func NewShiftTemplate ¶
func NewShiftTemplate(storage storage.ShiftTemplateManager) *ShiftTemplate
func (*ShiftTemplate) CreateShiftTemplate ¶
func (s *ShiftTemplate) CreateShiftTemplate(ctx context.Context, user *model.SignedInUser, in *model.ShiftTemplate) (int64, error)
func (*ShiftTemplate) DeleteShiftTemplate ¶
func (s *ShiftTemplate) DeleteShiftTemplate(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
func (*ShiftTemplate) ReadShiftTemplate ¶
func (s *ShiftTemplate) ReadShiftTemplate(ctx context.Context, user *model.SignedInUser, id int64, fields []string) (*model.ShiftTemplate, error)
func (*ShiftTemplate) SearchShiftTemplate ¶
func (s *ShiftTemplate) SearchShiftTemplate(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.ShiftTemplate, bool, error)
func (*ShiftTemplate) UpdateShiftTemplate ¶
func (s *ShiftTemplate) UpdateShiftTemplate(ctx context.Context, user *model.SignedInUser, in *model.ShiftTemplate) error
type ShiftTemplateManager ¶
type ShiftTemplateManager interface { CreateShiftTemplate(ctx context.Context, user *model.SignedInUser, in *model.ShiftTemplate) (int64, error) ReadShiftTemplate(ctx context.Context, user *model.SignedInUser, id int64, fields []string) (*model.ShiftTemplate, error) SearchShiftTemplate(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.ShiftTemplate, bool, error) UpdateShiftTemplate(ctx context.Context, user *model.SignedInUser, in *model.ShiftTemplate) error DeleteShiftTemplate(ctx context.Context, user *model.SignedInUser, id int64) (int64, error) }
type WorkingCondition ¶
type WorkingCondition struct {
// contains filtered or unexported fields
}
func NewWorkingCondition ¶
func NewWorkingCondition(storage storage.WorkingConditionManager) *WorkingCondition
func (*WorkingCondition) CreateWorkingCondition ¶
func (w *WorkingCondition) CreateWorkingCondition(ctx context.Context, user *model.SignedInUser, in *model.WorkingCondition) (int64, error)
func (*WorkingCondition) DeleteWorkingCondition ¶
func (w *WorkingCondition) DeleteWorkingCondition(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
func (*WorkingCondition) ReadWorkingCondition ¶
func (w *WorkingCondition) ReadWorkingCondition(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.WorkingCondition, error)
func (*WorkingCondition) SearchWorkingCondition ¶
func (w *WorkingCondition) SearchWorkingCondition(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.WorkingCondition, bool, error)
func (*WorkingCondition) UpdateWorkingCondition ¶
func (w *WorkingCondition) UpdateWorkingCondition(ctx context.Context, user *model.SignedInUser, in *model.WorkingCondition) error
type WorkingConditionManager ¶
type WorkingConditionManager interface { CreateWorkingCondition(ctx context.Context, user *model.SignedInUser, in *model.WorkingCondition) (int64, error) ReadWorkingCondition(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.WorkingCondition, error) SearchWorkingCondition(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.WorkingCondition, bool, error) UpdateWorkingCondition(ctx context.Context, user *model.SignedInUser, in *model.WorkingCondition) error DeleteWorkingCondition(ctx context.Context, user *model.SignedInUser, id int64) (int64, error) }
type WorkingSchedule ¶
type WorkingSchedule struct {
// contains filtered or unexported fields
}
func NewWorkingSchedule ¶
func NewWorkingSchedule(storage storage.WorkingScheduleManager, engine *engine.Client) *WorkingSchedule
func (*WorkingSchedule) CreateWorkingSchedule ¶
func (w *WorkingSchedule) CreateWorkingSchedule(ctx context.Context, user *model.SignedInUser, in *model.WorkingSchedule) (*model.WorkingSchedule, error)
func (*WorkingSchedule) DeleteWorkingSchedule ¶
func (w *WorkingSchedule) DeleteWorkingSchedule(ctx context.Context, user *model.SignedInUser, id int64) (int64, error)
func (*WorkingSchedule) ReadWorkingSchedule ¶
func (w *WorkingSchedule) ReadWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.WorkingSchedule, error)
func (*WorkingSchedule) SearchWorkingSchedule ¶
func (w *WorkingSchedule) SearchWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.WorkingSchedule, bool, error)
func (*WorkingSchedule) UpdateWorkingSchedule ¶
func (w *WorkingSchedule) UpdateWorkingSchedule(ctx context.Context, user *model.SignedInUser, in *model.WorkingSchedule) (*model.WorkingSchedule, error)
func (*WorkingSchedule) UpdateWorkingScheduleAddAgents ¶
func (w *WorkingSchedule) UpdateWorkingScheduleAddAgents(ctx context.Context, user *model.SignedInUser, id int64, agentIds []int64) ([]*model.LookupItem, error)
func (*WorkingSchedule) UpdateWorkingScheduleRemoveAgents ¶
func (w *WorkingSchedule) UpdateWorkingScheduleRemoveAgents(ctx context.Context, user *model.SignedInUser, id int64, agentIds []int64) ([]*model.LookupItem, error)
type WorkingScheduleManager ¶
type WorkingScheduleManager interface { CreateWorkingSchedule(ctx context.Context, user *model.SignedInUser, in *model.WorkingSchedule) (*model.WorkingSchedule, error) ReadWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) (*model.WorkingSchedule, error) SearchWorkingSchedule(ctx context.Context, user *model.SignedInUser, search *model.SearchItem) ([]*model.WorkingSchedule, bool, error) UpdateWorkingSchedule(ctx context.Context, user *model.SignedInUser, in *model.WorkingSchedule) (*model.WorkingSchedule, error) DeleteWorkingSchedule(ctx context.Context, user *model.SignedInUser, id int64) (int64, error) UpdateWorkingScheduleAddAgents(ctx context.Context, user *model.SignedInUser, id int64, agentIds []int64) ([]*model.LookupItem, error) UpdateWorkingScheduleRemoveAgents(ctx context.Context, user *model.SignedInUser, id int64, agentIds []int64) ([]*model.LookupItem, error) }
Click to show internal directories.
Click to hide internal directories.