@linear/sdk 16.0.0 → 18.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/index-cjs.js CHANGED
@@ -85442,6 +85442,24 @@ const ApplicationFragmentDoc = {
85442
85442
  },
85443
85443
  ],
85444
85444
  };
85445
+ const SharedSlackSettingsFragmentDoc = {
85446
+ kind: "Document",
85447
+ definitions: [
85448
+ {
85449
+ kind: "FragmentDefinition",
85450
+ name: { kind: "Name", value: "SharedSlackSettings" },
85451
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SharedSlackSettings" } },
85452
+ selectionSet: {
85453
+ kind: "SelectionSet",
85454
+ selections: [
85455
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85456
+ { kind: "Field", name: { kind: "Name", value: "teamId" } },
85457
+ { kind: "Field", name: { kind: "Name", value: "teamName" } },
85458
+ ],
85459
+ },
85460
+ },
85461
+ ],
85462
+ };
85445
85463
  const FrontSettingsFragmentDoc = {
85446
85464
  kind: "Document",
85447
85465
  definitions: [
@@ -85781,6 +85799,8 @@ const SlackSettingsFragmentDoc = {
85781
85799
  kind: "SelectionSet",
85782
85800
  selections: [
85783
85801
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85802
+ { kind: "Field", name: { kind: "Name", value: "teamId" } },
85803
+ { kind: "Field", name: { kind: "Name", value: "teamName" } },
85784
85804
  { kind: "Field", name: { kind: "Name", value: "linkOnIssueIdMention" } },
85785
85805
  ],
85786
85806
  },
@@ -85849,6 +85869,8 @@ const SlackAsksSettingsFragmentDoc = {
85849
85869
  kind: "SelectionSet",
85850
85870
  selections: [
85851
85871
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85872
+ { kind: "Field", name: { kind: "Name", value: "teamId" } },
85873
+ { kind: "Field", name: { kind: "Name", value: "teamName" } },
85852
85874
  {
85853
85875
  kind: "Field",
85854
85876
  name: { kind: "Name", value: "slackChannelMapping" },
@@ -86091,6 +86113,11 @@ const UserSettingsFragmentDoc = {
86091
86113
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
86092
86114
  },
86093
86115
  },
86116
+ { kind: "Field", name: { kind: "Name", value: "subscribedToDPA" } },
86117
+ { kind: "Field", name: { kind: "Name", value: "subscribedToChangelog" } },
86118
+ { kind: "Field", name: { kind: "Name", value: "subscribedToInviteAccepted" } },
86119
+ { kind: "Field", name: { kind: "Name", value: "subscribedToPrivacyLegalUpdates" } },
86120
+ { kind: "Field", name: { kind: "Name", value: "subscribedToUnreadNotificationsReminder" } },
86094
86121
  { kind: "Field", name: { kind: "Name", value: "showFullUserNames" } },
86095
86122
  ],
86096
86123
  },
@@ -88656,6 +88683,14 @@ const IssueFragmentDoc = {
88656
88683
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
88657
88684
  },
88658
88685
  },
88686
+ {
88687
+ kind: "Field",
88688
+ name: { kind: "Name", value: "sourceComment" },
88689
+ selectionSet: {
88690
+ kind: "SelectionSet",
88691
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
88692
+ },
88693
+ },
88659
88694
  {
88660
88695
  kind: "Field",
88661
88696
  name: { kind: "Name", value: "cycle" },
@@ -89492,6 +89527,14 @@ const IssueSearchResultFragmentDoc = {
89492
89527
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
89493
89528
  },
89494
89529
  },
89530
+ {
89531
+ kind: "Field",
89532
+ name: { kind: "Name", value: "sourceComment" },
89533
+ selectionSet: {
89534
+ kind: "SelectionSet",
89535
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
89536
+ },
89537
+ },
89495
89538
  {
89496
89539
  kind: "Field",
89497
89540
  name: { kind: "Name", value: "cycle" },
@@ -91576,6 +91619,7 @@ const TeamFragmentDoc = {
91576
91619
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
91577
91620
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
91578
91621
  { kind: "Field", name: { kind: "Name", value: "triageEnabled" } },
91622
+ { kind: "Field", name: { kind: "Name", value: "issueSortOrderDefaultToBottom" } },
91579
91623
  ],
91580
91624
  },
91581
91625
  },
@@ -95039,6 +95083,14 @@ const CustomView_IssuesDocument = {
95039
95083
  variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
95040
95084
  type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
95041
95085
  },
95086
+ {
95087
+ kind: "VariableDefinition",
95088
+ variable: { kind: "Variable", name: { kind: "Name", value: "sort" } },
95089
+ type: {
95090
+ kind: "ListType",
95091
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "IssueSortInput" } } },
95092
+ },
95093
+ },
95042
95094
  ],
