@linear/sdk 18.0.0 → 18.1.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/sdk","npm_package_version":"18.0.0"};
12
+ const env = {"npm_package_name":"@linear/sdk","npm_package_version":"18.1.0"};
13
13
  try {
14
14
  if (process) {
15
15
  process.env = Object.assign({}, process.env);
@@ -1667,6 +1667,7 @@
1667
1667
  ViewType["Inbox"] = "inbox";
1668
1668
  ViewType["Initiative"] = "initiative";
1669
1669
  ViewType["Initiatives"] = "initiatives";
1670
+ ViewType["IssueIdentifiers"] = "issueIdentifiers";
1670
1671
  ViewType["Label"] = "label";
1671
1672
  ViewType["MyIssues"] = "myIssues";
1672
1673
  ViewType["MyIssuesActivity"] = "myIssuesActivity";
@@ -3086,6 +3087,100 @@
3086
3087
  },
3087
3088
  ],
3088
3089
  };
3090
+ const AuthOrganizationFragmentDoc = {
3091
+ kind: "Document",
3092
+ definitions: [
3093
+ {
3094
+ kind: "FragmentDefinition",
3095
+ name: { kind: "Name", value: "AuthOrganization" },
3096
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOrganization" } },
3097
+ selectionSet: {
3098
+ kind: "SelectionSet",
3099
+ selections: [
3100
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
3101
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
3102
+ { kind: "Field", name: { kind: "Name", value: "previousUrlKeys" } },
3103
+ { kind: "Field", name: { kind: "Name", value: "serviceId" } },
3104
+ { kind: "Field", name: { kind: "Name", value: "logoUrl" } },
3105
+ { kind: "Field", name: { kind: "Name", value: "name" } },
3106
+ { kind: "Field", name: { kind: "Name", value: "urlKey" } },
3107
+ { kind: "Field", name: { kind: "Name", value: "region" } },
3108
+ { kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
3109
+ { kind: "Field", name: { kind: "Name", value: "id" } },
3110
+ { kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
3111
+ { kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
3112
+ { kind: "Field", name: { kind: "Name", value: "userCount" } },
3113
+ ],
3114
+ },
3115
+ },
3116
+ ],
3117
+ };
3118
+ const AuthUserFragmentDoc = {
3119
+ kind: "Document",
3120
+ definitions: [
3121
+ {
3122
+ kind: "FragmentDefinition",
3123
+ name: { kind: "Name", value: "AuthUser" },
3124
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthUser" } },
3125
+ selectionSet: {
3126
+ kind: "SelectionSet",
3127
+ selections: [
3128
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
3129
+ { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
3130
+ {
3131
+ kind: "Field",
3132
+ name: { kind: "Name", value: "organization" },
3133
+ selectionSet: {
3134
+ kind: "SelectionSet",
3135
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
3136
+ },
3137
+ },
3138
+ { kind: "Field", name: { kind: "Name", value: "displayName" } },
3139
+ { kind: "Field", name: { kind: "Name", value: "email" } },
3140
+ { kind: "Field", name: { kind: "Name", value: "name" } },
3141
+ { kind: "Field", name: { kind: "Name", value: "userAccountId" } },
3142
+ { kind: "Field", name: { kind: "Name", value: "active" } },
3143
+ { kind: "Field", name: { kind: "Name", value: "id" } },
3144
+ ],
3145
+ },
3146
+ },
3147
+ ],
3148
+ };
3149
+ const AuthEmailIntakeAddressFragmentDoc = {
3150
+ kind: "Document",
3151
+ definitions: [
3152
+ {
3153
+ kind: "FragmentDefinition",
3154
+ name: { kind: "Name", value: "AuthEmailIntakeAddress" },
3155
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthEmailIntakeAddress" } },
3156
+ selectionSet: {
3157
+ kind: "SelectionSet",
3158
+ selections: [
3159
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
3160
+ {
3161
+ kind: "Field",
3162
+ name: { kind: "Name", value: "organization" },
3163
+ selectionSet: {
3164
+ kind: "SelectionSet",
3165
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
3166
+ },
3167
+ },
3168
+ {
3169
+ kind: "Field",
3170
+ name: { kind: "Name", value: "creator" },
3171
+ selectionSet: {
3172
+ kind: "SelectionSet",
3173
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthUser" } }],
3174
+ },
3175
+ },
3176
+ { kind: "Field", name: { kind: "Name", value: "id" } },
3177
+ { kind: "Field", name: { kind: "Name", value: "address" } },
3178
+ { kind: "Field", name: { kind: "Name", value: "enabled" } },
3179
+ ],
3180
+ },
3181
+ },
3182
+ ],
3183
+ };
3089
3184
  const AuthOrganizationInviteFragmentDoc = {
3090
3185
  kind: "Document",
3091
3186
  definitions: [
@@ -3427,6 +3522,7 @@
3427
3522
  kind: "SelectionSet",
3428
3523
  selections: [
3429
3524
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3525
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
3430
3526
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
3431
3527
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
3432
3528
  ],
@@ -3773,6 +3869,7 @@
3773
3869
  kind: "SelectionSet",
3774
3870
  selections: [
3775
3871
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3872
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
3776
3873
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
3777
3874
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
3778
3875
  { kind: "Field", name: { kind: "Name", value: "linkOnIssueIdMention" } },
@@ -3843,6 +3940,7 @@
3843
3940
  kind: "SelectionSet",
3844
3941
  selections: [
3845
3942
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
3943
+ { kind: "Field", name: { kind: "Name", value: "enterpriseName" } },
3846
3944
  { kind: "Field", name: { kind: "Name", value: "teamId" } },
3847
3945
  { kind: "Field", name: { kind: "Name", value: "teamName" } },
3848
3946
  {
@@ -4562,64 +4660,6 @@
4562
4660
  },
4563
4661
  ],
4564
4662
  };
4565
- const AuthOrganizationFragmentDoc = {
4566
- kind: "Document",
4567
- definitions: [
4568
- {
4569
- kind: "FragmentDefinition",
4570
- name: { kind: "Name", value: "AuthOrganization" },
4571
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthOrganization" } },
4572
- selectionSet: {
4573
- kind: "SelectionSet",
4574
- selections: [
4575
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
4576
- { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
4577
- { kind: "Field", name: { kind: "Name", value: "previousUrlKeys" } },
4578
- { kind: "Field", name: { kind: "Name", value: "serviceId" } },
4579
- { kind: "Field", name: { kind: "Name", value: "logoUrl" } },
4580
- { kind: "Field", name: { kind: "Name", value: "name" } },
4581
- { kind: "Field", name: { kind: "Name", value: "urlKey" } },
4582
- { kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
4583
- { kind: "Field", name: { kind: "Name", value: "id" } },
4584
- { kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
4585
- { kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
4586
- { kind: "Field", name: { kind: "Name", value: "userCount" } },
4587
- ],
4588
- },
4589
- },
4590
- ],
4591
- };
4592
- const AuthUserFragmentDoc = {
4593
- kind: "Document",
4594
- definitions: [
4595
- {
4596
- kind: "FragmentDefinition",
4597
- name: { kind: "Name", value: "AuthUser" },
4598
- typeCondition: { kind: "NamedType", name: { kind: "Name", value: "AuthUser" } },
4599
- selectionSet: {
4600
- kind: "SelectionSet",
4601
- selections: [
4602
- { kind: "Field", name: { kind: "Name", value: "__typename" } },
4603
- { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
4604
- {
4605
- kind: "Field",
4606
- name: { kind: "Name", value: "organization" },
4607
- selectionSet: {
4608
- kind: "SelectionSet",
4609
- selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AuthOrganization" } }],
4610
- },
4611
- },
4612
- { kind: "Field", name: { kind: "Name", value: "displayName" } },
4613
- { kind: "Field", name: { kind: "Name", value: "email" } },
4614
- { kind: "Field", name: { kind: "Name", value: "name" } },
4615
- { kind: "Field", name: { kind: "Name", value: "userAccountId" } },
4616
- { kind: "Field", name: { kind: "Name", value: "active" } },
4617
- { kind: "Field", name: { kind: "Name", value: "id" } },
4618
- ],
4619
- },
4620
- },
4621
- ],
4622
- };
4623
4663
  const OauthTokenFragmentDoc = {
4624
4664
  kind: "Document",
4625
4665
  definitions: [
@@ -5368,6 +5408,7 @@
5368
5408
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
5369
5409
  },
5370
5410
  },
5411
+ { kind: "Field", name: { kind: "Name", value: "hiddenAt" } },
5371
5412
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
5372
5413
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
5373
5414
  { kind: "Field", name: { kind: "Name", value: "id" } },
@@ -5550,6 +5591,7 @@
5550
5591
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
5551
5592
  },
5552
5593
  },
5594
+ { kind: "Field", name: { kind: "Name", value: "hiddenAt" } },
5553
5595
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
5554
5596
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
5555
5597
  { kind: "Field", name: { kind: "Name", value: "id" } },
@@ -8088,6 +8130,7 @@
8088
8130
  kind: "SelectionSet",
8089
8131
  selections: [
8090
8132
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
8133
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
8091
8134
  { kind: "Field", name: { kind: "Name", value: "organizationId" } },
8092
8135
  { kind: "Field", name: { kind: "Name", value: "organizationName" } },
8093
8136
  { kind: "Field", name: { kind: "Name", value: "email" } },
@@ -8101,6 +8144,28 @@
8101
8144
  },
8102
8145
  ],
8103
8146
  };
8147
+ const OrganizationInviteLinkDetailsPayloadFragmentDoc = {
8148
+ kind: "Document",
8149
+ definitions: [
8150
+ {
8151
+ kind: "FragmentDefinition",
8152
+ name: { kind: "Name", value: "OrganizationInviteLinkDetailsPayload" },
8153
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationInviteLinkDetailsPayload" } },
8154
+ selectionSet: {
8155
+ kind: "SelectionSet",
8156
+ selections: [
8157
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
8158
+ { kind: "Field", name: { kind: "Name", value: "allowedAuthServices" } },
8159
+ { kind: "Field", name: { kind: "Name", value: "organizationId" } },
8160
+ { kind: "Field", name: { kind: "Name", value: "organizationName" } },
8161
+ { kind: "Field", name: { kind: "Name", value: "organizationRegion" } },
8162
+ { kind: "Field", name: { kind: "Name", value: "organizationUrlKey" } },
8163
+ { kind: "Field", name: { kind: "Name", value: "organizationLogoUrl" } },
8164
+ ],
8165
+ },
8166
+ },
8167
+ ],
8168
+ };
8104
8169
  const OrganizationInvitePayloadFragmentDoc = {
8105
8170
  kind: "Document",
8106
8171
  definitions: [
@@ -8145,6 +8210,24 @@
8145
8210
  },
8146
8211
  ],
8147
8212
  };
8213
+ const OrganizationRegionResponseFragmentDoc = {
8214
+ kind: "Document",
8215
+ definitions: [
8216
+ {
8217
+ kind: "FragmentDefinition",
8218
+ name: { kind: "Name", value: "OrganizationRegionResponse" },
8219
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationRegionResponse" } },
8220
+ selectionSet: {
8221
+ kind: "SelectionSet",
8222
+ selections: [
8223
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
8224
+ { kind: "Field", name: { kind: "Name", value: "region" } },
8225
+ { kind: "Field", name: { kind: "Name", value: "success" } },
8226
+ ],
8227
+ },
8228
+ },
8229
+ ],
8230
+ };
8148
8231
  const OrganizationStartPlusTrialPayloadFragmentDoc = {
8149
8232
  kind: "Document",
8150
8233
  definitions: [
@@ -8231,7 +8314,6 @@
8231
8314
  { kind: "Field", name: { kind: "Name", value: "projectUpdateRemindersPausedUntilAt" } },
8232
8315
  { kind: "Field", name: { kind: "Name", value: "scopeHistory" } },
8233
8316
  { kind: "Field", name: { kind: "Name", value: "issueCountHistory" } },
8234
- { kind: "Field", name: { kind: "Name", value: "state" } },
8235
8317
  { kind: "Field", name: { kind: "Name", value: "id" } },
8236
8318
  {
8237
8319
  kind: "Field",
@@ -8241,9 +8323,18 @@
8241
8323
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
8242
8324
  },
8243
8325
  },
8326
+ {
8327
+ kind: "Field",
8328
+ name: { kind: "Name", value: "favorite" },
8329
+ selectionSet: {
8330
+ kind: "SelectionSet",
8331
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
8332
+ },
8333
+ },
8244
8334
  { kind: "Field", name: { kind: "Name", value: "slackIssueComments" } },
8245
8335
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
8246
8336
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
8337
+ { kind: "Field", name: { kind: "Name", value: "state" } },
8247
8338
  ],
8248
8339
  },
8249
8340
  },
@@ -8581,7 +8672,6 @@
8581
8672
  { kind: "Field", name: { kind: "Name", value: "projectUpdateRemindersPausedUntilAt" } },
8582
8673
  { kind: "Field", name: { kind: "Name", value: "scopeHistory" } },
8583
8674
  { kind: "Field", name: { kind: "Name", value: "issueCountHistory" } },
8584
- { kind: "Field", name: { kind: "Name", value: "state" } },
8585
8675
  { kind: "Field", name: { kind: "Name", value: "id" } },
8586
8676
  {
8587
8677
  kind: "Field",
@@ -8591,9 +8681,18 @@
8591
8681
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
8592
8682
  },
8593
8683
  },
8684
+ {
8685
+ kind: "Field",
8686
+ name: { kind: "Name", value: "favorite" },
8687
+ selectionSet: {
8688
+ kind: "SelectionSet",
8689
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
8690
+ },
8691
+ },
8594
8692
  { kind: "Field", name: { kind: "Name", value: "slackIssueComments" } },
8595
8693
  { kind: "Field", name: { kind: "Name", value: "slackNewIssue" } },
8596
8694
  { kind: "Field", name: { kind: "Name", value: "slackIssueStatuses" } },
8695
+ { kind: "Field", name: { kind: "Name", value: "state" } },
8597
8696
  ],
8598
8697
  },
8599
8698
  },
