@linear/sdk 7.0.1 → 8.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/CHANGELOG.md +192 -0
- package/dist/_generated_documents.d.ts +375 -36
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +189 -23
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +1074 -229
- 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 +1069 -230
- 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 +1075 -230
- 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 +2 -2
package/dist/_generated_sdk.d.ts
CHANGED
@@ -57,6 +57,26 @@ export declare class Connection<Node> extends LinearConnection<Node> {
|
|
57
57
|
/** Fetch the previous page of results and prepend to nodes */
|
58
58
|
fetchPrevious(): Promise<this>;
|
59
59
|
}
|
60
|
+
/**
|
61
|
+
* A bot actor is an actor that is not a user, but an application or integration.
|
62
|
+
*
|
63
|
+
* @param request - function to call the graphql client
|
64
|
+
* @param data - L.ActorBotFragment response data
|
65
|
+
*/
|
66
|
+
export declare class ActorBot extends Request {
|
67
|
+
constructor(request: LinearRequest, data: L.ActorBotFragment);
|
68
|
+
/** A url pointing to the avatar representing this bot. */
|
69
|
+
avatarUrl?: string;
|
70
|
+
id: string;
|
71
|
+
/** The display name of the bot. */
|
72
|
+
name?: string;
|
73
|
+
/** The sub type of the bot. */
|
74
|
+
subType?: string;
|
75
|
+
/** The type of bot. */
|
76
|
+
type: string;
|
77
|
+
/** The display name of the external user on behalf of which the bot acted. */
|
78
|
+
userDisplayName?: string;
|
79
|
+
}
|
60
80
|
/**
|
61
81
|
* An API key. Grants access to the user's resources.
|
62
82
|
*
|
@@ -162,6 +182,24 @@ export declare class ArchiveResponse extends Request {
|
|
162
182
|
/** The total number of entities in the archive. */
|
163
183
|
totalCount: number;
|
164
184
|
}
|
185
|
+
/**
|
186
|
+
* AsksChannelConnectPayload model
|
187
|
+
*
|
188
|
+
* @param request - function to call the graphql client
|
189
|
+
* @param data - L.AsksChannelConnectPayloadFragment response data
|
190
|
+
*/
|
191
|
+
export declare class AsksChannelConnectPayload extends Request {
|
192
|
+
private _integration?;
|
193
|
+
constructor(request: LinearRequest, data: L.AsksChannelConnectPayloadFragment);
|
194
|
+
/** The identifier of the last sync operation. */
|
195
|
+
lastSyncId: number;
|
196
|
+
/** Whether the operation was successful. */
|
197
|
+
success: boolean;
|
198
|
+
/** The new Asks Slack channel mapping for the connected channel. */
|
199
|
+
mapping: SlackChannelNameMapping;
|
200
|
+
/** The integration that was created or updated. */
|
201
|
+
get integration(): LinearFetch<Integration> | undefined;
|
202
|
+
}
|
165
203
|
/**
|
166
204
|
* Issue attachment (e.g. support ticket, pull request).
|
167
205
|
*
|
@@ -380,6 +418,8 @@ export declare class Comment extends Request {
|
|
380
418
|
updatedAt: Date;
|
381
419
|
/** Comment's URL. */
|
382
420
|
url: string;
|
421
|
+
/** The bot that created the comment */
|
422
|
+
botActor?: ActorBot;
|
383
423
|
/** The issue that the comment is associated with. */
|
384
424
|
get issue(): LinearFetch<Issue> | undefined;
|
385
425
|
/** The parent comment under which the current comment is nested. */
|
@@ -509,6 +549,7 @@ export declare class CreateOrJoinOrganizationResponse extends Request {
|
|
509
549
|
*/
|
510
550
|
export declare class CustomView extends Request {
|
511
551
|
private _creator;
|
552
|
+
private _owner;
|
512
553
|
private _team?;
|
513
554
|
constructor(request: LinearRequest, data: L.CustomViewFragment);
|
514
555
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
@@ -541,6 +582,8 @@ export declare class CustomView extends Request {
|
|
541
582
|
get creator(): LinearFetch<User> | undefined;
|
542
583
|
/** The organization of the custom view. */
|
543
584
|
get organization(): LinearFetch<Organization>;
|
585
|
+
/** The user who owns the custom view. */
|
586
|
+
get owner(): LinearFetch<User> | undefined;
|
544
587
|
/** The team associated with the custom view. */
|
545
588
|
get team(): LinearFetch<Team> | undefined;
|
546
589
|
/** Creates a new custom view. */
|
@@ -575,6 +618,8 @@ export declare class CustomViewNotificationSubscription extends Request {
|
|
575
618
|
private _team?;
|
576
619
|
private _user?;
|
577
620
|
constructor(request: LinearRequest, data: L.CustomViewNotificationSubscriptionFragment);
|
621
|
+
/** Whether the subscription is active or not */
|
622
|
+
active: boolean;
|
578
623
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
579
624
|
archivedAt?: Date;
|
580
625
|
/** The time at which the entity was created. */
|
@@ -736,6 +781,8 @@ export declare class CycleNotificationSubscription extends Request {
|
|
736
781
|
private _team?;
|
737
782
|
private _user?;
|
738
783
|
constructor(request: LinearRequest, data: L.CycleNotificationSubscriptionFragment);
|
784
|
+
/** Whether the subscription is active or not */
|
785
|
+
active: boolean;
|
739
786
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
740
787
|
archivedAt?: Date;
|
741
788
|
/** The time at which the entity was created. */
|
@@ -862,6 +909,7 @@ export declare class DocumentConnection extends Connection<Document> {
|
|
862
909
|
*/
|
863
910
|
export declare class DocumentContent extends Request {
|
864
911
|
private _issue?;
|
912
|
+
private _project?;
|
865
913
|
constructor(request: LinearRequest, data: L.DocumentContentFragment);
|
866
914
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
867
915
|
archivedAt?: Date;
|
@@ -869,6 +917,8 @@ export declare class DocumentContent extends Request {
|
|
869
917
|
content?: string;
|
870
918
|
/** The document content as JSON. */
|
871
919
|
contentData?: Record<string, unknown>;
|
920
|
+
/** The document content state as a base64 encoded string. */
|
921
|
+
contentState?: Record<string, unknown>;
|
872
922
|
/** The time at which the entity was created. */
|
873
923
|
createdAt: Date;
|
874
924
|
/** The unique identifier of the entity. */
|
@@ -881,6 +931,8 @@ export declare class DocumentContent extends Request {
|
|
881
931
|
updatedAt: Date;
|
882
932
|
/** The issue that the document is associated with. */
|
883
933
|
get issue(): LinearFetch<Issue> | undefined;
|
934
|
+
/** The project that the document is associated with. */
|
935
|
+
get project(): LinearFetch<Project> | undefined;
|
884
936
|
}
|
885
937
|
/**
|
886
938
|
* DocumentPayload model
|
@@ -1265,17 +1317,15 @@ export declare class FirstResponderSchedule extends Request {
|
|
1265
1317
|
createdAt: Date;
|
1266
1318
|
/** The unique identifier of the entity. */
|
1267
1319
|
id: string;
|
1268
|
-
/** The
|
1269
|
-
|
1270
|
-
/** The current schedule and available schedules. */
|
1271
|
-
scheduleData: Record<string, unknown>;
|
1320
|
+
/** The schedule information. */
|
1321
|
+
scheduleData?: Record<string, unknown>;
|
1272
1322
|
/**
|
1273
1323
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
1274
1324
|
* 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
|
1275
1325
|
* been updated after creation.
|
1276
1326
|
*/
|
1277
1327
|
updatedAt: Date;
|
1278
|
-
/** The integration used for scheduling. */
|
1328
|
+
/** The integration used for time scheduling. */
|
1279
1329
|
get integration(): LinearFetch<Integration> | undefined;
|
1280
1330
|
/** The team to which the schedule belongs to. */
|
1281
1331
|
get team(): LinearFetch<Team> | undefined;
|
@@ -1352,6 +1402,8 @@ export declare class GitHubSettings extends Request {
|
|
1352
1402
|
orgAvatarUrl: string;
|
1353
1403
|
/** The GitHub organization's name */
|
1354
1404
|
orgLogin: string;
|
1405
|
+
/** The names of the repositories connected for the GitHub integration */
|
1406
|
+
repositories?: string[];
|
1355
1407
|
}
|
1356
1408
|
/**
|
1357
1409
|
* GitHub OAuth token, plus information about the organizations the user is a member of.
|
@@ -1512,6 +1564,7 @@ export declare class IntegrationSettings extends Request {
|
|
1512
1564
|
notion?: NotionSettings;
|
1513
1565
|
pagerDuty?: PagerDutySettings;
|
1514
1566
|
sentry?: SentrySettings;
|
1567
|
+
slackAsks?: SlackAsksSettings;
|
1515
1568
|
slackOrgProjectUpdatesPost?: SlackPostSettings;
|
1516
1569
|
slackPost?: SlackPostSettings;
|
1517
1570
|
slackProjectPost?: SlackPostSettings;
|
@@ -1531,6 +1584,8 @@ export declare class IntegrationTemplate extends Request {
|
|
1531
1584
|
archivedAt?: Date;
|
1532
1585
|
/** The time at which the entity was created. */
|
1533
1586
|
createdAt: Date;
|
1587
|
+
/** ID of the foreign entity in the external integration this template is for, e.g., Slack channel ID. */
|
1588
|
+
foreignEntityId?: string;
|
1534
1589
|
/** The unique identifier of the entity. */
|
1535
1590
|
id: string;
|
1536
1591
|
/**
|
@@ -1945,6 +2000,8 @@ export declare class IssueHistory extends Request {
|
|
1945
2000
|
updatedDescription?: boolean;
|
1946
2001
|
/** Changed issue relationships. */
|
1947
2002
|
relationChanges?: IssueRelationHistoryPayload[];
|
2003
|
+
/** The bot that performed the action */
|
2004
|
+
botActor?: ActorBot;
|
1948
2005
|
/** The import record. */
|
1949
2006
|
issueImport?: IssueImport;
|
1950
2007
|
/** The user who made these changes. If null, possibly means that the change made by an integration. */
|
@@ -2189,6 +2246,8 @@ export declare class IssueNotification extends Request {
|
|
2189
2246
|
* been updated after creation.
|
2190
2247
|
*/
|
2191
2248
|
updatedAt: Date;
|
2249
|
+
/** The bot that caused the notification. */
|
2250
|
+
botActor?: ActorBot;
|
2192
2251
|
/** The user that caused the notification. */
|
2193
2252
|
get actor(): LinearFetch<User> | undefined;
|
2194
2253
|
/** The comment related to the notification. */
|
@@ -2485,6 +2544,8 @@ export declare class LabelNotificationSubscription extends Request {
|
|
2485
2544
|
private _team?;
|
2486
2545
|
private _user?;
|
2487
2546
|
constructor(request: LinearRequest, data: L.LabelNotificationSubscriptionFragment);
|
2547
|
+
/** Whether the subscription is active or not */
|
2548
|
+
active: boolean;
|
2488
2549
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
2489
2550
|
archivedAt?: Date;
|
2490
2551
|
/** The time at which the entity was created. */
|
@@ -2571,6 +2632,8 @@ export declare class Notification extends Request {
|
|
2571
2632
|
* been updated after creation.
|
2572
2633
|
*/
|
2573
2634
|
updatedAt: Date;
|
2635
|
+
/** The bot that caused the notification. */
|
2636
|
+
botActor?: ActorBot;
|
2574
2637
|
/** The user that caused the notification. */
|
2575
2638
|
get actor(): LinearFetch<User> | undefined;
|
2576
2639
|
/** The user that received the notification. */
|
@@ -2648,6 +2711,8 @@ export declare class NotificationSubscription extends Request {
|
|
2648
2711
|
private _team?;
|
2649
2712
|
private _user?;
|
2650
2713
|
constructor(request: LinearRequest, data: L.NotificationSubscriptionFragment);
|
2714
|
+
/** Whether the subscription is active or not */
|
2715
|
+
active: boolean;
|
2651
2716
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
2652
2717
|
archivedAt?: Date;
|
2653
2718
|
/** The time at which the entity was created. */
|
@@ -2835,6 +2900,8 @@ export declare class OauthClientApprovalNotification extends Request {
|
|
2835
2900
|
* been updated after creation.
|
2836
2901
|
*/
|
2837
2902
|
updatedAt: Date;
|
2903
|
+
/** The bot that caused the notification. */
|
2904
|
+
botActor?: ActorBot;
|
2838
2905
|
/** The OAuth client approval request related to the notification. */
|
2839
2906
|
oauthClientApproval: OauthClientApproval;
|
2840
2907
|
/** The user that caused the notification. */
|
@@ -3016,6 +3083,8 @@ export declare class OrganizationInvite extends Request {
|
|
3016
3083
|
external: boolean;
|
3017
3084
|
/** The unique identifier of the entity. */
|
3018
3085
|
id: string;
|
3086
|
+
/** Extra metadata associated with the organization invite. */
|
3087
|
+
metadata: Record<string, unknown>;
|
3019
3088
|
/**
|
3020
3089
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
3021
3090
|
* 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
|
@@ -3219,6 +3288,8 @@ export declare class Project extends Request {
|
|
3219
3288
|
completedIssueCountHistory: number[];
|
3220
3289
|
/** The number of completed estimation points after each week. */
|
3221
3290
|
completedScopeHistory: number[];
|
3291
|
+
/** The project's content in markdown format. */
|
3292
|
+
content?: string;
|
3222
3293
|
/** The time at which the entity was created. */
|
3223
3294
|
createdAt: Date;
|
3224
3295
|
/** The project's description. */
|
@@ -3259,6 +3330,8 @@ export declare class Project extends Request {
|
|
3259
3330
|
state: string;
|
3260
3331
|
/** The estimated completion date of the project. */
|
3261
3332
|
targetDate?: L.Scalars["TimelessDate"];
|
3333
|
+
/** A flag that indicates whether the project is in the trash bin. */
|
3334
|
+
trashed?: boolean;
|
3262
3335
|
/**
|
3263
3336
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
3264
3337
|
* 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
|
@@ -3290,11 +3363,11 @@ export declare class Project extends Request {
|
|
3290
3363
|
/** Teams associated with this project. */
|
3291
3364
|
teams(variables?: Omit<L.Project_TeamsQueryVariables, "id">): LinearFetch<TeamConnection>;
|
3292
3365
|
/** Archives a project. */
|
3293
|
-
archive(): LinearFetch<ProjectArchivePayload>;
|
3366
|
+
archive(variables?: Omit<L.ArchiveProjectMutationVariables, "id">): LinearFetch<ProjectArchivePayload>;
|
3294
3367
|
/** Creates a new project. */
|
3295
3368
|
create(input: L.ProjectCreateInput): LinearFetch<ProjectPayload>;
|
3296
|
-
/** Deletes a project.
|
3297
|
-
delete(): LinearFetch<
|
3369
|
+
/** Deletes (trashes) a project. */
|
3370
|
+
delete(): LinearFetch<ProjectArchivePayload>;
|
3298
3371
|
/** Unarchives a project. */
|
3299
3372
|
unarchive(): LinearFetch<ProjectArchivePayload>;
|
3300
3373
|
/** Updates a project. */
|
@@ -3501,6 +3574,8 @@ export declare class ProjectNotification extends Request {
|
|
3501
3574
|
* been updated after creation.
|
3502
3575
|
*/
|
3503
3576
|
updatedAt: Date;
|
3577
|
+
/** The bot that caused the notification. */
|
3578
|
+
botActor?: ActorBot;
|
3504
3579
|
/** The user that caused the notification. */
|
3505
3580
|
get actor(): LinearFetch<User> | undefined;
|
3506
3581
|
/** The project related to the notification. */
|
@@ -3525,6 +3600,8 @@ export declare class ProjectNotificationSubscription extends Request {
|
|
3525
3600
|
private _team?;
|
3526
3601
|
private _user?;
|
3527
3602
|
constructor(request: LinearRequest, data: L.ProjectNotificationSubscriptionFragment);
|
3603
|
+
/** Whether the subscription is active or not */
|
3604
|
+
active: boolean;
|
3528
3605
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
3529
3606
|
archivedAt?: Date;
|
3530
3607
|
/** The time at which the entity was created. */
|
@@ -3611,6 +3688,8 @@ export declare class ProjectSearchResult extends Request {
|
|
3611
3688
|
completedIssueCountHistory: number[];
|
3612
3689
|
/** The number of completed estimation points after each week. */
|
3613
3690
|
completedScopeHistory: number[];
|
3691
|
+
/** The project's content in markdown format. */
|
3692
|
+
content?: string;
|
3614
3693
|
/** The time at which the entity was created. */
|
3615
3694
|
createdAt: Date;
|
3616
3695
|
/** The project's description. */
|
@@ -3653,6 +3732,8 @@ export declare class ProjectSearchResult extends Request {
|
|
3653
3732
|
state: string;
|
3654
3733
|
/** The estimated completion date of the project. */
|
3655
3734
|
targetDate?: L.Scalars["TimelessDate"];
|
3735
|
+
/** A flag that indicates whether the project is in the trash bin. */
|
3736
|
+
trashed?: boolean;
|
3656
3737
|
/**
|
3657
3738
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
3658
3739
|
* 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
|
@@ -3696,6 +3777,8 @@ export declare class ProjectUpdate extends Request {
|
|
3696
3777
|
body: string;
|
3697
3778
|
/** The time at which the entity was created. */
|
3698
3779
|
createdAt: Date;
|
3780
|
+
/** The diff between the current update and the previous one. */
|
3781
|
+
diff?: Record<string, unknown>;
|
3699
3782
|
/** The time the project update was edited. */
|
3700
3783
|
editedAt?: Date;
|
3701
3784
|
/** The unique identifier of the entity. */
|
@@ -4170,6 +4253,32 @@ export declare class SentrySettings extends Request {
|
|
4170
4253
|
/** The slug of the Sentry organization being connected. */
|
4171
4254
|
organizationSlug: string;
|
4172
4255
|
}
|
4256
|
+
/**
|
4257
|
+
* Slack Asks specific settings.
|
4258
|
+
*
|
4259
|
+
* @param request - function to call the graphql client
|
4260
|
+
* @param data - L.SlackAsksSettingsFragment response data
|
4261
|
+
*/
|
4262
|
+
export declare class SlackAsksSettings extends Request {
|
4263
|
+
constructor(request: LinearRequest, data: L.SlackAsksSettingsFragment);
|
4264
|
+
/** The mapping of Slack channel ID => Slack channel name for connected channels. */
|
4265
|
+
slackChannelMapping?: SlackChannelNameMapping[];
|
4266
|
+
}
|
4267
|
+
/**
|
4268
|
+
* Tuple for mapping Slack channel IDs to names
|
4269
|
+
*
|
4270
|
+
* @param request - function to call the graphql client
|
4271
|
+
* @param data - L.SlackChannelNameMappingFragment response data
|
4272
|
+
*/
|
4273
|
+
export declare class SlackChannelNameMapping extends Request {
|
4274
|
+
constructor(request: LinearRequest, data: L.SlackChannelNameMappingFragment);
|
4275
|
+
/** The Slack channel ID. */
|
4276
|
+
id: string;
|
4277
|
+
/** Whether or not the Slack channel is private */
|
4278
|
+
isPrivate?: boolean;
|
4279
|
+
/** The Slack channel name. */
|
4280
|
+
name: string;
|
4281
|
+
}
|
4173
4282
|
/**
|
4174
4283
|
* Slack notification specific settings.
|
4175
4284
|
*
|
@@ -4247,6 +4356,7 @@ export declare class Team extends Request {
|
|
4247
4356
|
private _integrationsSettings?;
|
4248
4357
|
private _markedAsDuplicateWorkflowState?;
|
4249
4358
|
private _mergeWorkflowState?;
|
4359
|
+
private _mergeableWorkflowState?;
|
4250
4360
|
private _reviewWorkflowState?;
|
4251
4361
|
private _startWorkflowState?;
|
4252
4362
|
private _triageIssueState?;
|
@@ -4349,6 +4459,8 @@ export declare class Team extends Request {
|
|
4349
4459
|
get markedAsDuplicateWorkflowState(): LinearFetch<WorkflowState> | undefined;
|
4350
4460
|
/** The workflow state into which issues are moved when a PR has been merged. */
|
4351
4461
|
get mergeWorkflowState(): LinearFetch<WorkflowState> | undefined;
|
4462
|
+
/** The workflow state into which issues are moved when a PR is ready to be merged. */
|
4463
|
+
get mergeableWorkflowState(): LinearFetch<WorkflowState> | undefined;
|
4352
4464
|
/** The organization that the team is associated with. */
|
4353
4465
|
get organization(): LinearFetch<Organization>;
|
4354
4466
|
/** The workflow state into which issues are moved when a review has been requested for the PR. */
|
@@ -4470,6 +4582,8 @@ export declare class TeamNotificationSubscription extends Request {
|
|
4470
4582
|
private _team;
|
4471
4583
|
private _user?;
|
4472
4584
|
constructor(request: LinearRequest, data: L.TeamNotificationSubscriptionFragment);
|
4585
|
+
/** Whether the subscription is active or not */
|
4586
|
+
active: boolean;
|
4473
4587
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
4474
4588
|
archivedAt?: Date;
|
4475
4589
|
/** The time at which the entity was created. */
|
@@ -4804,6 +4918,8 @@ export declare class UserNotificationSubscription extends Request {
|
|
4804
4918
|
private _team?;
|
4805
4919
|
private _user;
|
4806
4920
|
constructor(request: LinearRequest, data: L.UserNotificationSubscriptionFragment);
|
4921
|
+
/** Whether the subscription is active or not */
|
4922
|
+
active: boolean;
|
4807
4923
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
4808
4924
|
archivedAt?: Date;
|
4809
4925
|
/** The time at which the entity was created. */
|
@@ -5371,9 +5487,10 @@ export declare class AttachmentLinkDiscordMutation extends Request {
|
|
5371
5487
|
* @param issueId - required issueId to pass to attachmentLinkDiscord
|
5372
5488
|
* @param messageId - required messageId to pass to attachmentLinkDiscord
|
5373
5489
|
* @param url - required url to pass to attachmentLinkDiscord
|
5490
|
+
* @param variables - variables without 'channelId', 'issueId', 'messageId', 'url' to pass into the AttachmentLinkDiscordMutation
|
5374
5491
|
* @returns parsed response from AttachmentLinkDiscordMutation
|
5375
5492
|
*/
|
5376
|
-
fetch(channelId: string, issueId: string, messageId: string, url: string): LinearFetch<AttachmentPayload>;
|
5493
|
+
fetch(channelId: string, issueId: string, messageId: string, url: string, variables?: Omit<L.AttachmentLinkDiscordMutationVariables, "channelId" | "issueId" | "messageId" | "url">): LinearFetch<AttachmentPayload>;
|
5377
5494
|
}
|
5378
5495
|
/**
|
5379
5496
|
* A fetchable AttachmentLinkFront Mutation
|
@@ -5387,9 +5504,10 @@ export declare class AttachmentLinkFrontMutation extends Request {
|
|
5387
5504
|
*
|
5388
5505
|
* @param conversationId - required conversationId to pass to attachmentLinkFront
|
5389
5506
|
* @param issueId - required issueId to pass to attachmentLinkFront
|
5507
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkFrontMutation
|
5390
5508
|
* @returns parsed response from AttachmentLinkFrontMutation
|
5391
5509
|
*/
|
5392
|
-
fetch(conversationId: string, issueId: string): LinearFetch<FrontAttachmentPayload>;
|
5510
|
+
fetch(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkFrontMutationVariables, "conversationId" | "issueId">): LinearFetch<FrontAttachmentPayload>;
|
5393
5511
|
}
|
5394
5512
|
/**
|
5395
5513
|
* A fetchable AttachmentLinkIntercom Mutation
|
@@ -5403,9 +5521,10 @@ export declare class AttachmentLinkIntercomMutation extends Request {
|
|
5403
5521
|
*
|
5404
5522
|
* @param conversationId - required conversationId to pass to attachmentLinkIntercom
|
5405
5523
|
* @param issueId - required issueId to pass to attachmentLinkIntercom
|
5524
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkIntercomMutation
|
5406
5525
|
* @returns parsed response from AttachmentLinkIntercomMutation
|
5407
5526
|
*/
|
5408
|
-
fetch(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
|
5527
|
+
fetch(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkIntercomMutationVariables, "conversationId" | "issueId">): LinearFetch<AttachmentPayload>;
|
5409
5528
|
}
|
5410
5529
|
/**
|
5411
5530
|
* A fetchable AttachmentLinkJiraIssue Mutation
|
@@ -5471,9 +5590,10 @@ export declare class AttachmentLinkZendeskMutation extends Request {
|
|
5471
5590
|
*
|
5472
5591
|
* @param issueId - required issueId to pass to attachmentLinkZendesk
|
5473
5592
|
* @param ticketId - required ticketId to pass to attachmentLinkZendesk
|
5593
|
+
* @param variables - variables without 'issueId', 'ticketId' to pass into the AttachmentLinkZendeskMutation
|
5474
5594
|
* @returns parsed response from AttachmentLinkZendeskMutation
|
5475
5595
|
*/
|
5476
|
-
fetch(issueId: string, ticketId: string): LinearFetch<AttachmentPayload>;
|
5596
|
+
fetch(issueId: string, ticketId: string, variables?: Omit<L.AttachmentLinkZendeskMutationVariables, "issueId" | "ticketId">): LinearFetch<AttachmentPayload>;
|
5477
5597
|
}
|
5478
5598
|
/**
|
5479
5599
|
* A fetchable AttachmentUnsyncSlack Mutation
|
@@ -5923,6 +6043,22 @@ export declare class ImportFileUploadMutation extends Request {
|
|
5923
6043
|
*/
|
5924
6044
|
fetch(contentType: string, filename: string, size: number, variables?: Omit<L.ImportFileUploadMutationVariables, "contentType" | "filename" | "size">): LinearFetch<UploadPayload>;
|
5925
6045
|
}
|
6046
|
+
/**
|
6047
|
+
* A fetchable IntegrationAsksConnectChannel Mutation
|
6048
|
+
*
|
6049
|
+
* @param request - function to call the graphql client
|
6050
|
+
*/
|
6051
|
+
export declare class IntegrationAsksConnectChannelMutation extends Request {
|
6052
|
+
constructor(request: LinearRequest);
|
6053
|
+
/**
|
6054
|
+
* Call the IntegrationAsksConnectChannel mutation and return a AsksChannelConnectPayload
|
6055
|
+
*
|
6056
|
+
* @param code - required code to pass to integrationAsksConnectChannel
|
6057
|
+
* @param redirectUri - required redirectUri to pass to integrationAsksConnectChannel
|
6058
|
+
* @returns parsed response from IntegrationAsksConnectChannelMutation
|
6059
|
+
*/
|
6060
|
+
fetch(code: string, redirectUri: string): LinearFetch<AsksChannelConnectPayload>;
|
6061
|
+
}
|
5926
6062
|
/**
|
5927
6063
|
* A fetchable DeleteIntegration Mutation
|
5928
6064
|
*
|
@@ -7044,9 +7180,10 @@ export declare class ArchiveProjectMutation extends Request {
|
|
7044
7180
|
* Call the ArchiveProject mutation and return a ProjectArchivePayload
|
7045
7181
|
*
|
7046
7182
|
* @param id - required id to pass to archiveProject
|
7183
|
+
* @param variables - variables without 'id' to pass into the ArchiveProjectMutation
|
7047
7184
|
* @returns parsed response from ArchiveProjectMutation
|
7048
7185
|
*/
|
7049
|
-
fetch(id: string): LinearFetch<ProjectArchivePayload>;
|
7186
|
+
fetch(id: string, variables?: Omit<L.ArchiveProjectMutationVariables, "id">): LinearFetch<ProjectArchivePayload>;
|
7050
7187
|
}
|
7051
7188
|
/**
|
7052
7189
|
* A fetchable CreateProject Mutation
|
@@ -7071,12 +7208,12 @@ export declare class CreateProjectMutation extends Request {
|
|
7071
7208
|
export declare class DeleteProjectMutation extends Request {
|
7072
7209
|
constructor(request: LinearRequest);
|
7073
7210
|
/**
|
7074
|
-
* Call the DeleteProject mutation and return a
|
7211
|
+
* Call the DeleteProject mutation and return a ProjectArchivePayload
|
7075
7212
|
*
|
7076
7213
|
* @param id - required id to pass to deleteProject
|
7077
7214
|
* @returns parsed response from DeleteProjectMutation
|
7078
7215
|
*/
|
7079
|
-
fetch(id: string): LinearFetch<
|
7216
|
+
fetch(id: string): LinearFetch<ProjectArchivePayload>;
|
7080
7217
|
}
|
7081
7218
|
/**
|
7082
7219
|
* A fetchable CreateProjectLink Mutation
|
@@ -9513,6 +9650,22 @@ export declare class AttachmentIssue_SubscribersQuery extends Request {
|
|
9513
9650
|
*/
|
9514
9651
|
fetch(variables?: Omit<L.AttachmentIssue_SubscribersQueryVariables, "id">): LinearFetch<UserConnection>;
|
9515
9652
|
}
|
9653
|
+
/**
|
9654
|
+
* A fetchable Comment_BotActor Query
|
9655
|
+
*
|
9656
|
+
* @param request - function to call the graphql client
|
9657
|
+
* @param id - required id to pass to comment
|
9658
|
+
*/
|
9659
|
+
export declare class Comment_BotActorQuery extends Request {
|
9660
|
+
private _id;
|
9661
|
+
constructor(request: LinearRequest, id: string);
|
9662
|
+
/**
|
9663
|
+
* Call the Comment_BotActor query and return a ActorBot
|
9664
|
+
*
|
9665
|
+
* @returns parsed response from Comment_BotActorQuery
|
9666
|
+
*/
|
9667
|
+
fetch(): LinearFetch<ActorBot | undefined>;
|
9668
|
+
}
|
9516
9669
|
/**
|
9517
9670
|
* A fetchable Comment_Children Query
|
9518
9671
|
*
|
@@ -10664,25 +10817,28 @@ export declare class LinearSdk extends Request {
|
|
10664
10817
|
* @param issueId - required issueId to pass to attachmentLinkDiscord
|
10665
10818
|
* @param messageId - required messageId to pass to attachmentLinkDiscord
|
10666
10819
|
* @param url - required url to pass to attachmentLinkDiscord
|
10820
|
+
* @param variables - variables without 'channelId', 'issueId', 'messageId', 'url' to pass into the AttachmentLinkDiscordMutation
|
10667
10821
|
* @returns AttachmentPayload
|
10668
10822
|
*/
|
10669
|
-
attachmentLinkDiscord(channelId: string, issueId: string, messageId: string, url: string): LinearFetch<AttachmentPayload>;
|
10823
|
+
attachmentLinkDiscord(channelId: string, issueId: string, messageId: string, url: string, variables?: Omit<L.AttachmentLinkDiscordMutationVariables, "channelId" | "issueId" | "messageId" | "url">): LinearFetch<AttachmentPayload>;
|
10670
10824
|
/**
|
10671
10825
|
* Link an existing Front conversation to an issue.
|
10672
10826
|
*
|
10673
10827
|
* @param conversationId - required conversationId to pass to attachmentLinkFront
|
10674
10828
|
* @param issueId - required issueId to pass to attachmentLinkFront
|
10829
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkFrontMutation
|
10675
10830
|
* @returns FrontAttachmentPayload
|
10676
10831
|
*/
|
10677
|
-
attachmentLinkFront(conversationId: string, issueId: string): LinearFetch<FrontAttachmentPayload>;
|
10832
|
+
attachmentLinkFront(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkFrontMutationVariables, "conversationId" | "issueId">): LinearFetch<FrontAttachmentPayload>;
|
10678
10833
|
/**
|
10679
10834
|
* Link an existing Intercom conversation to an issue.
|
10680
10835
|
*
|
10681
10836
|
* @param conversationId - required conversationId to pass to attachmentLinkIntercom
|
10682
10837
|
* @param issueId - required issueId to pass to attachmentLinkIntercom
|
10838
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkIntercomMutation
|
10683
10839
|
* @returns AttachmentPayload
|
10684
10840
|
*/
|
10685
|
-
attachmentLinkIntercom(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
|
10841
|
+
attachmentLinkIntercom(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkIntercomMutationVariables, "conversationId" | "issueId">): LinearFetch<AttachmentPayload>;
|
10686
10842
|
/**
|
10687
10843
|
* Link an existing Jira issue to an issue.
|
10688
10844
|
*
|
@@ -10716,9 +10872,10 @@ export declare class LinearSdk extends Request {
|
|
10716
10872
|
*
|
10717
10873
|
* @param issueId - required issueId to pass to attachmentLinkZendesk
|
10718
10874
|
* @param ticketId - required ticketId to pass to attachmentLinkZendesk
|
10875
|
+
* @param variables - variables without 'issueId', 'ticketId' to pass into the AttachmentLinkZendeskMutation
|
10719
10876
|
* @returns AttachmentPayload
|
10720
10877
|
*/
|
10721
|
-
attachmentLinkZendesk(issueId: string, ticketId: string): LinearFetch<AttachmentPayload>;
|
10878
|
+
attachmentLinkZendesk(issueId: string, ticketId: string, variables?: Omit<L.AttachmentLinkZendeskMutationVariables, "issueId" | "ticketId">): LinearFetch<AttachmentPayload>;
|
10722
10879
|
/**
|
10723
10880
|
* Unsyncs an existing synced Slack attachment.
|
10724
10881
|
*
|
@@ -10935,6 +11092,14 @@ export declare class LinearSdk extends Request {
|
|
10935
11092
|
* @returns UploadPayload
|
10936
11093
|
*/
|
10937
11094
|
importFileUpload(contentType: string, filename: string, size: number, variables?: Omit<L.ImportFileUploadMutationVariables, "contentType" | "filename" | "size">): LinearFetch<UploadPayload>;
|
11095
|
+
/**
|
11096
|
+
* Connect a Slack channel to Asks.
|
11097
|
+
*
|
11098
|
+
* @param code - required code to pass to integrationAsksConnectChannel
|
11099
|
+
* @param redirectUri - required redirectUri to pass to integrationAsksConnectChannel
|
11100
|
+
* @returns AsksChannelConnectPayload
|
11101
|
+
*/
|
11102
|
+
integrationAsksConnectChannel(code: string, redirectUri: string): LinearFetch<AsksChannelConnectPayload>;
|
10938
11103
|
/**
|
10939
11104
|
* Deletes an integration.
|
10940
11105
|
*
|
@@ -11481,9 +11646,10 @@ export declare class LinearSdk extends Request {
|
|
11481
11646
|
* Archives a project.
|
11482
11647
|
*
|
11483
11648
|
* @param id - required id to pass to archiveProject
|
11649
|
+
* @param variables - variables without 'id' to pass into the ArchiveProjectMutation
|
11484
11650
|
* @returns ProjectArchivePayload
|
11485
11651
|
*/
|
11486
|
-
archiveProject(id: string): LinearFetch<ProjectArchivePayload>;
|
11652
|
+
archiveProject(id: string, variables?: Omit<L.ArchiveProjectMutationVariables, "id">): LinearFetch<ProjectArchivePayload>;
|
11487
11653
|
/**
|
11488
11654
|
* Creates a new project.
|
11489
11655
|
*
|
@@ -11492,12 +11658,12 @@ export declare class LinearSdk extends Request {
|
|
11492
11658
|
*/
|
11493
11659
|
createProject(input: L.ProjectCreateInput): LinearFetch<ProjectPayload>;
|
11494
11660
|
/**
|
11495
|
-
* Deletes a project.
|
11661
|
+
* Deletes (trashes) a project.
|
11496
11662
|
*
|
11497
11663
|
* @param id - required id to pass to deleteProject
|
11498
|
-
* @returns
|
11664
|
+
* @returns ProjectArchivePayload
|
11499
11665
|
*/
|
11500
|
-
deleteProject(id: string): LinearFetch<
|
11666
|
+
deleteProject(id: string): LinearFetch<ProjectArchivePayload>;
|
11501
11667
|
/**
|
11502
11668
|
* Creates a new project link.
|
11503
11669
|
*
|