@linear/sdk 10.0.0 → 11.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 +82 -30
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +51 -19
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +180 -77
- 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 +179 -78
- 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 +181 -78
- 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","npm_package_version":"
|
12
|
+
const env = {"npm_package_name":"linear","npm_package_version":"11.0.0"};
|
13
13
|
try {
|
14
14
|
if (process) {
|
15
15
|
process.env = Object.assign({}, process.env);
|
@@ -1415,6 +1415,7 @@
|
|
1415
1415
|
IntegrationService["GitHubSync"] = "gitHubSync";
|
1416
1416
|
IntegrationService["Github"] = "github";
|
1417
1417
|
IntegrationService["GithubCommit"] = "githubCommit";
|
1418
|
+
IntegrationService["GithubPersonal"] = "githubPersonal";
|
1418
1419
|
IntegrationService["Gitlab"] = "gitlab";
|
1419
1420
|
IntegrationService["GoogleCalendarPersonal"] = "googleCalendarPersonal";
|
1420
1421
|
IntegrationService["GoogleSheets"] = "googleSheets";
|
@@ -1832,7 +1833,6 @@
|
|
1832
1833
|
kind: "SelectionSet",
|
1833
1834
|
selections: [
|
1834
1835
|
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
1835
|
-
{ kind: "Field", name: { kind: "Name", value: "contentData" } },
|
1836
1836
|
{ kind: "Field", name: { kind: "Name", value: "content" } },
|
1837
1837
|
{ kind: "Field", name: { kind: "Name", value: "contentState" } },
|
1838
1838
|
{
|
@@ -1889,7 +1889,6 @@
|
|
1889
1889
|
selections: [
|
1890
1890
|
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
1891
1891
|
{ kind: "Field", name: { kind: "Name", value: "actorIds" } },
|
1892
|
-
{ kind: "Field", name: { kind: "Name", value: "contentData" } },
|
1893
1892
|
{
|
1894
1893
|
kind: "Field",
|
1895
1894
|
name: { kind: "Name", value: "documentContent" },
|
@@ -3471,6 +3470,23 @@
|
|
3471
3470
|
},
|
3472
3471
|
],
|
3473
3472
|
};
|
3473
|
+
const JiraPersonalSettingsFragmentDoc = {
|
3474
|
+
kind: "Document",
|
3475
|
+
definitions: [
|
3476
|
+
{
|
3477
|
+
kind: "FragmentDefinition",
|
3478
|
+
name: { kind: "Name", value: "JiraPersonalSettings" },
|
3479
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "JiraPersonalSettings" } },
|
3480
|
+
selectionSet: {
|
3481
|
+
kind: "SelectionSet",
|
3482
|
+
selections: [
|
3483
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
3484
|
+
{ kind: "Field", name: { kind: "Name", value: "siteName" } },
|
3485
|
+
],
|
3486
|
+
},
|
3487
|
+
},
|
3488
|
+
],
|
3489
|
+
};
|
3474
3490
|
const NotionSettingsFragmentDoc = {
|
3475
3491
|
kind: "Document",
|
3476
3492
|
definitions: [
|
@@ -3602,6 +3618,7 @@
|
|
3602
3618
|
{ kind: "Field", name: { kind: "Name", value: "isShared" } },
|
3603
3619
|
{ kind: "Field", name: { kind: "Name", value: "autoCreateOnMessage" } },
|
3604
3620
|
{ kind: "Field", name: { kind: "Name", value: "autoCreateOnEmoji" } },
|
3621
|
+
{ kind: "Field", name: { kind: "Name", value: "botAdded" } },
|
3605
3622
|
{
|
3606
3623
|
kind: "Field",
|
3607
3624
|
name: { kind: "Name", value: "teams" },
|
@@ -3749,6 +3766,14 @@
|
|
3749
3766
|
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraSettings" } }],
|
3750
3767
|
},
|
3751
3768
|
},
|
3769
|
+
{
|
3770
|
+
kind: "Field",
|
3771
|
+
name: { kind: "Name", value: "jiraPersonal" },
|
3772
|
+
selectionSet: {
|
3773
|
+
kind: "SelectionSet",
|
3774
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraPersonalSettings" } }],
|
3775
|
+
},
|
3776
|
+
},
|
3752
3777
|
{
|
3753
3778
|
kind: "Field",
|
3754
3779
|
name: { kind: "Name", value: "notion" },
|
@@ -3901,6 +3926,7 @@
|
|
3901
3926
|
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
3902
3927
|
{ kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
|
3903
3928
|
{ kind: "Field", name: { kind: "Name", value: "userAgent" } },
|
3929
|
+
{ kind: "Field", name: { kind: "Name", value: "browserType" } },
|
3904
3930
|
{ kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
|
3905
3931
|
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
3906
3932
|
],
|
@@ -4443,6 +4469,7 @@
|
|
4443
4469
|
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
4444
4470
|
{ kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
|
4445
4471
|
{ kind: "Field", name: { kind: "Name", value: "userAgent" } },
|
4472
|
+
{ kind: "Field", name: { kind: "Name", value: "browserType" } },
|
4446
4473
|
{ kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
|
4447
4474
|
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
4448
4475
|
],
|
@@ -4471,7 +4498,6 @@
|
|
4471
4498
|
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
|
4472
4499
|
},
|
4473
4500
|
},
|
4474
|
-
{ kind: "Field", name: { kind: "Name", value: "bodyData" } },
|
4475
4501
|
{ kind: "Field", name: { kind: "Name", value: "body" } },
|
4476
4502
|
{
|
4477
4503
|
kind: "Field",
|
@@ -4738,6 +4764,7 @@
|
|
4738
4764
|
{ kind: "Field", name: { kind: "Name", value: "filters" } },
|
4739
4765
|
{ kind: "Field", name: { kind: "Name", value: "icon" } },
|
4740
4766
|
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
4767
|
+
{ kind: "Field", name: { kind: "Name", value: "modelName" } },
|
4741
4768
|
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
4742
4769
|
{
|
4743
4770
|
kind: "Field",
|
@@ -5070,7 +5097,6 @@
|
|
5070
5097
|
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
5071
5098
|
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
5072
5099
|
{ kind: "Field", name: { kind: "Name", value: "contentDataSnapshotAt" } },
|
5073
|
-
{ kind: "Field", name: { kind: "Name", value: "contentData" } },
|
5074
5100
|
],
|
5075
5101
|
},
|
5076
5102
|
},
|
@@ -23430,12 +23456,7 @@
|
|
23430
23456
|
},
|
23431
23457
|
{
|
23432
23458
|
kind: "VariableDefinition",
|
23433
|
-
variable: { kind: "Variable", name: { kind: "Name", value: "
|
23434
|
-
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
23435
|
-
},
|
23436
|
-
{
|
23437
|
-
kind: "VariableDefinition",
|
23438
|
-
variable: { kind: "Variable", name: { kind: "Name", value: "repo" } },
|
23459
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
|
23439
23460
|
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
23440
23461
|
},
|
23441
23462
|
{
|
@@ -23478,13 +23499,8 @@
|
|
23478
23499
|
},
|
23479
23500
|
{
|
23480
23501
|
kind: "Argument",
|
23481
|
-
name: { kind: "Name", value: "
|
23482
|
-
value: { kind: "Variable", name: { kind: "Name", value: "
|
23483
|
-
},
|
23484
|
-
{
|
23485
|
-
kind: "Argument",
|
23486
|
-
name: { kind: "Name", value: "repo" },
|
23487
|
-
value: { kind: "Variable", name: { kind: "Name", value: "repo" } },
|
23502
|
+
name: { kind: "Name", value: "projectPathWithNamespace" },
|
23503
|
+
value: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
|
23488
23504
|
},
|
23489
23505
|
{
|
23490
23506
|
kind: "Argument",
|
@@ -25583,6 +25599,44 @@
|
|
25583
25599
|
...IntegrationPayloadFragmentDoc.definitions,
|
25584
25600
|
],
|
25585
25601
|
};
|
25602
|
+
const IntegrationGitHubPersonalDocument = {
|
25603
|
+
kind: "Document",
|
25604
|
+
definitions: [
|
25605
|
+
{
|
25606
|
+
kind: "OperationDefinition",
|
25607
|
+
operation: "mutation",
|
25608
|
+
name: { kind: "Name", value: "integrationGitHubPersonal" },
|
25609
|
+
variableDefinitions: [
|
25610
|
+
{
|
25611
|
+
kind: "VariableDefinition",
|
25612
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
25613
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
25614
|
+
},
|
25615
|
+
],
|
25616
|
+
selectionSet: {
|
25617
|
+
kind: "SelectionSet",
|
25618
|
+
selections: [
|
25619
|
+
{
|
25620
|
+
kind: "Field",
|
25621
|
+
name: { kind: "Name", value: "integrationGitHubPersonal" },
|
25622
|
+
arguments: [
|
25623
|
+
{
|
25624
|
+
kind: "Argument",
|
25625
|
+
name: { kind: "Name", value: "code" },
|
25626
|
+
value: { kind: "Variable", name: { kind: "Name", value: "code" } },
|
25627
|
+
},
|
25628
|
+
],
|
25629
|
+
selectionSet: {
|
25630
|
+
kind: "SelectionSet",
|
25631
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationPayload" } }],
|
25632
|
+
},
|
25633
|
+
},
|
25634
|
+
],
|
25635
|
+
},
|
25636
|
+
},
|
25637
|
+
...IntegrationPayloadFragmentDoc.definitions,
|
25638
|
+
],
|
25639
|
+
};
|
25586
25640
|
const CreateIntegrationGithubCommitDocument = {
|
25587
25641
|
kind: "Document",
|
25588
25642
|
definitions: [
|
@@ -32154,6 +32208,7 @@
|
|
32154
32208
|
JiraProjectDataFragmentDoc: JiraProjectDataFragmentDoc,
|
32155
32209
|
JiraLinearMappingFragmentDoc: JiraLinearMappingFragmentDoc,
|
32156
32210
|
JiraSettingsFragmentDoc: JiraSettingsFragmentDoc,
|
32211
|
+
JiraPersonalSettingsFragmentDoc: JiraPersonalSettingsFragmentDoc,
|
32157
32212
|
NotionSettingsFragmentDoc: NotionSettingsFragmentDoc,
|
32158
32213
|
PagerDutyScheduleInfoFragmentDoc: PagerDutyScheduleInfoFragmentDoc,
|
32159
32214
|
PagerDutySettingsFragmentDoc: PagerDutySettingsFragmentDoc,
|
@@ -32552,6 +32607,7 @@
|
|
32552
32607
|
IntegrationDiscordDocument: IntegrationDiscordDocument,
|
32553
32608
|
IntegrationFigmaDocument: IntegrationFigmaDocument,
|
32554
32609
|
IntegrationFrontDocument: IntegrationFrontDocument,
|
32610
|
+
IntegrationGitHubPersonalDocument: IntegrationGitHubPersonalDocument,
|
32555
32611
|
CreateIntegrationGithubCommitDocument: CreateIntegrationGithubCommitDocument,
|
32556
32612
|
IntegrationGithubConnectDocument: IntegrationGithubConnectDocument,
|
32557
32613
|
IntegrationGithubSyncConnectDocument: IntegrationGithubSyncConnectDocument,
|
@@ -33250,22 +33306,23 @@
|
|
33250
33306
|
*/
|
33251
33307
|
class AuthenticationSession extends Request {
|
33252
33308
|
constructor(request, data) {
|
33253
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
33309
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
33254
33310
|
super(request);
|
33255
|
-
this.
|
33311
|
+
this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
|
33312
|
+
this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
|
33256
33313
|
this.countryCodes = data.countryCodes;
|
33257
|
-
this.createdAt = (
|
33314
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
33258
33315
|
this.id = data.id;
|
33259
|
-
this.ip = (
|
33260
|
-
this.lastActiveAt = (
|
33261
|
-
this.location = (
|
33262
|
-
this.locationCity = (
|
33263
|
-
this.locationCountry = (
|
33264
|
-
this.locationCountryCode = (
|
33316
|
+
this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
|
33317
|
+
this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
|
33318
|
+
this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
|
33319
|
+
this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
|
33320
|
+
this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
|
33321
|
+
this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
|
33265
33322
|
this.name = data.name;
|
33266
|
-
this.operatingSystem = (
|
33267
|
-
this.updatedAt = (
|
33268
|
-
this.userAgent = (
|
33323
|
+
this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
|
33324
|
+
this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
|
33325
|
+
this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
|
33269
33326
|
}
|
33270
33327
|
}
|
33271
33328
|
/**
|
@@ -33276,23 +33333,24 @@
|
|
33276
33333
|
*/
|
33277
33334
|
class AuthenticationSessionResponse extends Request {
|
33278
33335
|
constructor(request, data) {
|
33279
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
33336
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
33280
33337
|
super(request);
|
33281
|
-
this.
|
33338
|
+
this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
|
33339
|
+
this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
|
33282
33340
|
this.countryCodes = data.countryCodes;
|
33283
|
-
this.createdAt = (
|
33341
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
33284
33342
|
this.id = data.id;
|
33285
|
-
this.ip = (
|
33343
|
+
this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
|
33286
33344
|
this.isCurrentSession = data.isCurrentSession;
|
33287
|
-
this.lastActiveAt = (
|
33288
|
-
this.location = (
|
33289
|
-
this.locationCity = (
|
33290
|
-
this.locationCountry = (
|
33291
|
-
this.locationCountryCode = (
|
33345
|
+
this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
|
33346
|
+
this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
|
33347
|
+
this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
|
33348
|
+
this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
|
33349
|
+
this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
|
33292
33350
|
this.name = data.name;
|
33293
|
-
this.operatingSystem = (
|
33294
|
-
this.updatedAt = (
|
33295
|
-
this.userAgent = (
|
33351
|
+
this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
|
33352
|
+
this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
|
33353
|
+
this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
|
33296
33354
|
}
|
33297
33355
|
}
|
33298
33356
|
/**
|
@@ -33307,7 +33365,6 @@
|
|
33307
33365
|
super(request);
|
33308
33366
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
33309
33367
|
this.body = data.body;
|
33310
|
-
this.bodyData = data.bodyData;
|
33311
33368
|
this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
|
33312
33369
|
this.editedAt = (_c = parseDate(data.editedAt)) !== null && _c !== void 0 ? _c : undefined;
|
33313
33370
|
this.id = data.id;
|
@@ -33316,7 +33373,7 @@
|
|
33316
33373
|
this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
|
33317
33374
|
this.url = data.url;
|
33318
33375
|
this.botActor = data.botActor ? new ActorBot(request, data.botActor) : undefined;
|
33319
|
-
this.documentContent = new DocumentContent(request, data.documentContent);
|
33376
|
+
this.documentContent = data.documentContent ? new DocumentContent(request, data.documentContent) : undefined;
|
33320
33377
|
this._issue = data.issue;
|
33321
33378
|
this._parent = (_g = data.parent) !== null && _g !== void 0 ? _g : undefined;
|
33322
33379
|
this._resolvingComment = (_h = data.resolvingComment) !== null && _h !== void 0 ? _h : undefined;
|
@@ -33491,6 +33548,7 @@
|
|
33491
33548
|
this.filters = (_f = parseJson(data.filters)) !== null && _f !== void 0 ? _f : {};
|
33492
33549
|
this.icon = (_g = data.icon) !== null && _g !== void 0 ? _g : undefined;
|
33493
33550
|
this.id = data.id;
|
33551
|
+
this.modelName = data.modelName;
|
33494
33552
|
this.name = data.name;
|
33495
33553
|
this.shared = data.shared;
|
33496
33554
|
this.updatedAt = (_h = parseDate(data.updatedAt)) !== null && _h !== void 0 ? _h : new Date();
|
@@ -33898,19 +33956,18 @@
|
|
33898
33956
|
*/
|
33899
33957
|
class DocumentContent extends Request {
|
33900
33958
|
constructor(request, data) {
|
33901
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
33959
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
33902
33960
|
super(request);
|
33903
33961
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
33904
33962
|
this.content = (_b = data.content) !== null && _b !== void 0 ? _b : undefined;
|
33905
|
-
this.
|
33906
|
-
this.
|
33907
|
-
this.createdAt = (_e = parseDate(data.createdAt)) !== null && _e !== void 0 ? _e : new Date();
|
33963
|
+
this.contentState = (_c = data.contentState) !== null && _c !== void 0 ? _c : undefined;
|
33964
|
+
this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
|
33908
33965
|
this.id = data.id;
|
33909
|
-
this.restoredAt = (
|
33910
|
-
this.updatedAt = (
|
33911
|
-
this._document = (
|
33912
|
-
this._issue = (
|
33913
|
-
this._project = (
|
33966
|
+
this.restoredAt = (_e = parseDate(data.restoredAt)) !== null && _e !== void 0 ? _e : undefined;
|
33967
|
+
this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
|
33968
|
+
this._document = (_g = data.document) !== null && _g !== void 0 ? _g : undefined;
|
33969
|
+
this._issue = (_h = data.issue) !== null && _h !== void 0 ? _h : undefined;
|
33970
|
+
this._project = (_j = data.project) !== null && _j !== void 0 ? _j : undefined;
|
33914
33971
|
}
|
33915
33972
|
/** The document that the content is associated with. */
|
33916
33973
|
get document() {
|
@@ -33936,15 +33993,14 @@
|
|
33936
33993
|
*/
|
33937
33994
|
class DocumentContentHistory extends Request {
|
33938
33995
|
constructor(request, data) {
|
33939
|
-
var _a, _b, _c, _d
|
33996
|
+
var _a, _b, _c, _d;
|
33940
33997
|
super(request);
|
33941
33998
|
this.actorIds = data.actorIds;
|
33942
33999
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
33943
|
-
this.
|
33944
|
-
this.
|
33945
|
-
this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
|
34000
|
+
this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
|
34001
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
33946
34002
|
this.id = data.id;
|
33947
|
-
this.updatedAt = (
|
34003
|
+
this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
|
33948
34004
|
this.documentContent = new DocumentContent(request, data.documentContent);
|
33949
34005
|
}
|
33950
34006
|
}
|
@@ -33969,12 +34025,11 @@
|
|
33969
34025
|
*/
|
33970
34026
|
class DocumentContentHistoryType extends Request {
|
33971
34027
|
constructor(request, data) {
|
33972
|
-
var _a, _b, _c
|
34028
|
+
var _a, _b, _c;
|
33973
34029
|
super(request);
|
33974
34030
|
this.actorIds = (_a = data.actorIds) !== null && _a !== void 0 ? _a : undefined;
|
33975
|
-
this.
|
33976
|
-
this.
|
33977
|
-
this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
|
34031
|
+
this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
|
34032
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
33978
34033
|
this.id = data.id;
|
33979
34034
|
}
|
33980
34035
|
}
|
@@ -34591,6 +34646,7 @@
|
|
34591
34646
|
this.googleSheets = data.googleSheets ? new GoogleSheetsSettings(request, data.googleSheets) : undefined;
|
34592
34647
|
this.intercom = data.intercom ? new IntercomSettings(request, data.intercom) : undefined;
|
34593
34648
|
this.jira = data.jira ? new JiraSettings(request, data.jira) : undefined;
|
34649
|
+
this.jiraPersonal = data.jiraPersonal ? new JiraPersonalSettings(request, data.jiraPersonal) : undefined;
|
34594
34650
|
this.notion = data.notion ? new NotionSettings(request, data.notion) : undefined;
|
34595
34651
|
this.pagerDuty = data.pagerDuty ? new PagerDutySettings(request, data.pagerDuty) : undefined;
|
34596
34652
|
this.sentry = data.sentry ? new SentrySettings(request, data.sentry) : undefined;
|
@@ -35608,6 +35664,19 @@
|
|
35608
35664
|
this.linearTeamId = data.linearTeamId;
|
35609
35665
|
}
|
35610
35666
|
}
|
35667
|
+
/**
|
35668
|
+
* Jira personal specific settings.
|
35669
|
+
*
|
35670
|
+
* @param request - function to call the graphql client
|
35671
|
+
* @param data - L.JiraPersonalSettingsFragment response data
|
35672
|
+
*/
|
35673
|
+
class JiraPersonalSettings extends Request {
|
35674
|
+
constructor(request, data) {
|
35675
|
+
var _a;
|
35676
|
+
super(request);
|
35677
|
+
this.siteName = (_a = data.siteName) !== null && _a !== void 0 ? _a : undefined;
|
35678
|
+
}
|
35679
|
+
}
|
35611
35680
|
/**
|
35612
35681
|
* Metadata about a Jira project.
|
35613
35682
|
*
|
@@ -37496,14 +37565,15 @@
|
|
37496
37565
|
*/
|
37497
37566
|
class SlackChannelNameMapping extends Request {
|
37498
37567
|
constructor(request, data) {
|
37499
|
-
var _a, _b, _c, _d, _e;
|
37568
|
+
var _a, _b, _c, _d, _e, _f;
|
37500
37569
|
super(request);
|
37501
37570
|
this.autoCreateOnBotMention = (_a = data.autoCreateOnBotMention) !== null && _a !== void 0 ? _a : undefined;
|
37502
37571
|
this.autoCreateOnEmoji = (_b = data.autoCreateOnEmoji) !== null && _b !== void 0 ? _b : undefined;
|
37503
37572
|
this.autoCreateOnMessage = (_c = data.autoCreateOnMessage) !== null && _c !== void 0 ? _c : undefined;
|
37573
|
+
this.botAdded = (_d = data.botAdded) !== null && _d !== void 0 ? _d : undefined;
|
37504
37574
|
this.id = data.id;
|
37505
|
-
this.isPrivate = (
|
37506
|
-
this.isShared = (
|
37575
|
+
this.isPrivate = (_e = data.isPrivate) !== null && _e !== void 0 ? _e : undefined;
|
37576
|
+
this.isShared = (_f = data.isShared) !== null && _f !== void 0 ? _f : undefined;
|
37507
37577
|
this.name = data.name;
|
37508
37578
|
this.teams = data.teams.map(node => new SlackAsksTeamSettings(request, node));
|
37509
37579
|
}
|
@@ -41159,18 +41229,16 @@
|
|
41159
41229
|
*
|
41160
41230
|
* @param issueId - required issueId to pass to attachmentLinkGitLabMR
|
41161
41231
|
* @param number - required number to pass to attachmentLinkGitLabMR
|
41162
|
-
* @param
|
41163
|
-
* @param repo - required repo to pass to attachmentLinkGitLabMR
|
41232
|
+
* @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
|
41164
41233
|
* @param url - required url to pass to attachmentLinkGitLabMR
|
41165
|
-
* @param variables - variables without 'issueId', 'number', '
|
41234
|
+
* @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
|
41166
41235
|
* @returns parsed response from AttachmentLinkGitLabMrMutation
|
41167
41236
|
*/
|
41168
|
-
fetch(issueId, number,
|
41237
|
+
fetch(issueId, number, projectPathWithNamespace, url, variables) {
|
41169
41238
|
return __awaiter(this, void 0, void 0, function* () {
|
41170
41239
|
const response = yield this._request(AttachmentLinkGitLabMrDocument, Object.assign({ issueId,
|
41171
41240
|
number,
|
41172
|
-
|
41173
|
-
repo,
|
41241
|
+
projectPathWithNamespace,
|
41174
41242
|
url }, variables));
|
41175
41243
|
const data = response.attachmentLinkGitLabMR;
|
41176
41244
|
return new AttachmentPayload(this._request, data);
|
@@ -42258,6 +42326,31 @@
|
|
42258
42326
|
});
|
42259
42327
|
}
|
42260
42328
|
}
|
42329
|
+
/**
|
42330
|
+
* A fetchable IntegrationGitHubPersonal Mutation
|
42331
|
+
*
|
42332
|
+
* @param request - function to call the graphql client
|
42333
|
+
*/
|
42334
|
+
class IntegrationGitHubPersonalMutation extends Request {
|
42335
|
+
constructor(request) {
|
42336
|
+
super(request);
|
42337
|
+
}
|
42338
|
+
/**
|
42339
|
+
* Call the IntegrationGitHubPersonal mutation and return a IntegrationPayload
|
42340
|
+
*
|
42341
|
+
* @param code - required code to pass to integrationGitHubPersonal
|
42342
|
+
* @returns parsed response from IntegrationGitHubPersonalMutation
|
42343
|
+
*/
|
42344
|
+
fetch(code) {
|
42345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
42346
|
+
const response = yield this._request(IntegrationGitHubPersonalDocument, {
|
42347
|
+
code,
|
42348
|
+
});
|
42349
|
+
const data = response.integrationGitHubPersonal;
|
42350
|
+
return new IntegrationPayload(this._request, data);
|
42351
|
+
});
|
42352
|
+
}
|
42353
|
+
}
|
42261
42354
|
/**
|
42262
42355
|
* A fetchable CreateIntegrationGithubCommit Mutation
|
42263
42356
|
*
|
@@ -46170,7 +46263,7 @@
|
|
46170
46263
|
id: this._id,
|
46171
46264
|
});
|
46172
46265
|
const data = response.comment.documentContent;
|
46173
|
-
return new DocumentContent(this._request, data);
|
46266
|
+
return data ? new DocumentContent(this._request, data) : undefined;
|
46174
46267
|
});
|
46175
46268
|
}
|
46176
46269
|
}
|
@@ -48611,14 +48704,13 @@
|
|
48611
48704
|
*
|
48612
48705
|
* @param issueId - required issueId to pass to attachmentLinkGitLabMR
|
48613
48706
|
* @param number - required number to pass to attachmentLinkGitLabMR
|
48614
|
-
* @param
|
48615
|
-
* @param repo - required repo to pass to attachmentLinkGitLabMR
|
48707
|
+
* @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
|
48616
48708
|
* @param url - required url to pass to attachmentLinkGitLabMR
|
48617
|
-
* @param variables - variables without 'issueId', 'number', '
|
48709
|
+
* @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
|
48618
48710
|
* @returns AttachmentPayload
|
48619
48711
|
*/
|
48620
|
-
attachmentLinkGitLabMR(issueId, number,
|
48621
|
-
return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number,
|
48712
|
+
attachmentLinkGitLabMR(issueId, number, projectPathWithNamespace, url, variables) {
|
48713
|
+
return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number, projectPathWithNamespace, url, variables);
|
48622
48714
|
}
|
48623
48715
|
/**
|
48624
48716
|
* Link an existing Intercom conversation to an issue.
|
@@ -49028,6 +49120,15 @@
|
|
49028
49120
|
integrationFront(code, redirectUri) {
|
49029
49121
|
return new IntegrationFrontMutation(this._request).fetch(code, redirectUri);
|
49030
49122
|
}
|
49123
|
+
/**
|
49124
|
+
* Connect your GitHub account to Linear.
|
49125
|
+
*
|
49126
|
+
* @param code - required code to pass to integrationGitHubPersonal
|
49127
|
+
* @returns IntegrationPayload
|
49128
|
+
*/
|
49129
|
+
integrationGitHubPersonal(code) {
|
49130
|
+
return new IntegrationGitHubPersonalMutation(this._request).fetch(code);
|
49131
|
+
}
|
49031
49132
|
/**
|
49032
49133
|
* Generates a webhook for the GitHub commit integration.
|
49033
49134
|
*
|
@@ -50193,7 +50294,7 @@
|
|
50193
50294
|
return new UpdateUserFlagMutation(this._request).fetch(flag, operation);
|
50194
50295
|
}
|
50195
50296
|
/**
|
50196
|
-
* Connects the GitHub user to this Linear account via OAuth2.
|
50297
|
+
* [DEPRECATED] Connects the GitHub user to this Linear account via OAuth2.
|
50197
50298
|
*
|
50198
50299
|
* @param code - required code to pass to userGitHubConnect
|
50199
50300
|
* @returns UserPayload
|
@@ -50676,6 +50777,7 @@
|
|
50676
50777
|
exports.IntegrationDiscordMutation = IntegrationDiscordMutation;
|
50677
50778
|
exports.IntegrationFigmaMutation = IntegrationFigmaMutation;
|
50678
50779
|
exports.IntegrationFrontMutation = IntegrationFrontMutation;
|
50780
|
+
exports.IntegrationGitHubPersonalMutation = IntegrationGitHubPersonalMutation;
|
50679
50781
|
exports.IntegrationGithubConnectMutation = IntegrationGithubConnectMutation;
|
50680
50782
|
exports.IntegrationGithubSyncConnectMutation = IntegrationGithubSyncConnectMutation;
|
50681
50783
|
exports.IntegrationGitlabConnectMutation = IntegrationGitlabConnectMutation;
|
@@ -50778,6 +50880,7 @@
|
|
50778
50880
|
exports.Issue_SubscribersQuery = Issue_SubscribersQuery;
|
50779
50881
|
exports.IssuesQuery = IssuesQuery;
|
50780
50882
|
exports.JiraLinearMapping = JiraLinearMapping;
|
50883
|
+
exports.JiraPersonalSettings = JiraPersonalSettings;
|
50781
50884
|
exports.JiraProjectData = JiraProjectData;
|
50782
50885
|
exports.JiraSettings = JiraSettings;
|
50783
50886
|
exports.JoinOrganizationFromOnboardingMutation = JoinOrganizationFromOnboardingMutation;
|