github-issue-tower-defence-management 1.15.3 → 1.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +73 -47
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
- package/bin/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.js +1 -1
- package/bin/adapter/repositories/issue/InternalGraphqlIssueRepository.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.15.4](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.15.3...v1.15.4) (2025-04-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency typia to v9 ([b2508ef](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/b2508ef4cbe85604f4699f48570a96c5d31c63ac))
|
|
7
|
+
|
|
1
8
|
## [1.15.3](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.15.2...v1.15.3) (2025-04-06)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,9 +1,33 @@
|
|
|
1
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
exports.HandleScheduledEventUseCaseHandler = void 0;
|
|
30
|
+
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
7
31
|
const yaml_1 = __importDefault(require("yaml"));
|
|
8
32
|
const typia_1 = __importDefault(require("typia"));
|
|
9
33
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -46,186 +70,188 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
46
70
|
});
|
|
47
71
|
const configFileContent = fs_1.default.readFileSync(configFilePath, 'utf8');
|
|
48
72
|
const input = yaml_1.default.parse(configFileContent);
|
|
49
|
-
if (!(() => { const
|
|
50
|
-
throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const
|
|
73
|
+
if (!(() => { const _io0 = input => "string" === typeof input.projectName && "string" === typeof input.org && "string" === typeof input.projectUrl && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io1(input.workingReport)) && "string" === typeof input.urlOfStoryView && "string" === typeof input.disabledStatus && ("object" === typeof input.credentials && null !== input.credentials && _io2(input.credentials)); const _io1 = input => "string" === typeof input.repo && (Array.isArray(input.members) && input.members.every(elem => "string" === typeof elem)) && (undefined === input.warningThresholdHour || "number" === typeof input.warningThresholdHour) && "string" === typeof input.spreadsheetUrl && (undefined === input.reportIssueTemplate || "string" === typeof input.reportIssueTemplate) && (Array.isArray(input.reportIssueLabels) && input.reportIssueLabels.every(elem => "string" === typeof elem)); const _io2 = input => "object" === typeof input.manager && null !== input.manager && _io3(input.manager) && ("object" === typeof input.bot && null !== input.bot && _io7(input.bot)); const _io3 = input => "object" === typeof input.github && null !== input.github && _io4(input.github) && ("object" === typeof input.slack && null !== input.slack && _io5(input.slack)) && ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount && _io6(input.googleServiceAccount)); const _io4 = input => "string" === typeof input.token; const _io5 = input => "string" === typeof input.userToken; const _io6 = input => "string" === typeof input.serviceAccountKey; const _io7 = input => "object" === typeof input.github && null !== input.github && _io8(input.github); const _io8 = input => "string" === typeof input.token && "string" === typeof input.name && "string" === typeof input.password && "string" === typeof input.authenticatorKey; return input => "object" === typeof input && null !== input && _io0(input); })()(input)) {
|
|
74
|
+
throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const _io0 = input => "string" === typeof input.projectName && "string" === typeof input.org && "string" === typeof input.projectUrl && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io1(input.workingReport)) && "string" === typeof input.urlOfStoryView && "string" === typeof input.disabledStatus && ("object" === typeof input.credentials && null !== input.credentials && _io2(input.credentials)); const _io1 = input => "string" === typeof input.repo && (Array.isArray(input.members) && input.members.every(elem => "string" === typeof elem)) && (undefined === input.warningThresholdHour || "number" === typeof input.warningThresholdHour) && "string" === typeof input.spreadsheetUrl && (undefined === input.reportIssueTemplate || "string" === typeof input.reportIssueTemplate) && (Array.isArray(input.reportIssueLabels) && input.reportIssueLabels.every(elem => "string" === typeof elem)); const _io2 = input => "object" === typeof input.manager && null !== input.manager && _io3(input.manager) && ("object" === typeof input.bot && null !== input.bot && _io7(input.bot)); const _io3 = input => "object" === typeof input.github && null !== input.github && _io4(input.github) && ("object" === typeof input.slack && null !== input.slack && _io5(input.slack)) && ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount && _io6(input.googleServiceAccount)); const _io4 = input => "string" === typeof input.token; const _io5 = input => "string" === typeof input.userToken; const _io6 = input => "string" === typeof input.serviceAccountKey; const _io7 = input => "object" === typeof input.github && null !== input.github && _io8(input.github); const _io8 = input => "string" === typeof input.token && "string" === typeof input.name && "string" === typeof input.password && "string" === typeof input.authenticatorKey; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.projectName || _report(_exceptionable, {
|
|
51
75
|
path: _path + ".projectName",
|
|
52
76
|
expected: "string",
|
|
53
77
|
value: input.projectName
|
|
54
|
-
}), "string" === typeof input.org ||
|
|
78
|
+
}), "string" === typeof input.org || _report(_exceptionable, {
|
|
55
79
|
path: _path + ".org",
|
|
56
80
|
expected: "string",
|
|
57
81
|
value: input.org
|
|
58
|
-
}), "string" === typeof input.projectUrl ||
|
|
82
|
+
}), "string" === typeof input.projectUrl || _report(_exceptionable, {
|
|
59
83
|
path: _path + ".projectUrl",
|
|
60
84
|
expected: "string",
|
|
61
85
|
value: input.projectUrl
|
|
62
|
-
}), "string" === typeof input.manager ||
|
|
86
|
+
}), "string" === typeof input.manager || _report(_exceptionable, {
|
|
63
87
|
path: _path + ".manager",
|
|
64
88
|
expected: "string",
|
|
65
89
|
value: input.manager
|
|
66
|
-
}), ("object" === typeof input.workingReport && null !== input.workingReport ||
|
|
90
|
+
}), ("object" === typeof input.workingReport && null !== input.workingReport || _report(_exceptionable, {
|
|
67
91
|
path: _path + ".workingReport",
|
|
68
92
|
expected: "__type",
|
|
69
93
|
value: input.workingReport
|
|
70
|
-
})) &&
|
|
94
|
+
})) && _vo1(input.workingReport, _path + ".workingReport", true && _exceptionable) || _report(_exceptionable, {
|
|
71
95
|
path: _path + ".workingReport",
|
|
72
96
|
expected: "__type",
|
|
73
97
|
value: input.workingReport
|
|
74
|
-
}), "string" === typeof input.urlOfStoryView ||
|
|
98
|
+
}), "string" === typeof input.urlOfStoryView || _report(_exceptionable, {
|
|
75
99
|
path: _path + ".urlOfStoryView",
|
|
76
100
|
expected: "string",
|
|
77
101
|
value: input.urlOfStoryView
|
|
78
|
-
}), "string" === typeof input.disabledStatus ||
|
|
102
|
+
}), "string" === typeof input.disabledStatus || _report(_exceptionable, {
|
|
79
103
|
path: _path + ".disabledStatus",
|
|
80
104
|
expected: "string",
|
|
81
105
|
value: input.disabledStatus
|
|
82
|
-
}), ("object" === typeof input.credentials && null !== input.credentials ||
|
|
106
|
+
}), ("object" === typeof input.credentials && null !== input.credentials || _report(_exceptionable, {
|
|
83
107
|
path: _path + ".credentials",
|
|
84
108
|
expected: "__type.o1",
|
|
85
109
|
value: input.credentials
|
|
86
|
-
})) &&
|
|
110
|
+
})) && _vo2(input.credentials, _path + ".credentials", true && _exceptionable) || _report(_exceptionable, {
|
|
87
111
|
path: _path + ".credentials",
|
|
88
112
|
expected: "__type.o1",
|
|
89
113
|
value: input.credentials
|
|
90
|
-
})].every(flag => flag); const
|
|
114
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.repo || _report(_exceptionable, {
|
|
91
115
|
path: _path + ".repo",
|
|
92
116
|
expected: "string",
|
|
93
117
|
value: input.repo
|
|
94
|
-
}), (Array.isArray(input.members) ||
|
|
118
|
+
}), (Array.isArray(input.members) || _report(_exceptionable, {
|
|
95
119
|
path: _path + ".members",
|
|
96
120
|
expected: "Array<string>",
|
|
97
121
|
value: input.members
|
|
98
|
-
})) && input.members.map((elem, _index3) => "string" === typeof elem ||
|
|
122
|
+
})) && input.members.map((elem, _index3) => "string" === typeof elem || _report(_exceptionable, {
|
|
99
123
|
path: _path + ".members[" + _index3 + "]",
|
|
100
124
|
expected: "string",
|
|
101
125
|
value: elem
|
|
102
|
-
})).every(flag => flag) ||
|
|
126
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
103
127
|
path: _path + ".members",
|
|
104
128
|
expected: "Array<string>",
|
|
105
129
|
value: input.members
|
|
106
|
-
}), undefined === input.warningThresholdHour || "number" === typeof input.warningThresholdHour ||
|
|
130
|
+
}), undefined === input.warningThresholdHour || "number" === typeof input.warningThresholdHour || _report(_exceptionable, {
|
|
107
131
|
path: _path + ".warningThresholdHour",
|
|
108
132
|
expected: "(number | undefined)",
|
|
109
133
|
value: input.warningThresholdHour
|
|
110
|
-
}), "string" === typeof input.spreadsheetUrl ||
|
|
134
|
+
}), "string" === typeof input.spreadsheetUrl || _report(_exceptionable, {
|
|
111
135
|
path: _path + ".spreadsheetUrl",
|
|
112
136
|
expected: "string",
|
|
113
137
|
value: input.spreadsheetUrl
|
|
114
|
-
}), undefined === input.reportIssueTemplate || "string" === typeof input.reportIssueTemplate ||
|
|
138
|
+
}), undefined === input.reportIssueTemplate || "string" === typeof input.reportIssueTemplate || _report(_exceptionable, {
|
|
115
139
|
path: _path + ".reportIssueTemplate",
|
|
116
140
|
expected: "(string | undefined)",
|
|
117
141
|
value: input.reportIssueTemplate
|
|
118
|
-
}), (Array.isArray(input.reportIssueLabels) ||
|
|
142
|
+
}), (Array.isArray(input.reportIssueLabels) || _report(_exceptionable, {
|
|
119
143
|
path: _path + ".reportIssueLabels",
|
|
120
144
|
expected: "Array<string>",
|
|
121
145
|
value: input.reportIssueLabels
|
|
122
|
-
})) && input.reportIssueLabels.map((elem, _index4) => "string" === typeof elem ||
|
|
146
|
+
})) && input.reportIssueLabels.map((elem, _index4) => "string" === typeof elem || _report(_exceptionable, {
|
|
123
147
|
path: _path + ".reportIssueLabels[" + _index4 + "]",
|
|
124
148
|
expected: "string",
|
|
125
149
|
value: elem
|
|
126
|
-
})).every(flag => flag) ||
|
|
150
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
127
151
|
path: _path + ".reportIssueLabels",
|
|
128
152
|
expected: "Array<string>",
|
|
129
153
|
value: input.reportIssueLabels
|
|
130
|
-
})].every(flag => flag); const
|
|
154
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [("object" === typeof input.manager && null !== input.manager || _report(_exceptionable, {
|
|
131
155
|
path: _path + ".manager",
|
|
132
156
|
expected: "__type.o2",
|
|
133
157
|
value: input.manager
|
|
134
|
-
})) &&
|
|
158
|
+
})) && _vo3(input.manager, _path + ".manager", true && _exceptionable) || _report(_exceptionable, {
|
|
135
159
|
path: _path + ".manager",
|
|
136
160
|
expected: "__type.o2",
|
|
137
161
|
value: input.manager
|
|
138
|
-
}), ("object" === typeof input.bot && null !== input.bot ||
|
|
162
|
+
}), ("object" === typeof input.bot && null !== input.bot || _report(_exceptionable, {
|
|
139
163
|
path: _path + ".bot",
|
|
140
164
|
expected: "__type.o6",
|
|
141
165
|
value: input.bot
|
|
142
|
-
})) &&
|
|
166
|
+
})) && _vo7(input.bot, _path + ".bot", true && _exceptionable) || _report(_exceptionable, {
|
|
143
167
|
path: _path + ".bot",
|
|
144
168
|
expected: "__type.o6",
|
|
145
169
|
value: input.bot
|
|
146
|
-
})].every(flag => flag); const
|
|
170
|
+
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [("object" === typeof input.github && null !== input.github || _report(_exceptionable, {
|
|
147
171
|
path: _path + ".github",
|
|
148
172
|
expected: "__type.o3",
|
|
149
173
|
value: input.github
|
|
150
|
-
})) &&
|
|
174
|
+
})) && _vo4(input.github, _path + ".github", true && _exceptionable) || _report(_exceptionable, {
|
|
151
175
|
path: _path + ".github",
|
|
152
176
|
expected: "__type.o3",
|
|
153
177
|
value: input.github
|
|
154
|
-
}), ("object" === typeof input.slack && null !== input.slack ||
|
|
178
|
+
}), ("object" === typeof input.slack && null !== input.slack || _report(_exceptionable, {
|
|
155
179
|
path: _path + ".slack",
|
|
156
180
|
expected: "__type.o4",
|
|
157
181
|
value: input.slack
|
|
158
|
-
})) &&
|
|
182
|
+
})) && _vo5(input.slack, _path + ".slack", true && _exceptionable) || _report(_exceptionable, {
|
|
159
183
|
path: _path + ".slack",
|
|
160
184
|
expected: "__type.o4",
|
|
161
185
|
value: input.slack
|
|
162
|
-
}), ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount ||
|
|
186
|
+
}), ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount || _report(_exceptionable, {
|
|
163
187
|
path: _path + ".googleServiceAccount",
|
|
164
188
|
expected: "__type.o5",
|
|
165
189
|
value: input.googleServiceAccount
|
|
166
|
-
})) &&
|
|
190
|
+
})) && _vo6(input.googleServiceAccount, _path + ".googleServiceAccount", true && _exceptionable) || _report(_exceptionable, {
|
|
167
191
|
path: _path + ".googleServiceAccount",
|
|
168
192
|
expected: "__type.o5",
|
|
169
193
|
value: input.googleServiceAccount
|
|
170
|
-
})].every(flag => flag); const
|
|
194
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.token || _report(_exceptionable, {
|
|
171
195
|
path: _path + ".token",
|
|
172
196
|
expected: "string",
|
|
173
197
|
value: input.token
|
|
174
|
-
})].every(flag => flag); const
|
|
198
|
+
})].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.userToken || _report(_exceptionable, {
|
|
175
199
|
path: _path + ".userToken",
|
|
176
200
|
expected: "string",
|
|
177
201
|
value: input.userToken
|
|
178
|
-
})].every(flag => flag); const
|
|
202
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.serviceAccountKey || _report(_exceptionable, {
|
|
179
203
|
path: _path + ".serviceAccountKey",
|
|
180
204
|
expected: "string",
|
|
181
205
|
value: input.serviceAccountKey
|
|
182
|
-
})].every(flag => flag); const
|
|
206
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [("object" === typeof input.github && null !== input.github || _report(_exceptionable, {
|
|
183
207
|
path: _path + ".github",
|
|
184
208
|
expected: "__type.o7",
|
|
185
209
|
value: input.github
|
|
186
|
-
})) &&
|
|
210
|
+
})) && _vo8(input.github, _path + ".github", true && _exceptionable) || _report(_exceptionable, {
|
|
187
211
|
path: _path + ".github",
|
|
188
212
|
expected: "__type.o7",
|
|
189
213
|
value: input.github
|
|
190
|
-
})].every(flag => flag); const
|
|
214
|
+
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.token || _report(_exceptionable, {
|
|
191
215
|
path: _path + ".token",
|
|
192
216
|
expected: "string",
|
|
193
217
|
value: input.token
|
|
194
|
-
}), "string" === typeof input.name ||
|
|
218
|
+
}), "string" === typeof input.name || _report(_exceptionable, {
|
|
195
219
|
path: _path + ".name",
|
|
196
220
|
expected: "string",
|
|
197
221
|
value: input.name
|
|
198
|
-
}), "string" === typeof input.password ||
|
|
222
|
+
}), "string" === typeof input.password || _report(_exceptionable, {
|
|
199
223
|
path: _path + ".password",
|
|
200
224
|
expected: "string",
|
|
201
225
|
value: input.password
|
|
202
|
-
}), "string" === typeof input.authenticatorKey ||
|
|
226
|
+
}), "string" === typeof input.authenticatorKey || _report(_exceptionable, {
|
|
203
227
|
path: _path + ".authenticatorKey",
|
|
204
228
|
expected: "string",
|
|
205
229
|
value: input.authenticatorKey
|
|
206
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
230
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
207
231
|
if (false === __is(input)) {
|
|
208
232
|
errors = [];
|
|
209
|
-
|
|
210
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
233
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
234
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
211
235
|
path: _path + "",
|
|
212
236
|
expected: "inputType",
|
|
213
237
|
value: input
|
|
214
|
-
})) &&
|
|
238
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
215
239
|
path: _path + "",
|
|
216
240
|
expected: "inputType",
|
|
217
241
|
value: input
|
|
218
242
|
}))(input, "$input", true);
|
|
219
243
|
const success = 0 === errors.length;
|
|
220
|
-
return {
|
|
244
|
+
return success ? {
|
|
245
|
+
success,
|
|
246
|
+
data: input
|
|
247
|
+
} : {
|
|
221
248
|
success,
|
|
222
249
|
errors,
|
|
223
|
-
data:
|
|
250
|
+
data: input
|
|
224
251
|
};
|
|
225
252
|
}
|
|
226
253
|
return {
|
|
227
254
|
success: true,
|
|
228
|
-
errors: [],
|
|
229
255
|
data: input
|
|
230
256
|
};
|
|
231
257
|
}; })()(input))}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,4CAAoB;AACpB,kFAA+E;AAC/E,sFAAmF;AACnF,gGAA6F;AAC7F,0FAAuF;AACvF,wFAAqF;AACrF,4FAAyF;AACzF,sFAAmF;AACnF,wGAAqG;AACrG,8GAA2G;AAC3G,gHAA6G;AAC7G,sGAAmG;AACnG,gGAA6F;AAC7F,kGAA+F;AAC/F,gIAA6H;AAC7H,4GAAyG;AACzG,oGAAiG;AACjG,wGAAqG;AAIrG,0FAAuF;AACvF,wGAAqG;AACrG,wGAAqG;AACrG,kDAA0C;AAC1C,kIAA+H;AAC/H,wHAAqH;AACrH,8GAA2G;AAC3G,0GAAuG;AAEvG,MAAa,kCAAkC;IAA/C;QACE,WAAM,GAAG,KAAK,EACZ,cAAsB,EACtB,OAAgB,EAMf,EAAE;YACH,eAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAC7B,CAAC,QAA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5C,IAAI,mFAAwC,CAAC,eAAe,CAAC,CAAC;YAChE,MAAM,0BAA0B,GAAG,IAAI,uDAA0B,CAC/D,eAAe,CAChB,CAAC;YACF,MAAM,4BAA4B,GAAG,IAAI,2DAA4B,CACnE,eAAe,EACf,oBAAoB,CACrB,CAAC;YACF,MAAM,qBAAqB,GAAG,IAAI,6CAAqB,CACrD,eAAe,EACf,oBAAoB,CACrB,CAAC;YACF,MAAM,4BAA4B,GAAG,IAAI,2DAA4B,CACnE,eAAe,CAChB,CAAC;YACF,MAAM,4BAA4B,GAAG,IAAI,2DAA4B,CACnE,eAAe,EACf,oBAAoB,CACrB,CAAC;YACF,MAAM,yCAAyC,GAC7C,IAAI,qFAAyC,CAAC,eAAe,CAAC,CAAC;YACjE,MAAM,oCAAoC,GACxC,IAAI,2EAAoC,CACtC,oBAAoB,EACpB,eAAe,CAChB,CAAC;YACJ,MAAM,+BAA+B,GAAG,IAAI,iEAA+B,CACzE,oBAAoB,EACpB,eAAe,CAChB,CAAC;YAEF,MAAM,6BAA6B,GAAG,IAAI,6DAA6B,CACrE,eAAe,CAChB,CAAC;YACF,MAAM,2BAA2B,GAAG,IAAI,yDAA2B,CACjE,gCAAgC,EAChC,kBAAkB,EAClB,wCAAwC,EACxC,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,4BAA4B,EAC5B,4BAA4B,EAC5B,yCAAyC,EACzC,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,oBAAoB,EACpB,2BAA2B,EAC3B,iBAAiB,EACjB,eAAe,CAChB,CAAC;YAEF,OAAO,MAAM,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACtD,CAAC,CAAC;IACJ,CAAC;CAAA;AArKD,gFAqKC"}
|
|
@@ -119,7 +119,7 @@ class ApiV3CheerioRestIssueRepository extends BaseGitHubRepository_1.BaseGitHubR
|
|
|
119
119
|
createdAt: createdAt,
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
|
-
if ((() => { const
|
|
122
|
+
if ((() => { const _io0 = input => "string" === typeof input.nameWithOwner && "number" === typeof input.number && "string" === typeof input.title && ("OPEN" === input.state || "CLOSED" === input.state || "MERGED" === input.state) && (null === input.status || "string" === typeof input.status) && (null === input.story || "string" === typeof input.story) && (null === input.nextActionDate || input.nextActionDate instanceof Date) && (null === input.nextActionHour || "number" === typeof input.nextActionHour) && (null === input.estimationMinutes || "number" === typeof input.estimationMinutes) && (Array.isArray(input.dependedIssueUrls) && input.dependedIssueUrls.every(elem => "string" === typeof elem)) && (null === input.completionDate50PercentConfidence || input.completionDate50PercentConfidence instanceof Date) && "string" === typeof input.url && (Array.isArray(input.assignees) && input.assignees.every(elem => "string" === typeof elem)) && (Array.isArray(input.workingTimeline) && input.workingTimeline.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (Array.isArray(input.labels) && input.labels.every(elem => "string" === typeof elem)) && "string" === typeof input.org && "string" === typeof input.repo && "string" === typeof input.body && "string" === typeof input.itemId && "boolean" === typeof input.isPr && "boolean" === typeof input.isInProgress && "boolean" === typeof input.isClosed && input.createdAt instanceof Date; const _io1 = input => "string" === typeof input.author && input.startedAt instanceof Date && input.endedAt instanceof Date && "number" === typeof input.durationMinutes; return input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && _io0(elem)); })()(issues)) {
|
|
123
123
|
return issues;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -88,7 +88,7 @@ class InternalGraphqlIssueRepository extends BaseGitHubRepository_1.BaseGitHubRe
|
|
|
88
88
|
throw new Error('No script content found');
|
|
89
89
|
}
|
|
90
90
|
const data = JSON.parse(scriptContent);
|
|
91
|
-
if (!(() => { const
|
|
91
|
+
if (!(() => { const _io0 = input => "object" === typeof input.payload && null !== input.payload && _io1(input.payload); const _io1 = input => Array.isArray(input.preloadedQueries) && (input.preloadedQueries.length === 1 && ("object" === typeof input.preloadedQueries[0] && null !== input.preloadedQueries[0] && _io2(input.preloadedQueries[0]))); const _io2 = input => "object" === typeof input.variables && null !== input.variables && _io3(input.variables) && ("object" === typeof input.result && null !== input.result && _io4(input.result)); const _io3 = input => "string" === typeof input.owner && "string" === typeof input.repo && "number" === typeof input.number; const _io4 = input => "object" === typeof input.data && null !== input.data && _io5(input.data); const _io5 = input => "object" === typeof input.repository && null !== input.repository && _io6(input.repository); const _io6 = input => "object" === typeof input.issue && null !== input.issue && _io7(input.issue); const _io7 = input => "string" === typeof input.id && "string" === typeof input.title && "string" === typeof input.state && ("object" === typeof input.assignees && null !== input.assignees && _io8(input.assignees)) && ("object" === typeof input.labels && null !== input.labels && _io10(input.labels)) && ("object" === typeof input.projectItemsNext && null !== input.projectItemsNext && _io13(input.projectItemsNext)) && ("object" === typeof input.frontTimelineItems && null !== input.frontTimelineItems && _io17(input.frontTimelineItems)) && ("object" === typeof input.backTimelineItems && null !== input.backTimelineItems && _io21(input.backTimelineItems)); const _io8 = input => Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io9(elem)); const _io9 = input => "string" === typeof input.login; const _io10 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io11(elem)); const _io11 = input => "object" === typeof input.node && null !== input.node && _io12(input.node); const _io12 = input => "string" === typeof input.name; 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 => "object" === typeof input.project && null !== input.project && _io16(input.project); const _io16 = input => "string" === typeof input.title; const _io17 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io18(elem)) && ("object" === typeof input.pageInfo && null !== input.pageInfo && _io20(input.pageInfo)) && "number" === typeof input.totalCount; const _io18 = input => "object" === typeof input.node && null !== input.node && _io19(input.node); const _io19 = input => "string" === typeof input.__typename && "string" === typeof input.id; const _io20 = input => "boolean" === typeof input.hasNextPage && "string" === typeof input.endCursor; const _io21 = input => Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io22(elem)); const _io22 = input => "object" === typeof input.node && null !== input.node && _io23(input.node); const _io23 = input => "string" === typeof input.__typename && "string" === typeof input.id; return input => "object" === typeof input && null !== input && _io0(input); })()(data)) {
|
|
92
92
|
throw new Error(`Invalid data: ${JSON.stringify(data)}`);
|
|
93
93
|
}
|
|
94
94
|
const issueData = data.payload.preloadedQueries[0].result.data.repository.issue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-issue-tower-defence-management",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"dotenv": "^16.4.5",
|
|
75
75
|
"gh-cookie": "^1.3.1",
|
|
76
76
|
"googleapis": "^146.0.0",
|
|
77
|
-
"typia": "^
|
|
77
|
+
"typia": "^9.0.0",
|
|
78
78
|
"yaml": "^2.6.0"
|
|
79
79
|
}
|
|
80
80
|
}
|