@linear/sdk 15.0.0 → 16.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 +36 -38
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +18 -21
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +48 -39
- 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 +48 -39
- 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 +49 -40
- 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" },
|
@@ -91576,7 +91576,6 @@ const TeamFragmentDoc = {
|
|
91576
91576
|
{ kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
|
91577
91577
|
{ kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
|
91578
91578
|
{ kind: "Field", name: { kind: "Name", value: "triageEnabled" } },
|
91579
|
-
{ kind: "Field", name: { kind: "Name", value: "issueSortOrderDefaultToBottom" } },
|
91580
91579
|
],
|
91581
91580
|
},
|
91582
91581
|
},
|
@@ -97796,6 +97795,11 @@ const IssueFilterSuggestionDocument = {
|
|
97796
97795
|
operation: "query",
|
97797
97796
|
name: { kind: "Name", value: "issueFilterSuggestion" },
|
97798
97797
|
variableDefinitions: [
|
97798
|
+
{
|
97799
|
+
kind: "VariableDefinition",
|
97800
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "projectId" } },
|
97801
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
97802
|
+
},
|
97799
97803
|
{
|
97800
97804
|
kind: "VariableDefinition",
|
97801
97805
|
variable: { kind: "Variable", name: { kind: "Name", value: "prompt" } },
|
@@ -97809,6 +97813,11 @@ const IssueFilterSuggestionDocument = {
|
|
97809
97813
|
kind: "Field",
|
97810
97814
|
name: { kind: "Name", value: "issueFilterSuggestion" },
|
97811
97815
|
arguments: [
|
97816
|
+
{
|
97817
|
+
kind: "Argument",
|
97818
|
+
name: { kind: "Name", value: "projectId" },
|
97819
|
+
value: { kind: "Variable", name: { kind: "Name", value: "projectId" } },
|
97820
|
+
},
|
97812
97821
|
{
|
97813
97822
|
kind: "Argument",
|
97814
97823
|
name: { kind: "Name", value: "prompt" },
|
@@ -116701,7 +116710,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
|
|
116701
116710
|
JiraSettingsFragmentDoc: JiraSettingsFragmentDoc,
|
116702
116711
|
JiraPersonalSettingsFragmentDoc: JiraPersonalSettingsFragmentDoc,
|
116703
116712
|
NotionSettingsFragmentDoc: NotionSettingsFragmentDoc,
|
116704
|
-
|
116713
|
+
OpsgenieSettingsFragmentDoc: OpsgenieSettingsFragmentDoc,
|
116705
116714
|
PagerDutySettingsFragmentDoc: PagerDutySettingsFragmentDoc,
|
116706
116715
|
SentrySettingsFragmentDoc: SentrySettingsFragmentDoc,
|
116707
116716
|
SlackSettingsFragmentDoc: SlackSettingsFragmentDoc,
|
@@ -119597,6 +119606,7 @@ class IntegrationSettings extends Request {
|
|
119597
119606
|
this.jira = data.jira ? new JiraSettings(request, data.jira) : undefined;
|
119598
119607
|
this.jiraPersonal = data.jiraPersonal ? new JiraPersonalSettings(request, data.jiraPersonal) : undefined;
|
119599
119608
|
this.notion = data.notion ? new NotionSettings(request, data.notion) : undefined;
|
119609
|
+
this.opsgenie = data.opsgenie ? new OpsgenieSettings(request, data.opsgenie) : undefined;
|
119600
119610
|
this.pagerDuty = data.pagerDuty ? new PagerDutySettings(request, data.pagerDuty) : undefined;
|
119601
119611
|
this.sentry = data.sentry ? new SentrySettings(request, data.sentry) : undefined;
|
119602
119612
|
this.slack = data.slack ? new SlackSettings(request, data.slack) : undefined;
|
@@ -121159,6 +121169,19 @@ class OauthToken extends Request {
|
|
121159
121169
|
this.user = new AuthUser(request, data.user);
|
121160
121170
|
}
|
121161
121171
|
}
|
121172
|
+
/**
|
121173
|
+
* Opsgenie specific settings.
|
121174
|
+
*
|
121175
|
+
* @param request - function to call the graphql client
|
121176
|
+
* @param data - L.OpsgenieSettingsFragment response data
|
121177
|
+
*/
|
121178
|
+
class OpsgenieSettings extends Request {
|
121179
|
+
constructor(request, data) {
|
121180
|
+
var _a;
|
121181
|
+
super(request);
|
121182
|
+
this.apiFailedWithUnauthorizedErrorAt = (_a = parseDate(data.apiFailedWithUnauthorizedErrorAt)) !== null && _a !== void 0 ? _a : new Date();
|
121183
|
+
}
|
121184
|
+
}
|
121162
121185
|
/**
|
121163
121186
|
* An organization. Organizations are root-level objects that contain user accounts and teams.
|
121164
121187
|
*
|
@@ -121433,20 +121456,6 @@ class PageInfo extends Request {
|
|
121433
121456
|
this.startCursor = (_b = data.startCursor) !== null && _b !== void 0 ? _b : undefined;
|
121434
121457
|
}
|
121435
121458
|
}
|
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
121459
|
/**
|
121451
121460
|
* PagerDuty specific settings.
|
121452
121461
|
*
|
@@ -121455,8 +121464,9 @@ class PagerDutyScheduleInfo extends Request {
|
|
121455
121464
|
*/
|
121456
121465
|
class PagerDutySettings extends Request {
|
121457
121466
|
constructor(request, data) {
|
121467
|
+
var _a;
|
121458
121468
|
super(request);
|
121459
|
-
this.
|
121469
|
+
this.apiFailedWithUnauthorizedErrorAt = (_a = parseDate(data.apiFailedWithUnauthorizedErrorAt)) !== null && _a !== void 0 ? _a : new Date();
|
121460
121470
|
}
|
121461
121471
|
}
|
121462
121472
|
/**
|
@@ -122730,7 +122740,6 @@ class Team extends Request {
|
|
122730
122740
|
this.issueEstimationExtended = data.issueEstimationExtended;
|
122731
122741
|
this.issueEstimationType = data.issueEstimationType;
|
122732
122742
|
this.issueOrderingNoPriorityFirst = data.issueOrderingNoPriorityFirst;
|
122733
|
-
this.issueSortOrderDefaultToBottom = data.issueSortOrderDefaultToBottom;
|
122734
122743
|
this.key = data.key;
|
122735
122744
|
this.name = data.name;
|
122736
122745
|
this.private = data.private;
|
@@ -124894,13 +124903,12 @@ class IssueFilterSuggestionQuery extends Request {
|
|
124894
124903
|
* Call the IssueFilterSuggestion query and return a IssueFilterSuggestionPayload
|
124895
124904
|
*
|
124896
124905
|
* @param prompt - required prompt to pass to issueFilterSuggestion
|
124906
|
+
* @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
|
124897
124907
|
* @returns parsed response from IssueFilterSuggestionQuery
|
124898
124908
|
*/
|
124899
|
-
fetch(prompt) {
|
124909
|
+
fetch(prompt, variables) {
|
124900
124910
|
return __awaiter(this, void 0, void 0, function* () {
|
124901
|
-
const response = yield this._request(IssueFilterSuggestionDocument, {
|
124902
|
-
prompt,
|
124903
|
-
});
|
124911
|
+
const response = yield this._request(IssueFilterSuggestionDocument, Object.assign({ prompt }, variables));
|
124904
124912
|
const data = response.issueFilterSuggestion;
|
124905
124913
|
return new IssueFilterSuggestionPayload(this._request, data);
|
124906
124914
|
});
|
@@ -133824,10 +133832,11 @@ class LinearSdk extends Request {
|
|
133824
133832
|
* Suggests filters for an issue view based on a text prompt.
|
133825
133833
|
*
|
133826
133834
|
* @param prompt - required prompt to pass to issueFilterSuggestion
|
133835
|
+
* @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
|
133827
133836
|
* @returns IssueFilterSuggestionPayload
|
133828
133837
|
*/
|
133829
|
-
issueFilterSuggestion(prompt) {
|
133830
|
-
return new IssueFilterSuggestionQuery(this._request).fetch(prompt);
|
133838
|
+
issueFilterSuggestion(prompt, variables) {
|
133839
|
+
return new IssueFilterSuggestionQuery(this._request).fetch(prompt, variables);
|
133831
133840
|
}
|
133832
133841
|
/**
|
133833
133842
|
* Checks a CSV file validity against a specific import service.
|
@@ -136770,6 +136779,7 @@ exports.OauthClientApproval = OauthClientApproval;
|
|
136770
136779
|
exports.OauthClientApprovalNotification = OauthClientApprovalNotification;
|
136771
136780
|
exports.OauthClientConnection = OauthClientConnection;
|
136772
136781
|
exports.OauthToken = OauthToken;
|
136782
|
+
exports.OpsgenieSettings = OpsgenieSettings;
|
136773
136783
|
exports.Organization = Organization;
|
136774
136784
|
exports.OrganizationCancelDeletePayload = OrganizationCancelDeletePayload;
|
136775
136785
|
exports.OrganizationDeleteChallengeMutation = OrganizationDeleteChallengeMutation;
|
@@ -136795,7 +136805,6 @@ exports.Organization_TemplatesQuery = Organization_TemplatesQuery;
|
|
136795
136805
|
exports.Organization_UsersQuery = Organization_UsersQuery;
|
136796
136806
|
exports.OtherLinearError = OtherLinearError;
|
136797
136807
|
exports.PageInfo = PageInfo;
|
136798
|
-
exports.PagerDutyScheduleInfo = PagerDutyScheduleInfo;
|
136799
136808
|
exports.PagerDutySettings = PagerDutySettings;
|
136800
136809
|
exports.PaidSubscription = PaidSubscription;
|
136801
136810
|
exports.Project = Project;
|