@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/index-umd.js CHANGED
@@ -9,7 +9,7 @@
9
9
  var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
10
10
 
11
11
  (function() {
12
- const env = {"npm_package_name":"@linear/sdk","npm_package_version":"15.0.1"};
12
+ const env = {"npm_package_name":"@linear/sdk","npm_package_version":"17.0.1"};
13
13
  try {
14
14
  if (process) {
15
15
  process.env = Object.assign({}, process.env);
@@ -1440,6 +1440,7 @@
1440
1440
  IntegrationService["JiraPersonal"] = "jiraPersonal";
1441
1441
  IntegrationService["Loom"] = "loom";
1442
1442
  IntegrationService["Notion"] = "notion";
1443
+ IntegrationService["Opsgenie"] = "opsgenie";
1443
1444
  IntegrationService["PagerDuty"] = "pagerDuty";
1444
1445
  IntegrationService["Sentry"] = "sentry";
1445
1446
  IntegrationService["Slack"] = "slack";
@@ -3692,20 +3693,18 @@
3692
3693
  },
3693
3694
  ],
3694
3695
  };
3695
- const PagerDutyScheduleInfoFragmentDoc = {
3696
+ const OpsgenieSettingsFragmentDoc = {
3696
3697
  kind: "Document",
3697
3698
  definitions: [
3698
3699
  {
3699
3700
  kind: "FragmentDefinition",
3700
- name: { kind: "Name", value: "PagerDutyScheduleInfo" },
3701
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PagerDutyScheduleInfo" } },
3701
+ name: { kind: "Name", value: "OpsgenieSettings" },
3702
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OpsgenieSettings" } },
3702
3703
  selectionSet: {
3703
3704
  kind: "SelectionSet",
3704
3705
  selections: [
3705
3706
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3706
- { kind: "Field", name: { kind: "Name", value: "scheduleId" } },
3707
- { kind: "Field", name: { kind: "Name", value: "scheduleName" } },
3708
- { kind: "Field", name: { kind: "Name", value: "url" } },
3707
+ { kind: "Field", name: { kind: "Name", value: "apiFailedWithUnauthorizedErrorAt" } },
3709
3708
  ],
3710
3709
  },
3711
3710
  },
@@ -3722,14 +3721,7 @@
3722
3721
  kind: "SelectionSet",
3723
3722
  selections: [
3724
3723
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3725
- {
3726
- kind: "Field",
3727
- name: { kind: "Name", value: "scheduleMapping" },
3728
- selectionSet: {
3729
- kind: "SelectionSet",
3730
- selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PagerDutyScheduleInfo" } }],
3731
- },
3732
- },
3724
+ { kind: "Field", name: { kind: "Name", value: "apiFailedWithUnauthorizedErrorAt" } },
3733
3725
  ],
3734
3726
  },
3735
3727
  },
@@ -3970,6 +3962,14 @@
3970
3962
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "NotionSettings" } }],
3971
3963
  },
3972
3964
  },
3965
+ {
3966
+ kind: "Field",
3967
+ name: { kind: "Name", value: "opsgenie" },
3968
+ selectionSet: {
3969
+ kind: "SelectionSet",
3970
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OpsgenieSettings" } }],
3971
+ },
3972
+ },
3973
3973
  {
3974
3974
  kind: "Field",
3975
3975
  name: { kind: "Name", value: "pagerDuty" },
@@ -4065,6 +4065,11 @@
4065
4065
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
4066
4066
  },
4067
4067
  },
4068
+ { kind: "Field", name: { kind: "Name", value: "subscribedToDPA" } },
4069
+ { kind: "Field", name: { kind: "Name", value: "subscribedToChangelog" } },
4070
+ { kind: "Field", name: { kind: "Name", value: "subscribedToInviteAccepted" } },
4071
+ { kind: "Field", name: { kind: "Name", value: "subscribedToPrivacyLegalUpdates" } },
4072
+ { kind: "Field", name: { kind: "Name", value: "subscribedToUnreadNotificationsReminder" } },
4068
4073
  { kind: "Field", name: { kind: "Name", value: "showFullUserNames" } },
4069
4074
  ],
4070
4075
  },
@@ -13014,6 +13019,14 @@
13014
13019
  variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
13015
13020
  type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
13016
13021
  },
13022
+ {
13023
+ kind: "VariableDefinition",
13024
+ variable: { kind: "Variable", name: { kind: "Name", value: "sort" } },
13025
+ type: {
13026
+ kind: "ListType",
13027
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "IssueSortInput" } } },
13028
+ },
13029
+ },
13017
13030
  ],
13018
13031
  selectionSet: {
13019
13032
  kind: "SelectionSet",
@@ -13070,6 +13083,11 @@
13070
13083
  name: { kind: "Name", value: "orderBy" },
13071
13084
  value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
13072
13085
  },
