@linear/sdk 4.0.0 → 6.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 +93 -0
- package/dist/_generated_documents.d.ts +215 -37
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +101 -29
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +304 -86
- 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 +300 -85
- 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 +305 -87
- 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
package/dist/_generated_sdk.d.ts
CHANGED
@@ -394,6 +394,52 @@ export declare class CommentPayload extends Request {
|
|
394
394
|
/** The comment that was created or updated. */
|
395
395
|
get comment(): LinearFetch<Comment> | undefined;
|
396
396
|
}
|
397
|
+
/**
|
398
|
+
* A company related to issue's origin.
|
399
|
+
*
|
400
|
+
* @param request - function to call the graphql client
|
401
|
+
* @param data - L.CompanyFragment response data
|
402
|
+
*/
|
403
|
+
export declare class Company extends Request {
|
404
|
+
private _creator;
|
405
|
+
constructor(request: LinearRequest, data: L.CompanyFragment);
|
406
|
+
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
407
|
+
archivedAt?: Date;
|
408
|
+
/** Custom company properties. */
|
409
|
+
companyProperties: Record<string, unknown>;
|
410
|
+
/** The time at which the entity was created. */
|
411
|
+
createdAt: Date;
|
412
|
+
/** Company ID in an external system. */
|
413
|
+
externalId: string;
|
414
|
+
/** The unique identifier of the entity. */
|
415
|
+
id: string;
|
416
|
+
/** Company logo URL. */
|
417
|
+
logoUrl?: string;
|
418
|
+
/** Company name. */
|
419
|
+
name: string;
|
420
|
+
/**
|
421
|
+
* The last time at which the entity was meaningfully updated, i.e. for all changes of syncable properties except those
|
422
|
+
* 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
|
423
|
+
* been updated after creation.
|
424
|
+
*/
|
425
|
+
updatedAt: Date;
|
426
|
+
/** Company website URL. */
|
427
|
+
websiteUrl?: string;
|
428
|
+
/** The user who added the company. */
|
429
|
+
get creator(): LinearFetch<User> | undefined;
|
430
|
+
/** The organization of the customer. */
|
431
|
+
get organization(): LinearFetch<Organization>;
|
432
|
+
}
|
433
|
+
/**
|
434
|
+
* CompanyConnection model
|
435
|
+
*
|
436
|
+
* @param request - function to call the graphql client
|
437
|
+
* @param fetch - function to trigger a refetch of this CompanyConnection model
|
438
|
+
* @param data - CompanyConnection response data
|
439
|
+
*/
|
440
|
+
export declare class CompanyConnection extends Connection<Company> {
|
441
|
+
constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<Company> | undefined>, data: L.CompanyConnectionFragment);
|
442
|
+
}
|
397
443
|
/**
|
398
444
|
* ContactPayload model
|
399
445
|
*
|
@@ -469,7 +515,7 @@ export declare class CustomView extends Request {
|
|
469
515
|
get creator(): LinearFetch<User> | undefined;
|
470
516
|
/** The organization of the custom view. */
|
471
517
|
get organization(): LinearFetch<Organization>;
|
472
|
-
/** The user who owns the custom view. */
|
518
|
+
/** [Deprecated] The user who owns the custom view. */
|
473
519
|
get owner(): LinearFetch<User> | undefined;
|
474
520
|
/** The team associated with the custom view. */
|
475
521
|
get team(): LinearFetch<Team> | undefined;
|
@@ -1590,7 +1636,7 @@ export declare class IssueHistory extends Request {
|
|
1590
1636
|
actorId?: string;
|
1591
1637
|
/** ID's of labels that were added. */
|
1592
1638
|
addedLabelIds?: string[];
|
1593
|
-
/** Whether the issue
|
1639
|
+
/** Whether the issue is archived at the time of this history entry. */
|
1594
1640
|
archived?: boolean;
|
1595
1641
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
1596
1642
|
archivedAt?: Date;
|
@@ -2679,13 +2725,13 @@ export declare class OrganizationInviteConnection extends Connection<Organizatio
|
|
2679
2725
|
constructor(request: LinearRequest, fetch: (connection?: LinearConnectionVariables) => LinearFetch<LinearConnection<OrganizationInvite> | undefined>, data: L.OrganizationInviteConnectionFragment);
|
2680
2726
|
}
|
2681
2727
|
/**
|
2682
|
-
*
|
2728
|
+
* OrganizationInviteFullDetailsPayload model
|
2683
2729
|
*
|
2684
2730
|
* @param request - function to call the graphql client
|
2685
|
-
* @param data - L.
|
2731
|
+
* @param data - L.OrganizationInviteFullDetailsPayloadFragment response data
|
2686
2732
|
*/
|
2687
|
-
export declare class
|
2688
|
-
constructor(request: LinearRequest, data: L.
|
2733
|
+
export declare class OrganizationInviteFullDetailsPayload extends Request {
|
2734
|
+
constructor(request: LinearRequest, data: L.OrganizationInviteFullDetailsPayloadFragment);
|
2689
2735
|
/** Whether the invite has already been accepted. */
|
2690
2736
|
accepted: boolean;
|
2691
2737
|
/** When the invite was created. */
|
@@ -3860,7 +3906,7 @@ export declare class Team extends Request {
|
|
3860
3906
|
issueEstimationAllowZero: boolean;
|
3861
3907
|
/** Whether to add additional points to the estimate scale. */
|
3862
3908
|
issueEstimationExtended: boolean;
|
3863
|
-
/** The issue estimation type to use. */
|
3909
|
+
/** The issue estimation type to use. Must be one of "notUsed", "exponential", "fibonacci", "linear", "tShirt". */
|
3864
3910
|
issueEstimationType: string;
|
3865
3911
|
/** Whether issues without priority should be sorted first. */
|
3866
3912
|
issueOrderingNoPriorityFirst: boolean;
|
@@ -4371,6 +4417,8 @@ export declare class UserSettings extends Request {
|
|
4371
4417
|
id: string;
|
4372
4418
|
/** The notification channel settings the user has selected. */
|
4373
4419
|
notificationPreferences: Record<string, unknown>;
|
4420
|
+
/** Whether to show full user names instead of display names. */
|
4421
|
+
showFullUserNames: boolean;
|
4374
4422
|
/** The email types the user has unsubscribed from. */
|
4375
4423
|
unsubscribedFrom: string[];
|
4376
4424
|
/**
|
@@ -5736,6 +5784,22 @@ export declare class DeleteIntegrationTemplateMutation extends Request {
|
|
5736
5784
|
*/
|
5737
5785
|
fetch(id: string): LinearFetch<ArchivePayload>;
|
5738
5786
|
}
|
5787
|
+
/**
|
5788
|
+
* A fetchable IntegrationUpdateSlack Mutation
|
5789
|
+
*
|
5790
|
+
* @param request - function to call the graphql client
|
5791
|
+
*/
|
5792
|
+
export declare class IntegrationUpdateSlackMutation extends Request {
|
5793
|
+
constructor(request: LinearRequest);
|
5794
|
+
/**
|
5795
|
+
* Call the IntegrationUpdateSlack mutation and return a IntegrationPayload
|
5796
|
+
*
|
5797
|
+
* @param code - required code to pass to integrationUpdateSlack
|
5798
|
+
* @param redirectUri - required redirectUri to pass to integrationUpdateSlack
|
5799
|
+
* @returns parsed response from IntegrationUpdateSlackMutation
|
5800
|
+
*/
|
5801
|
+
fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
5802
|
+
}
|
5739
5803
|
/**
|
5740
5804
|
* A fetchable IntegrationZendesk Mutation
|
5741
5805
|
*
|
@@ -7152,6 +7216,21 @@ export declare class UserGoogleCalendarConnectMutation extends Request {
|
|
7152
7216
|
*/
|
7153
7217
|
fetch(code: string): LinearFetch<UserPayload>;
|
7154
7218
|
}
|
7219
|
+
/**
|
7220
|
+
* A fetchable UserJiraConnect Mutation
|
7221
|
+
*
|
7222
|
+
* @param request - function to call the graphql client
|
7223
|
+
*/
|
7224
|
+
export declare class UserJiraConnectMutation extends Request {
|
7225
|
+
constructor(request: LinearRequest);
|
7226
|
+
/**
|
7227
|
+
* Call the UserJiraConnect mutation and return a UserPayload
|
7228
|
+
*
|
7229
|
+
* @param code - required code to pass to userJiraConnect
|
7230
|
+
* @returns parsed response from UserJiraConnectMutation
|
7231
|
+
*/
|
7232
|
+
fetch(code: string): LinearFetch<UserPayload>;
|
7233
|
+
}
|
7155
7234
|
/**
|
7156
7235
|
* A fetchable UserPromoteAdmin Mutation
|
7157
7236
|
*
|
@@ -8164,21 +8243,6 @@ export declare class OrganizationInviteQuery extends Request {
|
|
8164
8243
|
*/
|
8165
8244
|
fetch(id: string): LinearFetch<OrganizationInvite>;
|
8166
8245
|
}
|
8167
|
-
/**
|
8168
|
-
* A fetchable OrganizationInviteDetails Query
|
8169
|
-
*
|
8170
|
-
* @param request - function to call the graphql client
|
8171
|
-
*/
|
8172
|
-
export declare class OrganizationInviteDetailsQuery extends Request {
|
8173
|
-
constructor(request: LinearRequest);
|
8174
|
-
/**
|
8175
|
-
* Call the OrganizationInviteDetails query and return a OrganizationInviteDetailsPayload
|
8176
|
-
*
|
8177
|
-
* @param id - required id to pass to organizationInviteDetails
|
8178
|
-
* @returns parsed response from OrganizationInviteDetailsQuery
|
8179
|
-
*/
|
8180
|
-
fetch(id: string): LinearFetch<OrganizationInviteDetailsPayload>;
|
8181
|
-
}
|
8182
8246
|
/**
|
8183
8247
|
* A fetchable OrganizationInvites Query
|
8184
8248
|
*
|
@@ -10413,6 +10477,14 @@ export declare class LinearSdk extends Request {
|
|
10413
10477
|
* @returns ArchivePayload
|
10414
10478
|
*/
|
10415
10479
|
deleteIntegrationTemplate(id: string): LinearFetch<ArchivePayload>;
|
10480
|
+
/**
|
10481
|
+
* Updates the organization's Slack integration.
|
10482
|
+
*
|
10483
|
+
* @param code - required code to pass to integrationUpdateSlack
|
10484
|
+
* @param redirectUri - required redirectUri to pass to integrationUpdateSlack
|
10485
|
+
* @returns IntegrationPayload
|
10486
|
+
*/
|
10487
|
+
integrationUpdateSlack(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
10416
10488
|
/**
|
10417
10489
|
* Integrates the organization with Zendesk.
|
10418
10490
|
*
|
@@ -11093,6 +11165,13 @@ export declare class LinearSdk extends Request {
|
|
11093
11165
|
* @returns UserPayload
|
11094
11166
|
*/
|
11095
11167
|
userGoogleCalendarConnect(code: string): LinearFetch<UserPayload>;
|
11168
|
+
/**
|
11169
|
+
* Connects the Jira user to this Linear account via OAuth2.
|
11170
|
+
*
|
11171
|
+
* @param code - required code to pass to userJiraConnect
|
11172
|
+
* @returns UserPayload
|
11173
|
+
*/
|
11174
|
+
userJiraConnect(code: string): LinearFetch<UserPayload>;
|
11096
11175
|
/**
|
11097
11176
|
* Makes user an admin. Can only be called by an admin.
|
11098
11177
|
*
|
@@ -11572,13 +11651,6 @@ export declare class LinearSdk extends Request {
|
|
11572
11651
|
* @returns OrganizationInvite
|
11573
11652
|
*/
|
11574
11653
|
organizationInvite(id: string): LinearFetch<OrganizationInvite>;
|
11575
|
-
/**
|
11576
|
-
* One specific organization invite.
|
11577
|
-
*
|
11578
|
-
* @param id - required id to pass to organizationInviteDetails
|
11579
|
-
* @returns OrganizationInviteDetailsPayload
|
11580
|
-
*/
|
11581
|
-
organizationInviteDetails(id: string): LinearFetch<OrganizationInviteDetailsPayload>;
|
11582
11654
|
/**
|
11583
11655
|
* All invites for the organization.
|
11584
11656
|
*
|