@linear/sdk 10.0.0 → 12.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","npm_package_version":"10.0.0"};
12
+ const env = {"npm_package_name":"linear","npm_package_version":"12.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" },
@@ -3434,6 +3433,7 @@
3434
3433
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3435
3434
  { kind: "Field", name: { kind: "Name", value: "jiraProjectId" } },
3436
3435
  { kind: "Field", name: { kind: "Name", value: "linearTeamId" } },
3436
+ { kind: "Field", name: { kind: "Name", value: "bidirectional" } },
3437
3437
  ],
3438
3438
  },
3439
3439
  },
@@ -3471,6 +3471,23 @@
3471
3471
  },
3472
3472
  ],
3473
3473
  };
3474
+ const JiraPersonalSettingsFragmentDoc = {
3475
+ kind: "Document",
3476
+ definitions: [
3477
+ {
3478
+ kind: "FragmentDefinition",
3479
+ name: { kind: "Name", value: "JiraPersonalSettings" },
3480
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "JiraPersonalSettings" } },
3481
+ selectionSet: {
3482
+ kind: "SelectionSet",
3483
+ selections: [
3484
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
3485
+ { kind: "Field", name: { kind: "Name", value: "siteName" } },
3486
+ ],
3487
+ },
3488
+ },
3489
+ ],
3490
+ };
3474
3491
  const NotionSettingsFragmentDoc = {
3475
3492
  kind: "Document",
3476
3493
  definitions: [
@@ -3602,6 +3619,7 @@
3602
3619
  { kind: "Field", name: { kind: "Name", value: "isShared" } },
3603
3620
  { kind: "Field", name: { kind: "Name", value: "autoCreateOnMessage" } },
3604
3621
  { kind: "Field", name: { kind: "Name", value: "autoCreateOnEmoji" } },
3622
+ { kind: "Field", name: { kind: "Name", value: "botAdded" } },
3605
3623
  {
3606
3624
  kind: "Field",
3607
3625
  name: { kind: "Name", value: "teams" },
@@ -3749,6 +3767,14 @@
3749
3767
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraSettings" } }],
3750
3768
  },
3751
3769
  },
3770
+ {
3771
+ kind: "Field",
3772
+ name: { kind: "Name", value: "jiraPersonal" },
3773
+ selectionSet: {
3774
+ kind: "SelectionSet",
3775
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraPersonalSettings" } }],
3776
+ },
3777
+ },
3752
3778
  {
3753
3779
  kind: "Field",
3754
3780
  name: { kind: "Name", value: "notion" },
@@ -3901,6 +3927,7 @@
3901
3927
  { kind: "Field", name: { kind: "Name", value: "name" } },
3902
3928
  { kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
3903
3929
  { kind: "Field", name: { kind: "Name", value: "userAgent" } },
3930
+ { kind: "Field", name: { kind: "Name", value: "browserType" } },
3904
3931
  { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
3905
3932
  { kind: "Field", name: { kind: "Name", value: "id" } },
3906
3933
  ],
@@ -4320,6 +4347,26 @@
4320
4347
  },
4321
4348
  ],
4322
4349
  };