13086
+ {
13087
+ kind: "Argument",
13088
+ name: { kind: "Name", value: "sort" },
13089
+ value: { kind: "Variable", name: { kind: "Name", value: "sort" } },
13090
+ },
13073
13091
  ],
13074
13092
  selectionSet: {
13075
13093
  kind: "SelectionSet",
@@ -15770,6 +15788,11 @@
15770
15788
  operation: "query",
15771
15789
  name: { kind: "Name", value: "issueFilterSuggestion" },
15772
15790
  variableDefinitions: [
15791
+ {
15792
+ kind: "VariableDefinition",
15793
+ variable: { kind: "Variable", name: { kind: "Name", value: "projectId" } },
15794
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
15795
+ },
15773
15796
  {
15774
15797
  kind: "VariableDefinition",
15775
15798
  variable: { kind: "Variable", name: { kind: "Name", value: "prompt" } },
@@ -15783,6 +15806,11 @@
15783
15806
  kind: "Field",
15784
15807
  name: { kind: "Name", value: "issueFilterSuggestion" },
15785
15808
  arguments: [
15809
+ {
15810
+ kind: "Argument",
15811
+ name: { kind: "Name", value: "projectId" },
15812
+ value: { kind: "Variable", name: { kind: "Name", value: "projectId" } },
15813
+ },
15786
15814
  {
15787
15815
  kind: "Argument",
15788
15816
  name: { kind: "Name", value: "prompt" },
@@ -34675,7 +34703,7 @@
34675
34703
  JiraSettingsFragmentDoc: JiraSettingsFragmentDoc,
34676
34704
  JiraPersonalSettingsFragmentDoc: JiraPersonalSettingsFragmentDoc,
34677
34705
  NotionSettingsFragmentDoc: NotionSettingsFragmentDoc,
34678
- PagerDutyScheduleInfoFragmentDoc: PagerDutyScheduleInfoFragmentDoc,
34706
+ OpsgenieSettingsFragmentDoc: OpsgenieSettingsFragmentDoc,
34679
34707
  PagerDutySettingsFragmentDoc: PagerDutySettingsFragmentDoc,
34680
34708
  SentrySettingsFragmentDoc: SentrySettingsFragmentDoc,
34681
34709
  SlackSettingsFragmentDoc: SlackSettingsFragmentDoc,
@@ -37571,6 +37599,7 @@
37571
37599
  this.jira = data.jira ? new JiraSettings(request, data.jira) : undefined;
37572
37600
  this.jiraPersonal = data.jiraPersonal ? new JiraPersonalSettings(request, data.jiraPersonal) : undefined;
37573
37601
  this.notion = data.notion ? new NotionSettings(request, data.notion) : undefined;
37602
+ this.opsgenie = data.opsgenie ? new OpsgenieSettings(request, data.opsgenie) : undefined;
37574
37603
  this.pagerDuty = data.pagerDuty ? new PagerDutySettings(request, data.pagerDuty) : undefined;
37575
37604
  this.sentry = data.sentry ? new SentrySettings(request, data.sentry) : undefined;
37576
37605
  this.slack = data.slack ? new SlackSettings(request, data.slack) : undefined;
@@ -39133,6 +39162,19 @@
39133
39162
  this.user = new AuthUser(request, data.user);
39134
39163
  }
39135
39164
  }
39165
+ /**
39166
+ * Opsgenie specific settings.
39167
+ *
39168
+ * @param request - function to call the graphql client
39169
+ * @param data - L.OpsgenieSettingsFragment response data
39170
+ */
39171
+ class OpsgenieSettings extends Request {
39172
+ constructor(request, data) {
39173
+ var _a;
39174
+ super(request);
39175
+ this.apiFailedWithUnauthorizedErrorAt = (_a = parseDate(data.apiFailedWithUnauthorizedErrorAt)) !== null && _a !== void 0 ? _a : new Date();
39176
+ }
39177
+ }
39136
39178
  /**
39137
39179
  * An organization. Organizations are root-level objects that contain user accounts and teams.
39138
39180
  *
@@ -39407,20 +39449,6 @@
39407
39449
  this.startCursor = (_b = data.startCursor) !== null && _b !== void 0 ? _b : undefined;
39408
39450
  }
39409
39451
  }
39410
- /**
39411
- * Metadata about a PagerDuty schedule.
39412
- *
39413
- * @param request - function to call the graphql client
39414
- * @param data - L.PagerDutyScheduleInfoFragment response data
39415
- */
39416
- class PagerDutyScheduleInfo extends Request {
39417
- constructor(request, data) {
39418
- super(request);
39419
- this.scheduleId = data.scheduleId;
39420
- this.scheduleName = data.scheduleName;
39421
- this.url = data.url;
39422
- }
39423
- }
39424
39452
  /**
39425
39453
  * PagerDuty specific settings.
39426
39454
  *
@@ -39429,8 +39457,9 @@
39429
39457
  */
39430
39458
  class PagerDutySettings extends Request {
39431
39459
  constructor(request, data) {
39460
+ var _a;
39432
39461
  super(request);
39433
- this.scheduleMapping = data.scheduleMapping.map(node => new PagerDutyScheduleInfo(request, node));
39462
+ this.apiFailedWithUnauthorizedErrorAt = (_a = parseDate(data.apiFailedWithUnauthorizedErrorAt)) !== null && _a !== void 0 ? _a : new Date();
39434
39463
  }
39435
39464
  }
39436
39465
  /**
@@ -41577,6 +41606,11 @@
41577
41606
  this.id = data.id;
41578
41607
  this.notificationPreferences = data.notificationPreferences;
41579
41608
  this.showFullUserNames = data.showFullUserNames;
41609
+ this.subscribedToChangelog = data.subscribedToChangelog;
41610
+ this.subscribedToDPA = data.subscribedToDPA;
41611
+ this.subscribedToInviteAccepted = data.subscribedToInviteAccepted;
41612
+ this.subscribedToPrivacyLegalUpdates = data.subscribedToPrivacyLegalUpdates;
41613
+ this.subscribedToUnreadNotificationsReminder = data.subscribedToUnreadNotificationsReminder;
41580
41614
  this.unsubscribedFrom = data.unsubscribedFrom;
41581
41615
  this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
41582
41616
  this._user = data.user;
@@ -42868,13 +42902,12 @@
42868
42902
  * Call the IssueFilterSuggestion query and return a IssueFilterSuggestionPayload
42869
42903
  *
42870
42904
  * @param prompt - required prompt to pass to issueFilterSuggestion
42905
+ * @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
42871
42906
  * @returns parsed response from IssueFilterSuggestionQuery
42872
42907
  */
42873
- fetch(prompt) {
42908
+ fetch(prompt, variables) {
42874
42909
  return __awaiter(this, void 0, void 0, function* () {
42875
- const response = yield this._request(IssueFilterSuggestionDocument, {
42876
- prompt,
42877
- });
42910
+ const response = yield this._request(IssueFilterSuggestionDocument, Object.assign({ prompt }, variables));
42878
42911
  const data = response.issueFilterSuggestion;
42879
42912
  return new IssueFilterSuggestionPayload(this._request, data);
42880
42913
  });
@@ -51798,10 +51831,11 @@
51798
51831
  * Suggests filters for an issue view based on a text prompt.
51799
51832
  *
51800
51833
  * @param prompt - required prompt to pass to issueFilterSuggestion
51834
+ * @param variables - variables without 'prompt' to pass into the IssueFilterSuggestionQuery
51801
51835
  * @returns IssueFilterSuggestionPayload
51802
51836
  */
51803
- issueFilterSuggestion(prompt) {
51804
- return new IssueFilterSuggestionQuery(this._request).fetch(prompt);
51837
+ issueFilterSuggestion(prompt, variables) {
51838
+ return new IssueFilterSuggestionQuery(this._request).fetch(prompt, variables);
51805
51839
  }
51806
51840
  /**
51807
51841
  * Checks a CSV file validity against a specific import service.
@@ -52458,7 +52492,7 @@
52458
52492
  return new AttachmentLinkZendeskMutation(this._request).fetch(issueId, ticketId, variables);
52459
52493
  }
52460
52494
  /**
52461
- * Unsyncs an existing synced Slack attachment.
52495
+ * [DEPRECATED] Unsyncs an existing synced Slack attachment.
52462
52496
  *
52463
52497
  * @param id - required id to pass to attachmentUnsyncSlack
52464
52498
  * @returns AttachmentPayload
@@ -54744,6 +54778,7 @@
54744
54778
  exports.OauthClientApprovalNotification = OauthClientApprovalNotification;
54745
54779
  exports.OauthClientConnection = OauthClientConnection;
54746
54780
  exports.OauthToken = OauthToken;
54781
+ exports.OpsgenieSettings = OpsgenieSettings;
54747
54782
  exports.Organization = Organization;
54748
54783
  exports.OrganizationCancelDeletePayload = OrganizationCancelDeletePayload;
54749
54784
  exports.OrganizationDeleteChallengeMutation = OrganizationDeleteChallengeMutation;
@@ -54769,7 +54804,6 @@
54769
54804
  exports.Organization_UsersQuery = Organization_UsersQuery;
54770
54805
  exports.OtherLinearError = OtherLinearError;
54771
54806
  exports.PageInfo = PageInfo;
54772
- exports.PagerDutyScheduleInfo = PagerDutyScheduleInfo;
54773
54807
  exports.PagerDutySettings = PagerDutySettings;
54774
54808
  exports.PaidSubscription = PaidSubscription;
54775
54809
  exports.Project = Project;