@linear/sdk 7.0.0 → 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 +203 -0
- package/dist/_generated_documents.d.ts +392 -37
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +202 -23
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +1108 -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 +1102 -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 +1109 -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
|
*
|
@@ -253,6 +291,17 @@ export declare class AttachmentPayload extends Request {
|
|
253
291
|
/** The issue attachment that was created. */
|
254
292
|
get attachment(): LinearFetch<Attachment> | undefined;
|
255
293
|
}
|
294
|
+
/**
|
295
|
+
* AttachmentSourcesPayload model
|
296
|
+
*
|
297
|
+
* @param request - function to call the graphql client
|
298
|
+
* @param data - L.AttachmentSourcesPayloadFragment response data
|
299
|
+
*/
|
300
|
+
export declare class AttachmentSourcesPayload extends Request {
|
301
|
+
constructor(request: LinearRequest, data: L.AttachmentSourcesPayloadFragment);
|
302
|
+
/** A unique list of all source types used in this workspace */
|
303
|
+
sources: Record<string, unknown>;
|
304
|
+
}
|
256
305
|
/**
|
257
306
|
* Workspace audit log entry object.
|
258
307
|
*
|
@@ -369,6 +418,8 @@ export declare class Comment extends Request {
|
|
369
418
|
updatedAt: Date;
|
370
419
|
/** Comment's URL. */
|
371
420
|
url: string;
|
421
|
+
/** The bot that created the comment */
|
422
|
+
botActor?: ActorBot;
|
372
423
|
/** The issue that the comment is associated with. */
|
373
424
|
get issue(): LinearFetch<Issue> | undefined;
|
374
425
|
/** The parent comment under which the current comment is nested. */
|
@@ -498,6 +549,7 @@ export declare class CreateOrJoinOrganizationResponse extends Request {
|
|
498
549
|
*/
|
499
550
|
export declare class CustomView extends Request {
|
500
551
|
private _creator;
|
552
|
+
private _owner;
|
501
553
|
private _team?;
|
502
554
|
constructor(request: LinearRequest, data: L.CustomViewFragment);
|
503
555
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
@@ -530,6 +582,8 @@ export declare class CustomView extends Request {
|
|
530
582
|
get creator(): LinearFetch<User> | undefined;
|
531
583
|
/** The organization of the custom view. */
|
532
584
|
get organization(): LinearFetch<Organization>;
|
585
|
+
/** The user who owns the custom view. */
|
586
|
+
get owner(): LinearFetch<User> | undefined;
|
533
587
|
/** The team associated with the custom view. */
|
534
588
|
get team(): LinearFetch<Team> | undefined;
|
535
589
|
/** Creates a new custom view. */
|
@@ -564,6 +618,8 @@ export declare class CustomViewNotificationSubscription extends Request {
|
|
564
618
|
private _team?;
|
565
619
|
private _user?;
|
566
620
|
constructor(request: LinearRequest, data: L.CustomViewNotificationSubscriptionFragment);
|
621
|
+
/** Whether the subscription is active or not */
|
622
|
+
active: boolean;
|
567
623
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
568
624
|
archivedAt?: Date;
|
569
625
|
/** The time at which the entity was created. */
|
@@ -725,6 +781,8 @@ export declare class CycleNotificationSubscription extends Request {
|
|
725
781
|
private _team?;
|
726
782
|
private _user?;
|
727
783
|
constructor(request: LinearRequest, data: L.CycleNotificationSubscriptionFragment);
|
784
|
+
/** Whether the subscription is active or not */
|
785
|
+
active: boolean;
|
728
786
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
729
787
|
archivedAt?: Date;
|
730
788
|
/** The time at which the entity was created. */
|
@@ -851,6 +909,7 @@ export declare class DocumentConnection extends Connection<Document> {
|
|
851
909
|
*/
|
852
910
|
export declare class DocumentContent extends Request {
|
853
911
|
private _issue?;
|
912
|
+
private _project?;
|
854
913
|
constructor(request: LinearRequest, data: L.DocumentContentFragment);
|
855
914
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
856
915
|
archivedAt?: Date;
|
@@ -858,6 +917,8 @@ export declare class DocumentContent extends Request {
|
|
858
917
|
content?: string;
|
859
918
|
/** The document content as JSON. */
|
860
919
|
contentData?: Record<string, unknown>;
|
920
|
+
/** The document content state as a base64 encoded string. */
|
921
|
+
contentState?: Record<string, unknown>;
|
861
922
|
/** The time at which the entity was created. */
|
862
923
|
createdAt: Date;
|
863
924
|
/** The unique identifier of the entity. */
|
@@ -870,6 +931,8 @@ export declare class DocumentContent extends Request {
|
|
870
931
|
updatedAt: Date;
|
871
932
|
/** The issue that the document is associated with. */
|
872
933
|
get issue(): LinearFetch<Issue> | undefined;
|
934
|
+
/** The project that the document is associated with. */
|
935
|
+
get project(): LinearFetch<Project> | undefined;
|
873
936
|
}
|
874
937
|
/**
|
875
938
|
* DocumentPayload model
|
@@ -1254,17 +1317,15 @@ export declare class FirstResponderSchedule extends Request {
|
|
1254
1317
|
createdAt: Date;
|
1255
1318
|
/** The unique identifier of the entity. */
|
1256
1319
|
id: string;
|
1257
|
-
/** The
|
1258
|
-
|
1259
|
-
/** The current schedule and available schedules. */
|
1260
|
-
scheduleData: Record<string, unknown>;
|
1320
|
+
/** The schedule information. */
|
1321
|
+
scheduleData?: Record<string, unknown>;
|
1261
1322
|
/**
|
1262
1323
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
1263
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
|
1264
1325
|
* been updated after creation.
|
1265
1326
|
*/
|
1266
1327
|
updatedAt: Date;
|
1267
|
-
/** The integration used for scheduling. */
|
1328
|
+
/** The integration used for time scheduling. */
|
1268
1329
|
get integration(): LinearFetch<Integration> | undefined;
|
1269
1330
|
/** The team to which the schedule belongs to. */
|
1270
1331
|
get team(): LinearFetch<Team> | undefined;
|
@@ -1341,6 +1402,8 @@ export declare class GitHubSettings extends Request {
|
|
1341
1402
|
orgAvatarUrl: string;
|
1342
1403
|
/** The GitHub organization's name */
|
1343
1404
|
orgLogin: string;
|
1405
|
+
/** The names of the repositories connected for the GitHub integration */
|
1406
|
+
repositories?: string[];
|
1344
1407
|
}
|
1345
1408
|
/**
|
1346
1409
|
* GitHub OAuth token, plus information about the organizations the user is a member of.
|
@@ -1501,6 +1564,7 @@ export declare class IntegrationSettings extends Request {
|
|
1501
1564
|
notion?: NotionSettings;
|
1502
1565
|
pagerDuty?: PagerDutySettings;
|
1503
1566
|
sentry?: SentrySettings;
|
1567
|
+
slackAsks?: SlackAsksSettings;
|
1504
1568
|
slackOrgProjectUpdatesPost?: SlackPostSettings;
|
1505
1569
|
slackPost?: SlackPostSettings;
|
1506
1570
|
slackProjectPost?: SlackPostSettings;
|
@@ -1520,6 +1584,8 @@ export declare class IntegrationTemplate extends Request {
|
|
1520
1584
|
archivedAt?: Date;
|
1521
1585
|
/** The time at which the entity was created. */
|
1522
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;
|
1523
1589
|
/** The unique identifier of the entity. */
|
1524
1590
|
id: string;
|
1525
1591
|
/**
|
@@ -1934,6 +2000,8 @@ export declare class IssueHistory extends Request {
|
|
1934
2000
|
updatedDescription?: boolean;
|
1935
2001
|
/** Changed issue relationships. */
|
1936
2002
|
relationChanges?: IssueRelationHistoryPayload[];
|
2003
|
+
/** The bot that performed the action */
|
2004
|
+
botActor?: ActorBot;
|
1937
2005
|
/** The import record. */
|
1938
2006
|
issueImport?: IssueImport;
|
1939
2007
|
/** The user who made these changes. If null, possibly means that the change made by an integration. */
|
@@ -2084,6 +2152,8 @@ export declare class IssueLabel extends Request {
|
|
2084
2152
|
description?: string;
|
2085
2153
|
/** The unique identifier of the entity. */
|
2086
2154
|
id: string;
|
2155
|
+
/** Whether this label is considered to be a group. */
|
2156
|
+
isGroup: boolean;
|
2087
2157
|
/** The label's name. */
|
2088
2158
|
name: string;
|
2089
2159
|
/**
|
@@ -2176,6 +2246,8 @@ export declare class IssueNotification extends Request {
|
|
2176
2246
|
* been updated after creation.
|
2177
2247
|
*/
|
2178
2248
|
updatedAt: Date;
|
2249
|
+
/** The bot that caused the notification. */
|
2250
|
+
botActor?: ActorBot;
|
2179
2251
|
/** The user that caused the notification. */
|
2180
2252
|
get actor(): LinearFetch<User> | undefined;
|
2181
2253
|
/** The comment related to the notification. */
|
@@ -2472,6 +2544,8 @@ export declare class LabelNotificationSubscription extends Request {
|
|
2472
2544
|
private _team?;
|
2473
2545
|
private _user?;
|
2474
2546
|
constructor(request: LinearRequest, data: L.LabelNotificationSubscriptionFragment);
|
2547
|
+
/** Whether the subscription is active or not */
|
2548
|
+
active: boolean;
|
2475
2549
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
2476
2550
|
archivedAt?: Date;
|
2477
2551
|
/** The time at which the entity was created. */
|
@@ -2558,6 +2632,8 @@ export declare class Notification extends Request {
|
|
2558
2632
|
* been updated after creation.
|
2559
2633
|
*/
|
2560
2634
|
updatedAt: Date;
|
2635
|
+
/** The bot that caused the notification. */
|
2636
|
+
botActor?: ActorBot;
|
2561
2637
|
/** The user that caused the notification. */
|
2562
2638
|
get actor(): LinearFetch<User> | undefined;
|
2563
2639
|
/** The user that received the notification. */
|
@@ -2635,6 +2711,8 @@ export declare class NotificationSubscription extends Request {
|
|
2635
2711
|
private _team?;
|
2636
2712
|
private _user?;
|
2637
2713
|
constructor(request: LinearRequest, data: L.NotificationSubscriptionFragment);
|
2714
|
+
/** Whether the subscription is active or not */
|
2715
|
+
active: boolean;
|
2638
2716
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
2639
2717
|
archivedAt?: Date;
|
2640
2718
|
/** The time at which the entity was created. */
|
@@ -2822,6 +2900,8 @@ export declare class OauthClientApprovalNotification extends Request {
|
|
2822
2900
|
* been updated after creation.
|
2823
2901
|
*/
|
2824
2902
|
updatedAt: Date;
|
2903
|
+
/** The bot that caused the notification. */
|
2904
|
+
botActor?: ActorBot;
|
2825
2905
|
/** The OAuth client approval request related to the notification. */
|
2826
2906
|
oauthClientApproval: OauthClientApproval;
|
2827
2907
|
/** The user that caused the notification. */
|
@@ -3003,6 +3083,8 @@ export declare class OrganizationInvite extends Request {
|
|
3003
3083
|
external: boolean;
|
3004
3084
|
/** The unique identifier of the entity. */
|
3005
3085
|
id: string;
|
3086
|
+
/** Extra metadata associated with the organization invite. */
|
3087
|
+
metadata: Record<string, unknown>;
|
3006
3088
|
/**
|
3007
3089
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
3008
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
|
@@ -3206,6 +3288,8 @@ export declare class Project extends Request {
|
|
3206
3288
|
completedIssueCountHistory: number[];
|
3207
3289
|
/** The number of completed estimation points after each week. */
|
3208
3290
|
completedScopeHistory: number[];
|
3291
|
+
/** The project's content in markdown format. */
|
3292
|
+
content?: string;
|
3209
3293
|
/** The time at which the entity was created. */
|
3210
3294
|
createdAt: Date;
|
3211
3295
|
/** The project's description. */
|
@@ -3246,6 +3330,8 @@ export declare class Project extends Request {
|
|
3246
3330
|
state: string;
|
3247
3331
|
/** The estimated completion date of the project. */
|
3248
3332
|
targetDate?: L.Scalars["TimelessDate"];
|
3333
|
+
/** A flag that indicates whether the project is in the trash bin. */
|
3334
|
+
trashed?: boolean;
|
3249
3335
|
/**
|
3250
3336
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
3251
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
|
@@ -3277,11 +3363,11 @@ export declare class Project extends Request {
|
|
3277
3363
|
/** Teams associated with this project. */
|
3278
3364
|
teams(variables?: Omit<L.Project_TeamsQueryVariables, "id">): LinearFetch<TeamConnection>;
|
3279
3365
|
/** Archives a project. */
|
3280
|
-
archive(): LinearFetch<ProjectArchivePayload>;
|
3366
|
+
archive(variables?: Omit<L.ArchiveProjectMutationVariables, "id">): LinearFetch<ProjectArchivePayload>;
|
3281
3367
|
/** Creates a new project. */
|
3282
3368
|
create(input: L.ProjectCreateInput): LinearFetch<ProjectPayload>;
|
3283
|
-
/** Deletes a project.
|
3284
|
-
delete(): LinearFetch<
|
3369
|
+
/** Deletes (trashes) a project. */
|
3370
|
+
delete(): LinearFetch<ProjectArchivePayload>;
|
3285
3371
|
/** Unarchives a project. */
|
3286
3372
|
unarchive(): LinearFetch<ProjectArchivePayload>;
|
3287
3373
|
/** Updates a project. */
|
@@ -3488,6 +3574,8 @@ export declare class ProjectNotification extends Request {
|
|
3488
3574
|
* been updated after creation.
|
3489
3575
|
*/
|
3490
3576
|
updatedAt: Date;
|
3577
|
+
/** The bot that caused the notification. */
|
3578
|
+
botActor?: ActorBot;
|
3491
3579
|
/** The user that caused the notification. */
|
3492
3580
|
get actor(): LinearFetch<User> | undefined;
|
3493
3581
|
/** The project related to the notification. */
|
@@ -3512,6 +3600,8 @@ export declare class ProjectNotificationSubscription extends Request {
|
|
3512
3600
|
private _team?;
|
3513
3601
|
private _user?;
|
3514
3602
|
constructor(request: LinearRequest, data: L.ProjectNotificationSubscriptionFragment);
|
3603
|
+
/** Whether the subscription is active or not */
|
3604
|
+
active: boolean;
|
3515
3605
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
3516
3606
|
archivedAt?: Date;
|
3517
3607
|
/** The time at which the entity was created. */
|
@@ -3598,6 +3688,8 @@ export declare class ProjectSearchResult extends Request {
|
|
3598
3688
|
completedIssueCountHistory: number[];
|
3599
3689
|
/** The number of completed estimation points after each week. */
|
3600
3690
|
completedScopeHistory: number[];
|
3691
|
+
/** The project's content in markdown format. */
|
3692
|
+
content?: string;
|
3601
3693
|
/** The time at which the entity was created. */
|
3602
3694
|
createdAt: Date;
|
3603
3695
|
/** The project's description. */
|
@@ -3640,6 +3732,8 @@ export declare class ProjectSearchResult extends Request {
|
|
3640
3732
|
state: string;
|
3641
3733
|
/** The estimated completion date of the project. */
|
3642
3734
|
targetDate?: L.Scalars["TimelessDate"];
|
3735
|
+
/** A flag that indicates whether the project is in the trash bin. */
|
3736
|
+
trashed?: boolean;
|
3643
3737
|
/**
|
3644
3738
|
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
3645
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
|
@@ -3683,6 +3777,8 @@ export declare class ProjectUpdate extends Request {
|
|
3683
3777
|
body: string;
|
3684
3778
|
/** The time at which the entity was created. */
|
3685
3779
|
createdAt: Date;
|
3780
|
+
/** The diff between the current update and the previous one. */
|
3781
|
+
diff?: Record<string, unknown>;
|
3686
3782
|
/** The time the project update was edited. */
|
3687
3783
|
editedAt?: Date;
|
3688
3784
|
/** The unique identifier of the entity. */
|
@@ -4157,6 +4253,32 @@ export declare class SentrySettings extends Request {
|
|
4157
4253
|
/** The slug of the Sentry organization being connected. */
|
4158
4254
|
organizationSlug: string;
|
4159
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
|
+
}
|
4160
4282
|
/**
|
4161
4283
|
* Slack notification specific settings.
|
4162
4284
|
*
|
@@ -4234,6 +4356,7 @@ export declare class Team extends Request {
|
|
4234
4356
|
private _integrationsSettings?;
|
4235
4357
|
private _markedAsDuplicateWorkflowState?;
|
4236
4358
|
private _mergeWorkflowState?;
|
4359
|
+
private _mergeableWorkflowState?;
|
4237
4360
|
private _reviewWorkflowState?;
|
4238
4361
|
private _startWorkflowState?;
|
4239
4362
|
private _triageIssueState?;
|
@@ -4336,6 +4459,8 @@ export declare class Team extends Request {
|
|
4336
4459
|
get markedAsDuplicateWorkflowState(): LinearFetch<WorkflowState> | undefined;
|
4337
4460
|
/** The workflow state into which issues are moved when a PR has been merged. */
|
4338
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;
|
4339
4464
|
/** The organization that the team is associated with. */
|
4340
4465
|
get organization(): LinearFetch<Organization>;
|
4341
4466
|
/** The workflow state into which issues are moved when a review has been requested for the PR. */
|
@@ -4457,6 +4582,8 @@ export declare class TeamNotificationSubscription extends Request {
|
|
4457
4582
|
private _team;
|
4458
4583
|
private _user?;
|
4459
4584
|
constructor(request: LinearRequest, data: L.TeamNotificationSubscriptionFragment);
|
4585
|
+
/** Whether the subscription is active or not */
|
4586
|
+
active: boolean;
|
4460
4587
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
4461
4588
|
archivedAt?: Date;
|
4462
4589
|
/** The time at which the entity was created. */
|
@@ -4791,6 +4918,8 @@ export declare class UserNotificationSubscription extends Request {
|
|
4791
4918
|
private _team?;
|
4792
4919
|
private _user;
|
4793
4920
|
constructor(request: LinearRequest, data: L.UserNotificationSubscriptionFragment);
|
4921
|
+
/** Whether the subscription is active or not */
|
4922
|
+
active: boolean;
|
4794
4923
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
4795
4924
|
archivedAt?: Date;
|
4796
4925
|
/** The time at which the entity was created. */
|
@@ -5358,9 +5487,10 @@ export declare class AttachmentLinkDiscordMutation extends Request {
|
|
5358
5487
|
* @param issueId - required issueId to pass to attachmentLinkDiscord
|
5359
5488
|
* @param messageId - required messageId to pass to attachmentLinkDiscord
|
5360
5489
|
* @param url - required url to pass to attachmentLinkDiscord
|
5490
|
+
* @param variables - variables without 'channelId', 'issueId', 'messageId', 'url' to pass into the AttachmentLinkDiscordMutation
|
5361
5491
|
* @returns parsed response from AttachmentLinkDiscordMutation
|
5362
5492
|
*/
|
5363
|
-
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>;
|
5364
5494
|
}
|
5365
5495
|
/**
|
5366
5496
|
* A fetchable AttachmentLinkFront Mutation
|
@@ -5374,9 +5504,10 @@ export declare class AttachmentLinkFrontMutation extends Request {
|
|
5374
5504
|
*
|
5375
5505
|
* @param conversationId - required conversationId to pass to attachmentLinkFront
|
5376
5506
|
* @param issueId - required issueId to pass to attachmentLinkFront
|
5507
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkFrontMutation
|
5377
5508
|
* @returns parsed response from AttachmentLinkFrontMutation
|
5378
5509
|
*/
|
5379
|
-
fetch(conversationId: string, issueId: string): LinearFetch<FrontAttachmentPayload>;
|
5510
|
+
fetch(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkFrontMutationVariables, "conversationId" | "issueId">): LinearFetch<FrontAttachmentPayload>;
|
5380
5511
|
}
|
5381
5512
|
/**
|
5382
5513
|
* A fetchable AttachmentLinkIntercom Mutation
|
@@ -5390,9 +5521,10 @@ export declare class AttachmentLinkIntercomMutation extends Request {
|
|
5390
5521
|
*
|
5391
5522
|
* @param conversationId - required conversationId to pass to attachmentLinkIntercom
|
5392
5523
|
* @param issueId - required issueId to pass to attachmentLinkIntercom
|
5524
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkIntercomMutation
|
5393
5525
|
* @returns parsed response from AttachmentLinkIntercomMutation
|
5394
5526
|
*/
|
5395
|
-
fetch(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
|
5527
|
+
fetch(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkIntercomMutationVariables, "conversationId" | "issueId">): LinearFetch<AttachmentPayload>;
|
5396
5528
|
}
|
5397
5529
|
/**
|
5398
5530
|
* A fetchable AttachmentLinkJiraIssue Mutation
|
@@ -5458,9 +5590,10 @@ export declare class AttachmentLinkZendeskMutation extends Request {
|
|
5458
5590
|
*
|
5459
5591
|
* @param issueId - required issueId to pass to attachmentLinkZendesk
|
5460
5592
|
* @param ticketId - required ticketId to pass to attachmentLinkZendesk
|
5593
|
+
* @param variables - variables without 'issueId', 'ticketId' to pass into the AttachmentLinkZendeskMutation
|
5461
5594
|
* @returns parsed response from AttachmentLinkZendeskMutation
|
5462
5595
|
*/
|
5463
|
-
fetch(issueId: string, ticketId: string): LinearFetch<AttachmentPayload>;
|
5596
|
+
fetch(issueId: string, ticketId: string, variables?: Omit<L.AttachmentLinkZendeskMutationVariables, "issueId" | "ticketId">): LinearFetch<AttachmentPayload>;
|
5464
5597
|
}
|
5465
5598
|
/**
|
5466
5599
|
* A fetchable AttachmentUnsyncSlack Mutation
|
@@ -5910,6 +6043,22 @@ export declare class ImportFileUploadMutation extends Request {
|
|
5910
6043
|
*/
|
5911
6044
|
fetch(contentType: string, filename: string, size: number, variables?: Omit<L.ImportFileUploadMutationVariables, "contentType" | "filename" | "size">): LinearFetch<UploadPayload>;
|
5912
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
|
+
}
|
5913
6062
|
/**
|
5914
6063
|
* A fetchable DeleteIntegration Mutation
|
5915
6064
|
*
|
@@ -7031,9 +7180,10 @@ export declare class ArchiveProjectMutation extends Request {
|
|
7031
7180
|
* Call the ArchiveProject mutation and return a ProjectArchivePayload
|
7032
7181
|
*
|
7033
7182
|
* @param id - required id to pass to archiveProject
|
7183
|
+
* @param variables - variables without 'id' to pass into the ArchiveProjectMutation
|
7034
7184
|
* @returns parsed response from ArchiveProjectMutation
|
7035
7185
|
*/
|
7036
|
-
fetch(id: string): LinearFetch<ProjectArchivePayload>;
|
7186
|
+
fetch(id: string, variables?: Omit<L.ArchiveProjectMutationVariables, "id">): LinearFetch<ProjectArchivePayload>;
|
7037
7187
|
}
|
7038
7188
|
/**
|
7039
7189
|
* A fetchable CreateProject Mutation
|
@@ -7058,12 +7208,12 @@ export declare class CreateProjectMutation extends Request {
|
|
7058
7208
|
export declare class DeleteProjectMutation extends Request {
|
7059
7209
|
constructor(request: LinearRequest);
|
7060
7210
|
/**
|
7061
|
-
* Call the DeleteProject mutation and return a
|
7211
|
+
* Call the DeleteProject mutation and return a ProjectArchivePayload
|
7062
7212
|
*
|
7063
7213
|
* @param id - required id to pass to deleteProject
|
7064
7214
|
* @returns parsed response from DeleteProjectMutation
|
7065
7215
|
*/
|
7066
|
-
fetch(id: string): LinearFetch<
|
7216
|
+
fetch(id: string): LinearFetch<ProjectArchivePayload>;
|
7067
7217
|
}
|
7068
7218
|
/**
|
7069
7219
|
* A fetchable CreateProjectLink Mutation
|
@@ -9500,6 +9650,22 @@ export declare class AttachmentIssue_SubscribersQuery extends Request {
|
|
9500
9650
|
*/
|
9501
9651
|
fetch(variables?: Omit<L.AttachmentIssue_SubscribersQueryVariables, "id">): LinearFetch<UserConnection>;
|
9502
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
|
+
}
|
9503
9669
|
/**
|
9504
9670
|
* A fetchable Comment_Children Query
|
9505
9671
|
*
|
@@ -10651,25 +10817,28 @@ export declare class LinearSdk extends Request {
|
|
10651
10817
|
* @param issueId - required issueId to pass to attachmentLinkDiscord
|
10652
10818
|
* @param messageId - required messageId to pass to attachmentLinkDiscord
|
10653
10819
|
* @param url - required url to pass to attachmentLinkDiscord
|
10820
|
+
* @param variables - variables without 'channelId', 'issueId', 'messageId', 'url' to pass into the AttachmentLinkDiscordMutation
|
10654
10821
|
* @returns AttachmentPayload
|
10655
10822
|
*/
|
10656
|
-
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>;
|
10657
10824
|
/**
|
10658
10825
|
* Link an existing Front conversation to an issue.
|
10659
10826
|
*
|
10660
10827
|
* @param conversationId - required conversationId to pass to attachmentLinkFront
|
10661
10828
|
* @param issueId - required issueId to pass to attachmentLinkFront
|
10829
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkFrontMutation
|
10662
10830
|
* @returns FrontAttachmentPayload
|
10663
10831
|
*/
|
10664
|
-
attachmentLinkFront(conversationId: string, issueId: string): LinearFetch<FrontAttachmentPayload>;
|
10832
|
+
attachmentLinkFront(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkFrontMutationVariables, "conversationId" | "issueId">): LinearFetch<FrontAttachmentPayload>;
|
10665
10833
|
/**
|
10666
10834
|
* Link an existing Intercom conversation to an issue.
|
10667
10835
|
*
|
10668
10836
|
* @param conversationId - required conversationId to pass to attachmentLinkIntercom
|
10669
10837
|
* @param issueId - required issueId to pass to attachmentLinkIntercom
|
10838
|
+
* @param variables - variables without 'conversationId', 'issueId' to pass into the AttachmentLinkIntercomMutation
|
10670
10839
|
* @returns AttachmentPayload
|
10671
10840
|
*/
|
10672
|
-
attachmentLinkIntercom(conversationId: string, issueId: string): LinearFetch<AttachmentPayload>;
|
10841
|
+
attachmentLinkIntercom(conversationId: string, issueId: string, variables?: Omit<L.AttachmentLinkIntercomMutationVariables, "conversationId" | "issueId">): LinearFetch<AttachmentPayload>;
|
10673
10842
|
/**
|
10674
10843
|
* Link an existing Jira issue to an issue.
|
10675
10844
|
*
|
@@ -10703,9 +10872,10 @@ export declare class LinearSdk extends Request {
|
|
10703
10872
|
*
|
10704
10873
|
* @param issueId - required issueId to pass to attachmentLinkZendesk
|
10705
10874
|
* @param ticketId - required ticketId to pass to attachmentLinkZendesk
|
10875
|
+
* @param variables - variables without 'issueId', 'ticketId' to pass into the AttachmentLinkZendeskMutation
|
10706
10876
|
* @returns AttachmentPayload
|
10707
10877
|
*/
|
10708
|
-
attachmentLinkZendesk(issueId: string, ticketId: string): LinearFetch<AttachmentPayload>;
|
10878
|
+
attachmentLinkZendesk(issueId: string, ticketId: string, variables?: Omit<L.AttachmentLinkZendeskMutationVariables, "issueId" | "ticketId">): LinearFetch<AttachmentPayload>;
|
10709
10879
|
/**
|
10710
10880
|
* Unsyncs an existing synced Slack attachment.
|
10711
10881
|
*
|
@@ -10922,6 +11092,14 @@ export declare class LinearSdk extends Request {
|
|
10922
11092
|
* @returns UploadPayload
|
10923
11093
|
*/
|
10924
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>;
|
10925
11103
|
/**
|
10926
11104
|
* Deletes an integration.
|
10927
11105
|
*
|
@@ -11468,9 +11646,10 @@ export declare class LinearSdk extends Request {
|
|
11468
11646
|
* Archives a project.
|
11469
11647
|
*
|
11470
11648
|
* @param id - required id to pass to archiveProject
|
11649
|
+
* @param variables - variables without 'id' to pass into the ArchiveProjectMutation
|
11471
11650
|
* @returns ProjectArchivePayload
|
11472
11651
|
*/
|
11473
|
-
archiveProject(id: string): LinearFetch<ProjectArchivePayload>;
|
11652
|
+
archiveProject(id: string, variables?: Omit<L.ArchiveProjectMutationVariables, "id">): LinearFetch<ProjectArchivePayload>;
|
11474
11653
|
/**
|
11475
11654
|
* Creates a new project.
|
11476
11655
|
*
|
@@ -11479,12 +11658,12 @@ export declare class LinearSdk extends Request {
|
|
11479
11658
|
*/
|
11480
11659
|
createProject(input: L.ProjectCreateInput): LinearFetch<ProjectPayload>;
|
11481
11660
|
/**
|
11482
|
-
* Deletes a project.
|
11661
|
+
* Deletes (trashes) a project.
|
11483
11662
|
*
|
11484
11663
|
* @param id - required id to pass to deleteProject
|
11485
|
-
* @returns
|
11664
|
+
* @returns ProjectArchivePayload
|
11486
11665
|
*/
|
11487
|
-
deleteProject(id: string): LinearFetch<
|
11666
|
+
deleteProject(id: string): LinearFetch<ProjectArchivePayload>;
|
11488
11667
|
/**
|
11489
11668
|
* Creates a new project link.
|
11490
11669
|
*
|