@@ -18772,6 +18871,44 @@
18772
18871
  ...PageInfoFragmentDoc.definitions,
18773
18872
  ],
18774
18873
  };
18874
+ const OrganizationRegionDocument = {
18875
+ kind: "Document",
18876
+ definitions: [
18877
+ {
18878
+ kind: "OperationDefinition",
18879
+ operation: "query",
18880
+ name: { kind: "Name", value: "organizationRegion" },
18881
+ variableDefinitions: [
18882
+ {
18883
+ kind: "VariableDefinition",
18884
+ variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
18885
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
18886
+ },
18887
+ ],
18888
+ selectionSet: {
18889
+ kind: "SelectionSet",
18890
+ selections: [
18891
+ {
18892
+ kind: "Field",
18893
+ name: { kind: "Name", value: "organizationRegion" },
18894
+ arguments: [
18895
+ {
18896
+ kind: "Argument",
18897
+ name: { kind: "Name", value: "id" },
18898
+ value: { kind: "Variable", name: { kind: "Name", value: "id" } },
18899
+ },
18900
+ ],
18901
+ selectionSet: {
18902
+ kind: "SelectionSet",
18903
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "OrganizationRegionResponse" } }],
18904
+ },
18905
+ },
18906
+ ],
18907
+ },
18908
+ },
18909
+ ...OrganizationRegionResponseFragmentDoc.definitions,
18910
+ ],
18911
+ };
18775
18912
  const ProjectDocument = {
18776
18913
  kind: "Document",
18777
18914
  definitions: [
@@ -34678,6 +34815,9 @@
34678
34815
  TeamNotificationSubscriptionFragmentDoc: TeamNotificationSubscriptionFragmentDoc,
34679
34816
  UserAccountFragmentDoc: UserAccountFragmentDoc,
34680
34817
  UserNotificationSubscriptionFragmentDoc: UserNotificationSubscriptionFragmentDoc,
34818
+ AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
34819
+ AuthUserFragmentDoc: AuthUserFragmentDoc,
34820
+ AuthEmailIntakeAddressFragmentDoc: AuthEmailIntakeAddressFragmentDoc,
34681
34821
  AuthOrganizationInviteFragmentDoc: AuthOrganizationInviteFragmentDoc,
34682
34822
  PaidSubscriptionFragmentDoc: PaidSubscriptionFragmentDoc,
34683
34823
  OrganizationFragmentDoc: OrganizationFragmentDoc,
@@ -34732,8 +34872,6 @@
34732
34872
  AuthApiKeyPayloadFragmentDoc: AuthApiKeyPayloadFragmentDoc,
34733
34873
  AuthIntegrationFragmentDoc: AuthIntegrationFragmentDoc,
34734
34874
  AuthOauthClientFragmentDoc: AuthOauthClientFragmentDoc,
34735
- AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
34736
- AuthUserFragmentDoc: AuthUserFragmentDoc,
34737
34875
  OauthTokenFragmentDoc: OauthTokenFragmentDoc,
34738
34876
  AuthOauthClientWithTokensFragmentDoc: AuthOauthClientWithTokensFragmentDoc,
34739
34877
  AuthOrganizationDomainFragmentDoc: AuthOrganizationDomainFragmentDoc,
@@ -34833,8 +34971,10 @@
34833
34971
  OrganizationInviteFragmentDoc: OrganizationInviteFragmentDoc,
34834
34972
  OrganizationInviteConnectionFragmentDoc: OrganizationInviteConnectionFragmentDoc,
34835
34973
  OrganizationInviteFullDetailsPayloadFragmentDoc: OrganizationInviteFullDetailsPayloadFragmentDoc,
34974
+ OrganizationInviteLinkDetailsPayloadFragmentDoc: OrganizationInviteLinkDetailsPayloadFragmentDoc,
34836
34975
  OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
34837
34976
  OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
34977
+ OrganizationRegionResponseFragmentDoc: OrganizationRegionResponseFragmentDoc,
34838
34978
  OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
34839
34979
  ProjectFragmentDoc: ProjectFragmentDoc,
34840
34980
  ProjectConnectionFragmentDoc: ProjectConnectionFragmentDoc,
@@ -35011,6 +35151,7 @@
35011
35151
  OrganizationExistsDocument: OrganizationExistsDocument,
35012
35152
  OrganizationInviteDocument: OrganizationInviteDocument,
35013
35153
  OrganizationInvitesDocument: OrganizationInvitesDocument,
35154
+ OrganizationRegionDocument: OrganizationRegionDocument,
35014
35155
  ProjectDocument: ProjectDocument,
35015
35156
  Project_DocumentsDocument: Project_DocumentsDocument,
35016
35157
  Project_IssuesDocument: Project_IssuesDocument,
@@ -35751,6 +35892,22 @@
35751
35892
  this.authApiKey = new AuthApiKey(request, data.authApiKey);
35752
35893
  }
35753
35894
  }
