@linear/sdk 18.0.0 → 19.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
@@ -83693,6 +83693,7 @@ var ViewType;
83693
83693
  ViewType["Inbox"] = "inbox";
83694
83694
  ViewType["Initiative"] = "initiative";
83695
83695
  ViewType["Initiatives"] = "initiatives";
83696
+ ViewType["IssueIdentifiers"] = "issueIdentifiers";
83696
83697
  ViewType["Label"] = "label";
83697
83698
  ViewType["MyIssues"] = "myIssues";
83698
83699
  ViewType["MyIssuesActivity"] = "myIssuesActivity";
@@ -85112,6 +85113,100 @@ const UserNotificationSubscriptionFragmentDoc = {
85112
85113
  },
85113
85114
  ],
85114
85115
  };
85116
+ const AuthOrganizationFragmentDoc = {
85117
+ kind: "Document",
85118
+ definitions: [
85119
+ {
85120
+ kind: "FragmentDefinition",
85121
+ name: { kind: "Name", value: "AuthOrganization" },
85122
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOrganization" } },
85123
+ selectionSet: {
85124
+ kind: "SelectionSet",
85125
+ selections: [
85126
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85127
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
85128
+ { kind: "Field", name: { kind: "Name", value: "previousUrlKeys" } },
85129
+ { kind: "Field", name: { kind: "Name", value: "serviceId" } },
85130
+ { kind: "Field", name: { kind: "Name", value: "logoUrl" } },
85131
+ { kind: "Field", name: { kind: "Name", value: "name" } },
85132
+ { kind: "Field", name: { kind: "Name", value: "urlKey" } },
85133
+ { kind: "Field", name: { kind: "Name", value: "region" } },
85134
+ { kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
85135
+ { kind: "Field", name: { kind: "Name", value: "id" } },
85136
+ { kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
85137
+ { kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
85138
+ { kind: "Field", name: { kind: "Name", value: "userCount" } },
85139
+ ],
85140
+ },
85141
+ },
85142
+ ],
85143
+ };
85144
+ const AuthUserFragmentDoc = {
85145
+ kind: "Document",
85146
+ definitions: [
85147
+ {
85148
+ kind: "FragmentDefinition",
85149
+ name: { kind: "Name", value: "AuthUser" },
85150
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthUser" } },
85151
+ selectionSet: {
85152
+ kind: "SelectionSet",
85153
+ selections: [
85154
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85155
+ { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
85156
+ {
85157
+ kind: "Field",
85158
+ name: { kind: "Name", value: "organization" },
85159
+ selectionSet: {
85160
+ kind: "SelectionSet",
85161
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
85162
+ },
85163
+ },
85164
+ { kind: "Field", name: { kind: "Name", value: "displayName" } },
85165
+ { kind: "Field", name: { kind: "Name", value: "email" } },
85166
+ { kind: "Field", name: { kind: "Name", value: "name" } },
85167
+ { kind: "Field", name: { kind: "Name", value: "userAccountId" } },
85168
+ { kind: "Field", name: { kind: "Name", value: "active" } },
85169
+ { kind: "Field", name: { kind: "Name", value: "id" } },
85170
+ ],
85171
+ },
85172
+ },
85173
+ ],
85174
+ };
85175
+ const AuthEmailIntakeAddressFragmentDoc = {
85176
+ kind: "Document",
85177
+ definitions: [
85178
+ {
85179
+ kind: "FragmentDefinition",
85180
+ name: { kind: "Name", value: "AuthEmailIntakeAddress" },
85181
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthEmailIntakeAddress" } },
85182
+ selectionSet: {
85183
+ kind: "SelectionSet",
85184
+ selections: [
85185
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85186
+ {
85187
+ kind: "Field",
85188
+ name: { kind: "Name", value: "organization" },
85189
+ selectionSet: {
85190
+ kind: "SelectionSet",
85191
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
85192
+ },
85193
+ },
85194
+ {
85195
+ kind: "Field",
85196
+ name: { kind: "Name", value: "creator" },
85197
+ selectionSet: {
85198
+ kind: "SelectionSet",
85199
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthUser" } }],
85200
+ },
85201
+ },
85202
+ { kind: "Field", name: { kind: "Name", value: "id" } },
85203
+ { kind: "Field", name: { kind: "Name", value: "address" } },
85204
+ { kind: "Field", name: { kind: "Name", value: "enabled" } },
85205
+ ],
85206
+ },
85207
+ },
85208
+ ],
85209
+ };
85115
85210
  const AuthOrganizationInviteFragmentDoc = {
85116
85211
  kind: "Document",
85117
85212
  definitions: [
@@ -85453,6 +85548,7 @@ const SharedSlackSettingsFragmentDoc = {
85453
85548
  kind: "SelectionSet",
85454
85549
  selections: [
85455
85550
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85551
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
85456
85552
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
85457
85553
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
85458
85554
  ],
@@ -85799,6 +85895,7 @@ const SlackSettingsFragmentDoc = {
85799
85895
  kind: "SelectionSet",
85800
85896
  selections: [
85801
85897
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85898
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
85802
85899
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
85803
85900
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
85804
85901
  { kind: "Field", name: { kind: "Name", value: "linkOnIssueIdMention" } },
@@ -85869,6 +85966,7 @@ const SlackAsksSettingsFragmentDoc = {
85869
85966
  kind: "SelectionSet",
85870
85967
  selections: [
85871
85968
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
85969
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
85872
85970
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
85873
85971
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
85874
85972
  {
@@ -86588,64 +86686,6 @@ const AuthOauthClientFragmentDoc = {
86588
86686
  },
86589
86687
  ],
86590
86688
  };
86591
- const AuthOrganizationFragmentDoc = {
86592
- kind: "Document",
86593
- definitions: [
86594
- {
86595
- kind: "FragmentDefinition",
86596
- name: { kind: "Name", value: "AuthOrganization" },
86597
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOrganization" } },
86598
- selectionSet: {
86599
- kind: "SelectionSet",
86600
- selections: [
86601
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
86602
- { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
86603
- { kind: "Field", name: { kind: "Name", value: "previousUrlKeys" } },
86604
- { kind: "Field", name: { kind: "Name", value: "serviceId" } },
86605
- { kind: "Field", name: { kind: "Name", value: "logoUrl" } },
86606
- { kind: "Field", name: { kind: "Name", value: "name" } },
86607
- { kind: "Field", name: { kind: "Name", value: "urlKey" } },
86608
- { kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
86609
- { kind: "Field", name: { kind: "Name", value: "id" } },
86610
- { kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
86611
- { kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
86612
- { kind: "Field", name: { kind: "Name", value: "userCount" } },
86613
- ],
86614
- },
86615
- },
86616
- ],
86617
- };
86618
- const AuthUserFragmentDoc = {
86619
- kind: "Document",
86620
- definitions: [
86621
- {
86622
- kind: "FragmentDefinition",
86623
- name: { kind: "Name", value: "AuthUser" },
86624
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthUser" } },
86625
- selectionSet: {
86626
- kind: "SelectionSet",
86627
- selections: [
86628
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
86629
- { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
86630
- {
86631
- kind: "Field",
86632
- name: { kind: "Name", value: "organization" },
86633
- selectionSet: {
86634
- kind: "SelectionSet",
86635
- selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
86636
- },
86637
- },
86638
- { kind: "Field", name: { kind: "Name", value: "displayName" } },
86639
- { kind: "Field", name: { kind: "Name", value: "email" } },
86640
- { kind: "Field", name: { kind: "Name", value: "name" } },
86641
- { kind: "Field", name: { kind: "Name", value: "userAccountId" } },
86642
- { kind: "Field", name: { kind: "Name", value: "active" } },
86643
- { kind: "Field", name: { kind: "Name", value: "id" } },
86644
- ],
86645
- },
86646
- },
86647
- ],
86648
- };
86649
86689
  const OauthTokenFragmentDoc = {
86650
86690
  kind: "Document",
86651
86691
  definitions: [
@@ -87394,6 +87434,7 @@ const DocumentFragmentDoc = {
87394
87434
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
87395
87435
  },
87396
87436
  },
87437
+ { kind: "Field", name: { kind: "Name", value: "hiddenAt" } },
87397
87438
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
87398
87439
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
87399
87440
  { kind: "Field", name: { kind: "Name", value: "id" } },
@@ -87576,6 +87617,7 @@ const DocumentSearchResultFragmentDoc = {
87576
87617
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
87577
87618
  },
87578
87619
  },
87620
+ { kind: "Field", name: { kind: "Name", value: "hiddenAt" } },
87579
87621
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
87580
87622
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
87581
87623
  { kind: "Field", name: { kind: "Name", value: "id" } },
@@ -90114,6 +90156,7 @@ const OrganizationInviteFullDetailsPayloadFragmentDoc = {
90114
90156
  kind: "SelectionSet",
90115
90157
  selections: [
90116
90158
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
90159
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
90117
90160
  { kind: "Field", name: { kind: "Name", value: "organizationId" } },
90118
90161
  { kind: "Field", name: { kind: "Name", value: "organizationName" } },
90119
90162
  { kind: "Field", name: { kind: "Name", value: "email" } },
@@ -90127,6 +90170,28 @@ const OrganizationInviteFullDetailsPayloadFragmentDoc = {
90127
90170
  },
90128
90171
  ],
90129
90172
  };
90173
+ const OrganizationInviteLinkDetailsPayloadFragmentDoc = {
90174
+ kind: "Document",
90175
+ definitions: [
90176
+ {
90177
+ kind: "FragmentDefinition",
90178
+ name: { kind: "Name", value: "OrganizationInviteLinkDetailsPayload" },
90179
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationInviteLinkDetailsPayload" } },
90180
+ selectionSet: {
90181
+ kind: "SelectionSet",
90182
+ selections: [
90183
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
90184
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
90185
+ { kind: "Field", name: { kind: "Name", value: "organizationId" } },
90186
+ { kind: "Field", name: { kind: "Name", value: "organizationName" } },
90187
+ { kind: "Field", name: { kind: "Name", value: "organizationRegion" } },
90188
+ { kind: "Field", name: { kind: "Name", value: "organizationUrlKey" } },
90189
+ { kind: "Field", name: { kind: "Name", value: "organizationLogoUrl" } },
90190
+ ],
90191
+ },
90192
+ },
90193
+ ],
90194
+ };
90130
90195
  const OrganizationInvitePayloadFragmentDoc = {
90131
90196
  kind: "Document",
90132
90197
  definitions: [
@@ -90171,6 +90236,24 @@ const OrganizationPayloadFragmentDoc = {
90171
90236
  },
90172
90237
  ],
90173
90238
  };
90239
+ const OrganizationRegionResponseFragmentDoc = {
90240
+ kind: "Document",
90241
+ definitions: [
90242
+ {
90243
+ kind: "FragmentDefinition",
90244
+ name: { kind: "Name", value: "OrganizationRegionResponse" },
90245
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationRegionResponse" } },
90246
+ selectionSet: {
90247
+ kind: "SelectionSet",
90248
+ selections: [
90249
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
90250
+ { kind: "Field", name: { kind: "Name", value: "region" } },
90251
+ { kind: "Field", name: { kind: "Name", value: "success" } },
90252
+ ],
90253
+ },
90254
+ },
90255
+ ],
90256
+ };
90174
90257
  const OrganizationStartPlusTrialPayloadFragmentDoc = {
90175
90258
  kind: "Document",
90176
90259
  definitions: [
@@ -90257,7 +90340,6 @@ const ProjectFragmentDoc = {
90257
90340
  { kind: "Field", name: { kind: "Name", value: "projectUpdateRemindersPausedUntilAt" } },
90258
90341
  { kind: "Field", name: { kind: "Name", value: "scopeHistory" } },
90259
90342
  { kind: "Field", name: { kind: "Name", value: "issueCountHistory" } },
90260
- { kind: "Field", name: { kind: "Name", value: "state" } },
90261
90343
  { kind: "Field", name: { kind: "Name", value: "id" } },
90262
90344
  {
90263
90345
  kind: "Field",
@@ -90267,9 +90349,18 @@ const ProjectFragmentDoc = {
90267
90349
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90268
90350
  },
90269
90351
  },
90352
+ {
90353
+ kind: "Field",
90354
+ name: { kind: "Name", value: "favorite" },
90355
+ selectionSet: {
90356
+ kind: "SelectionSet",
90357
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90358
+ },
90359
+ },
90270
90360
  { kind: "Field", name: { kind: "Name", value: "slackIssueComments" } },
90271
90361
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
90272
90362
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
90363
+ { kind: "Field", name: { kind: "Name", value: "state" } },
90273
90364
  ],
90274
90365
  },
90275
90366
  },
@@ -90607,7 +90698,6 @@ const ProjectSearchResultFragmentDoc = {
90607
90698
  { kind: "Field", name: { kind: "Name", value: "projectUpdateRemindersPausedUntilAt" } },
90608
90699
  { kind: "Field", name: { kind: "Name", value: "scopeHistory" } },
90609
90700
  { kind: "Field", name: { kind: "Name", value: "issueCountHistory" } },
90610
- { kind: "Field", name: { kind: "Name", value: "state" } },
90611
90701
  { kind: "Field", name: { kind: "Name", value: "id" } },
90612
90702
  {
90613
90703
  kind: "Field",
@@ -90617,9 +90707,18 @@ const ProjectSearchResultFragmentDoc = {
90617
90707
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90618
90708
  },
90619
90709
  },
90710
+ {
90711
+ kind: "Field",
90712
+ name: { kind: "Name", value: "favorite" },
90713
+ selectionSet: {
90714
+ kind: "SelectionSet",
90715
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
90716
+ },
90717
+ },
90620
90718
  { kind: "Field", name: { kind: "Name", value: "slackIssueComments" } },
90621
90719
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
90622
90720
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
90721
+ { kind: "Field", name: { kind: "Name", value: "state" } },
90623
90722
  ],
90624
90723
  },
90625
90724
  },
@@ -107726,7 +107825,7 @@ const AttachmentLinkSlackDocument = {
107726
107825
  {
107727
107826
  kind: "VariableDefinition",
107728
107827
  variable: { kind: "Variable", name: { kind: "Name", value: "channel" } },
107729
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
107828
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
107730
107829
  },
107731
107830
  {
107732
107831
  kind: "VariableDefinition",
@@ -107751,7 +107850,7 @@ const AttachmentLinkSlackDocument = {
107751
107850
  {
107752
107851
  kind: "VariableDefinition",
107753
107852
  variable: { kind: "Variable", name: { kind: "Name", value: "latest" } },
107754
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
107853
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
107755
107854
  },
107756
107855
  {
107757
107856
  kind: "VariableDefinition",
@@ -116704,6 +116803,9 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
116704
116803
  TeamNotificationSubscriptionFragmentDoc: TeamNotificationSubscriptionFragmentDoc,
116705
116804
  UserAccountFragmentDoc: UserAccountFragmentDoc,
116706
116805
  UserNotificationSubscriptionFragmentDoc: UserNotificationSubscriptionFragmentDoc,
116806
+ AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
116807
+ AuthUserFragmentDoc: AuthUserFragmentDoc,
116808
+ AuthEmailIntakeAddressFragmentDoc: AuthEmailIntakeAddressFragmentDoc,
116707
116809
  AuthOrganizationInviteFragmentDoc: AuthOrganizationInviteFragmentDoc,
116708
116810
  PaidSubscriptionFragmentDoc: PaidSubscriptionFragmentDoc,
116709
116811
  OrganizationFragmentDoc: OrganizationFragmentDoc,
@@ -116758,8 +116860,6 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
116758
116860
  AuthApiKeyPayloadFragmentDoc: AuthApiKeyPayloadFragmentDoc,
116759
116861
  AuthIntegrationFragmentDoc: AuthIntegrationFragmentDoc,
116760
116862
  AuthOauthClientFragmentDoc: AuthOauthClientFragmentDoc,
116761
- AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
116762
- AuthUserFragmentDoc: AuthUserFragmentDoc,
116763
116863
  OauthTokenFragmentDoc: OauthTokenFragmentDoc,
116764
116864
  AuthOauthClientWithTokensFragmentDoc: AuthOauthClientWithTokensFragmentDoc,
116765
116865
  AuthOrganizationDomainFragmentDoc: AuthOrganizationDomainFragmentDoc,
@@ -116859,8 +116959,10 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
116859
116959
  OrganizationInviteFragmentDoc: OrganizationInviteFragmentDoc,
116860
116960
  OrganizationInviteConnectionFragmentDoc: OrganizationInviteConnectionFragmentDoc,
116861
116961
  OrganizationInviteFullDetailsPayloadFragmentDoc: OrganizationInviteFullDetailsPayloadFragmentDoc,
116962
+ OrganizationInviteLinkDetailsPayloadFragmentDoc: OrganizationInviteLinkDetailsPayloadFragmentDoc,
116862
116963
  OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
116863
116964
  OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
116965
+ OrganizationRegionResponseFragmentDoc: OrganizationRegionResponseFragmentDoc,
116864
116966
  OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
116865
116967
  ProjectFragmentDoc: ProjectFragmentDoc,
116866
116968
  ProjectConnectionFragmentDoc: ProjectConnectionFragmentDoc,
@@ -117320,6 +117422,23 @@ class Request {
117320
117422
  constructor(request) {
117321
117423
  this._request = request;
117322
117424
  }
117425
+ /**
117426
+ * Helper to paginate over all pages of a given connection query.
117427
+ * @param fn The query to paginate
117428
+ * @param args The arguments to pass to the query
117429
+ */
117430
+ paginate(fn, args) {
117431
+ return __awaiter(this, void 0, void 0, function* () {
117432
+ const boundFn = fn.bind(this);
117433
+ let connection = yield boundFn(args);
117434
+ const nodes = connection.nodes;
117435
+ while (connection.pageInfo.hasNextPage) {
117436
+ connection = yield boundFn(Object.assign(Object.assign({}, args), { after: connection.pageInfo.endCursor }));
117437
+ nodes.push(...connection.nodes);
117438
+ }
117439
+ return nodes;
117440
+ });
117441
+ }
117323
117442
  }
117324
117443
  /**
117325
117444
  * Default connection variables required for pagination
@@ -117777,6 +117896,22 @@ class AuthApiKeyPayload extends Request {
117777
117896
  this.authApiKey = new AuthApiKey(request, data.authApiKey);
117778
117897
  }
117779
117898
  }
117899
+ /**
117900
+ * An email address that can be used for submitting issues.
117901
+ *
117902
+ * @param request - function to call the graphql client
117903
+ * @param data - L.AuthEmailIntakeAddressFragment response data
117904
+ */
117905
+ class AuthEmailIntakeAddress extends Request {
117906
+ constructor(request, data) {
117907
+ super(request);
117908
+ this.address = data.address;
117909
+ this.enabled = data.enabled;
117910
+ this.id = data.id;
117911
+ this.creator = data.creator ? new AuthUser(request, data.creator) : undefined;
117912
+ this.organization = new AuthOrganization(request, data.organization);
117913
+ }
117914
+ }
117780
117915
  /**
117781
117916
  * AuthIntegration model
117782
117917
  *
@@ -117881,6 +118016,7 @@ class AuthOrganization extends Request {
117881
118016
  this.logoUrl = (_b = data.logoUrl) !== null && _b !== void 0 ? _b : undefined;
117882
118017
  this.name = data.name;
117883
118018
  this.previousUrlKeys = data.previousUrlKeys;
118019
+ this.region = data.region;
117884
118020
  this.samlEnabled = data.samlEnabled;
117885
118021
  this.scimEnabled = data.scimEnabled;
117886
118022
  this.serviceId = data.serviceId;
@@ -118607,20 +118743,21 @@ class DeletePayload extends Request {
118607
118743
  */
118608
118744
  class Document extends Request {
118609
118745
  constructor(request, data) {
118610
- var _a, _b, _c, _d, _e, _f, _g;
118746
+ var _a, _b, _c, _d, _e, _f, _g, _h;
118611
118747
  super(request);
118612
118748
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
118613
118749
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
118614
118750
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
118615
118751
  this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
118616
- this.icon = (_e = data.icon) !== null && _e !== void 0 ? _e : undefined;
118752
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
118753
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
118617
118754
  this.id = data.id;
118618
118755
  this.slugId = data.slugId;
118619
118756
  this.sortOrder = data.sortOrder;
118620
118757
  this.title = data.title;
118621
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
118758
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
118622
118759
  this._creator = data.creator;
118623
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
118760
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
118624
118761
  this._project = data.project;
118625
118762
  this._updatedBy = data.updatedBy;
118626
118763
  }
@@ -118802,21 +118939,22 @@ class DocumentSearchPayload extends Request {
118802
118939
  */
118803
118940
  class DocumentSearchResult extends Request {
118804
118941
  constructor(request, data) {
118805
- var _a, _b, _c, _d, _e, _f, _g;
118942
+ var _a, _b, _c, _d, _e, _f, _g, _h;
118806
118943
  super(request);
118807
118944
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
118808
118945
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
118809
118946
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
118810
118947
  this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
118811
- this.icon = (_e = data.icon) !== null && _e !== void 0 ? _e : undefined;
118948
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
118949
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
118812
118950
  this.id = data.id;
118813
118951
  this.metadata = data.metadata;
118814
118952
  this.slugId = data.slugId;
118815
118953
  this.sortOrder = data.sortOrder;
118816
118954
  this.title = data.title;
118817
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
118955
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
118818
118956
  this._creator = data.creator;
118819
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
118957
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
118820
118958
  this._project = data.project;
118821
118959
  this._updatedBy = data.updatedBy;
118822
118960
  }
@@ -121415,6 +121553,7 @@ class OrganizationInviteFullDetailsPayload extends Request {
121415
121553
  var _a, _b;
121416
121554
  super(request);
121417
121555
  this.accepted = data.accepted;
121556
+ this.allowedAuthServices = data.allowedAuthServices;
121418
121557
  this.createdAt = (_a = parseDate(data.createdAt)) !== null && _a !== void 0 ? _a : new Date();
121419
121558
  this.email = data.email;
121420
121559
  this.expired = data.expired;
@@ -121424,6 +121563,24 @@ class OrganizationInviteFullDetailsPayload extends Request {
121424
121563
  this.organizationName = data.organizationName;
121425
121564
  }
121426
121565
  }
121566
+ /**
121567
+ * OrganizationInviteLinkDetailsPayload model
121568
+ *
121569
+ * @param request - function to call the graphql client
121570
+ * @param data - L.OrganizationInviteLinkDetailsPayloadFragment response data
121571
+ */
121572
+ class OrganizationInviteLinkDetailsPayload extends Request {
121573
+ constructor(request, data) {
121574
+ var _a, _b, _c, _d, _e;
121575
+ super(request);
121576
+ this.allowedAuthServices = data.allowedAuthServices;
121577
+ this.organizationId = (_a = data.organizationId) !== null && _a !== void 0 ? _a : undefined;
121578
+ this.organizationLogoUrl = (_b = data.organizationLogoUrl) !== null && _b !== void 0 ? _b : undefined;
121579
+ this.organizationName = (_c = data.organizationName) !== null && _c !== void 0 ? _c : undefined;
121580
+ this.organizationRegion = (_d = data.organizationRegion) !== null && _d !== void 0 ? _d : undefined;
121581
+ this.organizationUrlKey = (_e = data.organizationUrlKey) !== null && _e !== void 0 ? _e : undefined;
121582
+ }
121583
+ }
121427
121584
  /**
121428
121585
  * OrganizationInvitePayload model
121429
121586
  *
@@ -121459,6 +121616,20 @@ class OrganizationPayload extends Request {
121459
121616
  return new OrganizationQuery(this._request).fetch();
121460
121617
  }
121461
121618
  }
121619
+ /**
121620
+ * OrganizationRegionResponse model
121621
+ *
121622
+ * @param request - function to call the graphql client
121623
+ * @param data - L.OrganizationRegionResponseFragment response data
121624
+ */
121625
+ class OrganizationRegionResponse extends Request {
121626
+ constructor(request, data) {
121627
+ var _a;
121628
+ super(request);
121629
+ this.region = (_a = data.region) !== null && _a !== void 0 ? _a : undefined;
121630
+ this.success = data.success;
121631
+ }
121632
+ }
121462
121633
  /**
121463
121634
  * OrganizationStartPlusTrialPayload model
121464
121635
  *
@@ -121542,7 +121713,7 @@ class PaidSubscription extends Request {
121542
121713
  */
121543
121714
  class Project extends Request {
121544
121715
  constructor(request, data) {
121545
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
121716
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
121546
121717
  super(request);
121547
121718
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
121548
121719
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -121577,9 +121748,10 @@ class Project extends Request {
121577
121748
  this.url = data.url;
121578
121749
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
121579
121750
  this._creator = (_q = data.creator) !== null && _q !== void 0 ? _q : undefined;
121580
- this._integrationsSettings = (_r = data.integrationsSettings) !== null && _r !== void 0 ? _r : undefined;
121581
- this._lastAppliedTemplate = (_s = data.lastAppliedTemplate) !== null && _s !== void 0 ? _s : undefined;
121582
- this._lead = (_t = data.lead) !== null && _t !== void 0 ? _t : undefined;
121751
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
121752
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
121753
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
121754
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
121583
121755
  }
121584
121756
  /** The project was created based on this issue. */
121585
121757
  get convertedFromIssue() {
@@ -121591,6 +121763,11 @@ class Project extends Request {
121591
121763
  var _a, _b;
121592
121764
  return ((_a = this._creator) === null || _a === void 0 ? void 0 : _a.id) ? new UserQuery(this._request).fetch((_b = this._creator) === null || _b === void 0 ? void 0 : _b.id) : undefined;
121593
121765
  }
121766
+ /** The user's favorite associated with this project. */
121767
+ get favorite() {
121768
+ var _a, _b;
121769
+ return ((_a = this._favorite) === null || _a === void 0 ? void 0 : _a.id) ? new FavoriteQuery(this._request).fetch((_b = this._favorite) === null || _b === void 0 ? void 0 : _b.id) : undefined;
121770
+ }
121594
121771
  /** Settings for all integrations associated with that project. */
121595
121772
  get integrationsSettings() {
121596
121773
  var _a, _b;
@@ -121999,7 +122176,7 @@ class ProjectSearchPayload extends Request {
121999
122176
  */
122000
122177
  class ProjectSearchResult extends Request {
122001
122178
  constructor(request, data) {
122002
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
122179
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
122003
122180
  super(request);
122004
122181
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
122005
122182
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -122035,9 +122212,10 @@ class ProjectSearchResult extends Request {
122035
122212
  this.url = data.url;
122036
122213
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
122037
122214
  this._creator = (_q = data.creator) !== null && _q !== void 0 ? _q : undefined;
122038
- this._integrationsSettings = (_r = data.integrationsSettings) !== null && _r !== void 0 ? _r : undefined;
122039
- this._lastAppliedTemplate = (_s = data.lastAppliedTemplate) !== null && _s !== void 0 ? _s : undefined;
122040
- this._lead = (_t = data.lead) !== null && _t !== void 0 ? _t : undefined;
122215
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
122216
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
122217
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
122218
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
122041
122219
  }
122042
122220
  /** The project was created based on this issue. */
122043
122221
  get convertedFromIssue() {
@@ -122049,6 +122227,11 @@ class ProjectSearchResult extends Request {
122049
122227
  var _a, _b;
122050
122228
  return ((_a = this._creator) === null || _a === void 0 ? void 0 : _a.id) ? new UserQuery(this._request).fetch((_b = this._creator) === null || _b === void 0 ? void 0 : _b.id) : undefined;
122051
122229
  }
122230
+ /** The user's favorite associated with this project. */
122231
+ get favorite() {
122232
+ var _a, _b;
122233
+ return ((_a = this._favorite) === null || _a === void 0 ? void 0 : _a.id) ? new FavoriteQuery(this._request).fetch((_b = this._favorite) === null || _b === void 0 ? void 0 : _b.id) : undefined;
122234
+ }
122052
122235
  /** Settings for all integrations associated with that project. */
122053
122236
  get integrationsSettings() {
122054
122237
  var _a, _b;
@@ -122619,10 +122802,11 @@ class SentrySettings extends Request {
122619
122802
  */
122620
122803
  class SharedSlackSettings extends Request {
122621
122804
  constructor(request, data) {
122622
- var _a, _b;
122805
+ var _a, _b, _c;
122623
122806
  super(request);
122624
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122625
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122807
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
122808
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
122809
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
122626
122810
  }
122627
122811
  }
122628
122812
  /**
@@ -122633,10 +122817,11 @@ class SharedSlackSettings extends Request {
122633
122817
  */
122634
122818
  class SlackAsksSettings extends Request {
122635
122819
  constructor(request, data) {
122636
- var _a, _b;
122820
+ var _a, _b, _c;
122637
122821
  super(request);
122638
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122639
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122822
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
122823
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
122824
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
122640
122825
  this.slackChannelMapping = data.slackChannelMapping
122641
122826
  ? data.slackChannelMapping.map(node => new SlackChannelNameMapping(request, node))
122642
122827
  : undefined;
@@ -122722,11 +122907,12 @@ class SlackPostSettings extends Request {
122722
122907
  */
122723
122908
  class SlackSettings extends Request {
122724
122909
  constructor(request, data) {
122725
- var _a, _b;
122910
+ var _a, _b, _c;
122726
122911
  super(request);
122912
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
122727
122913
  this.linkOnIssueIdMention = data.linkOnIssueIdMention;
122728
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
122729
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
122914
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
122915
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
122730
122916
  }
122731
122917
  }
122732
122918
  /**
@@ -126644,18 +126830,14 @@ class AttachmentLinkSlackMutation extends Request {
126644
126830
  /**
126645
126831
  * Call the AttachmentLinkSlack mutation and return a AttachmentPayload
126646
126832
  *
126647
- * @param channel - required channel to pass to attachmentLinkSlack
126648
126833
  * @param issueId - required issueId to pass to attachmentLinkSlack
126649
- * @param latest - required latest to pass to attachmentLinkSlack
126650
126834
  * @param url - required url to pass to attachmentLinkSlack
126651
- * @param variables - variables without 'channel', 'issueId', 'latest', 'url' to pass into the AttachmentLinkSlackMutation
126835
+ * @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
126652
126836
  * @returns parsed response from AttachmentLinkSlackMutation
126653
126837
  */
126654
- fetch(channel, issueId, latest, url, variables) {
126838
+ fetch(issueId, url, variables) {
126655
126839
  return __awaiter(this, void 0, void 0, function* () {
126656
- const response = yield this._request(AttachmentLinkSlackDocument, Object.assign({ channel,
126657
- issueId,
126658
- latest,
126840
+ const response = yield this._request(AttachmentLinkSlackDocument, Object.assign({ issueId,
126659
126841
  url }, variables));
126660
126842
  const data = response.attachmentLinkSlack;
126661
126843
  return new AttachmentPayload(this._request, data);
@@ -134492,15 +134674,13 @@ class LinearSdk extends Request {
134492
134674
  /**
134493
134675
  * Link an existing Slack message to an issue.
134494
134676
  *
134495
- * @param channel - required channel to pass to attachmentLinkSlack
134496
134677
  * @param issueId - required issueId to pass to attachmentLinkSlack
134497
- * @param latest - required latest to pass to attachmentLinkSlack
134498
134678
  * @param url - required url to pass to attachmentLinkSlack
134499
- * @param variables - variables without 'channel', 'issueId', 'latest', 'url' to pass into the AttachmentLinkSlackMutation
134679
+ * @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
134500
134680
  * @returns AttachmentPayload
134501
134681
  */
134502
- attachmentLinkSlack(channel, issueId, latest, url, variables) {
134503
- return new AttachmentLinkSlackMutation(this._request).fetch(channel, issueId, latest, url, variables);
134682
+ attachmentLinkSlack(issueId, url, variables) {
134683
+ return new AttachmentLinkSlackMutation(this._request).fetch(issueId, url, variables);
134504
134684
  }
134505
134685
  /**
134506
134686
  * Link any url to an issue.
@@ -134759,7 +134939,7 @@ class LinearSdk extends Request {
134759
134939
  return new EmailTokenUserAccountAuthMutation(this._request).fetch(input);
134760
134940
  }
134761
134941
  /**
134762
- * Unsubscribes the user from one type of emails.
134942
+ * Unsubscribes the user from one type of email.
134763
134943
  *
134764
134944
  * @param input - required input to pass to emailUnsubscribe
134765
134945
  * @returns EmailUnsubscribePayload
@@ -136449,6 +136629,7 @@ exports.AuditEntryType = AuditEntryType;
136449
136629
  exports.AuditEntryTypesQuery = AuditEntryTypesQuery;
136450
136630
  exports.AuthApiKey = AuthApiKey;
136451
136631
  exports.AuthApiKeyPayload = AuthApiKeyPayload;
136632
+ exports.AuthEmailIntakeAddress = AuthEmailIntakeAddress;
136452
136633
  exports.AuthIntegration = AuthIntegration;
136453
136634
  exports.AuthOauthClient = AuthOauthClient;
136454
136635
  exports.AuthOauthClientWithMemberships = AuthOauthClientWithMemberships;
@@ -136812,11 +136993,13 @@ exports.OrganizationExistsQuery = OrganizationExistsQuery;
136812
136993
  exports.OrganizationInvite = OrganizationInvite;
136813
136994
  exports.OrganizationInviteConnection = OrganizationInviteConnection;
136814
136995
  exports.OrganizationInviteFullDetailsPayload = OrganizationInviteFullDetailsPayload;
136996
+ exports.OrganizationInviteLinkDetailsPayload = OrganizationInviteLinkDetailsPayload;
136815
136997
  exports.OrganizationInvitePayload = OrganizationInvitePayload;
136816
136998
  exports.OrganizationInviteQuery = OrganizationInviteQuery;
136817
136999
  exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
136818
137000
  exports.OrganizationPayload = OrganizationPayload;
136819
137001
  exports.OrganizationQuery = OrganizationQuery;
137002
+ exports.OrganizationRegionResponse = OrganizationRegionResponse;
136820
137003
  exports.OrganizationStartPlusTrialMutation = OrganizationStartPlusTrialMutation;
136821
137004
  exports.OrganizationStartPlusTrialPayload = OrganizationStartPlusTrialPayload;
136822
137005
  exports.Organization_IntegrationsQuery = Organization_IntegrationsQuery;