@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/CHANGELOG.md +118 -0
- package/dist/_generated_documents.d.ts +281 -23
- package/dist/_generated_documents.d.ts.map +1 -1
- package/dist/_generated_sdk.d.ts +131 -5
- package/dist/_generated_sdk.d.ts.map +1 -1
- package/dist/index-cjs.js +660 -21
- package/dist/index-cjs.js.map +1 -1
- package/dist/index-cjs.min.js +1 -1
- package/dist/index-cjs.min.js.br +0 -0
- package/dist/index-cjs.min.js.gz +0 -0
- package/dist/index-cjs.min.js.map +1 -1
- package/dist/index-es.js +655 -22
- package/dist/index-es.js.map +1 -1
- package/dist/index-es.min.js +1 -1
- package/dist/index-es.min.js.br +0 -0
- package/dist/index-es.min.js.gz +0 -0
- package/dist/index-es.min.js.map +1 -1
- package/dist/index-umd.js +661 -22
- package/dist/index-umd.js.map +1 -1
- package/dist/index-umd.min.js +1 -1
- package/dist/index-umd.min.js.br +0 -0
- package/dist/index-umd.min.js.gz +0 -0
- package/dist/index-umd.min.js.map +1 -1
- package/dist/webhooks.d.ts +1 -1
- package/dist/webhooks.d.ts.map +1 -1
- package/package.json +1 -1
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":"
|
12
|
+
const env = {"npm_package_name":"@linear/sdk","npm_package_version":"3.0.0"};
|
13
13
|
try {
|
14
14
|
if (process) {
|
15
15
|
process.env = Object.assign({}, process.env);
|
@@ -1449,6 +1449,7 @@
|
|
1449
1449
|
(function (SlaStatus) {
|
1450
1450
|
SlaStatus["Breached"] = "Breached";
|
1451
1451
|
SlaStatus["Completed"] = "Completed";
|
1452
|
+
SlaStatus["Failed"] = "Failed";
|
1452
1453
|
SlaStatus["HighRisk"] = "HighRisk";
|
1453
1454
|
SlaStatus["LowRisk"] = "LowRisk";
|
1454
1455
|
SlaStatus["MediumRisk"] = "MediumRisk";
|
@@ -1464,6 +1465,7 @@
|
|
1464
1465
|
UserFlagType["CycleWelcomeDismissed"] = "cycleWelcomeDismissed";
|
1465
1466
|
UserFlagType["DesktopDownloadToastDismissed"] = "desktopDownloadToastDismissed";
|
1466
1467
|
UserFlagType["DesktopInstalled"] = "desktopInstalled";
|
1468
|
+
UserFlagType["DesktopTabsOnboardingDismissed"] = "desktopTabsOnboardingDismissed";
|
1467
1469
|
UserFlagType["DueDateShortcutMigration"] = "dueDateShortcutMigration";
|
1468
1470
|
UserFlagType["EmptyActiveIssuesDismissed"] = "emptyActiveIssuesDismissed";
|
1469
1471
|
UserFlagType["EmptyBacklogDismissed"] = "emptyBacklogDismissed";
|
@@ -1471,12 +1473,14 @@
|
|
1471
1473
|
UserFlagType["EmptyMyIssuesDismissed"] = "emptyMyIssuesDismissed";
|
1472
1474
|
UserFlagType["FigmaPromptDismissed"] = "figmaPromptDismissed";
|
1473
1475
|
UserFlagType["ImportBannerDismissed"] = "importBannerDismissed";
|
1476
|
+
UserFlagType["InsightsHelpDismissed"] = "insightsHelpDismissed";
|
1474
1477
|
UserFlagType["InsightsWelcomeDismissed"] = "insightsWelcomeDismissed";
|
1475
1478
|
UserFlagType["IssueLabelSuggestionUsed"] = "issueLabelSuggestionUsed";
|
1476
1479
|
UserFlagType["IssueMovePromptCompleted"] = "issueMovePromptCompleted";
|
1477
1480
|
UserFlagType["JoinTeamIntroductionDismissed"] = "joinTeamIntroductionDismissed";
|
1478
1481
|
UserFlagType["ListSelectionTip"] = "listSelectionTip";
|
1479
1482
|
UserFlagType["MigrateThemePreference"] = "migrateThemePreference";
|
1483
|
+
UserFlagType["MilestoneOnboardingIsSeenAndDismissed"] = "milestoneOnboardingIsSeenAndDismissed";
|
1480
1484
|
UserFlagType["ProjectBacklogWelcomeDismissed"] = "projectBacklogWelcomeDismissed";
|
1481
1485
|
UserFlagType["ProjectUpdatesWelcomeDismissed"] = "projectUpdatesWelcomeDismissed";
|
1482
1486
|
UserFlagType["ProjectWelcomeDismissed"] = "projectWelcomeDismissed";
|
@@ -1534,6 +1538,7 @@
|
|
1534
1538
|
ViewType["RoadmapAll"] = "roadmapAll";
|
1535
1539
|
ViewType["RoadmapBacklog"] = "roadmapBacklog";
|
1536
1540
|
ViewType["RoadmapClosed"] = "roadmapClosed";
|
1541
|
+
ViewType["Roadmaps"] = "roadmaps";
|
1537
1542
|
ViewType["Search"] = "search";
|
1538
1543
|
ViewType["Teams"] = "teams";
|
1539
1544
|
ViewType["Triage"] = "triage";
|
@@ -1759,7 +1764,6 @@
|
|
1759
1764
|
{ kind: "Field", name: { kind: "Name", value: "statusUntilAt" } },
|
1760
1765
|
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
1761
1766
|
{ kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
|
1762
|
-
{ kind: "Field", name: { kind: "Name", value: "calendarHash" } },
|
1763
1767
|
{ kind: "Field", name: { kind: "Name", value: "createdIssueCount" } },
|
1764
1768
|
{ kind: "Field", name: { kind: "Name", value: "disableReason" } },
|
1765
1769
|
{ kind: "Field", name: { kind: "Name", value: "statusEmoji" } },
|
@@ -1779,6 +1783,7 @@
|
|
1779
1783
|
{ kind: "Field", name: { kind: "Name", value: "guest" } },
|
1780
1784
|
{ kind: "Field", name: { kind: "Name", value: "admin" } },
|
1781
1785
|
{ kind: "Field", name: { kind: "Name", value: "isMe" } },
|
1786
|
+
{ kind: "Field", name: { kind: "Name", value: "calendarHash" } },
|
1782
1787
|
],
|
1783
1788
|
},
|
1784
1789
|
},
|
@@ -2365,6 +2370,7 @@
|
|
2365
2370
|
kind: "SelectionSet",
|
2366
2371
|
selections: [
|
2367
2372
|
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
2373
|
+
{ kind: "Field", name: { kind: "Name", value: "calendarHash" } },
|
2368
2374
|
{ kind: "Field", name: { kind: "Name", value: "unsubscribedFrom" } },
|
2369
2375
|
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
2370
2376
|
{ kind: "Field", name: { kind: "Name", value: "notificationPreferences" } },
|
@@ -2761,6 +2767,7 @@
|
|
2761
2767
|
{ kind: "Field", name: { kind: "Name", value: "deletionRequestedAt" } },
|
2762
2768
|
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
2763
2769
|
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
2770
|
+
{ kind: "Field", name: { kind: "Name", value: "trialEndsAt" } },
|
2764
2771
|
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
2765
2772
|
{ kind: "Field", name: { kind: "Name", value: "samlEnabled" } },
|
2766
2773
|
{ kind: "Field", name: { kind: "Name", value: "scimEnabled" } },
|
@@ -3082,6 +3089,25 @@
|
|
3082
3089
|
},
|
3083
3090
|
],
|
3084
3091
|
};
|
3092
|
+
const CustomViewSuggestionPayloadFragmentDoc = {
|
3093
|
+
kind: "Document",
|
3094
|
+
definitions: [
|
3095
|
+
{
|
3096
|
+
kind: "FragmentDefinition",
|
3097
|
+
name: { kind: "Name", value: "CustomViewSuggestionPayload" },
|
3098
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomViewSuggestionPayload" } },
|
3099
|
+
selectionSet: {
|
3100
|
+
kind: "SelectionSet",
|
3101
|
+
selections: [
|
3102
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
3103
|
+
{ kind: "Field", name: { kind: "Name", value: "suggestedDescription" } },
|
3104
|
+
{ kind: "Field", name: { kind: "Name", value: "suggestedIcon" } },
|
3105
|
+
{ kind: "Field", name: { kind: "Name", value: "suggestedName" } },
|
3106
|
+
],
|
3107
|
+
},
|
3108
|
+
},
|
3109
|
+
],
|
3110
|
+
};
|
3085
3111
|
const CycleFragmentDoc = {
|
3086
3112
|
kind: "Document",
|
3087
3113
|
definitions: [
|
@@ -4086,6 +4112,14 @@
|
|
4086
4112
|
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
4087
4113
|
},
|
4088
4114
|
},
|
4115
|
+
{
|
4116
|
+
kind: "Field",
|
4117
|
+
name: { kind: "Name", value: "projectMilestone" },
|
4118
|
+
selectionSet: {
|
4119
|
+
kind: "SelectionSet",
|
4120
|
+
selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }],
|
4121
|
+
},
|
4122
|
+
},
|
4089
4123
|
{
|
4090
4124
|
kind: "Field",
|
4091
4125
|
name: { kind: "Name", value: "team" },
|
@@ -5518,6 +5552,23 @@
|
|
5518
5552
|
},
|
5519
5553
|
],
|
5520
5554
|
};
|
5555
|
+
const OrganizationStartPlusTrialPayloadFragmentDoc = {
|
5556
|
+
kind: "Document",
|
5557
|
+
definitions: [
|
5558
|
+
{
|
5559
|
+
kind: "FragmentDefinition",
|
5560
|
+
name: { kind: "Name", value: "OrganizationStartPlusTrialPayload" },
|
5561
|
+
typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OrganizationStartPlusTrialPayload" } },
|
5562
|
+
selectionSet: {
|
5563
|
+
kind: "SelectionSet",
|
5564
|
+
selections: [
|
5565
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
5566
|
+
{ kind: "Field", name: { kind: "Name", value: "success" } },
|
5567
|
+
],
|
5568
|
+
},
|
5569
|
+
},
|
5570
|
+
],
|
5571
|
+
};
|
5521
5572
|
const ProjectFragmentDoc = {
|
5522
5573
|
kind: "Document",
|
5523
5574
|
definitions: [
|
@@ -6316,7 +6367,9 @@
|
|
6316
6367
|
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
6317
6368
|
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
6318
6369
|
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
6370
|
+
{ kind: "Field", name: { kind: "Name", value: "color" } },
|
6319
6371
|
{ kind: "Field", name: { kind: "Name", value: "slugId" } },
|
6372
|
+
{ kind: "Field", name: { kind: "Name", value: "sortOrder" } },
|
6320
6373
|
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
6321
6374
|
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
6322
6375
|
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
@@ -12359,6 +12412,32 @@
|
|
12359
12412
|
...OrganizationInvitePayloadFragmentDoc.definitions,
|
12360
12413
|
],
|
12361
12414
|
};
|
12415
|
+
const OrganizationStartPlusTrialDocument = {
|
12416
|
+
kind: "Document",
|
12417
|
+
definitions: [
|
12418
|
+
{
|
12419
|
+
kind: "OperationDefinition",
|
12420
|
+
operation: "mutation",
|
12421
|
+
name: { kind: "Name", value: "organizationStartPlusTrial" },
|
12422
|
+
selectionSet: {
|
12423
|
+
kind: "SelectionSet",
|
12424
|
+
selections: [
|
12425
|
+
{
|
12426
|
+
kind: "Field",
|
12427
|
+
name: { kind: "Name", value: "organizationStartPlusTrial" },
|
12428
|
+
selectionSet: {
|
12429
|
+
kind: "SelectionSet",
|
12430
|
+
selections: [
|
12431
|
+
{ kind: "FragmentSpread", name: { kind: "Name", value: "OrganizationStartPlusTrialPayload" } },
|
12432
|
+
],
|
12433
|
+
},
|
12434
|
+
},
|
12435
|
+
],
|
12436
|
+
},
|
12437
|
+
},
|
12438
|
+
...OrganizationStartPlusTrialPayloadFragmentDoc.definitions,
|
12439
|
+
],
|
12440
|
+
};
|
12362
12441
|
const UpdateOrganizationDocument = {
|
12363
12442
|
kind: "Document",
|
12364
12443
|
definitions: [
|
@@ -13313,6 +13392,44 @@
|
|
13313
13392
|
...ArchivePayloadFragmentDoc.definitions,
|
13314
13393
|
],
|
13315
13394
|
};
|
13395
|
+
const ArchiveRoadmapDocument = {
|
13396
|
+
kind: "Document",
|
13397
|
+
definitions: [
|
13398
|
+
{
|
13399
|
+
kind: "OperationDefinition",
|
13400
|
+
operation: "mutation",
|
13401
|
+
name: { kind: "Name", value: "archiveRoadmap" },
|
13402
|
+
variableDefinitions: [
|
13403
|
+
{
|
13404
|
+
kind: "VariableDefinition",
|
13405
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
13406
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
13407
|
+
},
|
13408
|
+
],
|
13409
|
+
selectionSet: {
|
13410
|
+
kind: "SelectionSet",
|
13411
|
+
selections: [
|
13412
|
+
{
|
13413
|
+
kind: "Field",
|
13414
|
+
name: { kind: "Name", value: "roadmapArchive" },
|
13415
|
+
arguments: [
|
13416
|
+
{
|
13417
|
+
kind: "Argument",
|
13418
|
+
name: { kind: "Name", value: "id" },
|
13419
|
+
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
13420
|
+
},
|
13421
|
+
],
|
13422
|
+
selectionSet: {
|
13423
|
+
kind: "SelectionSet",
|
13424
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ArchivePayload" } }],
|
13425
|
+
},
|
13426
|
+
},
|
13427
|
+
],
|
13428
|
+
},
|
13429
|
+
},
|
13430
|
+
...ArchivePayloadFragmentDoc.definitions,
|
13431
|
+
],
|
13432
|
+
};
|
13316
13433
|
const CreateRoadmapDocument = {
|
13317
13434
|
kind: "Document",
|
13318
13435
|
definitions: [
|
@@ -13522,6 +13639,44 @@
|
|
13522
13639
|
...RoadmapToProjectPayloadFragmentDoc.definitions,
|
13523
13640
|
],
|
13524
13641
|
};
|
13642
|
+
const UnarchiveRoadmapDocument = {
|
13643
|
+
kind: "Document",
|
13644
|
+
definitions: [
|
13645
|
+
{
|
13646
|
+
kind: "OperationDefinition",
|
13647
|
+
operation: "mutation",
|
13648
|
+
name: { kind: "Name", value: "unarchiveRoadmap" },
|
13649
|
+
variableDefinitions: [
|
13650
|
+
{
|
13651
|
+
kind: "VariableDefinition",
|
13652
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
13653
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
13654
|
+
},
|
13655
|
+
],
|
13656
|
+
selectionSet: {
|
13657
|
+
kind: "SelectionSet",
|
13658
|
+
selections: [
|
13659
|
+
{
|
13660
|
+
kind: "Field",
|
13661
|
+
name: { kind: "Name", value: "roadmapUnarchive" },
|
13662
|
+
arguments: [
|
13663
|
+
{
|
13664
|
+
kind: "Argument",
|
13665
|
+
name: { kind: "Name", value: "id" },
|
13666
|
+
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
13667
|
+
},
|
13668
|
+
],
|
13669
|
+
selectionSet: {
|
13670
|
+
kind: "SelectionSet",
|
13671
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ArchivePayload" } }],
|
13672
|
+
},
|
13673
|
+
},
|
13674
|
+
],
|
13675
|
+
},
|
13676
|
+
},
|
13677
|
+
...ArchivePayloadFragmentDoc.definitions,
|
13678
|
+
],
|
13679
|
+
};
|
13525
13680
|
const UpdateRoadmapDocument = {
|
13526
13681
|
kind: "Document",
|
13527
13682
|
definitions: [
|
@@ -17874,6 +18029,186 @@
|
|
17874
18029
|
...EmojiConnectionFragmentDoc.definitions,
|
17875
18030
|
],
|
17876
18031
|
};
|
18032
|
+
const ExternalUserDocument = {
|
18033
|
+
kind: "Document",
|
18034
|
+
definitions: [
|
18035
|
+
{
|
18036
|
+
kind: "OperationDefinition",
|
18037
|
+
operation: "query",
|
18038
|
+
name: { kind: "Name", value: "externalUser" },
|
18039
|
+
variableDefinitions: [
|
18040
|
+
{
|
18041
|
+
kind: "VariableDefinition",
|
18042
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
18043
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
18044
|
+
},
|
18045
|
+
],
|
18046
|
+
selectionSet: {
|
18047
|
+
kind: "SelectionSet",
|
18048
|
+
selections: [
|
18049
|
+
{
|
18050
|
+
kind: "Field",
|
18051
|
+
name: { kind: "Name", value: "externalUser" },
|
18052
|
+
arguments: [
|
18053
|
+
{
|
18054
|
+
kind: "Argument",
|
18055
|
+
name: { kind: "Name", value: "id" },
|
18056
|
+
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
18057
|
+
},
|
18058
|
+
],
|
18059
|
+
selectionSet: {
|
18060
|
+
kind: "SelectionSet",
|
18061
|
+
selections: [
|
18062
|
+
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
18063
|
+
{ kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
|
18064
|
+
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
18065
|
+
{ kind: "Field", name: { kind: "Name", value: "displayName" } },
|
18066
|
+
{ kind: "Field", name: { kind: "Name", value: "email" } },
|
18067
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
18068
|
+
{ kind: "Field", name: { kind: "Name", value: "lastSeen" } },
|
18069
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
18070
|
+
{
|
18071
|
+
kind: "Field",
|
18072
|
+
name: { kind: "Name", value: "organization" },
|
18073
|
+
selectionSet: {
|
18074
|
+
kind: "SelectionSet",
|
18075
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Organization" } }],
|
18076
|
+
},
|
18077
|
+
},
|
18078
|
+
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
18079
|
+
],
|
18080
|
+
},
|
18081
|
+
},
|
18082
|
+
],
|
18083
|
+
},
|
18084
|
+
},
|
18085
|
+
...OrganizationFragmentDoc.definitions,
|
18086
|
+
],
|
18087
|
+
};
|
18088
|
+
const ExternalUsersDocument = {
|
18089
|
+
kind: "Document",
|
18090
|
+
definitions: [
|
18091
|
+
{
|
18092
|
+
kind: "OperationDefinition",
|
18093
|
+
operation: "query",
|
18094
|
+
name: { kind: "Name", value: "externalUsers" },
|
18095
|
+
variableDefinitions: [
|
18096
|
+
{
|
18097
|
+
kind: "VariableDefinition",
|
18098
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
|
18099
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
18100
|
+
},
|
18101
|
+
{
|
18102
|
+
kind: "VariableDefinition",
|
18103
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
18104
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
18105
|
+
},
|
18106
|
+
{
|
18107
|
+
kind: "VariableDefinition",
|
18108
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
|
18109
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
18110
|
+
},
|
18111
|
+
{
|
18112
|
+
kind: "VariableDefinition",
|
18113
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
|
18114
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } },
|
18115
|
+
},
|
18116
|
+
{
|
18117
|
+
kind: "VariableDefinition",
|
18118
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
|
18119
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
18120
|
+
},
|
18121
|
+
{
|
18122
|
+
kind: "VariableDefinition",
|
18123
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
|
18124
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
|
18125
|
+
},
|
18126
|
+
],
|
18127
|
+
selectionSet: {
|
18128
|
+
kind: "SelectionSet",
|
18129
|
+
selections: [
|
18130
|
+
{
|
18131
|
+
kind: "Field",
|
18132
|
+
name: { kind: "Name", value: "externalUsers" },
|
18133
|
+
arguments: [
|
18134
|
+
{
|
18135
|
+
kind: "Argument",
|
18136
|
+
name: { kind: "Name", value: "after" },
|
18137
|
+
value: { kind: "Variable", name: { kind: "Name", value: "after" } },
|
18138
|
+
},
|
18139
|
+
{
|
18140
|
+
kind: "Argument",
|
18141
|
+
name: { kind: "Name", value: "before" },
|
18142
|
+
value: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
18143
|
+
},
|
18144
|
+
{
|
18145
|
+
kind: "Argument",
|
18146
|
+
name: { kind: "Name", value: "first" },
|
18147
|
+
value: { kind: "Variable", name: { kind: "Name", value: "first" } },
|
18148
|
+
},
|
18149
|
+
{
|
18150
|
+
kind: "Argument",
|
18151
|
+
name: { kind: "Name", value: "includeArchived" },
|
18152
|
+
value: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
|
18153
|
+
},
|
18154
|
+
{
|
18155
|
+
kind: "Argument",
|
18156
|
+
name: { kind: "Name", value: "last" },
|
18157
|
+
value: { kind: "Variable", name: { kind: "Name", value: "last" } },
|
18158
|
+
},
|
18159
|
+
{
|
18160
|
+
kind: "Argument",
|
18161
|
+
name: { kind: "Name", value: "orderBy" },
|
18162
|
+
value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
|
18163
|
+
},
|
18164
|
+
],
|
18165
|
+
selectionSet: {
|
18166
|
+
kind: "SelectionSet",
|
18167
|
+
selections: [
|
18168
|
+
{
|
18169
|
+
kind: "Field",
|
18170
|
+
name: { kind: "Name", value: "nodes" },
|
18171
|
+
selectionSet: {
|
18172
|
+
kind: "SelectionSet",
|
18173
|
+
selections: [
|
18174
|
+
{ kind: "Field", name: { kind: "Name", value: "archivedAt" } },
|
18175
|
+
{ kind: "Field", name: { kind: "Name", value: "avatarUrl" } },
|
18176
|
+
{ kind: "Field", name: { kind: "Name", value: "createdAt" } },
|
18177
|
+
{ kind: "Field", name: { kind: "Name", value: "displayName" } },
|
18178
|
+
{ kind: "Field", name: { kind: "Name", value: "email" } },
|
18179
|
+
{ kind: "Field", name: { kind: "Name", value: "id" } },
|
18180
|
+
{ kind: "Field", name: { kind: "Name", value: "lastSeen" } },
|
18181
|
+
{ kind: "Field", name: { kind: "Name", value: "name" } },
|
18182
|
+
{
|
18183
|
+
kind: "Field",
|
18184
|
+
name: { kind: "Name", value: "organization" },
|
18185
|
+
selectionSet: {
|
18186
|
+
kind: "SelectionSet",
|
18187
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "Organization" } }],
|
18188
|
+
},
|
18189
|
+
},
|
18190
|
+
{ kind: "Field", name: { kind: "Name", value: "updatedAt" } },
|
18191
|
+
],
|
18192
|
+
},
|
18193
|
+
},
|
18194
|
+
{
|
18195
|
+
kind: "Field",
|
18196
|
+
name: { kind: "Name", value: "pageInfo" },
|
18197
|
+
selectionSet: {
|
18198
|
+
kind: "SelectionSet",
|
18199
|
+
selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PageInfo" } }],
|
18200
|
+
},
|
18201
|
+
},
|
18202
|
+
],
|
18203
|
+
},
|
18204
|
+
},
|
18205
|
+
],
|
18206
|
+
},
|
18207
|
+
},
|
18208
|
+
...OrganizationFragmentDoc.definitions,
|
18209
|
+
...PageInfoFragmentDoc.definitions,
|
18210
|
+
],
|
18211
|
+
};
|
17877
18212
|
const FavoriteDocument = {
|
17878
18213
|
kind: "Document",
|
17879
18214
|
definitions: [
|
@@ -22638,6 +22973,117 @@
|
|
22638
22973
|
...UserConnectionFragmentDoc.definitions,
|
22639
22974
|
],
|
22640
22975
|
};
|
22976
|
+
const Project_ProjectMilestonesDocument = {
|
22977
|
+
kind: "Document",
|
22978
|
+
definitions: [
|
22979
|
+
{
|
22980
|
+
kind: "OperationDefinition",
|
22981
|
+
operation: "query",
|
22982
|
+
name: { kind: "Name", value: "project_projectMilestones" },
|
22983
|
+
variableDefinitions: [
|
22984
|
+
{
|
22985
|
+
kind: "VariableDefinition",
|
22986
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
22987
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
22988
|
+
},
|
22989
|
+
{
|
22990
|
+
kind: "VariableDefinition",
|
22991
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
|
22992
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
22993
|
+
},
|
22994
|
+
{
|
22995
|
+
kind: "VariableDefinition",
|
22996
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
22997
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
22998
|
+
},
|
22999
|
+
{
|
23000
|
+
kind: "VariableDefinition",
|
23001
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
|
23002
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
23003
|
+
},
|
23004
|
+
{
|
23005
|
+
kind: "VariableDefinition",
|
23006
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
|
23007
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } },
|
23008
|
+
},
|
23009
|
+
{
|
23010
|
+
kind: "VariableDefinition",
|
23011
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
|
23012
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
23013
|
+
},
|
23014
|
+
{
|
23015
|
+
kind: "VariableDefinition",
|
23016
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
|
23017
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "PaginationOrderBy" } },
|
23018
|
+
},
|
23019
|
+
],
|
23020
|
+
selectionSet: {
|
23021
|
+
kind: "SelectionSet",
|
23022
|
+
selections: [
|
23023
|
+
{
|
23024
|
+
kind: "Field",
|
23025
|
+
name: { kind: "Name", value: "project" },
|
23026
|
+
arguments: [
|
23027
|
+
{
|
23028
|
+
kind: "Argument",
|
23029
|
+
name: { kind: "Name", value: "id" },
|
23030
|
+
value: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
23031
|
+
},
|
23032
|
+
],
|
23033
|
+
selectionSet: {
|
23034
|
+
kind: "SelectionSet",
|
23035
|
+
selections: [
|
23036
|
+
{
|
23037
|
+
kind: "Field",
|
23038
|
+
name: { kind: "Name", value: "projectMilestones" },
|
23039
|
+
arguments: [
|
23040
|
+
{
|
23041
|
+
kind: "Argument",
|
23042
|
+
name: { kind: "Name", value: "after" },
|
23043
|
+
value: { kind: "Variable", name: { kind: "Name", value: "after" } },
|
23044
|
+
},
|
23045
|
+
{
|
23046
|
+
kind: "Argument",
|
23047
|
+
name: { kind: "Name", value: "before" },
|
23048
|
+
value: { kind: "Variable", name: { kind: "Name", value: "before" } },
|
23049
|
+
},
|
23050
|
+
{
|
23051
|
+
kind: "Argument",
|
23052
|
+
name: { kind: "Name", value: "first" },
|
23053
|
+
value: { kind: "Variable", name: { kind: "Name", value: "first" } },
|
23054
|
+
},
|
23055
|
+
{
|
23056
|
+
kind: "Argument",
|
23057
|
+
name: { kind: "Name", value: "includeArchived" },
|
23058
|
+
value: { kind: "Variable", name: { kind: "Name", value: "includeArchived" } },
|
23059
|
+
},
|
23060
|
+
{
|
23061
|
+
kind: "Argument",
|
23062
|
+
name: { kind: "Name", value: "last" },
|
23063
|
+
value: { kind: "Variable", name: { kind: "Name", value: "last" } },
|
23064
|
+
},
|
23065
|
+
{
|
23066
|
+
kind: "Argument",
|
23067
|
+
name: { kind: "Name", value: "orderBy" },
|
23068
|
+
value: { kind: "Variable", name: { kind: "Name", value: "orderBy" } },
|
23069
|
+
},
|
23070
|
+
],
|
23071
|
+
selectionSet: {
|
23072
|
+
kind: "SelectionSet",
|
23073
|
+
selections: [
|
23074
|
+
{ kind: "FragmentSpread", name: { kind: "Name", value: "ProjectMilestoneConnection" } },
|
23075
|
+
],
|
23076
|
+
},
|
23077
|
+
},
|
23078
|
+
],
|
23079
|
+
},
|
23080
|
+
},
|
23081
|
+
],
|
23082
|
+
},
|
23083
|
+
},
|
23084
|
+
...ProjectMilestoneConnectionFragmentDoc.definitions,
|
23085
|
+
],
|
23086
|
+
};
|
22641
23087
|
const Project_ProjectUpdatesDocument = {
|
22642
23088
|
kind: "Document",
|
22643
23089
|
definitions: [
|
@@ -26718,6 +27164,7 @@
|
|
26718
27164
|
CustomViewFragmentDoc: CustomViewFragmentDoc,
|
26719
27165
|
CustomViewConnectionFragmentDoc: CustomViewConnectionFragmentDoc,
|
26720
27166
|
CustomViewPayloadFragmentDoc: CustomViewPayloadFragmentDoc,
|
27167
|
+
CustomViewSuggestionPayloadFragmentDoc: CustomViewSuggestionPayloadFragmentDoc,
|
26721
27168
|
CycleFragmentDoc: CycleFragmentDoc,
|
26722
27169
|
CycleConnectionFragmentDoc: CycleConnectionFragmentDoc,
|
26723
27170
|
CyclePayloadFragmentDoc: CyclePayloadFragmentDoc,
|
@@ -26787,6 +27234,7 @@
|
|
26787
27234
|
OrganizationInviteDetailsPayloadFragmentDoc: OrganizationInviteDetailsPayloadFragmentDoc,
|
26788
27235
|
OrganizationInvitePayloadFragmentDoc: OrganizationInvitePayloadFragmentDoc,
|
26789
27236
|
OrganizationPayloadFragmentDoc: OrganizationPayloadFragmentDoc,
|
27237
|
+
OrganizationStartPlusTrialPayloadFragmentDoc: OrganizationStartPlusTrialPayloadFragmentDoc,
|
26790
27238
|
ProjectFragmentDoc: ProjectFragmentDoc,
|
26791
27239
|
ProjectConnectionFragmentDoc: ProjectConnectionFragmentDoc,
|
26792
27240
|
ProjectLinkFragmentDoc: ProjectLinkFragmentDoc,
|
@@ -26953,6 +27401,7 @@
|
|
26953
27401
|
CreateOrganizationInviteDocument: CreateOrganizationInviteDocument,
|
26954
27402
|
DeleteOrganizationInviteDocument: DeleteOrganizationInviteDocument,
|
26955
27403
|
UpdateOrganizationInviteDocument: UpdateOrganizationInviteDocument,
|
27404
|
+
OrganizationStartPlusTrialDocument: OrganizationStartPlusTrialDocument,
|
26956
27405
|
UpdateOrganizationDocument: UpdateOrganizationDocument,
|
26957
27406
|
ArchiveProjectDocument: ArchiveProjectDocument,
|
26958
27407
|
CreateProjectDocument: CreateProjectDocument,
|
@@ -26976,11 +27425,13 @@
|
|
26976
27425
|
DeleteReactionDocument: DeleteReactionDocument,
|
26977
27426
|
RefreshGoogleSheetsDataDocument: RefreshGoogleSheetsDataDocument,
|
26978
27427
|
ResendOrganizationInviteDocument: ResendOrganizationInviteDocument,
|
27428
|
+
ArchiveRoadmapDocument: ArchiveRoadmapDocument,
|
26979
27429
|
CreateRoadmapDocument: CreateRoadmapDocument,
|
26980
27430
|
DeleteRoadmapDocument: DeleteRoadmapDocument,
|
26981
27431
|
CreateRoadmapToProjectDocument: CreateRoadmapToProjectDocument,
|
26982
27432
|
DeleteRoadmapToProjectDocument: DeleteRoadmapToProjectDocument,
|
26983
27433
|
UpdateRoadmapToProjectDocument: UpdateRoadmapToProjectDocument,
|
27434
|
+
UnarchiveRoadmapDocument: UnarchiveRoadmapDocument,
|
26984
27435
|
UpdateRoadmapDocument: UpdateRoadmapDocument,
|
26985
27436
|
SamlTokenUserAccountAuthDocument: SamlTokenUserAccountAuthDocument,
|
26986
27437
|
CreateTeamDocument: CreateTeamDocument,
|
@@ -27052,6 +27503,8 @@
|
|
27052
27503
|
DocumentsDocument: DocumentsDocument,
|
27053
27504
|
EmojiDocument: EmojiDocument,
|
27054
27505
|
EmojisDocument: EmojisDocument,
|
27506
|
+
ExternalUserDocument: ExternalUserDocument,
|
27507
|
+
ExternalUsersDocument: ExternalUsersDocument,
|
27055
27508
|
FavoriteDocument: FavoriteDocument,
|
27056
27509
|
Favorite_ChildrenDocument: Favorite_ChildrenDocument,
|
27057
27510
|
FavoritesDocument: FavoritesDocument,
|
@@ -27109,6 +27562,7 @@
|
|
27109
27562
|
Project_IssuesDocument: Project_IssuesDocument,
|
27110
27563
|
Project_LinksDocument: Project_LinksDocument,
|
27111
27564
|
Project_MembersDocument: Project_MembersDocument,
|
27565
|
+
Project_ProjectMilestonesDocument: Project_ProjectMilestonesDocument,
|
27112
27566
|
Project_ProjectUpdatesDocument: Project_ProjectUpdatesDocument,
|
27113
27567
|
Project_TeamsDocument: Project_TeamsDocument,
|
27114
27568
|
ProjectLinkDocument: ProjectLinkDocument,
|
@@ -27385,7 +27839,7 @@
|
|
27385
27839
|
this.id = data.id;
|
27386
27840
|
this.metadata = (_c = parseJson(data.metadata)) !== null && _c !== void 0 ? _c : {};
|
27387
27841
|
this.source = (_d = parseJson(data.source)) !== null && _d !== void 0 ? _d : undefined;
|
27388
|
-
this.sourceType = (_e =
|
27842
|
+
this.sourceType = (_e = data.sourceType) !== null && _e !== void 0 ? _e : undefined;
|
27389
27843
|
this.subtitle = (_f = data.subtitle) !== null && _f !== void 0 ? _f : undefined;
|
27390
27844
|
this.title = data.title;
|
27391
27845
|
this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
|
@@ -27733,6 +28187,21 @@
|
|
27733
28187
|
return new CustomViewQuery(this._request).fetch(this._customView.id);
|
27734
28188
|
}
|
27735
28189
|
}
|
28190
|
+
/**
|
28191
|
+
* CustomViewSuggestionPayload model
|
28192
|
+
*
|
28193
|
+
* @param request - function to call the graphql client
|
28194
|
+
* @param data - L.CustomViewSuggestionPayloadFragment response data
|
28195
|
+
*/
|
28196
|
+
class CustomViewSuggestionPayload extends Request {
|
28197
|
+
constructor(request, data) {
|
28198
|
+
var _a, _b, _c;
|
28199
|
+
super(request);
|
28200
|
+
this.suggestedDescription = (_a = data.suggestedDescription) !== null && _a !== void 0 ? _a : undefined;
|
28201
|
+
this.suggestedIcon = (_b = data.suggestedIcon) !== null && _b !== void 0 ? _b : undefined;
|
28202
|
+
this.suggestedName = (_c = data.suggestedName) !== null && _c !== void 0 ? _c : undefined;
|
28203
|
+
}
|
28204
|
+
}
|
27736
28205
|
/**
|
27737
28206
|
* A set of issues to be resolved in a specified amount of time.
|
27738
28207
|
*
|
@@ -28585,7 +29054,7 @@
|
|
28585
29054
|
*/
|
28586
29055
|
class Issue extends Request {
|
28587
29056
|
constructor(request, data) {
|
28588
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
29057
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
28589
29058
|
super(request);
|
28590
29059
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
28591
29060
|
this.autoArchivedAt = (_b = parseDate(data.autoArchivedAt)) !== null && _b !== void 0 ? _b : undefined;
|
@@ -28620,7 +29089,8 @@
|
|
28620
29089
|
this._cycle = (_u = data.cycle) !== null && _u !== void 0 ? _u : undefined;
|
28621
29090
|
this._parent = (_v = data.parent) !== null && _v !== void 0 ? _v : undefined;
|
28622
29091
|
this._project = (_w = data.project) !== null && _w !== void 0 ? _w : undefined;
|
28623
|
-
this.
|
29092
|
+
this._projectMilestone = (_x = data.projectMilestone) !== null && _x !== void 0 ? _x : undefined;
|
29093
|
+
this._snoozedBy = (_y = data.snoozedBy) !== null && _y !== void 0 ? _y : undefined;
|
28624
29094
|
this._state = data.state;
|
28625
29095
|
this._team = data.team;
|
28626
29096
|
}
|
@@ -28649,6 +29119,13 @@
|
|
28649
29119
|
var _a, _b;
|
28650
29120
|
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;
|
28651
29121
|
}
|
29122
|
+
/** The projectMilestone that the issue is associated with. */
|
29123
|
+
get projectMilestone() {
|
29124
|
+
var _a, _b;
|
29125
|
+
return ((_a = this._projectMilestone) === null || _a === void 0 ? void 0 : _a.id)
|
29126
|
+
? new ProjectMilestoneQuery(this._request).fetch((_b = this._projectMilestone) === null || _b === void 0 ? void 0 : _b.id)
|
29127
|
+
: undefined;
|
29128
|
+
}
|
28652
29129
|
/** The user who snoozed the issue. */
|
28653
29130
|
get snoozedBy() {
|
28654
29131
|
var _a, _b;
|
@@ -29568,7 +30045,7 @@
|
|
29568
30045
|
*/
|
29569
30046
|
class Organization extends Request {
|
29570
30047
|
constructor(request, data) {
|
29571
|
-
var _a, _b, _c, _d, _e, _f;
|
30048
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
29572
30049
|
super(request);
|
29573
30050
|
this.allowedAuthServices = data.allowedAuthServices;
|
29574
30051
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
@@ -29587,7 +30064,8 @@
|
|
29587
30064
|
this.roadmapEnabled = data.roadmapEnabled;
|
29588
30065
|
this.samlEnabled = data.samlEnabled;
|
29589
30066
|
this.scimEnabled = data.scimEnabled;
|
29590
|
-
this.
|
30067
|
+
this.trialEndsAt = (_f = parseDate(data.trialEndsAt)) !== null && _f !== void 0 ? _f : undefined;
|
30068
|
+
this.updatedAt = (_g = parseDate(data.updatedAt)) !== null && _g !== void 0 ? _g : new Date();
|
29591
30069
|
this.urlKey = data.urlKey;
|
29592
30070
|
this.userCount = data.userCount;
|
29593
30071
|
this.subscription = data.subscription ? new PaidSubscription(request, data.subscription) : undefined;
|
@@ -29802,6 +30280,18 @@
|
|
29802
30280
|
return new OrganizationQuery(this._request).fetch();
|
29803
30281
|
}
|
29804
30282
|
}
|
30283
|
+
/**
|
30284
|
+
* OrganizationStartPlusTrialPayload model
|
30285
|
+
*
|
30286
|
+
* @param request - function to call the graphql client
|
30287
|
+
* @param data - L.OrganizationStartPlusTrialPayloadFragment response data
|
30288
|
+
*/
|
30289
|
+
class OrganizationStartPlusTrialPayload extends Request {
|
30290
|
+
constructor(request, data) {
|
30291
|
+
super(request);
|
30292
|
+
this.success = data.success;
|
30293
|
+
}
|
30294
|
+
}
|
29805
30295
|
/**
|
29806
30296
|
* PageInfo model
|
29807
30297
|
*
|
@@ -29953,6 +30443,10 @@
|
|
29953
30443
|
members(variables) {
|
29954
30444
|
return new Project_MembersQuery(this._request, this.id, variables).fetch(variables);
|
29955
30445
|
}
|
30446
|
+
/** Milestones associated with the project. */
|
30447
|
+
projectMilestones(variables) {
|
30448
|
+
return new Project_ProjectMilestonesQuery(this._request, this.id, variables).fetch(variables);
|
30449
|
+
}
|
29956
30450
|
/** Project updates associated with the project. */
|
29957
30451
|
projectUpdates(variables) {
|
29958
30452
|
return new Project_ProjectUpdatesQuery(this._request, this.id, variables).fetch(variables);
|
@@ -30483,18 +30977,19 @@
|
|
30483
30977
|
*/
|
30484
30978
|
class Reaction extends Request {
|
30485
30979
|
constructor(request, data) {
|
30486
|
-
var _a, _b, _c;
|
30980
|
+
var _a, _b, _c, _d;
|
30487
30981
|
super(request);
|
30488
30982
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
30489
30983
|
this.createdAt = (_b = parseDate(data.createdAt)) !== null && _b !== void 0 ? _b : new Date();
|
30490
30984
|
this.emoji = data.emoji;
|
30491
30985
|
this.id = data.id;
|
30492
30986
|
this.updatedAt = (_c = parseDate(data.updatedAt)) !== null && _c !== void 0 ? _c : new Date();
|
30493
|
-
this._user = data.user;
|
30987
|
+
this._user = (_d = data.user) !== null && _d !== void 0 ? _d : undefined;
|
30494
30988
|
}
|
30495
30989
|
/** The user who reacted. */
|
30496
30990
|
get user() {
|
30497
|
-
|
30991
|
+
var _a, _b;
|
30992
|
+
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;
|
30498
30993
|
}
|
30499
30994
|
/** Creates a new reaction. */
|
30500
30995
|
create(input) {
|
@@ -30539,15 +31034,17 @@
|
|
30539
31034
|
*/
|
30540
31035
|
class Roadmap extends Request {
|
30541
31036
|
constructor(request, data) {
|
30542
|
-
var _a, _b, _c, _d;
|
31037
|
+
var _a, _b, _c, _d, _e;
|
30543
31038
|
super(request);
|
30544
31039
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
30545
|
-
this.
|
30546
|
-
this.
|
31040
|
+
this.color = (_b = data.color) !== null && _b !== void 0 ? _b : undefined;
|
31041
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
31042
|
+
this.description = (_d = data.description) !== null && _d !== void 0 ? _d : undefined;
|
30547
31043
|
this.id = data.id;
|
30548
31044
|
this.name = data.name;
|
30549
31045
|
this.slugId = data.slugId;
|
30550
|
-
this.
|
31046
|
+
this.sortOrder = data.sortOrder;
|
31047
|
+
this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
|
30551
31048
|
this._creator = data.creator;
|
30552
31049
|
this._owner = data.owner;
|
30553
31050
|
}
|
@@ -30567,6 +31064,10 @@
|
|
30567
31064
|
projects(variables) {
|
30568
31065
|
return new Roadmap_ProjectsQuery(this._request, this.id, variables).fetch(variables);
|
30569
31066
|
}
|
31067
|
+
/** Archives a roadmap. */
|
31068
|
+
archive() {
|
31069
|
+
return new ArchiveRoadmapMutation(this._request).fetch(this.id);
|
31070
|
+
}
|
30570
31071
|
/** Creates a new roadmap. */
|
30571
31072
|
create(input) {
|
30572
31073
|
return new CreateRoadmapMutation(this._request).fetch(input);
|
@@ -30575,6 +31076,10 @@
|
|
30575
31076
|
delete() {
|
30576
31077
|
return new DeleteRoadmapMutation(this._request).fetch(this.id);
|
30577
31078
|
}
|
31079
|
+
/** Unarchives a roadmap. */
|
31080
|
+
unarchive() {
|
31081
|
+
return new UnarchiveRoadmapMutation(this._request).fetch(this.id);
|
31082
|
+
}
|
30578
31083
|
/** Updates a roadmap. */
|
30579
31084
|
update(input) {
|
30580
31085
|
return new UpdateRoadmapMutation(this._request).fetch(this.id, input);
|
@@ -31403,14 +31908,15 @@
|
|
31403
31908
|
*/
|
31404
31909
|
class UserSettings extends Request {
|
31405
31910
|
constructor(request, data) {
|
31406
|
-
var _a, _b, _c, _d;
|
31911
|
+
var _a, _b, _c, _d, _e;
|
31407
31912
|
super(request);
|
31408
31913
|
this.archivedAt = (_a = parseDate(data.archivedAt)) !== null && _a !== void 0 ? _a : undefined;
|
31409
|
-
this.
|
31914
|
+
this.calendarHash = (_b = data.calendarHash) !== null && _b !== void 0 ? _b : undefined;
|
31915
|
+
this.createdAt = (_c = parseDate(data.createdAt)) !== null && _c !== void 0 ? _c : new Date();
|
31410
31916
|
this.id = data.id;
|
31411
|
-
this.notificationPreferences = (
|
31917
|
+
this.notificationPreferences = (_d = parseJson(data.notificationPreferences)) !== null && _d !== void 0 ? _d : {};
|
31412
31918
|
this.unsubscribedFrom = data.unsubscribedFrom;
|
31413
|
-
this.updatedAt = (
|
31919
|
+
this.updatedAt = (_e = parseDate(data.updatedAt)) !== null && _e !== void 0 ? _e : new Date();
|
31414
31920
|
this._user = data.user;
|
31415
31921
|
}
|
31416
31922
|
/** The user associated with these settings. */
|
@@ -34420,6 +34926,28 @@
|
|
34420
34926
|
});
|
34421
34927
|
}
|
34422
34928
|
}
|
34929
|
+
/**
|
34930
|
+
* A fetchable OrganizationStartPlusTrial Mutation
|
34931
|
+
*
|
34932
|
+
* @param request - function to call the graphql client
|
34933
|
+
*/
|
34934
|
+
class OrganizationStartPlusTrialMutation extends Request {
|
34935
|
+
constructor(request) {
|
34936
|
+
super(request);
|
34937
|
+
}
|
34938
|
+
/**
|
34939
|
+
* Call the OrganizationStartPlusTrial mutation and return a OrganizationStartPlusTrialPayload
|
34940
|
+
*
|
34941
|
+
* @returns parsed response from OrganizationStartPlusTrialMutation
|
34942
|
+
*/
|
34943
|
+
fetch() {
|
34944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
34945
|
+
const response = yield this._request(OrganizationStartPlusTrialDocument, {});
|
34946
|
+
const data = response.organizationStartPlusTrial;
|
34947
|
+
return new OrganizationStartPlusTrialPayload(this._request, data);
|
34948
|
+
});
|
34949
|
+
}
|
34950
|
+
}
|
34423
34951
|
/**
|
34424
34952
|
* A fetchable UpdateOrganization Mutation
|
34425
34953
|
*
|
@@ -35003,6 +35531,31 @@
|
|
35003
35531
|
});
|
35004
35532
|
}
|
35005
35533
|
}
|
35534
|
+
/**
|
35535
|
+
* A fetchable ArchiveRoadmap Mutation
|
35536
|
+
*
|
35537
|
+
* @param request - function to call the graphql client
|
35538
|
+
*/
|
35539
|
+
class ArchiveRoadmapMutation extends Request {
|
35540
|
+
constructor(request) {
|
35541
|
+
super(request);
|
35542
|
+
}
|
35543
|
+
/**
|
35544
|
+
* Call the ArchiveRoadmap mutation and return a ArchivePayload
|
35545
|
+
*
|
35546
|
+
* @param id - required id to pass to archiveRoadmap
|
35547
|
+
* @returns parsed response from ArchiveRoadmapMutation
|
35548
|
+
*/
|
35549
|
+
fetch(id) {
|
35550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
35551
|
+
const response = yield this._request(ArchiveRoadmapDocument, {
|
35552
|
+
id,
|
35553
|
+
});
|
35554
|
+
const data = response.roadmapArchive;
|
35555
|
+
return new ArchivePayload(this._request, data);
|
35556
|
+
});
|
35557
|
+
}
|
35558
|
+
}
|
35006
35559
|
/**
|
35007
35560
|
* A fetchable CreateRoadmap Mutation
|
35008
35561
|
*
|
@@ -35130,6 +35683,31 @@
|
|
35130
35683
|
});
|
35131
35684
|
}
|
35132
35685
|
}
|
35686
|
+
/**
|
35687
|
+
* A fetchable UnarchiveRoadmap Mutation
|
35688
|
+
*
|
35689
|
+
* @param request - function to call the graphql client
|
35690
|
+
*/
|
35691
|
+
class UnarchiveRoadmapMutation extends Request {
|
35692
|
+
constructor(request) {
|
35693
|
+
super(request);
|
35694
|
+
}
|
35695
|
+
/**
|
35696
|
+
* Call the UnarchiveRoadmap mutation and return a ArchivePayload
|
35697
|
+
*
|
35698
|
+
* @param id - required id to pass to unarchiveRoadmap
|
35699
|
+
* @returns parsed response from UnarchiveRoadmapMutation
|
35700
|
+
*/
|
35701
|
+
fetch(id) {
|
35702
|
+
return __awaiter(this, void 0, void 0, function* () {
|
35703
|
+
const response = yield this._request(UnarchiveRoadmapDocument, {
|
35704
|
+
id,
|
35705
|
+
});
|
35706
|
+
const data = response.roadmapUnarchive;
|
35707
|
+
return new ArchivePayload(this._request, data);
|
35708
|
+
});
|
35709
|
+
}
|
35710
|
+
}
|
35133
35711
|
/**
|
35134
35712
|
* A fetchable UpdateRoadmap Mutation
|
35135
35713
|
*
|
@@ -39097,6 +39675,33 @@
|
|
39097
39675
|
});
|
39098
39676
|
}
|
39099
39677
|
}
|
39678
|
+
/**
|
39679
|
+
* A fetchable Project_ProjectMilestones Query
|
39680
|
+
*
|
39681
|
+
* @param request - function to call the graphql client
|
39682
|
+
* @param id - required id to pass to project
|
39683
|
+
* @param variables - variables without 'id' to pass into the Project_ProjectMilestonesQuery
|
39684
|
+
*/
|
39685
|
+
class Project_ProjectMilestonesQuery extends Request {
|
39686
|
+
constructor(request, id, variables) {
|
39687
|
+
super(request);
|
39688
|
+
this._id = id;
|
39689
|
+
this._variables = variables;
|
39690
|
+
}
|
39691
|
+
/**
|
39692
|
+
* Call the Project_ProjectMilestones query and return a ProjectMilestoneConnection
|
39693
|
+
*
|
39694
|
+
* @param variables - variables without 'id' to pass into the Project_ProjectMilestonesQuery
|
39695
|
+
* @returns parsed response from Project_ProjectMilestonesQuery
|
39696
|
+
*/
|
39697
|
+
fetch(variables) {
|
39698
|
+
return __awaiter(this, void 0, void 0, function* () {
|
39699
|
+
const response = yield this._request(Project_ProjectMilestonesDocument, Object.assign(Object.assign({ id: this._id }, this._variables), variables));
|
39700
|
+
const data = response.project.projectMilestones;
|
39701
|
+
return new ProjectMilestoneConnection(this._request, connection => this.fetch(defaultConnection(Object.assign(Object.assign(Object.assign({}, this._variables), variables), connection))), data);
|
39702
|
+
});
|
39703
|
+
}
|
39704
|
+
}
|
39100
39705
|
/**
|
39101
39706
|
* A fetchable Project_ProjectUpdates Query
|
39102
39707
|
*
|
@@ -40652,6 +41257,14 @@
|
|
40652
41257
|
updateOrganizationInvite(id, input) {
|
40653
41258
|
return new UpdateOrganizationInviteMutation(this._request).fetch(id, input);
|
40654
41259
|
}
|
41260
|
+
/**
|
41261
|
+
* Starts a plus trial for the organization. Administrator privileges required.
|
41262
|
+
*
|
41263
|
+
* @returns OrganizationStartPlusTrialPayload
|
41264
|
+
*/
|
41265
|
+
get organizationStartPlusTrial() {
|
41266
|
+
return new OrganizationStartPlusTrialMutation(this._request).fetch();
|
41267
|
+
}
|
40655
41268
|
/**
|
40656
41269
|
* Updates the user's organization.
|
40657
41270
|
*
|
@@ -40863,6 +41476,15 @@
|
|
40863
41476
|
resendOrganizationInvite(id) {
|
40864
41477
|
return new ResendOrganizationInviteMutation(this._request).fetch(id);
|
40865
41478
|
}
|
41479
|
+
/**
|
41480
|
+
* Archives a roadmap.
|
41481
|
+
*
|
41482
|
+
* @param id - required id to pass to archiveRoadmap
|
41483
|
+
* @returns ArchivePayload
|
41484
|
+
*/
|
41485
|
+
archiveRoadmap(id) {
|
41486
|
+
return new ArchiveRoadmapMutation(this._request).fetch(id);
|
41487
|
+
}
|
40866
41488
|
/**
|
40867
41489
|
* Creates a new roadmap.
|
40868
41490
|
*
|
@@ -40909,6 +41531,15 @@
|
|
40909
41531
|
updateRoadmapToProject(id, input) {
|
40910
41532
|
return new UpdateRoadmapToProjectMutation(this._request).fetch(id, input);
|
40911
41533
|
}
|
41534
|
+
/**
|
41535
|
+
* Unarchives a roadmap.
|
41536
|
+
*
|
41537
|
+
* @param id - required id to pass to unarchiveRoadmap
|
41538
|
+
* @returns ArchivePayload
|
41539
|
+
*/
|
41540
|
+
unarchiveRoadmap(id) {
|
41541
|
+
return new UnarchiveRoadmapMutation(this._request).fetch(id);
|
41542
|
+
}
|
40912
41543
|
/**
|
40913
41544
|
* Updates a roadmap.
|
40914
41545
|
*
|
@@ -42027,10 +42658,12 @@
|
|
42027
42658
|
if (!crypto__default["default"].timingSafeEqual(verificationBuffer, signatureBuffer)) {
|
42028
42659
|
throw new Error("Invalid webhook signature");
|
42029
42660
|
}
|
42030
|
-
|
42031
|
-
|
42032
|
-
|
42033
|
-
|
42661
|
+
if (timestamp) {
|
42662
|
+
const timeDiff = Math.abs(new Date().getTime() - timestamp);
|
42663
|
+
// Throw error if more than one minute delta between provided ts and current time
|
42664
|
+
if (timeDiff > 1000 * 60) {
|
42665
|
+
throw new Error("Invalid webhook timestamp");
|
42666
|
+
}
|
42034
42667
|
}
|
42035
42668
|
return true;
|
42036
42669
|
}
|
@@ -42052,6 +42685,7 @@
|
|
42052
42685
|
exports.ArchiveNotificationMutation = ArchiveNotificationMutation;
|
42053
42686
|
exports.ArchivePayload = ArchivePayload;
|
42054
42687
|
exports.ArchiveProjectMutation = ArchiveProjectMutation;
|
42688
|
+
exports.ArchiveRoadmapMutation = ArchiveRoadmapMutation;
|
42055
42689
|
exports.ArchiveWorkflowStateMutation = ArchiveWorkflowStateMutation;
|
42056
42690
|
exports.Attachment = Attachment;
|
42057
42691
|
exports.AttachmentConnection = AttachmentConnection;
|
@@ -42132,6 +42766,7 @@
|
|
42132
42766
|
exports.CustomViewConnection = CustomViewConnection;
|
42133
42767
|
exports.CustomViewPayload = CustomViewPayload;
|
42134
42768
|
exports.CustomViewQuery = CustomViewQuery;
|
42769
|
+
exports.CustomViewSuggestionPayload = CustomViewSuggestionPayload;
|
42135
42770
|
exports.CustomViewsQuery = CustomViewsQuery;
|
42136
42771
|
exports.Cycle = Cycle;
|
42137
42772
|
exports.CycleConnection = CycleConnection;
|
@@ -42356,6 +42991,8 @@
|
|
42356
42991
|
exports.OrganizationInvitesQuery = OrganizationInvitesQuery;
|
42357
42992
|
exports.OrganizationPayload = OrganizationPayload;
|
42358
42993
|
exports.OrganizationQuery = OrganizationQuery;
|
42994
|
+
exports.OrganizationStartPlusTrialMutation = OrganizationStartPlusTrialMutation;
|
42995
|
+
exports.OrganizationStartPlusTrialPayload = OrganizationStartPlusTrialPayload;
|
42359
42996
|
exports.Organization_IntegrationsQuery = Organization_IntegrationsQuery;
|
42360
42997
|
exports.Organization_LabelsQuery = Organization_LabelsQuery;
|
42361
42998
|
exports.Organization_SubscriptionQuery = Organization_SubscriptionQuery;
|
@@ -42398,6 +43035,7 @@
|
|
42398
43035
|
exports.Project_IssuesQuery = Project_IssuesQuery;
|
42399
43036
|
exports.Project_LinksQuery = Project_LinksQuery;
|
42400
43037
|
exports.Project_MembersQuery = Project_MembersQuery;
|
43038
|
+
exports.Project_ProjectMilestonesQuery = Project_ProjectMilestonesQuery;
|
42401
43039
|
exports.Project_ProjectUpdatesQuery = Project_ProjectUpdatesQuery;
|
42402
43040
|
exports.Project_TeamsQuery = Project_TeamsQuery;
|
42403
43041
|
exports.ProjectsQuery = ProjectsQuery;
|
@@ -42465,6 +43103,7 @@
|
|
42465
43103
|
exports.UnarchiveIssueMutation = UnarchiveIssueMutation;
|
42466
43104
|
exports.UnarchiveNotificationMutation = UnarchiveNotificationMutation;
|
42467
43105
|
exports.UnarchiveProjectMutation = UnarchiveProjectMutation;
|
43106
|
+
exports.UnarchiveRoadmapMutation = UnarchiveRoadmapMutation;
|
42468
43107
|
exports.UnknownLinearError = UnknownLinearError;
|
42469
43108
|
exports.UnsuspendUserMutation = UnsuspendUserMutation;
|
42470
43109
|
exports.UpdateAttachmentMutation = UpdateAttachmentMutation;
|