35895
+ /**
35896
+ * An email address that can be used for submitting issues.
35897
+ *
35898
+ * @param request - function to call the graphql client
35899
+ * @param data - L.AuthEmailIntakeAddressFragment response data
35900
+ */
35901
+ class AuthEmailIntakeAddress extends Request {
35902
+ constructor(request, data) {
35903
+ super(request);
35904
+ this.address = data.address;
35905
+ this.enabled = data.enabled;
35906
+ this.id = data.id;
35907
+ this.creator = data.creator ? new AuthUser(request, data.creator) : undefined;
35908
+ this.organization = new AuthOrganization(request, data.organization);
35909
+ }
35910
+ }
35754
35911
  /**
35755
35912
  * AuthIntegration model
35756
35913
  *
@@ -35855,6 +36012,7 @@
35855
36012
  this.logoUrl = (_b = data.logoUrl) !== null && _b !== void 0 ? _b : undefined;
35856
36013
  this.name = data.name;
35857
36014
  this.previousUrlKeys = data.previousUrlKeys;
36015
+ this.region = data.region;
35858
36016
  this.samlEnabled = data.samlEnabled;
35859
36017
  this.scimEnabled = data.scimEnabled;
35860
36018
  this.serviceId = data.serviceId;
@@ -36581,20 +36739,21 @@
36581
36739
  */
