@linear/sdk 10.0.0 → 11.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 +82 -30
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +51 -19
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +180 -77
- 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 +179 -78
- 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 +181 -78
- 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
@@ -488,6 +488,8 @@ export declare class AuthUser extends Request {
|
|
488
488
|
*/
|
489
489
|
export declare class AuthenticationSession extends Request {
|
490
490
|
constructor(request: LinearRequest, data: L.AuthenticationSessionFragment);
|
491
|
+
/** Used web browser. */
|
492
|
+
browserType?: string;
|
491
493
|
/** Client used for the session */
|
492
494
|
client?: string;
|
493
495
|
/** Country codes of all seen locations. */
|
@@ -524,6 +526,8 @@ export declare class AuthenticationSession extends Request {
|
|
524
526
|
*/
|
525
527
|
export declare class AuthenticationSessionResponse extends Request {
|
526
528
|
constructor(request: LinearRequest, data: L.AuthenticationSessionResponseFragment);
|
529
|
+
/** Used web browser. */
|
530
|
+
browserType?: string;
|
527
531
|
/** Client used for the session */
|
528
532
|
client?: string;
|
529
533
|
/** Country codes of all seen locations. */
|
@@ -571,8 +575,6 @@ export declare class Comment extends Request {
|
|
571
575
|
archivedAt?: Date;
|
572
576
|
/** The comment content in markdown format. */
|
573
577
|
body: string;
|
574
|
-
/** The comment content as a Prosemirror document. */
|
575
|
-
bodyData: string;
|
576
578
|
/** The time at which the entity was created. */
|
577
579
|
createdAt: Date;
|
578
580
|
/** The time user edited the comment. */
|
@@ -594,7 +596,7 @@ export declare class Comment extends Request {
|
|
594
596
|
/** The bot that created the comment */
|
595
597
|
botActor?: ActorBot;
|
596
598
|
/** The document content that the comment is associated with. */
|
597
|
-
documentContent
|
599
|
+
documentContent?: DocumentContent;
|
598
600
|
/** The issue that the comment is associated with. */
|
599
601
|
get issue(): LinearFetch<Issue> | undefined;
|
600
602
|
/** The parent comment under which the current comment is nested. */
|
@@ -746,6 +748,8 @@ export declare class CustomView extends Request {
|
|
746
748
|
icon?: string;
|
747
749
|
/** The unique identifier of the entity. */
|
748
750
|
id: string;
|
751
|
+
/** The model name of the custom view. */
|
752
|
+
modelName: string;
|
749
753
|
/** The name of the custom view. */
|
750
754
|
name: string;
|
751
755
|
/** Whether the custom view is shared with everyone in the organization. */
|
@@ -1108,8 +1112,6 @@ export declare class DocumentContent extends Request {
|
|
1108
1112
|
archivedAt?: Date;
|
1109
1113
|
/** The document content in markdown format. */
|
1110
1114
|
content?: string;
|
1111
|
-
/** The document content as JSON. */
|
1112
|
-
contentData?: Record<string, unknown>;
|
1113
1115
|
/** The document content state as a base64 encoded string. */
|
1114
1116
|
contentState?: string;
|
1115
1117
|
/** The time at which the entity was created. */
|
@@ -1143,8 +1145,6 @@ export declare class DocumentContentHistory extends Request {
|
|
1143
1145
|
actorIds: string[];
|
1144
1146
|
/** The time at which the entity was archived. Null if the entity has not been archived. */
|
1145
1147
|
archivedAt?: Date;
|
1146
|
-
/** The document content as JSON. */
|
1147
|
-
contentData?: Record<string, unknown>;
|
1148
1148
|
/** The timestamp associated with the DocumentContent when it was originally saved */
|
1149
1149
|
contentDataSnapshotAt: Date;
|
1150
1150
|
/** The time at which the entity was created. */
|
@@ -1183,8 +1183,6 @@ export declare class DocumentContentHistoryType extends Request {
|
|
1183
1183
|
constructor(request: LinearRequest, data: L.DocumentContentHistoryTypeFragment);
|
1184
1184
|
/** The ID of the author of the change. */
|
1185
1185
|
actorIds?: string[];
|
1186
|
-
/** The document content as Prosemirror document. */
|
1187
|
-
contentData: Record<string, unknown>;
|
1188
1186
|
/** The date when the document content history snapshot was taken. This can be different than createdAt since the content is captured from its state at the previously known updatedAt timestamp in the case of an update. On document create, these timestamps can be the same. */
|
1189
1187
|
contentDataSnapshotAt: Date;
|
1190
1188
|
/** The date when the document content history entry was created. */
|
@@ -1750,6 +1748,7 @@ export declare class IntegrationSettings extends Request {
|
|
1750
1748
|
googleSheets?: GoogleSheetsSettings;
|
1751
1749
|
intercom?: IntercomSettings;
|
1752
1750
|
jira?: JiraSettings;
|
1751
|
+
jiraPersonal?: JiraPersonalSettings;
|
1753
1752
|
notion?: NotionSettings;
|
1754
1753
|
pagerDuty?: PagerDutySettings;
|
1755
1754
|
sentry?: SentrySettings;
|
@@ -2695,6 +2694,17 @@ export declare class JiraLinearMapping extends Request {
|
|
2695
2694
|
/** The Linear team id to map to the given project. */
|
2696
2695
|
linearTeamId: string;
|
2697
2696
|
}
|
2697
|
+
/**
|
2698
|
+
* Jira personal specific settings.
|
2699
|
+
*
|
2700
|
+
* @param request - function to call the graphql client
|
2701
|
+
* @param data - L.JiraPersonalSettingsFragment response data
|
2702
|
+
*/
|
2703
|
+
export declare class JiraPersonalSettings extends Request {
|
2704
|
+
constructor(request: LinearRequest, data: L.JiraPersonalSettingsFragment);
|
2705
|
+
/** The name of the Jira site currently authorized through the integration. */
|
2706
|
+
siteName?: string;
|
2707
|
+
}
|
2698
2708
|
/**
|
2699
2709
|
* Metadata about a Jira project.
|
2700
2710
|
*
|
@@ -4511,6 +4521,8 @@ export declare class SlackChannelNameMapping extends Request {
|
|
4511
4521
|
autoCreateOnEmoji?: boolean;
|
4512
4522
|
/** Whether or not top-level messages in this channel should automatically create Asks */
|
4513
4523
|
autoCreateOnMessage?: boolean;
|
4524
|
+
/** Whether or not we the Linear Asks bot has been added to this Slack channel */
|
4525
|
+
botAdded?: boolean;
|
4514
4526
|
/** The Slack channel ID. */
|
4515
4527
|
id: string;
|
4516
4528
|
/** Whether or not the Slack channel is private */
|
@@ -7165,13 +7177,12 @@ export declare class AttachmentLinkGitLabMrMutation extends Request {
|
|
7165
7177
|
*
|
7166
7178
|
* @param issueId - required issueId to pass to attachmentLinkGitLabMR
|
7167
7179
|
* @param number - required number to pass to attachmentLinkGitLabMR
|
7168
|
-
* @param
|
7169
|
-
* @param repo - required repo to pass to attachmentLinkGitLabMR
|
7180
|
+
* @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
|
7170
7181
|
* @param url - required url to pass to attachmentLinkGitLabMR
|
7171
|
-
* @param variables - variables without 'issueId', 'number', '
|
7182
|
+
* @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
|
7172
7183
|
* @returns parsed response from AttachmentLinkGitLabMrMutation
|
7173
7184
|
*/
|
7174
|
-
fetch(issueId: string, number: number,
|
7185
|
+
fetch(issueId: string, number: number, projectPathWithNamespace: string, url: string, variables?: Omit<L.AttachmentLinkGitLabMrMutationVariables, "issueId" | "number" | "projectPathWithNamespace" | "url">): LinearFetch<AttachmentPayload>;
|
7175
7186
|
}
|
7176
7187
|
/**
|
7177
7188
|
* A fetchable AttachmentLinkIntercom Mutation
|
@@ -7833,6 +7844,21 @@ export declare class IntegrationFrontMutation extends Request {
|
|
7833
7844
|
*/
|
7834
7845
|
fetch(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
7835
7846
|
}
|
7847
|
+
/**
|
7848
|
+
* A fetchable IntegrationGitHubPersonal Mutation
|
7849
|
+
*
|
7850
|
+
* @param request - function to call the graphql client
|
7851
|
+
*/
|
7852
|
+
export declare class IntegrationGitHubPersonalMutation extends Request {
|
7853
|
+
constructor(request: LinearRequest);
|
7854
|
+
/**
|
7855
|
+
* Call the IntegrationGitHubPersonal mutation and return a IntegrationPayload
|
7856
|
+
*
|
7857
|
+
* @param code - required code to pass to integrationGitHubPersonal
|
7858
|
+
* @returns parsed response from IntegrationGitHubPersonalMutation
|
7859
|
+
*/
|
7860
|
+
fetch(code: string): LinearFetch<IntegrationPayload>;
|
7861
|
+
}
|
7836
7862
|
/**
|
7837
7863
|
* A fetchable CreateIntegrationGithubCommit Mutation
|
7838
7864
|
*
|
@@ -10226,7 +10252,7 @@ export declare class Comment_DocumentContentQuery extends Request {
|
|
10226
10252
|
*
|
10227
10253
|
* @returns parsed response from Comment_DocumentContentQuery
|
10228
10254
|
*/
|
10229
|
-
fetch(): LinearFetch<DocumentContent>;
|
10255
|
+
fetch(): LinearFetch<DocumentContent | undefined>;
|
10230
10256
|
}
|
10231
10257
|
/**
|
10232
10258
|
* A fetchable Cycle_Issues Query
|
@@ -11973,13 +11999,12 @@ export declare class LinearSdk extends Request {
|
|
11973
11999
|
*
|
11974
12000
|
* @param issueId - required issueId to pass to attachmentLinkGitLabMR
|
11975
12001
|
* @param number - required number to pass to attachmentLinkGitLabMR
|
11976
|
-
* @param
|
11977
|
-
* @param repo - required repo to pass to attachmentLinkGitLabMR
|
12002
|
+
* @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
|
11978
12003
|
* @param url - required url to pass to attachmentLinkGitLabMR
|
11979
|
-
* @param variables - variables without 'issueId', 'number', '
|
12004
|
+
* @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
|
11980
12005
|
* @returns AttachmentPayload
|
11981
12006
|
*/
|
11982
|
-
attachmentLinkGitLabMR(issueId: string, number: number,
|
12007
|
+
attachmentLinkGitLabMR(issueId: string, number: number, projectPathWithNamespace: string, url: string, variables?: Omit<L.AttachmentLinkGitLabMrMutationVariables, "issueId" | "number" | "projectPathWithNamespace" | "url">): LinearFetch<AttachmentPayload>;
|
11983
12008
|
/**
|
11984
12009
|
* Link an existing Intercom conversation to an issue.
|
11985
12010
|
*
|
@@ -12304,6 +12329,13 @@ export declare class LinearSdk extends Request {
|
|
12304
12329
|
* @returns IntegrationPayload
|
12305
12330
|
*/
|
12306
12331
|
integrationFront(code: string, redirectUri: string): LinearFetch<IntegrationPayload>;
|
12332
|
+
/**
|
12333
|
+
* Connect your GitHub account to Linear.
|
12334
|
+
*
|
12335
|
+
* @param code - required code to pass to integrationGitHubPersonal
|
12336
|
+
* @returns IntegrationPayload
|
12337
|
+
*/
|
12338
|
+
integrationGitHubPersonal(code: string): LinearFetch<IntegrationPayload>;
|
12307
12339
|
/**
|
12308
12340
|
* Generates a webhook for the GitHub commit integration.
|
12309
12341
|
*
|
@@ -13223,7 +13255,7 @@ export declare class LinearSdk extends Request {
|
|
13223
13255
|
*/
|
13224
13256
|
updateUserFlag(flag: L.UserFlagType, operation: L.UserFlagUpdateOperation): LinearFetch<UserSettingsFlagPayload>;
|
13225
13257
|
/**
|
13226
|
-
* Connects the GitHub user to this Linear account via OAuth2.
|
13258
|
+
* [DEPRECATED] Connects the GitHub user to this Linear account via OAuth2.
|
13227
13259
|
*
|
13228
13260
|
* @param code - required code to pass to userGitHubConnect
|
13229
13261
|
* @returns UserPayload
|