sirius

package
v1.241.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TaskTypeCategoryDeputy = "deputy"
View Source
const TaskTypeCategorySupervision = "supervision"
View Source
const TaskTypeEcmHandle = "ECM_TASKS"
View Source
const TaskTypeEcmLabel = "ECM Tasks"

Variables

This section is empty.

Functions

func CreateMemberIdArray added in v1.162.0

func CreateMemberIdArray(params ClientListParams) []string

Types

type ApiClient

type ApiClient struct {
	// contains filtered or unexported fields
}

func NewApiClient

func NewApiClient(httpClient HTTPClient, baseURL string, logger *slog.Logger) (*ApiClient, error)

func (*ApiClient) GetClientList

func (c *ApiClient) GetClientList(ctx Context, params ClientListParams) (ClientList, error)

func (*ApiClient) GetClosedClientList added in v1.162.0

func (c *ApiClient) GetClosedClientList(ctx Context, params ClientListParams) (ClientList, error)

func (*ApiClient) GetCurrentUserDetails

func (c *ApiClient) GetCurrentUserDetails(ctx Context) (model.Assignee, error)

func (*ApiClient) GetDeputyList

func (c *ApiClient) GetDeputyList(ctx Context, params DeputyListParams) (DeputyList, error)

func (*ApiClient) GetTaskList

func (c *ApiClient) GetTaskList(ctx Context, params TaskListParams) (TaskList, error)

func (*ApiClient) GetTaskTypes

func (c *ApiClient) GetTaskTypes(ctx Context, params TaskTypesParams) ([]model.TaskType, error)

func (*ApiClient) GetTeams

func (c *ApiClient) GetTeams(ctx Context) ([]model.Team, error)

func (*ApiClient) ReassignClients

func (c *ApiClient) ReassignClients(ctx Context, params ReassignClientsParams) (string, error)

func (*ApiClient) ReassignDeputies

func (c *ApiClient) ReassignDeputies(ctx Context, params ReassignDeputiesParams) (string, error)

func (*ApiClient) ReassignTasks

func (c *ApiClient) ReassignTasks(ctx Context, params ReassignTasksParams) (string, error)

type ClientError

type ClientError string
const ErrUnauthorized ClientError = "unauthorized"

func (ClientError) Error

func (e ClientError) Error() string

type ClientList

type ClientList struct {
	Clients      []model.Client        `json:"clients"`
	Pages        model.PageInformation `json:"pages"`
	TotalClients int                   `json:"total"`
	MetaData     ClientMetaData        `json:"metadata"`
}

type ClientListParams

type ClientListParams struct {
	Team              model.Team
	Page              int
	PerPage           int
	CaseOwners        []string
	OrderStatuses     []string
	SubType           string
	DeputyTypes       []string
	CaseTypes         []string
	SupervisionLevels []string
}

func (ClientListParams) CreateFilter

func (p ClientListParams) CreateFilter() string

type ClientMetaData added in v1.198.0

type ClientMetaData struct {
	AssigneeCount []model.AssigneeAndCount `json:"assigneeClientCount"`
}

type ClosedClientsParams added in v1.162.0

type ClosedClientsParams struct {
	TeamIds []string `json:"teamIds"`
}

type Context

type Context struct {
	Context   context.Context
	Cookies   []*http.Cookie
	XSRFToken string
}

func (Context) With

func (ctx Context) With(c context.Context) Context

type DeputyList

type DeputyList struct {
	Deputies           []model.Deputy        `json:"persons"`
	Pages              model.PageInformation `json:"pages"`
	TotalDeputies      int                   `json:"total"`
	PaProTeamSelection []model.Team
	MetaData           DeputyMetaData `json:"metadata"`
}

type DeputyListParams

type DeputyListParams struct {
	Team         model.Team
	Page         int
	PerPage      int
	Sort         string
	SelectedECMs []string
}

func (DeputyListParams) CreateFilter

func (d DeputyListParams) CreateFilter() string

type DeputyMetaData added in v1.206.0

type DeputyMetaData struct {
	DeputyMetaData []model.AssigneeAndCount `json:"ecmCount"`
}

type ExpandedError added in v1.194.2

type ExpandedError interface {
	Title() string
	Data() interface{}
}

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type ReassignClientsParams

type ReassignClientsParams struct {
	AssignTeam string
	AssignCM   string
	AssigneeId int      `json:"assigneeId"`
	ClientIds  []string `json:"clientIds"`
	IsWorkflow bool     `json:"isWorkflow"`
}

type ReassignDeputiesParams

type ReassignDeputiesParams struct {
	AssignTeam string
	AssignCM   string
	AssigneeId int      `json:"assigneeId"`
	DeputyIds  []string `json:"deputyIds"`
}

type ReassignResponse

type ReassignResponse struct {
	ReassignName string `json:"reassignName"`
}

type ReassignTasksParams

type ReassignTasksParams struct {
	AssignTeam string
	AssignCM   string
	AssigneeId int      `json:"assigneeId"`
	TaskIds    []string `json:"taskIds"`
	IsPriority string   `json:"isPriority"`
}

type StatusError

type StatusError struct {
	Code   int    `json:"code"`
	URL    string `json:"url"`
	Method string `json:"method"`
}

func (StatusError) Data

func (e StatusError) Data() interface{}

func (StatusError) Error

func (e StatusError) Error() string

func (StatusError) Title

func (e StatusError) Title() string

type TaskList

type TaskList struct {
	Tasks      []model.Task          `json:"tasks"`
	Pages      model.PageInformation `json:"pages"`
	TotalTasks int                   `json:"total"`
	MetaData   TaskMetaData          `json:"metadata"`
}

func (TaskList) CalculateTaskTypeCounts

func (tl TaskList) CalculateTaskTypeCounts(taskTypes []model.TaskType) []model.TaskType

type TaskListParams

type TaskListParams struct {
	Team              model.Team
	Page              int
	PerPage           int
	TaskTypes         []model.TaskType
	TaskTypeCategory  string
	SelectedTaskTypes []string
	Assignees         []string
	DueDateFrom       *time.Time
	DueDateTo         *time.Time
}

func (TaskListParams) CreateFilter

func (p TaskListParams) CreateFilter() string

type TaskMetaData added in v1.198.0

type TaskMetaData struct {
	TaskTypeCount []TypeAndCount           `json:"taskTypeCount"`
	AssigneeCount []model.AssigneeAndCount `json:"assigneeTaskCount"`
}

type TaskTypesList

type TaskTypesList struct {
	TaskTypes map[string]model.TaskType `json:"task_types"`
}

type TaskTypesParams

type TaskTypesParams struct {
	Category  string
	ProDeputy bool
	PADeputy  bool
}

type TeamCollection

type TeamCollection struct {
	ID          int    `json:"id"`
	DisplayName string `json:"displayName"`
	Members     []struct {
		ID          int    `json:"id"`
		DisplayName string `json:"displayName"`
	} `json:"members"`
	TeamType *struct {
		Handle string `json:"handle"`
		Label  string `json:"label"`
	} `json:"teamType"`
}

type TypeAndCount

type TypeAndCount struct {
	Type  string `json:"type"`
	Count int    `json:"count"`
}

type ValidationError

type ValidationError struct {
	Message string
	Errors  ValidationErrors
}

func (ValidationError) Error

func (ve ValidationError) Error() string

type ValidationErrors

type ValidationErrors map[string]map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL