github-issue-tower-defence-management 1.60.2 → 1.63.1

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.
Files changed (117) hide show
  1. package/.github/workflows/publish.yml +13 -0
  2. package/.github/workflows/test.yml +0 -4
  3. package/CHANGELOG.md +7 -0
  4. package/README.md +53 -10
  5. package/bin/adapter/entry-points/cli/index.js +11 -11
  6. package/bin/adapter/entry-points/cli/index.js.map +1 -1
  7. package/bin/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.js +3 -22
  8. package/bin/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.js.map +1 -1
  9. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +8 -22
  10. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
  11. package/bin/adapter/entry-points/handlers/rotationOrderFileWriter.js +56 -0
  12. package/bin/adapter/entry-points/handlers/rotationOrderFileWriter.js.map +1 -0
  13. package/bin/adapter/entry-points/handlers/situationFileWriter.js +5 -0
  14. package/bin/adapter/entry-points/handlers/situationFileWriter.js.map +1 -1
  15. package/bin/adapter/proxy/TokenListLoader.js +21 -6
  16. package/bin/adapter/proxy/TokenListLoader.js.map +1 -1
  17. package/bin/adapter/proxy/proxyEntry.js +1 -0
  18. package/bin/adapter/proxy/proxyEntry.js.map +1 -1
  19. package/bin/adapter/repositories/BaseGitHubRepository.js +1 -113
  20. package/bin/adapter/repositories/BaseGitHubRepository.js.map +1 -1
  21. package/bin/adapter/repositories/ProxyClaudeTokenUsageRepository.js +5 -3
  22. package/bin/adapter/repositories/ProxyClaudeTokenUsageRepository.js.map +1 -1
  23. package/bin/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.js +8 -7
  24. package/bin/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.js.map +1 -1
  25. package/bin/domain/usecases/HandleScheduledEventUseCase.js +14 -3
  26. package/bin/domain/usecases/HandleScheduledEventUseCase.js.map +1 -1
  27. package/bin/domain/usecases/IssueRejectionEvaluator.js +8 -1
  28. package/bin/domain/usecases/IssueRejectionEvaluator.js.map +1 -1
  29. package/bin/domain/usecases/NotifyFinishedIssuePreparationUseCase.js +5 -1
  30. package/bin/domain/usecases/NotifyFinishedIssuePreparationUseCase.js.map +1 -1
  31. package/bin/domain/usecases/RevertOrphanedPreparationUseCase.js +1 -1
  32. package/bin/domain/usecases/RevertOrphanedPreparationUseCase.js.map +1 -1
  33. package/bin/domain/usecases/SetWorkflowManagementIssueToStoryUseCase.js +32 -1
  34. package/bin/domain/usecases/SetWorkflowManagementIssueToStoryUseCase.js.map +1 -1
  35. package/bin/domain/usecases/StartPreparationUseCase.js +91 -12
  36. package/bin/domain/usecases/StartPreparationUseCase.js.map +1 -1
  37. package/package.json +1 -4
  38. package/src/adapter/entry-points/cli/index.test.ts +16 -16
  39. package/src/adapter/entry-points/cli/index.ts +8 -11
  40. package/src/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.test.ts +2 -55
  41. package/src/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.ts +1 -11
  42. package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.test.ts +6 -56
  43. package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +7 -11
  44. package/src/adapter/entry-points/handlers/rotationOrderFileWriter.test.ts +177 -0
  45. package/src/adapter/entry-points/handlers/rotationOrderFileWriter.ts +20 -0
  46. package/src/adapter/entry-points/handlers/situationFileWriter.test.ts +36 -0
  47. package/src/adapter/entry-points/handlers/situationFileWriter.ts +8 -0
  48. package/src/adapter/proxy/TokenListLoader.test.ts +50 -1
  49. package/src/adapter/proxy/TokenListLoader.ts +25 -5
  50. package/src/adapter/proxy/proxyEntry.test.ts +270 -1
  51. package/src/adapter/proxy/proxyEntry.ts +2 -1
  52. package/src/adapter/repositories/BaseGitHubRepository.test.ts +1 -186
  53. package/src/adapter/repositories/BaseGitHubRepository.ts +1 -139
  54. package/src/adapter/repositories/GraphqlProjectRepository.errorHandling.test.ts +0 -1
  55. package/src/adapter/repositories/GraphqlProjectRepository.fetchProjectId.test.ts +4 -1
  56. package/src/adapter/repositories/ProxyClaudeTokenUsageRepository.test.ts +60 -19
  57. package/src/adapter/repositories/ProxyClaudeTokenUsageRepository.ts +6 -4
  58. package/src/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.ts +23 -13
  59. package/src/adapter/repositories/issue/ApiV3IssueRepository.test.ts +0 -1
  60. package/src/adapter/repositories/issue/GraphqlProjectItemRepository.test.ts +0 -8
  61. package/src/adapter/repositories/issue/RestIssueRepository.test.ts +0 -1
  62. package/src/domain/entities/ClaudeTokenUsage.ts +1 -0
  63. package/src/domain/usecases/HandleScheduledEventUseCase.test.ts +4 -0
  64. package/src/domain/usecases/HandleScheduledEventUseCase.ts +20 -5
  65. package/src/domain/usecases/IssueRejectionEvaluator.test.ts +153 -0
  66. package/src/domain/usecases/IssueRejectionEvaluator.ts +8 -0
  67. package/src/domain/usecases/NotifyFinishedIssuePreparationUseCase.test.ts +175 -31
  68. package/src/domain/usecases/NotifyFinishedIssuePreparationUseCase.ts +7 -1
  69. package/src/domain/usecases/RevertNotReadyAwaitingQualityCheckUseCase.test.ts +32 -0
  70. package/src/domain/usecases/RevertOrphanedPreparationUseCase.test.ts +39 -5
  71. package/src/domain/usecases/RevertOrphanedPreparationUseCase.ts +1 -1
  72. package/src/domain/usecases/SetWorkflowManagementIssueToStoryUseCase.test.ts +139 -20
  73. package/src/domain/usecases/SetWorkflowManagementIssueToStoryUseCase.ts +62 -2
  74. package/src/domain/usecases/StartPreparationUseCase.test.ts +404 -21
  75. package/src/domain/usecases/StartPreparationUseCase.ts +152 -16
  76. package/src/domain/usecases/adapter-interfaces/IssueRepository.ts +16 -0
  77. package/types/adapter/entry-points/cli/index.d.ts.map +1 -1
  78. package/types/adapter/entry-points/handlers/GetStoryObjectMapUseCaseHandler.d.ts.map +1 -1
  79. package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
  80. package/types/adapter/entry-points/handlers/rotationOrderFileWriter.d.ts +3 -0
  81. package/types/adapter/entry-points/handlers/rotationOrderFileWriter.d.ts.map +1 -0
  82. package/types/adapter/entry-points/handlers/situationFileWriter.d.ts +1 -0
  83. package/types/adapter/entry-points/handlers/situationFileWriter.d.ts.map +1 -1
  84. package/types/adapter/proxy/TokenListLoader.d.ts +5 -0
  85. package/types/adapter/proxy/TokenListLoader.d.ts.map +1 -1
  86. package/types/adapter/proxy/proxyEntry.d.ts +2 -1
  87. package/types/adapter/proxy/proxyEntry.d.ts.map +1 -1
  88. package/types/adapter/repositories/BaseGitHubRepository.d.ts +1 -23
  89. package/types/adapter/repositories/BaseGitHubRepository.d.ts.map +1 -1
  90. package/types/adapter/repositories/ProxyClaudeTokenUsageRepository.d.ts.map +1 -1
  91. package/types/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.d.ts +14 -5
  92. package/types/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.d.ts.map +1 -1
  93. package/types/domain/entities/ClaudeTokenUsage.d.ts +1 -0
  94. package/types/domain/entities/ClaudeTokenUsage.d.ts.map +1 -1
  95. package/types/domain/usecases/HandleScheduledEventUseCase.d.ts +5 -2
  96. package/types/domain/usecases/HandleScheduledEventUseCase.d.ts.map +1 -1
  97. package/types/domain/usecases/IssueRejectionEvaluator.d.ts +1 -1
  98. package/types/domain/usecases/IssueRejectionEvaluator.d.ts.map +1 -1
  99. package/types/domain/usecases/NotifyFinishedIssuePreparationUseCase.d.ts.map +1 -1
  100. package/types/domain/usecases/SetWorkflowManagementIssueToStoryUseCase.d.ts +5 -2
  101. package/types/domain/usecases/SetWorkflowManagementIssueToStoryUseCase.d.ts.map +1 -1
  102. package/types/domain/usecases/StartPreparationUseCase.d.ts +15 -1
  103. package/types/domain/usecases/StartPreparationUseCase.d.ts.map +1 -1
  104. package/types/domain/usecases/adapter-interfaces/IssueRepository.d.ts +14 -0
  105. package/types/domain/usecases/adapter-interfaces/IssueRepository.d.ts.map +1 -1
  106. package/bin/adapter/repositories/issue/CheerioIssueRepository.js +0 -136
  107. package/bin/adapter/repositories/issue/CheerioIssueRepository.js.map +0 -1
  108. package/bin/adapter/repositories/issue/InternalGraphqlIssueRepository.js +0 -1606
  109. package/bin/adapter/repositories/issue/InternalGraphqlIssueRepository.js.map +0 -1
  110. package/src/adapter/repositories/issue/CheerioIssueRepository.test.ts +0 -6552
  111. package/src/adapter/repositories/issue/CheerioIssueRepository.ts +0 -142
  112. package/src/adapter/repositories/issue/InternalGraphqlIssueRepository.test.ts +0 -118
  113. package/src/adapter/repositories/issue/InternalGraphqlIssueRepository.ts +0 -584
  114. package/types/adapter/repositories/issue/CheerioIssueRepository.d.ts +0 -40
  115. package/types/adapter/repositories/issue/CheerioIssueRepository.d.ts.map +0 -1
  116. package/types/adapter/repositories/issue/InternalGraphqlIssueRepository.d.ts +0 -220
  117. package/types/adapter/repositories/issue/InternalGraphqlIssueRepository.d.ts.map +0 -1