4350
+ const AuthOauthClientFragmentDoc = {
4351
+ kind: "Document",
4352
+ definitions: [
4353
+ {
4354
+ kind: "FragmentDefinition",
4355
+ name: { kind: "Name", value: "AuthOauthClient" },
4356
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOauthClient" } },
4357
+ selectionSet: {
4358
+ kind: "SelectionSet",
4359
+ selections: [
4360
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
4361
+ { kind: "Field", name: { kind: "Name", value: "redirectUris" } },
4362
+ { kind: "Field", name: { kind: "Name", value: "clientId" } },
4363
+ { kind: "Field", name: { kind: "Name", value: "clientSecret" } },
4364
+ { kind: "Field", name: { kind: "Name", value: "id" } },
4365
+ ],
4366
+ },
4367
+ },
4368
+ ],
4369
+ };
4323
4370
  const AuthOrganizationFragmentDoc = {
4324
4371
  kind: "Document",
4325
4372
  definitions: [
@@ -4443,6 +4490,7 @@
4443
4490
  { kind: "Field", name: { kind: "Name", value: "name" } },
4444
4491
  { kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
4445
4492
  { kind: "Field", name: { kind: "Name", value: "userAgent" } },
4493
+ { kind: "Field", name: { kind: "Name", value: "browserType" } },
4446
4494
  { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
4447
4495
  { kind: "Field", name: { kind: "Name", value: "id" } },
4448
4496
  ],
@@ -4471,7 +4519,6 @@
4471
4519
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
4472
4520
  },
4473
4521
  },
4474
- { kind: "Field", name: { kind: "Name", value: "bodyData" } },
4475
4522
  { kind: "Field", name: { kind: "Name", value: "body" } },
4476
4523
  {
4477
4524
  kind: "Field",
@@ -4738,6 +4785,7 @@
4738
4785
  { kind: "Field", name: { kind: "Name", value: "filters" } },
4739
4786
  { kind: "Field", name: { kind: "Name", value: "icon" } },
4740
4787
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
4788
+ { kind: "Field", name: { kind: "Name", value: "modelName" } },
4741
4789
  { kind: "Field", name: { kind: "Name", value: "name" } },
4742
4790
  {
4743
4791
  kind: "Field",
@@ -5070,7 +5118,6 @@
5070
5118
  { kind: "Field", name: { kind: "Name", value: "id" } },
5071
5119
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
5072
5120
  { kind: "Field", name: { kind: "Name", value: "contentDataSnapshotAt" } },
5073
- { kind: "Field", name: { kind: "Name", value: "contentData" } },
5074
5121
  ],
5075
5122
  },
5076
5123
  },
@@ -23430,12 +23477,7 @@
23430
23477
  },
23431
23478
  {
23432
23479
  kind: "VariableDefinition",
23433
- variable: { kind: "Variable", name: { kind: "Name", value: "owner" } },
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" } },
23480
+ variable: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
23439
23481
  type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
23440
23482
  },
23441
23483
  {
@@ -23478,13 +23520,8 @@
23478
23520
  },
23479
23521
  {
23480
23522
  kind: "Argument",
23481
- name: { kind: "Name", value: "owner" },
23482
- value: { kind: "Variable", name: { kind: "Name", value: "owner" } },
23483
- },
23484
- {
23485
- kind: "Argument",
23486
- name: { kind: "Name", value: "repo" },
23487
- value: { kind: "Variable", name: { kind: "Name", value: "repo" } },
23523
+ name: { kind: "Name", value: "projectPathWithNamespace" },
23524
+ value: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
23488
23525
  },
23489
23526
  {
23490
23527
  kind: "Argument",
@@ -25583,6 +25620,44 @@
25583
25620
  ...IntegrationPayloadFragmentDoc.definitions,
25584
25621
  ],
25585
25622
  };
25623
+ const IntegrationGitHubPersonalDocument = {
25624
+ kind: "Document",
25625
+ definitions: [
25626
+ {
25627
+ kind: "OperationDefinition",
25628
+ operation: "mutation",
25629
+ name: { kind: "Name", value: "integrationGitHubPersonal" },
25630
+ variableDefinitions: [
25631
+ {
25632
+ kind: "VariableDefinition",
25633
+ variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
25634
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
25635
+ },
25636
+ ],
25637
+ selectionSet: {
25638
+ kind: "SelectionSet",
25639
+ selections: [
25640
+ {
25641
+ kind: "Field",
25642
+ name: { kind: "Name", value: "integrationGitHubPersonal" },
25643
+ arguments: [
25644
+ {
25645
+ kind: "Argument",
25646
+ name: { kind: "Name", value: "code" },
25647
+ value: { kind: "Variable", name: { kind: "Name", value: "code" } },
25648
+ },
25649
+ ],
25650
+ selectionSet: {
25651
+ kind: "SelectionSet",
25652
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationPayload" } }],
25653
+ },
25654
+ },
25655
+ ],
25656
+ },
25657
+ },
25658
+ ...IntegrationPayloadFragmentDoc.definitions,
25659
+ ],
25660
+ };
25586
25661
  const CreateIntegrationGithubCommitDocument = {
25587
25662
  kind: "Document",
25588
25663
  definitions: [
@@ -32154,6 +32229,7 @@
32154
32229
  JiraProjectDataFragmentDoc: JiraProjectDataFragmentDoc,
32155
32230
  JiraLinearMappingFragmentDoc: JiraLinearMappingFragmentDoc,
32156
32231
  JiraSettingsFragmentDoc: JiraSettingsFragmentDoc,
32232
+ JiraPersonalSettingsFragmentDoc: JiraPersonalSettingsFragmentDoc,
32157
32233
  NotionSettingsFragmentDoc: NotionSettingsFragmentDoc,
32158
32234
  PagerDutyScheduleInfoFragmentDoc: PagerDutyScheduleInfoFragmentDoc,
32159
32235
  PagerDutySettingsFragmentDoc: PagerDutySettingsFragmentDoc,
@@ -32184,6 +32260,7 @@
32184
32260
  AuthApiKeyFragmentDoc: AuthApiKeyFragmentDoc,
32185
32261
  AuthApiKeyPayloadFragmentDoc: AuthApiKeyPayloadFragmentDoc,
32186
32262
  AuthIntegrationFragmentDoc: AuthIntegrationFragmentDoc,
32263
+ AuthOauthClientFragmentDoc: AuthOauthClientFragmentDoc,
32187
32264
  AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
32188
32265
  AuthUserFragmentDoc: AuthUserFragmentDoc,
32189
32266
  AuthResolverResponseFragmentDoc: AuthResolverResponseFragmentDoc,
@@ -32552,6 +32629,7 @@
32552
32629
  IntegrationDiscordDocument: IntegrationDiscordDocument,
32553
32630
  IntegrationFigmaDocument: IntegrationFigmaDocument,
32554
32631
  IntegrationFrontDocument: IntegrationFrontDocument,
32632
+ IntegrationGitHubPersonalDocument: IntegrationGitHubPersonalDocument,
32555
32633
  CreateIntegrationGithubCommitDocument: CreateIntegrationGithubCommitDocument,
32556
32634
  IntegrationGithubConnectDocument: IntegrationGithubConnectDocument,
32557
32635
  IntegrationGithubSyncConnectDocument: IntegrationGithubSyncConnectDocument,
@@ -33179,6 +33257,21 @@
33179
33257
  this.id = data.id;
33180
33258
  }
33181
33259
  }
33260
+ /**
33261
+ * AuthOauthClient model
33262
+ *
33263
+ * @param request - function to call the graphql client
33264
+ * @param data - L.AuthOauthClientFragment response data
33265
+ */
33266
+ class AuthOauthClient extends Request {
33267
+ constructor(request, data) {
33268
+ super(request);
33269
+ this.clientId = data.clientId;
33270
+ this.clientSecret = data.clientSecret;
33271
+ this.id = data.id;
33272
+ this.redirectUris = data.redirectUris;
33273
+ }
33274
+ }
33182
33275
  /**
33183
33276
  * An organization. Organizations are root-level objects that contain users and teams.
33184
33277
  *
@@ -33250,22 +33343,23 @@
33250
33343
  */
33251
33344
  class AuthenticationSession extends Request {
33252
33345
  constructor(request, data) {
33253
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
33346
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
33254
33347
  super(request);
33255
- this.client = (_a = data.client) !== null && _a !== void 0 ? _a : undefined;
33348
+ this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
33349
+ this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
33256
33350
  this.countryCodes = data.countryCodes;
33257
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
33351
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
33258
33352
  this.id = data.id;
33259
- this.ip = (_c = data.ip) !== null && _c !== void 0 ? _c : undefined;
33260
- this.lastActiveAt = (_d = parseDate(data.lastActiveAt)) !== null && _d !== void 0 ? _d : undefined;
33261
- this.location = (_e = data.location) !== null && _e !== void 0 ? _e : undefined;
33262
- this.locationCity = (_f = data.locationCity) !== null && _f !== void 0 ? _f : undefined;
33263
- this.locationCountry = (_g = data.locationCountry) !== null && _g !== void 0 ? _g : undefined;
33264
- this.locationCountryCode = (_h = data.locationCountryCode) !== null && _h !== void 0 ? _h : undefined;
33353
+ this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
33354
+ this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
33355
+ this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
33356
+ this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
33357
+ this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
33358
+ this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
33265
33359
  this.name = data.name;
33266
- this.operatingSystem = (_j = data.operatingSystem) !== null && _j !== void 0 ? _j : undefined;
33267
- this.updatedAt = (_k = parseDate(data.updatedAt)) !== null && _k !== void 0 ? _k : new Date();
33268
- this.userAgent = (_l = data.userAgent) !== null && _l !== void 0 ? _l : undefined;
33360
+ this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
33361
+ this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
33362
+ this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
33269
33363
  }
33270
33364
  }
33271
33365
  /**
@@ -33276,23 +33370,24 @@
33276
33370
  */
33277
33371
  class AuthenticationSessionResponse extends Request {
33278
33372
  constructor(request, data) {
33279
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
33373
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
33280
33374
  super(request);
33281
- this.client = (_a = data.client) !== null && _a !== void 0 ? _a : undefined;
33375
+ this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
33376
+ this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
33282
33377
  this.countryCodes = data.countryCodes;
33283
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
33378
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
33284
33379
  this.id = data.id;
33285
- this.ip = (_c = data.ip) !== null && _c !== void 0 ? _c : undefined;
33380
+ this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
33286
33381
  this.isCurrentSession = data.isCurrentSession;
33287
- this.lastActiveAt = (_d = parseDate(data.lastActiveAt)) !== null && _d !== void 0 ? _d : undefined;
33288
- this.location = (_e = data.location) !== null && _e !== void 0 ? _e : undefined;
33289
- this.locationCity = (_f = data.locationCity) !== null && _f !== void 0 ? _f : undefined;
33290
- this.locationCountry = (_g = data.locationCountry) !== null && _g !== void 0 ? _g : undefined;
33291
- this.locationCountryCode = (_h = data.locationCountryCode) !== null && _h !== void 0 ? _h : undefined;
33382
+ this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
33383
+ this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
33384
+ this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
33385
+ this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
33386
+ this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
33292
33387
  this.name = data.name;
33293
- this.operatingSystem = (_j = data.operatingSystem) !== null && _j !== void 0 ? _j : undefined;
33294
- this.updatedAt = (_k = parseDate(data.updatedAt)) !== null && _k !== void 0 ? _k : new Date();
33295
- this.userAgent = (_l = data.userAgent) !== null && _l !== void 0 ? _l : undefined;
33388
+ this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
33389
+ this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
33390
+ this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
33296
33391
  }
33297
33392
  }
33298
33393
  /**
@@ -33307,7 +33402,6 @@
33307
33402
  super(request);
33308
33403
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
33309
33404
  this.body = data.body;
33310
- this.bodyData = data.bodyData;
33311
33405
  this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
33312
33406
  this.editedAt = (_c = parseDate(data.editedAt)) !== null && _c !== void 0 ? _c : undefined;
33313
33407
  this.id = data.id;
@@ -33316,7 +33410,7 @@
33316
33410
  this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
33317
33411
  this.url = data.url;
33318
33412
  this.botActor = data.botActor ? new ActorBot(request, data.botActor) : undefined;
33319
- this.documentContent = new DocumentContent(request, data.documentContent);
33413
+ this.documentContent = data.documentContent ? new DocumentContent(request, data.documentContent) : undefined;
33320
33414
  this._issue = data.issue;
33321
33415
  this._parent = (_g = data.parent) !== null && _g !== void 0 ? _g : undefined;
33322
33416
  this._resolvingComment = (_h = data.resolvingComment) !== null && _h !== void 0 ? _h : undefined;
@@ -33491,6 +33585,7 @@
33491
33585
  this.filters = (_f = parseJson(data.filters)) !== null && _f !== void 0 ? _f : {};
33492
33586
  this.icon = (_g = data.icon) !== null && _g !== void 0 ? _g : undefined;
33493
33587
  this.id = data.id;
33588
+ this.modelName = data.modelName;
33494
33589
  this.name = data.name;
33495
33590
  this.shared = data.shared;
33496
33591
  this.updatedAt = (_h = parseDate(data.updatedAt)) !== null && _h !== void 0 ? _h : new Date();
@@ -33898,19 +33993,18 @@
33898
33993
  */
33899
33994
  class DocumentContent extends Request {
33900
33995
  constructor(request, data) {
33901
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
33996
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
33902
33997
  super(request);
33903
33998
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
33904
33999
  this.content = (_b = data.content) !== null && _b !== void 0 ? _b : undefined;
33905
- this.contentData = (_c = parseJson(data.contentData)) !== null && _c !== void 0 ? _c : undefined;
33906
- this.contentState = (_d = data.contentState) !== null && _d !== void 0 ? _d : undefined;
33907
- this.createdAt = (_e = parseDate(data.createdAt)) !== null && _e !== void 0 ? _e : new Date();
34000
+ this.contentState = (_c = data.contentState) !== null && _c !== void 0 ? _c : undefined;
34001
+ this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
33908
34002
  this.id = data.id;
33909
- this.restoredAt = (_f = parseDate(data.restoredAt)) !== null && _f !== void 0 ? _f : undefined;
33910
- this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
33911
- this._document = (_h = data.document) !== null && _h !== void 0 ? _h : undefined;
33912
- this._issue = (_j = data.issue) !== null && _j !== void 0 ? _j : undefined;
33913
- this._project = (_k = data.project) !== null && _k !== void 0 ? _k : undefined;
34003
+ this.restoredAt = (_e = parseDate(data.restoredAt)) !== null && _e !== void 0 ? _e : undefined;
34004
+ this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
34005
+ this._document = (_g = data.document) !== null && _g !== void 0 ? _g : undefined;
34006
+ this._issue = (_h = data.issue) !== null && _h !== void 0 ? _h : undefined;
34007
+ this._project = (_j = data.project) !== null && _j !== void 0 ? _j : undefined;
33914
34008
  }
33915
34009
  /** The document that the content is associated with. */
33916
34010
  get document() {
@@ -33936,15 +34030,14 @@
33936
34030
  */
33937
34031
  class DocumentContentHistory extends Request {
33938
34032
  constructor(request, data) {
33939
- var _a, _b, _c, _d, _e;
34033
+ var _a, _b, _c, _d;
33940
34034
  super(request);
33941
34035
  this.actorIds = data.actorIds;
33942
34036
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
33943
- this.contentData = (_b = parseJson(data.contentData)) !== null && _b !== void 0 ? _b : undefined;
33944
- this.contentDataSnapshotAt = (_c = parseDate(data.contentDataSnapshotAt)) !== null && _c !== void 0 ? _c : new Date();
33945
- this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
34037
+ this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
34038
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
33946
34039
  this.id = data.id;
33947
- this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
34040
+ this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
33948
34041
  this.documentContent = new DocumentContent(request, data.documentContent);
33949
34042
  }
33950
34043
  }
@@ -33969,12 +34062,11 @@
33969
34062
  */
33970
34063
  class DocumentContentHistoryType extends Request {
33971
34064
  constructor(request, data) {
33972
- var _a, _b, _c, _d;
34065
+ var _a, _b, _c;
33973
34066
  super(request);
33974
34067
  this.actorIds = (_a = data.actorIds) !== null && _a !== void 0 ? _a : undefined;
33975
- this.contentData = (_b = parseJson(data.contentData)) !== null && _b !== void 0 ? _b : {};
33976
- this.contentDataSnapshotAt = (_c = parseDate(data.contentDataSnapshotAt)) !== null && _c !== void 0 ? _c : new Date();
33977
- this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
34068
+ this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
34069
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
33978
34070
  this.id = data.id;
33979
34071
  }
33980
34072
  }
@@ -34591,6 +34683,7 @@
34591
34683
  this.googleSheets = data.googleSheets ? new GoogleSheetsSettings(request, data.googleSheets) : undefined;
34592
34684
  this.intercom = data.intercom ? new IntercomSettings(request, data.intercom) : undefined;
34593
34685
  this.jira = data.jira ? new JiraSettings(request, data.jira) : undefined;
34686
+ this.jiraPersonal = data.jiraPersonal ? new JiraPersonalSettings(request, data.jiraPersonal) : undefined;
34594
34687
  this.notion = data.notion ? new NotionSettings(request, data.notion) : undefined;
34595
34688
  this.pagerDuty = data.pagerDuty ? new PagerDutySettings(request, data.pagerDuty) : undefined;
34596
34689
  this.sentry = data.sentry ? new SentrySettings(request, data.sentry) : undefined;
@@ -35603,11 +35696,26 @@
35603
35696
  */
35604
35697
  class JiraLinearMapping extends Request {
35605
35698
  constructor(request, data) {
35699
+ var _a;
35606
35700
  super(request);
35701
+ this.bidirectional = (_a = data.bidirectional) !== null && _a !== void 0 ? _a : undefined;
35607
35702
  this.jiraProjectId = data.jiraProjectId;
35608
35703
  this.linearTeamId = data.linearTeamId;
35609
35704
  }
35610
35705
  }
35706
+ /**
35707
+ * Jira personal specific settings.
35708
+ *
35709
+ * @param request - function to call the graphql client
35710
+ * @param data - L.JiraPersonalSettingsFragment response data
35711
+ */
35712
+ class JiraPersonalSettings extends Request {
35713
+ constructor(request, data) {
35714
+ var _a;
35715
+ super(request);
35716
+ this.siteName = (_a = data.siteName) !== null && _a !== void 0 ? _a : undefined;
35717
+ }
35718
+ }
35611
35719
  /**
35612
35720
  * Metadata about a Jira project.
35613
35721
  *
@@ -37496,14 +37604,15 @@
37496
37604
  */
37497
37605
  class SlackChannelNameMapping extends Request {
37498
37606
  constructor(request, data) {
37499
- var _a, _b, _c, _d, _e;
37607
+ var _a, _b, _c, _d, _e, _f;
37500
37608
  super(request);
37501
37609
  this.autoCreateOnBotMention = (_a = data.autoCreateOnBotMention) !== null && _a !== void 0 ? _a : undefined;
37502
37610
  this.autoCreateOnEmoji = (_b = data.autoCreateOnEmoji) !== null && _b !== void 0 ? _b : undefined;
37503
37611
  this.autoCreateOnMessage = (_c = data.autoCreateOnMessage) !== null && _c !== void 0 ? _c : undefined;
37612
+ this.botAdded = (_d = data.botAdded) !== null && _d !== void 0 ? _d : undefined;
37504
37613
  this.id = data.id;
37505
- this.isPrivate = (_d = data.isPrivate) !== null && _d !== void 0 ? _d : undefined;
37506
- this.isShared = (_e = data.isShared) !== null && _e !== void 0 ? _e : undefined;
37614
+ this.isPrivate = (_e = data.isPrivate) !== null && _e !== void 0 ? _e : undefined;
37615
+ this.isShared = (_f = data.isShared) !== null && _f !== void 0 ? _f : undefined;
37507
37616
  this.name = data.name;
37508
37617
  this.teams = data.teams.map(node => new SlackAsksTeamSettings(request, node));
37509
37618
  }
@@ -41159,18 +41268,16 @@
41159
41268
  *
41160
41269
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
41161
41270
  * @param number - required number to pass to attachmentLinkGitLabMR
41162
- * @param owner - required owner to pass to attachmentLinkGitLabMR
41163
- * @param repo - required repo to pass to attachmentLinkGitLabMR
41271
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
41164
41272
  * @param url - required url to pass to attachmentLinkGitLabMR
41165
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
41273
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
41166
41274
  * @returns parsed response from AttachmentLinkGitLabMrMutation
41167
41275
  */
41168
- fetch(issueId, number, owner, repo, url, variables) {
41276
+ fetch(issueId, number, projectPathWithNamespace, url, variables) {
41169
41277
  return __awaiter(this, void 0, void 0, function* () {
41170
41278
  const response = yield this._request(AttachmentLinkGitLabMrDocument, Object.assign({ issueId,
41171
41279
  number,
41172
- owner,
41173
- repo,
41280
+ projectPathWithNamespace,
41174
41281
  url }, variables));
41175
41282
  const data = response.attachmentLinkGitLabMR;
41176
41283
  return new AttachmentPayload(this._request, data);
@@ -42258,6 +42365,31 @@
42258
42365
  });
42259
42366
  }
42260
42367
  }
42368
+ /**
42369
+ * A fetchable IntegrationGitHubPersonal Mutation
42370
+ *
42371
+ * @param request - function to call the graphql client
42372
+ */
42373
+ class IntegrationGitHubPersonalMutation extends Request {
42374
+ constructor(request) {
42375
+ super(request);
42376
+ }
42377
+ /**
42378
+ * Call the IntegrationGitHubPersonal mutation and return a IntegrationPayload
42379
+ *
42380
+ * @param code - required code to pass to integrationGitHubPersonal
42381
+ * @returns parsed response from IntegrationGitHubPersonalMutation
42382
+ */
42383
+ fetch(code) {
42384
+ return __awaiter(this, void 0, void 0, function* () {
42385
+ const response = yield this._request(IntegrationGitHubPersonalDocument, {
42386
+ code,
42387
+ });
42388
+ const data = response.integrationGitHubPersonal;
42389
+ return new IntegrationPayload(this._request, data);
42390
+ });
42391
+ }
42392
+ }
42261
42393
  /**
42262
42394
  * A fetchable CreateIntegrationGithubCommit Mutation
42263
42395
  *
@@ -46170,7 +46302,7 @@
46170
46302
  id: this._id,
46171
46303
  });
46172
46304
  const data = response.comment.documentContent;
46173
- return new DocumentContent(this._request, data);
46305
+ return data ? new DocumentContent(this._request, data) : undefined;
46174
46306
  });
46175
46307
  }
46176
46308
  }
@@ -48611,14 +48743,13 @@
48611
48743
  *
48612
48744
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
48613
48745
  * @param number - required number to pass to attachmentLinkGitLabMR
48614
- * @param owner - required owner to pass to attachmentLinkGitLabMR
48615
- * @param repo - required repo to pass to attachmentLinkGitLabMR
48746
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
48616
48747
  * @param url - required url to pass to attachmentLinkGitLabMR
48617
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
48748
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
48618
48749
  * @returns AttachmentPayload
48619
48750
  */
48620
- attachmentLinkGitLabMR(issueId, number, owner, repo, url, variables) {
48621
- return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number, owner, repo, url, variables);
48751
+ attachmentLinkGitLabMR(issueId, number, projectPathWithNamespace, url, variables) {
48752
+ return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number, projectPathWithNamespace, url, variables);
48622
48753
  }
48623
48754
  /**
48624
48755
  * Link an existing Intercom conversation to an issue.
@@ -49028,6 +49159,15 @@
49028
49159
  integrationFront(code, redirectUri) {
49029
49160
  return new IntegrationFrontMutation(this._request).fetch(code, redirectUri);
49030
49161
  }
49162
+ /**
49163
+ * Connect your GitHub account to Linear.
49164
+ *
49165
+ * @param code - required code to pass to integrationGitHubPersonal
49166
+ * @returns IntegrationPayload
49167
+ */
49168
+ integrationGitHubPersonal(code) {
49169
+ return new IntegrationGitHubPersonalMutation(this._request).fetch(code);
49170
+ }
49031
49171
  /**
49032
49172
  * Generates a webhook for the GitHub commit integration.
49033
49173
  *
@@ -50193,7 +50333,7 @@
50193
50333
  return new UpdateUserFlagMutation(this._request).fetch(flag, operation);
50194
50334
  }
50195
50335
  /**
50196
- * Connects the GitHub user to this Linear account via OAuth2.
50336
+ * [DEPRECATED] Connects the GitHub user to this Linear account via OAuth2.
50197
50337
  *
50198
50338
  * @param code - required code to pass to userGitHubConnect
50199
50339
  * @returns UserPayload
@@ -50507,6 +50647,7 @@
50507
50647
  exports.AuthApiKeyDeletePayload = AuthApiKeyDeletePayload;
50508
50648
  exports.AuthApiKeyPayload = AuthApiKeyPayload;
50509
50649
  exports.AuthIntegration = AuthIntegration;
50650
+ exports.AuthOauthClient = AuthOauthClient;
50510
50651
  exports.AuthOrganization = AuthOrganization;
50511
50652
  exports.AuthResolverResponse = AuthResolverResponse;
50512
50653
  exports.AuthUser = AuthUser;
@@ -50676,6 +50817,7 @@
50676
50817
  exports.IntegrationDiscordMutation = IntegrationDiscordMutation;
50677
50818
  exports.IntegrationFigmaMutation = IntegrationFigmaMutation;
50678
50819
  exports.IntegrationFrontMutation = IntegrationFrontMutation;
50820
+ exports.IntegrationGitHubPersonalMutation = IntegrationGitHubPersonalMutation;
50679
50821
  exports.IntegrationGithubConnectMutation = IntegrationGithubConnectMutation;
50680
50822
  exports.IntegrationGithubSyncConnectMutation = IntegrationGithubSyncConnectMutation;
50681
50823
  exports.IntegrationGitlabConnectMutation = IntegrationGitlabConnectMutation;
@@ -50778,6 +50920,7 @@
50778
50920
  exports.Issue_SubscribersQuery = Issue_SubscribersQuery;
50779
50921
  exports.IssuesQuery = IssuesQuery;
50780
50922
  exports.JiraLinearMapping = JiraLinearMapping;
50923
+ exports.JiraPersonalSettings = JiraPersonalSettings;
50781
50924
  exports.JiraProjectData = JiraProjectData;
50782
50925
  exports.JiraSettings = JiraSettings;
50783
50926
  exports.JoinOrganizationFromOnboardingMutation = JoinOrganizationFromOnboardingMutation;