@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-cjs.js CHANGED
@@ -83441,6 +83441,7 @@ var IntegrationService;
83441
83441
  IntegrationService["GitHubSync"] = "gitHubSync";
83442
83442
  IntegrationService["Github"] = "github";
83443
83443
  IntegrationService["GithubCommit"] = "githubCommit";
83444
+ IntegrationService["GithubPersonal"] = "githubPersonal";
83444
83445
  IntegrationService["Gitlab"] = "gitlab";
83445
83446
  IntegrationService["GoogleCalendarPersonal"] = "googleCalendarPersonal";
83446
83447
  IntegrationService["GoogleSheets"] = "googleSheets";
@@ -83858,7 +83859,6 @@ const DocumentContentFragmentDoc = {
83858
83859
  kind: "SelectionSet",
83859
83860
  selections: [
83860
83861
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
83861
- { kind: "Field", name: { kind: "Name", value: "contentData" } },
83862
83862
  { kind: "Field", name: { kind: "Name", value: "content" } },
83863
83863
  { kind: "Field", name: { kind: "Name", value: "contentState" } },
83864
83864
  {
@@ -83915,7 +83915,6 @@ const DocumentContentHistoryFragmentDoc = {
83915
83915
  selections: [
83916
83916
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
83917
83917
  { kind: "Field", name: { kind: "Name", value: "actorIds" } },
83918
- { kind: "Field", name: { kind: "Name", value: "contentData" } },
83919
83918
  {
83920
83919
  kind: "Field",
83921
83920
  name: { kind: "Name", value: "documentContent" },
@@ -85460,6 +85459,7 @@ const JiraLinearMappingFragmentDoc = {
85460
85459
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85461
85460
  { kind: "Field", name: { kind: "Name", value: "jiraProjectId" } },
85462
85461
  { kind: "Field", name: { kind: "Name", value: "linearTeamId" } },
85462
+ { kind: "Field", name: { kind: "Name", value: "bidirectional" } },
85463
85463
  ],
85464
85464
  },
85465
85465
  },
@@ -85497,6 +85497,23 @@ const JiraSettingsFragmentDoc = {
85497
85497
  },
85498
85498
  ],
85499
85499
  };
85500
+ const JiraPersonalSettingsFragmentDoc = {
85501
+ kind: "Document",
85502
+ definitions: [
85503
+ {
85504
+ kind: "FragmentDefinition",
85505
+ name: { kind: "Name", value: "JiraPersonalSettings" },
85506
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "JiraPersonalSettings" } },
85507
+ selectionSet: {
85508
+ kind: "SelectionSet",
85509
+ selections: [
85510
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85511
+ { kind: "Field", name: { kind: "Name", value: "siteName" } },
85512
+ ],
85513
+ },
85514
+ },
85515
+ ],
85516
+ };
85500
85517
  const NotionSettingsFragmentDoc = {
85501
85518
  kind: "Document",
85502
85519
  definitions: [
@@ -85628,6 +85645,7 @@ const SlackChannelNameMappingFragmentDoc = {
85628
85645
  { kind: "Field", name: { kind: "Name", value: "isShared" } },
85629
85646
  { kind: "Field", name: { kind: "Name", value: "autoCreateOnMessage" } },
85630
85647
  { kind: "Field", name: { kind: "Name", value: "autoCreateOnEmoji" } },
85648
+ { kind: "Field", name: { kind: "Name", value: "botAdded" } },
85631
85649
  {
85632
85650
  kind: "Field",
85633
85651
  name: { kind: "Name", value: "teams" },
@@ -85775,6 +85793,14 @@ const IntegrationSettingsFragmentDoc = {
85775
85793
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraSettings" } }],
85776
85794
  },
85777
85795
  },
85796
+ {
85797
+ kind: "Field",
85798
+ name: { kind: "Name", value: "jiraPersonal" },
85799
+ selectionSet: {
85800
+ kind: "SelectionSet",
85801
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "JiraPersonalSettings" } }],
85802
+ },
85803
+ },
85778
85804
  {
85779
85805
  kind: "Field",
85780
85806
  name: { kind: "Name", value: "notion" },
@@ -85927,6 +85953,7 @@ const AuthenticationSessionFragmentDoc = {
85927
85953
  { kind: "Field", name: { kind: "Name", value: "name" } },
85928
85954
  { kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
85929
85955
  { kind: "Field", name: { kind: "Name", value: "userAgent" } },
85956
+ { kind: "Field", name: { kind: "Name", value: "browserType" } },
85930
85957
  { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
85931
85958
  { kind: "Field", name: { kind: "Name", value: "id" } },
85932
85959
  ],
@@ -86346,6 +86373,26 @@ const AuthIntegrationFragmentDoc = {
86346
86373
  },
86347
86374
  ],
86348
86375
  };
86376
+ const AuthOauthClientFragmentDoc = {
86377
+ kind: "Document",
86378
+ definitions: [
86379
+ {
86380
+ kind: "FragmentDefinition",
86381
+ name: { kind: "Name", value: "AuthOauthClient" },
86382
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOauthClient" } },
86383
+ selectionSet: {
86384
+ kind: "SelectionSet",
86385
+ selections: [
86386
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
86387
+ { kind: "Field", name: { kind: "Name", value: "redirectUris" } },
86388
+ { kind: "Field", name: { kind: "Name", value: "clientId" } },
86389
+ { kind: "Field", name: { kind: "Name", value: "clientSecret" } },
86390
+ { kind: "Field", name: { kind: "Name", value: "id" } },
86391
+ ],
86392
+ },
86393
+ },
86394
+ ],
86395
+ };
86349
86396
  const AuthOrganizationFragmentDoc = {
86350
86397
  kind: "Document",
86351
86398
  definitions: [
@@ -86469,6 +86516,7 @@ const AuthenticationSessionResponseFragmentDoc = {
86469
86516
  { kind: "Field", name: { kind: "Name", value: "name" } },
86470
86517
  { kind: "Field", name: { kind: "Name", value: "operatingSystem" } },
86471
86518
  { kind: "Field", name: { kind: "Name", value: "userAgent" } },
86519
+ { kind: "Field", name: { kind: "Name", value: "browserType" } },
86472
86520
  { kind: "Field", name: { kind: "Name", value: "lastActiveAt" } },
86473
86521
  { kind: "Field", name: { kind: "Name", value: "id" } },
86474
86522
  ],
@@ -86497,7 +86545,6 @@ const CommentFragmentDoc = {
86497
86545
  selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ActorBot" } }],
86498
86546
  },
86499
86547
  },
86500
- { kind: "Field", name: { kind: "Name", value: "bodyData" } },
86501
86548
  { kind: "Field", name: { kind: "Name", value: "body" } },
86502
86549
  {
86503
86550
  kind: "Field",
@@ -86764,6 +86811,7 @@ const CustomViewFragmentDoc = {
86764
86811
  { kind: "Field", name: { kind: "Name", value: "filters" } },
86765
86812
  { kind: "Field", name: { kind: "Name", value: "icon" } },
86766
86813
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
86814
+ { kind: "Field", name: { kind: "Name", value: "modelName" } },
86767
86815
  { kind: "Field", name: { kind: "Name", value: "name" } },
86768
86816
  {
86769
86817
  kind: "Field",
@@ -87096,7 +87144,6 @@ const DocumentContentHistoryTypeFragmentDoc = {
87096
87144
  { kind: "Field", name: { kind: "Name", value: "id" } },
87097
87145
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
87098
87146
  { kind: "Field", name: { kind: "Name", value: "contentDataSnapshotAt" } },
87099
- { kind: "Field", name: { kind: "Name", value: "contentData" } },
87100
87147
  ],
87101
87148
  },
87102
87149
  },
@@ -105456,12 +105503,7 @@ const AttachmentLinkGitLabMrDocument = {
105456
105503
  },
105457
105504
  {
105458
105505
  kind: "VariableDefinition",
105459
- variable: { kind: "Variable", name: { kind: "Name", value: "owner" } },
105460
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
105461
- },
105462
- {
105463
- kind: "VariableDefinition",
105464
- variable: { kind: "Variable", name: { kind: "Name", value: "repo" } },
105506
+ variable: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
105465
105507
  type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
105466
105508
  },
105467
105509
  {
@@ -105504,13 +105546,8 @@ const AttachmentLinkGitLabMrDocument = {
105504
105546
  },
105505
105547
  {
105506
105548
  kind: "Argument",
105507
- name: { kind: "Name", value: "owner" },
105508
- value: { kind: "Variable", name: { kind: "Name", value: "owner" } },
105509
- },
105510
- {
105511
- kind: "Argument",
105512
- name: { kind: "Name", value: "repo" },
105513
- value: { kind: "Variable", name: { kind: "Name", value: "repo" } },
105549
+ name: { kind: "Name", value: "projectPathWithNamespace" },
105550
+ value: { kind: "Variable", name: { kind: "Name", value: "projectPathWithNamespace" } },
105514
105551
  },
105515
105552
  {
105516
105553
  kind: "Argument",
@@ -107609,6 +107646,44 @@ const IntegrationFrontDocument = {
107609
107646
  ...IntegrationPayloadFragmentDoc.definitions,
107610
107647
  ],
107611
107648
  };
107649
+ const IntegrationGitHubPersonalDocument = {
107650
+ kind: "Document",
107651
+ definitions: [
107652
+ {
107653
+ kind: "OperationDefinition",
107654
+ operation: "mutation",
107655
+ name: { kind: "Name", value: "integrationGitHubPersonal" },
107656
+ variableDefinitions: [
107657
+ {
107658
+ kind: "VariableDefinition",
107659
+ variable: { kind: "Variable", name: { kind: "Name", value: "code" } },
107660
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
107661
+ },
107662
+ ],
107663
+ selectionSet: {
107664
+ kind: "SelectionSet",
107665
+ selections: [
107666
+ {
107667
+ kind: "Field",
107668
+ name: { kind: "Name", value: "integrationGitHubPersonal" },
107669
+ arguments: [
107670
+ {
107671
+ kind: "Argument",
107672
+ name: { kind: "Name", value: "code" },
107673
+ value: { kind: "Variable", name: { kind: "Name", value: "code" } },
107674
+ },
107675
+ ],
107676
+ selectionSet: {
107677
+ kind: "SelectionSet",
107678
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "IntegrationPayload" } }],
107679
+ },
107680
+ },
107681
+ ],
107682
+ },
107683
+ },
107684
+ ...IntegrationPayloadFragmentDoc.definitions,
107685
+ ],
107686
+ };
107612
107687
  const CreateIntegrationGithubCommitDocument = {
107613
107688
  kind: "Document",
107614
107689
  definitions: [
@@ -114180,6 +114255,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
114180
114255
  JiraProjectDataFragmentDoc: JiraProjectDataFragmentDoc,
114181
114256
  JiraLinearMappingFragmentDoc: JiraLinearMappingFragmentDoc,
114182
114257
  JiraSettingsFragmentDoc: JiraSettingsFragmentDoc,
114258
+ JiraPersonalSettingsFragmentDoc: JiraPersonalSettingsFragmentDoc,
114183
114259
  NotionSettingsFragmentDoc: NotionSettingsFragmentDoc,
114184
114260
  PagerDutyScheduleInfoFragmentDoc: PagerDutyScheduleInfoFragmentDoc,
114185
114261
  PagerDutySettingsFragmentDoc: PagerDutySettingsFragmentDoc,
@@ -114210,6 +114286,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
114210
114286
  AuthApiKeyFragmentDoc: AuthApiKeyFragmentDoc,
114211
114287
  AuthApiKeyPayloadFragmentDoc: AuthApiKeyPayloadFragmentDoc,
114212
114288
  AuthIntegrationFragmentDoc: AuthIntegrationFragmentDoc,
114289
+ AuthOauthClientFragmentDoc: AuthOauthClientFragmentDoc,
114213
114290
  AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
114214
114291
  AuthUserFragmentDoc: AuthUserFragmentDoc,
114215
114292
  AuthResolverResponseFragmentDoc: AuthResolverResponseFragmentDoc,
@@ -114578,6 +114655,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
114578
114655
  IntegrationDiscordDocument: IntegrationDiscordDocument,
114579
114656
  IntegrationFigmaDocument: IntegrationFigmaDocument,
114580
114657
  IntegrationFrontDocument: IntegrationFrontDocument,
114658
+ IntegrationGitHubPersonalDocument: IntegrationGitHubPersonalDocument,
114581
114659
  CreateIntegrationGithubCommitDocument: CreateIntegrationGithubCommitDocument,
114582
114660
  IntegrationGithubConnectDocument: IntegrationGithubConnectDocument,
114583
114661
  IntegrationGithubSyncConnectDocument: IntegrationGithubSyncConnectDocument,
@@ -115205,6 +115283,21 @@ class AuthIntegration extends Request {
115205
115283
  this.id = data.id;
115206
115284
  }
115207
115285
  }
115286
+ /**
115287
+ * AuthOauthClient model
115288
+ *
115289
+ * @param request - function to call the graphql client
115290
+ * @param data - L.AuthOauthClientFragment response data
115291
+ */
115292
+ class AuthOauthClient extends Request {
115293
+ constructor(request, data) {
115294
+ super(request);
115295
+ this.clientId = data.clientId;
115296
+ this.clientSecret = data.clientSecret;
115297
+ this.id = data.id;
115298
+ this.redirectUris = data.redirectUris;
115299
+ }
115300
+ }
115208
115301
  /**
115209
115302
  * An organization. Organizations are root-level objects that contain users and teams.
115210
115303
  *
@@ -115276,22 +115369,23 @@ class AuthUser extends Request {
115276
115369
  */
115277
115370
  class AuthenticationSession extends Request {
115278
115371
  constructor(request, data) {
115279
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
115372
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
115280
115373
  super(request);
115281
- this.client = (_a = data.client) !== null && _a !== void 0 ? _a : undefined;
115374
+ this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
115375
+ this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
115282
115376
  this.countryCodes = data.countryCodes;
115283
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
115377
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
115284
115378
  this.id = data.id;
115285
- this.ip = (_c = data.ip) !== null && _c !== void 0 ? _c : undefined;
115286
- this.lastActiveAt = (_d = parseDate(data.lastActiveAt)) !== null && _d !== void 0 ? _d : undefined;
115287
- this.location = (_e = data.location) !== null && _e !== void 0 ? _e : undefined;
115288
- this.locationCity = (_f = data.locationCity) !== null && _f !== void 0 ? _f : undefined;
115289
- this.locationCountry = (_g = data.locationCountry) !== null && _g !== void 0 ? _g : undefined;
115290
- this.locationCountryCode = (_h = data.locationCountryCode) !== null && _h !== void 0 ? _h : undefined;
115379
+ this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
115380
+ this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
115381
+ this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
115382
+ this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
115383
+ this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
115384
+ this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
115291
115385
  this.name = data.name;
115292
- this.operatingSystem = (_j = data.operatingSystem) !== null && _j !== void 0 ? _j : undefined;
115293
- this.updatedAt = (_k = parseDate(data.updatedAt)) !== null && _k !== void 0 ? _k : new Date();
115294
- this.userAgent = (_l = data.userAgent) !== null && _l !== void 0 ? _l : undefined;
115386
+ this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
115387
+ this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
115388
+ this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
115295
115389
  }
115296
115390
  }
115297
115391
  /**
@@ -115302,23 +115396,24 @@ class AuthenticationSession extends Request {
115302
115396
  */
115303
115397
  class AuthenticationSessionResponse extends Request {
115304
115398
  constructor(request, data) {
115305
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
115399
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
115306
115400
  super(request);
115307
- this.client = (_a = data.client) !== null && _a !== void 0 ? _a : undefined;
115401
+ this.browserType = (_a = data.browserType) !== null && _a !== void 0 ? _a : undefined;
115402
+ this.client = (_b = data.client) !== null && _b !== void 0 ? _b : undefined;
115308
115403
  this.countryCodes = data.countryCodes;
115309
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
115404
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
115310
115405
  this.id = data.id;
115311
- this.ip = (_c = data.ip) !== null && _c !== void 0 ? _c : undefined;
115406
+ this.ip = (_d = data.ip) !== null && _d !== void 0 ? _d : undefined;
115312
115407
  this.isCurrentSession = data.isCurrentSession;
115313
- this.lastActiveAt = (_d = parseDate(data.lastActiveAt)) !== null && _d !== void 0 ? _d : undefined;
115314
- this.location = (_e = data.location) !== null && _e !== void 0 ? _e : undefined;
115315
- this.locationCity = (_f = data.locationCity) !== null && _f !== void 0 ? _f : undefined;
115316
- this.locationCountry = (_g = data.locationCountry) !== null && _g !== void 0 ? _g : undefined;
115317
- this.locationCountryCode = (_h = data.locationCountryCode) !== null && _h !== void 0 ? _h : undefined;
115408
+ this.lastActiveAt = (_e = parseDate(data.lastActiveAt)) !== null && _e !== void 0 ? _e : undefined;
115409
+ this.location = (_f = data.location) !== null && _f !== void 0 ? _f : undefined;
115410
+ this.locationCity = (_g = data.locationCity) !== null && _g !== void 0 ? _g : undefined;
115411
+ this.locationCountry = (_h = data.locationCountry) !== null && _h !== void 0 ? _h : undefined;
115412
+ this.locationCountryCode = (_j = data.locationCountryCode) !== null && _j !== void 0 ? _j : undefined;
115318
115413
  this.name = data.name;
115319
- this.operatingSystem = (_j = data.operatingSystem) !== null && _j !== void 0 ? _j : undefined;
115320
- this.updatedAt = (_k = parseDate(data.updatedAt)) !== null && _k !== void 0 ? _k : new Date();
115321
- this.userAgent = (_l = data.userAgent) !== null && _l !== void 0 ? _l : undefined;
115414
+ this.operatingSystem = (_k = data.operatingSystem) !== null && _k !== void 0 ? _k : undefined;
115415
+ this.updatedAt = (_l = parseDate(data.updatedAt)) !== null && _l !== void 0 ? _l : new Date();
115416
+ this.userAgent = (_m = data.userAgent) !== null && _m !== void 0 ? _m : undefined;
115322
115417
  }
115323
115418
  }
115324
115419
  /**
@@ -115333,7 +115428,6 @@ class Comment extends Request {
115333
115428
  super(request);
115334
115429
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
115335
115430
  this.body = data.body;
115336
- this.bodyData = data.bodyData;
115337
115431
  this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
115338
115432
  this.editedAt = (_c = parseDate(data.editedAt)) !== null && _c !== void 0 ? _c : undefined;
115339
115433
  this.id = data.id;
@@ -115342,7 +115436,7 @@ class Comment extends Request {
115342
115436
  this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
115343
115437
  this.url = data.url;
115344
115438
  this.botActor = data.botActor ? new ActorBot(request, data.botActor) : undefined;
115345
- this.documentContent = new DocumentContent(request, data.documentContent);
115439
+ this.documentContent = data.documentContent ? new DocumentContent(request, data.documentContent) : undefined;
115346
115440
  this._issue = data.issue;
115347
115441
  this._parent = (_g = data.parent) !== null && _g !== void 0 ? _g : undefined;
115348
115442
  this._resolvingComment = (_h = data.resolvingComment) !== null && _h !== void 0 ? _h : undefined;
@@ -115517,6 +115611,7 @@ class CustomView extends Request {
115517
115611
  this.filters = (_f = parseJson(data.filters)) !== null && _f !== void 0 ? _f : {};
115518
115612
  this.icon = (_g = data.icon) !== null && _g !== void 0 ? _g : undefined;
115519
115613
  this.id = data.id;
115614
+ this.modelName = data.modelName;
115520
115615
  this.name = data.name;
115521
115616
  this.shared = data.shared;
115522
115617
  this.updatedAt = (_h = parseDate(data.updatedAt)) !== null && _h !== void 0 ? _h : new Date();
@@ -115924,19 +116019,18 @@ class DocumentConnection extends Connection {
115924
116019
  */
115925
116020
  class DocumentContent extends Request {
115926
116021
  constructor(request, data) {
115927
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
116022
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
115928
116023
  super(request);
115929
116024
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
115930
116025
  this.content = (_b = data.content) !== null && _b !== void 0 ? _b : undefined;
115931
- this.contentData = (_c = parseJson(data.contentData)) !== null && _c !== void 0 ? _c : undefined;
115932
- this.contentState = (_d = data.contentState) !== null && _d !== void 0 ? _d : undefined;
115933
- this.createdAt = (_e = parseDate(data.createdAt)) !== null && _e !== void 0 ? _e : new Date();
116026
+ this.contentState = (_c = data.contentState) !== null && _c !== void 0 ? _c : undefined;
116027
+ this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
115934
116028
  this.id = data.id;
115935
- this.restoredAt = (_f = parseDate(data.restoredAt)) !== null && _f !== void 0 ? _f : undefined;
115936
- this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
115937
- this._document = (_h = data.document) !== null && _h !== void 0 ? _h : undefined;
115938
- this._issue = (_j = data.issue) !== null && _j !== void 0 ? _j : undefined;
115939
- this._project = (_k = data.project) !== null && _k !== void 0 ? _k : undefined;
116029
+ this.restoredAt = (_e = parseDate(data.restoredAt)) !== null && _e !== void 0 ? _e : undefined;
116030
+ this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
116031
+ this._document = (_g = data.document) !== null && _g !== void 0 ? _g : undefined;
116032
+ this._issue = (_h = data.issue) !== null && _h !== void 0 ? _h : undefined;
116033
+ this._project = (_j = data.project) !== null && _j !== void 0 ? _j : undefined;
115940
116034
  }
115941
116035
  /** The document that the content is associated with. */
115942
116036
  get document() {
@@ -115962,15 +116056,14 @@ class DocumentContent extends Request {
115962
116056
  */
115963
116057
  class DocumentContentHistory extends Request {
115964
116058
  constructor(request, data) {
115965
- var _a, _b, _c, _d, _e;
116059
+ var _a, _b, _c, _d;
115966
116060
  super(request);
115967
116061
  this.actorIds = data.actorIds;
115968
116062
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
115969
- this.contentData = (_b = parseJson(data.contentData)) !== null && _b !== void 0 ? _b : undefined;
115970
- this.contentDataSnapshotAt = (_c = parseDate(data.contentDataSnapshotAt)) !== null && _c !== void 0 ? _c : new Date();
115971
- this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
116063
+ this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
116064
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
115972
116065
  this.id = data.id;
115973
- this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
116066
+ this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
115974
116067
  this.documentContent = new DocumentContent(request, data.documentContent);
115975
116068
  }
115976
116069
  }
@@ -115995,12 +116088,11 @@ class DocumentContentHistoryPayload extends Request {
115995
116088
  */
115996
116089
  class DocumentContentHistoryType extends Request {
115997
116090
  constructor(request, data) {
115998
- var _a, _b, _c, _d;
116091
+ var _a, _b, _c;
115999
116092
  super(request);
116000
116093
  this.actorIds = (_a = data.actorIds) !== null && _a !== void 0 ? _a : undefined;
116001
- this.contentData = (_b = parseJson(data.contentData)) !== null && _b !== void 0 ? _b : {};
116002
- this.contentDataSnapshotAt = (_c = parseDate(data.contentDataSnapshotAt)) !== null && _c !== void 0 ? _c : new Date();
116003
- this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
116094
+ this.contentDataSnapshotAt = (_b = parseDate(data.contentDataSnapshotAt)) !== null && _b !== void 0 ? _b : new Date();
116095
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
116004
116096
  this.id = data.id;
116005
116097
  }
116006
116098
  }
@@ -116617,6 +116709,7 @@ class IntegrationSettings extends Request {
116617
116709
  this.googleSheets = data.googleSheets ? new GoogleSheetsSettings(request, data.googleSheets) : undefined;
116618
116710
  this.intercom = data.intercom ? new IntercomSettings(request, data.intercom) : undefined;
116619
116711
  this.jira = data.jira ? new JiraSettings(request, data.jira) : undefined;
116712
+ this.jiraPersonal = data.jiraPersonal ? new JiraPersonalSettings(request, data.jiraPersonal) : undefined;
116620
116713
  this.notion = data.notion ? new NotionSettings(request, data.notion) : undefined;
116621
116714
  this.pagerDuty = data.pagerDuty ? new PagerDutySettings(request, data.pagerDuty) : undefined;
116622
116715
  this.sentry = data.sentry ? new SentrySettings(request, data.sentry) : undefined;
@@ -117629,11 +117722,26 @@ class IssueSearchResultConnection extends Connection {
117629
117722
  */
117630
117723
  class JiraLinearMapping extends Request {
117631
117724
  constructor(request, data) {
117725
+ var _a;
117632
117726
  super(request);
117727
+ this.bidirectional = (_a = data.bidirectional) !== null && _a !== void 0 ? _a : undefined;
117633
117728
  this.jiraProjectId = data.jiraProjectId;
117634
117729
  this.linearTeamId = data.linearTeamId;
117635
117730
  }
117636
117731
  }
117732
+ /**
117733
+ * Jira personal specific settings.
117734
+ *
117735
+ * @param request - function to call the graphql client
117736
+ * @param data - L.JiraPersonalSettingsFragment response data
117737
+ */
117738
+ class JiraPersonalSettings extends Request {
117739
+ constructor(request, data) {
117740
+ var _a;
117741
+ super(request);
117742
+ this.siteName = (_a = data.siteName) !== null && _a !== void 0 ? _a : undefined;
117743
+ }
117744
+ }
117637
117745
  /**
117638
117746
  * Metadata about a Jira project.
117639
117747
  *
@@ -119522,14 +119630,15 @@ class SlackAsksTeamSettings extends Request {
119522
119630
  */
119523
119631
  class SlackChannelNameMapping extends Request {
119524
119632
  constructor(request, data) {
119525
- var _a, _b, _c, _d, _e;
119633
+ var _a, _b, _c, _d, _e, _f;
119526
119634
  super(request);
119527
119635
  this.autoCreateOnBotMention = (_a = data.autoCreateOnBotMention) !== null && _a !== void 0 ? _a : undefined;
119528
119636
  this.autoCreateOnEmoji = (_b = data.autoCreateOnEmoji) !== null && _b !== void 0 ? _b : undefined;
119529
119637
  this.autoCreateOnMessage = (_c = data.autoCreateOnMessage) !== null && _c !== void 0 ? _c : undefined;
119638
+ this.botAdded = (_d = data.botAdded) !== null && _d !== void 0 ? _d : undefined;
119530
119639
  this.id = data.id;
119531
- this.isPrivate = (_d = data.isPrivate) !== null && _d !== void 0 ? _d : undefined;
119532
- this.isShared = (_e = data.isShared) !== null && _e !== void 0 ? _e : undefined;
119640
+ this.isPrivate = (_e = data.isPrivate) !== null && _e !== void 0 ? _e : undefined;
119641
+ this.isShared = (_f = data.isShared) !== null && _f !== void 0 ? _f : undefined;
119533
119642
  this.name = data.name;
119534
119643
  this.teams = data.teams.map(node => new SlackAsksTeamSettings(request, node));
119535
119644
  }
@@ -123185,18 +123294,16 @@ class AttachmentLinkGitLabMrMutation extends Request {
123185
123294
  *
123186
123295
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
123187
123296
  * @param number - required number to pass to attachmentLinkGitLabMR
123188
- * @param owner - required owner to pass to attachmentLinkGitLabMR
123189
- * @param repo - required repo to pass to attachmentLinkGitLabMR
123297
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
123190
123298
  * @param url - required url to pass to attachmentLinkGitLabMR
123191
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
123299
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
123192
123300
  * @returns parsed response from AttachmentLinkGitLabMrMutation
123193
123301
  */
123194
- fetch(issueId, number, owner, repo, url, variables) {
123302
+ fetch(issueId, number, projectPathWithNamespace, url, variables) {
123195
123303
  return __awaiter(this, void 0, void 0, function* () {
123196
123304
  const response = yield this._request(AttachmentLinkGitLabMrDocument, Object.assign({ issueId,
123197
123305
  number,
123198
- owner,
123199
- repo,
123306
+ projectPathWithNamespace,
123200
123307
  url }, variables));
123201
123308
  const data = response.attachmentLinkGitLabMR;
123202
123309
  return new AttachmentPayload(this._request, data);
@@ -124284,6 +124391,31 @@ class IntegrationFrontMutation extends Request {
124284
124391
  });
124285
124392
  }
124286
124393
  }
124394
+ /**
124395
+ * A fetchable IntegrationGitHubPersonal Mutation
124396
+ *
124397
+ * @param request - function to call the graphql client
124398
+ */
124399
+ class IntegrationGitHubPersonalMutation extends Request {
124400
+ constructor(request) {
124401
+ super(request);
124402
+ }
124403
+ /**
124404
+ * Call the IntegrationGitHubPersonal mutation and return a IntegrationPayload
124405
+ *
124406
+ * @param code - required code to pass to integrationGitHubPersonal
124407
+ * @returns parsed response from IntegrationGitHubPersonalMutation
124408
+ */
124409
+ fetch(code) {
124410
+ return __awaiter(this, void 0, void 0, function* () {
124411
+ const response = yield this._request(IntegrationGitHubPersonalDocument, {
124412
+ code,
124413
+ });
124414
+ const data = response.integrationGitHubPersonal;
124415
+ return new IntegrationPayload(this._request, data);
124416
+ });
124417
+ }
124418
+ }
124287
124419
  /**
124288
124420
  * A fetchable CreateIntegrationGithubCommit Mutation
124289
124421
  *
@@ -128196,7 +128328,7 @@ class Comment_DocumentContentQuery extends Request {
128196
128328
  id: this._id,
128197
128329
  });
128198
128330
  const data = response.comment.documentContent;
128199
- return new DocumentContent(this._request, data);
128331
+ return data ? new DocumentContent(this._request, data) : undefined;
128200
128332
  });
128201
128333
  }
128202
128334
  }
@@ -130637,14 +130769,13 @@ class LinearSdk extends Request {
130637
130769
  *
130638
130770
  * @param issueId - required issueId to pass to attachmentLinkGitLabMR
130639
130771
  * @param number - required number to pass to attachmentLinkGitLabMR
130640
- * @param owner - required owner to pass to attachmentLinkGitLabMR
130641
- * @param repo - required repo to pass to attachmentLinkGitLabMR
130772
+ * @param projectPathWithNamespace - required projectPathWithNamespace to pass to attachmentLinkGitLabMR
130642
130773
  * @param url - required url to pass to attachmentLinkGitLabMR
130643
- * @param variables - variables without 'issueId', 'number', 'owner', 'repo', 'url' to pass into the AttachmentLinkGitLabMrMutation
130774
+ * @param variables - variables without 'issueId', 'number', 'projectPathWithNamespace', 'url' to pass into the AttachmentLinkGitLabMrMutation
130644
130775
  * @returns AttachmentPayload
130645
130776
  */
130646
- attachmentLinkGitLabMR(issueId, number, owner, repo, url, variables) {
130647
- return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number, owner, repo, url, variables);
130777
+ attachmentLinkGitLabMR(issueId, number, projectPathWithNamespace, url, variables) {
130778
+ return new AttachmentLinkGitLabMrMutation(this._request).fetch(issueId, number, projectPathWithNamespace, url, variables);
130648
130779
  }
130649
130780
  /**
130650
130781
  * Link an existing Intercom conversation to an issue.
@@ -131054,6 +131185,15 @@ class LinearSdk extends Request {
131054
131185
  integrationFront(code, redirectUri) {
131055
131186
  return new IntegrationFrontMutation(this._request).fetch(code, redirectUri);
131056
131187
  }
131188
+ /**
131189
+ * Connect your GitHub account to Linear.
131190
+ *
131191
+ * @param code - required code to pass to integrationGitHubPersonal
131192
+ * @returns IntegrationPayload
131193
+ */
131194
+ integrationGitHubPersonal(code) {
131195
+ return new IntegrationGitHubPersonalMutation(this._request).fetch(code);
131196
+ }
131057
131197
  /**
131058
131198
  * Generates a webhook for the GitHub commit integration.
131059
131199
  *
@@ -132219,7 +132359,7 @@ class LinearSdk extends Request {
132219
132359
  return new UpdateUserFlagMutation(this._request).fetch(flag, operation);
132220
132360
  }
132221
132361
  /**
132222
- * Connects the GitHub user to this Linear account via OAuth2.
132362
+ * [DEPRECATED] Connects the GitHub user to this Linear account via OAuth2.
132223
132363
  *
132224
132364
  * @param code - required code to pass to userGitHubConnect
132225
132365
  * @returns UserPayload
@@ -132533,6 +132673,7 @@ exports.AuthApiKey = AuthApiKey;
132533
132673
  exports.AuthApiKeyDeletePayload = AuthApiKeyDeletePayload;
132534
132674
  exports.AuthApiKeyPayload = AuthApiKeyPayload;
132535
132675
  exports.AuthIntegration = AuthIntegration;
132676
+ exports.AuthOauthClient = AuthOauthClient;
132536
132677
  exports.AuthOrganization = AuthOrganization;
132537
132678
  exports.AuthResolverResponse = AuthResolverResponse;
132538
132679
  exports.AuthUser = AuthUser;
@@ -132702,6 +132843,7 @@ exports.IntegrationConnection = IntegrationConnection;
132702
132843
  exports.IntegrationDiscordMutation = IntegrationDiscordMutation;
132703
132844
  exports.IntegrationFigmaMutation = IntegrationFigmaMutation;
132704
132845
  exports.IntegrationFrontMutation = IntegrationFrontMutation;
132846
+ exports.IntegrationGitHubPersonalMutation = IntegrationGitHubPersonalMutation;
132705
132847
  exports.IntegrationGithubConnectMutation = IntegrationGithubConnectMutation;
132706
132848
  exports.IntegrationGithubSyncConnectMutation = IntegrationGithubSyncConnectMutation;
132707
132849
  exports.IntegrationGitlabConnectMutation = IntegrationGitlabConnectMutation;
@@ -132804,6 +132946,7 @@ exports.Issue_RelationsQuery = Issue_RelationsQuery;
132804
132946
  exports.Issue_SubscribersQuery = Issue_SubscribersQuery;
132805
132947
  exports.IssuesQuery = IssuesQuery;
132806
132948
  exports.JiraLinearMapping = JiraLinearMapping;
132949
+ exports.JiraPersonalSettings = JiraPersonalSettings;
132807
132950
  exports.JiraProjectData = JiraProjectData;
132808
132951
  exports.JiraSettings = JiraSettings;
132809
132952
  exports.JoinOrganizationFromOnboardingMutation = JoinOrganizationFromOnboardingMutation;