36582
36740
  class Document extends Request {
36583
36741
  constructor(request, data) {
36584
- var _a, _b, _c, _d, _e, _f, _g;
36742
+ var _a, _b, _c, _d, _e, _f, _g, _h;
36585
36743
  super(request);
36586
36744
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
36587
36745
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
36588
36746
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
36589
36747
  this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
36590
- this.icon = (_e = data.icon) !== null && _e !== void 0 ? _e : undefined;
36748
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
36749
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
36591
36750
  this.id = data.id;
36592
36751
  this.slugId = data.slugId;
36593
36752
  this.sortOrder = data.sortOrder;
36594
36753
  this.title = data.title;
36595
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
36754
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
36596
36755
  this._creator = data.creator;
36597
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
36756
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
36598
36757
  this._project = data.project;
36599
36758
  this._updatedBy = data.updatedBy;
36600
36759
  }
@@ -36776,21 +36935,22 @@
36776
36935
  */
36777
36936
  class DocumentSearchResult extends Request {
36778
36937
  constructor(request, data) {
36779
- var _a, _b, _c, _d, _e, _f, _g;
36938
+ var _a, _b, _c, _d, _e, _f, _g, _h;
36780
36939
  super(request);
36781
36940
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
36782
36941
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
36783
36942
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
36784
36943
  this.createdAt = (_d = parseDate(data.createdAt)) !== null && _d !== void 0 ? _d : new Date();
36785
- this.icon = (_e = data.icon) !== null && _e !== void 0 ? _e : undefined;
36944
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
36945
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
36786
36946
  this.id = data.id;
36787
36947
  this.metadata = data.metadata;
36788
36948
  this.slugId = data.slugId;
36789
36949
  this.sortOrder = data.sortOrder;
36790
36950
  this.title = data.title;
36791
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
36951
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
36792
36952
  this._creator = data.creator;
36793
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
36953
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
36794
36954
  this._project = data.project;
36795
36955
  this._updatedBy = data.updatedBy;
36796
36956
  }
@@ -39389,6 +39549,7 @@
39389
39549
  var _a, _b;
39390
39550
  super(request);
39391
39551
  this.accepted = data.accepted;
39552
+ this.allowedAuthServices = data.allowedAuthServices;
39392
39553
  this.createdAt = (_a = parseDate(data.createdAt)) !== null && _a !== void 0 ? _a : new Date();
39393
39554
  this.email = data.email;
39394
39555
  this.expired = data.expired;
@@ -39398,6 +39559,24 @@
39398
39559
  this.organizationName = data.organizationName;
39399
39560
  }
39400
39561
  }
