Created
March 9, 2024 05:47
-
-
Save inxilpro/d4dd3ce69b3a8ad65d95d3a53be9f5cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Team implements Node { | |
"The unique identifier of the entity." | |
id: ID! | |
"The time at which the entity was created." | |
createdAt: DateTime! | |
""" | |
The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those | |
for which updates should not produce an update to updatedAt (see skipUpdatedAtKeys). This is the same as the creation time if the entity hasn't | |
been updated after creation. | |
""" | |
updatedAt: DateTime! | |
"The time at which the entity was archived. Null if the entity has not been archived." | |
archivedAt: DateTime | |
"The team's name." | |
name: String! | |
"The team's unique key. The key is used in URLs." | |
key: String! | |
"The team's description." | |
description: String | |
"The icon of the team." | |
icon: String | |
"The team's color." | |
color: String | |
"The organization that the team is associated with." | |
organization: Organization! | |
"Whether the team uses cycles." | |
cyclesEnabled: Boolean! | |
"The day of the week that a new cycle starts." | |
cycleStartDay: Float! | |
"The duration of a cycle in weeks." | |
cycleDuration: Float! | |
"The cooldown time after each cycle in weeks." | |
cycleCooldownTime: Float! | |
"Auto assign started issues to current cycle." | |
cycleIssueAutoAssignStarted: Boolean! | |
"Auto assign completed issues to current cycle." | |
cycleIssueAutoAssignCompleted: Boolean! | |
"Auto assign issues to current cycle if in active status." | |
cycleLockToActive: Boolean! | |
"How many upcoming cycles to create." | |
upcomingCycleCount: Float! | |
"The timezone of the team. Defaults to \"America\/Los_Angeles\"" | |
timezone: String! | |
"Unique hash for the team to be used in invite URLs." | |
inviteHash: String! | |
"The issue estimation type to use. Must be one of \"notUsed\", \"exponential\", \"fibonacci\", \"linear\", \"tShirt\"." | |
issueEstimationType: String! | |
"Whether issues without priority should be sorted first." | |
issueOrderingNoPriorityFirst: Boolean! | |
"Whether to allow zeros in issues estimates." | |
issueEstimationAllowZero: Boolean! | |
"Where to move issues when changing state." | |
setIssueSortOrderOnStateChange: String! | |
"Whether to add additional points to the estimate scale." | |
issueEstimationExtended: Boolean! | |
"What to use as an default estimate for unestimated issues." | |
defaultIssueEstimate: Float! | |
"Whether triage mode is enabled for the team or not." | |
triageEnabled: Boolean! | |
"Whether an issue needs to have a priority set before leaving triage." | |
requirePriorityToLeaveTriage: Boolean! | |
"The default workflow state into which issues are set when they are opened by team members." | |
defaultIssueState: WorkflowState | |
"The default template to use for new issues created by members of the team." | |
defaultTemplateForMembers: Template | |
"The id of the default template to use for new issues created by members of the team." | |
defaultTemplateForMembersId: String @deprecated(reason: "Use defaultTemplateForMembers instead") | |
"The default template to use for new issues created by non-members of the team." | |
defaultTemplateForNonMembers: Template | |
"The id of the default template to use for new issues created by non-members of the team." | |
defaultTemplateForNonMembersId: String @deprecated(reason: "Use defaultTemplateForNonMembers instead") | |
"The default template to use for new projects created for the team." | |
defaultProjectTemplate: Template | |
"The workflow state into which issues are set when they are opened by non-team members or integrations if triage is enabled." | |
triageIssueState: WorkflowState | |
"Whether the team is private or not." | |
private: Boolean! | |
"The workflow state into which issues are moved when a PR has been opened as draft." | |
draftWorkflowState: WorkflowState @deprecated(reason: "Use team.gitAutomationStates instead.") | |
"The workflow state into which issues are moved when a PR has been opened." | |
startWorkflowState: WorkflowState @deprecated(reason: "Use team.gitAutomationStates instead.") | |
"The workflow state into which issues are moved when a review has been requested for the PR." | |
reviewWorkflowState: WorkflowState @deprecated(reason: "Use team.gitAutomationStates instead.") | |
"The workflow state into which issues are moved when a PR is ready to be merged." | |
mergeableWorkflowState: WorkflowState @deprecated(reason: "Use team.gitAutomationStates instead.") | |
"The workflow state into which issues are moved when a PR has been merged." | |
mergeWorkflowState: WorkflowState @deprecated(reason: "Use team.gitAutomationStates instead.") | |
"Whether to group recent issue history entries." | |
groupIssueHistory: Boolean! | |
"Whether to send new issue notifications to Slack." | |
slackNewIssue: Boolean! | |
"Whether to send new issue comment notifications to Slack." | |
slackIssueComments: Boolean! | |
"Whether to send new issue status updates to Slack." | |
slackIssueStatuses: Boolean! | |
"Period after which issues are automatically closed in months. Null\/undefined means disabled." | |
autoClosePeriod: Float | |
"The canceled workflow state which auto closed issues will be set to. Defaults to the first canceled state." | |
autoCloseStateId: String | |
"Period after which automatically closed and completed issues are automatically archived in months." | |
autoArchivePeriod: Float! | |
"The workflow state into which issues are moved when they are marked as a duplicate of another issue. Defaults to the first canceled state." | |
markedAsDuplicateWorkflowState: WorkflowState | |
"[INTERNAL] Whether new users should join this team by default." | |
joinByDefault: Boolean | |
"Calendar feed URL (iCal) for cycles." | |
cycleCalenderUrl: String! | |
"Issues associated with the team." | |
issues( | |
"Filter returned issues." | |
filter: IssueFilter | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): IssueConnection! | |
"Number of issues in the team." | |
issueCount( | |
"Include archived issues in the count." | |
includeArchived: Boolean = false | |
): Int! | |
"Cycles associated with the team." | |
cycles( | |
"Filter returned cycles." | |
filter: CycleFilter | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): CycleConnection! | |
"Team's currently active cycle." | |
activeCycle: Cycle | |
"Team's triage responsibility." | |
triageResponsibility: TriageResponsibility | |
"Users who are members of this team." | |
members( | |
"Filter returned users." | |
filter: UserFilter | |
"Should query return disabled\/suspended users (default: false)." | |
includeDisabled: Boolean | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): UserConnection! | |
"Memberships associated with the team. For easier access of the same data, use `members` query." | |
memberships( | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): TeamMembershipConnection! | |
"Projects associated with the team." | |
projects( | |
"Filter returned projects." | |
filter: ProjectFilter | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): ProjectConnection! | |
"The states that define the workflow associated with the team." | |
states( | |
"Filter returned workflow states." | |
filter: WorkflowStateFilter | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): WorkflowStateConnection! | |
"The Git automation states for the team." | |
gitAutomationStates( | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): GitAutomationStateConnection! | |
"Templates associated with the team." | |
templates( | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): TemplateConnection! | |
"Labels associated with the team." | |
labels( | |
"Filter returned issue labels." | |
filter: IssueLabelFilter | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): IssueLabelConnection! | |
"Webhooks associated with the team." | |
webhooks( | |
"A cursor to be used with last for backward pagination." | |
before: String | |
"A cursor to be used with first for forward pagination" | |
after: String | |
"The number of items to forward paginate (used with after). Defaults to 50." | |
first: Int | |
"The number of items to backward paginate (used with before). Defaults to 50." | |
last: Int | |
"Should archived resources be included (default: false)" | |
includeArchived: Boolean | |
"By which field should the pagination order by. Available options are createdAt (default) and updatedAt." | |
orderBy: PaginationOrderBy | |
): WebhookConnection! | |
"Settings for all integrations associated with that team." | |
integrationsSettings: IntegrationsSettings | |
"[DEPRECATED] Whether to move issues to bottom of the column when changing state." | |
issueSortOrderDefaultToBottom: Boolean! @deprecated(reason: "Use setIssueSortOrderOnStateChange instead.") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Glhd\Linearavel\Data; | |
use Carbon\CarbonImmutable; | |
use DateTimeInterface; | |
use Glhd\Linearavel\Data\Contracts\Node; | |
use Spatie\LaravelData\Attributes\WithCast; | |
use Spatie\LaravelData\Casts\DateTimeInterfaceCast; | |
use Spatie\LaravelData\Data; | |
use Spatie\LaravelData\Optional; | |
class Team extends Data implements Node | |
{ | |
function __construct( | |
public Optional|string $id, | |
#[WithCast(DateTimeInterfaceCast::class, DateTimeInterface::RFC3339_EXTENDED)] public Optional|CarbonImmutable $createdAt, | |
#[WithCast(DateTimeInterfaceCast::class, DateTimeInterface::RFC3339_EXTENDED)] public Optional|CarbonImmutable $updatedAt, | |
#[WithCast(DateTimeInterfaceCast::class, DateTimeInterface::RFC3339_EXTENDED)] public Optional|CarbonImmutable|null $archivedAt, | |
public Optional|string $name, | |
public Optional|string $key, | |
public Optional|string|null $description, | |
public Optional|string|null $icon, | |
public Optional|string|null $color, | |
public Optional|Organization $organization, | |
public Optional|bool $cyclesEnabled, | |
public Optional|float $cycleStartDay, | |
public Optional|float $cycleDuration, | |
public Optional|float $cycleCooldownTime, | |
public Optional|bool $cycleIssueAutoAssignStarted, | |
public Optional|bool $cycleIssueAutoAssignCompleted, | |
public Optional|bool $cycleLockToActive, | |
public Optional|float $upcomingCycleCount, | |
public Optional|string $timezone, | |
public Optional|string $inviteHash, | |
public Optional|string $issueEstimationType, | |
public Optional|bool $issueOrderingNoPriorityFirst, | |
public Optional|bool $issueEstimationAllowZero, | |
public Optional|string $setIssueSortOrderOnStateChange, | |
public Optional|bool $issueEstimationExtended, | |
public Optional|float $defaultIssueEstimate, | |
public Optional|bool $triageEnabled, | |
public Optional|bool $requirePriorityToLeaveTriage, | |
public Optional|WorkflowState|null $defaultIssueState, | |
public Optional|Template|null $defaultTemplateForMembers, | |
public Optional|string|null $defaultTemplateForMembersId, | |
public Optional|Template|null $defaultTemplateForNonMembers, | |
public Optional|string|null $defaultTemplateForNonMembersId, | |
public Optional|Template|null $defaultProjectTemplate, | |
public Optional|WorkflowState|null $triageIssueState, | |
public Optional|bool $private, | |
public Optional|WorkflowState|null $draftWorkflowState, | |
public Optional|WorkflowState|null $startWorkflowState, | |
public Optional|WorkflowState|null $reviewWorkflowState, | |
public Optional|WorkflowState|null $mergeableWorkflowState, | |
public Optional|WorkflowState|null $mergeWorkflowState, | |
public Optional|bool $groupIssueHistory, | |
public Optional|bool $slackNewIssue, | |
public Optional|bool $slackIssueComments, | |
public Optional|bool $slackIssueStatuses, | |
public Optional|float|null $autoClosePeriod, | |
public Optional|string|null $autoCloseStateId, | |
public Optional|float $autoArchivePeriod, | |
public Optional|WorkflowState|null $markedAsDuplicateWorkflowState, | |
public Optional|bool|null $joinByDefault, | |
public Optional|string $cycleCalenderUrl, | |
public Optional|IssueConnection $issues, | |
public Optional|int $issueCount, | |
public Optional|CycleConnection $cycles, | |
public Optional|Cycle|null $activeCycle, | |
public Optional|TriageResponsibility|null $triageResponsibility, | |
public Optional|UserConnection $members, | |
public Optional|TeamMembershipConnection $memberships, | |
public Optional|ProjectConnection $projects, | |
public Optional|WorkflowStateConnection $states, | |
public Optional|GitAutomationStateConnection $gitAutomationStates, | |
public Optional|TemplateConnection $templates, | |
public Optional|IssueLabelConnection $labels, | |
public Optional|WebhookConnection $webhooks, | |
public Optional|IntegrationsSettings|null $integrationsSettings, | |
public Optional|bool $issueSortOrderDefaultToBottom | |
) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment