model

package
v1.261.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeFileToBase64 added in v1.215.0

func EncodeFileToBase64(file multipart.File) (string, error)

Types

type Assignee

type Assignee struct {
	Id          int    `json:"id"`
	Teams       []Team `json:"teams,omitempty"`
	DisplayName string `json:"displayName"`
}

type Assurance added in v1.157.0

type Assurance struct {
	Id                 int       `json:"id"`
	Type               RefData   `json:"assuranceType"`
	RequestedDate      string    `json:"requestedDate"`
	RequestedBy        User      `json:"requestedBy"`
	CommissionedDate   string    `json:"commissionedDate"`
	ReportDueDate      string    `json:"reportDueDate"`
	ReportReceivedDate string    `json:"reportReceivedDate"`
	VisitOutcome       RefData   `json:"assuranceVisitOutcome"`
	PdrOutcome         RefData   `json:"pdrOutcome"`
	ReportReviewDate   string    `json:"reportReviewDate"`
	ReportMarkedAs     RAGRating `json:"reportMarkedAs"`
	Note               string    `json:"note"`
	VisitorAllocated   string    `json:"visitorAllocated"`
	ReviewedBy         User      `json:"reviewedBy"`
	DeputyId           int
}

type Changes added in v1.129.0

type Changes struct {
	FieldName string `json:"fieldName"`
	OldValue  string `json:"oldValue"`
	NewValue  string `json:"newValue"`
}

type Client added in v1.129.0

type Client struct {
	ID       string `json:"personId"`
	Uid      string `json:"personUid"`
	Name     string `json:"personName"`
	CourtRef string `json:"personCourtRef"`
}

type Contact added in v1.129.0

type Contact struct {
	Name             string `json:"name"`
	JobTitle         string `json:"jobTitle"`
	Email            string `json:"email"`
	PhoneNumber      string `json:"phoneNumber"`
	OtherPhoneNumber string `json:"otherPhoneNumber"`
	Notes            string `json:"notes"`
}

type Date added in v1.173.0

type Date struct {
	Time time.Time
}

func NewDate added in v1.173.0

func NewDate(date string) Date

func (Date) After added in v1.173.0

func (d Date) After(d2 Date) bool

func (Date) Before added in v1.173.0

func (d Date) Before(d2 Date) bool

func (Date) IsNull added in v1.173.0

func (d Date) IsNull() bool

func (Date) MarshalJSON added in v1.173.0

func (d Date) MarshalJSON() ([]byte, error)

func (Date) String added in v1.173.0

func (d Date) String() string

func (*Date) UnmarshalJSON added in v1.173.0

func (d *Date) UnmarshalJSON(b []byte) error

type DeputyEvent added in v1.129.0

type DeputyEvent struct {
	ID         int    `json:"id"`
	Timestamp  string `json:"timestamp"`
	EventType  string `json:"eventType"`
	User       User   `json:"user"`
	Event      Event  `json:"event"`
	IsNewEvent bool
}

type Document added in v1.211.0

type Document struct {
	Id                  int          `json:"id"`
	Type                string       `json:"type"`
	FriendlyDescription string       `json:"friendlyDescription"`
	CreatedDate         string       `json:"createdDate"`
	Direction           string       `json:"direction"`
	Filename            string       `json:"filename"`
	CreatedBy           User         `json:"createdBy"`
	ReceivedDateTime    string       `json:"receivedDateTime"`
	Note                DocumentNote `json:"note"`
	ReformattedTime     string
}

type DocumentNote added in v1.215.0

type DocumentNote struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

type Event added in v1.129.0

type Event struct {
	Assignee              string    `json:"assignee"`
	Changes               []Changes `json:"changes"`
	Client                []Client  `json:"additionalPersons"`
	Contact               Contact   `json:"deputyContact"`
	DueDate               string    `json:"dueDate"`
	DeputyID              string    `json:"personId"`
	DeputyName            string    `json:"personName"`
	Description           string    `json:"description"`
	Direction             string    `json:"direction"`
	ExecutiveCaseManager  string    `json:"executiveCaseManager"`
	Filename              string    `json:"filename"`
	Notes                 string    `json:"notes"`
	OrderType             string    `json:"orderType"`
	OrganisationName      string    `json:"organisationName"`
	OrderNumber           string    `json:"orderCourtRef"`
	OldAssigneeName       string    `json:"oldAssigneeName"`
	ReceivedDate          string    `json:"receivedDate"`
	RecipientEmailAddress string    `json:"recipientEmailAddress"`
	SiriusId              string    `json:"orderUid"`
	TaskType              string    `json:"taskType"`
	TaskCompletedNotes    string    `json:"taskCompletedNotes"`
	Type                  string    `json:"type"`
}

type LatestCompletedVisit added in v1.175.0

type LatestCompletedVisit struct {
	VisitCompletedDate  string
	VisitReportMarkedAs RAGRating
	VisitUrgency        RefData
	RagRatingLowerCase  string
}

type OrderStatus added in v1.167.0

type OrderStatus struct {
	Handle      string `json:"handle"`
	Incomplete  string `json:"incomplete"`
	Category    string `json:"category"`
	Complete    string `json:"complete"`
	StatusCount int
}

func (OrderStatus) IsSelected added in v1.167.0

func (os OrderStatus) IsSelected(selectedOrderStatuses []string) bool

type RAGRating added in v1.175.0

type RAGRating RefData

func (RAGRating) GetRiskMarker added in v1.204.0

func (ragRating RAGRating) GetRiskMarker() VisitReportMarkedAs

type RefData added in v1.155.0

type RefData struct {
	Handle     string `json:"handle"`
	Label      string `json:"label"`
	Deprecated bool   `json:"deprecated"`
}

func (RefData) Is added in v1.155.0

func (r RefData) Is(handle string) bool

func (RefData) IsIn added in v1.155.0

func (r RefData) IsIn(handles []string) bool

type Task

type Task struct {
	Id            int      `json:"id"`
	Type          string   `json:"type"`
	DueDate       string   `json:"dueDate"`
	Name          string   `json:"name"`
	Assignee      Assignee `json:"assignee"`
	CreatedTime   string   `json:"createdTime"`
	CaseOwnerTask bool     `json:"caseOwnerTask"`
	Notes         string   `json:"description"`
}

func (Task) GetName

func (t Task) GetName(taskTypes []TaskType) string

type TaskType

type TaskType struct {
	Handle        string `json:"handle"`
	Description   string `json:"incomplete"`
	ProDeputyTask bool   `json:"proDeputyTask"`
	PaDeputyTask  bool   `json:"paDeputyTask"`
}

type Team

type Team struct {
	Members []TeamMember
	Name    string
}

type TeamMember

type TeamMember struct {
	ID          int
	DisplayName string
	CurrentEcm  int
}

type User added in v1.129.0

type User struct {
	ID          int    `json:"id"`
	Name        string `json:"displayName"`
	PhoneNumber string `json:"phoneNumber"`
	Email       string `json:"email"`
}

type VisitReportMarkedAs added in v1.204.0

type VisitReportMarkedAs struct {
	Name   string
	Colour string
}

type Visitor added in v1.157.0

type Visitor struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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