@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-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":"16.0.0"};
12
+ const env = {"npm_package_name":"@linear/sdk","npm_package_version":"18.0.0"};
13
13
  try {
14
14
  if (process) {
15
15
  process.env = Object.assign({}, process.env);
@@ -3416,6 +3416,24 @@
3416
3416
  },
3417
3417
  ],
3418
3418
  };
3419
+ const SharedSlackSettingsFragmentDoc = {
3420
+ kind: "Document",
3421
+ definitions: [
3422
+ {
3423
+ kind: "FragmentDefinition",
3424
+ name: { kind: "Name", value: "SharedSlackSettings" },
3425
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SharedSlackSettings" } },
3426
+ selectionSet: {
3427
+ kind: "SelectionSet",
3428
+ selections: [
3429
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
3430
+ { kind: "Field", name: { kind: "Name", value: "teamId" } },
3431
+ { kind: "Field", name: { kind: "Name", value: "teamName" } },
3432
+ ],
3433
+ },
3434
+ },
3435
+ ],
3436
+ };
3419
3437
  const FrontSettingsFragmentDoc = {
3420
3438
  kind: "Document",
3421
3439
  definitions: [
@@ -3755,6 +3773,8 @@
3755
3773
  kind: "SelectionSet",
3756
3774
  selections: [
3757
3775
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3776
+ { kind: "Field", name: { kind: "Name", value: "teamId" } },
3777
+ { kind: "Field", name: { kind: "Name", value: "teamName" } },
3758
3778
  { kind: "Field", name: { kind: "Name", value: "linkOnIssueIdMention" } },
3759
3779
  ],
3760
3780
  },
@@ -3823,6 +3843,8 @@
3823
3843
  kind: "SelectionSet",
3824
3844
  selections: [
3825
3845
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3846
+ { kind: "Field", name: { kind: "Name", value: "teamId" } },
3847
+ { kind: "Field", name: { kind: "Name", value: "teamName" } },
3826
3848
  {
3827
3849
  kind: "Field",
3828
3850
  name: { kind: "Name", value: "slackChannelMapping" },
@@ -4065,6 +4087,11 @@
4065
4087
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
4066
4088
  },
4067
4089
  },
4090
+ { kind: "Field", name: { kind: "Name", value: "subscribedToDPA" } },
4091
+ { kind: "Field", name: { kind: "Name", value: "subscribedToChangelog" } },
4092
+ { kind: "Field", name: { kind: "Name", value: "subscribedToInviteAccepted" } },
4093
+ { kind: "Field", name: { kind: "Name", value: "subscribedToPrivacyLegalUpdates" } },
4094
+ { kind: "Field", name: { kind: "Name", value: "subscribedToUnreadNotificationsReminder" } },
4068
4095
  { kind: "Field", name: { kind: "Name", value: "showFullUserNames" } },
4069
4096
  ],
4070
4097
  },
@@ -6630,6 +6657,14 @@
6630
6657
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
6631
6658
  },
6632
6659
  },
6660
+ {
6661
+ kind: "Field",
6662
+ name: { kind: "Name", value: "sourceComment" },
6663
+ selectionSet: {
6664
+ kind: "SelectionSet",
6665
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
6666
+ },
6667
+ },
6633
6668
  {
6634
6669
  kind: "Field",
6635
6670
  name: { kind: "Name", value: "cycle" },
@@ -7466,6 +7501,14 @@
7466
7501
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
7467
7502
  },
7468
7503
  },
7504
+ {
7505
+ kind: "Field",
7506
+ name: { kind: "Name", value: "sourceComment" },
7507
+ selectionSet: {
7508
+ kind: "SelectionSet",
7509
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
7510
+ },
7511
+ },
7469
7512
  {
7470
7513
  kind: "Field",
7471
7514
  name: { kind: "Name", value: "cycle" },
@@ -9550,6 +9593,7 @@
9550
9593
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
9551
9594
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
9552
9595
  { kind: "Field", name: { kind: "Name", value: "triageEnabled" } },
9596
+ { kind: "Field", name: { kind: "Name", value: "issueSortOrderDefaultToBottom" } },
9553
9597
  ],
9554
9598
  },
9555
9599
  },
@@ -13013,6 +13057,14 @@
13013
13057
  variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
13014
13058
  type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