39562
+ /**
39563
+ * OrganizationInviteLinkDetailsPayload model
39564
+ *
39565
+ * @param request - function to call the graphql client
39566
+ * @param data - L.OrganizationInviteLinkDetailsPayloadFragment response data
39567
+ */
39568
+ class OrganizationInviteLinkDetailsPayload extends Request {
39569
+ constructor(request, data) {
39570
+ var _a, _b, _c, _d, _e;
39571
+ super(request);
39572
+ this.allowedAuthServices = data.allowedAuthServices;
39573
+ this.organizationId = (_a = data.organizationId) !== null && _a !== void 0 ? _a : undefined;
39574
+ this.organizationLogoUrl = (_b = data.organizationLogoUrl) !== null && _b !== void 0 ? _b : undefined;
39575
+ this.organizationName = (_c = data.organizationName) !== null && _c !== void 0 ? _c : undefined;
39576
+ this.organizationRegion = (_d = data.organizationRegion) !== null && _d !== void 0 ? _d : undefined;
39577
+ this.organizationUrlKey = (_e = data.organizationUrlKey) !== null && _e !== void 0 ? _e : undefined;
39578
+ }
39579
+ }
39401
39580
  /**
39402
39581
  * OrganizationInvitePayload model
39403
39582
  *
@@ -39433,6 +39612,20 @@
39433
39612
  return new OrganizationQuery(this._request).fetch();
39434
39613
  }
39435
39614
  }
39615
+ /**
39616
+ * OrganizationRegionResponse model
39617
+ *
39618
+ * @param request - function to call the graphql client
39619
+ * @param data - L.OrganizationRegionResponseFragment response data
39620
+ */
39621
+ class OrganizationRegionResponse extends Request {
39622
+ constructor(request, data) {
39623
+ var _a;
39624
+ super(request);
39625
+ this.region = (_a = data.region) !== null && _a !== void 0 ? _a : undefined;
39626
+ this.success = data.success;
39627
+ }
39628
+ }
39436
39629
  /**
39437
39630
  * OrganizationStartPlusTrialPayload model
39438
39631
  *
@@ -39516,7 +39709,7 @@
39516
39709
  */
