@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-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":"19.0.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
  },
@@ -25700,7 +25799,7 @@
25700
25799
  {
25701
25800
  kind: "VariableDefinition",
25702
25801
  variable: { kind: "Variable", name: { kind: "Name", value: "channel" } },
25703
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
25802
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
25704
25803
  },
25705
25804
  {
25706
25805
  kind: "VariableDefinition",
@@ -25725,7 +25824,7 @@
25725
25824
  {
25726
25825
  kind: "VariableDefinition",
25727
25826
  variable: { kind: "Variable", name: { kind: "Name", value: "latest" } },
25728
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
25827
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
25729
25828
  },
25730
25829
  {
25731
25830
  kind: "VariableDefinition",
@@ -34678,6 +34777,9 @@
34678
34777
  TeamNotificationSubscriptionFragmentDoc: TeamNotificationSubscriptionFragmentDoc,
34679
34778
  UserAccountFragmentDoc: UserAccountFragmentDoc,
34680
34779
  UserNotificationSubscriptionFragmentDoc: UserNotificationSubscriptionFragmentDoc,
34780
+ AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
34781
+ AuthUserFragmentDoc: AuthUserFragmentDoc,
34782
+ AuthEmailIntakeAddressFragmentDoc: AuthEmailIntakeAddressFragmentDoc,
34681
34783
  AuthOrganizationInviteFragmentDoc: AuthOrganizationInviteFragmentDoc,
34682
34784
  PaidSubscriptionFragmentDoc: PaidSubscriptionFragmentDoc,
34683
34785
  OrganizationFragmentDoc: OrganizationFragmentDoc,
@@ -34732,8 +34834,6 @@
34732
34834
  AuthApiKeyPayloadFragmentDoc: AuthApiKeyPayloadFragmentDoc,
34733
34835
  AuthIntegrationFragmentDoc: AuthIntegrationFragmentDoc,
34734
34836
  AuthOauthClientFragmentDoc: AuthOauthClientFragmentDoc,
34735
- AuthOrganizationFragmentDoc: AuthOrganizationFragmentDoc,
34736
- AuthUserFragmentDoc: AuthUserFragmentDoc,
34737
34837
  OauthTokenFragmentDoc: OauthTokenFragmentDoc,
34738
34838
  AuthOauthClientWithTokensFragmentDoc: AuthOauthClientWithTokensFragmentDoc,
34739
34839
  AuthOrganizationDomainFragmentDoc: AuthOrganizationDomainFragmentDoc,
@@ -34833,8 +34933,10 @@
34833
34933
  OrganizationInviteFragmentDoc: OrganizationInviteFragmentDoc,
34834
34934
  OrganizationInviteConnectionFragmentDoc: OrganizationInviteConnectionFragmentDoc,
34835
34935
  OrganizationInviteFullDetailsPayloadFragmentDoc: OrganizationInviteFullDetailsPayloadFragmentDoc,
34936
+ OrganizationInviteLinkDetailsPayloadFragmentDoc: OrganizationInviteLinkDetailsPayloadFragmentDoc,
34836
34937
  OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
34837
34938
  OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
34939
+ OrganizationRegionResponseFragmentDoc: OrganizationRegionResponseFragmentDoc,
34838
34940
  OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
34839
34941
  ProjectFragmentDoc: ProjectFragmentDoc,
34840
34942
  ProjectConnectionFragmentDoc: ProjectConnectionFragmentDoc,
@@ -35294,6 +35396,23 @@
35294
35396
  constructor(request) {
35295
35397
  this._request = request;
35296
35398
  }
35399
+ /**
35400
+ * Helper to paginate over all pages of a given connection query.
35401
+ * @param fn The query to paginate
35402
+ * @param args The arguments to pass to the query
35403
+ */
35404
+ paginate(fn, args) {
35405
+ return __awaiter(this, void 0, void 0, function* () {
35406
+ const boundFn = fn.bind(this);
35407
+ let connection = yield boundFn(args);
35408
+ const nodes = connection.nodes;
35409
+ while (connection.pageInfo.hasNextPage) {
35410
+ connection = yield boundFn(Object.assign(Object.assign({}, args), { after: connection.pageInfo.endCursor }));
35411
+ nodes.push(...connection.nodes);
35412
+ }
35413
+ return nodes;
35414
+ });
35415
+ }
35297
35416
  }
35298
35417
  /**
35299
35418
  * Default connection variables required for pagination
@@ -35751,6 +35870,22 @@
35751
35870
  this.authApiKey = new AuthApiKey(request, data.authApiKey);
35752
35871
  }
35753
35872
  }
35873
+ /**
35874
+ * An email address that can be used for submitting issues.
35875
+ *
35876
+ * @param request - function to call the graphql client
35877
+ * @param data - L.AuthEmailIntakeAddressFragment response data
35878
+ */
35879
+ class AuthEmailIntakeAddress extends Request {
35880
+ constructor(request, data) {
35881
+ super(request);
35882
+ this.address = data.address;
35883
+ this.enabled = data.enabled;
35884
+ this.id = data.id;
35885
+ this.creator = data.creator ? new AuthUser(request, data.creator) : undefined;
35886
+ this.organization = new AuthOrganization(request, data.organization);
35887
+ }
35888
+ }
35754
35889
  /**
35755
35890
  * AuthIntegration model
35756
35891
  *
@@ -35855,6 +35990,7 @@
35855
35990
  this.logoUrl = (_b = data.logoUrl) !== null && _b !== void 0 ? _b : undefined;
35856
35991
  this.name = data.name;
35857
35992
  this.previousUrlKeys = data.previousUrlKeys;
35993
+ this.region = data.region;
35858
35994
  this.samlEnabled = data.samlEnabled;
35859
35995
  this.scimEnabled = data.scimEnabled;
35860
35996
  this.serviceId = data.serviceId;
@@ -36581,20 +36717,21 @@
36581
36717
  */
36582
36718
  class Document extends Request {
36583
36719
  constructor(request, data) {
36584
- var _a, _b, _c, _d, _e, _f, _g;
36720
+ var _a, _b, _c, _d, _e, _f, _g, _h;
36585
36721
  super(request);
36586
36722
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
36587
36723
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
36588
36724
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
36589
36725
  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;
36726
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
36727
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
36591
36728
  this.id = data.id;
36592
36729
  this.slugId = data.slugId;
36593
36730
  this.sortOrder = data.sortOrder;
36594
36731
  this.title = data.title;
36595
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
36732
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
36596
36733
  this._creator = data.creator;
36597
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
36734
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
36598
36735
  this._project = data.project;
36599
36736
  this._updatedBy = data.updatedBy;
36600
36737
  }
@@ -36776,21 +36913,22 @@
36776
36913
  */
36777
36914
  class DocumentSearchResult extends Request {
36778
36915
  constructor(request, data) {
36779
- var _a, _b, _c, _d, _e, _f, _g;
36916
+ var _a, _b, _c, _d, _e, _f, _g, _h;
36780
36917
  super(request);
36781
36918
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
36782
36919
  this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
36783
36920
  this.content = (_c = data.content) !== null && _c !== void 0 ? _c : undefined;
36784
36921
  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;
36922
+ this.hiddenAt = (_e = parseDate(data.hiddenAt)) !== null && _e !== void 0 ? _e : undefined;
36923
+ this.icon = (_f = data.icon) !== null && _f !== void 0 ? _f : undefined;
36786
36924
  this.id = data.id;
36787
36925
  this.metadata = data.metadata;
36788
36926
  this.slugId = data.slugId;
36789
36927
  this.sortOrder = data.sortOrder;
36790
36928
  this.title = data.title;
36791
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
36929
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
36792
36930
  this._creator = data.creator;
36793
- this._lastAppliedTemplate = (_g = data.lastAppliedTemplate) !== null && _g !== void 0 ? _g : undefined;
36931
+ this._lastAppliedTemplate = (_h = data.lastAppliedTemplate) !== null && _h !== void 0 ? _h : undefined;
36794
36932
  this._project = data.project;
36795
36933
  this._updatedBy = data.updatedBy;
36796
36934
  }
@@ -39389,6 +39527,7 @@
39389
39527
  var _a, _b;
39390
39528
  super(request);
39391
39529
  this.accepted = data.accepted;
39530
+ this.allowedAuthServices = data.allowedAuthServices;
39392
39531
  this.createdAt = (_a = parseDate(data.createdAt)) !== null && _a !== void 0 ? _a : new Date();
39393
39532
  this.email = data.email;
39394
39533
  this.expired = data.expired;
@@ -39398,6 +39537,24 @@
39398
39537
  this.organizationName = data.organizationName;
39399
39538
  }
39400
39539
  }
39540
+ /**
39541
+ * OrganizationInviteLinkDetailsPayload model
39542
+ *
39543
+ * @param request - function to call the graphql client
39544
+ * @param data - L.OrganizationInviteLinkDetailsPayloadFragment response data
39545
+ */
39546
+ class OrganizationInviteLinkDetailsPayload extends Request {
39547
+ constructor(request, data) {
39548
+ var _a, _b, _c, _d, _e;
39549
+ super(request);
39550
+ this.allowedAuthServices = data.allowedAuthServices;
39551
+ this.organizationId = (_a = data.organizationId) !== null && _a !== void 0 ? _a : undefined;
39552
+ this.organizationLogoUrl = (_b = data.organizationLogoUrl) !== null && _b !== void 0 ? _b : undefined;
39553
+ this.organizationName = (_c = data.organizationName) !== null && _c !== void 0 ? _c : undefined;
39554
+ this.organizationRegion = (_d = data.organizationRegion) !== null && _d !== void 0 ? _d : undefined;
39555
+ this.organizationUrlKey = (_e = data.organizationUrlKey) !== null && _e !== void 0 ? _e : undefined;
39556
+ }
39557
+ }
39401
39558
  /**
39402
39559
  * OrganizationInvitePayload model
39403
39560
  *
@@ -39433,6 +39590,20 @@
39433
39590
  return new OrganizationQuery(this._request).fetch();
39434
39591
  }
39435
39592
  }
39593
+ /**
39594
+ * OrganizationRegionResponse model
39595
+ *
39596
+ * @param request - function to call the graphql client
39597
+ * @param data - L.OrganizationRegionResponseFragment response data
39598
+ */
39599
+ class OrganizationRegionResponse extends Request {
39600
+ constructor(request, data) {
39601
+ var _a;
39602
+ super(request);
39603
+ this.region = (_a = data.region) !== null && _a !== void 0 ? _a : undefined;
39604
+ this.success = data.success;
39605
+ }
39606
+ }
39436
39607
  /**
39437
39608
  * OrganizationStartPlusTrialPayload model
39438
39609
  *
@@ -39516,7 +39687,7 @@
39516
39687
  */
39517
39688
  class Project extends Request {
39518
39689
  constructor(request, data) {
39519
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
39690
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
39520
39691
  super(request);
39521
39692
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
39522
39693
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -39551,9 +39722,10 @@
39551
39722
  this.url = data.url;
39552
39723
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
39553
39724
  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;
39725
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
39726
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
39727
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
39728
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
39557
39729
  }
39558
39730
  /** The project was created based on this issue. */
39559
39731
  get convertedFromIssue() {
@@ -39565,6 +39737,11 @@
39565
39737
  var _a, _b;
39566
39738
  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
39739
  }
39740
+ /** The user's favorite associated with this project. */
39741
+ get favorite() {
39742
+ var _a, _b;
39743
+ 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;
39744
+ }
39568
39745
  /** Settings for all integrations associated with that project. */
39569
39746
  get integrationsSettings() {
39570
39747
  var _a, _b;
@@ -39973,7 +40150,7 @@
39973
40150
  */
39974
40151
  class ProjectSearchResult extends Request {
39975
40152
  constructor(request, data) {
39976
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
40153
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
39977
40154
  super(request);
39978
40155
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
39979
40156
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -40009,9 +40186,10 @@
40009
40186
  this.url = data.url;
40010
40187
  this._convertedFromIssue = (_p = data.convertedFromIssue) !== null && _p !== void 0 ? _p : undefined;
40011
40188
  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;
40189
+ this._favorite = (_r = data.favorite) !== null && _r !== void 0 ? _r : undefined;
40190
+ this._integrationsSettings = (_s = data.integrationsSettings) !== null && _s !== void 0 ? _s : undefined;
40191
+ this._lastAppliedTemplate = (_t = data.lastAppliedTemplate) !== null && _t !== void 0 ? _t : undefined;
40192
+ this._lead = (_u = data.lead) !== null && _u !== void 0 ? _u : undefined;
40015
40193
  }
40016
40194
  /** The project was created based on this issue. */
40017
40195
  get convertedFromIssue() {
@@ -40023,6 +40201,11 @@
40023
40201
  var _a, _b;
40024
40202
  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
40203
  }
40204
+ /** The user's favorite associated with this project. */
40205
+ get favorite() {
40206
+ var _a, _b;
40207
+ 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;
40208
+ }
40026
40209
  /** Settings for all integrations associated with that project. */
40027
40210
  get integrationsSettings() {
40028
40211
  var _a, _b;
@@ -40593,10 +40776,11 @@
40593
40776
  */
40594
40777
  class SharedSlackSettings extends Request {
40595
40778
  constructor(request, data) {
40596
- var _a, _b;
40779
+ var _a, _b, _c;
40597
40780
  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;
40781
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
40782
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
40783
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
40600
40784
  }
40601
40785
  }
40602
40786
  /**
@@ -40607,10 +40791,11 @@
40607
40791
  */
40608
40792
  class SlackAsksSettings extends Request {
40609
40793
  constructor(request, data) {
40610
- var _a, _b;
40794
+ var _a, _b, _c;
40611
40795
  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;
40796
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
40797
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
40798
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
40614
40799
  this.slackChannelMapping = data.slackChannelMapping
40615
40800
  ? data.slackChannelMapping.map(node => new SlackChannelNameMapping(request, node))
40616
40801
  : undefined;
@@ -40696,11 +40881,12 @@
40696
40881
  */
40697
40882
  class SlackSettings extends Request {
40698
40883
  constructor(request, data) {
40699
- var _a, _b;
40884
+ var _a, _b, _c;
40700
40885
  super(request);
40886
+ this.enterpriseName = (_a = data.enterpriseName) !== null && _a !== void 0 ? _a : undefined;
40701
40887
  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;
40888
+ this.teamId = (_b = data.teamId) !== null && _b !== void 0 ? _b : undefined;
40889
+ this.teamName = (_c = data.teamName) !== null && _c !== void 0 ? _c : undefined;
40704
40890
  }
40705
40891
  }
40706
40892
  /**
@@ -44618,18 +44804,14 @@
44618
44804
  /**
44619
44805
  * Call the AttachmentLinkSlack mutation and return a AttachmentPayload
44620
44806
  *
44621
- * @param channel - required channel to pass to attachmentLinkSlack
44622
44807
  * @param issueId - required issueId to pass to attachmentLinkSlack
44623
- * @param latest - required latest to pass to attachmentLinkSlack
44624
44808
  * @param url - required url to pass to attachmentLinkSlack
44625
- * @param variables - variables without 'channel', 'issueId', 'latest', 'url' to pass into the AttachmentLinkSlackMutation
44809
+ * @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
44626
44810
  * @returns parsed response from AttachmentLinkSlackMutation
44627
44811
  */
44628
- fetch(channel, issueId, latest, url, variables) {
44812
+ fetch(issueId, url, variables) {
44629
44813
  return __awaiter(this, void 0, void 0, function* () {
44630
- const response = yield this._request(AttachmentLinkSlackDocument, Object.assign({ channel,
44631
- issueId,
44632
- latest,
44814
+ const response = yield this._request(AttachmentLinkSlackDocument, Object.assign({ issueId,
44633
44815
  url }, variables));
44634
44816
  const data = response.attachmentLinkSlack;
44635
44817
  return new AttachmentPayload(this._request, data);
@@ -52466,15 +52648,13 @@
52466
52648
  /**
52467
52649
  * Link an existing Slack message to an issue.
52468
52650
  *
52469
- * @param channel - required channel to pass to attachmentLinkSlack
52470
52651
  * @param issueId - required issueId to pass to attachmentLinkSlack
52471
- * @param latest - required latest to pass to attachmentLinkSlack
52472
52652
  * @param url - required url to pass to attachmentLinkSlack
52473
- * @param variables - variables without 'channel', 'issueId', 'latest', 'url' to pass into the AttachmentLinkSlackMutation
52653
+ * @param variables - variables without 'issueId', 'url' to pass into the AttachmentLinkSlackMutation
52474
52654
  * @returns AttachmentPayload
52475
52655
  */
52476
- attachmentLinkSlack(channel, issueId, latest, url, variables) {
52477
- return new AttachmentLinkSlackMutation(this._request).fetch(channel, issueId, latest, url, variables);
52656
+ attachmentLinkSlack(issueId, url, variables) {
52657
+ return new AttachmentLinkSlackMutation(this._request).fetch(issueId, url, variables);
52478
52658
  }
52479
52659
  /**
52480
52660
  * Link any url to an issue.
@@ -52733,7 +52913,7 @@
52733
52913
  return new EmailTokenUserAccountAuthMutation(this._request).fetch(input);
52734
52914
  }
52735
52915
  /**
52736
- * Unsubscribes the user from one type of emails.
52916
+ * Unsubscribes the user from one type of email.
52737
52917
  *
52738
52918
  * @param input - required input to pass to emailUnsubscribe
52739
52919
  * @returns EmailUnsubscribePayload
@@ -54423,6 +54603,7 @@
54423
54603
  exports.AuditEntryTypesQuery = AuditEntryTypesQuery;
54424
54604
  exports.AuthApiKey = AuthApiKey;
54425
54605
  exports.AuthApiKeyPayload = AuthApiKeyPayload;
54606
+ exports.AuthEmailIntakeAddress = AuthEmailIntakeAddress;
54426
54607
  exports.AuthIntegration = AuthIntegration;
54427
54608
  exports.AuthOauthClient = AuthOauthClient;
54428
54609
  exports.AuthOauthClientWithMemberships = AuthOauthClientWithMemberships;
@@ -54786,11 +54967,13 @@
54786
54967
  exports.OrganizationInvite = OrganizationInvite;
54787
54968
  exports.OrganizationInviteConnection = OrganizationInviteConnection;
54788
54969
  exports.OrganizationInviteFullDetailsPayload = OrganizationInviteFullDetailsPayload;
54970
+ exports.OrganizationInviteLinkDetailsPayload = OrganizationInviteLinkDetailsPayload;
54789
54971
  exports.OrganizationInvitePayload = OrganizationInvitePayload;
54790
54972
  exports.OrganizationInviteQuery = OrganizationInviteQuery;
54791
54973
  exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
54792
54974
  exports.OrganizationPayload = OrganizationPayload;
54793
54975
  exports.OrganizationQuery = OrganizationQuery;
54976
+ exports.OrganizationRegionResponse = OrganizationRegionResponse;
54794
54977
  exports.OrganizationStartPlusTrialMutation = OrganizationStartPlusTrialMutation;
54795
54978
  exports.OrganizationStartPlusTrialPayload = OrganizationStartPlusTrialPayload;
54796
54979
  exports.Organization_IntegrationsQuery = Organization_IntegrationsQuery;