export const LINEAR_USER_FIELDS = ` id createdAt updatedAt archivedAt name displayName email avatarUrl active admin owner guest app isMe supportsAgentSessions timezone url ` export const LINEAR_USER_REFERENCE_FIELDS = ` id name displayName email avatarUrl active ` export const LINEAR_TEAM_REFERENCE_FIELDS = ` id key name displayName ` export const LINEAR_TEAM_FIELDS = ` id createdAt updatedAt archivedAt name displayName key description icon color private timezone cyclesEnabled triageEnabled issueEstimationType defaultIssueEstimate ` export const LINEAR_WORKFLOW_STATE_FIELDS = ` id createdAt updatedAt archivedAt name description color position type team { ${LINEAR_TEAM_REFERENCE_FIELDS} } ` export const LINEAR_ISSUE_LABEL_FIELDS = ` id createdAt updatedAt archivedAt name description color isGroup team { ${LINEAR_TEAM_REFERENCE_FIELDS} } parent { id name } ` export const LINEAR_PROJECT_REFERENCE_FIELDS = ` id name slugId url ` export const LINEAR_ISSUE_REFERENCE_FIELDS = ` id identifier title url ` export const LINEAR_PROJECT_FIELDS = ` id createdAt updatedAt archivedAt name description content slugId icon color state priority priorityLabel progress scope resourceCount url startDate targetDate startedAt completedAt canceledAt status { id name color description type } creator { ${LINEAR_USER_REFERENCE_FIELDS} } lead { ${LINEAR_USER_REFERENCE_FIELDS} } teams(first: 50) { nodes { ${LINEAR_TEAM_REFERENCE_FIELDS} } } members(first: 50) { nodes { ${LINEAR_USER_REFERENCE_FIELDS} } } ` export const LINEAR_ISSUE_FIELDS = ` id createdAt updatedAt archivedAt identifier number title description priority priorityLabel estimate dueDate startedAt completedAt canceledAt trashed url branchName team { ${LINEAR_TEAM_REFERENCE_FIELDS} } state { id name color type } assignee { ${LINEAR_USER_REFERENCE_FIELDS} } creator { ${LINEAR_USER_REFERENCE_FIELDS} } delegate { ${LINEAR_USER_REFERENCE_FIELDS} } project { ${LINEAR_PROJECT_REFERENCE_FIELDS} } parent { ${LINEAR_ISSUE_REFERENCE_FIELDS} } labels(first: 50) { nodes { id name color } } ` export const LINEAR_COMMENT_FIELDS = ` id createdAt updatedAt archivedAt body editedAt resolvedAt parentId issueId url user { ${LINEAR_USER_REFERENCE_FIELDS} } ` export const LINEAR_ATTACHMENT_FIELDS = ` id createdAt updatedAt archivedAt title subtitle url metadata sourceType groupBySource issue { ${LINEAR_ISSUE_REFERENCE_FIELDS} } creator { ${LINEAR_USER_REFERENCE_FIELDS} } ` export const LINEAR_ISSUE_RELATION_FIELDS = ` id createdAt updatedAt archivedAt type issue { ${LINEAR_ISSUE_REFERENCE_FIELDS} } relatedIssue { ${LINEAR_ISSUE_REFERENCE_FIELDS} } ` export const LINEAR_CYCLE_FIELDS = ` id createdAt updatedAt archivedAt autoArchivedAt completedAt name description number startsAt endsAt progress isActive isFuture isNext isPast isPrevious team { ${LINEAR_TEAM_REFERENCE_FIELDS} } ` export const LINEAR_DOCUMENT_FIELDS = ` id createdAt updatedAt archivedAt title content icon color hiddenAt slugId sortOrder trashed url creator { ${LINEAR_USER_REFERENCE_FIELDS} } owner { ${LINEAR_USER_REFERENCE_FIELDS} } updatedBy { ${LINEAR_USER_REFERENCE_FIELDS} } issue { ${LINEAR_ISSUE_REFERENCE_FIELDS} } project { ${LINEAR_PROJECT_REFERENCE_FIELDS} } ` export const LINEAR_PROJECT_UPDATE_FIELDS = ` id createdAt updatedAt archivedAt body commentCount diffMarkdown editedAt health isDiffHidden isStale slugId url project { ${LINEAR_PROJECT_REFERENCE_FIELDS} } user { ${LINEAR_USER_REFERENCE_FIELDS} } ` export const LINEAR_PROJECT_MILESTONE_FIELDS = ` id createdAt updatedAt archivedAt name description progress sortOrder status targetDate project { ${LINEAR_PROJECT_REFERENCE_FIELDS} } ` export const LINEAR_REACTION_FIELDS = ` id createdAt updatedAt archivedAt emoji comment { id } initiativeUpdate { id } issue { ${LINEAR_ISSUE_REFERENCE_FIELDS} } projectUpdate { id } user { ${LINEAR_USER_REFERENCE_FIELDS} } `