2020-04-10 04:40:22 +02:00
|
|
|
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
|
|
|
|
package graph
|
|
|
|
|
2020-04-11 04:47:43 +02:00
|
|
|
import (
|
2020-06-16 00:36:59 +02:00
|
|
|
"time"
|
|
|
|
|
2020-04-11 04:47:43 +02:00
|
|
|
"github.com/google/uuid"
|
2020-04-11 21:24:45 +02:00
|
|
|
"github.com/jordanknott/project-citadel/api/pg"
|
2020-04-11 04:47:43 +02:00
|
|
|
)
|
|
|
|
|
2020-04-20 05:02:55 +02:00
|
|
|
type AddTaskLabelInput struct {
|
2020-05-31 06:11:19 +02:00
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
ProjectLabelID uuid.UUID `json:"projectLabelID"`
|
2020-04-20 05:02:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type AssignTaskInput struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
UserID uuid.UUID `json:"userID"`
|
|
|
|
}
|
|
|
|
|
2020-06-19 01:12:15 +02:00
|
|
|
type ChecklistBadge struct {
|
|
|
|
Complete int `json:"complete"`
|
|
|
|
Total int `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateTaskChecklist struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateTaskChecklistItem struct {
|
|
|
|
TaskChecklistID uuid.UUID `json:"taskChecklistID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
2020-06-21 00:49:11 +02:00
|
|
|
type CreateTeamMember struct {
|
|
|
|
UserID uuid.UUID `json:"userID"`
|
|
|
|
TeamID uuid.UUID `json:"teamID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateTeamMemberPayload struct {
|
|
|
|
Team *pg.Team `json:"team"`
|
|
|
|
TeamMember *ProjectMember `json:"teamMember"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteProject struct {
|
|
|
|
ProjectID uuid.UUID `json:"projectID"`
|
|
|
|
}
|
|
|
|
|
2020-05-28 03:12:50 +02:00
|
|
|
type DeleteProjectLabel struct {
|
|
|
|
ProjectLabelID uuid.UUID `json:"projectLabelID"`
|
|
|
|
}
|
|
|
|
|
2020-06-21 00:49:11 +02:00
|
|
|
type DeleteProjectPayload struct {
|
|
|
|
Ok bool `json:"ok"`
|
|
|
|
Project *pg.Project `json:"project"`
|
|
|
|
}
|
|
|
|
|
2020-06-23 22:20:53 +02:00
|
|
|
type DeleteTaskChecklist struct {
|
|
|
|
TaskChecklistID uuid.UUID `json:"taskChecklistID"`
|
|
|
|
}
|
|
|
|
|
2020-06-19 01:12:15 +02:00
|
|
|
type DeleteTaskChecklistItem struct {
|
|
|
|
TaskChecklistItemID uuid.UUID `json:"taskChecklistItemID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskChecklistItemPayload struct {
|
|
|
|
Ok bool `json:"ok"`
|
|
|
|
TaskChecklistItem *pg.TaskChecklistItem `json:"taskChecklistItem"`
|
|
|
|
}
|
|
|
|
|
2020-06-23 22:20:53 +02:00
|
|
|
type DeleteTaskChecklistPayload struct {
|
|
|
|
Ok bool `json:"ok"`
|
|
|
|
TaskChecklist *pg.TaskChecklist `json:"taskChecklist"`
|
|
|
|
}
|
|
|
|
|
2020-04-11 21:24:45 +02:00
|
|
|
type DeleteTaskGroupInput struct {
|
|
|
|
TaskGroupID uuid.UUID `json:"taskGroupID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskGroupPayload struct {
|
|
|
|
Ok bool `json:"ok"`
|
|
|
|
AffectedRows int `json:"affectedRows"`
|
|
|
|
TaskGroup *pg.TaskGroup `json:"taskGroup"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type DeleteTaskInput struct {
|
|
|
|
TaskID string `json:"taskID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskPayload struct {
|
|
|
|
TaskID string `json:"taskID"`
|
|
|
|
}
|
|
|
|
|
2020-06-23 22:20:53 +02:00
|
|
|
type DeleteTeam struct {
|
|
|
|
TeamID uuid.UUID `json:"teamID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTeamPayload struct {
|
|
|
|
Ok bool `json:"ok"`
|
|
|
|
Team *pg.Team `json:"team"`
|
|
|
|
Projects []pg.Project `json:"projects"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteUserAccount struct {
|
|
|
|
UserID uuid.UUID `json:"userID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteUserAccountPayload struct {
|
|
|
|
Ok bool `json:"ok"`
|
|
|
|
UserAccount *pg.UserAccount `json:"userAccount"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type FindProject struct {
|
|
|
|
ProjectID string `json:"projectId"`
|
|
|
|
}
|
|
|
|
|
2020-04-20 05:02:55 +02:00
|
|
|
type FindTask struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
}
|
|
|
|
|
2020-06-23 22:20:53 +02:00
|
|
|
type FindTeam struct {
|
|
|
|
TeamID uuid.UUID `json:"teamID"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type FindUser struct {
|
|
|
|
UserID string `json:"userId"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type LogoutUser struct {
|
|
|
|
UserID string `json:"userID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NewProject struct {
|
2020-04-20 05:02:55 +02:00
|
|
|
UserID uuid.UUID `json:"userID"`
|
|
|
|
TeamID uuid.UUID `json:"teamID"`
|
|
|
|
Name string `json:"name"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
2020-04-21 01:04:27 +02:00
|
|
|
type NewProjectLabel struct {
|
|
|
|
ProjectID uuid.UUID `json:"projectID"`
|
|
|
|
LabelColorID uuid.UUID `json:"labelColorID"`
|
|
|
|
Name *string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type NewRefreshToken struct {
|
|
|
|
UserID string `json:"userId"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NewTask struct {
|
|
|
|
TaskGroupID string `json:"taskGroupID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NewTaskGroup struct {
|
|
|
|
ProjectID string `json:"projectID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
2020-04-11 04:47:43 +02:00
|
|
|
type NewTaskGroupLocation struct {
|
|
|
|
TaskGroupID uuid.UUID `json:"taskGroupID"`
|
|
|
|
Position float64 `json:"position"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type NewTaskLocation struct {
|
2020-06-01 04:20:03 +02:00
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
TaskGroupID uuid.UUID `json:"taskGroupID"`
|
|
|
|
Position float64 `json:"position"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type NewTeam struct {
|
2020-06-21 00:49:11 +02:00
|
|
|
Name string `json:"name"`
|
|
|
|
OrganizationID uuid.UUID `json:"organizationID"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type NewUserAccount struct {
|
2020-06-13 00:21:58 +02:00
|
|
|
Username string `json:"username"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
FullName string `json:"fullName"`
|
|
|
|
Initials string `json:"initials"`
|
|
|
|
Password string `json:"password"`
|
2020-04-20 05:02:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProfileIcon struct {
|
|
|
|
URL *string `json:"url"`
|
|
|
|
Initials *string `json:"initials"`
|
2020-04-21 01:04:27 +02:00
|
|
|
BgColor *string `json:"bgColor"`
|
2020-04-20 05:02:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProjectMember struct {
|
2020-05-27 02:53:31 +02:00
|
|
|
ID uuid.UUID `json:"id"`
|
2020-06-13 00:21:58 +02:00
|
|
|
FullName string `json:"fullName"`
|
2020-04-20 05:02:55 +02:00
|
|
|
ProfileIcon *ProfileIcon `json:"profileIcon"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProjectsFilter struct {
|
2020-06-23 22:20:53 +02:00
|
|
|
TeamID *uuid.UUID `json:"teamID"`
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
2020-04-20 05:02:55 +02:00
|
|
|
type RemoveTaskLabelInput struct {
|
|
|
|
TaskLabelID uuid.UUID `json:"taskLabelID"`
|
|
|
|
}
|
|
|
|
|
2020-06-19 01:12:15 +02:00
|
|
|
type SetTaskChecklistItemComplete struct {
|
|
|
|
TaskChecklistItemID uuid.UUID `json:"taskChecklistItemID"`
|
|
|
|
Complete bool `json:"complete"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetTaskComplete struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
Complete bool `json:"complete"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskBadges struct {
|
|
|
|
Checklist *ChecklistBadge `json:"checklist"`
|
|
|
|
}
|
|
|
|
|
2020-05-31 06:11:19 +02:00
|
|
|
type ToggleTaskLabelInput struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
ProjectLabelID uuid.UUID `json:"projectLabelID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ToggleTaskLabelPayload struct {
|
|
|
|
Active bool `json:"active"`
|
|
|
|
Task *pg.Task `json:"task"`
|
|
|
|
}
|
|
|
|
|
2020-04-21 01:04:27 +02:00
|
|
|
type UnassignTaskInput struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
UserID uuid.UUID `json:"userID"`
|
|
|
|
}
|
|
|
|
|
2020-05-28 03:12:50 +02:00
|
|
|
type UpdateProjectLabel struct {
|
|
|
|
ProjectLabelID uuid.UUID `json:"projectLabelID"`
|
|
|
|
LabelColorID uuid.UUID `json:"labelColorID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateProjectLabelColor struct {
|
|
|
|
ProjectLabelID uuid.UUID `json:"projectLabelID"`
|
|
|
|
LabelColorID uuid.UUID `json:"labelColorID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateProjectLabelName struct {
|
|
|
|
ProjectLabelID uuid.UUID `json:"projectLabelID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-05-31 06:11:19 +02:00
|
|
|
type UpdateProjectName struct {
|
|
|
|
ProjectID uuid.UUID `json:"projectID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-06-19 01:12:15 +02:00
|
|
|
type UpdateTaskChecklistItemName struct {
|
|
|
|
TaskChecklistItemID uuid.UUID `json:"taskChecklistItemID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-06-23 22:20:53 +02:00
|
|
|
type UpdateTaskChecklistName struct {
|
|
|
|
TaskChecklistID uuid.UUID `json:"taskChecklistID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-04-20 05:02:55 +02:00
|
|
|
type UpdateTaskDescriptionInput struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
}
|
|
|
|
|
2020-06-16 00:36:59 +02:00
|
|
|
type UpdateTaskDueDate struct {
|
|
|
|
TaskID uuid.UUID `json:"taskID"`
|
|
|
|
DueDate *time.Time `json:"dueDate"`
|
|
|
|
}
|
|
|
|
|
2020-06-13 00:21:58 +02:00
|
|
|
type UpdateTaskGroupName struct {
|
|
|
|
TaskGroupID uuid.UUID `json:"taskGroupID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2020-06-01 04:20:03 +02:00
|
|
|
type UpdateTaskLocationPayload struct {
|
|
|
|
PreviousTaskGroupID uuid.UUID `json:"previousTaskGroupID"`
|
|
|
|
Task *pg.Task `json:"task"`
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
type UpdateTaskName struct {
|
|
|
|
TaskID string `json:"taskID"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|