@nestia/sdk 1.1.0-dev.20230413 → 1.1.0-dev.20230414

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.
@@ -48,7 +48,6 @@ var NestiaSdkConfig;
48
48
  }
49
49
  NestiaSdkConfig.get = get;
50
50
  const singleton = new Singleton_1.Singleton(() => __awaiter(this, void 0, void 0, function* () {
51
- var _a;
52
51
  if (fs_1.default.existsSync("nestia.config.ts") === false)
53
52
  return null;
54
53
  runner.register({
@@ -58,7 +57,7 @@ var NestiaSdkConfig;
58
57
  noEmit: true,
59
58
  },
60
59
  });
61
- const loaded = yield (_a = path_1.default.resolve("nestia.config.ts"), Promise.resolve().then(() => __importStar(require(_a))));
60
+ const loaded = yield Promise.resolve(`${path_1.default.resolve("nestia.config.ts")}`).then(s => __importStar(require(s)));
62
61
  if (typeof loaded !== "object")
63
62
  throw new Error("Error on NestiaConfig.get(): failed to load data");
64
63
  const config = typeof loaded.default === "object" ? loaded.default : loaded;
@@ -66,626 +65,726 @@ var NestiaSdkConfig;
66
65
  return (input => {
67
66
  const $guard = typia_1.assert.guard;
68
67
  const $join = typia_1.assert.join;
69
- ((input, _path, _exceptionable = true) => {
70
- const $ao0 = (input, _path, _exceptionable = true) => (null !== input.input || $guard(_exceptionable, {
71
- path: _path + ".input",
72
- expected: "(Array<string> | Resolve<INestiaConfig.IInput> | string)",
73
- value: input.input
74
- })) && (undefined !== input.input || $guard(_exceptionable, {
75
- path: _path + ".input",
76
- expected: "(Array<string> | Resolve<INestiaConfig.IInput> | string)",
77
- value: input.input
78
- })) && ("string" === typeof input.input || (Array.isArray(input.input) && input.input.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
79
- path: _path + ".input[" + _index1 + "]",
80
- expected: "string",
81
- value: elem
82
- })) || "object" === typeof input.input && null !== input.input && $ao1(input.input, _path + ".input", true && _exceptionable))) && (undefined === input.output || "string" === typeof input.output || $guard(_exceptionable, {
83
- path: _path + ".output",
84
- expected: "(string | undefined)",
85
- value: input.output
86
- })) && (undefined === input.compilerOptions || ("object" === typeof input.compilerOptions && null !== input.compilerOptions && false === Array.isArray(input.compilerOptions) || $guard(_exceptionable, {
87
- path: _path + ".compilerOptions",
88
- expected: "(Resolve<StripEnums<ts.CompilerOptions>> | undefined)",
89
- value: input.compilerOptions
90
- })) && $ao2(input.compilerOptions, _path + ".compilerOptions", true && _exceptionable)) && (undefined === input.assert || "boolean" === typeof input.assert || $guard(_exceptionable, {
91
- path: _path + ".assert",
92
- expected: "(boolean | undefined)",
93
- value: input.assert
94
- })) && (undefined === input.json || "boolean" === typeof input.json || $guard(_exceptionable, {
95
- path: _path + ".json",
96
- expected: "(boolean | undefined)",
97
- value: input.json
98
- })) && (undefined === input.primitive || "boolean" === typeof input.primitive || $guard(_exceptionable, {
99
- path: _path + ".primitive",
100
- expected: "(boolean | undefined)",
101
- value: input.primitive
102
- })) && (undefined === input.swagger || ("object" === typeof input.swagger && null !== input.swagger || $guard(_exceptionable, {
103
- path: _path + ".swagger",
104
- expected: "(Resolve<INestiaConfig.ISwaggerConfig> | undefined)",
105
- value: input.swagger
106
- })) && $ao4(input.swagger, _path + ".swagger", true && _exceptionable));
107
- const $ao1 = (input, _path, _exceptionable = true) => (Array.isArray(input.include) || $guard(_exceptionable, {
108
- path: _path + ".include",
109
- expected: "Array<string>",
110
- value: input.include
111
- })) && input.include.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
112
- path: _path + ".include[" + _index2 + "]",
113
- expected: "string",
114
- value: elem
115
- })) && (undefined === input.exclude || (Array.isArray(input.exclude) || $guard(_exceptionable, {
116
- path: _path + ".exclude",
117
- expected: "(Array<string> | undefined)",
118
- value: input.exclude
119
- })) && input.exclude.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
120
- path: _path + ".exclude[" + _index3 + "]",
121
- expected: "string",
122
- value: elem
123
- })));
124
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.allowJs || "boolean" === typeof input.allowJs || $guard(_exceptionable, {
125
- path: _path + ".allowJs",
126
- expected: "(boolean | undefined)",
127
- value: input.allowJs
128
- })) && (undefined === input.allowSyntheticDefaultImports || "boolean" === typeof input.allowSyntheticDefaultImports || $guard(_exceptionable, {
129
- path: _path + ".allowSyntheticDefaultImports",
130
- expected: "(boolean | undefined)",
131
- value: input.allowSyntheticDefaultImports
132
- })) && (undefined === input.allowUmdGlobalAccess || "boolean" === typeof input.allowUmdGlobalAccess || $guard(_exceptionable, {
133
- path: _path + ".allowUmdGlobalAccess",
134
- expected: "(boolean | undefined)",
135
- value: input.allowUmdGlobalAccess
136
- })) && (undefined === input.allowUnreachableCode || "boolean" === typeof input.allowUnreachableCode || $guard(_exceptionable, {
137
- path: _path + ".allowUnreachableCode",
138
- expected: "(boolean | undefined)",
139
- value: input.allowUnreachableCode
140
- })) && (undefined === input.allowUnusedLabels || "boolean" === typeof input.allowUnusedLabels || $guard(_exceptionable, {
141
- path: _path + ".allowUnusedLabels",
142
- expected: "(boolean | undefined)",
143
- value: input.allowUnusedLabels
144
- })) && (undefined === input.alwaysStrict || "boolean" === typeof input.alwaysStrict || $guard(_exceptionable, {
145
- path: _path + ".alwaysStrict",
146
- expected: "(boolean | undefined)",
147
- value: input.alwaysStrict
148
- })) && (undefined === input.baseUrl || "string" === typeof input.baseUrl || $guard(_exceptionable, {
149
- path: _path + ".baseUrl",
150
- expected: "(string | undefined)",
151
- value: input.baseUrl
152
- })) && (undefined === input.charset || "string" === typeof input.charset || $guard(_exceptionable, {
153
- path: _path + ".charset",
154
- expected: "(string | undefined)",
155
- value: input.charset
156
- })) && (undefined === input.checkJs || "boolean" === typeof input.checkJs || $guard(_exceptionable, {
157
- path: _path + ".checkJs",
158
- expected: "(boolean | undefined)",
159
- value: input.checkJs
160
- })) && (undefined === input.declaration || "boolean" === typeof input.declaration || $guard(_exceptionable, {
161
- path: _path + ".declaration",
162
- expected: "(boolean | undefined)",
163
- value: input.declaration
164
- })) && (undefined === input.declarationMap || "boolean" === typeof input.declarationMap || $guard(_exceptionable, {
165
- path: _path + ".declarationMap",
166
- expected: "(boolean | undefined)",
167
- value: input.declarationMap
168
- })) && (undefined === input.emitDeclarationOnly || "boolean" === typeof input.emitDeclarationOnly || $guard(_exceptionable, {
169
- path: _path + ".emitDeclarationOnly",
170
- expected: "(boolean | undefined)",
171
- value: input.emitDeclarationOnly
172
- })) && (undefined === input.declarationDir || "string" === typeof input.declarationDir || $guard(_exceptionable, {
173
- path: _path + ".declarationDir",
174
- expected: "(string | undefined)",
175
- value: input.declarationDir
176
- })) && (undefined === input.disableSizeLimit || "boolean" === typeof input.disableSizeLimit || $guard(_exceptionable, {
177
- path: _path + ".disableSizeLimit",
178
- expected: "(boolean | undefined)",
179
- value: input.disableSizeLimit
180
- })) && (undefined === input.disableSourceOfProjectReferenceRedirect || "boolean" === typeof input.disableSourceOfProjectReferenceRedirect || $guard(_exceptionable, {
181
- path: _path + ".disableSourceOfProjectReferenceRedirect",
182
- expected: "(boolean | undefined)",
183
- value: input.disableSourceOfProjectReferenceRedirect
184
- })) && (undefined === input.disableSolutionSearching || "boolean" === typeof input.disableSolutionSearching || $guard(_exceptionable, {
185
- path: _path + ".disableSolutionSearching",
186
- expected: "(boolean | undefined)",
187
- value: input.disableSolutionSearching
188
- })) && (undefined === input.disableReferencedProjectLoad || "boolean" === typeof input.disableReferencedProjectLoad || $guard(_exceptionable, {
189
- path: _path + ".disableReferencedProjectLoad",
190
- expected: "(boolean | undefined)",
191
- value: input.disableReferencedProjectLoad
192
- })) && (undefined === input.downlevelIteration || "boolean" === typeof input.downlevelIteration || $guard(_exceptionable, {
193
- path: _path + ".downlevelIteration",
194
- expected: "(boolean | undefined)",
195
- value: input.downlevelIteration
196
- })) && (undefined === input.emitBOM || "boolean" === typeof input.emitBOM || $guard(_exceptionable, {
197
- path: _path + ".emitBOM",
198
- expected: "(boolean | undefined)",
199
- value: input.emitBOM
200
- })) && (undefined === input.emitDecoratorMetadata || "boolean" === typeof input.emitDecoratorMetadata || $guard(_exceptionable, {
201
- path: _path + ".emitDecoratorMetadata",
202
- expected: "(boolean | undefined)",
203
- value: input.emitDecoratorMetadata
204
- })) && (undefined === input.exactOptionalPropertyTypes || "boolean" === typeof input.exactOptionalPropertyTypes || $guard(_exceptionable, {
205
- path: _path + ".exactOptionalPropertyTypes",
206
- expected: "(boolean | undefined)",
207
- value: input.exactOptionalPropertyTypes
208
- })) && (undefined === input.experimentalDecorators || "boolean" === typeof input.experimentalDecorators || $guard(_exceptionable, {
209
- path: _path + ".experimentalDecorators",
210
- expected: "(boolean | undefined)",
211
- value: input.experimentalDecorators
212
- })) && (undefined === input.forceConsistentCasingInFileNames || "boolean" === typeof input.forceConsistentCasingInFileNames || $guard(_exceptionable, {
213
- path: _path + ".forceConsistentCasingInFileNames",
214
- expected: "(boolean | undefined)",
215
- value: input.forceConsistentCasingInFileNames
216
- })) && (undefined === input.importHelpers || "boolean" === typeof input.importHelpers || $guard(_exceptionable, {
217
- path: _path + ".importHelpers",
218
- expected: "(boolean | undefined)",
219
- value: input.importHelpers
220
- })) && true && (undefined === input.inlineSourceMap || "boolean" === typeof input.inlineSourceMap || $guard(_exceptionable, {
221
- path: _path + ".inlineSourceMap",
222
- expected: "(boolean | undefined)",
223
- value: input.inlineSourceMap
224
- })) && (undefined === input.inlineSources || "boolean" === typeof input.inlineSources || $guard(_exceptionable, {
225
- path: _path + ".inlineSources",
226
- expected: "(boolean | undefined)",
227
- value: input.inlineSources
228
- })) && (undefined === input.isolatedModules || "boolean" === typeof input.isolatedModules || $guard(_exceptionable, {
229
- path: _path + ".isolatedModules",
230
- expected: "(boolean | undefined)",
231
- value: input.isolatedModules
232
- })) && true && (undefined === input.keyofStringsOnly || "boolean" === typeof input.keyofStringsOnly || $guard(_exceptionable, {
233
- path: _path + ".keyofStringsOnly",
234
- expected: "(boolean | undefined)",
235
- value: input.keyofStringsOnly
236
- })) && (undefined === input.lib || (Array.isArray(input.lib) || $guard(_exceptionable, {
237
- path: _path + ".lib",
238
- expected: "(Array<string> | undefined)",
239
- value: input.lib
240
- })) && input.lib.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
241
- path: _path + ".lib[" + _index4 + "]",
242
- expected: "string",
243
- value: elem
244
- }))) && (undefined === input.locale || "string" === typeof input.locale || $guard(_exceptionable, {
245
- path: _path + ".locale",
246
- expected: "(string | undefined)",
247
- value: input.locale
248
- })) && (undefined === input.mapRoot || "string" === typeof input.mapRoot || $guard(_exceptionable, {
249
- path: _path + ".mapRoot",
250
- expected: "(string | undefined)",
251
- value: input.mapRoot
252
- })) && true && true && true && (undefined === input.moduleSuffixes || (Array.isArray(input.moduleSuffixes) || $guard(_exceptionable, {
253
- path: _path + ".moduleSuffixes",
254
- expected: "(Array<string> | undefined)",
255
- value: input.moduleSuffixes
256
- })) && input.moduleSuffixes.every((elem, _index5) => "string" === typeof elem || $guard(_exceptionable, {
257
- path: _path + ".moduleSuffixes[" + _index5 + "]",
258
- expected: "string",
259
- value: elem
260
- }))) && true && true && (undefined === input.noEmit || "boolean" === typeof input.noEmit || $guard(_exceptionable, {
261
- path: _path + ".noEmit",
262
- expected: "(boolean | undefined)",
263
- value: input.noEmit
264
- })) && (undefined === input.noEmitHelpers || "boolean" === typeof input.noEmitHelpers || $guard(_exceptionable, {
265
- path: _path + ".noEmitHelpers",
266
- expected: "(boolean | undefined)",
267
- value: input.noEmitHelpers
268
- })) && (undefined === input.noEmitOnError || "boolean" === typeof input.noEmitOnError || $guard(_exceptionable, {
269
- path: _path + ".noEmitOnError",
270
- expected: "(boolean | undefined)",
271
- value: input.noEmitOnError
272
- })) && (undefined === input.noErrorTruncation || "boolean" === typeof input.noErrorTruncation || $guard(_exceptionable, {
273
- path: _path + ".noErrorTruncation",
274
- expected: "(boolean | undefined)",
275
- value: input.noErrorTruncation
276
- })) && (undefined === input.noFallthroughCasesInSwitch || "boolean" === typeof input.noFallthroughCasesInSwitch || $guard(_exceptionable, {
277
- path: _path + ".noFallthroughCasesInSwitch",
278
- expected: "(boolean | undefined)",
279
- value: input.noFallthroughCasesInSwitch
280
- })) && (undefined === input.noImplicitAny || "boolean" === typeof input.noImplicitAny || $guard(_exceptionable, {
281
- path: _path + ".noImplicitAny",
282
- expected: "(boolean | undefined)",
283
- value: input.noImplicitAny
284
- })) && (undefined === input.noImplicitReturns || "boolean" === typeof input.noImplicitReturns || $guard(_exceptionable, {
285
- path: _path + ".noImplicitReturns",
286
- expected: "(boolean | undefined)",
287
- value: input.noImplicitReturns
288
- })) && (undefined === input.noImplicitThis || "boolean" === typeof input.noImplicitThis || $guard(_exceptionable, {
289
- path: _path + ".noImplicitThis",
290
- expected: "(boolean | undefined)",
291
- value: input.noImplicitThis
292
- })) && (undefined === input.noStrictGenericChecks || "boolean" === typeof input.noStrictGenericChecks || $guard(_exceptionable, {
293
- path: _path + ".noStrictGenericChecks",
294
- expected: "(boolean | undefined)",
295
- value: input.noStrictGenericChecks
296
- })) && (undefined === input.noUnusedLocals || "boolean" === typeof input.noUnusedLocals || $guard(_exceptionable, {
297
- path: _path + ".noUnusedLocals",
298
- expected: "(boolean | undefined)",
299
- value: input.noUnusedLocals
300
- })) && (undefined === input.noUnusedParameters || "boolean" === typeof input.noUnusedParameters || $guard(_exceptionable, {
301
- path: _path + ".noUnusedParameters",
302
- expected: "(boolean | undefined)",
303
- value: input.noUnusedParameters
304
- })) && (undefined === input.noImplicitUseStrict || "boolean" === typeof input.noImplicitUseStrict || $guard(_exceptionable, {
305
- path: _path + ".noImplicitUseStrict",
306
- expected: "(boolean | undefined)",
307
- value: input.noImplicitUseStrict
308
- })) && (undefined === input.noPropertyAccessFromIndexSignature || "boolean" === typeof input.noPropertyAccessFromIndexSignature || $guard(_exceptionable, {
309
- path: _path + ".noPropertyAccessFromIndexSignature",
310
- expected: "(boolean | undefined)",
311
- value: input.noPropertyAccessFromIndexSignature
312
- })) && (undefined === input.assumeChangesOnlyAffectDirectDependencies || "boolean" === typeof input.assumeChangesOnlyAffectDirectDependencies || $guard(_exceptionable, {
313
- path: _path + ".assumeChangesOnlyAffectDirectDependencies",
314
- expected: "(boolean | undefined)",
315
- value: input.assumeChangesOnlyAffectDirectDependencies
316
- })) && (undefined === input.noLib || "boolean" === typeof input.noLib || $guard(_exceptionable, {
317
- path: _path + ".noLib",
318
- expected: "(boolean | undefined)",
319
- value: input.noLib
320
- })) && (undefined === input.noResolve || "boolean" === typeof input.noResolve || $guard(_exceptionable, {
321
- path: _path + ".noResolve",
322
- expected: "(boolean | undefined)",
323
- value: input.noResolve
324
- })) && (undefined === input.noUncheckedIndexedAccess || "boolean" === typeof input.noUncheckedIndexedAccess || $guard(_exceptionable, {
325
- path: _path + ".noUncheckedIndexedAccess",
326
- expected: "(boolean | undefined)",
327
- value: input.noUncheckedIndexedAccess
328
- })) && (undefined === input.out || "string" === typeof input.out || $guard(_exceptionable, {
329
- path: _path + ".out",
330
- expected: "(string | undefined)",
331
- value: input.out
332
- })) && (undefined === input.outDir || "string" === typeof input.outDir || $guard(_exceptionable, {
333
- path: _path + ".outDir",
334
- expected: "(string | undefined)",
335
- value: input.outDir
336
- })) && (undefined === input.outFile || "string" === typeof input.outFile || $guard(_exceptionable, {
337
- path: _path + ".outFile",
338
- expected: "(string | undefined)",
339
- value: input.outFile
340
- })) && (undefined === input.paths || ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $guard(_exceptionable, {
341
- path: _path + ".paths",
342
- expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
343
- value: input.paths
344
- })) && $ao3(input.paths, _path + ".paths", true && _exceptionable)) && (undefined === input.preserveConstEnums || "boolean" === typeof input.preserveConstEnums || $guard(_exceptionable, {
345
- path: _path + ".preserveConstEnums",
346
- expected: "(boolean | undefined)",
347
- value: input.preserveConstEnums
348
- })) && (undefined === input.noImplicitOverride || "boolean" === typeof input.noImplicitOverride || $guard(_exceptionable, {
349
- path: _path + ".noImplicitOverride",
350
- expected: "(boolean | undefined)",
351
- value: input.noImplicitOverride
352
- })) && (undefined === input.preserveSymlinks || "boolean" === typeof input.preserveSymlinks || $guard(_exceptionable, {
353
- path: _path + ".preserveSymlinks",
354
- expected: "(boolean | undefined)",
355
- value: input.preserveSymlinks
356
- })) && (undefined === input.preserveValueImports || "boolean" === typeof input.preserveValueImports || $guard(_exceptionable, {
357
- path: _path + ".preserveValueImports",
358
- expected: "(boolean | undefined)",
359
- value: input.preserveValueImports
360
- })) && (undefined === input.project || "string" === typeof input.project || $guard(_exceptionable, {
361
- path: _path + ".project",
362
- expected: "(string | undefined)",
363
- value: input.project
364
- })) && (undefined === input.reactNamespace || "string" === typeof input.reactNamespace || $guard(_exceptionable, {
365
- path: _path + ".reactNamespace",
366
- expected: "(string | undefined)",
367
- value: input.reactNamespace
368
- })) && (undefined === input.jsxFactory || "string" === typeof input.jsxFactory || $guard(_exceptionable, {
369
- path: _path + ".jsxFactory",
370
- expected: "(string | undefined)",
371
- value: input.jsxFactory
372
- })) && (undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory || $guard(_exceptionable, {
373
- path: _path + ".jsxFragmentFactory",
374
- expected: "(string | undefined)",
375
- value: input.jsxFragmentFactory
376
- })) && (undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource || $guard(_exceptionable, {
377
- path: _path + ".jsxImportSource",
378
- expected: "(string | undefined)",
379
- value: input.jsxImportSource
380
- })) && (undefined === input.composite || "boolean" === typeof input.composite || $guard(_exceptionable, {
381
- path: _path + ".composite",
382
- expected: "(boolean | undefined)",
383
- value: input.composite
384
- })) && (undefined === input.incremental || "boolean" === typeof input.incremental || $guard(_exceptionable, {
385
- path: _path + ".incremental",
386
- expected: "(boolean | undefined)",
387
- value: input.incremental
388
- })) && (undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile || $guard(_exceptionable, {
389
- path: _path + ".tsBuildInfoFile",
390
- expected: "(string | undefined)",
391
- value: input.tsBuildInfoFile
392
- })) && (undefined === input.removeComments || "boolean" === typeof input.removeComments || $guard(_exceptionable, {
393
- path: _path + ".removeComments",
394
- expected: "(boolean | undefined)",
395
- value: input.removeComments
396
- })) && (undefined === input.rootDir || "string" === typeof input.rootDir || $guard(_exceptionable, {
397
- path: _path + ".rootDir",
398
- expected: "(string | undefined)",
399
- value: input.rootDir
400
- })) && (undefined === input.rootDirs || (Array.isArray(input.rootDirs) || $guard(_exceptionable, {
401
- path: _path + ".rootDirs",
402
- expected: "(Array<string> | undefined)",
403
- value: input.rootDirs
404
- })) && input.rootDirs.every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
405
- path: _path + ".rootDirs[" + _index6 + "]",
406
- expected: "string",
407
- value: elem
408
- }))) && (undefined === input.skipLibCheck || "boolean" === typeof input.skipLibCheck || $guard(_exceptionable, {
409
- path: _path + ".skipLibCheck",
410
- expected: "(boolean | undefined)",
411
- value: input.skipLibCheck
412
- })) && (undefined === input.skipDefaultLibCheck || "boolean" === typeof input.skipDefaultLibCheck || $guard(_exceptionable, {
413
- path: _path + ".skipDefaultLibCheck",
414
- expected: "(boolean | undefined)",
415
- value: input.skipDefaultLibCheck
416
- })) && (undefined === input.sourceMap || "boolean" === typeof input.sourceMap || $guard(_exceptionable, {
417
- path: _path + ".sourceMap",
418
- expected: "(boolean | undefined)",
419
- value: input.sourceMap
420
- })) && (undefined === input.sourceRoot || "string" === typeof input.sourceRoot || $guard(_exceptionable, {
421
- path: _path + ".sourceRoot",
422
- expected: "(string | undefined)",
423
- value: input.sourceRoot
424
- })) && (undefined === input.strict || "boolean" === typeof input.strict || $guard(_exceptionable, {
425
- path: _path + ".strict",
426
- expected: "(boolean | undefined)",
427
- value: input.strict
428
- })) && (undefined === input.strictFunctionTypes || "boolean" === typeof input.strictFunctionTypes || $guard(_exceptionable, {
429
- path: _path + ".strictFunctionTypes",
430
- expected: "(boolean | undefined)",
431
- value: input.strictFunctionTypes
432
- })) && (undefined === input.strictBindCallApply || "boolean" === typeof input.strictBindCallApply || $guard(_exceptionable, {
433
- path: _path + ".strictBindCallApply",
434
- expected: "(boolean | undefined)",
435
- value: input.strictBindCallApply
436
- })) && (undefined === input.strictNullChecks || "boolean" === typeof input.strictNullChecks || $guard(_exceptionable, {
437
- path: _path + ".strictNullChecks",
438
- expected: "(boolean | undefined)",
439
- value: input.strictNullChecks
440
- })) && (undefined === input.strictPropertyInitialization || "boolean" === typeof input.strictPropertyInitialization || $guard(_exceptionable, {
441
- path: _path + ".strictPropertyInitialization",
442
- expected: "(boolean | undefined)",
443
- value: input.strictPropertyInitialization
444
- })) && (undefined === input.stripInternal || "boolean" === typeof input.stripInternal || $guard(_exceptionable, {
445
- path: _path + ".stripInternal",
446
- expected: "(boolean | undefined)",
447
- value: input.stripInternal
448
- })) && (undefined === input.suppressExcessPropertyErrors || "boolean" === typeof input.suppressExcessPropertyErrors || $guard(_exceptionable, {
449
- path: _path + ".suppressExcessPropertyErrors",
450
- expected: "(boolean | undefined)",
451
- value: input.suppressExcessPropertyErrors
452
- })) && (undefined === input.suppressImplicitAnyIndexErrors || "boolean" === typeof input.suppressImplicitAnyIndexErrors || $guard(_exceptionable, {
453
- path: _path + ".suppressImplicitAnyIndexErrors",
454
- expected: "(boolean | undefined)",
455
- value: input.suppressImplicitAnyIndexErrors
456
- })) && true && (undefined === input.traceResolution || "boolean" === typeof input.traceResolution || $guard(_exceptionable, {
457
- path: _path + ".traceResolution",
458
- expected: "(boolean | undefined)",
459
- value: input.traceResolution
460
- })) && (undefined === input.useUnknownInCatchVariables || "boolean" === typeof input.useUnknownInCatchVariables || $guard(_exceptionable, {
461
- path: _path + ".useUnknownInCatchVariables",
462
- expected: "(boolean | undefined)",
463
- value: input.useUnknownInCatchVariables
464
- })) && (undefined === input.resolveJsonModule || "boolean" === typeof input.resolveJsonModule || $guard(_exceptionable, {
465
- path: _path + ".resolveJsonModule",
466
- expected: "(boolean | undefined)",
467
- value: input.resolveJsonModule
468
- })) && (undefined === input.types || (Array.isArray(input.types) || $guard(_exceptionable, {
469
- path: _path + ".types",
470
- expected: "(Array<string> | undefined)",
471
- value: input.types
472
- })) && input.types.every((elem, _index7) => "string" === typeof elem || $guard(_exceptionable, {
473
- path: _path + ".types[" + _index7 + "]",
474
- expected: "string",
475
- value: elem
476
- }))) && (undefined === input.typeRoots || (Array.isArray(input.typeRoots) || $guard(_exceptionable, {
477
- path: _path + ".typeRoots",
478
- expected: "(Array<string> | undefined)",
479
- value: input.typeRoots
480
- })) && input.typeRoots.every((elem, _index8) => "string" === typeof elem || $guard(_exceptionable, {
481
- path: _path + ".typeRoots[" + _index8 + "]",
482
- expected: "string",
483
- value: elem
484
- }))) && (undefined === input.esModuleInterop || "boolean" === typeof input.esModuleInterop || $guard(_exceptionable, {
485
- path: _path + ".esModuleInterop",
486
- expected: "(boolean | undefined)",
487
- value: input.esModuleInterop
488
- })) && (undefined === input.useDefineForClassFields || "boolean" === typeof input.useDefineForClassFields || $guard(_exceptionable, {
489
- path: _path + ".useDefineForClassFields",
490
- expected: "(boolean | undefined)",
491
- value: input.useDefineForClassFields
492
- })) && (false === _exceptionable || Object.keys(input).every(key => {
68
+ const $is_custom = typia_1.assert.is_custom;
69
+ const __is = input => {
70
+ const $join = typia_1.assert.join;
71
+ const $is_custom = typia_1.assert.is_custom;
72
+ const $io0 = input => null !== input.input && undefined !== input.input && ("string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io1(input.input))) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.compilerOptions || "object" === typeof input.compilerOptions && null !== input.compilerOptions && false === Array.isArray(input.compilerOptions) && $io2(input.compilerOptions)) && (undefined === input.assert || "boolean" === typeof input.assert) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.primitive || "boolean" === typeof input.primitive) && (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io4(input.swagger));
73
+ const $io1 = input => Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem));
74
+ const $io2 = input => (undefined === input.allowImportingTsExtensions || "boolean" === typeof input.allowImportingTsExtensions) && (undefined === input.allowJs || "boolean" === typeof input.allowJs) && (undefined === input.allowArbitraryExtensions || "boolean" === typeof input.allowArbitraryExtensions) && (undefined === input.allowSyntheticDefaultImports || "boolean" === typeof input.allowSyntheticDefaultImports) && (undefined === input.allowUmdGlobalAccess || "boolean" === typeof input.allowUmdGlobalAccess) && (undefined === input.allowUnreachableCode || "boolean" === typeof input.allowUnreachableCode) && (undefined === input.allowUnusedLabels || "boolean" === typeof input.allowUnusedLabels) && (undefined === input.alwaysStrict || "boolean" === typeof input.alwaysStrict) && (undefined === input.baseUrl || "string" === typeof input.baseUrl) && (undefined === input.charset || "string" === typeof input.charset) && (undefined === input.checkJs || "boolean" === typeof input.checkJs) && (undefined === input.customConditions || Array.isArray(input.customConditions) && input.customConditions.every(elem => "string" === typeof elem)) && (undefined === input.declaration || "boolean" === typeof input.declaration) && (undefined === input.declarationMap || "boolean" === typeof input.declarationMap) && (undefined === input.emitDeclarationOnly || "boolean" === typeof input.emitDeclarationOnly) && (undefined === input.declarationDir || "string" === typeof input.declarationDir) && (undefined === input.disableSizeLimit || "boolean" === typeof input.disableSizeLimit) && (undefined === input.disableSourceOfProjectReferenceRedirect || "boolean" === typeof input.disableSourceOfProjectReferenceRedirect) && (undefined === input.disableSolutionSearching || "boolean" === typeof input.disableSolutionSearching) && (undefined === input.disableReferencedProjectLoad || "boolean" === typeof input.disableReferencedProjectLoad) && (undefined === input.downlevelIteration || "boolean" === typeof input.downlevelIteration) && (undefined === input.emitBOM || "boolean" === typeof input.emitBOM) && (undefined === input.emitDecoratorMetadata || "boolean" === typeof input.emitDecoratorMetadata) && (undefined === input.exactOptionalPropertyTypes || "boolean" === typeof input.exactOptionalPropertyTypes) && (undefined === input.experimentalDecorators || "boolean" === typeof input.experimentalDecorators) && (undefined === input.forceConsistentCasingInFileNames || "boolean" === typeof input.forceConsistentCasingInFileNames) && (undefined === input.ignoreDeprecations || "string" === typeof input.ignoreDeprecations) && (undefined === input.importHelpers || "boolean" === typeof input.importHelpers) && true && (undefined === input.inlineSourceMap || "boolean" === typeof input.inlineSourceMap) && (undefined === input.inlineSources || "boolean" === typeof input.inlineSources) && (undefined === input.isolatedModules || "boolean" === typeof input.isolatedModules) && true && (undefined === input.keyofStringsOnly || "boolean" === typeof input.keyofStringsOnly) && (undefined === input.lib || Array.isArray(input.lib) && input.lib.every(elem => "string" === typeof elem)) && (undefined === input.locale || "string" === typeof input.locale) && (undefined === input.mapRoot || "string" === typeof input.mapRoot) && true && true && true && (undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && input.moduleSuffixes.every(elem => "string" === typeof elem)) && true && true && (undefined === input.noEmit || "boolean" === typeof input.noEmit) && (undefined === input.noEmitHelpers || "boolean" === typeof input.noEmitHelpers) && (undefined === input.noEmitOnError || "boolean" === typeof input.noEmitOnError) && (undefined === input.noErrorTruncation || "boolean" === typeof input.noErrorTruncation) && (undefined === input.noFallthroughCasesInSwitch || "boolean" === typeof input.noFallthroughCasesInSwitch) && (undefined === input.noImplicitAny || "boolean" === typeof input.noImplicitAny) && (undefined === input.noImplicitReturns || "boolean" === typeof input.noImplicitReturns) && (undefined === input.noImplicitThis || "boolean" === typeof input.noImplicitThis) && (undefined === input.noStrictGenericChecks || "boolean" === typeof input.noStrictGenericChecks) && (undefined === input.noUnusedLocals || "boolean" === typeof input.noUnusedLocals) && (undefined === input.noUnusedParameters || "boolean" === typeof input.noUnusedParameters) && (undefined === input.noImplicitUseStrict || "boolean" === typeof input.noImplicitUseStrict) && (undefined === input.noPropertyAccessFromIndexSignature || "boolean" === typeof input.noPropertyAccessFromIndexSignature) && (undefined === input.assumeChangesOnlyAffectDirectDependencies || "boolean" === typeof input.assumeChangesOnlyAffectDirectDependencies) && (undefined === input.noLib || "boolean" === typeof input.noLib) && (undefined === input.noResolve || "boolean" === typeof input.noResolve) && (undefined === input.noUncheckedIndexedAccess || "boolean" === typeof input.noUncheckedIndexedAccess) && (undefined === input.out || "string" === typeof input.out) && (undefined === input.outDir || "string" === typeof input.outDir) && (undefined === input.outFile || "string" === typeof input.outFile) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io3(input.paths)) && (undefined === input.preserveConstEnums || "boolean" === typeof input.preserveConstEnums) && (undefined === input.noImplicitOverride || "boolean" === typeof input.noImplicitOverride) && (undefined === input.preserveSymlinks || "boolean" === typeof input.preserveSymlinks) && (undefined === input.preserveValueImports || "boolean" === typeof input.preserveValueImports) && (undefined === input.project || "string" === typeof input.project) && (undefined === input.reactNamespace || "string" === typeof input.reactNamespace) && (undefined === input.jsxFactory || "string" === typeof input.jsxFactory) && (undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory) && (undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource) && (undefined === input.composite || "boolean" === typeof input.composite) && (undefined === input.incremental || "boolean" === typeof input.incremental) && (undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile) && (undefined === input.removeComments || "boolean" === typeof input.removeComments) && (undefined === input.resolvePackageJsonExports || "boolean" === typeof input.resolvePackageJsonExports) && (undefined === input.resolvePackageJsonImports || "boolean" === typeof input.resolvePackageJsonImports) && (undefined === input.rootDir || "string" === typeof input.rootDir) && (undefined === input.rootDirs || Array.isArray(input.rootDirs) && input.rootDirs.every(elem => "string" === typeof elem)) && (undefined === input.skipLibCheck || "boolean" === typeof input.skipLibCheck) && (undefined === input.skipDefaultLibCheck || "boolean" === typeof input.skipDefaultLibCheck) && (undefined === input.sourceMap || "boolean" === typeof input.sourceMap) && (undefined === input.sourceRoot || "string" === typeof input.sourceRoot) && (undefined === input.strict || "boolean" === typeof input.strict) && (undefined === input.strictFunctionTypes || "boolean" === typeof input.strictFunctionTypes) && (undefined === input.strictBindCallApply || "boolean" === typeof input.strictBindCallApply) && (undefined === input.strictNullChecks || "boolean" === typeof input.strictNullChecks) && (undefined === input.strictPropertyInitialization || "boolean" === typeof input.strictPropertyInitialization) && (undefined === input.stripInternal || "boolean" === typeof input.stripInternal) && (undefined === input.suppressExcessPropertyErrors || "boolean" === typeof input.suppressExcessPropertyErrors) && (undefined === input.suppressImplicitAnyIndexErrors || "boolean" === typeof input.suppressImplicitAnyIndexErrors) && true && (undefined === input.traceResolution || "boolean" === typeof input.traceResolution) && (undefined === input.useUnknownInCatchVariables || "boolean" === typeof input.useUnknownInCatchVariables) && (undefined === input.resolveJsonModule || "boolean" === typeof input.resolveJsonModule) && (undefined === input.types || Array.isArray(input.types) && input.types.every(elem => "string" === typeof elem)) && (undefined === input.typeRoots || Array.isArray(input.typeRoots) && input.typeRoots.every(elem => "string" === typeof elem)) && (undefined === input.verbatimModuleSyntax || "boolean" === typeof input.verbatimModuleSyntax) && (undefined === input.esModuleInterop || "boolean" === typeof input.esModuleInterop) && (undefined === input.useDefineForClassFields || "boolean" === typeof input.useDefineForClassFields) && Object.keys(input).every(key => {
493
75
  const value = input[key];
494
76
  if (undefined === value)
495
77
  return true;
496
78
  if (RegExp(/(.*)/).test(key))
497
79
  return true;
498
80
  return true;
499
- }));
500
- const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
81
+ });
82
+ const $io3 = input => Object.keys(input).every(key => {
501
83
  const value = input[key];
502
84
  if (undefined === value)
503
85
  return true;
504
86
  if (RegExp(/(.*)/).test(key))
505
- return (Array.isArray(value) || $guard(_exceptionable, {
506
- path: _path + $join(key),
507
- expected: "Array<string>",
508
- value: value
509
- })) && value.every((elem, _index9) => "string" === typeof elem || $guard(_exceptionable, {
510
- path: _path + $join(key) + "[" + _index9 + "]",
511
- expected: "string",
512
- value: elem
513
- }));
87
+ return Array.isArray(value) && value.every(elem => "string" === typeof elem);
514
88
  return true;
515
89
  });
