@linear/sdk 17.0.1 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_generated_documents.d.ts +74 -39
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +28 -23
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +74 -76
- package/dist/index-cjs.js.map +1 -1
- package/dist/index-cjs.min.js +1 -1
- package/dist/index-cjs.min.js.br +0 -0
- package/dist/index-cjs.min.js.gz +0 -0
- package/dist/index-cjs.min.js.map +1 -1
- package/dist/index-es.js +74 -76
- package/dist/index-es.js.map +1 -1
- package/dist/index-es.min.js +1 -1
- package/dist/index-es.min.js.br +0 -0
- package/dist/index-es.min.js.gz +0 -0
- package/dist/index-es.min.js.map +1 -1
- package/dist/index-umd.js +75 -77
- package/dist/index-umd.js.map +1 -1
- package/dist/index-umd.min.js +1 -1
- package/dist/index-umd.min.js.br +0 -0
- package/dist/index-umd.min.js.gz +0 -0
- package/dist/index-umd.min.js.map +1 -1
- package/package.json +1 -1
@@ -1294,6 +1294,8 @@ export declare type CycleFilter = {
|
|
1294
1294
|
isActive?: Maybe<BooleanComparator>;
|
1295
1295
|
/** Comparator for the filtering future cycles. */
|
1296
1296
|
isFuture?: Maybe<BooleanComparator>;
|
1297
|
+
/** Comparator for filtering for whether the cycle is currently in cooldown. */
|
1298
|
+
isInCooldown?: Maybe<BooleanComparator>;
|
1297
1299
|
/** Comparator for the filtering next cycle. */
|
1298
1300
|
isNext?: Maybe<BooleanComparator>;
|
1299
1301
|
/** Comparator for the filtering past cycles. */
|
@@ -3094,6 +3096,8 @@ export declare type Issue = Node & {
|
|
3094
3096
|
snoozedUntilAt?: Maybe<Scalars["DateTime"]>;
|
3095
3097
|
/** The order of the item in relation to other items in the organization. */
|
3096
3098
|
sortOrder: Scalars["Float"];
|
3099
|
+
/** The comment that this issue was created from. */
|
3100
|
+
sourceComment?: Maybe<Comment>;
|
3097
3101
|
/** The time at which the issue was moved into started state. */
|
3098
3102
|
startedAt?: Maybe<Scalars["DateTime"]>;
|
3099
3103
|
/** The time at which the issue entered triage. */
|
@@ -3356,6 +3360,8 @@ export declare type IssueCreateInput = {
|
|
3356
3360
|
slaBreachesAt?: Maybe<Scalars["DateTime"]>;
|
3357
3361
|
/** The position of the issue related to other issues. */
|
3358
3362
|
sortOrder?: Maybe<Scalars["Float"]>;
|
3363
|
+
/** The comment the issue is created from. */
|
3364
|
+
sourceCommentId?: Maybe<Scalars["String"]>;
|
3359
3365
|
/** The team state of the issue. */
|
3360
3366
|
stateId?: Maybe<Scalars["String"]>;
|
3361
3367
|
/** The position of the issue in parent's sub-issue list. */
|
@@ -4110,6 +4116,8 @@ export declare type IssueSearchResult = Node & {
|
|
4110
4116
|
snoozedUntilAt?: Maybe<Scalars["DateTime"]>;
|
4111
4117
|
/** The order of the item in relation to other items in the organization. */
|
4112
4118
|
sortOrder: Scalars["Float"];
|
4119
|
+
/** The comment that this issue was created from. */
|
4120
|
+
sourceComment?: Maybe<Comment>;
|
4113
4121
|
/** The time at which the issue was moved into started state. */
|
4114
4122
|
startedAt?: Maybe<Scalars["DateTime"]>;
|
4115
4123
|
/** The time at which the issue entered triage. */
|
@@ -4497,8 +4505,6 @@ export declare type Mutation = {
|
|
4497
4505
|
attachmentLinkURL: AttachmentPayload;
|
4498
4506
|
/** Link an existing Zendesk ticket to an issue. */
|
4499
4507
|
attachmentLinkZendesk: AttachmentPayload;
|
4500
|
-
/** [DEPRECATED] Unsyncs an existing synced Slack attachment. */
|
4501
|
-
attachmentUnsyncSlack: AttachmentPayload;
|
4502
4508
|
/** Updates an existing issue attachment. */
|
4503
4509
|
attachmentUpdate: AttachmentPayload;
|
4504
4510
|
/** Creates a new comment. */
|
@@ -5052,9 +5058,6 @@ export declare type MutationAttachmentLinkZendeskArgs = {
|
|
5052
5058
|
ticketId: Scalars["String"];
|
5053
5059
|
title?: Maybe<Scalars["String"]>;
|
5054
5060
|
};
|
5055
|
-
export declare type MutationAttachmentUnsyncSlackArgs = {
|
5056
|
-
id: Scalars["String"];
|
5057
|
-
};
|
5058
5061
|
export declare type MutationAttachmentUpdateArgs = {
|
5059
5062
|
id: Scalars["String"];
|
5060
5063
|
input: AttachmentUpdateInput;
|
@@ -6022,6 +6025,8 @@ export declare type NullableCycleFilter = {
|
|
6022
6025
|
isActive?: Maybe<BooleanComparator>;
|
6023
6026
|
/** Comparator for the filtering future cycles. */
|
6024
6027
|
isFuture?: Maybe<BooleanComparator>;
|
6028
|
+
/** Comparator for filtering for whether the cycle is currently in cooldown. */
|
6029
|
+
isInCooldown?: Maybe<BooleanComparator>;
|
6025
6030
|
/** Comparator for the filtering next cycle. */
|
6026
6031
|
isNext?: Maybe<BooleanComparator>;
|
6027
6032
|
/** Comparator for the filtering past cycles. */
|
@@ -6244,8 +6249,6 @@ export declare type NullableProjectFilter = {
|
|
6244
6249
|
null?: Maybe<Scalars["Boolean"]>;
|
6245
6250
|
/** Compound filters, one of which need to be matched by the project. */
|
6246
6251
|
or?: Maybe<Array<NullableProjectFilter>>;
|
6247
|
-
/** [Internal] Comparator for the date when the project was last paused. */
|
6248
|
-
pausedAt?: Maybe<NullableDateComparator>;
|
6249
6252
|
/** Filters that the project's milestones must satisfy. */
|
6250
6253
|
projectMilestones?: Maybe<ProjectMilestoneCollectionFilter>;
|
6251
6254
|
/** Filters that the projects roadmaps must satisfy. */
|
@@ -7091,8 +7094,6 @@ export declare type Project = Node & {
|
|
7091
7094
|
members: UserConnection;
|
7092
7095
|
/** The project's name. */
|
7093
7096
|
name: Scalars["String"];
|
7094
|
-
/** [INTERNAL] The latest time at which the project was paused. */
|
7095
|
-
pausedAt?: Maybe<Scalars["DateTime"]>;
|
7096
7097
|
/** The overall progress of the project. This is the (completed estimate points + 0.25 * in progress estimate points) / total estimate points. */
|
7097
7098
|
progress: Scalars["Float"];
|
7098
7099
|
/** Milestones associated with the project. */
|
@@ -7259,8 +7260,6 @@ export declare type ProjectCollectionFilter = {
|
|
7259
7260
|
nextProjectMilestone?: Maybe<ProjectMilestoneFilter>;
|
7260
7261
|
/** Compound filters, one of which need to be matched by the project. */
|
7261
7262
|
or?: Maybe<Array<ProjectCollectionFilter>>;
|
7262
|
-
/** [Internal] Comparator for the date when the project was last paused. */
|
7263
|
-
pausedAt?: Maybe<NullableDateComparator>;
|
7264
7263
|
/** Filters that the project's milestones must satisfy. */
|
7265
7264
|
projectMilestones?: Maybe<ProjectMilestoneCollectionFilter>;
|
7266
7265
|
/** Filters that the projects roadmaps must satisfy. */
|
@@ -7364,8 +7363,6 @@ export declare type ProjectFilter = {
|
|
7364
7363
|
nextProjectMilestone?: Maybe<ProjectMilestoneFilter>;
|
7365
7364
|
/** Compound filters, one of which need to be matched by the project. */
|
7366
7365
|
or?: Maybe<Array<ProjectFilter>>;
|
7367
|
-
/** [Internal] Comparator for the date when the project was last paused. */
|
7368
|
-
pausedAt?: Maybe<NullableDateComparator>;
|
7369
7366
|
/** Filters that the project's milestones must satisfy. */
|
7370
7367
|
projectMilestones?: Maybe<ProjectMilestoneCollectionFilter>;
|
7371
7368
|
/** Filters that the projects roadmaps must satisfy. */
|
@@ -7743,8 +7740,6 @@ export declare type ProjectSearchResult = Node & {
|
|
7743
7740
|
metadata: Scalars["JSONObject"];
|
7744
7741
|
/** The project's name. */
|
7745
7742
|
name: Scalars["String"];
|
7746
|
-
/** [INTERNAL] The latest time at which the project was paused. */
|
7747
|
-
pausedAt?: Maybe<Scalars["DateTime"]>;
|
7748
7743
|
/** The overall progress of the project. This is the (completed estimate points + 0.25 * in progress estimate points) / total estimate points. */
|
7749
7744
|
progress: Scalars["Float"];
|
7750
7745
|
/** Milestones associated with the project. */
|
@@ -8061,8 +8056,6 @@ export declare type ProjectUpdateInput = {
|
|
8061
8056
|
memberIds?: Maybe<Array<Scalars["String"]>>;
|
8062
8057
|
/** The name of the project. */
|
8063
8058
|
name?: Maybe<Scalars["String"]>;
|
8064
|
-
/** [INTERNAL] The date when the project was paused. */
|
8065
|
-
pausedAt?: Maybe<Scalars["DateTime"]>;
|
8066
8059
|
/** The time until which project update reminders are paused. */
|
8067
8060
|
projectUpdateRemindersPausedUntilAt?: Maybe<Scalars["DateTime"]>;
|
8068
8061
|
/** Whether to send new issue comment notifications to Slack. */
|
@@ -9326,6 +9319,20 @@ export declare type SentrySettingsInput = {
|
|
9326
9319
|
/** The slug of the Sentry organization being connected. */
|
9327
9320
|
organizationSlug: Scalars["String"];
|
9328
9321
|
};
|
9322
|
+
/** Shared Slack integration settings. */
|
9323
|
+
export declare type SharedSlackSettings = {
|
9324
|
+
__typename?: "SharedSlackSettings";
|
9325
|
+
/** Slack workspace id */
|
9326
|
+
teamId?: Maybe<Scalars["String"]>;
|
9327
|
+
/** Slack workspace name */
|
9328
|
+
teamName?: Maybe<Scalars["String"]>;
|
9329
|
+
};
|
9330
|
+
export declare type SharedSlackSettingsInput = {
|
9331
|
+
/** Slack workspace id */
|
9332
|
+
teamId?: Maybe<Scalars["String"]>;
|
9333
|
+
/** Slack workspace name */
|
9334
|
+
teamName?: Maybe<Scalars["String"]>;
|
9335
|
+
};
|
9329
9336
|
export declare enum SlaStatus {
|
9330
9337
|
Breached = "Breached",
|
9331
9338
|
Completed = "Completed",
|
@@ -9362,12 +9369,20 @@ export declare type SlackAsksSettings = {
|
|
9362
9369
|
canAdministrate: UserRoleType;
|
9363
9370
|
/** The mapping of Slack channel ID => Slack channel name for connected channels. */
|
9364
9371
|
slackChannelMapping?: Maybe<Array<SlackChannelNameMapping>>;
|
9372
|
+
/** Slack workspace id */
|
9373
|
+
teamId?: Maybe<Scalars["String"]>;
|
9374
|
+
/** Slack workspace name */
|
9375
|
+
teamName?: Maybe<Scalars["String"]>;
|
9365
9376
|
};
|
9366
9377
|
export declare type SlackAsksSettingsInput = {
|
9367
9378
|
/** The user role type that is allowed to manage Asks settings. */
|
9368
9379
|
canAdministrate: UserRoleType;
|
9369
9380
|
/** The mapping of Slack channel ID => Slack channel name for connected channels. */
|
9370
9381
|
slackChannelMapping?: Maybe<Array<SlackChannelNameMappingInput>>;
|
9382
|
+
/** Slack workspace id */
|
9383
|
+
teamId?: Maybe<Scalars["String"]>;
|
9384
|
+
/** Slack workspace name */
|
9385
|
+
teamName?: Maybe<Scalars["String"]>;
|
9371
9386
|
};
|
9372
9387
|
/** Tuple for mapping Slack channel IDs to names. */
|
9373
9388
|
export declare type SlackAsksTeamSettings = {
|
@@ -9469,10 +9484,18 @@ export declare type SlackSettings = {
|
|
9469
9484
|
__typename?: "SlackSettings";
|
9470
9485
|
/** Whether Linear should automatically respond with issue unfurls when an issue identifier is mentioned in a Slack message. */
|
9471
9486
|
linkOnIssueIdMention: Scalars["Boolean"];
|
9487
|
+
/** Slack workspace id */
|
9488
|
+
teamId?: Maybe<Scalars["String"]>;
|
9489
|
+
/** Slack workspace name */
|
9490
|
+
teamName?: Maybe<Scalars["String"]>;
|
9472
9491
|
};
|
9473
9492
|
export declare type SlackSettingsInput = {
|
9474
9493
|
/** Whether Linear should automatically respond with issue unfurls when an issue identifier is mentioned in a Slack message. */
|
9475
9494
|
linkOnIssueIdMention: Scalars["Boolean"];
|
9495
|
+
/** Slack workspace id */
|
9496
|
+
teamId?: Maybe<Scalars["String"]>;
|
9497
|
+
/** Slack workspace name */
|
9498
|
+
teamName?: Maybe<Scalars["String"]>;
|
9476
9499
|
};
|
9477
9500
|
/** Comparator for issue source type. */
|
9478
9501
|
export declare type SourceMetadataComparator = {
|
@@ -9637,7 +9660,10 @@ export declare type Team = Node & {
|
|
9637
9660
|
defaultTemplateForNonMembersId?: Maybe<Scalars["String"]>;
|
9638
9661
|
/** The team's description. */
|
9639
9662
|
description?: Maybe<Scalars["String"]>;
|
9640
|
-
/**
|
9663
|
+
/**
|
9664
|
+
* The workflow state into which issues are moved when a PR has been opened as draft.
|
9665
|
+
* @deprecated Use team.gitAutomationStates instead.
|
9666
|
+
*/
|
9641
9667
|
draftWorkflowState?: Maybe<WorkflowState>;
|
9642
9668
|
/** The Git automation states for the team. */
|
9643
9669
|
gitAutomationStates: GitAutomationStateConnection;
|
@@ -9680,9 +9706,15 @@ export declare type Team = Node & {
|
|
9680
9706
|
members: UserConnection;
|
9681
9707
|
/** Memberships associated with the team. For easier access of the same data, use `members` query. */
|
9682
9708
|
memberships: TeamMembershipConnection;
|
9683
|
-
/**
|
9709
|
+
/**
|
9710
|
+
* The workflow state into which issues are moved when a PR has been merged.
|
9711
|
+
* @deprecated Use team.gitAutomationStates instead.
|
9712
|
+
*/
|
9684
9713
|
mergeWorkflowState?: Maybe<WorkflowState>;
|
9685
|
-
/**
|
9714
|
+
/**
|
9715
|
+
* The workflow state into which issues are moved when a PR is ready to be merged.
|
9716
|
+
* @deprecated Use team.gitAutomationStates instead.
|
9717
|
+
*/
|
9686
9718
|
mergeableWorkflowState?: Maybe<WorkflowState>;
|
9687
9719
|
/** The team's name. */
|
9688
9720
|
name: Scalars["String"];
|
@@ -9694,7 +9726,10 @@ export declare type Team = Node & {
|
|
9694
9726
|
projects: ProjectConnection;
|
9695
9727
|
/** Whether an issue needs to have a priority set before leaving triage. */
|
9696
9728
|
requirePriorityToLeaveTriage: Scalars["Boolean"];
|
9697
|
-
/**
|
9729
|
+
/**
|
9730
|
+
* The workflow state into which issues are moved when a review has been requested for the PR.
|
9731
|
+
* @deprecated Use team.gitAutomationStates instead.
|
9732
|
+
*/
|
9698
9733
|
reviewWorkflowState?: Maybe<WorkflowState>;
|
9699
9734
|
/** Where to move issues when changing state. */
|
9700
9735
|
setIssueSortOrderOnStateChange: Scalars["String"];
|
@@ -9704,7 +9739,10 @@ export declare type Team = Node & {
|
|
9704
9739
|
slackIssueStatuses: Scalars["Boolean"];
|
9705
9740
|
/** Whether to send new issue notifications to Slack. */
|
9706
9741
|
slackNewIssue: Scalars["Boolean"];
|
9707
|
-
/**
|
9742
|
+
/**
|
9743
|
+
* The workflow state into which issues are moved when a PR has been opened.
|
9744
|
+
* @deprecated Use team.gitAutomationStates instead.
|
9745
|
+
*/
|
9708
9746
|
startWorkflowState?: Maybe<WorkflowState>;
|
9709
9747
|
/** The states that define the workflow associated with the team. */
|
9710
9748
|
states: WorkflowStateConnection;
|
@@ -10322,7 +10360,7 @@ export declare type TimeScheduleEntry = {
|
|
10322
10360
|
endsAt: Scalars["DateTime"];
|
10323
10361
|
/** The start date of the schedule in ISO 8601 date-time format. */
|
10324
10362
|
startsAt: Scalars["DateTime"];
|
10325
|
-
/** The email
|
10363
|
+
/** The email, name or reference to the user on schedule. This is used in case the external user could not be mapped to a Linear user id. */
|
10326
10364
|
userEmail?: Maybe<Scalars["String"]>;
|
10327
10365
|
/** The Linear user id of the user on schedule. If the user cannot be mapped to a Linear user then `userEmail` can be used as a reference. */
|
10328
10366
|
userId?: Maybe<Scalars["String"]>;
|
@@ -10332,7 +10370,7 @@ export declare type TimeScheduleEntryInput = {
|
|
10332
10370
|
endsAt: Scalars["DateTime"];
|
10333
10371
|
/** The start date of the schedule in ISO 8601 date-time format. */
|
10334
10372
|
startsAt: Scalars["DateTime"];
|
10335
|
-
/** The email
|
10373
|
+
/** The email, name or reference to the user on schedule. This is used in case the external user could not be mapped to a Linear user id. */
|
10336
10374
|
userEmail?: Maybe<Scalars["String"]>;
|
10337
10375
|
/** The Linear user id of the user on schedule. If the user cannot be mapped to a Linear user then `userEmail` can be used as a reference. */
|
10338
10376
|
userId?: Maybe<Scalars["String"]>;
|
@@ -12274,6 +12312,9 @@ export declare type IssueFragment = {
|
|
12274
12312
|
botActor?: Maybe<{
|
12275
12313
|
__typename?: "ActorBot";
|
12276
12314
|
} & ActorBotFragment>;
|
12315
|
+
sourceComment?: Maybe<{
|
12316
|
+
__typename?: "Comment";
|
12317
|
+
} & Pick<Comment, "id">>;
|
12277
12318
|
cycle?: Maybe<{
|
12278
12319
|
__typename?: "Cycle";
|
12279
12320
|
} & Pick<Cycle, "id">>;
|
@@ -12733,10 +12774,13 @@ export declare type SentrySettingsFragment = {
|
|
12733
12774
|
} & Pick<SentrySettings, "organizationSlug">;
|
12734
12775
|
export declare type SlackSettingsFragment = {
|
12735
12776
|
__typename: "SlackSettings";
|
12736
|
-
} & Pick<SlackSettings, "linkOnIssueIdMention">;
|
12777
|
+
} & Pick<SlackSettings, "teamId" | "teamName" | "linkOnIssueIdMention">;
|
12778
|
+
export declare type SharedSlackSettingsFragment = {
|
12779
|
+
__typename: "SharedSlackSettings";
|
12780
|
+
} & Pick<SharedSlackSettings, "teamId" | "teamName">;
|
12737
12781
|
export declare type SlackAsksSettingsFragment = {
|
12738
12782
|
__typename: "SlackAsksSettings";
|
12739
|
-
} & {
|
12783
|
+
} & Pick<SlackAsksSettings, "teamId" | "teamName"> & {
|
12740
12784
|
slackChannelMapping?: Maybe<Array<{
|
12741
12785
|
__typename?: "SlackChannelNameMapping";
|
12742
12786
|
} & SlackChannelNameMappingFragment>>;
|
@@ -13406,6 +13450,9 @@ export declare type IssueSearchResultFragment = {
|
|
13406
13450
|
botActor?: Maybe<{
|
13407
13451
|
__typename?: "ActorBot";
|
13408
13452
|
} & ActorBotFragment>;
|
13453
|
+
sourceComment?: Maybe<{
|
13454
|
+
__typename?: "Comment";
|
13455
|
+
} & Pick<Comment, "id">>;
|
13409
13456
|
cycle?: Maybe<{
|
13410
13457
|
__typename?: "Cycle";
|
13411
13458
|
} & Pick<Cycle, "id">>;
|
@@ -17104,16 +17151,6 @@ export declare type AttachmentLinkZendeskMutation = {
|
|
17104
17151
|
__typename?: "AttachmentPayload";
|
17105
17152
|
} & AttachmentPayloadFragment;
|
17106
17153
|
};
|
17107
|
-
export declare type AttachmentUnsyncSlackMutationVariables = Exact<{
|
17108
|
-
id: Scalars["String"];
|
17109
|
-
}>;
|
17110
|
-
export declare type AttachmentUnsyncSlackMutation = {
|
17111
|
-
__typename?: "Mutation";
|
17112
|
-
} & {
|
17113
|
-
attachmentUnsyncSlack: {
|
17114
|
-
__typename?: "AttachmentPayload";
|
17115
|
-
} & AttachmentPayloadFragment;
|
17116
|
-
};
|
17117
17154
|
export declare type UpdateAttachmentMutationVariables = Exact<{
|
17118
17155
|
id: Scalars["String"];
|
17119
17156
|
input: AttachmentUpdateInput;
|
@@ -19166,6 +19203,7 @@ export declare const GithubOrgFragmentDoc: DocumentNode<GithubOrgFragment, unkno
|
|
19166
19203
|
export declare const GithubOAuthTokenPayloadFragmentDoc: DocumentNode<GithubOAuthTokenPayloadFragment, unknown>;
|
19167
19204
|
export declare const UserAuthorizedApplicationFragmentDoc: DocumentNode<UserAuthorizedApplicationFragment, unknown>;
|
19168
19205
|
export declare const ApplicationFragmentDoc: DocumentNode<ApplicationFragment, unknown>;
|
19206
|
+
export declare const SharedSlackSettingsFragmentDoc: DocumentNode<SharedSlackSettingsFragment, unknown>;
|
19169
19207
|
export declare const FrontSettingsFragmentDoc: DocumentNode<FrontSettingsFragment, unknown>;
|
19170
19208
|
export declare const TeamRepoMappingFragmentDoc: DocumentNode<TeamRepoMappingFragment, unknown>;
|
19171
19209
|
export declare const GitHubRepoFragmentDoc: DocumentNode<GitHubRepoFragment, unknown>;
|
@@ -20672,9 +20710,6 @@ export declare const AttachmentLinkZendeskDocument: DocumentNode<AttachmentLinkZ
|
|
20672
20710
|
ticketId: Scalars["String"];
|
20673
20711
|
title?: Maybe<string> | undefined;
|
20674
20712
|
}>>;
|
20675
|
-
export declare const AttachmentUnsyncSlackDocument: DocumentNode<AttachmentUnsyncSlackMutation, Exact<{
|
20676
|
-
id: Scalars["String"];
|
20677
|
-
}>>;
|
20678
20713
|
export declare const UpdateAttachmentDocument: DocumentNode<UpdateAttachmentMutation, Exact<{
|
20679
20714
|
id: Scalars["String"];
|
20680
20715
|
input: AttachmentUpdateInput;
|