@linear/sdk 2.5.0 → 3.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
@@ -83475,6 +83475,7 @@ var SlaStatus;
83475
83475
  (function (SlaStatus) {
83476
83476
  SlaStatus["Breached"] = "Breached";
83477
83477
  SlaStatus["Completed"] = "Completed";
83478
+ SlaStatus["Failed"] = "Failed";
83478
83479
  SlaStatus["HighRisk"] = "HighRisk";
83479
83480
  SlaStatus["LowRisk"] = "LowRisk";
83480
83481
  SlaStatus["MediumRisk"] = "MediumRisk";
@@ -83490,6 +83491,7 @@ var UserFlagType;
83490
83491
  UserFlagType["CycleWelcomeDismissed"] = "cycleWelcomeDismissed";
83491
83492
  UserFlagType["DesktopDownloadToastDismissed"] = "desktopDownloadToastDismissed";
83492
83493
  UserFlagType["DesktopInstalled"] = "desktopInstalled";
83494
+ UserFlagType["DesktopTabsOnboardingDismissed"] = "desktopTabsOnboardingDismissed";
83493
83495
  UserFlagType["DueDateShortcutMigration"] = "dueDateShortcutMigration";
83494
83496
  UserFlagType["EmptyActiveIssuesDismissed"] = "emptyActiveIssuesDismissed";
83495
83497
  UserFlagType["EmptyBacklogDismissed"] = "emptyBacklogDismissed";
@@ -83497,12 +83499,14 @@ var UserFlagType;
83497
83499
  UserFlagType["EmptyMyIssuesDismissed"] = "emptyMyIssuesDismissed";
83498
83500
  UserFlagType["FigmaPromptDismissed"] = "figmaPromptDismissed";
83499
83501
  UserFlagType["ImportBannerDismissed"] = "importBannerDismissed";
83502
+ UserFlagType["InsightsHelpDismissed"] = "insightsHelpDismissed";
83500
83503
  UserFlagType["InsightsWelcomeDismissed"] = "insightsWelcomeDismissed";
83501
83504
  UserFlagType["IssueLabelSuggestionUsed"] = "issueLabelSuggestionUsed";
83502
83505
  UserFlagType["IssueMovePromptCompleted"] = "issueMovePromptCompleted";
83503
83506
  UserFlagType["JoinTeamIntroductionDismissed"] = "joinTeamIntroductionDismissed";
83504
83507
  UserFlagType["ListSelectionTip"] = "listSelectionTip";
83505
83508
  UserFlagType["MigrateThemePreference"] = "migrateThemePreference";
83509
+ UserFlagType["MilestoneOnboardingIsSeenAndDismissed"] = "milestoneOnboardingIsSeenAndDismissed";
83506
83510
  UserFlagType["ProjectBacklogWelcomeDismissed"] = "projectBacklogWelcomeDismissed";
83507
83511
  UserFlagType["ProjectUpdatesWelcomeDismissed"] = "projectUpdatesWelcomeDismissed";
83508
83512
  UserFlagType["ProjectWelcomeDismissed"] = "projectWelcomeDismissed";
@@ -83560,6 +83564,7 @@ var ViewType;
83560
83564
  ViewType["RoadmapAll"] = "roadmapAll";
83561
83565
  ViewType["RoadmapBacklog"] = "roadmapBacklog";
83562
83566
  ViewType["RoadmapClosed"] = "roadmapClosed";
83567
+ ViewType["Roadmaps"] = "roadmaps";
83563
83568
  ViewType["Search"] = "search";
83564
83569
  ViewType["Teams"] = "teams";
83565
83570
  ViewType["Triage"] = "triage";
@@ -83785,7 +83790,6 @@ const UserFragmentDoc = {
83785
83790
  { kind: "Field", name: { kind: "Name", value: "statusUntilAt" } },
83786
83791
  { kind: "Field", name: { kind: "Name", value: "description" } },
83787
83792
  { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
83788
- { kind: "Field", name: { kind: "Name", value: "calendarHash" } },
83789
83793
  { kind: "Field", name: { kind: "Name", value: "createdIssueCount" } },
83790
83794
  { kind: "Field", name: { kind: "Name", value: "disableReason" } },
83791
83795
  { kind: "Field", name: { kind: "Name", value: "statusEmoji" } },
@@ -83805,6 +83809,7 @@ const UserFragmentDoc = {
83805
83809
  { kind: "Field", name: { kind: "Name", value: "guest" } },
83806
83810
  { kind: "Field", name: { kind: "Name", value: "admin" } },
83807
83811
  { kind: "Field", name: { kind: "Name", value: "isMe" } },
83812
+ { kind: "Field", name: { kind: "Name", value: "calendarHash" } },
83808
83813
  ],
83809
83814
  },
83810
83815
  },
@@ -84391,6 +84396,7 @@ const UserSettingsFragmentDoc = {
84391
84396
  kind: "SelectionSet",
84392
84397
  selections: [
84393
84398
  { kind: "Field", name: { kind: "Name", value: "__typename" } },
84399
+ { kind: "Field", name: { kind: "Name", value: "calendarHash" } },
84394
84400
  { kind: "Field", name: { kind: "Name", value: "unsubscribedFrom" } },
84395
84401
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
84396
84402
  { kind: "Field", name: { kind: "Name", value: "notificationPreferences" } },
@@ -84787,6 +84793,7 @@ const OrganizationFragmentDoc = {
84787
84793
  { kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
84788
84794
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
84789
84795
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
84796
+ { kind: "Field", name: { kind: "Name", value: "trialEndsAt" } },
84790
84797
  { kind: "Field", name: { kind: "Name", value: "id" } },
84791
84798
  { kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
84792
84799
  { kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
@@ -85108,6 +85115,25 @@ const CustomViewPayloadFragmentDoc = {
85108
85115
  },
85109
85116
  ],
85110
85117
  };
85118
+ const CustomViewSuggestionPayloadFragmentDoc = {
85119
+ kind: "Document",
85120
+ definitions: [
85121
+ {
85122
+ kind: "FragmentDefinition",
85123
+ name: { kind: "Name", value: "CustomViewSuggestionPayload" },
85124
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomViewSuggestionPayload" } },
85125
+ selectionSet: {
85126
+ kind: "SelectionSet",
85127
+ selections: [
85128
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
85129
+ { kind: "Field", name: { kind: "Name", value: "suggestedDescription" } },
85130
+ { kind: "Field", name: { kind: "Name", value: "suggestedIcon" } },
85131
+ { kind: "Field", name: { kind: "Name", value: "suggestedName" } },
85132
+ ],
85133
+ },
85134
+ },
85135
+ ],
85136
+ };
85111
85137
  const CycleFragmentDoc = {
85112
85138
  kind: "Document",
85113
85139
  definitions: [
@@ -86112,6 +86138,14 @@ const IssueFragmentDoc = {
86112
86138
  selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
86113
86139
  },
86114
86140
  },
86141
+ {
86142
+ kind: "Field",
86143
+ name: { kind: "Name", value: "projectMilestone" },
86144
+ selectionSet: {
86145
+ kind: "SelectionSet",
86146
+ selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
86147
+ },
86148
+ },
86115
86149
  {
86116
86150
  kind: "Field",
86117
86151
  name: { kind: "Name", value: "team" },
@@ -87544,6 +87578,23 @@ const OrganizationPayloadFragmentDoc = {
87544
87578
  },
87545
87579
  ],
87546
87580
  };
87581
+ const OrganizationStartPlusTrialPayloadFragmentDoc = {
87582
+ kind: "Document",
87583
+ definitions: [
87584
+ {
87585
+ kind: "FragmentDefinition",
87586
+ name: { kind: "Name", value: "OrganizationStartPlusTrialPayload" },
87587
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationStartPlusTrialPayload" } },
87588
+ selectionSet: {
87589
+ kind: "SelectionSet",
87590
+ selections: [
87591
+ { kind: "Field", name: { kind: "Name", value: "__typename" } },
87592
+ { kind: "Field", name: { kind: "Name", value: "success" } },
87593
+ ],
87594
+ },
87595
+ },
87596
+ ],
87597
+ };
87547
87598
  const ProjectFragmentDoc = {
87548
87599
  kind: "Document",
87549
87600
  definitions: [
@@ -88342,7 +88393,9 @@ const RoadmapFragmentDoc = {
88342
88393
  { kind: "Field", name: { kind: "Name", value: "description" } },
88343
88394
  { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
88344
88395
  { kind: "Field", name: { kind: "Name", value: "name" } },
88396
+ { kind: "Field", name: { kind: "Name", value: "color" } },
88345
88397
  { kind: "Field", name: { kind: "Name", value: "slugId" } },
88398
+ { kind: "Field", name: { kind: "Name", value: "sortOrder" } },
88346
88399
  { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
88347
88400
  { kind: "Field", name: { kind: "Name", value: "createdAt" } },
88348
88401
  { kind: "Field", name: { kind: "Name", value: "id" } },
@@ -94385,6 +94438,32 @@ const UpdateOrganizationInviteDocument = {
94385
94438
  ...OrganizationInvitePayloadFragmentDoc.definitions,
94386
94439
  ],
94387
94440
  };
94441
+ const OrganizationStartPlusTrialDocument = {
94442
+ kind: "Document",
94443
+ definitions: [
94444
+ {
94445
+ kind: "OperationDefinition",
94446
+ operation: "mutation",
94447
+ name: { kind: "Name", value: "organizationStartPlusTrial" },
94448
+ selectionSet: {
94449
+ kind: "SelectionSet",
94450
+ selections: [
94451
+ {
94452
+ kind: "Field",
94453
+ name: { kind: "Name", value: "organizationStartPlusTrial" },
94454
+ selectionSet: {
94455
+ kind: "SelectionSet",
94456
+ selections: [
94457
+ { kind: "FragmentSpread", name: { kind: "Name", value: "OrganizationStartPlusTrialPayload" } },
94458
+ ],
94459
+ },
94460
+ },
94461
+ ],
94462
+ },
94463
+ },
94464
+ ...OrganizationStartPlusTrialPayloadFragmentDoc.definitions,
94465
+ ],
94466
+ };
94388
94467
  const UpdateOrganizationDocument = {
94389
94468
  kind: "Document",
94390
94469
  definitions: [
@@ -95339,6 +95418,44 @@ const ResendOrganizationInviteDocument = {
95339
95418
  ...ArchivePayloadFragmentDoc.definitions,
95340
95419
  ],
95341
95420
  };
95421
+ const ArchiveRoadmapDocument = {
95422
+ kind: "Document",
95423
+ definitions: [
95424
+ {
95425
+ kind: "OperationDefinition",
95426
+ operation: "mutation",
95427
+ name: { kind: "Name", value: "archiveRoadmap" },
95428
+ variableDefinitions: [
95429
+ {
95430
+ kind: "VariableDefinition",
95431
+ variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
95432
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
95433
+ },
95434
+ ],
95435
+ selectionSet: {
95436
+ kind: "SelectionSet",
95437
+ selections: [
95438
+ {
95439
+ kind: "Field",
95440
+ name: { kind: "Name", value: "roadmapArchive" },
95441
+ arguments: [
95442
+ {
95443
+ kind: "Argument",
95444
+ name: { kind: "Name", value: "id" },
95445
+ value: { kind: "Variable", name: { kind: "Name", value: "id" } },
95446
+ },
95447
+ ],
95448
+ selectionSet: {
95449
+ kind: "SelectionSet",
95450
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ArchivePayload" } }],
95451
+ },
95452
+ },
95453
+ ],
95454
+ },
95455
+ },
95456
+ ...ArchivePayloadFragmentDoc.definitions,
95457
+ ],
95458
+ };
95342
95459
  const CreateRoadmapDocument = {
95343
95460
  kind: "Document",
95344
95461
  definitions: [
@@ -95548,6 +95665,44 @@ const UpdateRoadmapToProjectDocument = {
95548
95665
  ...RoadmapToProjectPayloadFragmentDoc.definitions,
95549
95666
  ],
95550
95667
  };
95668
+ const UnarchiveRoadmapDocument = {
95669
+ kind: "Document",
95670
+ definitions: [
95671
+ {
95672
+ kind: "OperationDefinition",
95673
+ operation: "mutation",
95674
+ name: { kind: "Name", value: "unarchiveRoadmap" },
95675
+ variableDefinitions: [
95676
+ {
95677
+ kind: "VariableDefinition",
95678
+ variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
95679
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
95680
+ },
95681
+ ],
95682
+ selectionSet: {
95683
+ kind: "SelectionSet",
95684
+ selections: [
95685
+ {
95686
+ kind: "Field",
95687
+ name: { kind: "Name", value: "roadmapUnarchive" },
95688
+ arguments: [
95689
+ {
95690
+ kind: "Argument",
95691
+ name: { kind: "Name", value: "id" },
95692
+ value: { kind: "Variable", name: { kind: "Name", value: "id" } },
95693
+ },
95694
+ ],
95695
+ selectionSet: {
95696
+ kind: "SelectionSet",
95697
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ArchivePayload" } }],
95698
+ },
95699
+ },
95700
+ ],
95701
+ },
95702
+ },
95703
+ ...ArchivePayloadFragmentDoc.definitions,
95704
+ ],
95705
+ };
95551
95706
  const UpdateRoadmapDocument = {
95552
95707
  kind: "Document",
95553
95708
  definitions: [
@@ -99900,6 +100055,186 @@ const EmojisDocument = {
99900
100055
  ...EmojiConnectionFragmentDoc.definitions,
99901
100056
  ],
99902
100057
  };
100058
+ const ExternalUserDocument = {
100059
+ kind: "Document",
100060
+ definitions: [
100061
+ {
100062
+ kind: "OperationDefinition",
100063
+ operation: "query",
100064
+ name: { kind: "Name", value: "externalUser" },
100065
+ variableDefinitions: [
100066
+ {
100067
+ kind: "VariableDefinition",
100068
+ variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
100069
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
100070
+ },
100071
+ ],
100072
+ selectionSet: {
100073
+ kind: "SelectionSet",
100074
+ selections: [
100075
+ {
100076
+ kind: "Field",
100077
+ name: { kind: "Name", value: "externalUser" },
100078
+ arguments: [
100079
+ {
100080
+ kind: "Argument",
100081
+ name: { kind: "Name", value: "id" },
100082
+ value: { kind: "Variable", name: { kind: "Name", value: "id" } },
100083
+ },
100084
+ ],
100085
+ selectionSet: {
100086
+ kind: "SelectionSet",
100087
+ selections: [
100088
+ { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
100089
+ { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
100090
+ { kind: "Field", name: { kind: "Name", value: "createdAt" } },
100091
+ { kind: "Field", name: { kind: "Name", value: "displayName" } },
100092
+ { kind: "Field", name: { kind: "Name", value: "email" } },
100093
+ { kind: "Field", name: { kind: "Name", value: "id" } },
100094
+ { kind: "Field", name: { kind: "Name", value: "lastSeen" } },
100095
+ { kind: "Field", name: { kind: "Name", value: "name" } },
100096
+ {
100097
+ kind: "Field",
100098
+ name: { kind: "Name", value: "organization" },
100099
+ selectionSet: {
100100
+ kind: "SelectionSet",
100101
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Organization" } }],
100102
+ },
100103
+ },
100104
+ { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
100105
+ ],
100106
+ },
100107
+ },
100108
+ ],
100109
+ },
100110
+ },
100111
+ ...OrganizationFragmentDoc.definitions,
100112
+ ],
100113
+ };
100114
+ const ExternalUsersDocument = {
100115
+ kind: "Document",
100116
+ definitions: [
100117
+ {
100118
+ kind: "OperationDefinition",
100119
+ operation: "query",
100120
+ name: { kind: "Name", value: "externalUsers" },
100121
+ variableDefinitions: [
100122
+ {
100123
+ kind: "VariableDefinition",
100124
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
100125
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
100126
+ },
100127
+ {
100128
+ kind: "VariableDefinition",
100129
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
100130
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
100131
+ },
100132
+ {
100133
+ kind: "VariableDefinition",
100134
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
100135
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
100136
+ },
100137
+ {
100138
+ kind: "VariableDefinition",
100139
+ variable: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
100140
+ type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } },
100141
+ },
100142
+ {
100143
+ kind: "VariableDefinition",
100144
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
100145
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
100146
+ },
100147
+ {
100148
+ kind: "VariableDefinition",
100149
+ variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
100150
+ type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
100151
+ },
100152
+ ],
100153
+ selectionSet: {
100154
+ kind: "SelectionSet",
100155
+ selections: [
100156
+ {
100157
+ kind: "Field",
100158
+ name: { kind: "Name", value: "externalUsers" },
100159
+ arguments: [
100160
+ {
100161
+ kind: "Argument",
100162
+ name: { kind: "Name", value: "after" },
100163
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
100164
+ },
100165
+ {
100166
+ kind: "Argument",
100167
+ name: { kind: "Name", value: "before" },
100168
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
100169
+ },
100170
+ {
100171
+ kind: "Argument",
100172
+ name: { kind: "Name", value: "first" },
100173
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
100174
+ },
100175
+ {
100176
+ kind: "Argument",
100177
+ name: { kind: "Name", value: "includeArchived" },
100178
+ value: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
100179
+ },
100180
+ {
100181
+ kind: "Argument",
100182
+ name: { kind: "Name", value: "last" },
100183
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
100184
+ },
100185
+ {
100186
+ kind: "Argument",
100187
+ name: { kind: "Name", value: "orderBy" },
100188
+ value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
100189
+ },
100190
+ ],
100191
+ selectionSet: {
100192
+ kind: "SelectionSet",
100193
+ selections: [
100194
+ {
100195
+ kind: "Field",
100196
+ name: { kind: "Name", value: "nodes" },
100197
+ selectionSet: {
100198
+ kind: "SelectionSet",
100199
+ selections: [
100200
+ { kind: "Field", name: { kind: "Name", value: "archivedAt" } },
100201
+ { kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
100202
+ { kind: "Field", name: { kind: "Name", value: "createdAt" } },
100203
+ { kind: "Field", name: { kind: "Name", value: "displayName" } },
100204
+ { kind: "Field", name: { kind: "Name", value: "email" } },
100205
+ { kind: "Field", name: { kind: "Name", value: "id" } },
100206
+ { kind: "Field", name: { kind: "Name", value: "lastSeen" } },
100207
+ { kind: "Field", name: { kind: "Name", value: "name" } },
100208
+ {
100209
+ kind: "Field",
100210
+ name: { kind: "Name", value: "organization" },
100211
+ selectionSet: {
100212
+ kind: "SelectionSet",
100213
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Organization" } }],
100214
+ },
100215
+ },
100216
+ { kind: "Field", name: { kind: "Name", value: "updatedAt" } },
100217
+ ],
100218
+ },
100219
+ },
100220
+ {
100221
+ kind: "Field",
100222
+ name: { kind: "Name", value: "pageInfo" },
100223
+ selectionSet: {
100224
+ kind: "SelectionSet",
100225
+ selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
100226
+ },
100227
+ },
100228
+ ],
100229
+ },
100230
+ },
100231
+ ],
100232
+ },
100233
+ },
100234
+ ...OrganizationFragmentDoc.definitions,
100235
+ ...PageInfoFragmentDoc.definitions,
100236
+ ],
100237
+ };
99903
100238
  const FavoriteDocument = {
99904
100239
  kind: "Document",
99905
100240
  definitions: [
@@ -104664,6 +104999,117 @@ const Project_MembersDocument = {
104664
104999
  ...UserConnectionFragmentDoc.definitions,
104665
105000
  ],
104666
105001
  };
105002
+ const Project_ProjectMilestonesDocument = {
105003
+ kind: "Document",
105004
+ definitions: [
105005
+ {
105006
+ kind: "OperationDefinition",
105007
+ operation: "query",
105008
+ name: { kind: "Name", value: "project_projectMilestones" },
105009
+ variableDefinitions: [
105010
+ {
105011
+ kind: "VariableDefinition",
105012
+ variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
105013
+ type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
105014
+ },
105015
+ {
105016
+ kind: "VariableDefinition",
105017
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
105018
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
105019
+ },
105020
+ {
105021
+ kind: "VariableDefinition",
105022
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
105023
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
105024
+ },
105025
+ {
105026
+ kind: "VariableDefinition",
105027
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
105028
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
105029
+ },
105030
+ {
105031
+ kind: "VariableDefinition",
105032
+ variable: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
105033
+ type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } },
105034
+ },
105035
+ {
105036
+ kind: "VariableDefinition",
105037
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
105038
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
105039
+ },
105040
+ {
105041
+ kind: "VariableDefinition",
105042
+ variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
105043
+ type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
105044
+ },
105045
+ ],
105046
+ selectionSet: {
105047
+ kind: "SelectionSet",
105048
+ selections: [
105049
+ {
105050
+ kind: "Field",
105051
+ name: { kind: "Name", value: "project" },
105052
+ arguments: [
105053
+ {
105054
+ kind: "Argument",
105055
+ name: { kind: "Name", value: "id" },
105056
+ value: { kind: "Variable", name: { kind: "Name", value: "id" } },
105057
+ },
105058
+ ],
105059
+ selectionSet: {
105060
+ kind: "SelectionSet",
105061
+ selections: [
105062
+ {
105063
+ kind: "Field",
105064
+ name: { kind: "Name", value: "projectMilestones" },
105065
+ arguments: [
105066
+ {
105067
+ kind: "Argument",
105068
+ name: { kind: "Name", value: "after" },
105069
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
105070
+ },
105071
+ {
105072
+ kind: "Argument",
105073
+ name: { kind: "Name", value: "before" },
105074
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
105075
+ },
105076
+ {
105077
+ kind: "Argument",
105078
+ name: { kind: "Name", value: "first" },
105079
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
105080
+ },
105081
+ {
105082
+ kind: "Argument",
105083
+ name: { kind: "Name", value: "includeArchived" },
105084
+ value: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
105085
+ },
105086
+ {
105087
+ kind: "Argument",
105088
+ name: { kind: "Name", value: "last" },
105089
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
105090
+ },
105091
+ {
105092
+ kind: "Argument",
105093
+ name: { kind: "Name", value: "orderBy" },
105094
+ value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
105095
+ },
105096
+ ],
105097
+ selectionSet: {
105098
+ kind: "SelectionSet",
105099
+ selections: [
105100
+ { kind: "FragmentSpread", name: { kind: "Name", value: "ProjectMilestoneConnection" } },
105101
+ ],
105102
+ },
105103
+ },
105104
+ ],
105105
+ },
105106
+ },
105107
+ ],
105108
+ },
105109
+ },
105110
+ ...ProjectMilestoneConnectionFragmentDoc.definitions,
105111
+ ],
105112
+ };
104667
105113
  const Project_ProjectUpdatesDocument = {
104668
105114
  kind: "Document",
104669
105115
  definitions: [
@@ -108744,6 +109190,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108744
109190
  CustomViewFragmentDoc: CustomViewFragmentDoc,
108745
109191
  CustomViewConnectionFragmentDoc: CustomViewConnectionFragmentDoc,
108746
109192
  CustomViewPayloadFragmentDoc: CustomViewPayloadFragmentDoc,
109193
+ CustomViewSuggestionPayloadFragmentDoc: CustomViewSuggestionPayloadFragmentDoc,
108747
109194
  CycleFragmentDoc: CycleFragmentDoc,
108748
109195
  CycleConnectionFragmentDoc: CycleConnectionFragmentDoc,
108749
109196
  CyclePayloadFragmentDoc: CyclePayloadFragmentDoc,
@@ -108813,6 +109260,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108813
109260
  OrganizationInviteDetailsPayloadFragmentDoc: OrganizationInviteDetailsPayloadFragmentDoc,
108814
109261
  OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
108815
109262
  OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
109263
+ OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
108816
109264
  ProjectFragmentDoc: ProjectFragmentDoc,
108817
109265
  ProjectConnectionFragmentDoc: ProjectConnectionFragmentDoc,
108818
109266
  ProjectLinkFragmentDoc: ProjectLinkFragmentDoc,
@@ -108979,6 +109427,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
108979
109427
  CreateOrganizationInviteDocument: CreateOrganizationInviteDocument,
108980
109428
  DeleteOrganizationInviteDocument: DeleteOrganizationInviteDocument,
108981
109429
  UpdateOrganizationInviteDocument: UpdateOrganizationInviteDocument,
109430
+ OrganizationStartPlusTrialDocument: OrganizationStartPlusTrialDocument,
108982
109431
  UpdateOrganizationDocument: UpdateOrganizationDocument,
108983
109432
  ArchiveProjectDocument: ArchiveProjectDocument,
108984
109433
  CreateProjectDocument: CreateProjectDocument,
@@ -109002,11 +109451,13 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
109002
109451
  DeleteReactionDocument: DeleteReactionDocument,
109003
109452
  RefreshGoogleSheetsDataDocument: RefreshGoogleSheetsDataDocument,
109004
109453
  ResendOrganizationInviteDocument: ResendOrganizationInviteDocument,
109454
+ ArchiveRoadmapDocument: ArchiveRoadmapDocument,
109005
109455
  CreateRoadmapDocument: CreateRoadmapDocument,
109006
109456
  DeleteRoadmapDocument: DeleteRoadmapDocument,
109007
109457
  CreateRoadmapToProjectDocument: CreateRoadmapToProjectDocument,
109008
109458
  DeleteRoadmapToProjectDocument: DeleteRoadmapToProjectDocument,
109009
109459
  UpdateRoadmapToProjectDocument: UpdateRoadmapToProjectDocument,
109460
+ UnarchiveRoadmapDocument: UnarchiveRoadmapDocument,
109010
109461
  UpdateRoadmapDocument: UpdateRoadmapDocument,
109011
109462
  SamlTokenUserAccountAuthDocument: SamlTokenUserAccountAuthDocument,
109012
109463
  CreateTeamDocument: CreateTeamDocument,
@@ -109078,6 +109529,8 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
109078
109529
  DocumentsDocument: DocumentsDocument,
109079
109530
  EmojiDocument: EmojiDocument,
109080
109531
  EmojisDocument: EmojisDocument,
109532
+ ExternalUserDocument: ExternalUserDocument,
109533
+ ExternalUsersDocument: ExternalUsersDocument,
109081
109534
  FavoriteDocument: FavoriteDocument,
109082
109535
  Favorite_ChildrenDocument: Favorite_ChildrenDocument,
109083
109536
  FavoritesDocument: FavoritesDocument,
@@ -109135,6 +109588,7 @@ var _generated_documents = /*#__PURE__*/Object.freeze({
109135
109588
  Project_IssuesDocument: Project_IssuesDocument,
109136
109589
  Project_LinksDocument: Project_LinksDocument,
109137
109590
  Project_MembersDocument: Project_MembersDocument,
109591
+ Project_ProjectMilestonesDocument: Project_ProjectMilestonesDocument,
109138
109592
  Project_ProjectUpdatesDocument: Project_ProjectUpdatesDocument,
109139
109593
  Project_TeamsDocument: Project_TeamsDocument,
109140
109594
  ProjectLinkDocument: ProjectLinkDocument,
@@ -109411,7 +109865,7 @@ class Attachment extends Request {
109411
109865
  this.id = data.id;
109412
109866
  this.metadata = (_c = parseJson(data.metadata)) !== null && _c !== void 0 ? _c : {};
109413
109867
  this.source = (_d = parseJson(data.source)) !== null && _d !== void 0 ? _d : undefined;
109414
- this.sourceType = (_e = parseJson(data.sourceType)) !== null && _e !== void 0 ? _e : undefined;
109868
+ this.sourceType = (_e = data.sourceType) !== null && _e !== void 0 ? _e : undefined;
109415
109869
  this.subtitle = (_f = data.subtitle) !== null && _f !== void 0 ? _f : undefined;
109416
109870
  this.title = data.title;
109417
109871
  this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
@@ -109759,6 +110213,21 @@ class CustomViewPayload extends Request {
109759
110213
  return new CustomViewQuery(this._request).fetch(this._customView.id);
109760
110214
  }
109761
110215
  }
110216
+ /**
110217
+ * CustomViewSuggestionPayload model
110218
+ *
110219
+ * @param request - function to call the graphql client
110220
+ * @param data - L.CustomViewSuggestionPayloadFragment response data
110221
+ */
110222
+ class CustomViewSuggestionPayload extends Request {
110223
+ constructor(request, data) {
110224
+ var _a, _b, _c;
110225
+ super(request);
110226
+ this.suggestedDescription = (_a = data.suggestedDescription) !== null && _a !== void 0 ? _a : undefined;
110227
+ this.suggestedIcon = (_b = data.suggestedIcon) !== null && _b !== void 0 ? _b : undefined;
110228
+ this.suggestedName = (_c = data.suggestedName) !== null && _c !== void 0 ? _c : undefined;
110229
+ }
110230
+ }
109762
110231
  /**
109763
110232
  * A set of issues to be resolved in a specified amount of time.
109764
110233
  *
@@ -110611,7 +111080,7 @@ class IntercomSettings extends Request {
110611
111080
  */
110612
111081
  class Issue extends Request {
110613
111082
  constructor(request, data) {
110614
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
111083
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
110615
111084
  super(request);
110616
111085
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
110617
111086
  this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
@@ -110646,7 +111115,8 @@ class Issue extends Request {
110646
111115
  this._cycle = (_u = data.cycle) !== null && _u !== void 0 ? _u : undefined;
110647
111116
  this._parent = (_v = data.parent) !== null && _v !== void 0 ? _v : undefined;
110648
111117
  this._project = (_w = data.project) !== null && _w !== void 0 ? _w : undefined;
110649
- this._snoozedBy = (_x = data.snoozedBy) !== null && _x !== void 0 ? _x : undefined;
111118
+ this._projectMilestone = (_x = data.projectMilestone) !== null && _x !== void 0 ? _x : undefined;
111119
+ this._snoozedBy = (_y = data.snoozedBy) !== null && _y !== void 0 ? _y : undefined;
110650
111120
  this._state = data.state;
110651
111121
  this._team = data.team;
110652
111122
  }
@@ -110675,6 +111145,13 @@ class Issue extends Request {
110675
111145
  var _a, _b;
110676
111146
  return ((_a = this._project) === null || _a === void 0 ? void 0 : _a.id) ? new ProjectQuery(this._request).fetch((_b = this._project) === null || _b === void 0 ? void 0 : _b.id) : undefined;
110677
111147
  }
111148
+ /** The projectMilestone that the issue is associated with. */
111149
+ get projectMilestone() {
111150
+ var _a, _b;
111151
+ return ((_a = this._projectMilestone) === null || _a === void 0 ? void 0 : _a.id)
111152
+ ? new ProjectMilestoneQuery(this._request).fetch((_b = this._projectMilestone) === null || _b === void 0 ? void 0 : _b.id)
111153
+ : undefined;
111154
+ }
110678
111155
  /** The user who snoozed the issue. */
110679
111156
  get snoozedBy() {
110680
111157
  var _a, _b;
@@ -111594,7 +112071,7 @@ class OauthClientConnection extends Connection {
111594
112071
  */
111595
112072
  class Organization extends Request {
111596
112073
  constructor(request, data) {
111597
- var _a, _b, _c, _d, _e, _f;
112074
+ var _a, _b, _c, _d, _e, _f, _g;
111598
112075
  super(request);
111599
112076
  this.allowedAuthServices = data.allowedAuthServices;
111600
112077
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
@@ -111613,7 +112090,8 @@ class Organization extends Request {
111613
112090
  this.roadmapEnabled = data.roadmapEnabled;
111614
112091
  this.samlEnabled = data.samlEnabled;
111615
112092
  this.scimEnabled = data.scimEnabled;
111616
- this.updatedAt = (_f = parseDate(data.updatedAt)) !== null && _f !== void 0 ? _f : new Date();
112093
+ this.trialEndsAt = (_f = parseDate(data.trialEndsAt)) !== null && _f !== void 0 ? _f : undefined;
112094
+ this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
111617
112095
  this.urlKey = data.urlKey;
111618
112096
  this.userCount = data.userCount;
111619
112097
  this.subscription = data.subscription ? new PaidSubscription(request, data.subscription) : undefined;
@@ -111828,6 +112306,18 @@ class OrganizationPayload extends Request {
111828
112306
  return new OrganizationQuery(this._request).fetch();
111829
112307
  }
111830
112308
  }
112309
+ /**
112310
+ * OrganizationStartPlusTrialPayload model
112311
+ *
112312
+ * @param request - function to call the graphql client
112313
+ * @param data - L.OrganizationStartPlusTrialPayloadFragment response data
112314
+ */
112315
+ class OrganizationStartPlusTrialPayload extends Request {
112316
+ constructor(request, data) {
112317
+ super(request);
112318
+ this.success = data.success;
112319
+ }
112320
+ }
111831
112321
  /**
111832
112322
  * PageInfo model
111833
112323
  *
@@ -111979,6 +112469,10 @@ class Project extends Request {
111979
112469
  members(variables) {
111980
112470
  return new Project_MembersQuery(this._request, this.id, variables).fetch(variables);
111981
112471
  }
112472
+ /** Milestones associated with the project. */
112473
+ projectMilestones(variables) {
112474
+ return new Project_ProjectMilestonesQuery(this._request, this.id, variables).fetch(variables);
112475
+ }
111982
112476
  /** Project updates associated with the project. */
111983
112477
  projectUpdates(variables) {
111984
112478
  return new Project_ProjectUpdatesQuery(this._request, this.id, variables).fetch(variables);
@@ -112509,18 +113003,19 @@ class RateLimitResultPayload extends Request {
112509
113003
  */
112510
113004
  class Reaction extends Request {
112511
113005
  constructor(request, data) {
112512
- var _a, _b, _c;
113006
+ var _a, _b, _c, _d;
112513
113007
  super(request);
112514
113008
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
112515
113009
  this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
112516
113010
  this.emoji = data.emoji;
112517
113011
  this.id = data.id;
112518
113012
  this.updatedAt = (_c = parseDate(data.updatedAt)) !== null && _c !== void 0 ? _c : new Date();
112519
- this._user = data.user;
113013
+ this._user = (_d = data.user) !== null && _d !== void 0 ? _d : undefined;
112520
113014
  }
112521
113015
  /** The user who reacted. */
112522
113016
  get user() {
112523
- return new UserQuery(this._request).fetch(this._user.id);
113017
+ var _a, _b;
113018
+ return ((_a = this._user) === null || _a === void 0 ? void 0 : _a.id) ? new UserQuery(this._request).fetch((_b = this._user) === null || _b === void 0 ? void 0 : _b.id) : undefined;
112524
113019
  }
112525
113020
  /** Creates a new reaction. */
112526
113021
  create(input) {
@@ -112565,15 +113060,17 @@ class ReactionPayload extends Request {
112565
113060
  */
112566
113061
  class Roadmap extends Request {
112567
113062
  constructor(request, data) {
112568
- var _a, _b, _c, _d;
113063
+ var _a, _b, _c, _d, _e;
112569
113064
  super(request);
112570
113065
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
112571
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
112572
- this.description = (_c = data.description) !== null && _c !== void 0 ? _c : undefined;
113066
+ this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
113067
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
113068
+ this.description = (_d = data.description) !== null && _d !== void 0 ? _d : undefined;
112573
113069
  this.id = data.id;
112574
113070
  this.name = data.name;
112575
113071
  this.slugId = data.slugId;
112576
- this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
113072
+ this.sortOrder = data.sortOrder;
113073
+ this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
112577
113074
  this._creator = data.creator;
112578
113075
  this._owner = data.owner;
112579
113076
  }
@@ -112593,6 +113090,10 @@ class Roadmap extends Request {
112593
113090
  projects(variables) {
112594
113091
  return new Roadmap_ProjectsQuery(this._request, this.id, variables).fetch(variables);
112595
113092
  }
113093
+ /** Archives a roadmap. */
113094
+ archive() {
113095
+ return new ArchiveRoadmapMutation(this._request).fetch(this.id);
113096
+ }
112596
113097
  /** Creates a new roadmap. */
112597
113098
  create(input) {
112598
113099
  return new CreateRoadmapMutation(this._request).fetch(input);
@@ -112601,6 +113102,10 @@ class Roadmap extends Request {
112601
113102
  delete() {
112602
113103
  return new DeleteRoadmapMutation(this._request).fetch(this.id);
112603
113104
  }
113105
+ /** Unarchives a roadmap. */
113106
+ unarchive() {
113107
+ return new UnarchiveRoadmapMutation(this._request).fetch(this.id);
113108
+ }
112604
113109
  /** Updates a roadmap. */
112605
113110
  update(input) {
112606
113111
  return new UpdateRoadmapMutation(this._request).fetch(this.id, input);
@@ -113429,14 +113934,15 @@ class UserPayload extends Request {
113429
113934
  */
113430
113935
  class UserSettings extends Request {
113431
113936
  constructor(request, data) {
113432
- var _a, _b, _c, _d;
113937
+ var _a, _b, _c, _d, _e;
113433
113938
  super(request);
113434
113939
  this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
113435
- this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
113940
+ this.calendarHash = (_b = data.calendarHash) !== null && _b !== void 0 ? _b : undefined;
113941
+ this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
113436
113942
  this.id = data.id;
113437
- this.notificationPreferences = (_c = parseJson(data.notificationPreferences)) !== null && _c !== void 0 ? _c : {};
113943
+ this.notificationPreferences = (_d = parseJson(data.notificationPreferences)) !== null && _d !== void 0 ? _d : {};
113438
113944
  this.unsubscribedFrom = data.unsubscribedFrom;
113439
- this.updatedAt = (_d = parseDate(data.updatedAt)) !== null && _d !== void 0 ? _d : new Date();
113945
+ this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
113440
113946
  this._user = data.user;
113441
113947
  }
113442
113948
  /** The user associated with these settings. */
@@ -116446,6 +116952,28 @@ class UpdateOrganizationInviteMutation extends Request {
116446
116952
  });
116447
116953
  }
116448
116954
  }
116955
+ /**
116956
+ * A fetchable OrganizationStartPlusTrial Mutation
116957
+ *
116958
+ * @param request - function to call the graphql client
116959
+ */
116960
+ class OrganizationStartPlusTrialMutation extends Request {
116961
+ constructor(request) {
116962
+ super(request);
116963
+ }
116964
+ /**
116965
+ * Call the OrganizationStartPlusTrial mutation and return a OrganizationStartPlusTrialPayload
116966
+ *
116967
+ * @returns parsed response from OrganizationStartPlusTrialMutation
116968
+ */
116969
+ fetch() {
116970
+ return __awaiter(this, void 0, void 0, function* () {
116971
+ const response = yield this._request(OrganizationStartPlusTrialDocument, {});
116972
+ const data = response.organizationStartPlusTrial;
116973
+ return new OrganizationStartPlusTrialPayload(this._request, data);
116974
+ });
116975
+ }
116976
+ }
116449
116977
  /**
116450
116978
  * A fetchable UpdateOrganization Mutation
116451
116979
  *
@@ -117029,6 +117557,31 @@ class ResendOrganizationInviteMutation extends Request {
117029
117557
  });
117030
117558
  }
117031
117559
  }
117560
+ /**
117561
+ * A fetchable ArchiveRoadmap Mutation
117562
+ *
117563
+ * @param request - function to call the graphql client
117564
+ */
117565
+ class ArchiveRoadmapMutation extends Request {
117566
+ constructor(request) {
117567
+ super(request);
117568
+ }
117569
+ /**
117570
+ * Call the ArchiveRoadmap mutation and return a ArchivePayload
117571
+ *
117572
+ * @param id - required id to pass to archiveRoadmap
117573
+ * @returns parsed response from ArchiveRoadmapMutation
117574
+ */
117575
+ fetch(id) {
117576
+ return __awaiter(this, void 0, void 0, function* () {
117577
+ const response = yield this._request(ArchiveRoadmapDocument, {
117578
+ id,
117579
+ });
117580
+ const data = response.roadmapArchive;
117581
+ return new ArchivePayload(this._request, data);
117582
+ });
117583
+ }
117584
+ }
117032
117585
  /**
117033
117586
  * A fetchable CreateRoadmap Mutation
117034
117587
  *
@@ -117156,6 +117709,31 @@ class UpdateRoadmapToProjectMutation extends Request {
117156
117709
  });
117157
117710
  }
117158
117711
  }
117712
+ /**
117713
+ * A fetchable UnarchiveRoadmap Mutation
117714
+ *
117715
+ * @param request - function to call the graphql client
117716
+ */
117717
+ class UnarchiveRoadmapMutation extends Request {
117718
+ constructor(request) {
117719
+ super(request);
117720
+ }
117721
+ /**
117722
+ * Call the UnarchiveRoadmap mutation and return a ArchivePayload
117723
+ *
117724
+ * @param id - required id to pass to unarchiveRoadmap
117725
+ * @returns parsed response from UnarchiveRoadmapMutation
117726
+ */
117727
+ fetch(id) {
117728
+ return __awaiter(this, void 0, void 0, function* () {
117729
+ const response = yield this._request(UnarchiveRoadmapDocument, {
117730
+ id,
117731
+ });
117732
+ const data = response.roadmapUnarchive;
117733
+ return new ArchivePayload(this._request, data);
117734
+ });
117735
+ }
117736
+ }
117159
117737
  /**
117160
117738
  * A fetchable UpdateRoadmap Mutation
117161
117739
  *
@@ -121123,6 +121701,33 @@ class Project_MembersQuery extends Request {
121123
121701
  });
121124
121702
  }
121125
121703
  }
121704
+ /**
121705
+ * A fetchable Project_ProjectMilestones Query
121706
+ *
121707
+ * @param request - function to call the graphql client
121708
+ * @param id - required id to pass to project
121709
+ * @param variables - variables without 'id' to pass into the Project_ProjectMilestonesQuery
121710
+ */
121711
+ class Project_ProjectMilestonesQuery extends Request {
121712
+ constructor(request, id, variables) {
121713
+ super(request);
121714
+ this._id = id;
121715
+ this._variables = variables;
121716
+ }
121717
+ /**
121718
+ * Call the Project_ProjectMilestones query and return a ProjectMilestoneConnection
121719
+ *
121720
+ * @param variables - variables without 'id' to pass into the Project_ProjectMilestonesQuery
121721
+ * @returns parsed response from Project_ProjectMilestonesQuery
121722
+ */
121723
+ fetch(variables) {
121724
+ return __awaiter(this, void 0, void 0, function* () {
121725
+ const response = yield this._request(Project_ProjectMilestonesDocument, Object.assign(Object.assign({ id: this._id }, this._variables), variables));
121726
+ const data = response.project.projectMilestones;
121727
+ return new ProjectMilestoneConnection(this._request, connection => this.fetch(defaultConnection(Object.assign(Object.assign(Object.assign({}, this._variables), variables), connection))), data);
121728
+ });
121729
+ }
121730
+ }
121126
121731
  /**
121127
121732
  * A fetchable Project_ProjectUpdates Query
121128
121733
  *
@@ -122678,6 +123283,14 @@ class LinearSdk extends Request {
122678
123283
  updateOrganizationInvite(id, input) {
122679
123284
  return new UpdateOrganizationInviteMutation(this._request).fetch(id, input);
122680
123285
  }
123286
+ /**
123287
+ * Starts a plus trial for the organization. Administrator privileges required.
123288
+ *
123289
+ * @returns OrganizationStartPlusTrialPayload
123290
+ */
123291
+ get organizationStartPlusTrial() {
123292
+ return new OrganizationStartPlusTrialMutation(this._request).fetch();
123293
+ }
122681
123294
  /**
122682
123295
  * Updates the user's organization.
122683
123296
  *
@@ -122889,6 +123502,15 @@ class LinearSdk extends Request {
122889
123502
  resendOrganizationInvite(id) {
122890
123503
  return new ResendOrganizationInviteMutation(this._request).fetch(id);
122891
123504
  }
123505
+ /**
123506
+ * Archives a roadmap.
123507
+ *
123508
+ * @param id - required id to pass to archiveRoadmap
123509
+ * @returns ArchivePayload
123510
+ */
123511
+ archiveRoadmap(id) {
123512
+ return new ArchiveRoadmapMutation(this._request).fetch(id);
123513
+ }
122892
123514
  /**
122893
123515
  * Creates a new roadmap.
122894
123516
  *
@@ -122935,6 +123557,15 @@ class LinearSdk extends Request {
122935
123557
  updateRoadmapToProject(id, input) {
122936
123558
  return new UpdateRoadmapToProjectMutation(this._request).fetch(id, input);
122937
123559
  }
123560
+ /**
123561
+ * Unarchives a roadmap.
123562
+ *
123563
+ * @param id - required id to pass to unarchiveRoadmap
123564
+ * @returns ArchivePayload
123565
+ */
123566
+ unarchiveRoadmap(id) {
123567
+ return new UnarchiveRoadmapMutation(this._request).fetch(id);
123568
+ }
122938
123569
  /**
122939
123570
  * Updates a roadmap.
122940
123571
  *
@@ -124053,10 +124684,12 @@ class LinearWebhooks {
124053
124684
  if (!crypto__default["default"].timingSafeEqual(verificationBuffer, signatureBuffer)) {
124054
124685
  throw new Error("Invalid webhook signature");
124055
124686
  }
124056
- const timeDiff = Math.abs(new Date().getTime() - timestamp);
124057
- // Throw error if more than one minute delta between provided ts and current time
124058
- if (timeDiff > 1000 * 60) {
124059
- throw new Error("Invalid webhook timestamp");
124687
+ if (timestamp) {
124688
+ const timeDiff = Math.abs(new Date().getTime() - timestamp);
124689
+ // Throw error if more than one minute delta between provided ts and current time
124690
+ if (timeDiff > 1000 * 60) {
124691
+ throw new Error("Invalid webhook timestamp");
124692
+ }
124060
124693
  }
124061
124694
  return true;
124062
124695
  }
@@ -124078,6 +124711,7 @@ exports.ArchiveIssueMutation = ArchiveIssueMutation;
124078
124711
  exports.ArchiveNotificationMutation = ArchiveNotificationMutation;
124079
124712
  exports.ArchivePayload = ArchivePayload;
124080
124713
  exports.ArchiveProjectMutation = ArchiveProjectMutation;
124714
+ exports.ArchiveRoadmapMutation = ArchiveRoadmapMutation;
124081
124715
  exports.ArchiveWorkflowStateMutation = ArchiveWorkflowStateMutation;
124082
124716
  exports.Attachment = Attachment;
124083
124717
  exports.AttachmentConnection = AttachmentConnection;
@@ -124158,6 +124792,7 @@ exports.CustomView = CustomView;
124158
124792
  exports.CustomViewConnection = CustomViewConnection;
124159
124793
  exports.CustomViewPayload = CustomViewPayload;
124160
124794
  exports.CustomViewQuery = CustomViewQuery;
124795
+ exports.CustomViewSuggestionPayload = CustomViewSuggestionPayload;
124161
124796
  exports.CustomViewsQuery = CustomViewsQuery;
124162
124797
  exports.Cycle = Cycle;
124163
124798
  exports.CycleConnection = CycleConnection;
@@ -124382,6 +125017,8 @@ exports.OrganizationInviteQuery = OrganizationInviteQuery;
124382
125017
  exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
124383
125018
  exports.OrganizationPayload = OrganizationPayload;
124384
125019
  exports.OrganizationQuery = OrganizationQuery;
125020
+ exports.OrganizationStartPlusTrialMutation = OrganizationStartPlusTrialMutation;
125021
+ exports.OrganizationStartPlusTrialPayload = OrganizationStartPlusTrialPayload;
124385
125022
  exports.Organization_IntegrationsQuery = Organization_IntegrationsQuery;
124386
125023
  exports.Organization_LabelsQuery = Organization_LabelsQuery;
124387
125024
  exports.Organization_SubscriptionQuery = Organization_SubscriptionQuery;
@@ -124424,6 +125061,7 @@ exports.Project_DocumentsQuery = Project_DocumentsQuery;
124424
125061
  exports.Project_IssuesQuery = Project_IssuesQuery;
124425
125062
  exports.Project_LinksQuery = Project_LinksQuery;
124426
125063
  exports.Project_MembersQuery = Project_MembersQuery;
125064
+ exports.Project_ProjectMilestonesQuery = Project_ProjectMilestonesQuery;
124427
125065
  exports.Project_ProjectUpdatesQuery = Project_ProjectUpdatesQuery;
124428
125066
  exports.Project_TeamsQuery = Project_TeamsQuery;
124429
125067
  exports.ProjectsQuery = ProjectsQuery;
@@ -124491,6 +125129,7 @@ exports.TemplatesQuery = TemplatesQuery;
124491
125129
  exports.UnarchiveIssueMutation = UnarchiveIssueMutation;
124492
125130
  exports.UnarchiveNotificationMutation = UnarchiveNotificationMutation;
124493
125131
  exports.UnarchiveProjectMutation = UnarchiveProjectMutation;
125132
+ exports.UnarchiveRoadmapMutation = UnarchiveRoadmapMutation;
124494
125133
  exports.UnknownLinearError = UnknownLinearError;
124495
125134
  exports.UnsuspendUserMutation = UnsuspendUserMutation;
124496
125135
  exports.UpdateAttachmentMutation = UpdateAttachmentMutation;