13015
13059
  },
13060
+ {
13061
+ kind: "VariableDefinition",
13062
+ variable: { kind: "Variable", name: { kind: "Name", value: "sort" } },
13063
+ type: {
13064
+ kind: "ListType",
13065
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "IssueSortInput" } } },
13066
+ },
13067
+ },
13016
13068
  ],
13017
13069
  selectionSet: {
13018
13070
  kind: "SelectionSet",
@@ -13069,6 +13121,11 @@
13069
13121
  name: { kind: "Name", value: "orderBy" },
13070
13122
  value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
13071
13123
  },
13124
+ {
13125
+ kind: "Argument",
13126
+ name: { kind: "Name", value: "sort" },
13127
+ value: { kind: "Variable", name: { kind: "Name", value: "sort" } },
13128
+ },
13072
13129
  ],
13073
13130
  selectionSet: {
13074
13131
  kind: "SelectionSet",
@@ -25926,44 +25983,6 @@
25926
25983
  ...AttachmentPayloadFragmentDoc.definitions,
25927
25984
  ],
25928
25985
  };
25929
- const AttachmentUnsyncSlackDocument = {
25930
- kind: "Document",
25931
- definitions: [
25932
- {
25933
- kind: "OperationDefinition",
25934
- operation: "mutation",
25935
- name: { kind: "Name", value: "attachmentUnsyncSlack" },
25936
- variableDefinitions: [
25937
- {
25938
- kind: "VariableDefinition",
25939
- variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
25940
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
25941
- },
25942
- ],
25943
- selectionSet: {
25944
- kind: "SelectionSet",
25945
- selections: [
25946
- {
25947
- kind: "Field",
25948
- name: { kind: "Name", value: "attachmentUnsyncSlack" },
25949
- arguments: [
25950
- {
25951
- kind: "Argument",
25952
- name: { kind: "Name", value: "id" },
25953
- value: { kind: "Variable", name: { kind: "Name", value: "id" } },
25954
- },
25955
- ],
25956
- selectionSet: {
25957
- kind: "SelectionSet",
25958
- selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AttachmentPayload" } }],
25959
- },
25960
- },
25961
- ],
25962
- },
25963
- },
25964
- ...AttachmentPayloadFragmentDoc.definitions,
25965
- ],
25966
- };
25967
25986
  const UpdateAttachmentDocument = {
25968
25987
  kind: "Document",
25969
25988
  definitions: [
@@ -34671,6 +34690,7 @@
34671
34690
  GithubOAuthTokenPayloadFragmentDoc: GithubOAuthTokenPayloadFragmentDoc,
34672
34691
  UserAuthorizedApplicationFragmentDoc: UserAuthorizedApplicationFragmentDoc,
34673
34692
  ApplicationFragmentDoc: ApplicationFragmentDoc,
34693
+ SharedSlackSettingsFragmentDoc: SharedSlackSettingsFragmentDoc,
34674
34694
  FrontSettingsFragmentDoc: FrontSettingsFragmentDoc,
34675
34695
  TeamRepoMappingFragmentDoc: TeamRepoMappingFragmentDoc,
34676
34696
  GitHubRepoFragmentDoc: GitHubRepoFragmentDoc,
@@ -35074,7 +35094,6 @@
35074
35094
  AttachmentLinkSlackDocument: AttachmentLinkSlackDocument,
35075
35095
  AttachmentLinkUrlDocument: AttachmentLinkUrlDocument,
35076
35096
  AttachmentLinkZendeskDocument: AttachmentLinkZendeskDocument,
35077
- AttachmentUnsyncSlackDocument: AttachmentUnsyncSlackDocument,
35078
35097
  UpdateAttachmentDocument: UpdateAttachmentDocument,
35079
35098
  CreateCommentDocument: CreateCommentDocument,
35080
35099
  DeleteCommentDocument: DeleteCommentDocument,
@@ -37759,7 +37778,7 @@
37759
37778
  */
37760
37779
  class Issue extends Request {
37761
37780
  constructor(request, data) {
37762
- 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;
37781
+ 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;
37763
37782
  super(request);
37764
37783
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
37765
37784
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -37801,6 +37820,7 @@
37801
37820
  this._project = (_z = data.project) !== null && _z !== void 0 ? _z : undefined;
37802
37821
  this._projectMilestone = (_0 = data.projectMilestone) !== null && _0 !== void 0 ? _0 : undefined;
37803
37822
  this._snoozedBy = (_1 = data.snoozedBy) !== null && _1 !== void 0 ? _1 : undefined;
37823
+ this._sourceComment = (_2 = data.sourceComment) !== null && _2 !== void 0 ? _2 : undefined;
37804
37824
  this._state = data.state;
37805
37825
  this._team = data.team;
37806
37826
  }
@@ -37860,6 +37880,11 @@
37860
37880
  var _a, _b;
37861
37881
  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;
37862
37882
  }
37883
+ /** The comment that this issue was created from. */
37884
+ get sourceComment() {
37885
+ var _a, _b;
37886
+ 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;
37887
+ }
37863
37888
  /** The workflow state that the issue is associated with. */
37864
37889
  get state() {
37865
37890
  return new WorkflowStateQuery(this._request).fetch(this._state.id);
@@ -38505,7 +38530,7 @@
38505
38530
  */
38506
38531
  class IssueSearchResult extends Request {
38507
38532
  constructor(request, data) {
38508
- 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;
38533
+ 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;
38509
38534
  super(request);
38510
38535
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
38511
38536
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -38548,6 +38573,7 @@
38548
38573
  this._project = (_z = data.project) !== null && _z !== void 0 ? _z : undefined;
38549
38574
  this._projectMilestone = (_0 = data.projectMilestone) !== null && _0 !== void 0 ? _0 : undefined;
38550
38575
  this._snoozedBy = (_1 = data.snoozedBy) !== null && _1 !== void 0 ? _1 : undefined;
38576
+ this._sourceComment = (_2 = data.sourceComment) !== null && _2 !== void 0 ? _2 : undefined;
38551
38577
  this._state = data.state;
38552
38578
  this._team = data.team;
38553
38579
  }
@@ -38607,6 +38633,11 @@
38607
38633
  var _a, _b;
38608
38634
  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;
38609
38635
  }
38636
+ /** The comment that this issue was created from. */
38637
+ get sourceComment() {
38638
+ var _a, _b;
38639
+ 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;
38640
+ }
38610
38641
  /** The workflow state that the issue is associated with. */
38611
38642
  get state() {
38612
38643
  return new WorkflowStateQuery(this._request).fetch(this._state.id);
@@ -40554,6 +40585,20 @@
40554
40585
  this.organizationSlug = data.organizationSlug;
40555
40586
  }
40556
40587
  }
40588
+ /**
40589
+ * Shared Slack integration settings.
40590
+ *
40591
+ * @param request - function to call the graphql client
40592
+ * @param data - L.SharedSlackSettingsFragment response data
40593
+ */
40594
+ class SharedSlackSettings extends Request {
40595
+ constructor(request, data) {
40596
+ var _a, _b;
40597
+ super(request);
40598
+ this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
40599
+ this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
40600
+ }
40601
+ }
40557
40602
  /**
40558
40603
  * Slack Asks specific settings.
40559
40604
  *
@@ -40562,7 +40607,10 @@
40562
40607
  */
40563
40608
  class SlackAsksSettings extends Request {
40564
40609
  constructor(request, data) {
40610
+ var _a, _b;
40565
40611
  super(request);
40612
+ this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
40613
+ this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
40566
40614
  this.slackChannelMapping = data.slackChannelMapping
40567
40615
  ? data.slackChannelMapping.map(node => new SlackChannelNameMapping(request, node))
40568
40616
  : undefined;
@@ -40648,8 +40696,11 @@
40648
40696
  */
40649
40697
  class SlackSettings extends Request {
40650
40698
  constructor(request, data) {
40699
+ var _a, _b;
40651
40700
  super(request);
40652
40701
  this.linkOnIssueIdMention = data.linkOnIssueIdMention;
40702
+ this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
40703
+ this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
40653
40704
  }
40654
40705
  }
40655
40706
  /**
@@ -40714,6 +40765,7 @@
40714
40765
  this.issueEstimationExtended = data.issueEstimationExtended;
40715
40766
  this.issueEstimationType = data.issueEstimationType;
40716
40767
  this.issueOrderingNoPriorityFirst = data.issueOrderingNoPriorityFirst;
40768
+ this.issueSortOrderDefaultToBottom = data.issueSortOrderDefaultToBottom;
40717
40769
  this.key = data.key;
40718
40770
  this.name = data.name;
40719
40771
  this.private = data.private;
@@ -41586,6 +41638,11 @@
41586
41638
  this.id = data.id;
41587
41639
  this.notificationPreferences = data.notificationPreferences;
41588
41640
  this.showFullUserNames = data.showFullUserNames;
41641
+ this.subscribedToChangelog = data.subscribedToChangelog;
41642
+ this.subscribedToDPA = data.subscribedToDPA;
41643
+ this.subscribedToInviteAccepted = data.subscribedToInviteAccepted;
41644
+ this.subscribedToPrivacyLegalUpdates = data.subscribedToPrivacyLegalUpdates;
41645
+ this.subscribedToUnreadNotificationsReminder = data.subscribedToUnreadNotificationsReminder;
41589
41646
  this.unsubscribedFrom = data.unsubscribedFrom;
41590
41647
  this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
41591
41648
  this._user = data.user;
@@ -44631,31 +44688,6 @@
44631
44688
  });
44632
44689
  }
44633
44690
  }
44634
- /**
44635
- * A fetchable AttachmentUnsyncSlack Mutation
44636
- *
44637
- * @param request - function to call the graphql client
44638
- */
44639
- class AttachmentUnsyncSlackMutation extends Request {
44640
- constructor(request) {
44641
- super(request);
44642
- }
44643
- /**
44644
- * Call the AttachmentUnsyncSlack mutation and return a AttachmentPayload
44645
- *
44646
- * @param id - required id to pass to attachmentUnsyncSlack
44647
- * @returns parsed response from AttachmentUnsyncSlackMutation
44648
- */
44649
- fetch(id) {
44650
- return __awaiter(this, void 0, void 0, function* () {
44651
- const response = yield this._request(AttachmentUnsyncSlackDocument, {
44652
- id,
44653
- });
44654
- const data = response.attachmentUnsyncSlack;
44655
- return new AttachmentPayload(this._request, data);
44656
- });
44657
- }
44658
- }
44659
44691
  /**
44660
44692
  * A fetchable UpdateAttachment Mutation
44661
44693
  *
@@ -52466,15 +52498,6 @@
52466
52498
  attachmentLinkZendesk(issueId, ticketId, variables) {
52467
52499
  return new AttachmentLinkZendeskMutation(this._request).fetch(issueId, ticketId, variables);
52468
52500
  }
52469
- /**
52470
- * Unsyncs an existing synced Slack attachment.
52471
- *
52472
- * @param id - required id to pass to attachmentUnsyncSlack
52473
- * @returns AttachmentPayload
52474
- */
52475
- attachmentUnsyncSlack(id) {
52476
- return new AttachmentUnsyncSlackMutation(this._request).fetch(id);
52477
- }
52478
52501
  /**
52479
52502
  * Updates an existing issue attachment.
52480
52503
  *
@@ -54391,7 +54414,6 @@
54391
54414
  exports.AttachmentPayload = AttachmentPayload;
54392
54415
  exports.AttachmentQuery = AttachmentQuery;
54393
54416
  exports.AttachmentSourcesPayload = AttachmentSourcesPayload;
54394
- exports.AttachmentUnsyncSlackMutation = AttachmentUnsyncSlackMutation;
54395
54417
  exports.AttachmentsForUrlQuery = AttachmentsForUrlQuery;
54396
54418
  exports.AttachmentsQuery = AttachmentsQuery;
54397
54419
  exports.AuditEntriesQuery = AuditEntriesQuery;
@@ -54860,6 +54882,7 @@
54860
54882
  exports.SearchProjectsQuery = SearchProjectsQuery;
54861
54883
  exports.SearchProjects_ArchivePayloadQuery = SearchProjects_ArchivePayloadQuery;
54862
54884
  exports.SentrySettings = SentrySettings;
54885
+ exports.SharedSlackSettings = SharedSlackSettings;
54863
54886
  exports.SlackAsksSettings = SlackAsksSettings;
54864
54887
  exports.SlackAsksTeamSettings = SlackAsksTeamSettings;
54865
54888
  exports.SlackChannelConnectPayload = SlackChannelConnectPayload;