@linear/sdk 17.0.1 → 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/_generated_documents.d.ts +74 -39
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +28 -23
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +74 -76
- 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 +74 -76
- 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 +75 -77
- 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-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":"
|
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" },
|
@@ -6635,6 +6657,14 @@
|
|
6635
6657
|
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
|
6636
6658
|
},
|
6637
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
|
+
},
|
6638
6668
|
{
|
6639
6669
|
kind: "Field",
|
6640
6670
|
name: { kind: "Name", value: "cycle" },
|
@@ -7471,6 +7501,14 @@
|
|
7471
7501
|
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
|
7472
7502
|
},
|
7473
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
|
+
},
|
7474
7512
|
{
|
7475
7513
|
kind: "Field",
|
7476
7514
|
name: { kind: "Name", value: "cycle" },
|
@@ -25945,44 +25983,6 @@
|
|
25945
25983
|
...AttachmentPayloadFragmentDoc.definitions,
|
25946
25984
|
],
|
25947
25985
|
};
|
25948
|
-
const AttachmentUnsyncSlackDocument = {
|
25949
|
-
kind: "Document",
|
25950
|
-
definitions: [
|
25951
|
-
{
|
25952
|
-
kind: "OperationDefinition",
|
25953
|
-
operation: "mutation",
|
25954
|
-
name: { kind: "Name", value: "attachmentUnsyncSlack" },
|
25955
|
-
variableDefinitions: [
|
25956
|
-
{
|
25957
|
-
kind: "VariableDefinition",
|
25958
|
-
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
25959
|
-
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
25960
|
-
},
|
25961
|
-
],
|
25962
|
-
selectionSet: {
|
25963
|
-
kind: "SelectionSet",
|
25964
|
-
selections: [
|
25965
|
-
{
|
25966
|
-
kind: "Field",
|
25967
|
-
name: { kind: "Name", value: "attachmentUnsyncSlack" },
|
25968
|
-
arguments: [
|
25969
|
-
{
|
25970
|
-
kind: "Argument",
|
25971
|
-
name: { kind: "Name", value: "id" },
|
25972
|
-
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
25973
|
-
},
|
25974
|
-
],
|
25975
|
-
selectionSet: {
|
25976
|
-
kind: "SelectionSet",
|
25977
|
-
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AttachmentPayload" } }],
|
25978
|
-
},
|
25979
|
-
},
|
25980
|
-
],
|
25981
|
-
},
|
25982
|
-
},
|
25983
|
-
...AttachmentPayloadFragmentDoc.definitions,
|
25984
|
-
],
|
25985
|
-
};
|
25986
25986
|
const UpdateAttachmentDocument = {
|
25987
25987
|
kind: "Document",
|
25988
25988
|
definitions: [
|
@@ -34690,6 +34690,7 @@
|
|
34690
34690
|
GithubOAuthTokenPayloadFragmentDoc: GithubOAuthTokenPayloadFragmentDoc,
|
34691
34691
|
UserAuthorizedApplicationFragmentDoc: UserAuthorizedApplicationFragmentDoc,
|
34692
34692
|
ApplicationFragmentDoc: ApplicationFragmentDoc,
|
34693
|
+
SharedSlackSettingsFragmentDoc: SharedSlackSettingsFragmentDoc,
|
34693
34694
|
FrontSettingsFragmentDoc: FrontSettingsFragmentDoc,
|
34694
34695
|
TeamRepoMappingFragmentDoc: TeamRepoMappingFragmentDoc,
|
34695
34696
|
GitHubRepoFragmentDoc: GitHubRepoFragmentDoc,
|
@@ -35093,7 +35094,6 @@
|
|
35093
35094
|
AttachmentLinkSlackDocument: AttachmentLinkSlackDocument,
|
35094
35095
|
AttachmentLinkUrlDocument: AttachmentLinkUrlDocument,
|
35095
35096
|
AttachmentLinkZendeskDocument: AttachmentLinkZendeskDocument,
|
35096
|
-
AttachmentUnsyncSlackDocument: AttachmentUnsyncSlackDocument,
|
35097
35097
|
UpdateAttachmentDocument: UpdateAttachmentDocument,
|
35098
35098
|
CreateCommentDocument: CreateCommentDocument,
|
35099
35099
|
DeleteCommentDocument: DeleteCommentDocument,
|
@@ -37778,7 +37778,7 @@
|
|
37778
37778
|
*/
|
37779
37779
|
class Issue extends Request {
|
37780
37780
|
constructor(request, data) {
|
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;
|
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;
|
37782
37782
|
super(request);
|
37783
37783
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
37784
37784
|
this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
|
@@ -37820,6 +37820,7 @@
|
|
37820
37820
|
this._project = (_z = data.project) !== null && _z !== void 0 ? _z : undefined;
|
37821
37821
|
this._projectMilestone = (_0 = data.projectMilestone) !== null && _0 !== void 0 ? _0 : undefined;
|
37822
37822
|
this._snoozedBy = (_1 = data.snoozedBy) !== null && _1 !== void 0 ? _1 : undefined;
|
37823
|
+
this._sourceComment = (_2 = data.sourceComment) !== null && _2 !== void 0 ? _2 : undefined;
|
37823
37824
|
this._state = data.state;
|
37824
37825
|
this._team = data.team;
|
37825
37826
|
}
|
@@ -37879,6 +37880,11 @@
|
|
37879
37880
|
var _a, _b;
|
37880
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;
|
37881
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
|
+
}
|
37882
37888
|
/** The workflow state that the issue is associated with. */
|
37883
37889
|
get state() {
|
37884
37890
|
return new WorkflowStateQuery(this._request).fetch(this._state.id);
|
@@ -38524,7 +38530,7 @@
|
|
38524
38530
|
*/
|
38525
38531
|
class IssueSearchResult extends Request {
|
38526
38532
|
constructor(request, data) {
|
38527
|
-
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;
|
38528
38534
|
super(request);
|
38529
38535
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
38530
38536
|
this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
|
@@ -38567,6 +38573,7 @@
|
|
38567
38573
|
this._project = (_z = data.project) !== null && _z !== void 0 ? _z : undefined;
|
38568
38574
|
this._projectMilestone = (_0 = data.projectMilestone) !== null && _0 !== void 0 ? _0 : undefined;
|
38569
38575
|
this._snoozedBy = (_1 = data.snoozedBy) !== null && _1 !== void 0 ? _1 : undefined;
|
38576
|
+
this._sourceComment = (_2 = data.sourceComment) !== null && _2 !== void 0 ? _2 : undefined;
|
38570
38577
|
this._state = data.state;
|
38571
38578
|
this._team = data.team;
|
38572
38579
|
}
|
@@ -38626,6 +38633,11 @@
|
|
38626
38633
|
var _a, _b;
|
38627
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;
|
38628
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
|
+
}
|
38629
38641
|
/** The workflow state that the issue is associated with. */
|
38630
38642
|
get state() {
|
38631
38643
|
return new WorkflowStateQuery(this._request).fetch(this._state.id);
|
@@ -40573,6 +40585,20 @@
|
|
40573
40585
|
this.organizationSlug = data.organizationSlug;
|
40574
40586
|
}
|
40575
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
|
+
}
|
40576
40602
|
/**
|
40577
40603
|
* Slack Asks specific settings.
|
40578
40604
|
*
|
@@ -40581,7 +40607,10 @@
|
|
40581
40607
|
*/
|
40582
40608
|
class SlackAsksSettings extends Request {
|
40583
40609
|
constructor(request, data) {
|
40610
|
+
var _a, _b;
|
40584
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;
|
40585
40614
|
this.slackChannelMapping = data.slackChannelMapping
|
40586
40615
|
? data.slackChannelMapping.map(node => new SlackChannelNameMapping(request, node))
|
40587
40616
|
: undefined;
|
@@ -40667,8 +40696,11 @@
|
|
40667
40696
|
*/
|
40668
40697
|
class SlackSettings extends Request {
|
40669
40698
|
constructor(request, data) {
|
40699
|
+
var _a, _b;
|
40670
40700
|
super(request);
|
40671
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;
|
40672
40704
|
}
|
40673
40705
|
}
|
40674
40706
|
/**
|
@@ -44656,31 +44688,6 @@
|
|
44656
44688
|
});
|
44657
44689
|
}
|
44658
44690
|
}
|
44659
|
-
/**
|
44660
|
-
* A fetchable AttachmentUnsyncSlack Mutation
|
44661
|
-
*
|
44662
|
-
* @param request - function to call the graphql client
|
44663
|
-
*/
|
44664
|
-
class AttachmentUnsyncSlackMutation extends Request {
|
44665
|
-
constructor(request) {
|
44666
|
-
super(request);
|
44667
|
-
}
|
44668
|
-
/**
|
44669
|
-
* Call the AttachmentUnsyncSlack mutation and return a AttachmentPayload
|
44670
|
-
*
|
44671
|
-
* @param id - required id to pass to attachmentUnsyncSlack
|
44672
|
-
* @returns parsed response from AttachmentUnsyncSlackMutation
|
44673
|
-
*/
|
44674
|
-
fetch(id) {
|
44675
|
-
return __awaiter(this, void 0, void 0, function* () {
|
44676
|
-
const response = yield this._request(AttachmentUnsyncSlackDocument, {
|
44677
|
-
id,
|
44678
|
-
});
|
44679
|
-
const data = response.attachmentUnsyncSlack;
|
44680
|
-
return new AttachmentPayload(this._request, data);
|
44681
|
-
});
|
44682
|
-
}
|
44683
|
-
}
|
44684
44691
|
/**
|
44685
44692
|
* A fetchable UpdateAttachment Mutation
|
44686
44693
|
*
|
@@ -52491,15 +52498,6 @@
|
|
52491
52498
|
attachmentLinkZendesk(issueId, ticketId, variables) {
|
52492
52499
|
return new AttachmentLinkZendeskMutation(this._request).fetch(issueId, ticketId, variables);
|
52493
52500
|
}
|
52494
|
-
/**
|
52495
|
-
* [DEPRECATED] Unsyncs an existing synced Slack attachment.
|
52496
|
-
*
|
52497
|
-
* @param id - required id to pass to attachmentUnsyncSlack
|
52498
|
-
* @returns AttachmentPayload
|
52499
|
-
*/
|
52500
|
-
attachmentUnsyncSlack(id) {
|
52501
|
-
return new AttachmentUnsyncSlackMutation(this._request).fetch(id);
|
52502
|
-
}
|
52503
52501
|
/**
|
52504
52502
|
* Updates an existing issue attachment.
|
52505
52503
|
*
|
@@ -54416,7 +54414,6 @@
|
|
54416
54414
|
exports.AttachmentPayload = AttachmentPayload;
|
54417
54415
|
exports.AttachmentQuery = AttachmentQuery;
|
54418
54416
|
exports.AttachmentSourcesPayload = AttachmentSourcesPayload;
|
54419
|
-
exports.AttachmentUnsyncSlackMutation = AttachmentUnsyncSlackMutation;
|
54420
54417
|
exports.AttachmentsForUrlQuery = AttachmentsForUrlQuery;
|
54421
54418
|
exports.AttachmentsQuery = AttachmentsQuery;
|
54422
54419
|
exports.AuditEntriesQuery = AuditEntriesQuery;
|
@@ -54885,6 +54882,7 @@
|
|
54885
54882
|
exports.SearchProjectsQuery = SearchProjectsQuery;
|
54886
54883
|
exports.SearchProjects_ArchivePayloadQuery = SearchProjects_ArchivePayloadQuery;
|
54887
54884
|
exports.SentrySettings = SentrySettings;
|
54885
|
+
exports.SharedSlackSettings = SharedSlackSettings;
|
54888
54886
|
exports.SlackAsksSettings = SlackAsksSettings;
|
54889
54887
|
exports.SlackAsksTeamSettings = SlackAsksTeamSettings;
|
54890
54888
|
exports.SlackChannelConnectPayload = SlackChannelConnectPayload;
|