39517
39710
  class Project extends Request {
39518
39711
  constructor(request, data) {
39519
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
39712
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
39520
39713
  super(request);
39521
39714
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
39522
39715
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -39551,9 +39744,10 @@
39551
39744
  this.url = data.url;
39552
39745
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
39553
39746
  this._creator = (_q = data.creator) !== null && _q !== void 0 ? _q : undefined;
39554
- this._integrationsSettings = (_r = data.integrationsSettings) !== null && _r !== void 0 ? _r : undefined;
39555
- this._lastAppliedTemplate = (_s = data.lastAppliedTemplate) !== null && _s !== void 0 ? _s : undefined;
39556
- this._lead = (_t = data.lead) !== null && _t !== void 0 ? _t : undefined;
39747
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
39748
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
39749
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
39750
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
39557
39751
  }
39558
39752
  /** The project was created based on this issue. */
39559
39753
  get convertedFromIssue() {
@@ -39565,6 +39759,11 @@
39565
39759
  var _a, _b;
39566
39760
  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;
39567
39761
  }
39762
+ /** The user's favorite associated with this project. */
39763
+ get favorite() {
39764
+ var _a, _b;
39765
+ 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;
39766
+ }
39568
39767
  /** Settings for all integrations associated with that project. */
39569
39768
  get integrationsSettings() {
39570
39769
  var _a, _b;
@@ -39973,7 +40172,7 @@
39973
40172
  */
39974
40173
  class ProjectSearchResult extends Request {
39975
40174
  constructor(request, data) {
39976
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
40175
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
39977
40176
  super(request);
39978
40177
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
39979
40178
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -40009,9 +40208,10 @@
40009
40208
  this.url = data.url;
40010
40209
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
40011
40210
  this._creator = (_q = data.creator) !== null && _q !== void 0 ? _q : undefined;
40012
- this._integrationsSettings = (_r = data.integrationsSettings) !== null && _r !== void 0 ? _r : undefined;
40013
- this._lastAppliedTemplate = (_s = data.lastAppliedTemplate) !== null && _s !== void 0 ? _s : undefined;
40014
- this._lead = (_t = data.lead) !== null && _t !== void 0 ? _t : undefined;
40211
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
40212
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
40213
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
40214
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
40015
40215
  }
40016
40216
  /** The project was created based on this issue. */
40017
40217
  get convertedFromIssue() {
@@ -40023,6 +40223,11 @@
40023
40223
  var _a, _b;
40024
40224
  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;
40025
40225
  }
40226
+ /** The user's favorite associated with this project. */
40227
+ get favorite() {
40228
+ var _a, _b;
40229
+ 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;
40230
+ }
40026
40231
  /** Settings for all integrations associated with that project. */
40027
40232
  get integrationsSettings() {
40028
40233
  var _a, _b;
@@ -40593,10 +40798,11 @@
40593
40798
  */
40594
40799
  class SharedSlackSettings extends Request {
40595
40800
  constructor(request, data) {
40596
- var _a, _b;
40801
+ var _a, _b, _c;
40597
40802
  super(request);
40598
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
40599
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
40803
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
40804
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
40805
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
40600
40806
  }
40601
40807
  }
40602
40808
  /**
@@ -40607,10 +40813,11 @@
40607
40813
  */
40608
40814
  class SlackAsksSettings extends Request {
40609
40815
  constructor(request, data) {
40610
- var _a, _b;
40816
+ var _a, _b, _c;
40611
40817
  super(request);
40612
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
40613
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
40818
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
40819
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
40820
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
40614
40821
  this.slackChannelMapping = data.slackChannelMapping
40615
40822
  ? data.slackChannelMapping.map(node => new SlackChannelNameMapping(request, node))
40616
40823
  : undefined;
@@ -40696,11 +40903,12 @@
40696
40903
  */
40697
40904
  class SlackSettings extends Request {
40698
40905
  constructor(request, data) {
40699
- var _a, _b;
40906
+ var _a, _b, _c;
40700
40907
  super(request);
40908
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
40701
40909
  this.linkOnIssueIdMention = data.linkOnIssueIdMention;
40702
- this.teamId = (_a = data.teamId) !== null && _a !== void 0 ? _a : undefined;
40703
- this.teamName = (_b = data.teamName) !== null && _b !== void 0 ? _b : undefined;
40910
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
40911
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
40704
40912
  }
40705
40913
  }
40706
40914
  /**
@@ -43403,6 +43611,31 @@
43403
43611
  });
43404
43612
  }
43405
43613
  }
43614
+ /**
43615
+ * A fetchable OrganizationRegion Query
43616
+ *
43617
+ * @param request - function to call the graphql client
43618
+ */
43619
+ class OrganizationRegionQuery extends Request {
43620
+ constructor(request) {
43621
+ super(request);
43622
+ }
43623
+ /**
43624
+ * Call the OrganizationRegion query and return a OrganizationRegionResponse
43625
+ *
43626
+ * @param id - required id to pass to organizationRegion
43627
+ * @returns parsed response from OrganizationRegionQuery
43628
+ */
43629
+ fetch(id) {
43630
+ return __awaiter(this, void 0, void 0, function* () {
43631
+ const response = yield this._request(OrganizationRegionDocument, {
43632
+ id,
43633
+ });
43634
+ const data = response.organizationRegion;
43635
+ return new OrganizationRegionResponse(this._request, data);
43636
+ });
43637
+ }
43638
+ }
43406
43639
  /**
43407
43640
  * A fetchable Project Query
43408
43641
  *
@@ -52005,6 +52238,15 @@
52005
52238
  organizationInvites(variables) {
52006
52239
  return new OrganizationInvitesQuery(this._request).fetch(variables);
52007
52240
  }
52241
+ /**
52242
+ * Fetch the region for the organization.
52243
+ *
52244
+ * @param id - required id to pass to organizationRegion
52245
+ * @returns OrganizationRegionResponse
52246
+ */
52247
+ organizationRegion(id) {
52248
+ return new OrganizationRegionQuery(this._request).fetch(id);
52249
+ }
52008
52250
  /**
52009
52251
  * One specific project.
52010
52252
  *
@@ -52733,7 +52975,7 @@
52733
52975
  return new EmailTokenUserAccountAuthMutation(this._request).fetch(input);
52734
52976
  }
52735
52977
  /**
52736
- * Unsubscribes the user from one type of emails.
52978
+ * Unsubscribes the user from one type of email.
52737
52979
  *
52738
52980
  * @param input - required input to pass to emailUnsubscribe
52739
52981
  * @returns EmailUnsubscribePayload
@@ -54330,6 +54572,23 @@
54330
54572
  this.options = parsedOptions;
54331
54573
  this.client = graphQLClient;
54332
54574
  }
54575
+ /**
54576
+ * Helper to paginate over all pages of a given connection query.
54577
+ * @param fn The query to paginate
54578
+ * @param args The arguments to pass to the query
54579
+ */
54580
+ paginate(fn, args) {
54581
+ return __awaiter(this, void 0, void 0, function* () {
54582
+ const boundFn = fn.bind(this);
54583
+ let connection = (yield boundFn(args));
54584
+ const nodes = connection.nodes;
54585
+ while (connection.pageInfo.hasNextPage) {
54586
+ connection = (yield boundFn(Object.assign(Object.assign({}, args), { after: connection.pageInfo.endCursor })));
54587
+ nodes.push(...connection.nodes);
54588
+ }
54589
+ return nodes;
54590
+ });
54591
+ }
54333
54592
  }
54334
54593
 
54335
54594
  const LINEAR_WEBHOOK_SIGNATURE_HEADER = "linear-signature";
@@ -54423,6 +54682,7 @@
54423
54682
  exports.AuditEntryTypesQuery = AuditEntryTypesQuery;
54424
54683
  exports.AuthApiKey = AuthApiKey;
54425
54684
  exports.AuthApiKeyPayload = AuthApiKeyPayload;
54685
+ exports.AuthEmailIntakeAddress = AuthEmailIntakeAddress;
54426
54686
  exports.AuthIntegration = AuthIntegration;
54427
54687
  exports.AuthOauthClient = AuthOauthClient;
54428
54688
  exports.AuthOauthClientWithMemberships = AuthOauthClientWithMemberships;
@@ -54786,11 +55046,14 @@
54786
55046
  exports.OrganizationInvite = OrganizationInvite;
54787
55047
  exports.OrganizationInviteConnection = OrganizationInviteConnection;
54788
55048
  exports.OrganizationInviteFullDetailsPayload = OrganizationInviteFullDetailsPayload;
55049
+ exports.OrganizationInviteLinkDetailsPayload = OrganizationInviteLinkDetailsPayload;
54789
55050
  exports.OrganizationInvitePayload = OrganizationInvitePayload;
54790
55051
  exports.OrganizationInviteQuery = OrganizationInviteQuery;
54791
55052
  exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
54792
55053
  exports.OrganizationPayload = OrganizationPayload;
54793
55054
  exports.OrganizationQuery = OrganizationQuery;
55055
+ exports.OrganizationRegionQuery = OrganizationRegionQuery;
55056
+ exports.OrganizationRegionResponse = OrganizationRegionResponse;
54794
55057
  exports.OrganizationStartPlusTrialMutation = OrganizationStartPlusTrialMutation;
54795
55058
  exports.OrganizationStartPlusTrialPayload = OrganizationStartPlusTrialPayload;
54796
55059
  exports.Organization_IntegrationsQuery = Organization_IntegrationsQuery;