516
- const $ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || $guard(_exceptionable, {
517
- path: _path + ".output",
518
- expected: "string",
519
- value: input.output
520
- })) && (undefined === input.security || ("object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) || $guard(_exceptionable, {
521
- path: _path + ".security",
522
- expected: "(Resolve<Record<string, INestiaConfig.ISwaggerConfig.ISecurityScheme>> | undefined)",
523
- value: input.security
524
- })) && $ao5(input.security, _path + ".security", true && _exceptionable));
525
- const $ao5 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
90
+ const $io4 = input => "string" === typeof input.output && (undefined === input.security || "object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) && $io5(input.security));
91
+ const $io5 = input => Object.keys(input).every(key => {
526
92
  const value = input[key];
527
93
  if (undefined === value)
528
94
  return true;
529
95
  if (RegExp(/(.*)/).test(key))
530
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
531
- path: _path + $join(key),
532
- expected: "(Resolve<INestiaConfig.ISwaggerConfig.IApiKey> | Resolve<ISwaggerDocument.ISecurityScheme.IHttpBasic> | Resolve<ISwaggerDocument.ISecurityScheme.IHttpBearer> | Resolve<ISwaggerDocument.ISecurityScheme.IOAuth2> | Resolve<ISwaggerDocument.ISecurityScheme.IOpenId>)",
533
- value: value
534
- })) && $au0(value, _path + $join(key), true && _exceptionable);
96
+ return "object" === typeof value && null !== value && $iu0(value);
535
97
  return true;