@@ -1,1606 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.InternalGraphqlIssueRepository = void 0;
40
- const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString"));
41
- const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport"));
42
- const ky_1 = __importDefault(require("ky"));
43
- const BaseGitHubRepository_1 = require("../BaseGitHubRepository");
44
- const typia_1 = __importDefault(require("typia"));
45
- class InternalGraphqlIssueRepository extends BaseGitHubRepository_1.BaseGitHubRepository {
46
- constructor() {
47
- super(...arguments);
48
- this.getFrontTimelineItems = async (issueUrl, cursor, issueId, maxCount = 9999) => {
49
- const query = 'f6ff036f8e215bd07d00516664e8725c';
50
- const callQuery = async (query, count, cursor, issueId) => {
51
- const requestBody = {
52
- query: query,
53
- variables: {
54
- cursor: cursor || '',
55
- count: count,
56
- id: issueId,
57
- },
58
- };
59
- const bodyParam = encodeURIComponent(JSON.stringify(requestBody));
60
- const url = `https://github.com/_graphql?body=${bodyParam}`;
61
- const headers = {
62
- accept: '*/*',
63
- 'accept-language': 'en-US,en;q=0.9,ja;q=0.8',
64
- 'cache-Control': 'no-cache',
65
- referer: issueUrl,
66
- 'sec-ch-ua': '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',
67
- 'sec-ch-ua-mobile': '?0',
68
- 'sec-ch-ua-platform': '"Linux"',
69
- 'sec-fetch-dest': 'empty',
70
- 'sec-fetch-mode': 'cors',
71
- 'sec-fetch-site': 'same-origin',
72
- 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
73
- 'x-requested-with': 'XMLHttpRequest',
74
- cookie: await this.getCookie(),
75
- };
76
- const maxRetries = 10;
77
- const getRetryDelay = (attempt) => {
78
- const baseDelay = 5000;
79
- return baseDelay * Math.pow(2, attempt);
80
- };
81
- for (let i = 0; i < maxRetries; i++) {
82
- try {
83
- console.log(url);
84
- const kyResponse = await ky_1.default.get(url, {
85
- headers: headers,
86
- throwHttpErrors: false,
87
- });
88
- if (!kyResponse.ok) {
89
- throw new Error(`HTTP error ${kyResponse.status}`);
90
- }
91
- const rawResponse = await kyResponse.json();
92
- if (!rawResponse?.data?.node?.frontTimelineItems) {
93
- throw new Error(`No frontTimelineItems found. URL: ${issueUrl}, Response: ${JSON.stringify(rawResponse)}`);
94
- }
95
- await new Promise((resolve) => setTimeout(resolve, 2000));
96
- return rawResponse.data.node.frontTimelineItems;
97
- }
98
- catch (e) {
99
- const statusCode = e instanceof Error && e.message.startsWith('HTTP error ')
100
- ? parseInt(e.message.replace('HTTP error ', ''), 10)
101
- : null;
102
- const isRetryableError = statusCode !== null && [500, 502, 503, 504].includes(statusCode);
103
- if (i === maxRetries - 1) {
104
- throw e;
105
- }
106
- const delay = getRetryDelay(i);
107
- console.log(`Request failed (attempt ${i + 1}/${maxRetries}). ${isRetryableError ? `Status: ${statusCode}. ` : ''}Retrying in ${delay / 1000}s...`);
108
- await new Promise((resolve) => setTimeout(resolve, delay));
109
- }
110
- }
111
- throw new Error('Unreachable');
112
- };
113
- const frontTimelineItems = [];
114
- let nextCursor = cursor;
115
- const maxCountPerRequest = 250;
116
- while (frontTimelineItems.length < maxCount) {
117
- const response = await callQuery(query, maxCountPerRequest, nextCursor, issueId);
118
- for (const edge of response.edges) {
119
- frontTimelineItems.push(edge);
120
- if (frontTimelineItems.length >= maxCount) {
121
- return frontTimelineItems;
122
- }
123
- }
124
- nextCursor = response.pageInfo.endCursor;
125
- if (!response.pageInfo.hasNextPage) {
126
- break;
127
- }
128
- }
129
- return frontTimelineItems;
130
- };
131
- this.getIssueFromBetaFeatureView = async (issueUrl, html) => {
132
- const pattern = /<script type="application\/json" data-target="react-app\.embeddedData">([\s\S]*?)<\/script>/;
133
- const match = html.match(pattern);
134
- if (!match || !match[1]) {
135
- throw new Error(`No script content found. URL: ${issueUrl}, HTML: ${html}`);
136
- }
137
- const scriptContent = match[1];
138
- if (!scriptContent) {
139
- throw new Error('No script content found');
140
- }
141
- const data = JSON.parse(scriptContent);
142
- const isValidStructure = (d) => {
143
- return (typeof d === 'object' &&
144
- d !== null &&
145
- 'payload' in d &&
146
- typeof d.payload === 'object' &&
147
- d.payload !== null &&
148
- 'preloadedQueries' in d.payload &&
149
- Array.isArray(d.payload.preloadedQueries) &&
150
- d.payload.preloadedQueries.length > 0);
151
- };
152
- if (!(() => { const _io0 = input => "object" === typeof input.payload && null !== input.payload && _io1(input.payload) && true && (undefined === input.appPayload || "object" === typeof input.appPayload && null !== input.appPayload && false === Array.isArray(input.appPayload) && _io50(input.appPayload)); const _io1 = input => (undefined === input.preloaded_records || "object" === typeof input.preloaded_records && null !== input.preloaded_records && false === Array.isArray(input.preloaded_records) && _io2(input.preloaded_records)) && (Array.isArray(input.preloadedQueries) && (input.preloadedQueries.length === 1 && ("object" === typeof input.preloadedQueries[0] && null !== input.preloadedQueries[0] && _io3(input.preloadedQueries[0])))) && (undefined === input.preloadedSubscriptions || "object" === typeof input.preloadedSubscriptions && null !== input.preloadedSubscriptions && false === Array.isArray(input.preloadedSubscriptions) && _io44(input.preloadedSubscriptions)); const _io2 = input => Object.keys(input).every(key => {
153
- const value = input[key];
154
- if (undefined === value)
155
- return true;
156
- return true;
157
- }); const _io3 = input => "string" === typeof input.queryId && "string" === typeof input.queryName && ("object" === typeof input.variables && null !== input.variables && _io4(input.variables)) && ("object" === typeof input.result && null !== input.result && _io5(input.result)) && "number" === typeof input.timestamp; const _io4 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.count || "number" === typeof input.count) && "number" === typeof input.number && "string" === typeof input.owner && "string" === typeof input.repo; const _io5 = input => "object" === typeof input.data && null !== input.data && _io6(input.data); const _io6 = input => "object" === typeof input.repository && null !== input.repository && _io7(input.repository) && ("object" === typeof input.safeViewer && null !== input.safeViewer && _io43(input.safeViewer)); const _io7 = input => "boolean" === typeof input.isOwnerEnterpriseManaged && ("object" === typeof input.issue && null !== input.issue && _io8(input.issue)) && "string" === typeof input.id; const _io8 = input => "string" === typeof input.id && "string" === typeof input.updatedAt && "string" === typeof input.title && "number" === typeof input.number && ("object" === typeof input.repository && null !== input.repository && _io9(input.repository)) && "string" === typeof input.titleHTML && "string" === typeof input.url && "boolean" === typeof input.viewerCanUpdateNext && (null === input.issueType || "object" === typeof input.issueType && null !== input.issueType && _io16(input.issueType)) && ("OPEN" === input.state || "CLOSED" === input.state) && (null === input.stateReason || "string" === typeof input.stateReason) && ("object" === typeof input.linkedPullRequests && null !== input.linkedPullRequests && _io17(input.linkedPullRequests)) && ("object" === typeof input.subIssuesSummary && null !== input.subIssuesSummary && _io18(input.subIssuesSummary)) && "string" === typeof input.__isLabelable && ("object" === typeof input.labels && null !== input.labels && _io19(input.labels)) && "string" === typeof input.__isNode && "number" === typeof input.databaseId && "boolean" === typeof input.viewerDidAuthor && "boolean" === typeof input.locked && ("object" === typeof input.author && null !== input.author && _io23(input.author)) && "string" === typeof input.__isComment && "string" === typeof input.body && "string" === typeof input.bodyHTML && "string" === typeof input.bodyVersion && "string" === typeof input.createdAt && "string" === typeof input.__isReactable && (Array.isArray(input.reactionGroups) && input.reactionGroups.every(elem => "object" === typeof elem && null !== elem && _io24(elem))) && "boolean" === typeof input.viewerCanUpdateMetadata && "boolean" === typeof input.viewerCanComment && "boolean" === typeof input.viewerCanAssign && "boolean" === typeof input.viewerCanLabel && "string" === typeof input.__isIssueOrPullRequest && (undefined === input.projectItemsNext || "object" === typeof input.projectItemsNext && null !== input.projectItemsNext && _io26(input.projectItemsNext)) && "boolean" === typeof input.viewerCanSetMilestone && "boolean" === typeof input.isPinned && "boolean" === typeof input.viewerCanDelete && "boolean" === typeof input.viewerCanTransfer && "boolean" === typeof input.viewerCanConvertToDiscussion && "boolean" === typeof input.viewerCanLock && "boolean" === typeof input.viewerCanType && ("object" === typeof input.frontTimelineItems && null !== input.frontTimelineItems && _io34(input.frontTimelineItems)) && ("object" === typeof input.backTimelineItems && null !== input.backTimelineItems && _io38(input.backTimelineItems)) && ("object" === typeof input.assignedActors && null !== input.assignedActors && _io41(input.assignedActors)); const _io9 = input => "string" === typeof input.nameWithOwner && "string" === typeof input.id && "string" === typeof input.name && ("object" === typeof input.owner && null !== input.owner && _io10(input.owner)) && "boolean" === typeof input.isArchived && "boolean" === typeof input.isPrivate && "number" === typeof input.databaseId && "boolean" === typeof input.slashCommandsEnabled && "boolean" === typeof input.viewerCanInteract && "string" === typeof input.viewerInteractionLimitReasonHTML && (undefined === input.planFeatures || "object" === typeof input.planFeatures && null !== input.planFeatures && _io11(input.planFeatures)) && "string" === typeof input.visibility && ("object" === typeof input.pinnedIssues && null !== input.pinnedIssues && _io12(input.pinnedIssues)) && "boolean" === typeof input.viewerCanPinIssues && (null === input.issueTypes || "object" === typeof input.issueTypes && null !== input.issueTypes && _io13(input.issueTypes)); const _io10 = input => ("User" === input.__typename || "Organization" === input.__typename) && "string" === typeof input.login && "string" === typeof input.id && "string" === typeof input.url; const _io11 = input => "number" === typeof input.maximumAssignees; const _io12 = input => "number" === typeof input.totalCount; const _io13 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io14(elem)); const _io14 = input => "object" === typeof input.node && null !== input.node && _io15(input.node); const _io15 = input => "string" === typeof input.id; const _io16 = input => "string" === typeof input.name && "string" === typeof input.color && "string" === typeof input.id && (undefined === input.isEnabled || "boolean" === typeof input.isEnabled) && (undefined === input.description || "string" === typeof input.description); const _io17 = input => Array.isArray(input.nodes); const _io18 = input => "number" === typeof input.total && "number" === typeof input.completed; const _io19 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io20(elem)) && ("object" === typeof input.pageInfo && null !== input.pageInfo && _io22(input.pageInfo)); const _io20 = input => "object" === typeof input.node && null !== input.node && _io21(input.node) && "string" === typeof input.cursor; const _io21 = input => "string" === typeof input.id && "string" === typeof input.color && "string" === typeof input.name && "string" === typeof input.nameHTML && (null === input.description || "string" === typeof input.description) && "string" === typeof input.url && "string" === typeof input.__typename; const _io22 = input => (null === input.endCursor || "string" === typeof input.endCursor) && "boolean" === typeof input.hasNextPage; const _io23 = input => "string" === typeof input.__typename && "string" === typeof input.__isActor && "string" === typeof input.login && "string" === typeof input.id && "string" === typeof input.profileUrl && "string" === typeof input.avatarUrl; const _io24 = input => "string" === typeof input.content && "boolean" === typeof input.viewerHasReacted && ("object" === typeof input.reactors && null !== input.reactors && _io25(input.reactors)); const _io25 = input => "number" === typeof input.totalCount && Array.isArray(input.nodes); const _io26 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io27(elem)) && ("object" === typeof input.pageInfo && null !== input.pageInfo && _io33(input.pageInfo)); const _io27 = input => "object" === typeof input.node && null !== input.node && _io28(input.node) && "string" === typeof input.cursor; const _io28 = input => "string" === typeof input.id && "boolean" === typeof input.isArchived && ("object" === typeof input.project && null !== input.project && _io29(input.project)) && (null === input.fieldValueByName || "object" === typeof input.fieldValueByName && null !== input.fieldValueByName && _io32(input.fieldValueByName)) && "string" === typeof input.__typename; const _io29 = input => "string" === typeof input.id && "string" === typeof input.title && "boolean" === typeof input.template && "boolean" === typeof input.viewerCanUpdate && "string" === typeof input.url && ("object" === typeof input.field && null !== input.field && _io30(input.field)) && "boolean" === typeof input.closed && "number" === typeof input.number && "boolean" === typeof input.hasReachedItemsLimit && (undefined === input.__typename || "string" === typeof input.__typename); const _io30 = input => "string" === typeof input.__typename && "string" === typeof input.id && "string" === typeof input.name && (Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && _io31(elem))) && "string" === typeof input.__isNode; const _io31 = input => "string" === typeof input.id && "string" === typeof input.optionId && "string" === typeof input.name && "string" === typeof input.nameHTML && "string" === typeof input.color && "string" === typeof input.descriptionHTML && "string" === typeof input.description; const _io32 = input => "string" === typeof input.__typename && "string" === typeof input.id && "string" === typeof input.optionId && "string" === typeof input.name && "string" === typeof input.nameHTML && "string" === typeof input.color && "string" === typeof input.__isNode; const _io33 = input => (null === input.endCursor || "string" === typeof input.endCursor) && "boolean" === typeof input.hasNextPage; const _io34 = input => "object" === typeof input.pageInfo && null !== input.pageInfo && _io35(input.pageInfo) && "number" === typeof input.totalCount && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io36(elem))); const _io35 = input => "boolean" === typeof input.hasNextPage && (null === input.endCursor || "string" === typeof input.endCursor); const _io36 = input => (null === input.node || "object" === typeof input.node && null !== input.node && _io37(input.node)) && "string" === typeof input.cursor; const _io37 = input => "string" === typeof input.id && "string" === typeof input.__typename; const _io38 = input => "object" === typeof input.pageInfo && null !== input.pageInfo && _io39(input.pageInfo) && "number" === typeof input.totalCount && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io40(elem))); const _io39 = input => "boolean" === typeof input.hasPreviousPage && (null === input.startCursor || "string" === typeof input.startCursor); const _io40 = input => (null === input.node || "object" === typeof input.node && null !== input.node && _io37(input.node)) && "string" === typeof input.cursor; const _io41 = input => Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io42(elem)); const _io42 = input => "string" === typeof input.__typename && "string" === typeof input.__isActor && "string" === typeof input.id && "string" === typeof input.login && (null === input.name || "string" === typeof input.name) && "string" === typeof input.profileResourcePath && "string" === typeof input.avatarUrl && "string" === typeof input.__isNode; const _io43 = input => "boolean" === typeof input.isEnterpriseManagedUser && (undefined !== input.enterpriseManagedEnterpriseId && null === input.enterpriseManagedEnterpriseId) && "string" === typeof input.login && "string" === typeof input.id && "string" === typeof input.avatarUrl && "string" === typeof input.__isActor && "string" === typeof input.__typename && (null === input.name || "string" === typeof input.name) && "string" === typeof input.profileResourcePath; const _io44 = input => Object.keys(input).every(key => {
158
- const value = input[key];
159
- if (undefined === value)
160
- return true;
161
- return "object" === typeof value && null !== value && false === Array.isArray(value) && _io45(value);
162
- }); const _io45 = input => Object.keys(input).every(key => {
163
- const value = input[key];
164
- if (undefined === value)
165
- return true;
166
- return "object" === typeof value && null !== value && _io46(value);
167
- }); const _io46 = input => "object" === typeof input.response && null !== input.response && _io47(input.response) && "string" === typeof input.subscriptionId; const _io47 = input => "object" === typeof input.data && null !== input.data && _io48(input.data); const _io48 = input => "object" === typeof input.issueUpdated && null !== input.issueUpdated && _io49(input.issueUpdated); const _io49 = input => true && true && true && true && true && true && true && true && true && true && true && true && true && true && true; const _io50 = input => (undefined === input.initial_view_content || "object" === typeof input.initial_view_content && null !== input.initial_view_content && false === Array.isArray(input.initial_view_content) && _io51(input.initial_view_content)) && (undefined === input.current_user || "object" === typeof input.current_user && null !== input.current_user && _io52(input.current_user)) && (undefined === input.current_user_settings || "object" === typeof input.current_user_settings && null !== input.current_user_settings && false === Array.isArray(input.current_user_settings) && _io53(input.current_user_settings)) && (undefined === input.paste_url_link_as_plain_text || "boolean" === typeof input.paste_url_link_as_plain_text) && (undefined === input.base_avatar_url || "string" === typeof input.base_avatar_url) && (undefined === input.help_url || "string" === typeof input.help_url) && true && true && (undefined === input.multi_tenant || "boolean" === typeof input.multi_tenant) && (undefined === input.tracing || "boolean" === typeof input.tracing) && (undefined === input.tracing_flamegraph || "boolean" === typeof input.tracing_flamegraph) && (undefined === input.catalog_service || "string" === typeof input.catalog_service) && (undefined === input.scoped_repository || "object" === typeof input.scoped_repository && null !== input.scoped_repository && _io54(input.scoped_repository)) && (undefined === input.semantic_search_enrolled || "boolean" === typeof input.semantic_search_enrolled) && true && true && (undefined === input.enabled_features || "object" === typeof input.enabled_features && null !== input.enabled_features && false === Array.isArray(input.enabled_features) && _io55(input.enabled_features)) && Object.keys(input).every(key => {
168
- if (["initial_view_content", "current_user", "current_user_settings", "paste_url_link_as_plain_text", "base_avatar_url", "help_url", "sso_organizations", "current_sso_orgs_match_dismissed_cookie", "multi_tenant", "tracing", "tracing_flamegraph", "catalog_service", "scoped_repository", "semantic_search_enrolled", "semantic_search_feedback_url", "copilot_api_url", "enabled_features"].some(prop => key === prop))
169
- return true;
170
- const value = input[key];
171
- if (undefined === value)
172
- return true;
173
- return true;
174
- }); const _io51 = input => true && (undefined === input.can_edit_view || "boolean" === typeof input.can_edit_view) && Object.keys(input).every(key => {
175
- if (["team_id", "can_edit_view"].some(prop => key === prop))
176
- return true;
177
- const value = input[key];
178
- if (undefined === value)
179
- return true;
180
- return true;
181
- }); const _io52 = input => "string" === typeof input.id && "string" === typeof input.login && "string" === typeof input.avatarUrl && "boolean" === typeof input.is_staff && "boolean" === typeof input.is_emu && true && Object.keys(input).every(key => {
182
- if (["id", "login", "avatarUrl", "is_staff", "is_emu", "name"].some(prop => key === prop))
183
- return true;
184
- const value = input[key];
185
- if (undefined === value)
186
- return true;
187
- return true;
188
- }); const _io53 = input => (undefined === input.use_monospace_font || "boolean" === typeof input.use_monospace_font) && (undefined === input.use_single_key_shortcut || "boolean" === typeof input.use_single_key_shortcut) && (undefined === input.preferred_emoji_skin_tone || "number" === typeof input.preferred_emoji_skin_tone) && (undefined === input.copilot_show_functionality || "boolean" === typeof input.copilot_show_functionality) && Object.keys(input).every(key => {
189
- if (["use_monospace_font", "use_single_key_shortcut", "preferred_emoji_skin_tone", "copilot_show_functionality"].some(prop => key === prop))
190
- return true;
191
- const value = input[key];
192
- if (undefined === value)
193
- return true;
194
- return true;
195
- }); const _io54 = input => "string" === typeof input.id && "string" === typeof input.owner && "string" === typeof input.name && "boolean" === typeof input.is_archived && Object.keys(input).every(key => {
196
- if (["id", "owner", "name", "is_archived"].some(prop => key === prop))
197
- return true;
198
- const value = input[key];
199
- if (undefined === value)
200
- return true;
201
- return true;
202
- }); const _io55 = input => Object.keys(input).every(key => {
203
- const value = input[key];
204
- if (undefined === value)
205
- return true;
206
- return "boolean" === typeof value;
207
- }); return input => "object" === typeof input && null !== input && _io0(input); })()(data)) {
208
- if (!isValidStructure(data)) {
209
- const validateResult = (() => { const _io0 = input => "object" === typeof input.payload && null !== input.payload && _io1(input.payload) && true && (undefined === input.appPayload || "object" === typeof input.appPayload && null !== input.appPayload && false === Array.isArray(input.appPayload) && _io50(input.appPayload)); const _io1 = input => (undefined === input.preloaded_records || "object" === typeof input.preloaded_records && null !== input.preloaded_records && false === Array.isArray(input.preloaded_records) && _io2(input.preloaded_records)) && (Array.isArray(input.preloadedQueries) && (input.preloadedQueries.length === 1 && ("object" === typeof input.preloadedQueries[0] && null !== input.preloadedQueries[0] && _io3(input.preloadedQueries[0])))) && (undefined === input.preloadedSubscriptions || "object" === typeof input.preloadedSubscriptions && null !== input.preloadedSubscriptions && false === Array.isArray(input.preloadedSubscriptions) && _io44(input.preloadedSubscriptions)); const _io2 = input => Object.keys(input).every(key => {
210
- const value = input[key];
211
- if (undefined === value)
212
- return true;
213
- return true;
214
- }); const _io3 = input => "string" === typeof input.queryId && "string" === typeof input.queryName && ("object" === typeof input.variables && null !== input.variables && _io4(input.variables)) && ("object" === typeof input.result && null !== input.result && _io5(input.result)) && "number" === typeof input.timestamp; const _io4 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.count || "number" === typeof input.count) && "number" === typeof input.number && "string" === typeof input.owner && "string" === typeof input.repo; const _io5 = input => "object" === typeof input.data && null !== input.data && _io6(input.data); const _io6 = input => "object" === typeof input.repository && null !== input.repository && _io7(input.repository) && ("object" === typeof input.safeViewer && null !== input.safeViewer && _io43(input.safeViewer)); const _io7 = input => "boolean" === typeof input.isOwnerEnterpriseManaged && ("object" === typeof input.issue && null !== input.issue && _io8(input.issue)) && "string" === typeof input.id; const _io8 = input => "string" === typeof input.id && "string" === typeof input.updatedAt && "string" === typeof input.title && "number" === typeof input.number && ("object" === typeof input.repository && null !== input.repository && _io9(input.repository)) && "string" === typeof input.titleHTML && "string" === typeof input.url && "boolean" === typeof input.viewerCanUpdateNext && (null === input.issueType || "object" === typeof input.issueType && null !== input.issueType && _io16(input.issueType)) && ("OPEN" === input.state || "CLOSED" === input.state) && (null === input.stateReason || "string" === typeof input.stateReason) && ("object" === typeof input.linkedPullRequests && null !== input.linkedPullRequests && _io17(input.linkedPullRequests)) && ("object" === typeof input.subIssuesSummary && null !== input.subIssuesSummary && _io18(input.subIssuesSummary)) && "string" === typeof input.__isLabelable && ("object" === typeof input.labels && null !== input.labels && _io19(input.labels)) && "string" === typeof input.__isNode && "number" === typeof input.databaseId && "boolean" === typeof input.viewerDidAuthor && "boolean" === typeof input.locked && ("object" === typeof input.author && null !== input.author && _io23(input.author)) && "string" === typeof input.__isComment && "string" === typeof input.body && "string" === typeof input.bodyHTML && "string" === typeof input.bodyVersion && "string" === typeof input.createdAt && "string" === typeof input.__isReactable && (Array.isArray(input.reactionGroups) && input.reactionGroups.every(elem => "object" === typeof elem && null !== elem && _io24(elem))) && "boolean" === typeof input.viewerCanUpdateMetadata && "boolean" === typeof input.viewerCanComment && "boolean" === typeof input.viewerCanAssign && "boolean" === typeof input.viewerCanLabel && "string" === typeof input.__isIssueOrPullRequest && (undefined === input.projectItemsNext || "object" === typeof input.projectItemsNext && null !== input.projectItemsNext && _io26(input.projectItemsNext)) && "boolean" === typeof input.viewerCanSetMilestone && "boolean" === typeof input.isPinned && "boolean" === typeof input.viewerCanDelete && "boolean" === typeof input.viewerCanTransfer && "boolean" === typeof input.viewerCanConvertToDiscussion && "boolean" === typeof input.viewerCanLock && "boolean" === typeof input.viewerCanType && ("object" === typeof input.frontTimelineItems && null !== input.frontTimelineItems && _io34(input.frontTimelineItems)) && ("object" === typeof input.backTimelineItems && null !== input.backTimelineItems && _io38(input.backTimelineItems)) && ("object" === typeof input.assignedActors && null !== input.assignedActors && _io41(input.assignedActors)); const _io9 = input => "string" === typeof input.nameWithOwner && "string" === typeof input.id && "string" === typeof input.name && ("object" === typeof input.owner && null !== input.owner && _io10(input.owner)) && "boolean" === typeof input.isArchived && "boolean" === typeof input.isPrivate && "number" === typeof input.databaseId && "boolean" === typeof input.slashCommandsEnabled && "boolean" === typeof input.viewerCanInteract && "string" === typeof input.viewerInteractionLimitReasonHTML && (undefined === input.planFeatures || "object" === typeof input.planFeatures && null !== input.planFeatures && _io11(input.planFeatures)) && "string" === typeof input.visibility && ("object" === typeof input.pinnedIssues && null !== input.pinnedIssues && _io12(input.pinnedIssues)) && "boolean" === typeof input.viewerCanPinIssues && (null === input.issueTypes || "object" === typeof input.issueTypes && null !== input.issueTypes && _io13(input.issueTypes)); const _io10 = input => ("User" === input.__typename || "Organization" === input.__typename) && "string" === typeof input.login && "string" === typeof input.id && "string" === typeof input.url; const _io11 = input => "number" === typeof input.maximumAssignees; const _io12 = input => "number" === typeof input.totalCount; const _io13 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io14(elem)); const _io14 = input => "object" === typeof input.node && null !== input.node && _io15(input.node); const _io15 = input => "string" === typeof input.id; const _io16 = input => "string" === typeof input.name && "string" === typeof input.color && "string" === typeof input.id && (undefined === input.isEnabled || "boolean" === typeof input.isEnabled) && (undefined === input.description || "string" === typeof input.description); const _io17 = input => Array.isArray(input.nodes); const _io18 = input => "number" === typeof input.total && "number" === typeof input.completed; const _io19 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io20(elem)) && ("object" === typeof input.pageInfo && null !== input.pageInfo && _io22(input.pageInfo)); const _io20 = input => "object" === typeof input.node && null !== input.node && _io21(input.node) && "string" === typeof input.cursor; const _io21 = input => "string" === typeof input.id && "string" === typeof input.color && "string" === typeof input.name && "string" === typeof input.nameHTML && (null === input.description || "string" === typeof input.description) && "string" === typeof input.url && "string" === typeof input.__typename; const _io22 = input => (null === input.endCursor || "string" === typeof input.endCursor) && "boolean" === typeof input.hasNextPage; const _io23 = input => "string" === typeof input.__typename && "string" === typeof input.__isActor && "string" === typeof input.login && "string" === typeof input.id && "string" === typeof input.profileUrl && "string" === typeof input.avatarUrl; const _io24 = input => "string" === typeof input.content && "boolean" === typeof input.viewerHasReacted && ("object" === typeof input.reactors && null !== input.reactors && _io25(input.reactors)); const _io25 = input => "number" === typeof input.totalCount && Array.isArray(input.nodes); const _io26 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io27(elem)) && ("object" === typeof input.pageInfo && null !== input.pageInfo && _io33(input.pageInfo)); const _io27 = input => "object" === typeof input.node && null !== input.node && _io28(input.node) && "string" === typeof input.cursor; const _io28 = input => "string" === typeof input.id && "boolean" === typeof input.isArchived && ("object" === typeof input.project && null !== input.project && _io29(input.project)) && (null === input.fieldValueByName || "object" === typeof input.fieldValueByName && null !== input.fieldValueByName && _io32(input.fieldValueByName)) && "string" === typeof input.__typename; const _io29 = input => "string" === typeof input.id && "string" === typeof input.title && "boolean" === typeof input.template && "boolean" === typeof input.viewerCanUpdate && "string" === typeof input.url && ("object" === typeof input.field && null !== input.field && _io30(input.field)) && "boolean" === typeof input.closed && "number" === typeof input.number && "boolean" === typeof input.hasReachedItemsLimit && (undefined === input.__typename || "string" === typeof input.__typename); const _io30 = input => "string" === typeof input.__typename && "string" === typeof input.id && "string" === typeof input.name && (Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && _io31(elem))) && "string" === typeof input.__isNode; const _io31 = input => "string" === typeof input.id && "string" === typeof input.optionId && "string" === typeof input.name && "string" === typeof input.nameHTML && "string" === typeof input.color && "string" === typeof input.descriptionHTML && "string" === typeof input.description; const _io32 = input => "string" === typeof input.__typename && "string" === typeof input.id && "string" === typeof input.optionId && "string" === typeof input.name && "string" === typeof input.nameHTML && "string" === typeof input.color && "string" === typeof input.__isNode; const _io33 = input => (null === input.endCursor || "string" === typeof input.endCursor) && "boolean" === typeof input.hasNextPage; const _io34 = input => "object" === typeof input.pageInfo && null !== input.pageInfo && _io35(input.pageInfo) && "number" === typeof input.totalCount && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io36(elem))); const _io35 = input => "boolean" === typeof input.hasNextPage && (null === input.endCursor || "string" === typeof input.endCursor); const _io36 = input => (null === input.node || "object" === typeof input.node && null !== input.node && _io37(input.node)) && "string" === typeof input.cursor; const _io37 = input => "string" === typeof input.id && "string" === typeof input.__typename; const _io38 = input => "object" === typeof input.pageInfo && null !== input.pageInfo && _io39(input.pageInfo) && "number" === typeof input.totalCount && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io40(elem))); const _io39 = input => "boolean" === typeof input.hasPreviousPage && (null === input.startCursor || "string" === typeof input.startCursor); const _io40 = input => (null === input.node || "object" === typeof input.node && null !== input.node && _io37(input.node)) && "string" === typeof input.cursor; const _io41 = input => Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io42(elem)); const _io42 = input => "string" === typeof input.__typename && "string" === typeof input.__isActor && "string" === typeof input.id && "string" === typeof input.login && (null === input.name || "string" === typeof input.name) && "string" === typeof input.profileResourcePath && "string" === typeof input.avatarUrl && "string" === typeof input.__isNode; const _io43 = input => "boolean" === typeof input.isEnterpriseManagedUser && (undefined !== input.enterpriseManagedEnterpriseId && null === input.enterpriseManagedEnterpriseId) && "string" === typeof input.login && "string" === typeof input.id && "string" === typeof input.avatarUrl && "string" === typeof input.__isActor && "string" === typeof input.__typename && (null === input.name || "string" === typeof input.name) && "string" === typeof input.profileResourcePath; const _io44 = input => Object.keys(input).every(key => {
215
- const value = input[key];
216
- if (undefined === value)
217
- return true;
218
- return "object" === typeof value && null !== value && false === Array.isArray(value) && _io45(value);
219
- }); const _io45 = input => Object.keys(input).every(key => {
220
- const value = input[key];
221
- if (undefined === value)
222
- return true;
223
- return "object" === typeof value && null !== value && _io46(value);
224
- }); const _io46 = input => "object" === typeof input.response && null !== input.response && _io47(input.response) && "string" === typeof input.subscriptionId; const _io47 = input => "object" === typeof input.data && null !== input.data && _io48(input.data); const _io48 = input => "object" === typeof input.issueUpdated && null !== input.issueUpdated && _io49(input.issueUpdated); const _io49 = input => true && true && true && true && true && true && true && true && true && true && true && true && true && true && true; const _io50 = input => (undefined === input.initial_view_content || "object" === typeof input.initial_view_content && null !== input.initial_view_content && false === Array.isArray(input.initial_view_content) && _io51(input.initial_view_content)) && (undefined === input.current_user || "object" === typeof input.current_user && null !== input.current_user && _io52(input.current_user)) && (undefined === input.current_user_settings || "object" === typeof input.current_user_settings && null !== input.current_user_settings && false === Array.isArray(input.current_user_settings) && _io53(input.current_user_settings)) && (undefined === input.paste_url_link_as_plain_text || "boolean" === typeof input.paste_url_link_as_plain_text) && (undefined === input.base_avatar_url || "string" === typeof input.base_avatar_url) && (undefined === input.help_url || "string" === typeof input.help_url) && true && true && (undefined === input.multi_tenant || "boolean" === typeof input.multi_tenant) && (undefined === input.tracing || "boolean" === typeof input.tracing) && (undefined === input.tracing_flamegraph || "boolean" === typeof input.tracing_flamegraph) && (undefined === input.catalog_service || "string" === typeof input.catalog_service) && (undefined === input.scoped_repository || "object" === typeof input.scoped_repository && null !== input.scoped_repository && _io54(input.scoped_repository)) && (undefined === input.semantic_search_enrolled || "boolean" === typeof input.semantic_search_enrolled) && true && true && (undefined === input.enabled_features || "object" === typeof input.enabled_features && null !== input.enabled_features && false === Array.isArray(input.enabled_features) && _io55(input.enabled_features)) && Object.keys(input).every(key => {
225
- if (["initial_view_content", "current_user", "current_user_settings", "paste_url_link_as_plain_text", "base_avatar_url", "help_url", "sso_organizations", "current_sso_orgs_match_dismissed_cookie", "multi_tenant", "tracing", "tracing_flamegraph", "catalog_service", "scoped_repository", "semantic_search_enrolled", "semantic_search_feedback_url", "copilot_api_url", "enabled_features"].some(prop => key === prop))
226
- return true;
227
- const value = input[key];
228
- if (undefined === value)
229
- return true;
230
- return true;
231
- }); const _io51 = input => true && (undefined === input.can_edit_view || "boolean" === typeof input.can_edit_view) && Object.keys(input).every(key => {
232
- if (["team_id", "can_edit_view"].some(prop => key === prop))
233
- return true;
234
- const value = input[key];
235
- if (undefined === value)
236
- return true;
237
- return true;
238
- }); const _io52 = input => "string" === typeof input.id && "string" === typeof input.login && "string" === typeof input.avatarUrl && "boolean" === typeof input.is_staff && "boolean" === typeof input.is_emu && true && Object.keys(input).every(key => {
239
- if (["id", "login", "avatarUrl", "is_staff", "is_emu", "name"].some(prop => key === prop))
240
- return true;
241
- const value = input[key];
242
- if (undefined === value)
243
- return true;
244
- return true;
245
- }); const _io53 = input => (undefined === input.use_monospace_font || "boolean" === typeof input.use_monospace_font) && (undefined === input.use_single_key_shortcut || "boolean" === typeof input.use_single_key_shortcut) && (undefined === input.preferred_emoji_skin_tone || "number" === typeof input.preferred_emoji_skin_tone) && (undefined === input.copilot_show_functionality || "boolean" === typeof input.copilot_show_functionality) && Object.keys(input).every(key => {
246
- if (["use_monospace_font", "use_single_key_shortcut", "preferred_emoji_skin_tone", "copilot_show_functionality"].some(prop => key === prop))
247
- return true;
248
- const value = input[key];
249
- if (undefined === value)
250
- return true;
251
- return true;
252
- }); const _io54 = input => "string" === typeof input.id && "string" === typeof input.owner && "string" === typeof input.name && "boolean" === typeof input.is_archived && Object.keys(input).every(key => {
253
- if (["id", "owner", "name", "is_archived"].some(prop => key === prop))
254
- return true;
255
- const value = input[key];
256
- if (undefined === value)
257
- return true;
258
- return true;
259
- }); const _io55 = input => Object.keys(input).every(key => {
260
- const value = input[key];
261
- if (undefined === value)
262
- return true;
263
- return "boolean" === typeof value;
264
- }); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
265
- path: _path + ".payload",
266
- expected: "__type",
267
- value: input.payload
268
- })) && _vo1(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
269
- path: _path + ".payload",
270
- expected: "__type",
271
- value: input.payload
272
- }), true, undefined === input.appPayload || ("object" === typeof input.appPayload && null !== input.appPayload && false === Array.isArray(input.appPayload) || _report(_exceptionable, {
273
- path: _path + ".appPayload",
274
- expected: "(__type.o40 | undefined)",
275
- value: input.appPayload
276
- })) && _vo50(input.appPayload, _path + ".appPayload", true && _exceptionable) || _report(_exceptionable, {
277
- path: _path + ".appPayload",
278
- expected: "(__type.o40 | undefined)",
279
- value: input.appPayload
280
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.preloaded_records || ("object" === typeof input.preloaded_records && null !== input.preloaded_records && false === Array.isArray(input.preloaded_records) || _report(_exceptionable, {
281
- path: _path + ".preloaded_records",
282
- expected: "(Record<string, unknown> | undefined)",
283
- value: input.preloaded_records
284
- })) && _vo2(input.preloaded_records, _path + ".preloaded_records", true && _exceptionable) || _report(_exceptionable, {
285
- path: _path + ".preloaded_records",
286
- expected: "(Record<string, unknown> | undefined)",
287
- value: input.preloaded_records
288
- }), (Array.isArray(input.preloadedQueries) || _report(_exceptionable, {
289
- path: _path + ".preloadedQueries",
290
- expected: "[GitHubIssueQuery]",
291
- value: input.preloadedQueries
292
- })) && ((input.preloadedQueries.length === 1 || _report(_exceptionable, {
293
- path: _path + ".preloadedQueries",
294
- expected: "[GitHubIssueQuery]",
295
- value: input.preloadedQueries
296
- })) && [
297
- ("object" === typeof input.preloadedQueries[0] && null !== input.preloadedQueries[0] || _report(_exceptionable, {
298
- path: _path + ".preloadedQueries[0]",
299
- expected: "GitHubIssueQuery",
300
- value: input.preloadedQueries[0]
301
- })) && _vo3(input.preloadedQueries[0], _path + ".preloadedQueries[0]", true && _exceptionable) || _report(_exceptionable, {
302
- path: _path + ".preloadedQueries[0]",
303
- expected: "GitHubIssueQuery",
304
- value: input.preloadedQueries[0]
305
- })
306
- ].every(flag => flag)) || _report(_exceptionable, {
307
- path: _path + ".preloadedQueries",
308
- expected: "[GitHubIssueQuery]",
309
- value: input.preloadedQueries
310
- }), undefined === input.preloadedSubscriptions || ("object" === typeof input.preloadedSubscriptions && null !== input.preloadedSubscriptions && false === Array.isArray(input.preloadedSubscriptions) || _report(_exceptionable, {
311
- path: _path + ".preloadedSubscriptions",
312
- expected: "(Record<string, Record<string, IssueUpdateSubscriptionResponse>> | undefined)",
313
- value: input.preloadedSubscriptions
314
- })) && _vo44(input.preloadedSubscriptions, _path + ".preloadedSubscriptions", true && _exceptionable) || _report(_exceptionable, {
315
- path: _path + ".preloadedSubscriptions",
316
- expected: "(Record<string, Record<string, IssueUpdateSubscriptionResponse>> | undefined)",
317
- value: input.preloadedSubscriptions
318
- })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
319
- const value = input[key];
320
- if (undefined === value)
321
- return true;
322
- return true;
323
- }).every(flag => flag)].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.queryId || _report(_exceptionable, {
324
- path: _path + ".queryId",
325
- expected: "string",
326
- value: input.queryId
327
- }), "string" === typeof input.queryName || _report(_exceptionable, {
328
- path: _path + ".queryName",
329
- expected: "string",
330
- value: input.queryName
331
- }), ("object" === typeof input.variables && null !== input.variables || _report(_exceptionable, {
332
- path: _path + ".variables",
333
- expected: "__type.o1",
334
- value: input.variables
335
- })) && _vo4(input.variables, _path + ".variables", true && _exceptionable) || _report(_exceptionable, {
336
- path: _path + ".variables",
337
- expected: "__type.o1",
338
- value: input.variables
339
- }), ("object" === typeof input.result && null !== input.result || _report(_exceptionable, {
340
- path: _path + ".result",
341
- expected: "__type.o2",
342
- value: input.result
343
- })) && _vo5(input.result, _path + ".result", true && _exceptionable) || _report(_exceptionable, {
344
- path: _path + ".result",
345
- expected: "__type.o2",
346
- value: input.result
347
- }), "number" === typeof input.timestamp || _report(_exceptionable, {
348
- path: _path + ".timestamp",
349
- expected: "number",
350
- value: input.timestamp
351
- })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.id || "string" === typeof input.id || _report(_exceptionable, {
352
- path: _path + ".id",
353
- expected: "(string | undefined)",
354
- value: input.id
355
- }), undefined === input.count || "number" === typeof input.count || _report(_exceptionable, {
356
- path: _path + ".count",
357
- expected: "(number | undefined)",
358
- value: input.count
359
- }), "number" === typeof input.number || _report(_exceptionable, {
360
- path: _path + ".number",
361
- expected: "number",
362
- value: input.number
363
- }), "string" === typeof input.owner || _report(_exceptionable, {
364
- path: _path + ".owner",
365
- expected: "string",
366
- value: input.owner
367
- }), "string" === typeof input.repo || _report(_exceptionable, {
368
- path: _path + ".repo",
369
- expected: "string",
370
- value: input.repo
371
- })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [("object" === typeof input.data && null !== input.data || _report(_exceptionable, {
372
- path: _path + ".data",
373
- expected: "__type.o3",
374
- value: input.data
375
- })) && _vo6(input.data, _path + ".data", true && _exceptionable) || _report(_exceptionable, {
376
- path: _path + ".data",
377
- expected: "__type.o3",
378
- value: input.data
379
- })].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [("object" === typeof input.repository && null !== input.repository || _report(_exceptionable, {
380
- path: _path + ".repository",
381
- expected: "__type.o4",
382
- value: input.repository
383
- })) && _vo7(input.repository, _path + ".repository", true && _exceptionable) || _report(_exceptionable, {
384
- path: _path + ".repository",
385
- expected: "__type.o4",
386
- value: input.repository
387
- }), ("object" === typeof input.safeViewer && null !== input.safeViewer || _report(_exceptionable, {
388
- path: _path + ".safeViewer",
389
- expected: "__type.o36",
390
- value: input.safeViewer
391
- })) && _vo43(input.safeViewer, _path + ".safeViewer", true && _exceptionable) || _report(_exceptionable, {
392
- path: _path + ".safeViewer",
393
- expected: "__type.o36",
394
- value: input.safeViewer
395
- })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.isOwnerEnterpriseManaged || _report(_exceptionable, {
396
- path: _path + ".isOwnerEnterpriseManaged",
397
- expected: "boolean",
398
- value: input.isOwnerEnterpriseManaged
399
- }), ("object" === typeof input.issue && null !== input.issue || _report(_exceptionable, {
400
- path: _path + ".issue",
401
- expected: "IssueData",
402
- value: input.issue
403
- })) && _vo8(input.issue, _path + ".issue", true && _exceptionable) || _report(_exceptionable, {
404
- path: _path + ".issue",
405
- expected: "IssueData",
406
- value: input.issue
407
- }), "string" === typeof input.id || _report(_exceptionable, {
408
- path: _path + ".id",
409
- expected: "string",
410
- value: input.id
411
- })].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
412
- path: _path + ".id",
413
- expected: "string",
414
- value: input.id
415
- }), "string" === typeof input.updatedAt || _report(_exceptionable, {
416
- path: _path + ".updatedAt",
417
- expected: "string",
418
- value: input.updatedAt
419
- }), "string" === typeof input.title || _report(_exceptionable, {
420
- path: _path + ".title",
421
- expected: "string",
422
- value: input.title
423
- }), "number" === typeof input.number || _report(_exceptionable, {
424
- path: _path + ".number",
425
- expected: "number",
426
- value: input.number
427
- }), ("object" === typeof input.repository && null !== input.repository || _report(_exceptionable, {
428
- path: _path + ".repository",
429
- expected: "__type.o5",
430
- value: input.repository
431
- })) && _vo9(input.repository, _path + ".repository", true && _exceptionable) || _report(_exceptionable, {
432
- path: _path + ".repository",
433
- expected: "__type.o5",
434
- value: input.repository
435
- }), "string" === typeof input.titleHTML || _report(_exceptionable, {
436
- path: _path + ".titleHTML",
437
- expected: "string",
438
- value: input.titleHTML
439
- }), "string" === typeof input.url || _report(_exceptionable, {
440
- path: _path + ".url",
441
- expected: "string",
442
- value: input.url
443
- }), "boolean" === typeof input.viewerCanUpdateNext || _report(_exceptionable, {
444
- path: _path + ".viewerCanUpdateNext",
445
- expected: "boolean",
446
- value: input.viewerCanUpdateNext
447
- }), null === input.issueType || ("object" === typeof input.issueType && null !== input.issueType || _report(_exceptionable, {
448
- path: _path + ".issueType",
449
- expected: "(IssueTypeData | null)",
450
- value: input.issueType
451
- })) && _vo16(input.issueType, _path + ".issueType", true && _exceptionable) || _report(_exceptionable, {
452
- path: _path + ".issueType",
453
- expected: "(IssueTypeData | null)",
454
- value: input.issueType
455
- }), "OPEN" === input.state || "CLOSED" === input.state || _report(_exceptionable, {
456
- path: _path + ".state",
457
- expected: "(\"CLOSED\" | \"OPEN\")",
458
- value: input.state
459
- }), null === input.stateReason || "string" === typeof input.stateReason || _report(_exceptionable, {
460
- path: _path + ".stateReason",
461
- expected: "(null | string)",
462
- value: input.stateReason
463
- }), ("object" === typeof input.linkedPullRequests && null !== input.linkedPullRequests || _report(_exceptionable, {
464
- path: _path + ".linkedPullRequests",
465
- expected: "__type.o12",
466
- value: input.linkedPullRequests
467
- })) && _vo17(input.linkedPullRequests, _path + ".linkedPullRequests", true && _exceptionable) || _report(_exceptionable, {
468
- path: _path + ".linkedPullRequests",
469
- expected: "__type.o12",
470
- value: input.linkedPullRequests
471
- }), ("object" === typeof input.subIssuesSummary && null !== input.subIssuesSummary || _report(_exceptionable, {
472
- path: _path + ".subIssuesSummary",
473
- expected: "__type.o13",
474
- value: input.subIssuesSummary
475
- })) && _vo18(input.subIssuesSummary, _path + ".subIssuesSummary", true && _exceptionable) || _report(_exceptionable, {
476
- path: _path + ".subIssuesSummary",
477
- expected: "__type.o13",
478
- value: input.subIssuesSummary
479
- }), "string" === typeof input.__isLabelable || _report(_exceptionable, {
480
- path: _path + ".__isLabelable",
481
- expected: "string",
482
- value: input.__isLabelable
483
- }), ("object" === typeof input.labels && null !== input.labels || _report(_exceptionable, {
484
- path: _path + ".labels",
485
- expected: "__type.o14",
486
- value: input.labels
487
- })) && _vo19(input.labels, _path + ".labels", true && _exceptionable) || _report(_exceptionable, {
488
- path: _path + ".labels",
489
- expected: "__type.o14",
490
- value: input.labels
491
- }), "string" === typeof input.__isNode || _report(_exceptionable, {
492
- path: _path + ".__isNode",
493
- expected: "string",
494
- value: input.__isNode
495
- }), "number" === typeof input.databaseId || _report(_exceptionable, {
496
- path: _path + ".databaseId",
497
- expected: "number",
498
- value: input.databaseId
499
- }), "boolean" === typeof input.viewerDidAuthor || _report(_exceptionable, {
500
- path: _path + ".viewerDidAuthor",
501
- expected: "boolean",
502
- value: input.viewerDidAuthor
503
- }), "boolean" === typeof input.locked || _report(_exceptionable, {
504
- path: _path + ".locked",
505
- expected: "boolean",
506
- value: input.locked
507
- }), ("object" === typeof input.author && null !== input.author || _report(_exceptionable, {
508
- path: _path + ".author",
509
- expected: "__type.o17",
510
- value: input.author
511
- })) && _vo23(input.author, _path + ".author", true && _exceptionable) || _report(_exceptionable, {
512
- path: _path + ".author",
513
- expected: "__type.o17",
514
- value: input.author
515
- }), "string" === typeof input.__isComment || _report(_exceptionable, {
516
- path: _path + ".__isComment",
517
- expected: "string",
518
- value: input.__isComment
519
- }), "string" === typeof input.body || _report(_exceptionable, {
520
- path: _path + ".body",
521
- expected: "string",
522
- value: input.body
523
- }), "string" === typeof input.bodyHTML || _report(_exceptionable, {
524
- path: _path + ".bodyHTML",
525
- expected: "string",
526
- value: input.bodyHTML
527
- }), "string" === typeof input.bodyVersion || _report(_exceptionable, {
528
- path: _path + ".bodyVersion",
529
- expected: "string",
530
- value: input.bodyVersion
531
- }), "string" === typeof input.createdAt || _report(_exceptionable, {
532
- path: _path + ".createdAt",
533
- expected: "string",
534
- value: input.createdAt
535
- }), "string" === typeof input.__isReactable || _report(_exceptionable, {
536
- path: _path + ".__isReactable",
537
- expected: "string",
538
- value: input.__isReactable
539
- }), (Array.isArray(input.reactionGroups) || _report(_exceptionable, {
540
- path: _path + ".reactionGroups",
541
- expected: "Array<__type>.o2",
542
- value: input.reactionGroups
543
- })) && input.reactionGroups.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
544
- path: _path + ".reactionGroups[" + _index9 + "]",
545
- expected: "__type.o18",
546
- value: elem
547
- })) && _vo24(elem, _path + ".reactionGroups[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
548
- path: _path + ".reactionGroups[" + _index9 + "]",
549
- expected: "__type.o18",
550
- value: elem
551
- })).every(flag => flag) || _report(_exceptionable, {
552
- path: _path + ".reactionGroups",
553
- expected: "Array<__type>.o2",
554
- value: input.reactionGroups
555
- }), "boolean" === typeof input.viewerCanUpdateMetadata || _report(_exceptionable, {
556
- path: _path + ".viewerCanUpdateMetadata",
557
- expected: "boolean",
558
- value: input.viewerCanUpdateMetadata
559
- }), "boolean" === typeof input.viewerCanComment || _report(_exceptionable, {
560
- path: _path + ".viewerCanComment",
561
- expected: "boolean",
562
- value: input.viewerCanComment
563
- }), "boolean" === typeof input.viewerCanAssign || _report(_exceptionable, {
564
- path: _path + ".viewerCanAssign",
565
- expected: "boolean",
566
- value: input.viewerCanAssign
567
- }), "boolean" === typeof input.viewerCanLabel || _report(_exceptionable, {
568
- path: _path + ".viewerCanLabel",
569
- expected: "boolean",
570
- value: input.viewerCanLabel
571
- }), "string" === typeof input.__isIssueOrPullRequest || _report(_exceptionable, {
572
- path: _path + ".__isIssueOrPullRequest",
573
- expected: "string",
574
- value: input.__isIssueOrPullRequest
575
- }), undefined === input.projectItemsNext || ("object" === typeof input.projectItemsNext && null !== input.projectItemsNext || _report(_exceptionable, {
576
- path: _path + ".projectItemsNext",
577
- expected: "(__type.o20 | undefined)",
578
- value: input.projectItemsNext
579
- })) && _vo26(input.projectItemsNext, _path + ".projectItemsNext", true && _exceptionable) || _report(_exceptionable, {
580
- path: _path + ".projectItemsNext",
581
- expected: "(__type.o20 | undefined)",
582
- value: input.projectItemsNext
583
- }), "boolean" === typeof input.viewerCanSetMilestone || _report(_exceptionable, {
584
- path: _path + ".viewerCanSetMilestone",
585
- expected: "boolean",
586
- value: input.viewerCanSetMilestone
587
- }), "boolean" === typeof input.isPinned || _report(_exceptionable, {
588
- path: _path + ".isPinned",
589
- expected: "boolean",
590
- value: input.isPinned
591
- }), "boolean" === typeof input.viewerCanDelete || _report(_exceptionable, {
592
- path: _path + ".viewerCanDelete",
593
- expected: "boolean",
594
- value: input.viewerCanDelete
595
- }), "boolean" === typeof input.viewerCanTransfer || _report(_exceptionable, {
596
- path: _path + ".viewerCanTransfer",
597
- expected: "boolean",
598
- value: input.viewerCanTransfer
599
- }), "boolean" === typeof input.viewerCanConvertToDiscussion || _report(_exceptionable, {
600
- path: _path + ".viewerCanConvertToDiscussion",
601
- expected: "boolean",
602
- value: input.viewerCanConvertToDiscussion
603
- }), "boolean" === typeof input.viewerCanLock || _report(_exceptionable, {
604
- path: _path + ".viewerCanLock",
605
- expected: "boolean",
606
- value: input.viewerCanLock
607
- }), "boolean" === typeof input.viewerCanType || _report(_exceptionable, {
608
- path: _path + ".viewerCanType",
609
- expected: "boolean",
610
- value: input.viewerCanType
611
- }), ("object" === typeof input.frontTimelineItems && null !== input.frontTimelineItems || _report(_exceptionable, {
612
- path: _path + ".frontTimelineItems",
613
- expected: "__type.o28",
614
- value: input.frontTimelineItems
615
- })) && _vo34(input.frontTimelineItems, _path + ".frontTimelineItems", true && _exceptionable) || _report(_exceptionable, {
616
- path: _path + ".frontTimelineItems",
617
- expected: "__type.o28",
618
- value: input.frontTimelineItems
619
- }), ("object" === typeof input.backTimelineItems && null !== input.backTimelineItems || _report(_exceptionable, {
620
- path: _path + ".backTimelineItems",
621
- expected: "__type.o31",
622
- value: input.backTimelineItems
623
- })) && _vo38(input.backTimelineItems, _path + ".backTimelineItems", true && _exceptionable) || _report(_exceptionable, {
624
- path: _path + ".backTimelineItems",
625
- expected: "__type.o31",
626
- value: input.backTimelineItems
627
- }), ("object" === typeof input.assignedActors && null !== input.assignedActors || _report(_exceptionable, {
628
- path: _path + ".assignedActors",
629
- expected: "__type.o34",
630
- value: input.assignedActors
631
- })) && _vo41(input.assignedActors, _path + ".assignedActors", true && _exceptionable) || _report(_exceptionable, {
632
- path: _path + ".assignedActors",
633
- expected: "__type.o34",
634
- value: input.assignedActors
635
- })].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.nameWithOwner || _report(_exceptionable, {
636
- path: _path + ".nameWithOwner",
637
- expected: "string",
638
- value: input.nameWithOwner
639
- }), "string" === typeof input.id || _report(_exceptionable, {
640
- path: _path + ".id",
641
- expected: "string",
642
- value: input.id
643
- }), "string" === typeof input.name || _report(_exceptionable, {
644
- path: _path + ".name",
645
- expected: "string",
646
- value: input.name
647
- }), ("object" === typeof input.owner && null !== input.owner || _report(_exceptionable, {
648
- path: _path + ".owner",
649
- expected: "__type.o6",
650
- value: input.owner
651
- })) && _vo10(input.owner, _path + ".owner", true && _exceptionable) || _report(_exceptionable, {
652
- path: _path + ".owner",
653
- expected: "__type.o6",
654
- value: input.owner
655
- }), "boolean" === typeof input.isArchived || _report(_exceptionable, {
656
- path: _path + ".isArchived",
657
- expected: "boolean",
658
- value: input.isArchived
659
- }), "boolean" === typeof input.isPrivate || _report(_exceptionable, {
660
- path: _path + ".isPrivate",
661
- expected: "boolean",
662
- value: input.isPrivate
663
- }), "number" === typeof input.databaseId || _report(_exceptionable, {
664
- path: _path + ".databaseId",
665
- expected: "number",
666
- value: input.databaseId
667
- }), "boolean" === typeof input.slashCommandsEnabled || _report(_exceptionable, {
668
- path: _path + ".slashCommandsEnabled",
669
- expected: "boolean",
670
- value: input.slashCommandsEnabled
671
- }), "boolean" === typeof input.viewerCanInteract || _report(_exceptionable, {
672
- path: _path + ".viewerCanInteract",
673
- expected: "boolean",
674
- value: input.viewerCanInteract
675
- }), "string" === typeof input.viewerInteractionLimitReasonHTML || _report(_exceptionable, {
676
- path: _path + ".viewerInteractionLimitReasonHTML",
677
- expected: "string",
678
- value: input.viewerInteractionLimitReasonHTML
679
- }), undefined === input.planFeatures || ("object" === typeof input.planFeatures && null !== input.planFeatures || _report(_exceptionable, {
680
- path: _path + ".planFeatures",
681
- expected: "(__type.o7 | undefined)",
682
- value: input.planFeatures
683
- })) && _vo11(input.planFeatures, _path + ".planFeatures", true && _exceptionable) || _report(_exceptionable, {
684
- path: _path + ".planFeatures",
685
- expected: "(__type.o7 | undefined)",
686
- value: input.planFeatures
687
- }), "string" === typeof input.visibility || _report(_exceptionable, {
688
- path: _path + ".visibility",
689
- expected: "string",
690
- value: input.visibility
691
- }), ("object" === typeof input.pinnedIssues && null !== input.pinnedIssues || _report(_exceptionable, {
692
- path: _path + ".pinnedIssues",
693
- expected: "__type.o8",
694
- value: input.pinnedIssues
695
- })) && _vo12(input.pinnedIssues, _path + ".pinnedIssues", true && _exceptionable) || _report(_exceptionable, {
696
- path: _path + ".pinnedIssues",
697
- expected: "__type.o8",
698
- value: input.pinnedIssues
699
- }), "boolean" === typeof input.viewerCanPinIssues || _report(_exceptionable, {
700
- path: _path + ".viewerCanPinIssues",
701
- expected: "boolean",
702
- value: input.viewerCanPinIssues
703
- }), null === input.issueTypes || ("object" === typeof input.issueTypes && null !== input.issueTypes || _report(_exceptionable, {
704
- path: _path + ".issueTypes",
705
- expected: "(__type.o9 | null)",
706
- value: input.issueTypes
707
- })) && _vo13(input.issueTypes, _path + ".issueTypes", true && _exceptionable) || _report(_exceptionable, {
708
- path: _path + ".issueTypes",
709
- expected: "(__type.o9 | null)",
710
- value: input.issueTypes
711
- })].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => ["User" === input.__typename || "Organization" === input.__typename || _report(_exceptionable, {
712
- path: _path + ".__typename",
713
- expected: "(\"Organization\" | \"User\")",
714
- value: input.__typename
715
- }), "string" === typeof input.login || _report(_exceptionable, {
716
- path: _path + ".login",
717
- expected: "string",
718
- value: input.login
719
- }), "string" === typeof input.id || _report(_exceptionable, {
720
- path: _path + ".id",
721
- expected: "string",
722
- value: input.id
723
- }), "string" === typeof input.url || _report(_exceptionable, {
724
- path: _path + ".url",
725
- expected: "string",
726
- value: input.url
727
- })].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["number" === typeof input.maximumAssignees || _report(_exceptionable, {
728
- path: _path + ".maximumAssignees",
729
- expected: "number",
730
- value: input.maximumAssignees
731
- })].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["number" === typeof input.totalCount || _report(_exceptionable, {
732
- path: _path + ".totalCount",
733
- expected: "number",
734
- value: input.totalCount
735
- })].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => [(Array.isArray(input.edges) || _report(_exceptionable, {
736
- path: _path + ".edges",
737
- expected: "Array<__type>",
738
- value: input.edges
739
- })) && input.edges.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
740
- path: _path + ".edges[" + _index10 + "]",
741
- expected: "__type.o10",
742
- value: elem
743
- })) && _vo14(elem, _path + ".edges[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
744
- path: _path + ".edges[" + _index10 + "]",
745
- expected: "__type.o10",
746
- value: elem
747
- })).every(flag => flag) || _report(_exceptionable, {
748
- path: _path + ".edges",
749
- expected: "Array<__type>",
750
- value: input.edges
751
- })].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => [("object" === typeof input.node && null !== input.node || _report(_exceptionable, {
752
- path: _path + ".node",
753
- expected: "__type.o11",
754
- value: input.node
755
- })) && _vo15(input.node, _path + ".node", true && _exceptionable) || _report(_exceptionable, {
756
- path: _path + ".node",
757
- expected: "__type.o11",
758
- value: input.node
759
- })].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
760
- path: _path + ".id",
761
- expected: "string",
762
- value: input.id
763
- })].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
764
- path: _path + ".name",
765
- expected: "string",
766
- value: input.name
767
- }), "string" === typeof input.color || _report(_exceptionable, {
768
- path: _path + ".color",
769
- expected: "string",
770
- value: input.color
771
- }), "string" === typeof input.id || _report(_exceptionable, {
772
- path: _path + ".id",
773
- expected: "string",
774
- value: input.id
775
- }), undefined === input.isEnabled || "boolean" === typeof input.isEnabled || _report(_exceptionable, {
776
- path: _path + ".isEnabled",
777
- expected: "(boolean | undefined)",
778
- value: input.isEnabled
779
- }), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
780
- path: _path + ".description",
781
- expected: "(string | undefined)",
782
- value: input.description
783
- })].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => [Array.isArray(input.nodes) || _report(_exceptionable, {
784
- path: _path + ".nodes",
785
- expected: "Array<unknown>",
786
- value: input.nodes
787
- })].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => ["number" === typeof input.total || _report(_exceptionable, {
788
- path: _path + ".total",
789
- expected: "number",
790
- value: input.total
791
- }), "number" === typeof input.completed || _report(_exceptionable, {
792
- path: _path + ".completed",
793
- expected: "number",
794
- value: input.completed
795
- })].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => [(Array.isArray(input.edges) || _report(_exceptionable, {
796
- path: _path + ".edges",
797
- expected: "Array<__type>.o1",
798
- value: input.edges
799
- })) && input.edges.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
800
- path: _path + ".edges[" + _index11 + "]",
801
- expected: "__type.o15",
802
- value: elem
803
- })) && _vo20(elem, _path + ".edges[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
804
- path: _path + ".edges[" + _index11 + "]",
805
- expected: "__type.o15",
806
- value: elem
807
- })).every(flag => flag) || _report(_exceptionable, {
808
- path: _path + ".edges",
809
- expected: "Array<__type>.o1",
810
- value: input.edges
811
- }), ("object" === typeof input.pageInfo && null !== input.pageInfo || _report(_exceptionable, {
812
- path: _path + ".pageInfo",
813
- expected: "__type.o16",
814
- value: input.pageInfo
815
- })) && _vo22(input.pageInfo, _path + ".pageInfo", true && _exceptionable) || _report(_exceptionable, {
816
- path: _path + ".pageInfo",
817
- expected: "__type.o16",
818
- value: input.pageInfo
819
- })].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [("object" === typeof input.node && null !== input.node || _report(_exceptionable, {
820
- path: _path + ".node",
821
- expected: "LabelNode",
822
- value: input.node
823
- })) && _vo21(input.node, _path + ".node", true && _exceptionable) || _report(_exceptionable, {
824
- path: _path + ".node",
825
- expected: "LabelNode",
826
- value: input.node
827
- }), "string" === typeof input.cursor || _report(_exceptionable, {
828
- path: _path + ".cursor",
829
- expected: "string",
830
- value: input.cursor
831
- })].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
832
- path: _path + ".id",
833
- expected: "string",
834
- value: input.id
835
- }), "string" === typeof input.color || _report(_exceptionable, {
836
- path: _path + ".color",
837
- expected: "string",
838
- value: input.color
839
- }), "string" === typeof input.name || _report(_exceptionable, {
840
- path: _path + ".name",
841
- expected: "string",
842
- value: input.name
843
- }), "string" === typeof input.nameHTML || _report(_exceptionable, {
844
- path: _path + ".nameHTML",
845
- expected: "string",
846
- value: input.nameHTML
847
- }), null === input.description || "string" === typeof input.description || _report(_exceptionable, {
848
- path: _path + ".description",
849
- expected: "(null | string)",
850
- value: input.description
851
- }), "string" === typeof input.url || _report(_exceptionable, {
852
- path: _path + ".url",
853
- expected: "string",
854
- value: input.url
855
- }), "string" === typeof input.__typename || _report(_exceptionable, {
856
- path: _path + ".__typename",
857
- expected: "string",
858
- value: input.__typename
859
- })].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [null === input.endCursor || "string" === typeof input.endCursor || _report(_exceptionable, {
860
- path: _path + ".endCursor",
861
- expected: "(null | string)",
862
- value: input.endCursor
863
- }), "boolean" === typeof input.hasNextPage || _report(_exceptionable, {
864
- path: _path + ".hasNextPage",
865
- expected: "boolean",
866
- value: input.hasNextPage
867
- })].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.__typename || _report(_exceptionable, {
868
- path: _path + ".__typename",
869
- expected: "string",
870
- value: input.__typename
871
- }), "string" === typeof input.__isActor || _report(_exceptionable, {
872
- path: _path + ".__isActor",
873
- expected: "string",
874
- value: input.__isActor
875
- }), "string" === typeof input.login || _report(_exceptionable, {
876
- path: _path + ".login",
877
- expected: "string",
878
- value: input.login
879
- }), "string" === typeof input.id || _report(_exceptionable, {
880
- path: _path + ".id",
881
- expected: "string",
882
- value: input.id
883
- }), "string" === typeof input.profileUrl || _report(_exceptionable, {
884
- path: _path + ".profileUrl",
885
- expected: "string",
886
- value: input.profileUrl
887
- }), "string" === typeof input.avatarUrl || _report(_exceptionable, {
888
- path: _path + ".avatarUrl",
889
- expected: "string",
890
- value: input.avatarUrl
891
- })].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.content || _report(_exceptionable, {
892
- path: _path + ".content",
893
- expected: "string",
894
- value: input.content
895
- }), "boolean" === typeof input.viewerHasReacted || _report(_exceptionable, {
896
- path: _path + ".viewerHasReacted",
897
- expected: "boolean",
898
- value: input.viewerHasReacted
899
- }), ("object" === typeof input.reactors && null !== input.reactors || _report(_exceptionable, {
900
- path: _path + ".reactors",
901
- expected: "__type.o19",
902
- value: input.reactors
903
- })) && _vo25(input.reactors, _path + ".reactors", true && _exceptionable) || _report(_exceptionable, {
904
- path: _path + ".reactors",
905
- expected: "__type.o19",
906
- value: input.reactors
907
- })].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["number" === typeof input.totalCount || _report(_exceptionable, {
908
- path: _path + ".totalCount",
909
- expected: "number",
910
- value: input.totalCount
911
- }), Array.isArray(input.nodes) || _report(_exceptionable, {
912
- path: _path + ".nodes",
913
- expected: "Array<unknown>",
914
- value: input.nodes
915
- })].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => [(Array.isArray(input.edges) || _report(_exceptionable, {
916
- path: _path + ".edges",
917
- expected: "Array<__type>.o3",
918
- value: input.edges
919
- })) && input.edges.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
920
- path: _path + ".edges[" + _index12 + "]",
921
- expected: "__type.o21",
922
- value: elem
923
- })) && _vo27(elem, _path + ".edges[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
924
- path: _path + ".edges[" + _index12 + "]",
925
- expected: "__type.o21",
926
- value: elem
927
- })).every(flag => flag) || _report(_exceptionable, {
928
- path: _path + ".edges",
929
- expected: "Array<__type>.o3",
930
- value: input.edges
931
- }), ("object" === typeof input.pageInfo && null !== input.pageInfo || _report(_exceptionable, {
932
- path: _path + ".pageInfo",
933
- expected: "__type.o27",
934
- value: input.pageInfo
935
- })) && _vo33(input.pageInfo, _path + ".pageInfo", true && _exceptionable) || _report(_exceptionable, {
936
- path: _path + ".pageInfo",
937
- expected: "__type.o27",
938
- value: input.pageInfo
939
- })].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [("object" === typeof input.node && null !== input.node || _report(_exceptionable, {
940
- path: _path + ".node",
941
- expected: "__type.o22",
942
- value: input.node
943
- })) && _vo28(input.node, _path + ".node", true && _exceptionable) || _report(_exceptionable, {
944
- path: _path + ".node",
945
- expected: "__type.o22",
946
- value: input.node
947
- }), "string" === typeof input.cursor || _report(_exceptionable, {
948
- path: _path + ".cursor",
949
- expected: "string",
950
- value: input.cursor
951
- })].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
952
- path: _path + ".id",
953
- expected: "string",
954
- value: input.id
955
- }), "boolean" === typeof input.isArchived || _report(_exceptionable, {
956
- path: _path + ".isArchived",
957
- expected: "boolean",
958
- value: input.isArchived
959
- }), ("object" === typeof input.project && null !== input.project || _report(_exceptionable, {
960
- path: _path + ".project",
961
- expected: "__type.o23",
962
- value: input.project
963
- })) && _vo29(input.project, _path + ".project", true && _exceptionable) || _report(_exceptionable, {
964
- path: _path + ".project",
965
- expected: "__type.o23",
966
- value: input.project
967
- }), null === input.fieldValueByName || ("object" === typeof input.fieldValueByName && null !== input.fieldValueByName || _report(_exceptionable, {
968
- path: _path + ".fieldValueByName",
969
- expected: "(__type.o26 | null)",
970
- value: input.fieldValueByName
971
- })) && _vo32(input.fieldValueByName, _path + ".fieldValueByName", true && _exceptionable) || _report(_exceptionable, {
972
- path: _path + ".fieldValueByName",
973
- expected: "(__type.o26 | null)",
974
- value: input.fieldValueByName
975
- }), "string" === typeof input.__typename || _report(_exceptionable, {
976
- path: _path + ".__typename",
977
- expected: "string",
978
- value: input.__typename
979
- })].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
980
- path: _path + ".id",
981
- expected: "string",
982
- value: input.id
983
- }), "string" === typeof input.title || _report(_exceptionable, {
984
- path: _path + ".title",
985
- expected: "string",
986
- value: input.title
987
- }), "boolean" === typeof input.template || _report(_exceptionable, {
988
- path: _path + ".template",
989
- expected: "boolean",
990
- value: input.template
991
- }), "boolean" === typeof input.viewerCanUpdate || _report(_exceptionable, {
992
- path: _path + ".viewerCanUpdate",
993
- expected: "boolean",
994
- value: input.viewerCanUpdate
995
- }), "string" === typeof input.url || _report(_exceptionable, {
996
- path: _path + ".url",
997
- expected: "string",
998
- value: input.url
999
- }), ("object" === typeof input.field && null !== input.field || _report(_exceptionable, {
1000
- path: _path + ".field",
1001
- expected: "__type.o24",
1002
- value: input.field
1003
- })) && _vo30(input.field, _path + ".field", true && _exceptionable) || _report(_exceptionable, {
1004
- path: _path + ".field",
1005
- expected: "__type.o24",
1006
- value: input.field
1007
- }), "boolean" === typeof input.closed || _report(_exceptionable, {
1008
- path: _path + ".closed",
1009
- expected: "boolean",
1010
- value: input.closed
1011
- }), "number" === typeof input.number || _report(_exceptionable, {
1012
- path: _path + ".number",
1013
- expected: "number",
1014
- value: input.number
1015
- }), "boolean" === typeof input.hasReachedItemsLimit || _report(_exceptionable, {
1016
- path: _path + ".hasReachedItemsLimit",
1017
- expected: "boolean",
1018
- value: input.hasReachedItemsLimit
1019
- }), undefined === input.__typename || "string" === typeof input.__typename || _report(_exceptionable, {
1020
- path: _path + ".__typename",
1021
- expected: "(string | undefined)",
1022
- value: input.__typename
1023
- })].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.__typename || _report(_exceptionable, {
1024
- path: _path + ".__typename",
1025
- expected: "string",
1026
- value: input.__typename
1027
- }), "string" === typeof input.id || _report(_exceptionable, {
1028
- path: _path + ".id",
1029
- expected: "string",
1030
- value: input.id
1031
- }), "string" === typeof input.name || _report(_exceptionable, {
1032
- path: _path + ".name",
1033
- expected: "string",
1034
- value: input.name
1035
- }), (Array.isArray(input.options) || _report(_exceptionable, {
1036
- path: _path + ".options",
1037
- expected: "Array<__type>.o4",
1038
- value: input.options
1039
- })) && input.options.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1040
- path: _path + ".options[" + _index13 + "]",
1041
- expected: "__type.o25",
1042
- value: elem
1043
- })) && _vo31(elem, _path + ".options[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
1044
- path: _path + ".options[" + _index13 + "]",
1045
- expected: "__type.o25",
1046
- value: elem
1047
- })).every(flag => flag) || _report(_exceptionable, {
1048
- path: _path + ".options",
1049
- expected: "Array<__type>.o4",
1050
- value: input.options
1051
- }), "string" === typeof input.__isNode || _report(_exceptionable, {
1052
- path: _path + ".__isNode",
1053
- expected: "string",
1054
- value: input.__isNode
1055
- })].every(flag => flag); const _vo31 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
1056
- path: _path + ".id",
1057
- expected: "string",
1058
- value: input.id
1059
- }), "string" === typeof input.optionId || _report(_exceptionable, {
1060
- path: _path + ".optionId",
1061
- expected: "string",
1062
- value: input.optionId
1063
- }), "string" === typeof input.name || _report(_exceptionable, {
1064
- path: _path + ".name",
1065
- expected: "string",
1066
- value: input.name
1067
- }), "string" === typeof input.nameHTML || _report(_exceptionable, {
1068
- path: _path + ".nameHTML",
1069
- expected: "string",
1070
- value: input.nameHTML
1071
- }), "string" === typeof input.color || _report(_exceptionable, {
1072
- path: _path + ".color",
1073
- expected: "string",
1074
- value: input.color
1075
- }), "string" === typeof input.descriptionHTML || _report(_exceptionable, {
1076
- path: _path + ".descriptionHTML",
1077
- expected: "string",
1078
- value: input.descriptionHTML
1079
- }), "string" === typeof input.description || _report(_exceptionable, {
1080
- path: _path + ".description",
1081
- expected: "string",
1082
- value: input.description
1083
- })].every(flag => flag); const _vo32 = (input, _path, _exceptionable = true) => ["string" === typeof input.__typename || _report(_exceptionable, {
1084
- path: _path + ".__typename",
1085
- expected: "string",
1086
- value: input.__typename
1087
- }), "string" === typeof input.id || _report(_exceptionable, {
1088
- path: _path + ".id",
1089
- expected: "string",
1090
- value: input.id
1091
- }), "string" === typeof input.optionId || _report(_exceptionable, {
1092
- path: _path + ".optionId",
1093
- expected: "string",
1094
- value: input.optionId
1095
- }), "string" === typeof input.name || _report(_exceptionable, {
1096
- path: _path + ".name",
1097
- expected: "string",
1098
- value: input.name
1099
- }), "string" === typeof input.nameHTML || _report(_exceptionable, {
1100
- path: _path + ".nameHTML",
1101
- expected: "string",
1102
- value: input.nameHTML
1103
- }), "string" === typeof input.color || _report(_exceptionable, {
1104
- path: _path + ".color",
1105
- expected: "string",
1106
- value: input.color
1107
- }), "string" === typeof input.__isNode || _report(_exceptionable, {
1108
- path: _path + ".__isNode",
1109
- expected: "string",
1110
- value: input.__isNode
1111
- })].every(flag => flag); const _vo33 = (input, _path, _exceptionable = true) => [null === input.endCursor || "string" === typeof input.endCursor || _report(_exceptionable, {
1112
- path: _path + ".endCursor",
1113
- expected: "(null | string)",
1114
- value: input.endCursor
1115
- }), "boolean" === typeof input.hasNextPage || _report(_exceptionable, {
1116
- path: _path + ".hasNextPage",
1117
- expected: "boolean",
1118
- value: input.hasNextPage
1119
- })].every(flag => flag); const _vo34 = (input, _path, _exceptionable = true) => [("object" === typeof input.pageInfo && null !== input.pageInfo || _report(_exceptionable, {
1120
- path: _path + ".pageInfo",
1121
- expected: "__type.o29",
1122
- value: input.pageInfo
1123
- })) && _vo35(input.pageInfo, _path + ".pageInfo", true && _exceptionable) || _report(_exceptionable, {
1124
- path: _path + ".pageInfo",
1125
- expected: "__type.o29",
1126
- value: input.pageInfo
1127
- }), "number" === typeof input.totalCount || _report(_exceptionable, {
1128
- path: _path + ".totalCount",
1129
- expected: "number",
1130
- value: input.totalCount
1131
- }), (Array.isArray(input.edges) || _report(_exceptionable, {
1132
- path: _path + ".edges",
1133
- expected: "Array<__type>.o5",
1134
- value: input.edges
1135
- })) && input.edges.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1136
- path: _path + ".edges[" + _index14 + "]",
1137
- expected: "__type.o30",
1138
- value: elem
1139
- })) && _vo36(elem, _path + ".edges[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
1140
- path: _path + ".edges[" + _index14 + "]",
1141
- expected: "__type.o30",
1142
- value: elem
1143
- })).every(flag => flag) || _report(_exceptionable, {
1144
- path: _path + ".edges",
1145
- expected: "Array<__type>.o5",
1146
- value: input.edges
1147
- })].every(flag => flag); const _vo35 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.hasNextPage || _report(_exceptionable, {
1148
- path: _path + ".hasNextPage",
1149
- expected: "boolean",
1150
- value: input.hasNextPage
1151
- }), null === input.endCursor || "string" === typeof input.endCursor || _report(_exceptionable, {
1152
- path: _path + ".endCursor",
1153
- expected: "(null | string)",
1154
- value: input.endCursor
1155
- })].every(flag => flag); const _vo36 = (input, _path, _exceptionable = true) => [null === input.node || ("object" === typeof input.node && null !== input.node || _report(_exceptionable, {
1156
- path: _path + ".node",
1157
- expected: "(TimelineItem | null)",
1158
- value: input.node
1159
- })) && _vo37(input.node, _path + ".node", true && _exceptionable) || _report(_exceptionable, {
1160
- path: _path + ".node",
1161
- expected: "(TimelineItem | null)",
1162
- value: input.node
1163
- }), "string" === typeof input.cursor || _report(_exceptionable, {
1164
- path: _path + ".cursor",
1165
- expected: "string",
1166
- value: input.cursor
1167
- })].every(flag => flag); const _vo37 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
1168
- path: _path + ".id",
1169
- expected: "string",
1170
- value: input.id
1171
- }), "string" === typeof input.__typename || _report(_exceptionable, {
1172
- path: _path + ".__typename",
1173
- expected: "string",
1174
- value: input.__typename
1175
- })].every(flag => flag); const _vo38 = (input, _path, _exceptionable = true) => [("object" === typeof input.pageInfo && null !== input.pageInfo || _report(_exceptionable, {
1176
- path: _path + ".pageInfo",
1177
- expected: "__type.o32",
1178
- value: input.pageInfo
1179
- })) && _vo39(input.pageInfo, _path + ".pageInfo", true && _exceptionable) || _report(_exceptionable, {
1180
- path: _path + ".pageInfo",
1181
- expected: "__type.o32",
1182
- value: input.pageInfo
1183
- }), "number" === typeof input.totalCount || _report(_exceptionable, {
1184
- path: _path + ".totalCount",
1185
- expected: "number",
1186
- value: input.totalCount
1187
- }), (Array.isArray(input.edges) || _report(_exceptionable, {
1188
- path: _path + ".edges",
1189
- expected: "Array<__type>.o6",
1190
- value: input.edges
1191
- })) && input.edges.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1192
- path: _path + ".edges[" + _index15 + "]",
1193
- expected: "__type.o33",
1194
- value: elem
1195
- })) && _vo40(elem, _path + ".edges[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
1196
- path: _path + ".edges[" + _index15 + "]",
1197
- expected: "__type.o33",
1198
- value: elem
1199
- })).every(flag => flag) || _report(_exceptionable, {
1200
- path: _path + ".edges",
1201
- expected: "Array<__type>.o6",
1202
- value: input.edges
1203
- })].every(flag => flag); const _vo39 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.hasPreviousPage || _report(_exceptionable, {
1204
- path: _path + ".hasPreviousPage",
1205
- expected: "boolean",
1206
- value: input.hasPreviousPage
1207
- }), null === input.startCursor || "string" === typeof input.startCursor || _report(_exceptionable, {
1208
- path: _path + ".startCursor",
1209
- expected: "(null | string)",
1210
- value: input.startCursor
1211
- })].every(flag => flag); const _vo40 = (input, _path, _exceptionable = true) => [null === input.node || ("object" === typeof input.node && null !== input.node || _report(_exceptionable, {
1212
- path: _path + ".node",
1213
- expected: "(TimelineItem | null)",
1214
- value: input.node
1215
- })) && _vo37(input.node, _path + ".node", true && _exceptionable) || _report(_exceptionable, {
1216
- path: _path + ".node",
1217
- expected: "(TimelineItem | null)",
1218
- value: input.node
1219
- }), "string" === typeof input.cursor || _report(_exceptionable, {
1220
- path: _path + ".cursor",
1221
- expected: "string",
1222
- value: input.cursor
1223
- })].every(flag => flag); const _vo41 = (input, _path, _exceptionable = true) => [(Array.isArray(input.nodes) || _report(_exceptionable, {
1224
- path: _path + ".nodes",
1225
- expected: "Array<__type>.o7",
1226
- value: input.nodes
1227
- })) && input.nodes.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1228
- path: _path + ".nodes[" + _index16 + "]",
1229
- expected: "__type.o35",
1230
- value: elem
1231
- })) && _vo42(elem, _path + ".nodes[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
1232
- path: _path + ".nodes[" + _index16 + "]",
1233
- expected: "__type.o35",
1234
- value: elem
1235
- })).every(flag => flag) || _report(_exceptionable, {
1236
- path: _path + ".nodes",
1237
- expected: "Array<__type>.o7",
1238
- value: input.nodes
1239
- })].every(flag => flag); const _vo42 = (input, _path, _exceptionable = true) => ["string" === typeof input.__typename || _report(_exceptionable, {
1240
- path: _path + ".__typename",
1241
- expected: "string",
1242
- value: input.__typename
1243
- }), "string" === typeof input.__isActor || _report(_exceptionable, {
1244
- path: _path + ".__isActor",
1245
- expected: "string",
1246
- value: input.__isActor
1247
- }), "string" === typeof input.id || _report(_exceptionable, {
1248
- path: _path + ".id",
1249
- expected: "string",
1250
- value: input.id
1251
- }), "string" === typeof input.login || _report(_exceptionable, {
1252
- path: _path + ".login",
1253
- expected: "string",
1254
- value: input.login
1255
- }), null === input.name || "string" === typeof input.name || _report(_exceptionable, {
1256
- path: _path + ".name",
1257
- expected: "(null | string)",
1258
- value: input.name
1259
- }), "string" === typeof input.profileResourcePath || _report(_exceptionable, {
1260
- path: _path + ".profileResourcePath",
1261
- expected: "string",
1262
- value: input.profileResourcePath
1263
- }), "string" === typeof input.avatarUrl || _report(_exceptionable, {
1264
- path: _path + ".avatarUrl",
1265
- expected: "string",
1266
- value: input.avatarUrl
1267
- }), "string" === typeof input.__isNode || _report(_exceptionable, {
1268
- path: _path + ".__isNode",
1269
- expected: "string",
1270
- value: input.__isNode
1271
- })].every(flag => flag); const _vo43 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.isEnterpriseManagedUser || _report(_exceptionable, {
1272
- path: _path + ".isEnterpriseManagedUser",
1273
- expected: "boolean",
1274
- value: input.isEnterpriseManagedUser
1275
- }), (undefined !== input.enterpriseManagedEnterpriseId || _report(_exceptionable, {
1276
- path: _path + ".enterpriseManagedEnterpriseId",
1277
- expected: "null",
1278
- value: input.enterpriseManagedEnterpriseId
1279
- })) && (null === input.enterpriseManagedEnterpriseId || _report(_exceptionable, {
1280
- path: _path + ".enterpriseManagedEnterpriseId",
1281
- expected: "null",
1282
- value: input.enterpriseManagedEnterpriseId
1283
- })), "string" === typeof input.login || _report(_exceptionable, {
1284
- path: _path + ".login",
1285
- expected: "string",
1286
- value: input.login
1287
- }), "string" === typeof input.id || _report(_exceptionable, {
1288
- path: _path + ".id",
1289
- expected: "string",
1290
- value: input.id
1291
- }), "string" === typeof input.avatarUrl || _report(_exceptionable, {
1292
- path: _path + ".avatarUrl",
1293
- expected: "string",
1294
- value: input.avatarUrl
1295
- }), "string" === typeof input.__isActor || _report(_exceptionable, {
1296
- path: _path + ".__isActor",
1297
- expected: "string",
1298
- value: input.__isActor
1299
- }), "string" === typeof input.__typename || _report(_exceptionable, {
1300
- path: _path + ".__typename",
1301
- expected: "string",
1302
- value: input.__typename
1303
- }), null === input.name || "string" === typeof input.name || _report(_exceptionable, {
1304
- path: _path + ".name",
1305
- expected: "(null | string)",
1306
- value: input.name
1307
- }), "string" === typeof input.profileResourcePath || _report(_exceptionable, {
1308
- path: _path + ".profileResourcePath",
1309
- expected: "string",
1310
- value: input.profileResourcePath
1311
- })].every(flag => flag); const _vo44 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1312
- const value = input[key];
1313
- if (undefined === value)
1314
- return true;
1315
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
1316
- path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1317
- expected: "Record<string, IssueUpdateSubscriptionResponse>",
1318
- value: value
1319
- })) && _vo45(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
1320
- path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1321
- expected: "Record<string, IssueUpdateSubscriptionResponse>",
1322
- value: value
1323
- });
1324
- }).every(flag => flag)].every(flag => flag); const _vo45 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1325
- const value = input[key];
1326
- if (undefined === value)
1327
- return true;
1328
- return ("object" === typeof value && null !== value || _report(_exceptionable, {
1329
- path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1330
- expected: "IssueUpdateSubscriptionResponse",
1331
- value: value
1332
- })) && _vo46(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
1333
- path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1334
- expected: "IssueUpdateSubscriptionResponse",
1335
- value: value
1336
- });
1337
- }).every(flag => flag)].every(flag => flag); const _vo46 = (input, _path, _exceptionable = true) => [("object" === typeof input.response && null !== input.response || _report(_exceptionable, {
1338
- path: _path + ".response",
1339
- expected: "__type.o37",
1340
- value: input.response
1341
- })) && _vo47(input.response, _path + ".response", true && _exceptionable) || _report(_exceptionable, {
1342
- path: _path + ".response",
1343
- expected: "__type.o37",
1344
- value: input.response
1345
- }), "string" === typeof input.subscriptionId || _report(_exceptionable, {
1346
- path: _path + ".subscriptionId",
1347
- expected: "string",
1348
- value: input.subscriptionId
1349
- })].every(flag => flag); const _vo47 = (input, _path, _exceptionable = true) => [("object" === typeof input.data && null !== input.data || _report(_exceptionable, {
1350
- path: _path + ".data",
1351
- expected: "__type.o38",
1352
- value: input.data
1353
- })) && _vo48(input.data, _path + ".data", true && _exceptionable) || _report(_exceptionable, {
1354
- path: _path + ".data",
1355
- expected: "__type.o38",
1356
- value: input.data
1357
- })].every(flag => flag); const _vo48 = (input, _path, _exceptionable = true) => [("object" === typeof input.issueUpdated && null !== input.issueUpdated || _report(_exceptionable, {
1358
- path: _path + ".issueUpdated",
1359
- expected: "__type.o39",
1360
- value: input.issueUpdated
1361
- })) && _vo49(input.issueUpdated, _path + ".issueUpdated", true && _exceptionable) || _report(_exceptionable, {
1362
- path: _path + ".issueUpdated",
1363
- expected: "__type.o39",
1364
- value: input.issueUpdated
1365
- })].every(flag => flag); const _vo49 = (input, _path, _exceptionable = true) => [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true].every(flag => flag); const _vo50 = (input, _path, _exceptionable = true) => [undefined === input.initial_view_content || ("object" === typeof input.initial_view_content && null !== input.initial_view_content && false === Array.isArray(input.initial_view_content) || _report(_exceptionable, {
1366
- path: _path + ".initial_view_content",
1367
- expected: "(__type.o41 | undefined)",
1368
- value: input.initial_view_content
1369
- })) && _vo51(input.initial_view_content, _path + ".initial_view_content", true && _exceptionable) || _report(_exceptionable, {
1370
- path: _path + ".initial_view_content",
1371
- expected: "(__type.o41 | undefined)",
1372
- value: input.initial_view_content
1373
- }), undefined === input.current_user || ("object" === typeof input.current_user && null !== input.current_user || _report(_exceptionable, {
1374
- path: _path + ".current_user",
1375
- expected: "(__type.o42 | undefined)",
1376
- value: input.current_user
1377
- })) && _vo52(input.current_user, _path + ".current_user", true && _exceptionable) || _report(_exceptionable, {
1378
- path: _path + ".current_user",
1379
- expected: "(__type.o42 | undefined)",
1380
- value: input.current_user
1381
- }), undefined === input.current_user_settings || ("object" === typeof input.current_user_settings && null !== input.current_user_settings && false === Array.isArray(input.current_user_settings) || _report(_exceptionable, {
1382
- path: _path + ".current_user_settings",
1383
- expected: "(__type.o43 | undefined)",
1384
- value: input.current_user_settings
1385
- })) && _vo53(input.current_user_settings, _path + ".current_user_settings", true && _exceptionable) || _report(_exceptionable, {
1386
- path: _path + ".current_user_settings",
1387
- expected: "(__type.o43 | undefined)",
1388
- value: input.current_user_settings
1389
- }), undefined === input.paste_url_link_as_plain_text || "boolean" === typeof input.paste_url_link_as_plain_text || _report(_exceptionable, {
1390
- path: _path + ".paste_url_link_as_plain_text",
1391
- expected: "(boolean | undefined)",
1392
- value: input.paste_url_link_as_plain_text
1393
- }), undefined === input.base_avatar_url || "string" === typeof input.base_avatar_url || _report(_exceptionable, {
1394
- path: _path + ".base_avatar_url",
1395
- expected: "(string | undefined)",
1396
- value: input.base_avatar_url
1397
- }), undefined === input.help_url || "string" === typeof input.help_url || _report(_exceptionable, {
1398
- path: _path + ".help_url",
1399
- expected: "(string | undefined)",
1400
- value: input.help_url
1401
- }), true, true, undefined === input.multi_tenant || "boolean" === typeof input.multi_tenant || _report(_exceptionable, {
1402
- path: _path + ".multi_tenant",
1403
- expected: "(boolean | undefined)",
1404
- value: input.multi_tenant
1405
- }), undefined === input.tracing || "boolean" === typeof input.tracing || _report(_exceptionable, {
1406
- path: _path + ".tracing",
1407
- expected: "(boolean | undefined)",
1408
- value: input.tracing
1409
- }), undefined === input.tracing_flamegraph || "boolean" === typeof input.tracing_flamegraph || _report(_exceptionable, {
1410
- path: _path + ".tracing_flamegraph",
1411
- expected: "(boolean | undefined)",
1412
- value: input.tracing_flamegraph
1413
- }), undefined === input.catalog_service || "string" === typeof input.catalog_service || _report(_exceptionable, {
1414
- path: _path + ".catalog_service",
1415
- expected: "(string | undefined)",
1416
- value: input.catalog_service
1417
- }), undefined === input.scoped_repository || ("object" === typeof input.scoped_repository && null !== input.scoped_repository || _report(_exceptionable, {
1418
- path: _path + ".scoped_repository",
1419
- expected: "(__type.o44 | undefined)",
1420
- value: input.scoped_repository
1421
- })) && _vo54(input.scoped_repository, _path + ".scoped_repository", true && _exceptionable) || _report(_exceptionable, {
1422
- path: _path + ".scoped_repository",
1423
- expected: "(__type.o44 | undefined)",
1424
- value: input.scoped_repository
1425
- }), undefined === input.semantic_search_enrolled || "boolean" === typeof input.semantic_search_enrolled || _report(_exceptionable, {
1426
- path: _path + ".semantic_search_enrolled",
1427
- expected: "(boolean | undefined)",
1428
- value: input.semantic_search_enrolled
1429
- }), true, true, undefined === input.enabled_features || ("object" === typeof input.enabled_features && null !== input.enabled_features && false === Array.isArray(input.enabled_features) || _report(_exceptionable, {
1430
- path: _path + ".enabled_features",
1431
- expected: "(Record<string, boolean> | undefined)",
1432
- value: input.enabled_features
1433
- })) && _vo55(input.enabled_features, _path + ".enabled_features", true && _exceptionable) || _report(_exceptionable, {
1434
- path: _path + ".enabled_features",
1435
- expected: "(Record<string, boolean> | undefined)",
1436
- value: input.enabled_features
1437
- }), false === _exceptionable || Object.keys(input).map(key => {
1438
- if (["initial_view_content", "current_user", "current_user_settings", "paste_url_link_as_plain_text", "base_avatar_url", "help_url", "sso_organizations", "current_sso_orgs_match_dismissed_cookie", "multi_tenant", "tracing", "tracing_flamegraph", "catalog_service", "scoped_repository", "semantic_search_enrolled", "semantic_search_feedback_url", "copilot_api_url", "enabled_features"].some(prop => key === prop))
1439
- return true;
1440
- const value = input[key];
1441
- if (undefined === value)
1442
- return true;
1443
- return true;
1444
- }).every(flag => flag)].every(flag => flag); const _vo51 = (input, _path, _exceptionable = true) => [true, undefined === input.can_edit_view || "boolean" === typeof input.can_edit_view || _report(_exceptionable, {
1445
- path: _path + ".can_edit_view",
1446
- expected: "(boolean | undefined)",
1447
- value: input.can_edit_view
1448
- }), false === _exceptionable || Object.keys(input).map(key => {
1449
- if (["team_id", "can_edit_view"].some(prop => key === prop))
1450
- return true;
1451
- const value = input[key];
1452
- if (undefined === value)
1453
- return true;
1454
- return true;
1455
- }).every(flag => flag)].every(flag => flag); const _vo52 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
1456
- path: _path + ".id",
1457
- expected: "string",
1458
- value: input.id
1459
- }), "string" === typeof input.login || _report(_exceptionable, {
1460
- path: _path + ".login",
1461
- expected: "string",
1462
- value: input.login
1463
- }), "string" === typeof input.avatarUrl || _report(_exceptionable, {
1464
- path: _path + ".avatarUrl",
1465
- expected: "string",
1466
- value: input.avatarUrl
1467
- }), "boolean" === typeof input.is_staff || _report(_exceptionable, {
1468
- path: _path + ".is_staff",
1469
- expected: "boolean",
1470
- value: input.is_staff
1471
- }), "boolean" === typeof input.is_emu || _report(_exceptionable, {
1472
- path: _path + ".is_emu",
1473
- expected: "boolean",
1474
- value: input.is_emu
1475
- }), true, false === _exceptionable || Object.keys(input).map(key => {
1476
- if (["id", "login", "avatarUrl", "is_staff", "is_emu", "name"].some(prop => key === prop))
1477
- return true;
1478
- const value = input[key];
1479
- if (undefined === value)
1480
- return true;
1481
- return true;
1482
- }).every(flag => flag)].every(flag => flag); const _vo53 = (input, _path, _exceptionable = true) => [undefined === input.use_monospace_font || "boolean" === typeof input.use_monospace_font || _report(_exceptionable, {
1483
- path: _path + ".use_monospace_font",
1484
- expected: "(boolean | undefined)",
1485
- value: input.use_monospace_font
1486
- }), undefined === input.use_single_key_shortcut || "boolean" === typeof input.use_single_key_shortcut || _report(_exceptionable, {
1487
- path: _path + ".use_single_key_shortcut",
1488
- expected: "(boolean | undefined)",
1489
- value: input.use_single_key_shortcut
1490
- }), undefined === input.preferred_emoji_skin_tone || "number" === typeof input.preferred_emoji_skin_tone || _report(_exceptionable, {
1491
- path: _path + ".preferred_emoji_skin_tone",
1492
- expected: "(number | undefined)",
1493
- value: input.preferred_emoji_skin_tone
1494
- }), undefined === input.copilot_show_functionality || "boolean" === typeof input.copilot_show_functionality || _report(_exceptionable, {
1495
- path: _path + ".copilot_show_functionality",
1496
- expected: "(boolean | undefined)",
1497
- value: input.copilot_show_functionality
1498
- }), false === _exceptionable || Object.keys(input).map(key => {
1499
- if (["use_monospace_font", "use_single_key_shortcut", "preferred_emoji_skin_tone", "copilot_show_functionality"].some(prop => key === prop))
1500
- return true;
1501
- const value = input[key];
1502
- if (undefined === value)
1503
- return true;
1504
- return true;
1505
- }).every(flag => flag)].every(flag => flag); const _vo54 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
1506
- path: _path + ".id",
1507
- expected: "string",
1508
- value: input.id
1509
- }), "string" === typeof input.owner || _report(_exceptionable, {
1510
- path: _path + ".owner",
1511
- expected: "string",
1512
- value: input.owner
1513
- }), "string" === typeof input.name || _report(_exceptionable, {
1514
- path: _path + ".name",
1515
- expected: "string",
1516
- value: input.name
1517
- }), "boolean" === typeof input.is_archived || _report(_exceptionable, {
1518
- path: _path + ".is_archived",
1519
- expected: "boolean",
1520
- value: input.is_archived
1521
- }), false === _exceptionable || Object.keys(input).map(key => {
1522
- if (["id", "owner", "name", "is_archived"].some(prop => key === prop))
1523
- return true;
1524
- const value = input[key];
1525
- if (undefined === value)
1526
- return true;
1527
- return true;
1528
- }).every(flag => flag)].every(flag => flag); const _vo55 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1529
- const value = input[key];
1530
- if (undefined === value)
1531
- return true;
1532
- return "boolean" === typeof value || _report(_exceptionable, {
1533
- path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1534
- expected: "boolean",
1535
- value: value
1536
- });
1537
- }).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
1538
- if (false === __is(input)) {
1539
- errors = [];
1540
- _report = __typia_transform__validateReport._validateReport(errors);
1541
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
1542
- path: _path + "",
1543
- expected: "GitHubBetaFeatureViewData",
1544
- value: input
1545
- })) && _vo0(input, _path + "", true) || _report(true, {
1546
- path: _path + "",
1547
- expected: "GitHubBetaFeatureViewData",
1548
- value: input
1549
- }))(input, "$input", true);
1550
- const success = 0 === errors.length;
1551
- return success ? {
1552
- success,
1553
- data: input
1554
- } : {
1555
- success,
1556
- errors,
1557
- data: input
1558
- };
1559
- }
1560
- return {
1561
- success: true,
1562
- data: input
1563
- };
1564
- }; })()(data);
1565
- throw new Error(`Invalid data: validateResult: ${JSON.stringify(validateResult)}, data: ${JSON.stringify(data)}`);
1566
- }
1567
- }
1568
- if (!isValidStructure(data)) {
1569
- throw new Error('Data structure validation failed');
1570
- }
1571
- const issueData = data.payload.preloadedQueries[0].result.data.repository.issue;
1572
- const issueRemainingCount = issueData.frontTimelineItems.totalCount -
1573
- issueData.frontTimelineItems.edges.length -
1574
- issueData.backTimelineItems.edges.length;
1575
- const loadedMoreIssues = issueUrl.includes('/pull/')
1576
- ? []
1577
- : await this.getFrontTimelineItems(issueUrl, issueData.frontTimelineItems.pageInfo.endCursor, issueData.id, issueRemainingCount);
1578
- const statusTimeline = issueData.frontTimelineItems.edges
1579
- .concat(loadedMoreIssues)
1580
- .concat(issueData.backTimelineItems.edges)
1581
- .filter((edge, index, self) => self.findIndex((t) => !!t.node && !!edge.node && t.node.id === edge.node.id) === index)
1582
- .filter((edge) => !!edge.node &&
1583
- edge.node.__typename === 'ProjectV2ItemStatusChangedEvent')
1584
- .map((edge) => ({
1585
- time: edge.node.createdAt,
1586
- author: edge.node.actor?.login || '',
1587
- from: edge.node.previousStatus || '',
1588
- to: edge.node.status || '',
1589
- }));
1590
- return {
1591
- url: issueUrl,
1592
- title: issueData.title,
1593
- status: statusTimeline.length > 0
1594
- ? statusTimeline[statusTimeline.length - 1].to
1595
- : '',
1596
- assignees: issueData.assignedActors.nodes.map((node) => node.login),
1597
- labels: issueData.labels.edges.map((edge) => edge.node.name),
1598
- project: issueData.projectItemsNext?.edges[0]?.node.project.title ?? '',
1599
- statusTimeline,
1600
- createdAt: new Date(issueData.createdAt),
1601
- };
1602
- };
1603
- }
1604
- }
1605
- exports.InternalGraphqlIssueRepository = InternalGraphqlIssueRepository;
1606
- //# sourceMappingURL=InternalGraphqlIssueRepository.js.map