95043
95095
  selectionSet: {
95044
95096
  kind: "SelectionSet",
@@ -95095,6 +95147,11 @@ const CustomView_IssuesDocument = {
95095
95147
  name: { kind: "Name", value: "orderBy" },
95096
95148
  value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
95097
95149
  },
95150
+ {
95151
+ kind: "Argument",
95152
+ name: { kind: "Name", value: "sort" },
95153
+ value: { kind: "Variable", name: { kind: "Name", value: "sort" } },
95154
+ },
95098
95155
  ],
95099
95156
  selectionSet: {
95100
95157
  kind: "SelectionSet",
@@ -107952,44 +108009,6 @@ const AttachmentLinkZendeskDocument = {
107952
108009
  ...AttachmentPayloadFragmentDoc.definitions,
107953
108010
  ],
107954
108011
  };
107955
- const AttachmentUnsyncSlackDocument = {
107956
- kind: "Document",
107957
- definitions: [
107958
- {
107959
- kind: "OperationDefinition",
107960
- operation: "mutation",
107961
- name: { kind: "Name", value: "attachmentUnsyncSlack" },
107962
- variableDefinitions: [
107963
- {
107964
- kind: "VariableDefinition",
107965
- variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
107966
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
107967
- },
107968
- ],
107969
- selectionSet: {
107970
- kind: "SelectionSet",
107971
- selections: [
107972
- {
107973
- kind: "Field",
107974
- name: { kind: "Name", value: "attachmentUnsyncSlack" },
107975
- arguments: [
107976
- {
107977
- kind: "Argument",
107978
- name: { kind: "Name", value: "id" },
107979
- value: { kind: "Variable", name: { kind: "Name", value: "id" } },
107980
- },
107981
- ],
107982
- selectionSet: {
107983
- kind: "SelectionSet",
107984
- selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AttachmentPayload" } }],
107985
- },
107986
- },
107987
- ],
107988
- },
107989
- },
107990
- ...AttachmentPayloadFragmentDoc.definitions,
107991
- ],
107992
- };
107993
108012
  const UpdateAttachmentDocument = {
107994
108013
  kind: "Document",
107995
108014
  definitions: [
@@ -116697,6 +116716,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
116697
116716
  GithubOAuthTokenPayloadFragmentDoc: GithubOAuthTokenPayloadFragmentDoc,
116698
116717
  UserAuthorizedApplicationFragmentDoc: UserAuthorizedApplicationFragmentDoc,
116699
116718
  ApplicationFragmentDoc: ApplicationFragmentDoc,
116719
+ SharedSlackSettingsFragmentDoc: SharedSlackSettingsFragmentDoc,
116700
116720
  FrontSettingsFragmentDoc: FrontSettingsFragmentDoc,
116701
116721
  TeamRepoMappingFragmentDoc: TeamRepoMappingFragmentDoc,
116702
116722
  GitHubRepoFragmentDoc: GitHubRepoFragmentDoc,
@@ -117100,7 +117120,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
117100
117120
  AttachmentLinkSlackDocument: AttachmentLinkSlackDocument,
117101
117121
  AttachmentLinkUrlDocument: AttachmentLinkUrlDocument,
117102
117122
  AttachmentLinkZendeskDocument: AttachmentLinkZendeskDocument,
117103
- AttachmentUnsyncSlackDocument: AttachmentUnsyncSlackDocument,
117104
117123
  UpdateAttachmentDocument: UpdateAttachmentDocument,
117105
117124
  CreateCommentDocument: CreateCommentDocument,
117106
117125
  DeleteCommentDocument: DeleteCommentDocument,
@@ -119785,7 +119804,7 @@ class IntercomSettings extends Request {
119785
119804
  */
119786
119805
  class Issue extends Request {
119787
119806
  constructor(request, data) {
119788
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
119807
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
119789
119808
  super(request);
119790
119809
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
119791
119810
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -119827,6 +119846,7 @@ class Issue extends Request {
119827
119846
  this._project = (_z = data.project) !== null && _z !== void 0 ? _z : undefined;
119828
119847
  this._projectMilestone = (_0 = data.projectMilestone) !== null && _0 !== void 0 ? _0 : undefined;
119829
119848
  this._snoozedBy = (_1 = data.snoozedBy) !== null && _1 !== void 0 ? _1 : undefined;
119849
+ this._sourceComment = (_2 = data.sourceComment) !== null && _2 !== void 0 ? _2 : undefined;
119830
119850
  this._state = data.state;
119831
119851
  this._team = data.team;
119832
119852
  }
@@ -119886,6 +119906,11 @@ class Issue extends Request {
119886
119906
  var _a, _b;
119887
119907
  return ((_a = this._snoozedBy) === null || _a === void 0 ? void 0 : _a.id) ? new UserQuery(this._request).fetch((_b = this._snoozedBy) === null || _b === void 0 ? void 0 : _b.id) : undefined;
119888
119908
  }
119909
+ /** The comment that this issue was created from. */
119910
+ get sourceComment() {
119911
+ var _a, _b;
119912
+ return ((_a = this._sourceComment) === null || _a === void 0 ? void 0 : _a.id) ? new CommentQuery(this._request).fetch({ id: (_b = this._sourceComment) === null || _b === void 0 ? void 0 : _b.id }) : undefined;
119913
+ }
119889
119914
  /** The workflow state that the issue is associated with. */
119890
119915
  get state() {
119891
119916
  return new WorkflowStateQuery(this._request).fetch(this._state.id);
@@ -120531,7 +120556,7 @@ class IssueSearchPayload extends Request {
120531
120556
  */
120532
120557
  class IssueSearchResult extends Request {
120533
120558
  constructor(request, data) {
120534
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
120559
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
120535
120560
  super(request);
120536
120561
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
120537
120562
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -120574,6 +120599,7 @@ class IssueSearchResult extends Request {
120574
120599
  this._project = (_z = data.project) !== null && _z !== void 0 ? _z : undefined;
120575
120600
  this._projectMilestone = (_0 = data.projectMilestone) !== null && _0 !== void 0 ? _0 : undefined;
120576
120601
  this._snoozedBy = (_1 = data.snoozedBy) !== null && _1 !== void 0 ? _1 : undefined;
120602
+ this._sourceComment = (_2 = data.sourceComment) !== null && _2 !== void 0 ? _2 : undefined;
120577
120603
  this._state = data.state;
120578
120604
  this._team = data.team;
120579
120605
  }
@@ -120633,6 +120659,11 @@ class IssueSearchResult extends Request {
120633
120659
  var _a, _b;
120634
120660
  return ((_a = this._snoozedBy) === null || _a === void 0 ? void 0 : _a.id) ? new UserQuery(this._request).fetch((_b = this._snoozedBy) === null || _b === void 0 ? void 0 : _b.id) : undefined;
120635
120661
  }
120662
+ /** The comment that this issue was created from. */
120663
+ get sourceComment() {
120664
+ var _a, _b;
120665
+ return ((_a = this._sourceComment) === null || _a === void 0 ? void 0 : _a.id) ? new CommentQuery(this._request).fetch({ id: (_b = this._sourceComment) === null || _b === void 0 ? void 0 : _b.id }) : undefined;
120666
+ }
120636
120667
  /** The workflow state that the issue is associated with. */
120637
120668
  get state() {
120638
120669
  return new WorkflowStateQuery(this._request).fetch(this._state.id);
@@ -122580,6 +122611,20 @@ class SentrySettings extends Request {
122580
122611
  this.organizationSlug = data.organizationSlug;
122581
122612
  }
122582
122613
  }
122614
+ /**
122615
+ * Shared Slack integration settings.
122616
+ *
122617
+ * @param request - function to call the graphql client
122618
+ * @param data - L.SharedSlackSettingsFragment response data
122619
+ */
122620
+ class SharedSlackSettings extends Request {
122621
+ constructor(request, data) {
122622
+ var _a, _b;
122623
+ super(request);
122624
+ this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122625
+ this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122626
+ }
122627
+ }
122583
122628
  /**
122584
122629
  * Slack Asks specific settings.
122585
122630
  *
@@ -122588,7 +122633,10 @@ class SentrySettings extends Request {
122588
122633
  */
122589
122634
  class SlackAsksSettings extends Request {
122590
122635
  constructor(request, data) {
122636
+ var _a, _b;
122591
122637
  super(request);
122638
+ this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122639
+ this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122592
122640
  this.slackChannelMapping = data.slackChannelMapping
122593
122641
  ? data.slackChannelMapping.map(node => new SlackChannelNameMapping(request, node))
122594
122642
  : undefined;
@@ -122674,8 +122722,11 @@ class SlackPostSettings extends Request {
122674
122722
  */
122675
122723
  class SlackSettings extends Request {
122676
122724
  constructor(request, data) {
122725
+ var _a, _b;
122677
122726
  super(request);
122678
122727
  this.linkOnIssueIdMention = data.linkOnIssueIdMention;
122728
+ this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122729
+ this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122679
122730
  }
122680
122731
  }
122681
122732
  /**
@@ -122740,6 +122791,7 @@ class Team extends Request {
122740
122791
  this.issueEstimationExtended = data.issueEstimationExtended;
122741
122792
  this.issueEstimationType = data.issueEstimationType;
122742
122793
  this.issueOrderingNoPriorityFirst = data.issueOrderingNoPriorityFirst;
122794
+ this.issueSortOrderDefaultToBottom = data.issueSortOrderDefaultToBottom;
122743
122795
  this.key = data.key;
122744
122796
  this.name = data.name;
122745
122797
  this.private = data.private;
@@ -123612,6 +123664,11 @@ class UserSettings extends Request {
123612
123664
  this.id = data.id;
123613
123665
  this.notificationPreferences = data.notificationPreferences;
123614
123666
  this.showFullUserNames = data.showFullUserNames;
123667
+ this.subscribedToChangelog = data.subscribedToChangelog;
123668
+ this.subscribedToDPA = data.subscribedToDPA;
123669
+ this.subscribedToInviteAccepted = data.subscribedToInviteAccepted;
123670
+ this.subscribedToPrivacyLegalUpdates = data.subscribedToPrivacyLegalUpdates;
123671
+ this.subscribedToUnreadNotificationsReminder = data.subscribedToUnreadNotificationsReminder;
123615
123672
  this.unsubscribedFrom = data.unsubscribedFrom;
123616
123673
  this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
123617
123674
  this._user = data.user;
@@ -126657,31 +126714,6 @@ class AttachmentLinkZendeskMutation extends Request {
126657
126714
  });
126658
126715
  }
126659
126716
  }
126660
- /**
126661
- * A fetchable AttachmentUnsyncSlack Mutation
126662
- *
126663
- * @param request - function to call the graphql client
126664
- */
126665
- class AttachmentUnsyncSlackMutation extends Request {
126666
- constructor(request) {
126667
- super(request);
126668
- }
126669
- /**
126670
- * Call the AttachmentUnsyncSlack mutation and return a AttachmentPayload
126671
- *
126672
- * @param id - required id to pass to attachmentUnsyncSlack
126673
- * @returns parsed response from AttachmentUnsyncSlackMutation
126674
- */
126675
- fetch(id) {
126676
- return __awaiter(this, void 0, void 0, function* () {
126677
- const response = yield this._request(AttachmentUnsyncSlackDocument, {
126678
- id,
126679
- });
126680
- const data = response.attachmentUnsyncSlack;
126681
- return new AttachmentPayload(this._request, data);
126682
- });
126683
- }
126684
- }
126685
126717
  /**
126686
126718
  * A fetchable UpdateAttachment Mutation
126687
126719
  *
@@ -134492,15 +134524,6 @@ class LinearSdk extends Request {
134492
134524
  attachmentLinkZendesk(issueId, ticketId, variables) {
134493
134525
  return new AttachmentLinkZendeskMutation(this._request).fetch(issueId, ticketId, variables);
134494
134526
  }
134495
- /**
134496
- * Unsyncs an existing synced Slack attachment.
134497
- *
134498
- * @param id - required id to pass to attachmentUnsyncSlack
134499
- * @returns AttachmentPayload
134500
- */
134501
- attachmentUnsyncSlack(id) {
134502
- return new AttachmentUnsyncSlackMutation(this._request).fetch(id);
134503
- }
134504
134527
  /**
134505
134528
  * Updates an existing issue attachment.
134506
134529
  *
@@ -136417,7 +136440,6 @@ exports.AttachmentLinkZendeskMutation = AttachmentLinkZendeskMutation;
136417
136440
  exports.AttachmentPayload = AttachmentPayload;
136418
136441
  exports.AttachmentQuery = AttachmentQuery;
136419
136442
  exports.AttachmentSourcesPayload = AttachmentSourcesPayload;
136420
- exports.AttachmentUnsyncSlackMutation = AttachmentUnsyncSlackMutation;
136421
136443
  exports.AttachmentsForUrlQuery = AttachmentsForUrlQuery;
136422
136444
  exports.AttachmentsQuery = AttachmentsQuery;
136423
136445
  exports.AuditEntriesQuery = AuditEntriesQuery;
@@ -136886,6 +136908,7 @@ exports.SearchIssues_ArchivePayloadQuery = SearchIssues_ArchivePayloadQuery;
136886
136908
  exports.SearchProjectsQuery = SearchProjectsQuery;
136887
136909
  exports.SearchProjects_ArchivePayloadQuery = SearchProjects_ArchivePayloadQuery;
136888
136910
  exports.SentrySettings = SentrySettings;
136911
+ exports.SharedSlackSettings = SharedSlackSettings;
136889
136912
  exports.SlackAsksSettings = SlackAsksSettings;
136890
136913
  exports.SlackAsksTeamSettings = SlackAsksTeamSettings;
136891
136914
  exports.SlackChannelConnectPayload = SlackChannelConnectPayload;