model

package
v0.0.0-...-8ac9c69 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AddEventCompetenceInput

type AddEventCompetenceInput struct {
	EventID      string `json:"eventId"`
	CompetenceID string `json:"competenceId"`
}

type AddUserToChatInput

type AddUserToChatInput struct {
	ChatID string `json:"chatId"`
	UserID string `json:"userId"`
}

type BucketConnection

type BucketConnection struct {
	Edges      []*db.Bucket `json:"edges"`
	TotalCount int          `json:"totalCount"`
	PageInfo   *PageInfo    `json:"pageInfo"`
}

type BucketFilterInput

type BucketFilterInput struct {
	Shared *bool `json:"shared,omitempty"`
}

type ChatConnection

type ChatConnection struct {
	Edges      []*db.Chat `json:"edges,omitempty"`
	PageInfo   *PageInfo  `json:"pageInfo"`
	TotalCount int        `json:"totalCount"`
}

type CompetenceConnection

type CompetenceConnection struct {
	Edges      []*db.Competence `json:"edges,omitempty"`
	PageInfo   *PageInfo        `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

type CompetenceFilterInput

type CompetenceFilterInput struct {
	Type    []*db.CompetenceType `json:"type,omitempty"`
	Parents []*string            `json:"parents,omitempty"`
	UserID  *string              `json:"userId,omitempty"`
}

type CompetenceSort

type CompetenceSort struct {
	Field CompetenceSortField `json:"field"`
	Order SortDirection       `json:"order"`
}

type CompetenceSortField

type CompetenceSortField string
const (
	CompetenceSortFieldCreatedAt CompetenceSortField = "created_at"
	CompetenceSortFieldName      CompetenceSortField = "name"
	CompetenceSortFieldSortOrder CompetenceSortField = "sort_order"
)

func (CompetenceSortField) IsValid

func (e CompetenceSortField) IsValid() bool

func (CompetenceSortField) MarshalGQL

func (e CompetenceSortField) MarshalGQL(w io.Writer)

func (CompetenceSortField) String

func (e CompetenceSortField) String() string

func (*CompetenceSortField) UnmarshalGQL

func (e *CompetenceSortField) UnmarshalGQL(v interface{}) error

type CompetenceTendency

type CompetenceTendency struct {
	CountChildCompetences   int     `json:"countChildCompetences"`
	CountLearnedCompetences int     `json:"countLearnedCompetences"`
	Tendency                float64 `json:"tendency"`
}

type CopyFileInput

type CopyFileInput struct {
	ID       string `json:"id"`
	TargetID string `json:"targetId"`
}

type CopyFilesInput

type CopyFilesInput struct {
	Ids      []string `json:"ids"`
	TargetID string   `json:"targetId"`
}

type CopyFilesPayload

type CopyFilesPayload struct {
	Files []*db.File `json:"files"`
}

type CreateChatInput

type CreateChatInput struct {
	Name *string `json:"name,omitempty"`
}

type CreateCompetenceInput

type CreateCompetenceInput struct {
	Name     string `json:"name"`
	ParentID string `json:"parentId"`
}

type CreateDomainInput

type CreateDomainInput struct {
	Name string `json:"name"`
}

type CreateEmailAccountInput

type CreateEmailAccountInput struct {
	Name        string              `json:"name"`
	Description *string             `json:"description,omitempty"`
	Type        db.EmailAccountType `json:"type"`
	Quota       *int                `json:"quota,omitempty"`
}

type CreateEmailForwardingInput

type CreateEmailForwardingInput struct {
	Origin string `json:"origin"`
	Target string `json:"target"`
}

type CreateEmailGroupInput

type CreateEmailGroupInput struct {
	Name        string    `json:"name"`
	Members     []*string `json:"members,omitempty"`
	Description *string   `json:"description,omitempty"`
}

type CreateEmailGroupMemberInput

type CreateEmailGroupMemberInput struct {
	Name     string `json:"name"`
	MemberOf string `json:"memberOf"`
}

type CreateEmailInput

type CreateEmailInput struct {
	Name    string       `json:"name"`
	Address string       `json:"address"`
	Type    db.EmailType `json:"type"`
}

type CreateEntryCompetenceInput

type CreateEntryCompetenceInput struct {
	EntryID      string `json:"entryId"`
	CompetenceID string `json:"competenceId"`
}

type CreateEntryEventInput

type CreateEntryEventInput struct {
	EntryID string `json:"entryId"`
	EventID string `json:"eventId"`
}

type CreateEntryFileInput

type CreateEntryFileInput struct {
	EntryID string `json:"entryId"`
	FileID  string `json:"fileId"`
}

type CreateEntryTagInput

type CreateEntryTagInput struct {
	EntryID string `json:"entryId"`
	TagID   string `json:"tagId"`
}

type CreateEntryUserInput

type CreateEntryUserInput struct {
	EntryID string `json:"entryId"`
	UserID  string `json:"userId"`
}

type CreateEventInput

type CreateEventInput struct {
	Title      string          `json:"title"`
	Image      *graphql.Upload `json:"image,omitempty"`
	Body       *string         `json:"body,omitempty"`
	StartsAt   *string         `json:"startsAt,omitempty"`
	EndsAt     *string         `json:"endsAt,omitempty"`
	Recurrence []*string       `json:"recurrence,omitempty"`
}

type CreateFolderInput

type CreateFolderInput struct {
	Name     string  `json:"name"`
	ParentID *string `json:"parentId,omitempty"`
	BucketID *string `json:"bucketId,omitempty"`
}

type CreateReportInput

type CreateReportInput struct {
	Format      db.ReportFormat `json:"format"`
	Kind        db.ReportKind   `json:"kind"`
	From        time.Time       `json:"from"`
	To          time.Time       `json:"to"`
	FilterTags  []string        `json:"filterTags"`
	StudentUser *string         `json:"studentUser,omitempty"`
	AllUsers    *bool           `json:"allUsers,omitempty"`
}

type CreateSchoolYearInput

type CreateSchoolYearInput struct {
	Year int `json:"year"`
}

type CreateShareInput

type CreateShareInput struct {
	FileID     *string        `json:"fileId,omitempty"`
	BucketID   *string        `json:"bucketId,omitempty"`
	User       string         `json:"user"`
	Permission FilePermission `json:"permission"`
}

type CreateStudentInput

type CreateStudentInput struct {
	FirstName string     `json:"firstName"`
	LastName  string     `json:"lastName"`
	Grade     int        `json:"grade"`
	Birthday  *time.Time `json:"birthday,omitempty"`
	LeftAt    *time.Time `json:"leftAt,omitempty"`
	JoinedAt  *time.Time `json:"joinedAt,omitempty"`
	Emoji     *string    `json:"emoji,omitempty"`
}

type CreateSubjectInput

type CreateSubjectInput struct {
	Name string `json:"name"`
}

type CreateTagInput

type CreateTagInput struct {
	Name  string `json:"name"`
	Color string `json:"color"`
}

type CreateUserCompetenceInput

type CreateUserCompetenceInput struct {
	Level        int    `json:"level"`
	UserID       string `json:"userId"`
	CompetenceID string `json:"competenceId"`
}

type CreateUserInput

type CreateUserInput struct {
	FirstName string      `json:"firstName"`
	LastName  string      `json:"lastName"`
	Email     string      `json:"email"`
	Role      db.UserRole `json:"role"`
	Birthday  *time.Time  `json:"birthday,omitempty"`
	LeftAt    *time.Time  `json:"leftAt,omitempty"`
	JoinedAt  *time.Time  `json:"joinedAt,omitempty"`
}

type CreateUserStudentGradesInput

type CreateUserStudentGradesInput struct {
	Student    string `json:"student"`
	Subject    string `json:"subject"`
	Grade      int    `json:"grade"`
	SchoolYear string `json:"schoolYear"`
}

type DeleteChatInput

type DeleteChatInput struct {
	ID string `json:"id"`
}

type DeleteDomainInput

type DeleteDomainInput struct {
	ID string `json:"id"`
}

type DeleteEmailAccountInput

type DeleteEmailAccountInput struct {
	ID string `json:"id"`
}

type DeleteEmailForwardingInput

type DeleteEmailForwardingInput struct {
	ID string `json:"id"`
}

type DeleteEmailGroupMemberInput

type DeleteEmailGroupMemberInput struct {
	ID string `json:"id"`
}

type DeleteEmailInput

type DeleteEmailInput struct {
	ID string `json:"id"`
}

type DeleteEntryCompetenceInput

type DeleteEntryCompetenceInput struct {
	EntryID      string `json:"entryId"`
	CompetenceID string `json:"competenceId"`
}

type DeleteEntryEventInput

type DeleteEntryEventInput struct {
	EntryID string `json:"entryId"`
	EventID string `json:"eventId"`
}

type DeleteEntryFileInput

type DeleteEntryFileInput struct {
	EntryID string `json:"entryId"`
	FileID  string `json:"fileId"`
}

type DeleteEntryTagInput

type DeleteEntryTagInput struct {
	EntryID string `json:"entryId"`
	TagID   string `json:"tagId"`
}

type DeleteEntryUserInput

type DeleteEntryUserInput struct {
	EntryID string `json:"entryId"`
	UserID  string `json:"userId"`
}

type DeleteFileInput

type DeleteFileInput struct {
	ID string `json:"id"`
}

type DeleteFilePayload

type DeleteFilePayload struct {
	Success bool     `json:"success"`
	File    *db.File `json:"file"`
}

type DeleteFilesInput

type DeleteFilesInput struct {
	Ids []string `json:"ids"`
}

type DeleteFilesPayload

type DeleteFilesPayload struct {
	Success bool       `json:"success"`
	Files   []*db.File `json:"files"`
}

type DeleteShareInput

type DeleteShareInput struct {
	FileID   *string `json:"fileId,omitempty"`
	BucketID *string `json:"bucketId,omitempty"`
	User     string  `json:"user"`
}

type DomainConnection

type DomainConnection struct {
	Edges      []*db.Domain `json:"edges,omitempty"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

type DownloadFileInput

type DownloadFileInput struct {
	ID string `json:"id"`
}

type DownloadFilePayload

type DownloadFilePayload struct {
	URL string `json:"url"`
}

type DownloadFilesInput

type DownloadFilesInput struct {
	Ids []string `json:"ids"`
}

type DownloadFilesPayload

type DownloadFilesPayload struct {
	// The url to download a zip file containing all the files.
	URL string `json:"url"`
}

type EditChatMessageInput

type EditChatMessageInput struct {
	ID      string `json:"id"`
	Message string `json:"message"`
}

type EmailAccountConnection

type EmailAccountConnection struct {
	Edges      []*db.EmailAccount `json:"edges,omitempty"`
	PageInfo   *PageInfo          `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

type EmailAccountFilter

type EmailAccountFilter struct {
	Type *db.EmailAccountType `json:"type,omitempty"`
}

type EmailConnection

type EmailConnection struct {
	Edges      []*db.Email `json:"edges,omitempty"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

type EmailForwardingConnection

type EmailForwardingConnection struct {
	Edges      []*db.EmailForwarding `json:"edges,omitempty"`
	PageInfo   *PageInfo             `json:"pageInfo"`
	TotalCount int                   `json:"totalCount"`
}

type EmailGroupMemberConnection

type EmailGroupMemberConnection struct {
	Edges      []*db.EmailGroupMember `json:"edges,omitempty"`
	PageInfo   *PageInfo              `json:"pageInfo"`
	TotalCount int                    `json:"totalCount"`
}

type EntryConnection

type EntryConnection struct {
	Edges      []*db.Entry `json:"edges"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

type EntryFilterInput

type EntryFilterInput struct {
	Authors     []*string  `json:"authors,omitempty"`
	Users       []*string  `json:"users,omitempty"`
	Tags        []*string  `json:"tags,omitempty"`
	Competences []*string  `json:"competences,omitempty"`
	From        *time.Time `json:"from,omitempty"`
	To          *time.Time `json:"to,omitempty"`
	Deleted     *bool      `json:"deleted,omitempty"`
}

type EntrySortBy

type EntrySortBy string
const (
	EntrySortByDateAsc       EntrySortBy = "date_ASC"
	EntrySortByDateDesc      EntrySortBy = "date_DESC"
	EntrySortByCreatedAtAsc  EntrySortBy = "createdAt_ASC"
	EntrySortByCreatedAtDesc EntrySortBy = "createdAt_DESC"
)

func (EntrySortBy) IsValid

func (e EntrySortBy) IsValid() bool

func (EntrySortBy) MarshalGQL

func (e EntrySortBy) MarshalGQL(w io.Writer)

func (EntrySortBy) String

func (e EntrySortBy) String() string

func (*EntrySortBy) UnmarshalGQL

func (e *EntrySortBy) UnmarshalGQL(v interface{}) error

type EventConnection

type EventConnection struct {
	Edges      []*db.Event `json:"edges,omitempty"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

type EventFilterInput

type EventFilterInput struct {
	From    *time.Time `json:"from,omitempty"`
	To      *time.Time `json:"to,omitempty"`
	Deleted *bool      `json:"deleted,omitempty"`
}

type EventOrderBy

type EventOrderBy string
const (
	EventOrderByStartsAtAsc  EventOrderBy = "startsAt_ASC"
	EventOrderByStartsAtDesc EventOrderBy = "startsAt_DESC"
	EventOrderByEndsAtAsc    EventOrderBy = "endsAt_ASC"
	EventOrderByEndsAtDesc   EventOrderBy = "endsAt_DESC"
)

func (EventOrderBy) IsValid

func (e EventOrderBy) IsValid() bool

func (EventOrderBy) MarshalGQL

func (e EventOrderBy) MarshalGQL(w io.Writer)

func (EventOrderBy) String

func (e EventOrderBy) String() string

func (*EventOrderBy) UnmarshalGQL

func (e *EventOrderBy) UnmarshalGQL(v interface{}) error

type ExportEventsInput

type ExportEventsInput struct {
	From    string `json:"from"`
	To      string `json:"to"`
	Deleted bool   `json:"deleted"`
}

type ExportEventsPayload

type ExportEventsPayload struct {
	ID       string `json:"id"`
	Title    string `json:"title"`
	Body     string `json:"body"`
	StartsAt string `json:"startsAt"`
	EndsAt   string `json:"endsAt"`
	Subjects string `json:"subjects"`
}

type FileConnection

type FileConnection struct {
	Edges      []*db.File `json:"edges"`
	TotalCount int        `json:"totalCount"`
	PageInfo   *PageInfo  `json:"pageInfo"`
}

type FilePermission

type FilePermission string
const (
	FilePermissionViewer  FilePermission = "Viewer"
	FilePermissionManager FilePermission = "Manager"
)

func (FilePermission) IsValid

func (e FilePermission) IsValid() bool

func (FilePermission) MarshalGQL

func (e FilePermission) MarshalGQL(w io.Writer)

func (FilePermission) String

func (e FilePermission) String() string

func (*FilePermission) UnmarshalGQL

func (e *FilePermission) UnmarshalGQL(v interface{}) error

type FileUploadInput

type FileUploadInput struct {
	File graphql.Upload `json:"file"`
	// The folder to upload the file to if empty the file will be uploaded to the root folder of the user.
	ParentID *string `json:"parentId,omitempty"`
	// The shared drive to upload the file to if empty the file will be uploaded to the root folder of the user.
	BucketID *string `json:"bucketId,omitempty"`
}

type FilesFilterInput

type FilesFilterInput struct {
	ParentID *string `json:"parentId,omitempty"`
	BucketID *string `json:"bucketId,omitempty"`
	MyBucket *bool   `json:"myBucket,omitempty"`
}

type ForgotPasswordInput

type ForgotPasswordInput struct {
	Email string `json:"email"`
}

type ForgotPasswordPayload

type ForgotPasswordPayload struct {
	Success bool `json:"success"`
}

type GenerateFileURLInput

type GenerateFileURLInput struct {
	ID string `json:"id"`
}

type ImportStudentsError

type ImportStudentsError string
const (
	ImportStudentsErrorHeaderWrong      ImportStudentsError = "HEADER_WRONG"
	ImportStudentsErrorFormatWrong      ImportStudentsError = "FORMAT_WRONG"
	ImportStudentsErrorDataWrong        ImportStudentsError = "DATA_WRONG"
	ImportStudentsErrorGradeWrong       ImportStudentsError = "GRADE_WRONG"
	ImportStudentsErrorPermissionDenied ImportStudentsError = "PERMISSION_DENIED"
)

func (ImportStudentsError) IsValid

func (e ImportStudentsError) IsValid() bool

func (ImportStudentsError) MarshalGQL

func (e ImportStudentsError) MarshalGQL(w io.Writer)

func (ImportStudentsError) String

func (e ImportStudentsError) String() string

func (*ImportStudentsError) UnmarshalGQL

func (e *ImportStudentsError) UnmarshalGQL(v interface{}) error

type ImportStudentsInput

type ImportStudentsInput struct {
	File graphql.Upload `json:"file"`
}

type ImportStudentsPayload

type ImportStudentsPayload struct {
	UsersCreated int                   `json:"usersCreated"`
	UsersExisted int                   `json:"usersExisted"`
	Errors       []ImportStudentsError `json:"errors"`
}

type InviteDetailsPayload

type InviteDetailsPayload struct {
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

type MoveFileInput

type MoveFileInput struct {
	ID       string  `json:"id"`
	TargetID *string `json:"targetId,omitempty"`
}

type MoveFilesInput

type MoveFilesInput struct {
	Ids      []string `json:"ids"`
	TargetID string   `json:"targetId"`
}

type MoveFilesPayload

type MoveFilesPayload struct {
	Files []*db.File `json:"files"`
}

type MyFilesFilterInput

type MyFilesFilterInput struct {
	ParentID *string `json:"parentId,omitempty"`
}

type PageInfo

type PageInfo struct {
	HasNextPage     bool `json:"hasNextPage"`
	HasPreviousPage bool `json:"hasPreviousPage"`
	CurrentPage     int  `json:"currentPage"`
}

type PreviewFileInput

type PreviewFileInput struct {
	ID string `json:"id"`
}

type PreviewFilePayload

type PreviewFilePayload struct {
	URL string `json:"url"`
}

type RemoveUserFromChatInput

type RemoveUserFromChatInput struct {
	ChatID string `json:"chatId"`
	UserID string `json:"userId"`
}

type RenameFileInput

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

type RenameSharedDriveInput

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

type ReportConnection

type ReportConnection struct {
	Edges      []*db.Report `json:"edges,omitempty"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

type ResetPasswordInput

type ResetPasswordInput struct {
	Token    *string `json:"token,omitempty"`
	Password string  `json:"password"`
}

type ResetPasswordPayload

type ResetPasswordPayload struct {
	Success       bool `json:"success"`
	Unauthorized  bool `json:"unauthorized"`
	InvalidToken  bool `json:"invalidToken"`
	TokenExpired  bool `json:"tokenExpired"`
	UnableToReset bool `json:"unableToReset"`
}

type SchoolYearConnection

type SchoolYearConnection struct {
	Edges      []*db.SchoolYear `json:"edges"`
	TotalCount int              `json:"totalCount"`
	PageInfo   *PageInfo        `json:"pageInfo"`
}

type SendMessageInput

type SendMessageInput struct {
	ChatID  string `json:"chatId"`
	Message string `json:"message"`
}

type ShareFileInput

type ShareFileInput struct {
	FileID     string         `json:"fileId"`
	Users      []string       `json:"users"`
	Emails     []string       `json:"emails"`
	Permission FilePermission `json:"permission"`
}

type ShareInput

type ShareInput struct {
	BucketID *string `json:"bucketId,omitempty"`
	FileID   *string `json:"fileId,omitempty"`
}

type ShareUser

type ShareUser struct {
	User       *db.User       `json:"user"`
	Permission FilePermission `json:"permission"`
}

type SharedDriveFilterInput

type SharedDriveFilterInput struct {
	Folder *string `json:"folder,omitempty"`
}

type SignInInput

type SignInInput struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type SignInPayload

type SignInPayload struct {
	Token         string   `json:"token"`
	EnabledApps   []string `json:"enabled_apps"`
	Language      string   `json:"language"`
	SetupComplete bool     `json:"setupComplete"`
	User          *db.User `json:"user"`
}

type SignUpInput

type SignUpInput struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Email     string `json:"email"`
	Password  string `json:"password"`
}

type SortCompetenceInput

type SortCompetenceInput struct {
	ID        string `json:"id"`
	SortOrder int    `json:"sortOrder"`
}

type SortDirection

type SortDirection string
const (
	SortDirectionAsc  SortDirection = "asc"
	SortDirectionDesc SortDirection = "desc"
)

func (SortDirection) IsValid

func (e SortDirection) IsValid() bool

func (SortDirection) MarshalGQL

func (e SortDirection) MarshalGQL(w io.Writer)

func (SortDirection) String

func (e SortDirection) String() string

func (*SortDirection) UnmarshalGQL

func (e *SortDirection) UnmarshalGQL(v interface{}) error

type SubjectConnection

type SubjectConnection struct {
	Edges      []*db.Subject `json:"edges"`
	TotalCount int           `json:"totalCount"`
	PageInfo   *PageInfo     `json:"pageInfo"`
}

type TagConnection

type TagConnection struct {
	Edges      []*db.Tag `json:"edges,omitempty"`
	PageInfo   *PageInfo `json:"pageInfo"`
	TotalCount int       `json:"totalCount"`
}

type UpdateChatInput

type UpdateChatInput struct {
	ID   string  `json:"id"`
	Name *string `json:"name,omitempty"`
}

type UpdateCompetenceInput

type UpdateCompetenceInput struct {
	ID    string  `json:"id"`
	Color *string `json:"color,omitempty"`
}

type UpdateCompetenceSortingInput

type UpdateCompetenceSortingInput struct {
	Competences []*SortCompetenceInput `json:"competences"`
}

type UpdateEmailAccountInput

type UpdateEmailAccountInput struct {
	ID          string               `json:"id"`
	Name        *string              `json:"name,omitempty"`
	Description *string              `json:"description,omitempty"`
	Type        *db.EmailAccountType `json:"type,omitempty"`
	Quota       *int                 `json:"quota,omitempty"`
	Active      *bool                `json:"active,omitempty"`
}

type UpdateEmailGroupInput

type UpdateEmailGroupInput struct {
	ID          string    `json:"id"`
	Name        *string   `json:"name,omitempty"`
	Members     []*string `json:"members,omitempty"`
	Description *string   `json:"description,omitempty"`
}

type UpdateEntryInput

type UpdateEntryInput struct {
	ID   string  `json:"id"`
	Date *string `json:"date,omitempty"`
	Body *string `json:"body,omitempty"`
}

type UpdateEntryUserCompetenceLevel

type UpdateEntryUserCompetenceLevel struct {
	EntryID      string `json:"entryId"`
	CompetenceID string `json:"competenceId"`
	Level        int    `json:"level"`
}

type UpdateEventInput

type UpdateEventInput struct {
	ID         string          `json:"id"`
	Title      *string         `json:"title,omitempty"`
	Image      *graphql.Upload `json:"image,omitempty"`
	Body       *string         `json:"body,omitempty"`
	StartsAt   *string         `json:"startsAt,omitempty"`
	EndsAt     *string         `json:"endsAt,omitempty"`
	Recurrence []*string       `json:"recurrence,omitempty"`
}

type UpdateOrganisationInput

type UpdateOrganisationInput struct {
	ID        string  `json:"id"`
	Name      *string `json:"name,omitempty"`
	LegalName *string `json:"legalName,omitempty"`
	Website   *string `json:"website,omitempty"`
	Phone     *string `json:"phone,omitempty"`
}

type UpdateSchoolYearInput

type UpdateSchoolYearInput struct {
	ID   string `json:"id"`
	Year int    `json:"year"`
}

type UpdateSubjectInput

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

type UpdateUserCompetenceInput

type UpdateUserCompetenceInput struct {
	Level        int    `json:"level"`
	UserID       string `json:"userId"`
	CompetenceID string `json:"competenceId"`
}

type UpdateUserInput

type UpdateUserInput struct {
	ID                 string     `json:"id"`
	FirstName          string     `json:"firstName"`
	LastName           string     `json:"lastName"`
	Email              *string    `json:"email,omitempty"`
	Grade              *int       `json:"grade,omitempty"`
	Birthday           *time.Time `json:"birthday,omitempty"`
	LeftAt             *time.Time `json:"leftAt,omitempty"`
	JoinedAt           *time.Time `json:"joinedAt,omitempty"`
	Emoji              *string    `json:"emoji,omitempty"`
	MissedHours        *int       `json:"missedHours,omitempty"`
	MissedHoursExcused *int       `json:"missedHoursExcused,omitempty"`
}

type UpdateUserStudentGradesInput

type UpdateUserStudentGradesInput struct {
	ID    string `json:"id"`
	Grade int    `json:"grade"`
}

type UploadFilesPayload

type UploadFilesPayload struct {
	Files []*db.File `json:"files"`
}

type UserCompetenceConnection

type UserCompetenceConnection struct {
	Edges      []*db.UserCompetence `json:"edges,omitempty"`
	PageInfo   *PageInfo            `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

type UserCompetenceFilterInput

type UserCompetenceFilterInput struct {
	UserID       *string `json:"userID,omitempty"`
	CompetenceID *string `json:"competenceID,omitempty"`
}

type UserConnection

type UserConnection struct {
	Edges      []*db.User `json:"edges,omitempty"`
	PageInfo   *PageInfo  `json:"pageInfo"`
	TotalCount int        `json:"totalCount"`
}

type UserFileFilterInput

type UserFileFilterInput struct {
	FolderID *string `json:"folderId,omitempty"`
}

type UserFilterInput

type UserFilterInput struct {
	Role        []*db.UserRole `json:"role,omitempty"`
	OrderBy     *UserOrderBy   `json:"orderBy,omitempty"`
	ShowDeleted *bool          `json:"showDeleted,omitempty"`
}

type UserOrderBy

type UserOrderBy string
const (
	UserOrderByFirstNameAsc  UserOrderBy = "firstNameAsc"
	UserOrderByFirstNameDesc UserOrderBy = "firstNameDesc"
	UserOrderByLastNameAsc   UserOrderBy = "lastNameAsc"
	UserOrderByLastNameDesc  UserOrderBy = "lastNameDesc"
)

func (UserOrderBy) IsValid

func (e UserOrderBy) IsValid() bool

func (UserOrderBy) MarshalGQL

func (e UserOrderBy) MarshalGQL(w io.Writer)

func (UserOrderBy) String

func (e UserOrderBy) String() string

func (*UserOrderBy) UnmarshalGQL

func (e *UserOrderBy) UnmarshalGQL(v interface{}) error

type UserStudentConnection

type UserStudentConnection struct {
	Edges      []*db.UserStudent `json:"edges,omitempty"`
	PageInfo   *PageInfo         `json:"pageInfo"`
	TotalCount int               `json:"totalCount"`
}

type UserStudentGradesConnection

type UserStudentGradesConnection struct {
	Edges      []*db.UserStudentGrades `json:"edges"`
	TotalCount int                     `json:"totalCount"`
	PageInfo   *PageInfo               `json:"pageInfo"`
}

Jump to

Keyboard shortcuts

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