536
98
  });
537
- const $ao6 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
538
- path: _path + ".type",
539
- expected: "\"http\"",
540
- value: input.type
541
- })) && ("basic" === input.schema || $guard(_exceptionable, {
542
- path: _path + ".schema",
543
- expected: "\"basic\"",
544
- value: input.schema
545
- }));
546
- const $ao7 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
547
- path: _path + ".type",
548
- expected: "\"http\"",
549
- value: input.type
550
- })) && ("bearer" === input.scheme || $guard(_exceptionable, {
551
- path: _path + ".scheme",
552
- expected: "\"bearer\"",
553
- value: input.scheme
554
- })) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $guard(_exceptionable, {
555
- path: _path + ".bearerFormat",
556
- expected: "(string | undefined)",
557
- value: input.bearerFormat
558
- }));
559
- const $ao8 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
560
- path: _path + ".type",
561
- expected: "\"openIdConnect\"",
562
- value: input.type
563
- })) && ("string" === typeof input.openIdConnectUrl || $guard(_exceptionable, {
564
- path: _path + ".openIdConnectUrl",
565
- expected: "string",
566
- value: input.openIdConnectUrl
567
- }));
568
- const $ao9 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
569
- path: _path + ".type",
570
- expected: "\"oauth2\"",
571
- value: input.type
572
- })) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $guard(_exceptionable, {
573
- path: _path + ".flows",
574
- expected: "Resolve<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlowSet>",
575
- value: input.flows
576
- })) && $ao10(input.flows, _path + ".flows", true && _exceptionable)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
577
- path: _path + ".description",
578
- expected: "(string | undefined)",
579
- value: input.description
580
- }));
581
- const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $guard(_exceptionable, {
582
- path: _path + ".authorizationCode",
583
- expected: "(Resolve<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow> | undefined)",
584
- value: input.authorizationCode
585
- })) && $ao11(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable)) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit || $guard(_exceptionable, {
586
- path: _path + ".implicit",
587
- expected: "(Resolve<Omit<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\">> | undefined)",
588
- value: input.implicit
589
- })) && $ao13(input.implicit, _path + ".implicit", true && _exceptionable)) && (undefined === input.password || ("object" === typeof input.password && null !== input.password || $guard(_exceptionable, {
590
- path: _path + ".password",
591
- expected: "(Resolve<Omit<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\">> | undefined)",
592
- value: input.password
593
- })) && $ao14(input.password, _path + ".password", true && _exceptionable)) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials || $guard(_exceptionable, {
594
- path: _path + ".clientCredentials",
595
- expected: "(Resolve<Omit<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\">> | undefined)",
596
- value: input.clientCredentials
597
- })) && $ao14(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable));
598
- const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
599
- path: _path + ".authorizationUrl",
600
- expected: "string",
601
- value: input.authorizationUrl
602
- })) && ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
603
- path: _path + ".tokenUrl",
604
- expected: "string",
605
- value: input.tokenUrl
606
- })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
607
- path: _path + ".refreshUrl",
608
- expected: "string",
609
- value: input.refreshUrl
610
- })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
611
- path: _path + ".scopes",
612
- expected: "(Resolve<Record<string, string>> | undefined)",
613
- value: input.scopes
614
- })) && $ao12(input.scopes, _path + ".scopes", true && _exceptionable));
615
- const $ao12 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
99
+ const $io6 = input => "http" === input.type && "basic" === input.schema;
100
+ const $io7 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat);
101
+ const $io8 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl;
102
+ const $io9 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io10(input.flows)) && (undefined === input.description || "string" === typeof input.description);
103
+ const $io10 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && $io11(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && $io13(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && $io14(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && $io14(input.clientCredentials));
104
+ const $io11 = input => "string" === typeof input.authorizationUrl && "string" === typeof input.tokenUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io12(input.scopes));
105
+ const $io12 = input => Object.keys(input).every(key => {
616
106
  const value = input[key];
617
107
  if (undefined === value)
618
108
  return true;
619
109
  if (RegExp(/(.*)/).test(key))
620
- return "string" === typeof value || $guard(_exceptionable, {
621
- path: _path + $join(key),
622
- expected: "string",
623
- value: value
624
- });
110
+ return "string" === typeof value;
625
111
  return true;
626
112
  });
627
- const $ao13 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
628
- path: _path + ".authorizationUrl",
629
- expected: "string",
630
- value: input.authorizationUrl
631
- })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
632
- path: _path + ".refreshUrl",
633
- expected: "string",
634
- value: input.refreshUrl
635
- })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
636
- path: _path + ".scopes",
637
- expected: "(Resolve<Record<string, string>> | undefined)",
638
- value: input.scopes
639
- })) && $ao12(input.scopes, _path + ".scopes", true && _exceptionable));
640
- const $ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
641
- path: _path + ".tokenUrl",
642
- expected: "string",
643
- value: input.tokenUrl
644
- })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
645
- path: _path + ".refreshUrl",
646
- expected: "string",
647
- value: input.refreshUrl
648
- })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
649
- path: _path + ".scopes",
650
- expected: "(Resolve<Record<string, string>> | undefined)",
651
- value: input.scopes
652
- })) && $ao12(input.scopes, _path + ".scopes", true && _exceptionable));
653
- const $ao15 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
654
- path: _path + ".type",
655
- expected: "\"apiKey\"",
656
- value: input.type
657
- })) && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $guard(_exceptionable, {
658
- path: _path + "[\"in\"]",
659
- expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
660
- value: input["in"]
661
- })) && (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
662
- path: _path + ".name",
663
- expected: "(string | undefined)",
664
- value: input.name
665
- }));
666
- const $au0 = (input, _path, _exceptionable = true) => (() => {
113
+ const $io13 = input => "string" === typeof input.authorizationUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io12(input.scopes));
114
+ const $io14 = input => "string" === typeof input.tokenUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io12(input.scopes));
115
+ const $io15 = input => "apiKey" === input.type && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name && $is_custom("default", "string", "Authorization", input.name));
116
+ const $iu0 = input => (() => {
667
117
  if (undefined !== input.schema)
668
- return $ao6(input, _path, true && _exceptionable);
118
+ return $io6(input);
669
119
  if (undefined !== input.scheme)
670
- return $ao7(input, _path, true && _exceptionable);
120
+ return $io7(input);
671
121
  if ("openIdConnect" === input.type)
672
- return $ao8(input, _path, true && _exceptionable);
122
+ return $io8(input);
673
123
  if ("oauth2" === input.type)
674
- return $ao9(input, _path, true && _exceptionable);
124
+ return $io9(input);
675
125
  if ("apiKey" === input.type)
676
- return $ao15(input, _path, true && _exceptionable);
677
- return $guard(_exceptionable, {
678
- path: _path,
679
- expected: "(ISwaggerDocument.ISecurityScheme.IHttpBasic | ISwaggerDocument.ISecurityScheme.IHttpBearer | ISwaggerDocument.ISecurityScheme.IOpenId | ISwaggerDocument.ISecurityScheme.IOAuth2 | INestiaConfig.ISwaggerConfig.IApiKey)",
680
- value: input
681
- });
126
+ return $io15(input);
127
+ return false;
682
128
  })();
