@linear/sdk 15.0.1 → 17.0.1
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 +69 -54
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +31 -22
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +72 -38
- 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 +72 -38
- 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 +73 -39
- 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/index-cjs.js
CHANGED
@@ -83466,6 +83466,7 @@ var IntegrationService;
|
|
83466
83466
|
IntegrationService["JiraPersonal"] = "jiraPersonal";
|
83467
83467
|
IntegrationService["Loom"] = "loom";
|
83468
83468
|
IntegrationService["Notion"] = "notion";
|
83469
|
+
IntegrationService["Opsgenie"] = "opsgenie";
|
83469
83470
|
IntegrationService["PagerDuty"] = "pagerDuty";
|
83470
83471
|
IntegrationService["Sentry"] = "sentry";
|
83471
83472
|
IntegrationService["Slack"] = "slack";
|
@@ -85718,20 +85719,18 @@ const NotionSettingsFragmentDoc = {
|
|
85718
85719
|
},
|
85719
85720
|
],
|
85720
85721
|
};
|
85721
|
-
const
|
85722
|
+
const OpsgenieSettingsFragmentDoc = {
|
85722
85723
|
kind: "Document",
|
85723
85724
|
definitions: [
|
85724
85725
|
{
|
85725
85726
|
kind: "FragmentDefinition",
|
85726
|
-
name: { kind: "Name", value: "
|
85727
|
-
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "
|
85727
|
+
name: { kind: "Name", value: "OpsgenieSettings" },
|
85728
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OpsgenieSettings" } },
|
85728
85729
|
selectionSet: {
|
85729
85730
|
kind: "SelectionSet",
|
85730
85731
|
selections: [
|
85731
85732
|
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
85732
|
-
{ kind: "Field", name: { kind: "Name", value: "
|
85733
|
-
{ kind: "Field", name: { kind: "Name", value: "scheduleName" } },
|
85734
|
-
{ kind: "Field", name: { kind: "Name", value: "url" } },
|
85733
|
+
{ kind: "Field", name: { kind: "Name", value: "apiFailedWithUnauthorizedErrorAt" } },
|
85735
85734
|
],
|
85736
85735
|
},
|
85737
85736
|
},
|
@@ -85748,14 +85747,7 @@ const PagerDutySettingsFragmentDoc = {
|
|
85748
85747
|
kind: "SelectionSet",
|
85749
85748
|
selections: [
|
85750
85749
|
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
85751
|
-
{
|
85752
|
-
kind: "Field",
|
85753
|
-
name: { kind: "Name", value: "scheduleMapping" },
|
85754
|
-
selectionSet: {
|
85755
|
-
kind: "SelectionSet",
|
85756
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PagerDutyScheduleInfo" } }],
|
85757
|
-
},
|
85758
|
-
},
|
85750
|
+
{ kind: "Field", name: { kind: "Name", value: "apiFailedWithUnauthorizedErrorAt" } },
|
85759
85751
|
],
|
85760
85752
|
},
|
85761
85753
|
},
|
@@ -85996,6 +85988,14 @@ const IntegrationSettingsFragmentDoc = {
|
|
85996
85988
|
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "NotionSettings" } }],
|
85997
85989
|
},
|
85998
85990
|
},
|
85991
|
+
{
|
85992
|
+
kind: "Field",
|
85993
|
+
name: { kind: "Name", value: "opsgenie" },
|
85994
|
+
selectionSet: {
|
85995
|
+
kind: "SelectionSet",
|
85996
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OpsgenieSettings" } }],
|
85997
|
+
},
|
85998
|
+
},
|
85999
85999
|
{
|
86000
86000
|
kind: "Field",
|
86001
86001
|
name: { kind: "Name", value: "pagerDuty" },
|
@@ -86091,6 +86091,11 @@ const UserSettingsFragmentDoc = {
|
|
86091
86091
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
86092
86092
|
},
|
86093
86093
|
},
|
86094
|
+
{ kind: "Field", name: { kind: "Name", value: "subscribedToDPA" } },
|
86095
|
+
{ kind: "Field", name: { kind: "Name", value: "subscribedToChangelog" } },
|
86096
|
+
{ kind: "Field", name: { kind: "Name", value: "subscribedToInviteAccepted" } },
|
86097
|
+
{ kind: "Field", name: { kind: "Name", value: "subscribedToPrivacyLegalUpdates" } },
|
86098
|
+
{ kind: "Field", name: { kind: "Name", value: "subscribedToUnreadNotificationsReminder" } },
|
86094
86099
|
{ kind: "Field", name: { kind: "Name", value: "showFullUserNames" } },
|
86095
86100
|
],
|
86096
86101
|
},
|
@@ -95040,6 +95045,14 @@ const CustomView_IssuesDocument = {
|
|
95040
95045
|
variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
|
95041
95046
|
type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
|
95042
95047
|
},
|
95048
|
+
{
|
95049
|
+
kind: "VariableDefinition",
|
95050
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "sort" } },
|
95051
|
+
type: {
|
95052
|
+
kind: "ListType",
|
95053
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "IssueSortInput" } } },
|
95054
|
+
},
|
95055
|
+
},
|
95043
95056
|
],
|
95044
95057
|
selectionSet: {
|
95045
95058
|
kind: "SelectionSet",
|
@@ -95096,6 +95109,11 @@ const CustomView_IssuesDocument = {
|
|
95096
95109
|
name: { kind: "Name", value: "orderBy" },
|
95097
95110
|
value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
|
95098
95111
|
},
|
95112
|
+
{
|
95113
|
+
kind: "Argument",
|
95114
|
+
name: { kind: "Name", value: "sort" },
|
95115
|
+
value: { kind: "Variable", name: { kind: "Name", value: "sort" } },
|
95116
|
+
},
|
95099
95117
|
],
|
95100
95118
|
selectionSet: {
|
95101
95119
|
kind: "SelectionSet",
|
@@ -97796,6 +97814,11 @@ const IssueFilterSuggestionDocument = {
|
|
97796
97814
|
operation: "query",
|
97797
97815
|
name: { kind: "Name", value: "issueFilterSuggestion" },
|
97798
97816
|
variableDefinitions: [
|
97817
|
+
{
|
97818
|
+
kind: "VariableDefinition",
|
97819
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "projectId" } },
|
97820
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
97821
|
+
},
|
97799
97822
|
{
|
97800
97823
|
kind: "VariableDefinition",
|
97801
97824
|
variable: { kind: "Variable", name: { kind: "Name", value: "prompt" } },
|
@@ -97809,6 +97832,11 @@ const IssueFilterSuggestionDocument = {
|
|
97809
97832
|
kind: "Field",
|
97810
97833
|
name: { kind: "Name", value: "issueFilterSuggestion" },
|
97811
97834
|
arguments: [
|
97835
|
+
{
|
97836
|
+
kind: "Argument",
|
97837
|
+
name: { kind: "Name", value: "projectId" },
|
97838
|
+
value: { kind: "Variable", name: { kind: "Name", value: "projectId" } },
|
97839
|
+
},
|
97812
97840
|
{
|
97813
97841
|
kind: "Argument",
|
97814
97842
|
name: { kind: "Name", value: "prompt" },
|
@@ -116701,7 +116729,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
116701
116729
|
JiraSettingsFragmentDoc: JiraSettingsFragmentDoc,
|
116702
116730
|
JiraPersonalSettingsFragmentDoc: JiraPersonalSettingsFragmentDoc,
|
116703
116731
|
NotionSettingsFragmentDoc: NotionSettingsFragmentDoc,
|
116704
|
-
|
116732
|
+
OpsgenieSettingsFragmentDoc: OpsgenieSettingsFragmentDoc,
|
116705
116733
|
PagerDutySettingsFragmentDoc: PagerDutySettingsFragmentDoc,
|
116706
116734
|
SentrySettingsFragmentDoc: SentrySettingsFragmentDoc,
|
116707
116735
|
SlackSettingsFragmentDoc: SlackSettingsFragmentDoc,
|
@@ -119597,6 +119625,7 @@ class IntegrationSettings extends Request {
|
|
119597
119625
|
this.jira = data.jira ? new JiraSettings(request, data.jira) : undefined;
|
119598
119626
|
this.jiraPersonal = data.jiraPersonal ? new JiraPersonalSettings(request, data.jiraPersonal) : undefined;
|
119599
119627
|
this.notion = data.notion ? new NotionSettings(request, data.notion) : undefined;
|
119628
|
+
this.opsgenie = data.opsgenie ? new OpsgenieSettings(request, data.opsgenie) : undefined;
|
119600
119629
|
this.pagerDuty = data.pagerDuty ? new PagerDutySettings(request, data.pagerDuty) : undefined;
|
119601
119630
|
this.sentry = data.sentry ? new SentrySettings(request, data.sentry) : undefined;
|
119602
119631
|
this.slack = data.slack ? new SlackSettings(request, data.slack) : undefined;
|
@@ -121159,6 +121188,19 @@ class OauthToken extends Request {
|
|
121159
121188
|
this.user = new AuthUser(request, data.user);
|
121160
121189
|
}
|
121161
121190
|
}
|
121191
|
+
/**
|
121192
|
+
* Opsgenie specific settings.
|
121193
|
+
*
|
121194
|
+
* @param request - function to call the graphql client
|
121195
|
+
* @param data - L.OpsgenieSettingsFragment response data
|
121196
|
+
*/
|
121197
|
+
class OpsgenieSettings extends Request {
|
121198
|
+
constructor(request, data) {
|
121199
|
+
var _a;
|
121200
|
+
super(request);
|
121201
|
+
this.apiFailedWithUnauthorizedErrorAt = (_a = parseDate(data.apiFailedWithUnauthorizedErrorAt)) !== null && _a !== void 0 ? _a : new Date();
|
121202
|
+
}
|
121203
|
+
}
|
121162
121204
|
/**
|
121163
121205
|
* An organization. Organizations are root-level objects that contain user accounts and teams.
|
121164
121206
|
*
|
@@ -121433,20 +121475,6 @@ class PageInfo extends Request {
|
|
121433
121475
|
this.startCursor = (_b = data.startCursor) !== null && _b !== void 0 ? _b : undefined;
|
121434
121476
|
}
|
121435
121477
|
}
|
121436
|
-
/**
|
121437
|
-
* Metadata about a PagerDuty schedule.
|
121438
|
-
*
|
121439
|
-
* @param request - function to call the graphql client
|
121440
|
-
* @param data - L.PagerDutyScheduleInfoFragment response data
|
121441
|
-
*/
|
121442
|
-
class PagerDutyScheduleInfo extends Request {
|
121443
|
-
constructor(request, data) {
|
121444
|
-
super(request);
|
121445
|
-
this.scheduleId = data.scheduleId;
|
121446
|
-
this.scheduleName = data.scheduleName;
|
121447
|
-
this.url = data.url;
|
121448
|
-
}
|
121449
|
-
}
|
121450
121478
|
/**
|
121451
121479
|
* PagerDuty specific settings.
|
121452
121480
|
*
|
@@ -121455,8 +121483,9 @@ class PagerDutyScheduleInfo extends Request {
|
|
121455
121483
|
*/
|
121456
121484
|
class PagerDutySettings extends Request {
|
121457
121485
|
constructor(request, data) {
|
121486
|
+
var _a;
|
121458
121487
|
super(request);
|
121459
|
-
this.
|
121488
|
+
this.apiFailedWithUnauthorizedErrorAt = (_a = parseDate(data.apiFailedWithUnauthorizedErrorAt)) !== null && _a !== void 0 ? _a : new Date();
|
121460
121489
|
}
|
121461
121490
|
}
|
121462
121491
|
/**
|
@@ -123603,6 +123632,11 @@ class UserSettings extends Request {
|
|
123603
123632
|
this.id = data.id;
|
123604
123633
|
this.notificationPreferences = data.notificationPreferences;
|
123605
123634
|
this.showFullUserNames = data.showFullUserNames;
|
123635
|
+
this.subscribedToChangelog = data.subscribedToChangelog;
|
123636
|
+
this.subscribedToDPA = data.subscribedToDPA;
|
123637
|
+
this.subscribedToInviteAccepted = data.subscribedToInviteAccepted;
|
123638
|
+
this.subscribedToPrivacyLegalUpdates = data.subscribedToPrivacyLegalUpdates;
|
123639
|
+
this.subscribedToUnreadNotificationsReminder = data.subscribedToUnreadNotificationsReminder;
|
123606
123640
|
this.unsubscribedFrom = data.unsubscribedFrom;
|
123607
123641
|
this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
|
123608
123642
|
this._user = data.user;
|
@@ -124894,13 +124928,12 @@ class IssueFilterSuggestionQuery extends Request {
|
|
124894
124928
|
* Call the IssueFilterSuggestion query and return a IssueFilterSuggestionPayload
|
124895
124929
|
*
|
124896
124930
|
* @param prompt - required prompt to pass to issueFilterSuggestion
|
124931
|
+
* @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
|
124897
124932
|
* @returns parsed response from IssueFilterSuggestionQuery
|
124898
124933
|
*/
|
124899
|
-
fetch(prompt) {
|
124934
|
+
fetch(prompt, variables) {
|
124900
124935
|
return __awaiter(this, void 0, void 0, function* () {
|
124901
|
-
const response = yield this._request(IssueFilterSuggestionDocument, {
|
124902
|
-
prompt,
|
124903
|
-
});
|
124936
|
+
const response = yield this._request(IssueFilterSuggestionDocument, Object.assign({ prompt }, variables));
|
124904
124937
|
const data = response.issueFilterSuggestion;
|
124905
124938
|
return new IssueFilterSuggestionPayload(this._request, data);
|
124906
124939
|
});
|
@@ -133824,10 +133857,11 @@ class LinearSdk extends Request {
|
|
133824
133857
|
* Suggests filters for an issue view based on a text prompt.
|
133825
133858
|
*
|
133826
133859
|
* @param prompt - required prompt to pass to issueFilterSuggestion
|
133860
|
+
* @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
|
133827
133861
|
* @returns IssueFilterSuggestionPayload
|
133828
133862
|
*/
|
133829
|
-
issueFilterSuggestion(prompt) {
|
133830
|
-
return new IssueFilterSuggestionQuery(this._request).fetch(prompt);
|
133863
|
+
issueFilterSuggestion(prompt, variables) {
|
133864
|
+
return new IssueFilterSuggestionQuery(this._request).fetch(prompt, variables);
|
133831
133865
|
}
|
133832
133866
|
/**
|
133833
133867
|
* Checks a CSV file validity against a specific import service.
|
@@ -134484,7 +134518,7 @@ class LinearSdk extends Request {
|
|
134484
134518
|
return new AttachmentLinkZendeskMutation(this._request).fetch(issueId, ticketId, variables);
|
134485
134519
|
}
|
134486
134520
|
/**
|
134487
|
-
* Unsyncs an existing synced Slack attachment.
|
134521
|
+
* [DEPRECATED] Unsyncs an existing synced Slack attachment.
|
134488
134522
|
*
|
134489
134523
|
* @param id - required id to pass to attachmentUnsyncSlack
|
134490
134524
|
* @returns AttachmentPayload
|
@@ -136770,6 +136804,7 @@ exports.OauthClientApproval = OauthClientApproval;
|
|
136770
136804
|
exports.OauthClientApprovalNotification = OauthClientApprovalNotification;
|
136771
136805
|
exports.OauthClientConnection = OauthClientConnection;
|
136772
136806
|
exports.OauthToken = OauthToken;
|
136807
|
+
exports.OpsgenieSettings = OpsgenieSettings;
|
136773
136808
|
exports.Organization = Organization;
|
136774
136809
|
exports.OrganizationCancelDeletePayload = OrganizationCancelDeletePayload;
|
136775
136810
|
exports.OrganizationDeleteChallengeMutation = OrganizationDeleteChallengeMutation;
|
@@ -136795,7 +136830,6 @@ exports.Organization_TemplatesQuery = Organization_TemplatesQuery;
|
|
136795
136830
|
exports.Organization_UsersQuery = Organization_UsersQuery;
|
136796
136831
|
exports.OtherLinearError = OtherLinearError;
|
136797
136832
|
exports.PageInfo = PageInfo;
|
136798
|
-
exports.PagerDutyScheduleInfo = PagerDutyScheduleInfo;
|
136799
136833
|
exports.PagerDutySettings = PagerDutySettings;
|
136800
136834
|
exports.PaidSubscription = PaidSubscription;
|
136801
136835
|
exports.Project = Project;
|