683
- return ("object" === typeof input && null !== input || $guard(true, {
684
- path: _path + "",
685
- expected: "Resolve<INestiaConfig>",
686
- value: input
687
- })) && $ao0(input, _path + "", true);
688
- })(input, "$input", true);
129
+ return "object" === typeof input && null !== input && $io0(input);
130
+ };
131
+ if (false === __is(input))
132
+ ((input, _path, _exceptionable = true) => {
133
+ const $ao0 = (input, _path, _exceptionable = true) => (null !== input.input || $guard(_exceptionable, {
134
+ path: _path + ".input",
135
+ expected: "(Array<string> | Resolve<INestiaConfig.IInput> | string)",
136
+ value: input.input
137
+ })) && (undefined !== input.input || $guard(_exceptionable, {
138
+ path: _path + ".input",
139
+ expected: "(Array<string> | Resolve<INestiaConfig.IInput> | string)",
140
+ value: input.input
141
+ })) && ("string" === typeof input.input || (Array.isArray(input.input) && input.input.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
142
+ path: _path + ".input[" + _index1 + "]",
143
+ expected: "string",
144
+ value: elem
145
+ })) || "object" === typeof input.input && null !== input.input && $ao1(input.input, _path + ".input", true && _exceptionable))) && (undefined === input.output || "string" === typeof input.output || $guard(_exceptionable, {
146
+ path: _path + ".output",
147
+ expected: "(string | undefined)",
148
+ value: input.output
149
+ })) && (undefined === input.compilerOptions || ("object" === typeof input.compilerOptions && null !== input.compilerOptions && false === Array.isArray(input.compilerOptions) || $guard(_exceptionable, {
150
+ path: _path + ".compilerOptions",
151
+ expected: "(Resolve<StripEnums<ts.CompilerOptions>> | undefined)",
152
+ value: input.compilerOptions
153
+ })) && $ao2(input.compilerOptions, _path + ".compilerOptions", true && _exceptionable)) && (undefined === input.assert || "boolean" === typeof input.assert || $guard(_exceptionable, {
154
+ path: _path + ".assert",
155
+ expected: "(boolean | undefined)",
156
+ value: input.assert
157
+ })) && (undefined === input.json || "boolean" === typeof input.json || $guard(_exceptionable, {
158
+ path: _path + ".json",
159
+ expected: "(boolean | undefined)",
160
+ value: input.json
161
+ })) && (undefined === input.primitive || "boolean" === typeof input.primitive || $guard(_exceptionable, {
162
+ path: _path + ".primitive",
163
+ expected: "(boolean | undefined)",
164
+ value: input.primitive
165
+ })) && (undefined === input.swagger || ("object" === typeof input.swagger && null !== input.swagger || $guard(_exceptionable, {
166
+ path: _path + ".swagger",
167
+ expected: "(Resolve<INestiaConfig.ISwaggerConfig> | undefined)",
168
+ value: input.swagger
169
+ })) && $ao4(input.swagger, _path + ".swagger", true && _exceptionable));
170
+ const $ao1 = (input, _path, _exceptionable = true) => (Array.isArray(input.include) || $guard(_exceptionable, {
171
+ path: _path + ".include",
172
+ expected: "Array<string>",
173
+ value: input.include
174
+ })) && input.include.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
175
+ path: _path + ".include[" + _index2 + "]",
176
+ expected: "string",
177
+ value: elem
178
+ })) && (undefined === input.exclude || (Array.isArray(input.exclude) || $guard(_exceptionable, {
179
+ path: _path + ".exclude",
180
+ expected: "(Array<string> | undefined)",
181
+ value: input.exclude
182
+ })) && input.exclude.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
183
+ path: _path + ".exclude[" + _index3 + "]",
184
+ expected: "string",
185
+ value: elem
186
+ })));
187
+ const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.allowImportingTsExtensions || "boolean" === typeof input.allowImportingTsExtensions || $guard(_exceptionable, {
188
+ path: _path + ".allowImportingTsExtensions",
189
+ expected: "(boolean | undefined)",
190
+ value: input.allowImportingTsExtensions
191
+ })) && (undefined === input.allowJs || "boolean" === typeof input.allowJs || $guard(_exceptionable, {
192
+ path: _path + ".allowJs",
193
+ expected: "(boolean | undefined)",
194
+ value: input.allowJs
195
+ })) && (undefined === input.allowArbitraryExtensions || "boolean" === typeof input.allowArbitraryExtensions || $guard(_exceptionable, {
196
+ path: _path + ".allowArbitraryExtensions",
197
+ expected: "(boolean | undefined)",
198
+ value: input.allowArbitraryExtensions
199
+ })) && (undefined === input.allowSyntheticDefaultImports || "boolean" === typeof input.allowSyntheticDefaultImports || $guard(_exceptionable, {
200
+ path: _path + ".allowSyntheticDefaultImports",
201
+ expected: "(boolean | undefined)",
202
+ value: input.allowSyntheticDefaultImports
203
+ })) && (undefined === input.allowUmdGlobalAccess || "boolean" === typeof input.allowUmdGlobalAccess || $guard(_exceptionable, {
204
+ path: _path + ".allowUmdGlobalAccess",
205
+ expected: "(boolean | undefined)",
206
+ value: input.allowUmdGlobalAccess
207
+ })) && (undefined === input.allowUnreachableCode || "boolean" === typeof input.allowUnreachableCode || $guard(_exceptionable, {
208
+ path: _path + ".allowUnreachableCode",
209
+ expected: "(boolean | undefined)",
210
+ value: input.allowUnreachableCode
211
+ })) && (undefined === input.allowUnusedLabels || "boolean" === typeof input.allowUnusedLabels || $guard(_exceptionable, {
212
+ path: _path + ".allowUnusedLabels",
213
+ expected: "(boolean | undefined)",
214
+ value: input.allowUnusedLabels
215
+ })) && (undefined === input.alwaysStrict || "boolean" === typeof input.alwaysStrict || $guard(_exceptionable, {
216
+ path: _path + ".alwaysStrict",
217
+ expected: "(boolean | undefined)",
218
+ value: input.alwaysStrict
219
+ })) && (undefined === input.baseUrl || "string" === typeof input.baseUrl || $guard(_exceptionable, {
220
+ path: _path + ".baseUrl",
221
+ expected: "(string | undefined)",
222
+ value: input.baseUrl
223
+ })) && (undefined === input.charset || "string" === typeof input.charset || $guard(_exceptionable, {
224
+ path: _path + ".charset",
225
+ expected: "(string | undefined)",
226
+ value: input.charset
227
+ })) && (undefined === input.checkJs || "boolean" === typeof input.checkJs || $guard(_exceptionable, {
228
+ path: _path + ".checkJs",
229
+ expected: "(boolean | undefined)",
230
+ value: input.checkJs
231
+ })) && (undefined === input.customConditions || (Array.isArray(input.customConditions) || $guard(_exceptionable, {
232
+ path: _path + ".customConditions",
233
+ expected: "(Array<string> | undefined)",
234
+ value: input.customConditions
235
+ })) && input.customConditions.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
236
+ path: _path + ".customConditions[" + _index4 + "]",
237
+ expected: "string",
238
+ value: elem
239
+ }))) && (undefined === input.declaration || "boolean" === typeof input.declaration || $guard(_exceptionable, {
240
+ path: _path + ".declaration",
241
+ expected: "(boolean | undefined)",
242
+ value: input.declaration
243
+ })) && (undefined === input.declarationMap || "boolean" === typeof input.declarationMap || $guard(_exceptionable, {
244
+ path: _path + ".declarationMap",
245
+ expected: "(boolean | undefined)",
246
+ value: input.declarationMap
247
+ })) && (undefined === input.emitDeclarationOnly || "boolean" === typeof input.emitDeclarationOnly || $guard(_exceptionable, {
248
+ path: _path + ".emitDeclarationOnly",
249
+ expected: "(boolean | undefined)",
250
+ value: input.emitDeclarationOnly
251
+ })) && (undefined === input.declarationDir || "string" === typeof input.declarationDir || $guard(_exceptionable, {
252
+ path: _path + ".declarationDir",
253
+ expected: "(string | undefined)",
254
+ value: input.declarationDir
255
+ })) && (undefined === input.disableSizeLimit || "boolean" === typeof input.disableSizeLimit || $guard(_exceptionable, {
256
+ path: _path + ".disableSizeLimit",
257
+ expected: "(boolean | undefined)",
258
+ value: input.disableSizeLimit
259
+ })) && (undefined === input.disableSourceOfProjectReferenceRedirect || "boolean" === typeof input.disableSourceOfProjectReferenceRedirect || $guard(_exceptionable, {
260
+ path: _path + ".disableSourceOfProjectReferenceRedirect",
261
+ expected: "(boolean | undefined)",
262
+ value: input.disableSourceOfProjectReferenceRedirect
263
+ })) && (undefined === input.disableSolutionSearching || "boolean" === typeof input.disableSolutionSearching || $guard(_exceptionable, {
264
+ path: _path + ".disableSolutionSearching",
265
+ expected: "(boolean | undefined)",
266
+ value: input.disableSolutionSearching
267
+ })) && (undefined === input.disableReferencedProjectLoad || "boolean" === typeof input.disableReferencedProjectLoad || $guard(_exceptionable, {
268
+ path: _path + ".disableReferencedProjectLoad",
269
+ expected: "(boolean | undefined)",
270
+ value: input.disableReferencedProjectLoad
271
+ })) && (undefined === input.downlevelIteration || "boolean" === typeof input.downlevelIteration || $guard(_exceptionable, {
272
+ path: _path + ".downlevelIteration",
273
+ expected: "(boolean | undefined)",
274
+ value: input.downlevelIteration
275
+ })) && (undefined === input.emitBOM || "boolean" === typeof input.emitBOM || $guard(_exceptionable, {
276
+ path: _path + ".emitBOM",
277
+ expected: "(boolean | undefined)",
278
+ value: input.emitBOM
279
+ })) && (undefined === input.emitDecoratorMetadata || "boolean" === typeof input.emitDecoratorMetadata || $guard(_exceptionable, {
280
+ path: _path + ".emitDecoratorMetadata",
281
+ expected: "(boolean | undefined)",
282
+ value: input.emitDecoratorMetadata
283
+ })) && (undefined === input.exactOptionalPropertyTypes || "boolean" === typeof input.exactOptionalPropertyTypes || $guard(_exceptionable, {
284
+ path: _path + ".exactOptionalPropertyTypes",
285
+ expected: "(boolean | undefined)",
286
+ value: input.exactOptionalPropertyTypes
287
+ })) && (undefined === input.experimentalDecorators || "boolean" === typeof input.experimentalDecorators || $guard(_exceptionable, {
288
+ path: _path + ".experimentalDecorators",
289
+ expected: "(boolean | undefined)",
290
+ value: input.experimentalDecorators
291
+ })) && (undefined === input.forceConsistentCasingInFileNames || "boolean" === typeof input.forceConsistentCasingInFileNames || $guard(_exceptionable, {
292
+ path: _path + ".forceConsistentCasingInFileNames",
293
+ expected: "(boolean | undefined)",
294
+ value: input.forceConsistentCasingInFileNames
295
+ })) && (undefined === input.ignoreDeprecations || "string" === typeof input.ignoreDeprecations || $guard(_exceptionable, {
296
+ path: _path + ".ignoreDeprecations",
297
+ expected: "(string | undefined)",
298
+ value: input.ignoreDeprecations
299
+ })) && (undefined === input.importHelpers || "boolean" === typeof input.importHelpers || $guard(_exceptionable, {
300
+ path: _path + ".importHelpers",
301
+ expected: "(boolean | undefined)",
302
+ value: input.importHelpers
303
+ })) && true && (undefined === input.inlineSourceMap || "boolean" === typeof input.inlineSourceMap || $guard(_exceptionable, {
304
+ path: _path + ".inlineSourceMap",
305
+ expected: "(boolean | undefined)",
306
+ value: input.inlineSourceMap
307
+ })) && (undefined === input.inlineSources || "boolean" === typeof input.inlineSources || $guard(_exceptionable, {
308
+ path: _path + ".inlineSources",
309
+ expected: "(boolean | undefined)",
310
+ value: input.inlineSources
311
+ })) && (undefined === input.isolatedModules || "boolean" === typeof input.isolatedModules || $guard(_exceptionable, {
312
+ path: _path + ".isolatedModules",
313
+ expected: "(boolean | undefined)",
314
+ value: input.isolatedModules
315
+ })) && true && (undefined === input.keyofStringsOnly || "boolean" === typeof input.keyofStringsOnly || $guard(_exceptionable, {
316
+ path: _path + ".keyofStringsOnly",
317
+ expected: "(boolean | undefined)",
318
+ value: input.keyofStringsOnly
319
+ })) && (undefined === input.lib || (Array.isArray(input.lib) || $guard(_exceptionable, {
320
+ path: _path + ".lib",
321
+ expected: "(Array<string> | undefined)",
322
+ value: input.lib
323
+ })) && input.lib.every((elem, _index5) => "string" === typeof elem || $guard(_exceptionable, {
324
+ path: _path + ".lib[" + _index5 + "]",
325
+ expected: "string",
326
+ value: elem
327
+ }))) && (undefined === input.locale || "string" === typeof input.locale || $guard(_exceptionable, {
328
+ path: _path + ".locale",
329
+ expected: "(string | undefined)",
330
+ value: input.locale
331
+ })) && (undefined === input.mapRoot || "string" === typeof input.mapRoot || $guard(_exceptionable, {
332
+ path: _path + ".mapRoot",
333
+ expected: "(string | undefined)",
334
+ value: input.mapRoot
335
+ })) && true && true && true && (undefined === input.moduleSuffixes || (Array.isArray(input.moduleSuffixes) || $guard(_exceptionable, {
336
+ path: _path + ".moduleSuffixes",
337
+ expected: "(Array<string> | undefined)",
338
+ value: input.moduleSuffixes
339
+ })) && input.moduleSuffixes.every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
340
+ path: _path + ".moduleSuffixes[" + _index6 + "]",
341
+ expected: "string",
342
+ value: elem
343
+ }))) && true && true && (undefined === input.noEmit || "boolean" === typeof input.noEmit || $guard(_exceptionable, {
344
+ path: _path + ".noEmit",
345
+ expected: "(boolean | undefined)",
346
+ value: input.noEmit
347
+ })) && (undefined === input.noEmitHelpers || "boolean" === typeof input.noEmitHelpers || $guard(_exceptionable, {
348
+ path: _path + ".noEmitHelpers",
349
+ expected: "(boolean | undefined)",
350
+ value: input.noEmitHelpers
351
+ })) && (undefined === input.noEmitOnError || "boolean" === typeof input.noEmitOnError || $guard(_exceptionable, {
352
+ path: _path + ".noEmitOnError",
353
+ expected: "(boolean | undefined)",
354
+ value: input.noEmitOnError
355
+ })) && (undefined === input.noErrorTruncation || "boolean" === typeof input.noErrorTruncation || $guard(_exceptionable, {
356
+ path: _path + ".noErrorTruncation",
357
+ expected: "(boolean | undefined)",
358
+ value: input.noErrorTruncation
359
+ })) && (undefined === input.noFallthroughCasesInSwitch || "boolean" === typeof input.noFallthroughCasesInSwitch || $guard(_exceptionable, {
360
+ path: _path + ".noFallthroughCasesInSwitch",
361
+ expected: "(boolean | undefined)",
362
+ value: input.noFallthroughCasesInSwitch
363
+ })) && (undefined === input.noImplicitAny || "boolean" === typeof input.noImplicitAny || $guard(_exceptionable, {
364
+ path: _path + ".noImplicitAny",
365
+ expected: "(boolean | undefined)",
366
+ value: input.noImplicitAny
367
+ })) && (undefined === input.noImplicitReturns || "boolean" === typeof input.noImplicitReturns || $guard(_exceptionable, {
368
+ path: _path + ".noImplicitReturns",
369
+ expected: "(boolean | undefined)",
370
+ value: input.noImplicitReturns
371
+ })) && (undefined === input.noImplicitThis || "boolean" === typeof input.noImplicitThis || $guard(_exceptionable, {
372
+ path: _path + ".noImplicitThis",
373
+ expected: "(boolean | undefined)",
374
+ value: input.noImplicitThis
375
+ })) && (undefined === input.noStrictGenericChecks || "boolean" === typeof input.noStrictGenericChecks || $guard(_exceptionable, {
376
+ path: _path + ".noStrictGenericChecks",
377
+ expected: "(boolean | undefined)",
378
+ value: input.noStrictGenericChecks
379
+ })) && (undefined === input.noUnusedLocals || "boolean" === typeof input.noUnusedLocals || $guard(_exceptionable, {
380
+ path: _path + ".noUnusedLocals",
381
+ expected: "(boolean | undefined)",
382
+ value: input.noUnusedLocals
383
+ })) && (undefined === input.noUnusedParameters || "boolean" === typeof input.noUnusedParameters || $guard(_exceptionable, {
384
+ path: _path + ".noUnusedParameters",
385
+ expected: "(boolean | undefined)",
386
+ value: input.noUnusedParameters
387
+ })) && (undefined === input.noImplicitUseStrict || "boolean" === typeof input.noImplicitUseStrict || $guard(_exceptionable, {
388
+ path: _path + ".noImplicitUseStrict",
389
+ expected: "(boolean | undefined)",
390
+ value: input.noImplicitUseStrict
391
+ })) && (undefined === input.noPropertyAccessFromIndexSignature || "boolean" === typeof input.noPropertyAccessFromIndexSignature || $guard(_exceptionable, {
392
+ path: _path + ".noPropertyAccessFromIndexSignature",
393
+ expected: "(boolean | undefined)",
394
+ value: input.noPropertyAccessFromIndexSignature
395
+ })) && (undefined === input.assumeChangesOnlyAffectDirectDependencies || "boolean" === typeof input.assumeChangesOnlyAffectDirectDependencies || $guard(_exceptionable, {
396
+ path: _path + ".assumeChangesOnlyAffectDirectDependencies",
397
+ expected: "(boolean | undefined)",
398
+ value: input.assumeChangesOnlyAffectDirectDependencies
399
+ })) && (undefined === input.noLib || "boolean" === typeof input.noLib || $guard(_exceptionable, {
400
+ path: _path + ".noLib",
401
+ expected: "(boolean | undefined)",
402
+ value: input.noLib
403
+ })) && (undefined === input.noResolve || "boolean" === typeof input.noResolve || $guard(_exceptionable, {
404
+ path: _path + ".noResolve",
405
+ expected: "(boolean | undefined)",
406
+ value: input.noResolve
407
+ })) && (undefined === input.noUncheckedIndexedAccess || "boolean" === typeof input.noUncheckedIndexedAccess || $guard(_exceptionable, {
408
+ path: _path + ".noUncheckedIndexedAccess",
409
+ expected: "(boolean | undefined)",
410
+ value: input.noUncheckedIndexedAccess
411
+ })) && (undefined === input.out || "string" === typeof input.out || $guard(_exceptionable, {
412
+ path: _path + ".out",
413
+ expected: "(string | undefined)",
414
+ value: input.out
415
+ })) && (undefined === input.outDir || "string" === typeof input.outDir || $guard(_exceptionable, {
416
+ path: _path + ".outDir",
417
+ expected: "(string | undefined)",
418
+ value: input.outDir
419
+ })) && (undefined === input.outFile || "string" === typeof input.outFile || $guard(_exceptionable, {
420
+ path: _path + ".outFile",
421
+ expected: "(string | undefined)",
422
+ value: input.outFile
423
+ })) && (undefined === input.paths || ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $guard(_exceptionable, {
424
+ path: _path + ".paths",
425
+ expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
426
+ value: input.paths
427
+ })) && $ao3(input.paths, _path + ".paths", true && _exceptionable)) && (undefined === input.preserveConstEnums || "boolean" === typeof input.preserveConstEnums || $guard(_exceptionable, {
428
+ path: _path + ".preserveConstEnums",
429
+ expected: "(boolean | undefined)",
430
+ value: input.preserveConstEnums
431
+ })) && (undefined === input.noImplicitOverride || "boolean" === typeof input.noImplicitOverride || $guard(_exceptionable, {
432
+ path: _path + ".noImplicitOverride",
433
+ expected: "(boolean | undefined)",
434
+ value: input.noImplicitOverride
435
+ })) && (undefined === input.preserveSymlinks || "boolean" === typeof input.preserveSymlinks || $guard(_exceptionable, {
436
+ path: _path + ".preserveSymlinks",
437
+ expected: "(boolean | undefined)",
438
+ value: input.preserveSymlinks
439
+ })) && (undefined === input.preserveValueImports || "boolean" === typeof input.preserveValueImports || $guard(_exceptionable, {
440
+ path: _path + ".preserveValueImports",
441
+ expected: "(boolean | undefined)",
442
+ value: input.preserveValueImports
443
+ })) && (undefined === input.project || "string" === typeof input.project || $guard(_exceptionable, {
444
+ path: _path + ".project",
445
+ expected: "(string | undefined)",
446
+ value: input.project
447
+ })) && (undefined === input.reactNamespace || "string" === typeof input.reactNamespace || $guard(_exceptionable, {
448
+ path: _path + ".reactNamespace",
449
+ expected: "(string | undefined)",
450
+ value: input.reactNamespace
451
+ })) && (undefined === input.jsxFactory || "string" === typeof input.jsxFactory || $guard(_exceptionable, {
452
+ path: _path + ".jsxFactory",
453
+ expected: "(string | undefined)",
454
+ value: input.jsxFactory
455
+ })) && (undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory || $guard(_exceptionable, {
456
+ path: _path + ".jsxFragmentFactory",
457
+ expected: "(string | undefined)",
458
+ value: input.jsxFragmentFactory
459
+ })) && (undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource || $guard(_exceptionable, {
460
+ path: _path + ".jsxImportSource",
461
+ expected: "(string | undefined)",
462
+ value: input.jsxImportSource
463
+ })) && (undefined === input.composite || "boolean" === typeof input.composite || $guard(_exceptionable, {
464
+ path: _path + ".composite",
465
+ expected: "(boolean | undefined)",
466
+ value: input.composite
467
+ })) && (undefined === input.incremental || "boolean" === typeof input.incremental || $guard(_exceptionable, {
468
+ path: _path + ".incremental",
469
+ expected: "(boolean | undefined)",
470
+ value: input.incremental
471
+ })) && (undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile || $guard(_exceptionable, {
472
+ path: _path + ".tsBuildInfoFile",
473
+ expected: "(string | undefined)",
474
+ value: input.tsBuildInfoFile
475
+ })) && (undefined === input.removeComments || "boolean" === typeof input.removeComments || $guard(_exceptionable, {
476
+ path: _path + ".removeComments",
477
+ expected: "(boolean | undefined)",
478
+ value: input.removeComments
479
+ })) && (undefined === input.resolvePackageJsonExports || "boolean" === typeof input.resolvePackageJsonExports || $guard(_exceptionable, {
480
+ path: _path + ".resolvePackageJsonExports",
481
+ expected: "(boolean | undefined)",
482
+ value: input.resolvePackageJsonExports
483
+ })) && (undefined === input.resolvePackageJsonImports || "boolean" === typeof input.resolvePackageJsonImports || $guard(_exceptionable, {
484
+ path: _path + ".resolvePackageJsonImports",
485
+ expected: "(boolean | undefined)",
486
+ value: input.resolvePackageJsonImports
487
+ })) && (undefined === input.rootDir || "string" === typeof input.rootDir || $guard(_exceptionable, {
488
+ path: _path + ".rootDir",
489
+ expected: "(string | undefined)",
490
+ value: input.rootDir
491
+ })) && (undefined === input.rootDirs || (Array.isArray(input.rootDirs) || $guard(_exceptionable, {
492
+ path: _path + ".rootDirs",
493
+ expected: "(Array<string> | undefined)",
494
+ value: input.rootDirs
495
+ })) && input.rootDirs.every((elem, _index7) => "string" === typeof elem || $guard(_exceptionable, {
496
+ path: _path + ".rootDirs[" + _index7 + "]",
497
+ expected: "string",
498
+ value: elem
499
+ }))) && (undefined === input.skipLibCheck || "boolean" === typeof input.skipLibCheck || $guard(_exceptionable, {
500
+ path: _path + ".skipLibCheck",
501
+ expected: "(boolean | undefined)",
502
+ value: input.skipLibCheck
503
+ })) && (undefined === input.skipDefaultLibCheck || "boolean" === typeof input.skipDefaultLibCheck || $guard(_exceptionable, {
504
+ path: _path + ".skipDefaultLibCheck",
505
+ expected: "(boolean | undefined)",
506
+ value: input.skipDefaultLibCheck
507
+ })) && (undefined === input.sourceMap || "boolean" === typeof input.sourceMap || $guard(_exceptionable, {
508
+ path: _path + ".sourceMap",
509
+ expected: "(boolean | undefined)",
510
+ value: input.sourceMap
511
+ })) && (undefined === input.sourceRoot || "string" === typeof input.sourceRoot || $guard(_exceptionable, {
512
+ path: _path + ".sourceRoot",
513
+ expected: "(string | undefined)",
514
+ value: input.sourceRoot
515
+ })) && (undefined === input.strict || "boolean" === typeof input.strict || $guard(_exceptionable, {
516
+ path: _path + ".strict",
517
+ expected: "(boolean | undefined)",
518
+ value: input.strict
519
+ })) && (undefined === input.strictFunctionTypes || "boolean" === typeof input.strictFunctionTypes || $guard(_exceptionable, {
520
+ path: _path + ".strictFunctionTypes",
521
+ expected: "(boolean | undefined)",
522
+ value: input.strictFunctionTypes
523
+ })) && (undefined === input.strictBindCallApply || "boolean" === typeof input.strictBindCallApply || $guard(_exceptionable, {
524
+ path: _path + ".strictBindCallApply",
525
+ expected: "(boolean | undefined)",
526
+ value: input.strictBindCallApply
527
+ })) && (undefined === input.strictNullChecks || "boolean" === typeof input.strictNullChecks || $guard(_exceptionable, {
528
+ path: _path + ".strictNullChecks",
529
+ expected: "(boolean | undefined)",
530
+ value: input.strictNullChecks
531
+ })) && (undefined === input.strictPropertyInitialization || "boolean" === typeof input.strictPropertyInitialization || $guard(_exceptionable, {
532
+ path: _path + ".strictPropertyInitialization",
533
+ expected: "(boolean | undefined)",
534
+ value: input.strictPropertyInitialization
535
+ })) && (undefined === input.stripInternal || "boolean" === typeof input.stripInternal || $guard(_exceptionable, {
536
+ path: _path + ".stripInternal",
537
+ expected: "(boolean | undefined)",
538
+ value: input.stripInternal
539
+ })) && (undefined === input.suppressExcessPropertyErrors || "boolean" === typeof input.suppressExcessPropertyErrors || $guard(_exceptionable, {
540
+ path: _path + ".suppressExcessPropertyErrors",
541
+ expected: "(boolean | undefined)",
542
+ value: input.suppressExcessPropertyErrors
543
+ })) && (undefined === input.suppressImplicitAnyIndexErrors || "boolean" === typeof input.suppressImplicitAnyIndexErrors || $guard(_exceptionable, {
544
+ path: _path + ".suppressImplicitAnyIndexErrors",
545
+ expected: "(boolean | undefined)",
546
+ value: input.suppressImplicitAnyIndexErrors
547
+ })) && true && (undefined === input.traceResolution || "boolean" === typeof input.traceResolution || $guard(_exceptionable, {
548
+ path: _path + ".traceResolution",
549
+ expected: "(boolean | undefined)",
550
+ value: input.traceResolution
551
+ })) && (undefined === input.useUnknownInCatchVariables || "boolean" === typeof input.useUnknownInCatchVariables || $guard(_exceptionable, {
552
+ path: _path + ".useUnknownInCatchVariables",
553
+ expected: "(boolean | undefined)",
554
+ value: input.useUnknownInCatchVariables
555
+ })) && (undefined === input.resolveJsonModule || "boolean" === typeof input.resolveJsonModule || $guard(_exceptionable, {
556
+ path: _path + ".resolveJsonModule",
557
+ expected: "(boolean | undefined)",
558
+ value: input.resolveJsonModule
559
+ })) && (undefined === input.types || (Array.isArray(input.types) || $guard(_exceptionable, {
560
+ path: _path + ".types",
561
+ expected: "(Array<string> | undefined)",
562
+ value: input.types
563
+ })) && input.types.every((elem, _index8) => "string" === typeof elem || $guard(_exceptionable, {
564
+ path: _path + ".types[" + _index8 + "]",
565
+ expected: "string",
566
+ value: elem
567
+ }))) && (undefined === input.typeRoots || (Array.isArray(input.typeRoots) || $guard(_exceptionable, {
568
+ path: _path + ".typeRoots",
569
+ expected: "(Array<string> | undefined)",
570
+ value: input.typeRoots
571
+ })) && input.typeRoots.every((elem, _index9) => "string" === typeof elem || $guard(_exceptionable, {
572
+ path: _path + ".typeRoots[" + _index9 + "]",
573
+ expected: "string",
574
+ value: elem
575
+ }))) && (undefined === input.verbatimModuleSyntax || "boolean" === typeof input.verbatimModuleSyntax || $guard(_exceptionable, {
576
+ path: _path + ".verbatimModuleSyntax",
577
+ expected: "(boolean | undefined)",
578
+ value: input.verbatimModuleSyntax
579
+ })) && (undefined === input.esModuleInterop || "boolean" === typeof input.esModuleInterop || $guard(_exceptionable, {
580
+ path: _path + ".esModuleInterop",
581
+ expected: "(boolean | undefined)",
582
+ value: input.esModuleInterop
583
+ })) && (undefined === input.useDefineForClassFields || "boolean" === typeof input.useDefineForClassFields || $guard(_exceptionable, {
584
+ path: _path + ".useDefineForClassFields",
585
+ expected: "(boolean | undefined)",
586
+ value: input.useDefineForClassFields
587
+ })) && (false === _exceptionable || Object.keys(input).every(key => {
588
+ const value = input[key];
589
+ if (undefined === value)
590
+ return true;
591
+ if (RegExp(/(.*)/).test(key))
592
+ return true;
593
+ return true;
594
+ }));
595
+ const $ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
596
+ const value = input[key];
597
+ if (undefined === value)
598
+ return true;
599
+ if (RegExp(/(.*)/).test(key))
600
+ return (Array.isArray(value) || $guard(_exceptionable, {
601
+ path: _path + $join(key),
602
+ expected: "Array<string>",
603
+ value: value
604
+ })) && value.every((elem, _index10) => "string" === typeof elem || $guard(_exceptionable, {
605
+ path: _path + $join(key) + "[" + _index10 + "]",
606
+ expected: "string",
607
+ value: elem
608
+ }));
609
+ return true;
610
+ });
611
+ const $ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || $guard(_exceptionable, {
612
+ path: _path + ".output",
613
+ expected: "string",
614
+ value: input.output
615
+ })) && (undefined === input.security || ("object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) || $guard(_exceptionable, {
616
+ path: _path + ".security",
617
+ expected: "(Resolve<Record<string, INestiaConfig.ISwaggerConfig.ISecurityScheme>> | undefined)",
618
+ value: input.security
619
+ })) && $ao5(input.security, _path + ".security", true && _exceptionable));
620
+ const $ao5 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
621
+ const value = input[key];
622
+ if (undefined === value)
623
+ return true;
624
+ if (RegExp(/(.*)/).test(key))
625
+ return ("object" === typeof value && null !== value || $guard(_exceptionable, {
626
+ path: _path + $join(key),
627
+ expected: "(Resolve<INestiaConfig.ISwaggerConfig.IApiKey> | Resolve<ISwaggerDocument.ISecurityScheme.IHttpBasic> | Resolve<ISwaggerDocument.ISecurityScheme.IHttpBearer> | Resolve<ISwaggerDocument.ISecurityScheme.IOAuth2> | Resolve<ISwaggerDocument.ISecurityScheme.IOpenId>)",
628
+ value: value
629
+ })) && $au0(value, _path + $join(key), true && _exceptionable);
630
+ return true;
631
+ });
632
+ const $ao6 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
633
+ path: _path + ".type",
634
+ expected: "\"http\"",
635
+ value: input.type
636
+ })) && ("basic" === input.schema || $guard(_exceptionable, {
637
+ path: _path + ".schema",
638
+ expected: "\"basic\"",
639
+ value: input.schema
640
+ }));
641
+ const $ao7 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
642
+ path: _path + ".type",
643
+ expected: "\"http\"",
644
+ value: input.type
645
+ })) && ("bearer" === input.scheme || $guard(_exceptionable, {
646
+ path: _path + ".scheme",
647
+ expected: "\"bearer\"",
648
+ value: input.scheme
649
+ })) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $guard(_exceptionable, {
650
+ path: _path + ".bearerFormat",
651
+ expected: "(string | undefined)",
652
+ value: input.bearerFormat
653
+ }));
654
+ const $ao8 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
655
+ path: _path + ".type",
656
+ expected: "\"openIdConnect\"",
657
+ value: input.type
658
+ })) && ("string" === typeof input.openIdConnectUrl || $guard(_exceptionable, {
659
+ path: _path + ".openIdConnectUrl",
660
+ expected: "string",
661
+ value: input.openIdConnectUrl
662
+ }));
663
+ const $ao9 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
664
+ path: _path + ".type",
665
+ expected: "\"oauth2\"",
666
+ value: input.type
667
+ })) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $guard(_exceptionable, {
668
+ path: _path + ".flows",
669
+ expected: "Resolve<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlowSet>",
670
+ value: input.flows
671
+ })) && $ao10(input.flows, _path + ".flows", true && _exceptionable)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
672
+ path: _path + ".description",
673
+ expected: "(string | undefined)",
674
+ value: input.description
675
+ }));
676
+ const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $guard(_exceptionable, {
677
+ path: _path + ".authorizationCode",
678
+ expected: "(Resolve<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow> | undefined)",
679
+ value: input.authorizationCode
680
+ })) && $ao11(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable)) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit || $guard(_exceptionable, {
681
+ path: _path + ".implicit",
682
+ expected: "(Resolve<Omit<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\">> | undefined)",
683
+ value: input.implicit
684
+ })) && $ao13(input.implicit, _path + ".implicit", true && _exceptionable)) && (undefined === input.password || ("object" === typeof input.password && null !== input.password || $guard(_exceptionable, {
685
+ path: _path + ".password",
686
+ expected: "(Resolve<Omit<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\">> | undefined)",
687
+ value: input.password
688
+ })) && $ao14(input.password, _path + ".password", true && _exceptionable)) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials || $guard(_exceptionable, {
689
+ path: _path + ".clientCredentials",
690
+ expected: "(Resolve<Omit<ISwaggerDocument.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\">> | undefined)",
691
+ value: input.clientCredentials
692
+ })) && $ao14(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable));
693
+ const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
694
+ path: _path + ".authorizationUrl",
695
+ expected: "string",
696
+ value: input.authorizationUrl
697
+ })) && ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
698
+ path: _path + ".tokenUrl",
699
+ expected: "string",
700
+ value: input.tokenUrl
701
+ })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
702
+ path: _path + ".refreshUrl",
703
+ expected: "string",
704
+ value: input.refreshUrl
705
+ })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
706
+ path: _path + ".scopes",
707
+ expected: "(Resolve<Record<string, string>> | undefined)",
708
+ value: input.scopes
709
+ })) && $ao12(input.scopes, _path + ".scopes", true && _exceptionable));
710
+ const $ao12 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
711
+ const value = input[key];
712
+ if (undefined === value)
713
+ return true;
714
+ if (RegExp(/(.*)/).test(key))
715
+ return "string" === typeof value || $guard(_exceptionable, {
716
+ path: _path + $join(key),
717
+ expected: "string",
718
+ value: value
719
+ });
720
+ return true;
721
+ });
722
+ const $ao13 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
723
+ path: _path + ".authorizationUrl",
724
+ expected: "string",
725
+ value: input.authorizationUrl
726
+ })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
727
+ path: _path + ".refreshUrl",
728
+ expected: "string",
729
+ value: input.refreshUrl
730
+ })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
731
+ path: _path + ".scopes",
732
+ expected: "(Resolve<Record<string, string>> | undefined)",
733
+ value: input.scopes
734
+ })) && $ao12(input.scopes, _path + ".scopes", true && _exceptionable));
735
+ const $ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
736
+ path: _path + ".tokenUrl",
737
+ expected: "string",
738
+ value: input.tokenUrl
739
+ })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
740
+ path: _path + ".refreshUrl",
741
+ expected: "string",
742
+ value: input.refreshUrl
743
+ })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
744
+ path: _path + ".scopes",
745
+ expected: "(Resolve<Record<string, string>> | undefined)",
746
+ value: input.scopes
747
+ })) && $ao12(input.scopes, _path + ".scopes", true && _exceptionable));
748
+ const $ao15 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
749
+ path: _path + ".type",
750
+ expected: "\"apiKey\"",
751
+ value: input.type
752
+ })) && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $guard(_exceptionable, {
753
+ path: _path + "[\"in\"]",
754
+ expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
755
+ value: input["in"]
756
+ })) && (undefined === input.name || "string" === typeof input.name && ($is_custom("default", "string", "Authorization", input.name) || $guard(_exceptionable, {
757
+ path: _path + ".name",
758
+ expected: "string (@default Authorization)",
759
+ value: input.name
760
+ })) || $guard(_exceptionable, {
761
+ path: _path + ".name",
762
+ expected: "(string | undefined)",
763
+ value: input.name
764
+ }));
765
+ const $au0 = (input, _path, _exceptionable = true) => (() => {
766
+ if (undefined !== input.schema)
767
+ return $ao6(input, _path, true && _exceptionable);
768
+ if (undefined !== input.scheme)
769
+ return $ao7(input, _path, true && _exceptionable);
770
+ if ("openIdConnect" === input.type)
771
+ return $ao8(input, _path, true && _exceptionable);
772
+ if ("oauth2" === input.type)
773
+ return $ao9(input, _path, true && _exceptionable);
774
+ if ("apiKey" === input.type)
775
+ return $ao15(input, _path, true && _exceptionable);
776
+ return $guard(_exceptionable, {
777
+ path: _path,
778
+ expected: "(ISwaggerDocument.ISecurityScheme.IHttpBasic | ISwaggerDocument.ISecurityScheme.IHttpBearer | ISwaggerDocument.ISecurityScheme.IOpenId | ISwaggerDocument.ISecurityScheme.IOAuth2 | INestiaConfig.ISwaggerConfig.IApiKey)",
779
+ value: input
780
+ });
781
+ })();
782
+ return ("object" === typeof input && null !== input || $guard(true, {
783
+ path: _path + "",
784
+ expected: "Resolve<INestiaConfig>",
785
+ value: input
786
+ })) && $ao0(input, _path + "", true);
787
+ })(input, "$input", true);
689
788
  return input;
690
789
  })(cloned);
691
790
  }));