@nestia/sdk 2.0.0-dev.20230991 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/bundle/api/utils/NestiaSimulator.ts +5 -14
- package/lib/INestiaConfig.d.ts +60 -47
- package/lib/NestiaSdkApplication.d.ts +6 -5
- package/lib/NestiaSdkApplication.js +30 -87
- package/lib/NestiaSdkApplication.js.map +1 -1
- package/lib/analyses/ControllerAnalyzer.js +8 -5
- package/lib/analyses/ControllerAnalyzer.js.map +1 -1
- package/lib/analyses/ReflectAnalyzer.js +9 -1
- package/lib/analyses/ReflectAnalyzer.js.map +1 -1
- package/lib/executable/internal/NestiaConfigLoader.d.ts +7 -0
- package/lib/executable/internal/NestiaConfigLoader.js +582 -0
- package/lib/executable/internal/NestiaConfigLoader.js.map +1 -0
- package/lib/executable/internal/NestiaProjectGetter.d.ts +3 -0
- package/lib/executable/internal/NestiaProjectGetter.js +28 -0
- package/lib/executable/internal/NestiaProjectGetter.js.map +1 -0
- package/lib/executable/internal/NestiaSdkCommand.d.ts +3 -3
- package/lib/executable/internal/NestiaSdkCommand.js +13 -104
- package/lib/executable/internal/NestiaSdkCommand.js.map +1 -1
- package/lib/executable/internal/{nestia.config.getter.js → nestia.project.getter.js} +3 -3
- package/lib/executable/internal/nestia.project.getter.js.map +1 -0
- package/lib/executable/sdk.js +3 -3
- package/lib/executable/sdk.js.map +1 -1
- package/lib/generates/SdkGenerator.d.ts +2 -1
- package/lib/generates/SdkGenerator.js +7 -3
- package/lib/generates/SdkGenerator.js.map +1 -1
- package/lib/generates/SwaggerGenerator.js +26 -9
- package/lib/generates/SwaggerGenerator.js.map +1 -1
- package/lib/generates/internal/E2eFileProgrammer.js +21 -15
- package/lib/generates/internal/E2eFileProgrammer.js.map +1 -1
- package/lib/generates/internal/{DistributionComposer.d.ts → SdkDistributionComposer.d.ts} +1 -1
- package/lib/generates/internal/{DistributionComposer.js → SdkDistributionComposer.js} +8 -12
- package/lib/generates/internal/SdkDistributionComposer.js.map +1 -0
- package/lib/generates/internal/SdkDtoGenerator.d.ts +9 -0
- package/lib/generates/internal/SdkDtoGenerator.js +264 -0
- package/lib/generates/internal/SdkDtoGenerator.js.map +1 -0
- package/lib/generates/internal/SdkFileProgrammer.js +8 -7
- package/lib/generates/internal/SdkFileProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkFunctionProgrammer.js +32 -22
- package/lib/generates/internal/SdkFunctionProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkImportWizard.d.ts +2 -0
- package/lib/generates/internal/SdkImportWizard.js +10 -0
- package/lib/generates/internal/SdkImportWizard.js.map +1 -1
- package/lib/generates/internal/SdkSimulationProgrammer.js +61 -25
- package/lib/generates/internal/SdkSimulationProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkTypeDefiner.d.ts +11 -0
- package/lib/generates/internal/SdkTypeDefiner.js +82 -0
- package/lib/generates/internal/SdkTypeDefiner.js.map +1 -0
- package/lib/generates/internal/SwaggerSchemaGenerator.d.ts +1 -1
- package/lib/generates/internal/SwaggerSchemaGenerator.js +67 -75
- package/lib/generates/internal/SwaggerSchemaGenerator.js.map +1 -1
- package/lib/generates/internal/SwaggerSchemaValidator.js +0 -8
- package/lib/generates/internal/SwaggerSchemaValidator.js.map +1 -1
- package/lib/structures/IController.d.ts +2 -0
- package/lib/structures/IRoute.d.ts +9 -2
- package/lib/utils/ImportDictionary.d.ts +1 -2
- package/lib/utils/ImportDictionary.js +28 -24
- package/lib/utils/ImportDictionary.js.map +1 -1
- package/package.json +8 -8
- package/src/INestiaConfig.ts +65 -50
- package/src/NestiaSdkApplication.ts +39 -84
- package/src/analyses/ControllerAnalyzer.ts +10 -8
- package/src/analyses/ReflectAnalyzer.ts +8 -0
- package/src/executable/internal/NestiaConfigLoader.ts +82 -0
- package/src/executable/internal/NestiaProjectGetter.ts +11 -0
- package/src/executable/internal/NestiaSdkCommand.ts +23 -146
- package/src/executable/internal/{nestia.config.getter.ts → nestia.project.getter.ts} +2 -2
- package/src/executable/sdk.ts +3 -3
- package/src/generates/SdkGenerator.ts +9 -2
- package/src/generates/SwaggerGenerator.ts +37 -9
- package/src/generates/internal/E2eFileProgrammer.ts +33 -20
- package/src/generates/internal/{DistributionComposer.ts → SdkDistributionComposer.ts} +3 -6
- package/src/generates/internal/SdkDtoGenerator.ts +384 -0
- package/src/generates/internal/SdkFileProgrammer.ts +8 -7
- package/src/generates/internal/SdkFunctionProgrammer.ts +71 -37
- package/src/generates/internal/SdkImportWizard.ts +14 -0
- package/src/generates/internal/SdkSimulationProgrammer.ts +71 -37
- package/src/generates/internal/SdkTypeDefiner.ts +120 -0
- package/src/generates/internal/SwaggerSchemaGenerator.ts +94 -92
- package/src/generates/internal/SwaggerSchemaValidator.ts +0 -12
- package/src/structures/IController.ts +2 -0
- package/src/structures/IRoute.ts +10 -2
- package/src/utils/ImportDictionary.ts +29 -26
- package/lib/executable/internal/NestiaConfigCompilerOptions.d.ts +0 -12
- package/lib/executable/internal/NestiaConfigCompilerOptions.js +0 -18
- package/lib/executable/internal/NestiaConfigCompilerOptions.js.map +0 -1
- package/lib/executable/internal/NestiaSdkConfig.d.ts +0 -4
- package/lib/executable/internal/NestiaSdkConfig.js +0 -1019
- package/lib/executable/internal/NestiaSdkConfig.js.map +0 -1
- package/lib/executable/internal/nestia.config.getter.js.map +0 -1
- package/lib/generates/internal/DistributionComposer.js.map +0 -1
- package/src/executable/internal/NestiaConfigCompilerOptions.ts +0 -19
- package/src/executable/internal/NestiaSdkConfig.ts +0 -36
- /package/lib/executable/internal/{nestia.config.getter.d.ts → nestia.project.getter.d.ts} +0 -0
|
@@ -1,1019 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (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
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
-
};
|
|
37
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.NestiaSdkConfig = void 0;
|
|
39
|
-
const fs_1 = __importDefault(require("fs"));
|
|
40
|
-
const path_1 = __importDefault(require("path"));
|
|
41
|
-
const runner = __importStar(require("ts-node"));
|
|
42
|
-
const Singleton_1 = require("tstl/thread/Singleton");
|
|
43
|
-
const typia_1 = require("typia");
|
|
44
|
-
var NestiaSdkConfig;
|
|
45
|
-
(function (NestiaSdkConfig) {
|
|
46
|
-
function get() {
|
|
47
|
-
return singleton.get();
|
|
48
|
-
}
|
|
49
|
-
NestiaSdkConfig.get = get;
|
|
50
|
-
const singleton = new Singleton_1.Singleton(() => __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
if (fs_1.default.existsSync("nestia.config.ts") === false)
|
|
52
|
-
return null;
|
|
53
|
-
runner.register({
|
|
54
|
-
emit: false,
|
|
55
|
-
compilerOptions: {
|
|
56
|
-
module: "CommonJS",
|
|
57
|
-
noEmit: true,
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
const loaded = yield Promise.resolve(`${path_1.default.resolve("nestia.config.ts")}`).then(s => __importStar(require(s)));
|
|
61
|
-
if (typeof loaded !== "object")
|
|
62
|
-
throw new Error("Error on NestiaConfig.get(): failed to load data");
|
|
63
|
-
const config = typeof loaded.default === "object" ? loaded.default : loaded;
|
|
64
|
-
const cloned = JSON.parse(JSON.stringify(config));
|
|
65
|
-
return (input => {
|
|
66
|
-
const __is = input => {
|
|
67
|
-
const $io0 = input => (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io1(input.swagger)) && (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 && $io17(input.input)))) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.compilerOptions || "object" === typeof input.compilerOptions && null !== input.compilerOptions && false === Array.isArray(input.compilerOptions) && $io18(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.simulate || "boolean" === typeof input.simulate);
|
|
68
|
-
const $io1 = input => "string" === typeof input.output && (undefined === input.info || "object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) && $io2(input.info)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.security || "object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) && $io6(input.security)) && (undefined === input.decompose || "boolean" === typeof input.decompose);
|
|
69
|
-
const $io2 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.termsOfService)) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io3(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io4(input.license)) && (undefined === input.version || "string" === typeof input.version);
|
|
70
|
-
const $io3 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url)) && (undefined === input.email || "string" === typeof input.email && /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(input.email));
|
|
71
|
-
const $io4 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url));
|
|
72
|
-
const $io5 = input => "string" === typeof input.url && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) && (undefined === input.description || "string" === typeof input.description);
|
|
73
|
-
const $io6 = input => Object.keys(input).every(key => {
|
|
74
|
-
const value = input[key];
|
|
75
|
-
if (undefined === value)
|
|
76
|
-
return true;
|
|
77
|
-
if (RegExp(/(.*)/).test(key))
|
|
78
|
-
return "object" === typeof value && null !== value && $iu0(value);
|
|
79
|
-
return true;
|
|
80
|
-
});
|
|
81
|
-
const $io7 = input => "http" === input.type && "basic" === input.scheme;
|
|
82
|
-
const $io8 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat);
|
|
83
|
-
const $io9 = input => "apiKey" === input.type && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name);
|
|
84
|
-
const $io10 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl;
|
|
85
|
-
const $io11 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io12(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
|
86
|
-
const $io12 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && $io13(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && $io15(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && $io16(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && $io16(input.clientCredentials));
|
|
87
|
-
const $io13 = 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) && $io14(input.scopes));
|
|
88
|
-
const $io14 = input => Object.keys(input).every(key => {
|
|
89
|
-
const value = input[key];
|
|
90
|
-
if (undefined === value)
|
|
91
|
-
return true;
|
|
92
|
-
if (RegExp(/(.*)/).test(key))
|
|
93
|
-
return "string" === typeof value;
|
|
94
|
-
return true;
|
|
95
|
-
});
|
|
96
|
-
const $io15 = input => "string" === typeof input.authorizationUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io14(input.scopes));
|
|
97
|
-
const $io16 = input => "string" === typeof input.tokenUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io14(input.scopes));
|
|
98
|
-
const $io17 = 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));
|
|
99
|
-
const $io18 = 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) && $io19(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 => {
|
|
100
|
-
if (["allowImportingTsExtensions", "allowJs", "allowArbitraryExtensions", "allowSyntheticDefaultImports", "allowUmdGlobalAccess", "allowUnreachableCode", "allowUnusedLabels", "alwaysStrict", "baseUrl", "charset", "checkJs", "customConditions", "declaration", "declarationMap", "emitDeclarationOnly", "declarationDir", "disableSizeLimit", "disableSourceOfProjectReferenceRedirect", "disableSolutionSearching", "disableReferencedProjectLoad", "downlevelIteration", "emitBOM", "emitDecoratorMetadata", "exactOptionalPropertyTypes", "experimentalDecorators", "forceConsistentCasingInFileNames", "ignoreDeprecations", "importHelpers", "importsNotUsedAsValues", "inlineSourceMap", "inlineSources", "isolatedModules", "jsx", "keyofStringsOnly", "lib", "locale", "mapRoot", "maxNodeModuleJsDepth", "module", "moduleResolution", "moduleSuffixes", "moduleDetection", "newLine", "noEmit", "noEmitHelpers", "noEmitOnError", "noErrorTruncation", "noFallthroughCasesInSwitch", "noImplicitAny", "noImplicitReturns", "noImplicitThis", "noStrictGenericChecks", "noUnusedLocals", "noUnusedParameters", "noImplicitUseStrict", "noPropertyAccessFromIndexSignature", "assumeChangesOnlyAffectDirectDependencies", "noLib", "noResolve", "noUncheckedIndexedAccess", "out", "outDir", "outFile", "paths", "preserveConstEnums", "noImplicitOverride", "preserveSymlinks", "preserveValueImports", "project", "reactNamespace", "jsxFactory", "jsxFragmentFactory", "jsxImportSource", "composite", "incremental", "tsBuildInfoFile", "removeComments", "resolvePackageJsonExports", "resolvePackageJsonImports", "rootDir", "rootDirs", "skipLibCheck", "skipDefaultLibCheck", "sourceMap", "sourceRoot", "strict", "strictFunctionTypes", "strictBindCallApply", "strictNullChecks", "strictPropertyInitialization", "stripInternal", "suppressExcessPropertyErrors", "suppressImplicitAnyIndexErrors", "target", "traceResolution", "useUnknownInCatchVariables", "resolveJsonModule", "types", "typeRoots", "verbatimModuleSyntax", "esModuleInterop", "useDefineForClassFields"].some(prop => key === prop))
|
|
101
|
-
return true;
|
|
102
|
-
const value = input[key];
|
|
103
|
-
if (undefined === value)
|
|
104
|
-
return true;
|
|
105
|
-
if (RegExp(/(.*)/).test(key))
|
|
106
|
-
return true;
|
|
107
|
-
return true;
|
|
108
|
-
});
|
|
109
|
-
const $io19 = input => Object.keys(input).every(key => {
|
|
110
|
-
const value = input[key];
|
|
111
|
-
if (undefined === value)
|
|
112
|
-
return true;
|
|
113
|
-
if (RegExp(/(.*)/).test(key))
|
|
114
|
-
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
|
115
|
-
return true;
|
|
116
|
-
});
|
|
117
|
-
const $iu0 = input => (() => {
|
|
118
|
-
if ("basic" === input.scheme)
|
|
119
|
-
return $io7(input);
|
|
120
|
-
else if ("bearer" === input.scheme)
|
|
121
|
-
return $io8(input);
|
|
122
|
-
else if ("apiKey" === input.type)
|
|
123
|
-
return $io9(input);
|
|
124
|
-
else if ("openIdConnect" === input.type)
|
|
125
|
-
return $io10(input);
|
|
126
|
-
else if ("oauth2" === input.type)
|
|
127
|
-
return $io11(input);
|
|
128
|
-
else
|
|
129
|
-
return false;
|
|
130
|
-
})();
|
|
131
|
-
return "object" === typeof input && null !== input && $io0(input);
|
|
132
|
-
};
|
|
133
|
-
if (false === __is(input))
|
|
134
|
-
((input, _path, _exceptionable = true) => {
|
|
135
|
-
const $guard = typia_1.assert.guard;
|
|
136
|
-
const $join = typia_1.assert.join;
|
|
137
|
-
const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.swagger || ("object" === typeof input.swagger && null !== input.swagger || $guard(_exceptionable, {
|
|
138
|
-
path: _path + ".swagger",
|
|
139
|
-
expected: "(INestiaConfig.ISwaggerConfig | undefined)",
|
|
140
|
-
value: input.swagger
|
|
141
|
-
})) && $ao1(input.swagger, _path + ".swagger", true && _exceptionable) || $guard(_exceptionable, {
|
|
142
|
-
path: _path + ".swagger",
|
|
143
|
-
expected: "(INestiaConfig.ISwaggerConfig | undefined)",
|
|
144
|
-
value: input.swagger
|
|
145
|
-
})) && ((null !== input.input || $guard(_exceptionable, {
|
|
146
|
-
path: _path + ".input",
|
|
147
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
148
|
-
value: input.input
|
|
149
|
-
})) && (undefined !== input.input || $guard(_exceptionable, {
|
|
150
|
-
path: _path + ".input",
|
|
151
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
152
|
-
value: input.input
|
|
153
|
-
})) && ("string" === typeof input.input || (Array.isArray(input.input) && input.input.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
|
|
154
|
-
path: _path + ".input[" + _index1 + "]",
|
|
155
|
-
expected: "string",
|
|
156
|
-
value: elem
|
|
157
|
-
})) || "object" === typeof input.input && null !== input.input && $ao17(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
|
|
158
|
-
path: _path + ".input",
|
|
159
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
160
|
-
value: input.input
|
|
161
|
-
})) || $guard(_exceptionable, {
|
|
162
|
-
path: _path + ".input",
|
|
163
|
-
expected: "(Array<string> | INestiaConfig.IInput | string)",
|
|
164
|
-
value: input.input
|
|
165
|
-
}))) && (undefined === input.output || "string" === typeof input.output || $guard(_exceptionable, {
|
|
166
|
-
path: _path + ".output",
|
|
167
|
-
expected: "(string | undefined)",
|
|
168
|
-
value: input.output
|
|
169
|
-
})) && (undefined === input.distribute || "string" === typeof input.distribute || $guard(_exceptionable, {
|
|
170
|
-
path: _path + ".distribute",
|
|
171
|
-
expected: "(string | undefined)",
|
|
172
|
-
value: input.distribute
|
|
173
|
-
})) && (undefined === input.e2e || "string" === typeof input.e2e || $guard(_exceptionable, {
|
|
174
|
-
path: _path + ".e2e",
|
|
175
|
-
expected: "(string | undefined)",
|
|
176
|
-
value: input.e2e
|
|
177
|
-
})) && (undefined === input.compilerOptions || ("object" === typeof input.compilerOptions && null !== input.compilerOptions && false === Array.isArray(input.compilerOptions) || $guard(_exceptionable, {
|
|
178
|
-
path: _path + ".compilerOptions",
|
|
179
|
-
expected: "(StripEnums<ts.CompilerOptions> | undefined)",
|
|
180
|
-
value: input.compilerOptions
|
|
181
|
-
})) && $ao18(input.compilerOptions, _path + ".compilerOptions", true && _exceptionable) || $guard(_exceptionable, {
|
|
182
|
-
path: _path + ".compilerOptions",
|
|
183
|
-
expected: "(StripEnums<ts.CompilerOptions> | undefined)",
|
|
184
|
-
value: input.compilerOptions
|
|
185
|
-
})) && (undefined === input.assert || "boolean" === typeof input.assert || $guard(_exceptionable, {
|
|
186
|
-
path: _path + ".assert",
|
|
187
|
-
expected: "(boolean | undefined)",
|
|
188
|
-
value: input.assert
|
|
189
|
-
})) && (undefined === input.json || "boolean" === typeof input.json || $guard(_exceptionable, {
|
|
190
|
-
path: _path + ".json",
|
|
191
|
-
expected: "(boolean | undefined)",
|
|
192
|
-
value: input.json
|
|
193
|
-
})) && (undefined === input.primitive || "boolean" === typeof input.primitive || $guard(_exceptionable, {
|
|
194
|
-
path: _path + ".primitive",
|
|
195
|
-
expected: "(boolean | undefined)",
|
|
196
|
-
value: input.primitive
|
|
197
|
-
})) && (undefined === input.simulate || "boolean" === typeof input.simulate || $guard(_exceptionable, {
|
|
198
|
-
path: _path + ".simulate",
|
|
199
|
-
expected: "(boolean | undefined)",
|
|
200
|
-
value: input.simulate
|
|
201
|
-
}));
|
|
202
|
-
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || $guard(_exceptionable, {
|
|
203
|
-
path: _path + ".output",
|
|
204
|
-
expected: "string",
|
|
205
|
-
value: input.output
|
|
206
|
-
})) && (undefined === input.info || ("object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) || $guard(_exceptionable, {
|
|
207
|
-
path: _path + ".info",
|
|
208
|
-
expected: "(Partial<ISwaggerInfo> | undefined)",
|
|
209
|
-
value: input.info
|
|
210
|
-
})) && $ao2(input.info, _path + ".info", true && _exceptionable) || $guard(_exceptionable, {
|
|
211
|
-
path: _path + ".info",
|
|
212
|
-
expected: "(Partial<ISwaggerInfo> | undefined)",
|
|
213
|
-
value: input.info
|
|
214
|
-
})) && (undefined === input.servers || (Array.isArray(input.servers) || $guard(_exceptionable, {
|
|
215
|
-
path: _path + ".servers",
|
|
216
|
-
expected: "(Array<ISwagger.IServer> | undefined)",
|
|
217
|
-
value: input.servers
|
|
218
|
-
})) && input.servers.every((elem, _index2) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
219
|
-
path: _path + ".servers[" + _index2 + "]",
|
|
220
|
-
expected: "ISwagger.IServer",
|
|
221
|
-
value: elem
|
|
222
|
-
})) && $ao5(elem, _path + ".servers[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
223
|
-
path: _path + ".servers[" + _index2 + "]",
|
|
224
|
-
expected: "ISwagger.IServer",
|
|
225
|
-
value: elem
|
|
226
|
-
})) || $guard(_exceptionable, {
|
|
227
|
-
path: _path + ".servers",
|
|
228
|
-
expected: "(Array<ISwagger.IServer> | undefined)",
|
|
229
|
-
value: input.servers
|
|
230
|
-
})) && (undefined === input.security || ("object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) || $guard(_exceptionable, {
|
|
231
|
-
path: _path + ".security",
|
|
232
|
-
expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
|
|
233
|
-
value: input.security
|
|
234
|
-
})) && $ao6(input.security, _path + ".security", true && _exceptionable) || $guard(_exceptionable, {
|
|
235
|
-
path: _path + ".security",
|
|
236
|
-
expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
|
|
237
|
-
value: input.security
|
|
238
|
-
})) && (undefined === input.decompose || "boolean" === typeof input.decompose || $guard(_exceptionable, {
|
|
239
|
-
path: _path + ".decompose",
|
|
240
|
-
expected: "(boolean | undefined)",
|
|
241
|
-
value: input.decompose
|
|
242
|
-
}));
|
|
243
|
-
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
|
244
|
-
path: _path + ".title",
|
|
245
|
-
expected: "(string | undefined)",
|
|
246
|
-
value: input.title
|
|
247
|
-
})) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
248
|
-
path: _path + ".description",
|
|
249
|
-
expected: "(string | undefined)",
|
|
250
|
-
value: input.description
|
|
251
|
-
})) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.termsOfService) || $guard(_exceptionable, {
|
|
252
|
-
path: _path + ".termsOfService",
|
|
253
|
-
expected: "string & Format<url>",
|
|
254
|
-
value: input.termsOfService
|
|
255
|
-
})) || $guard(_exceptionable, {
|
|
256
|
-
path: _path + ".termsOfService",
|
|
257
|
-
expected: "((string & Format<url>) | undefined)",
|
|
258
|
-
value: input.termsOfService
|
|
259
|
-
})) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $guard(_exceptionable, {
|
|
260
|
-
path: _path + ".contact",
|
|
261
|
-
expected: "(ISwaggerInfo.IContact | undefined)",
|
|
262
|
-
value: input.contact
|
|
263
|
-
})) && $ao3(input.contact, _path + ".contact", true && _exceptionable) || $guard(_exceptionable, {
|
|
264
|
-
path: _path + ".contact",
|
|
265
|
-
expected: "(ISwaggerInfo.IContact | undefined)",
|
|
266
|
-
value: input.contact
|
|
267
|
-
})) && (undefined === input.license || ("object" === typeof input.license && null !== input.license || $guard(_exceptionable, {
|
|
268
|
-
path: _path + ".license",
|
|
269
|
-
expected: "(ISwaggerInfo.ILicense | undefined)",
|
|
270
|
-
value: input.license
|
|
271
|
-
})) && $ao4(input.license, _path + ".license", true && _exceptionable) || $guard(_exceptionable, {
|
|
272
|
-
path: _path + ".license",
|
|
273
|
-
expected: "(ISwaggerInfo.ILicense | undefined)",
|
|
274
|
-
value: input.license
|
|
275
|
-
})) && (undefined === input.version || "string" === typeof input.version || $guard(_exceptionable, {
|
|
276
|
-
path: _path + ".version",
|
|
277
|
-
expected: "(string | undefined)",
|
|
278
|
-
value: input.version
|
|
279
|
-
}));
|
|
280
|
-
const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
281
|
-
path: _path + ".name",
|
|
282
|
-
expected: "(string | undefined)",
|
|
283
|
-
value: input.name
|
|
284
|
-
})) && (undefined === input.url || "string" === typeof input.url && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) || $guard(_exceptionable, {
|
|
285
|
-
path: _path + ".url",
|
|
286
|
-
expected: "string & Format<url>",
|
|
287
|
-
value: input.url
|
|
288
|
-
})) || $guard(_exceptionable, {
|
|
289
|
-
path: _path + ".url",
|
|
290
|
-
expected: "((string & Format<url>) | undefined)",
|
|
291
|
-
value: input.url
|
|
292
|
-
})) && (undefined === input.email || "string" === typeof input.email && (/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(input.email) || $guard(_exceptionable, {
|
|
293
|
-
path: _path + ".email",
|
|
294
|
-
expected: "string & Format<email>",
|
|
295
|
-
value: input.email
|
|
296
|
-
})) || $guard(_exceptionable, {
|
|
297
|
-
path: _path + ".email",
|
|
298
|
-
expected: "((string & Format<email>) | undefined)",
|
|
299
|
-
value: input.email
|
|
300
|
-
}));
|
|
301
|
-
const $ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
|
302
|
-
path: _path + ".name",
|
|
303
|
-
expected: "string",
|
|
304
|
-
value: input.name
|
|
305
|
-
})) && (undefined === input.url || "string" === typeof input.url && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) || $guard(_exceptionable, {
|
|
306
|
-
path: _path + ".url",
|
|
307
|
-
expected: "string & Format<url>",
|
|
308
|
-
value: input.url
|
|
309
|
-
})) || $guard(_exceptionable, {
|
|
310
|
-
path: _path + ".url",
|
|
311
|
-
expected: "((string & Format<url>) | undefined)",
|
|
312
|
-
value: input.url
|
|
313
|
-
}));
|
|
314
|
-
const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.url && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) || $guard(_exceptionable, {
|
|
315
|
-
path: _path + ".url",
|
|
316
|
-
expected: "string & Format<url>",
|
|
317
|
-
value: input.url
|
|
318
|
-
})) || $guard(_exceptionable, {
|
|
319
|
-
path: _path + ".url",
|
|
320
|
-
expected: "(string & Format<url>)",
|
|
321
|
-
value: input.url
|
|
322
|
-
})) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
323
|
-
path: _path + ".description",
|
|
324
|
-
expected: "(string | undefined)",
|
|
325
|
-
value: input.description
|
|
326
|
-
}));
|
|
327
|
-
const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
328
|
-
const value = input[key];
|
|
329
|
-
if (undefined === value)
|
|
330
|
-
return true;
|
|
331
|
-
if (RegExp(/(.*)/).test(key))
|
|
332
|
-
return ("object" === typeof value && null !== value || $guard(_exceptionable, {
|
|
333
|
-
path: _path + $join(key),
|
|
334
|
-
expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
|
|
335
|
-
value: value
|
|
336
|
-
})) && $au0(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
|
337
|
-
path: _path + $join(key),
|
|
338
|
-
expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
|
|
339
|
-
value: value
|
|
340
|
-
});
|
|
341
|
-
return true;
|
|
342
|
-
});
|
|
343
|
-
const $ao7 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
|
344
|
-
path: _path + ".type",
|
|
345
|
-
expected: "\"http\"",
|
|
346
|
-
value: input.type
|
|
347
|
-
})) && ("basic" === input.scheme || $guard(_exceptionable, {
|
|
348
|
-
path: _path + ".scheme",
|
|
349
|
-
expected: "\"basic\"",
|
|
350
|
-
value: input.scheme
|
|
351
|
-
}));
|
|
352
|
-
const $ao8 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
|
353
|
-
path: _path + ".type",
|
|
354
|
-
expected: "\"http\"",
|
|
355
|
-
value: input.type
|
|
356
|
-
})) && ("bearer" === input.scheme || $guard(_exceptionable, {
|
|
357
|
-
path: _path + ".scheme",
|
|
358
|
-
expected: "\"bearer\"",
|
|
359
|
-
value: input.scheme
|
|
360
|
-
})) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $guard(_exceptionable, {
|
|
361
|
-
path: _path + ".bearerFormat",
|
|
362
|
-
expected: "(string | undefined)",
|
|
363
|
-
value: input.bearerFormat
|
|
364
|
-
}));
|
|
365
|
-
const $ao9 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
|
|
366
|
-
path: _path + ".type",
|
|
367
|
-
expected: "\"apiKey\"",
|
|
368
|
-
value: input.type
|
|
369
|
-
})) && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $guard(_exceptionable, {
|
|
370
|
-
path: _path + "[\"in\"]",
|
|
371
|
-
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
|
372
|
-
value: input["in"]
|
|
373
|
-
})) && (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
|
374
|
-
path: _path + ".name",
|
|
375
|
-
expected: "(string | undefined)",
|
|
376
|
-
value: input.name
|
|
377
|
-
}));
|
|
378
|
-
const $ao10 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
|
|
379
|
-
path: _path + ".type",
|
|
380
|
-
expected: "\"openIdConnect\"",
|
|
381
|
-
value: input.type
|
|
382
|
-
})) && ("string" === typeof input.openIdConnectUrl || $guard(_exceptionable, {
|
|
383
|
-
path: _path + ".openIdConnectUrl",
|
|
384
|
-
expected: "string",
|
|
385
|
-
value: input.openIdConnectUrl
|
|
386
|
-
}));
|
|
387
|
-
const $ao11 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
|
|
388
|
-
path: _path + ".type",
|
|
389
|
-
expected: "\"oauth2\"",
|
|
390
|
-
value: input.type
|
|
391
|
-
})) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $guard(_exceptionable, {
|
|
392
|
-
path: _path + ".flows",
|
|
393
|
-
expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
|
|
394
|
-
value: input.flows
|
|
395
|
-
})) && $ao12(input.flows, _path + ".flows", true && _exceptionable) || $guard(_exceptionable, {
|
|
396
|
-
path: _path + ".flows",
|
|
397
|
-
expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
|
|
398
|
-
value: input.flows
|
|
399
|
-
})) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
|
400
|
-
path: _path + ".description",
|
|
401
|
-
expected: "(string | undefined)",
|
|
402
|
-
value: input.description
|
|
403
|
-
}));
|
|
404
|
-
const $ao12 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $guard(_exceptionable, {
|
|
405
|
-
path: _path + ".authorizationCode",
|
|
406
|
-
expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
|
|
407
|
-
value: input.authorizationCode
|
|
408
|
-
})) && $ao13(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $guard(_exceptionable, {
|
|
409
|
-
path: _path + ".authorizationCode",
|
|
410
|
-
expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
|
|
411
|
-
value: input.authorizationCode
|
|
412
|
-
})) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit || $guard(_exceptionable, {
|
|
413
|
-
path: _path + ".implicit",
|
|
414
|
-
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
|
415
|
-
value: input.implicit
|
|
416
|
-
})) && $ao15(input.implicit, _path + ".implicit", true && _exceptionable) || $guard(_exceptionable, {
|
|
417
|
-
path: _path + ".implicit",
|
|
418
|
-
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
|
419
|
-
value: input.implicit
|
|
420
|
-
})) && (undefined === input.password || ("object" === typeof input.password && null !== input.password || $guard(_exceptionable, {
|
|
421
|
-
path: _path + ".password",
|
|
422
|
-
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
423
|
-
value: input.password
|
|
424
|
-
})) && $ao16(input.password, _path + ".password", true && _exceptionable) || $guard(_exceptionable, {
|
|
425
|
-
path: _path + ".password",
|
|
426
|
-
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
427
|
-
value: input.password
|
|
428
|
-
})) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials || $guard(_exceptionable, {
|
|
429
|
-
path: _path + ".clientCredentials",
|
|
430
|
-
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
431
|
-
value: input.clientCredentials
|
|
432
|
-
})) && $ao16(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $guard(_exceptionable, {
|
|
433
|
-
path: _path + ".clientCredentials",
|
|
434
|
-
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
|
435
|
-
value: input.clientCredentials
|
|
436
|
-
}));
|
|
437
|
-
const $ao13 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
|
438
|
-
path: _path + ".authorizationUrl",
|
|
439
|
-
expected: "string",
|
|
440
|
-
value: input.authorizationUrl
|
|
441
|
-
})) && ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
|
|
442
|
-
path: _path + ".tokenUrl",
|
|
443
|
-
expected: "string",
|
|
444
|
-
value: input.tokenUrl
|
|
445
|
-
})) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
|
|
446
|
-
path: _path + ".refreshUrl",
|
|
447
|
-
expected: "string",
|
|
448
|
-
value: input.refreshUrl
|
|
449
|
-
})) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
|
|
450
|
-
path: _path + ".scopes",
|
|
451
|
-
expected: "(Record<string, string> | undefined)",
|
|
452
|
-
value: input.scopes
|
|
453
|
-
})) && $ao14(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
|
454
|
-
path: _path + ".scopes",
|
|
455
|
-
expected: "(Record<string, string> | undefined)",
|
|
456
|
-
value: input.scopes
|
|
457
|
-
}));
|
|
458
|
-
const $ao14 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
459
|
-
const value = input[key];
|
|
460
|
-
if (undefined === value)
|
|
461
|
-
return true;
|
|
462
|
-
if (RegExp(/(.*)/).test(key))
|
|
463
|
-
return "string" === typeof value || $guard(_exceptionable, {
|
|
464
|
-
path: _path + $join(key),
|
|
465
|
-
expected: "string",
|
|
466
|
-
value: value
|
|
467
|
-
});
|
|
468
|
-
return true;
|
|
469
|
-
});
|
|
470
|
-
const $ao15 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
|
471
|
-
path: _path + ".authorizationUrl",
|
|
472
|
-
expected: "string",
|
|
473
|
-
value: input.authorizationUrl
|
|
474
|
-
})) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
|
|
475
|
-
path: _path + ".refreshUrl",
|
|
476
|
-
expected: "string",
|
|
477
|
-
value: input.refreshUrl
|
|
478
|
-
})) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
|
|
479
|
-
path: _path + ".scopes",
|
|
480
|
-
expected: "(Record<string, string> | undefined)",
|
|
481
|
-
value: input.scopes
|
|
482
|
-
})) && $ao14(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
|
483
|
-
path: _path + ".scopes",
|
|
484
|
-
expected: "(Record<string, string> | undefined)",
|
|
485
|
-
value: input.scopes
|
|
486
|
-
}));
|
|
487
|
-
const $ao16 = (input, _path, _exceptionable = true) => ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
|
|
488
|
-
path: _path + ".tokenUrl",
|
|
489
|
-
expected: "string",
|
|
490
|
-
value: input.tokenUrl
|
|
491
|
-
})) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
|
|
492
|
-
path: _path + ".refreshUrl",
|
|
493
|
-
expected: "string",
|
|
494
|
-
value: input.refreshUrl
|
|
495
|
-
})) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
|
|
496
|
-
path: _path + ".scopes",
|
|
497
|
-
expected: "(Record<string, string> | undefined)",
|
|
498
|
-
value: input.scopes
|
|
499
|
-
})) && $ao14(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
|
500
|
-
path: _path + ".scopes",
|
|
501
|
-
expected: "(Record<string, string> | undefined)",
|
|
502
|
-
value: input.scopes
|
|
503
|
-
}));
|
|
504
|
-
const $ao17 = (input, _path, _exceptionable = true) => ((Array.isArray(input.include) || $guard(_exceptionable, {
|
|
505
|
-
path: _path + ".include",
|
|
506
|
-
expected: "Array<string>",
|
|
507
|
-
value: input.include
|
|
508
|
-
})) && input.include.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
|
|
509
|
-
path: _path + ".include[" + _index3 + "]",
|
|
510
|
-
expected: "string",
|
|
511
|
-
value: elem
|
|
512
|
-
})) || $guard(_exceptionable, {
|
|
513
|
-
path: _path + ".include",
|
|
514
|
-
expected: "Array<string>",
|
|
515
|
-
value: input.include
|
|
516
|
-
})) && (undefined === input.exclude || (Array.isArray(input.exclude) || $guard(_exceptionable, {
|
|
517
|
-
path: _path + ".exclude",
|
|
518
|
-
expected: "(Array<string> | undefined)",
|
|
519
|
-
value: input.exclude
|
|
520
|
-
})) && input.exclude.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
|
|
521
|
-
path: _path + ".exclude[" + _index4 + "]",
|
|
522
|
-
expected: "string",
|
|
523
|
-
value: elem
|
|
524
|
-
})) || $guard(_exceptionable, {
|
|
525
|
-
path: _path + ".exclude",
|
|
526
|
-
expected: "(Array<string> | undefined)",
|
|
527
|
-
value: input.exclude
|
|
528
|
-
}));
|
|
529
|
-
const $ao18 = (input, _path, _exceptionable = true) => (undefined === input.allowImportingTsExtensions || "boolean" === typeof input.allowImportingTsExtensions || $guard(_exceptionable, {
|
|
530
|
-
path: _path + ".allowImportingTsExtensions",
|
|
531
|
-
expected: "(boolean | undefined)",
|
|
532
|
-
value: input.allowImportingTsExtensions
|
|
533
|
-
})) && (undefined === input.allowJs || "boolean" === typeof input.allowJs || $guard(_exceptionable, {
|
|
534
|
-
path: _path + ".allowJs",
|
|
535
|
-
expected: "(boolean | undefined)",
|
|
536
|
-
value: input.allowJs
|
|
537
|
-
})) && (undefined === input.allowArbitraryExtensions || "boolean" === typeof input.allowArbitraryExtensions || $guard(_exceptionable, {
|
|
538
|
-
path: _path + ".allowArbitraryExtensions",
|
|
539
|
-
expected: "(boolean | undefined)",
|
|
540
|
-
value: input.allowArbitraryExtensions
|
|
541
|
-
})) && (undefined === input.allowSyntheticDefaultImports || "boolean" === typeof input.allowSyntheticDefaultImports || $guard(_exceptionable, {
|
|
542
|
-
path: _path + ".allowSyntheticDefaultImports",
|
|
543
|
-
expected: "(boolean | undefined)",
|
|
544
|
-
value: input.allowSyntheticDefaultImports
|
|
545
|
-
})) && (undefined === input.allowUmdGlobalAccess || "boolean" === typeof input.allowUmdGlobalAccess || $guard(_exceptionable, {
|
|
546
|
-
path: _path + ".allowUmdGlobalAccess",
|
|
547
|
-
expected: "(boolean | undefined)",
|
|
548
|
-
value: input.allowUmdGlobalAccess
|
|
549
|
-
})) && (undefined === input.allowUnreachableCode || "boolean" === typeof input.allowUnreachableCode || $guard(_exceptionable, {
|
|
550
|
-
path: _path + ".allowUnreachableCode",
|
|
551
|
-
expected: "(boolean | undefined)",
|
|
552
|
-
value: input.allowUnreachableCode
|
|
553
|
-
})) && (undefined === input.allowUnusedLabels || "boolean" === typeof input.allowUnusedLabels || $guard(_exceptionable, {
|
|
554
|
-
path: _path + ".allowUnusedLabels",
|
|
555
|
-
expected: "(boolean | undefined)",
|
|
556
|
-
value: input.allowUnusedLabels
|
|
557
|
-
})) && (undefined === input.alwaysStrict || "boolean" === typeof input.alwaysStrict || $guard(_exceptionable, {
|
|
558
|
-
path: _path + ".alwaysStrict",
|
|
559
|
-
expected: "(boolean | undefined)",
|
|
560
|
-
value: input.alwaysStrict
|
|
561
|
-
})) && (undefined === input.baseUrl || "string" === typeof input.baseUrl || $guard(_exceptionable, {
|
|
562
|
-
path: _path + ".baseUrl",
|
|
563
|
-
expected: "(string | undefined)",
|
|
564
|
-
value: input.baseUrl
|
|
565
|
-
})) && (undefined === input.charset || "string" === typeof input.charset || $guard(_exceptionable, {
|
|
566
|
-
path: _path + ".charset",
|
|
567
|
-
expected: "(string | undefined)",
|
|
568
|
-
value: input.charset
|
|
569
|
-
})) && (undefined === input.checkJs || "boolean" === typeof input.checkJs || $guard(_exceptionable, {
|
|
570
|
-
path: _path + ".checkJs",
|
|
571
|
-
expected: "(boolean | undefined)",
|
|
572
|
-
value: input.checkJs
|
|
573
|
-
})) && (undefined === input.customConditions || (Array.isArray(input.customConditions) || $guard(_exceptionable, {
|
|
574
|
-
path: _path + ".customConditions",
|
|
575
|
-
expected: "(Array<string> | undefined)",
|
|
576
|
-
value: input.customConditions
|
|
577
|
-
})) && input.customConditions.every((elem, _index5) => "string" === typeof elem || $guard(_exceptionable, {
|
|
578
|
-
path: _path + ".customConditions[" + _index5 + "]",
|
|
579
|
-
expected: "string",
|
|
580
|
-
value: elem
|
|
581
|
-
})) || $guard(_exceptionable, {
|
|
582
|
-
path: _path + ".customConditions",
|
|
583
|
-
expected: "(Array<string> | undefined)",
|
|
584
|
-
value: input.customConditions
|
|
585
|
-
})) && (undefined === input.declaration || "boolean" === typeof input.declaration || $guard(_exceptionable, {
|
|
586
|
-
path: _path + ".declaration",
|
|
587
|
-
expected: "(boolean | undefined)",
|
|
588
|
-
value: input.declaration
|
|
589
|
-
})) && (undefined === input.declarationMap || "boolean" === typeof input.declarationMap || $guard(_exceptionable, {
|
|
590
|
-
path: _path + ".declarationMap",
|
|
591
|
-
expected: "(boolean | undefined)",
|
|
592
|
-
value: input.declarationMap
|
|
593
|
-
})) && (undefined === input.emitDeclarationOnly || "boolean" === typeof input.emitDeclarationOnly || $guard(_exceptionable, {
|
|
594
|
-
path: _path + ".emitDeclarationOnly",
|
|
595
|
-
expected: "(boolean | undefined)",
|
|
596
|
-
value: input.emitDeclarationOnly
|
|
597
|
-
})) && (undefined === input.declarationDir || "string" === typeof input.declarationDir || $guard(_exceptionable, {
|
|
598
|
-
path: _path + ".declarationDir",
|
|
599
|
-
expected: "(string | undefined)",
|
|
600
|
-
value: input.declarationDir
|
|
601
|
-
})) && (undefined === input.disableSizeLimit || "boolean" === typeof input.disableSizeLimit || $guard(_exceptionable, {
|
|
602
|
-
path: _path + ".disableSizeLimit",
|
|
603
|
-
expected: "(boolean | undefined)",
|
|
604
|
-
value: input.disableSizeLimit
|
|
605
|
-
})) && (undefined === input.disableSourceOfProjectReferenceRedirect || "boolean" === typeof input.disableSourceOfProjectReferenceRedirect || $guard(_exceptionable, {
|
|
606
|
-
path: _path + ".disableSourceOfProjectReferenceRedirect",
|
|
607
|
-
expected: "(boolean | undefined)",
|
|
608
|
-
value: input.disableSourceOfProjectReferenceRedirect
|
|
609
|
-
})) && (undefined === input.disableSolutionSearching || "boolean" === typeof input.disableSolutionSearching || $guard(_exceptionable, {
|
|
610
|
-
path: _path + ".disableSolutionSearching",
|
|
611
|
-
expected: "(boolean | undefined)",
|
|
612
|
-
value: input.disableSolutionSearching
|
|
613
|
-
})) && (undefined === input.disableReferencedProjectLoad || "boolean" === typeof input.disableReferencedProjectLoad || $guard(_exceptionable, {
|
|
614
|
-
path: _path + ".disableReferencedProjectLoad",
|
|
615
|
-
expected: "(boolean | undefined)",
|
|
616
|
-
value: input.disableReferencedProjectLoad
|
|
617
|
-
})) && (undefined === input.downlevelIteration || "boolean" === typeof input.downlevelIteration || $guard(_exceptionable, {
|
|
618
|
-
path: _path + ".downlevelIteration",
|
|
619
|
-
expected: "(boolean | undefined)",
|
|
620
|
-
value: input.downlevelIteration
|
|
621
|
-
})) && (undefined === input.emitBOM || "boolean" === typeof input.emitBOM || $guard(_exceptionable, {
|
|
622
|
-
path: _path + ".emitBOM",
|
|
623
|
-
expected: "(boolean | undefined)",
|
|
624
|
-
value: input.emitBOM
|
|
625
|
-
})) && (undefined === input.emitDecoratorMetadata || "boolean" === typeof input.emitDecoratorMetadata || $guard(_exceptionable, {
|
|
626
|
-
path: _path + ".emitDecoratorMetadata",
|
|
627
|
-
expected: "(boolean | undefined)",
|
|
628
|
-
value: input.emitDecoratorMetadata
|
|
629
|
-
})) && (undefined === input.exactOptionalPropertyTypes || "boolean" === typeof input.exactOptionalPropertyTypes || $guard(_exceptionable, {
|
|
630
|
-
path: _path + ".exactOptionalPropertyTypes",
|
|
631
|
-
expected: "(boolean | undefined)",
|
|
632
|
-
value: input.exactOptionalPropertyTypes
|
|
633
|
-
})) && (undefined === input.experimentalDecorators || "boolean" === typeof input.experimentalDecorators || $guard(_exceptionable, {
|
|
634
|
-
path: _path + ".experimentalDecorators",
|
|
635
|
-
expected: "(boolean | undefined)",
|
|
636
|
-
value: input.experimentalDecorators
|
|
637
|
-
})) && (undefined === input.forceConsistentCasingInFileNames || "boolean" === typeof input.forceConsistentCasingInFileNames || $guard(_exceptionable, {
|
|
638
|
-
path: _path + ".forceConsistentCasingInFileNames",
|
|
639
|
-
expected: "(boolean | undefined)",
|
|
640
|
-
value: input.forceConsistentCasingInFileNames
|
|
641
|
-
})) && (undefined === input.ignoreDeprecations || "string" === typeof input.ignoreDeprecations || $guard(_exceptionable, {
|
|
642
|
-
path: _path + ".ignoreDeprecations",
|
|
643
|
-
expected: "(string | undefined)",
|
|
644
|
-
value: input.ignoreDeprecations
|
|
645
|
-
})) && (undefined === input.importHelpers || "boolean" === typeof input.importHelpers || $guard(_exceptionable, {
|
|
646
|
-
path: _path + ".importHelpers",
|
|
647
|
-
expected: "(boolean | undefined)",
|
|
648
|
-
value: input.importHelpers
|
|
649
|
-
})) && true && (undefined === input.inlineSourceMap || "boolean" === typeof input.inlineSourceMap || $guard(_exceptionable, {
|
|
650
|
-
path: _path + ".inlineSourceMap",
|
|
651
|
-
expected: "(boolean | undefined)",
|
|
652
|
-
value: input.inlineSourceMap
|
|
653
|
-
})) && (undefined === input.inlineSources || "boolean" === typeof input.inlineSources || $guard(_exceptionable, {
|
|
654
|
-
path: _path + ".inlineSources",
|
|
655
|
-
expected: "(boolean | undefined)",
|
|
656
|
-
value: input.inlineSources
|
|
657
|
-
})) && (undefined === input.isolatedModules || "boolean" === typeof input.isolatedModules || $guard(_exceptionable, {
|
|
658
|
-
path: _path + ".isolatedModules",
|
|
659
|
-
expected: "(boolean | undefined)",
|
|
660
|
-
value: input.isolatedModules
|
|
661
|
-
})) && true && (undefined === input.keyofStringsOnly || "boolean" === typeof input.keyofStringsOnly || $guard(_exceptionable, {
|
|
662
|
-
path: _path + ".keyofStringsOnly",
|
|
663
|
-
expected: "(boolean | undefined)",
|
|
664
|
-
value: input.keyofStringsOnly
|
|
665
|
-
})) && (undefined === input.lib || (Array.isArray(input.lib) || $guard(_exceptionable, {
|
|
666
|
-
path: _path + ".lib",
|
|
667
|
-
expected: "(Array<string> | undefined)",
|
|
668
|
-
value: input.lib
|
|
669
|
-
})) && input.lib.every((elem, _index6) => "string" === typeof elem || $guard(_exceptionable, {
|
|
670
|
-
path: _path + ".lib[" + _index6 + "]",
|
|
671
|
-
expected: "string",
|
|
672
|
-
value: elem
|
|
673
|
-
})) || $guard(_exceptionable, {
|
|
674
|
-
path: _path + ".lib",
|
|
675
|
-
expected: "(Array<string> | undefined)",
|
|
676
|
-
value: input.lib
|
|
677
|
-
})) && (undefined === input.locale || "string" === typeof input.locale || $guard(_exceptionable, {
|
|
678
|
-
path: _path + ".locale",
|
|
679
|
-
expected: "(string | undefined)",
|
|
680
|
-
value: input.locale
|
|
681
|
-
})) && (undefined === input.mapRoot || "string" === typeof input.mapRoot || $guard(_exceptionable, {
|
|
682
|
-
path: _path + ".mapRoot",
|
|
683
|
-
expected: "(string | undefined)",
|
|
684
|
-
value: input.mapRoot
|
|
685
|
-
})) && true && true && true && (undefined === input.moduleSuffixes || (Array.isArray(input.moduleSuffixes) || $guard(_exceptionable, {
|
|
686
|
-
path: _path + ".moduleSuffixes",
|
|
687
|
-
expected: "(Array<string> | undefined)",
|
|
688
|
-
value: input.moduleSuffixes
|
|
689
|
-
})) && input.moduleSuffixes.every((elem, _index7) => "string" === typeof elem || $guard(_exceptionable, {
|
|
690
|
-
path: _path + ".moduleSuffixes[" + _index7 + "]",
|
|
691
|
-
expected: "string",
|
|
692
|
-
value: elem
|
|
693
|
-
})) || $guard(_exceptionable, {
|
|
694
|
-
path: _path + ".moduleSuffixes",
|
|
695
|
-
expected: "(Array<string> | undefined)",
|
|
696
|
-
value: input.moduleSuffixes
|
|
697
|
-
})) && true && true && (undefined === input.noEmit || "boolean" === typeof input.noEmit || $guard(_exceptionable, {
|
|
698
|
-
path: _path + ".noEmit",
|
|
699
|
-
expected: "(boolean | undefined)",
|
|
700
|
-
value: input.noEmit
|
|
701
|
-
})) && (undefined === input.noEmitHelpers || "boolean" === typeof input.noEmitHelpers || $guard(_exceptionable, {
|
|
702
|
-
path: _path + ".noEmitHelpers",
|
|
703
|
-
expected: "(boolean | undefined)",
|
|
704
|
-
value: input.noEmitHelpers
|
|
705
|
-
})) && (undefined === input.noEmitOnError || "boolean" === typeof input.noEmitOnError || $guard(_exceptionable, {
|
|
706
|
-
path: _path + ".noEmitOnError",
|
|
707
|
-
expected: "(boolean | undefined)",
|
|
708
|
-
value: input.noEmitOnError
|
|
709
|
-
})) && (undefined === input.noErrorTruncation || "boolean" === typeof input.noErrorTruncation || $guard(_exceptionable, {
|
|
710
|
-
path: _path + ".noErrorTruncation",
|
|
711
|
-
expected: "(boolean | undefined)",
|
|
712
|
-
value: input.noErrorTruncation
|
|
713
|
-
})) && (undefined === input.noFallthroughCasesInSwitch || "boolean" === typeof input.noFallthroughCasesInSwitch || $guard(_exceptionable, {
|
|
714
|
-
path: _path + ".noFallthroughCasesInSwitch",
|
|
715
|
-
expected: "(boolean | undefined)",
|
|
716
|
-
value: input.noFallthroughCasesInSwitch
|
|
717
|
-
})) && (undefined === input.noImplicitAny || "boolean" === typeof input.noImplicitAny || $guard(_exceptionable, {
|
|
718
|
-
path: _path + ".noImplicitAny",
|
|
719
|
-
expected: "(boolean | undefined)",
|
|
720
|
-
value: input.noImplicitAny
|
|
721
|
-
})) && (undefined === input.noImplicitReturns || "boolean" === typeof input.noImplicitReturns || $guard(_exceptionable, {
|
|
722
|
-
path: _path + ".noImplicitReturns",
|
|
723
|
-
expected: "(boolean | undefined)",
|
|
724
|
-
value: input.noImplicitReturns
|
|
725
|
-
})) && (undefined === input.noImplicitThis || "boolean" === typeof input.noImplicitThis || $guard(_exceptionable, {
|
|
726
|
-
path: _path + ".noImplicitThis",
|
|
727
|
-
expected: "(boolean | undefined)",
|
|
728
|
-
value: input.noImplicitThis
|
|
729
|
-
})) && (undefined === input.noStrictGenericChecks || "boolean" === typeof input.noStrictGenericChecks || $guard(_exceptionable, {
|
|
730
|
-
path: _path + ".noStrictGenericChecks",
|
|
731
|
-
expected: "(boolean | undefined)",
|
|
732
|
-
value: input.noStrictGenericChecks
|
|
733
|
-
})) && (undefined === input.noUnusedLocals || "boolean" === typeof input.noUnusedLocals || $guard(_exceptionable, {
|
|
734
|
-
path: _path + ".noUnusedLocals",
|
|
735
|
-
expected: "(boolean | undefined)",
|
|
736
|
-
value: input.noUnusedLocals
|
|
737
|
-
})) && (undefined === input.noUnusedParameters || "boolean" === typeof input.noUnusedParameters || $guard(_exceptionable, {
|
|
738
|
-
path: _path + ".noUnusedParameters",
|
|
739
|
-
expected: "(boolean | undefined)",
|
|
740
|
-
value: input.noUnusedParameters
|
|
741
|
-
})) && (undefined === input.noImplicitUseStrict || "boolean" === typeof input.noImplicitUseStrict || $guard(_exceptionable, {
|
|
742
|
-
path: _path + ".noImplicitUseStrict",
|
|
743
|
-
expected: "(boolean | undefined)",
|
|
744
|
-
value: input.noImplicitUseStrict
|
|
745
|
-
})) && (undefined === input.noPropertyAccessFromIndexSignature || "boolean" === typeof input.noPropertyAccessFromIndexSignature || $guard(_exceptionable, {
|
|
746
|
-
path: _path + ".noPropertyAccessFromIndexSignature",
|
|
747
|
-
expected: "(boolean | undefined)",
|
|
748
|
-
value: input.noPropertyAccessFromIndexSignature
|
|
749
|
-
})) && (undefined === input.assumeChangesOnlyAffectDirectDependencies || "boolean" === typeof input.assumeChangesOnlyAffectDirectDependencies || $guard(_exceptionable, {
|
|
750
|
-
path: _path + ".assumeChangesOnlyAffectDirectDependencies",
|
|
751
|
-
expected: "(boolean | undefined)",
|
|
752
|
-
value: input.assumeChangesOnlyAffectDirectDependencies
|
|
753
|
-
})) && (undefined === input.noLib || "boolean" === typeof input.noLib || $guard(_exceptionable, {
|
|
754
|
-
path: _path + ".noLib",
|
|
755
|
-
expected: "(boolean | undefined)",
|
|
756
|
-
value: input.noLib
|
|
757
|
-
})) && (undefined === input.noResolve || "boolean" === typeof input.noResolve || $guard(_exceptionable, {
|
|
758
|
-
path: _path + ".noResolve",
|
|
759
|
-
expected: "(boolean | undefined)",
|
|
760
|
-
value: input.noResolve
|
|
761
|
-
})) && (undefined === input.noUncheckedIndexedAccess || "boolean" === typeof input.noUncheckedIndexedAccess || $guard(_exceptionable, {
|
|
762
|
-
path: _path + ".noUncheckedIndexedAccess",
|
|
763
|
-
expected: "(boolean | undefined)",
|
|
764
|
-
value: input.noUncheckedIndexedAccess
|
|
765
|
-
})) && (undefined === input.out || "string" === typeof input.out || $guard(_exceptionable, {
|
|
766
|
-
path: _path + ".out",
|
|
767
|
-
expected: "(string | undefined)",
|
|
768
|
-
value: input.out
|
|
769
|
-
})) && (undefined === input.outDir || "string" === typeof input.outDir || $guard(_exceptionable, {
|
|
770
|
-
path: _path + ".outDir",
|
|
771
|
-
expected: "(string | undefined)",
|
|
772
|
-
value: input.outDir
|
|
773
|
-
})) && (undefined === input.outFile || "string" === typeof input.outFile || $guard(_exceptionable, {
|
|
774
|
-
path: _path + ".outFile",
|
|
775
|
-
expected: "(string | undefined)",
|
|
776
|
-
value: input.outFile
|
|
777
|
-
})) && (undefined === input.paths || ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $guard(_exceptionable, {
|
|
778
|
-
path: _path + ".paths",
|
|
779
|
-
expected: "(ts.MapLike<Array<string>> | undefined)",
|
|
780
|
-
value: input.paths
|
|
781
|
-
})) && $ao19(input.paths, _path + ".paths", true && _exceptionable) || $guard(_exceptionable, {
|
|
782
|
-
path: _path + ".paths",
|
|
783
|
-
expected: "(ts.MapLike<Array<string>> | undefined)",
|
|
784
|
-
value: input.paths
|
|
785
|
-
})) && (undefined === input.preserveConstEnums || "boolean" === typeof input.preserveConstEnums || $guard(_exceptionable, {
|
|
786
|
-
path: _path + ".preserveConstEnums",
|
|
787
|
-
expected: "(boolean | undefined)",
|
|
788
|
-
value: input.preserveConstEnums
|
|
789
|
-
})) && (undefined === input.noImplicitOverride || "boolean" === typeof input.noImplicitOverride || $guard(_exceptionable, {
|
|
790
|
-
path: _path + ".noImplicitOverride",
|
|
791
|
-
expected: "(boolean | undefined)",
|
|
792
|
-
value: input.noImplicitOverride
|
|
793
|
-
})) && (undefined === input.preserveSymlinks || "boolean" === typeof input.preserveSymlinks || $guard(_exceptionable, {
|
|
794
|
-
path: _path + ".preserveSymlinks",
|
|
795
|
-
expected: "(boolean | undefined)",
|
|
796
|
-
value: input.preserveSymlinks
|
|
797
|
-
})) && (undefined === input.preserveValueImports || "boolean" === typeof input.preserveValueImports || $guard(_exceptionable, {
|
|
798
|
-
path: _path + ".preserveValueImports",
|
|
799
|
-
expected: "(boolean | undefined)",
|
|
800
|
-
value: input.preserveValueImports
|
|
801
|
-
})) && (undefined === input.project || "string" === typeof input.project || $guard(_exceptionable, {
|
|
802
|
-
path: _path + ".project",
|
|
803
|
-
expected: "(string | undefined)",
|
|
804
|
-
value: input.project
|
|
805
|
-
})) && (undefined === input.reactNamespace || "string" === typeof input.reactNamespace || $guard(_exceptionable, {
|
|
806
|
-
path: _path + ".reactNamespace",
|
|
807
|
-
expected: "(string | undefined)",
|
|
808
|
-
value: input.reactNamespace
|
|
809
|
-
})) && (undefined === input.jsxFactory || "string" === typeof input.jsxFactory || $guard(_exceptionable, {
|
|
810
|
-
path: _path + ".jsxFactory",
|
|
811
|
-
expected: "(string | undefined)",
|
|
812
|
-
value: input.jsxFactory
|
|
813
|
-
})) && (undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory || $guard(_exceptionable, {
|
|
814
|
-
path: _path + ".jsxFragmentFactory",
|
|
815
|
-
expected: "(string | undefined)",
|
|
816
|
-
value: input.jsxFragmentFactory
|
|
817
|
-
})) && (undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource || $guard(_exceptionable, {
|
|
818
|
-
path: _path + ".jsxImportSource",
|
|
819
|
-
expected: "(string | undefined)",
|
|
820
|
-
value: input.jsxImportSource
|
|
821
|
-
})) && (undefined === input.composite || "boolean" === typeof input.composite || $guard(_exceptionable, {
|
|
822
|
-
path: _path + ".composite",
|
|
823
|
-
expected: "(boolean | undefined)",
|
|
824
|
-
value: input.composite
|
|
825
|
-
})) && (undefined === input.incremental || "boolean" === typeof input.incremental || $guard(_exceptionable, {
|
|
826
|
-
path: _path + ".incremental",
|
|
827
|
-
expected: "(boolean | undefined)",
|
|
828
|
-
value: input.incremental
|
|
829
|
-
})) && (undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile || $guard(_exceptionable, {
|
|
830
|
-
path: _path + ".tsBuildInfoFile",
|
|
831
|
-
expected: "(string | undefined)",
|
|
832
|
-
value: input.tsBuildInfoFile
|
|
833
|
-
})) && (undefined === input.removeComments || "boolean" === typeof input.removeComments || $guard(_exceptionable, {
|
|
834
|
-
path: _path + ".removeComments",
|
|
835
|
-
expected: "(boolean | undefined)",
|
|
836
|
-
value: input.removeComments
|
|
837
|
-
})) && (undefined === input.resolvePackageJsonExports || "boolean" === typeof input.resolvePackageJsonExports || $guard(_exceptionable, {
|
|
838
|
-
path: _path + ".resolvePackageJsonExports",
|
|
839
|
-
expected: "(boolean | undefined)",
|
|
840
|
-
value: input.resolvePackageJsonExports
|
|
841
|
-
})) && (undefined === input.resolvePackageJsonImports || "boolean" === typeof input.resolvePackageJsonImports || $guard(_exceptionable, {
|
|
842
|
-
path: _path + ".resolvePackageJsonImports",
|
|
843
|
-
expected: "(boolean | undefined)",
|
|
844
|
-
value: input.resolvePackageJsonImports
|
|
845
|
-
})) && (undefined === input.rootDir || "string" === typeof input.rootDir || $guard(_exceptionable, {
|
|
846
|
-
path: _path + ".rootDir",
|
|
847
|
-
expected: "(string | undefined)",
|
|
848
|
-
value: input.rootDir
|
|
849
|
-
})) && (undefined === input.rootDirs || (Array.isArray(input.rootDirs) || $guard(_exceptionable, {
|
|
850
|
-
path: _path + ".rootDirs",
|
|
851
|
-
expected: "(Array<string> | undefined)",
|
|
852
|
-
value: input.rootDirs
|
|
853
|
-
})) && input.rootDirs.every((elem, _index8) => "string" === typeof elem || $guard(_exceptionable, {
|
|
854
|
-
path: _path + ".rootDirs[" + _index8 + "]",
|
|
855
|
-
expected: "string",
|
|
856
|
-
value: elem
|
|
857
|
-
})) || $guard(_exceptionable, {
|
|
858
|
-
path: _path + ".rootDirs",
|
|
859
|
-
expected: "(Array<string> | undefined)",
|
|
860
|
-
value: input.rootDirs
|
|
861
|
-
})) && (undefined === input.skipLibCheck || "boolean" === typeof input.skipLibCheck || $guard(_exceptionable, {
|
|
862
|
-
path: _path + ".skipLibCheck",
|
|
863
|
-
expected: "(boolean | undefined)",
|
|
864
|
-
value: input.skipLibCheck
|
|
865
|
-
})) && (undefined === input.skipDefaultLibCheck || "boolean" === typeof input.skipDefaultLibCheck || $guard(_exceptionable, {
|
|
866
|
-
path: _path + ".skipDefaultLibCheck",
|
|
867
|
-
expected: "(boolean | undefined)",
|
|
868
|
-
value: input.skipDefaultLibCheck
|
|
869
|
-
})) && (undefined === input.sourceMap || "boolean" === typeof input.sourceMap || $guard(_exceptionable, {
|
|
870
|
-
path: _path + ".sourceMap",
|
|
871
|
-
expected: "(boolean | undefined)",
|
|
872
|
-
value: input.sourceMap
|
|
873
|
-
})) && (undefined === input.sourceRoot || "string" === typeof input.sourceRoot || $guard(_exceptionable, {
|
|
874
|
-
path: _path + ".sourceRoot",
|
|
875
|
-
expected: "(string | undefined)",
|
|
876
|
-
value: input.sourceRoot
|
|
877
|
-
})) && (undefined === input.strict || "boolean" === typeof input.strict || $guard(_exceptionable, {
|
|
878
|
-
path: _path + ".strict",
|
|
879
|
-
expected: "(boolean | undefined)",
|
|
880
|
-
value: input.strict
|
|
881
|
-
})) && (undefined === input.strictFunctionTypes || "boolean" === typeof input.strictFunctionTypes || $guard(_exceptionable, {
|
|
882
|
-
path: _path + ".strictFunctionTypes",
|
|
883
|
-
expected: "(boolean | undefined)",
|
|
884
|
-
value: input.strictFunctionTypes
|
|
885
|
-
})) && (undefined === input.strictBindCallApply || "boolean" === typeof input.strictBindCallApply || $guard(_exceptionable, {
|
|
886
|
-
path: _path + ".strictBindCallApply",
|
|
887
|
-
expected: "(boolean | undefined)",
|
|
888
|
-
value: input.strictBindCallApply
|
|
889
|
-
})) && (undefined === input.strictNullChecks || "boolean" === typeof input.strictNullChecks || $guard(_exceptionable, {
|
|
890
|
-
path: _path + ".strictNullChecks",
|
|
891
|
-
expected: "(boolean | undefined)",
|
|
892
|
-
value: input.strictNullChecks
|
|
893
|
-
})) && (undefined === input.strictPropertyInitialization || "boolean" === typeof input.strictPropertyInitialization || $guard(_exceptionable, {
|
|
894
|
-
path: _path + ".strictPropertyInitialization",
|
|
895
|
-
expected: "(boolean | undefined)",
|
|
896
|
-
value: input.strictPropertyInitialization
|
|
897
|
-
})) && (undefined === input.stripInternal || "boolean" === typeof input.stripInternal || $guard(_exceptionable, {
|
|
898
|
-
path: _path + ".stripInternal",
|
|
899
|
-
expected: "(boolean | undefined)",
|
|
900
|
-
value: input.stripInternal
|
|
901
|
-
})) && (undefined === input.suppressExcessPropertyErrors || "boolean" === typeof input.suppressExcessPropertyErrors || $guard(_exceptionable, {
|
|
902
|
-
path: _path + ".suppressExcessPropertyErrors",
|
|
903
|
-
expected: "(boolean | undefined)",
|
|
904
|
-
value: input.suppressExcessPropertyErrors
|
|
905
|
-
})) && (undefined === input.suppressImplicitAnyIndexErrors || "boolean" === typeof input.suppressImplicitAnyIndexErrors || $guard(_exceptionable, {
|
|
906
|
-
path: _path + ".suppressImplicitAnyIndexErrors",
|
|
907
|
-
expected: "(boolean | undefined)",
|
|
908
|
-
value: input.suppressImplicitAnyIndexErrors
|
|
909
|
-
})) && true && (undefined === input.traceResolution || "boolean" === typeof input.traceResolution || $guard(_exceptionable, {
|
|
910
|
-
path: _path + ".traceResolution",
|
|
911
|
-
expected: "(boolean | undefined)",
|
|
912
|
-
value: input.traceResolution
|
|
913
|
-
})) && (undefined === input.useUnknownInCatchVariables || "boolean" === typeof input.useUnknownInCatchVariables || $guard(_exceptionable, {
|
|
914
|
-
path: _path + ".useUnknownInCatchVariables",
|
|
915
|
-
expected: "(boolean | undefined)",
|
|
916
|
-
value: input.useUnknownInCatchVariables
|
|
917
|
-
})) && (undefined === input.resolveJsonModule || "boolean" === typeof input.resolveJsonModule || $guard(_exceptionable, {
|
|
918
|
-
path: _path + ".resolveJsonModule",
|
|
919
|
-
expected: "(boolean | undefined)",
|
|
920
|
-
value: input.resolveJsonModule
|
|
921
|
-
})) && (undefined === input.types || (Array.isArray(input.types) || $guard(_exceptionable, {
|
|
922
|
-
path: _path + ".types",
|
|
923
|
-
expected: "(Array<string> | undefined)",
|
|
924
|
-
value: input.types
|
|
925
|
-
})) && input.types.every((elem, _index9) => "string" === typeof elem || $guard(_exceptionable, {
|
|
926
|
-
path: _path + ".types[" + _index9 + "]",
|
|
927
|
-
expected: "string",
|
|
928
|
-
value: elem
|
|
929
|
-
})) || $guard(_exceptionable, {
|
|
930
|
-
path: _path + ".types",
|
|
931
|
-
expected: "(Array<string> | undefined)",
|
|
932
|
-
value: input.types
|
|
933
|
-
})) && (undefined === input.typeRoots || (Array.isArray(input.typeRoots) || $guard(_exceptionable, {
|
|
934
|
-
path: _path + ".typeRoots",
|
|
935
|
-
expected: "(Array<string> | undefined)",
|
|
936
|
-
value: input.typeRoots
|
|
937
|
-
})) && input.typeRoots.every((elem, _index10) => "string" === typeof elem || $guard(_exceptionable, {
|
|
938
|
-
path: _path + ".typeRoots[" + _index10 + "]",
|
|
939
|
-
expected: "string",
|
|
940
|
-
value: elem
|
|
941
|
-
})) || $guard(_exceptionable, {
|
|
942
|
-
path: _path + ".typeRoots",
|
|
943
|
-
expected: "(Array<string> | undefined)",
|
|
944
|
-
value: input.typeRoots
|
|
945
|
-
})) && (undefined === input.verbatimModuleSyntax || "boolean" === typeof input.verbatimModuleSyntax || $guard(_exceptionable, {
|
|
946
|
-
path: _path + ".verbatimModuleSyntax",
|
|
947
|
-
expected: "(boolean | undefined)",
|
|
948
|
-
value: input.verbatimModuleSyntax
|
|
949
|
-
})) && (undefined === input.esModuleInterop || "boolean" === typeof input.esModuleInterop || $guard(_exceptionable, {
|
|
950
|
-
path: _path + ".esModuleInterop",
|
|
951
|
-
expected: "(boolean | undefined)",
|
|
952
|
-
value: input.esModuleInterop
|
|
953
|
-
})) && (undefined === input.useDefineForClassFields || "boolean" === typeof input.useDefineForClassFields || $guard(_exceptionable, {
|
|
954
|
-
path: _path + ".useDefineForClassFields",
|
|
955
|
-
expected: "(boolean | undefined)",
|
|
956
|
-
value: input.useDefineForClassFields
|
|
957
|
-
})) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
958
|
-
if (["allowImportingTsExtensions", "allowJs", "allowArbitraryExtensions", "allowSyntheticDefaultImports", "allowUmdGlobalAccess", "allowUnreachableCode", "allowUnusedLabels", "alwaysStrict", "baseUrl", "charset", "checkJs", "customConditions", "declaration", "declarationMap", "emitDeclarationOnly", "declarationDir", "disableSizeLimit", "disableSourceOfProjectReferenceRedirect", "disableSolutionSearching", "disableReferencedProjectLoad", "downlevelIteration", "emitBOM", "emitDecoratorMetadata", "exactOptionalPropertyTypes", "experimentalDecorators", "forceConsistentCasingInFileNames", "ignoreDeprecations", "importHelpers", "importsNotUsedAsValues", "inlineSourceMap", "inlineSources", "isolatedModules", "jsx", "keyofStringsOnly", "lib", "locale", "mapRoot", "maxNodeModuleJsDepth", "module", "moduleResolution", "moduleSuffixes", "moduleDetection", "newLine", "noEmit", "noEmitHelpers", "noEmitOnError", "noErrorTruncation", "noFallthroughCasesInSwitch", "noImplicitAny", "noImplicitReturns", "noImplicitThis", "noStrictGenericChecks", "noUnusedLocals", "noUnusedParameters", "noImplicitUseStrict", "noPropertyAccessFromIndexSignature", "assumeChangesOnlyAffectDirectDependencies", "noLib", "noResolve", "noUncheckedIndexedAccess", "out", "outDir", "outFile", "paths", "preserveConstEnums", "noImplicitOverride", "preserveSymlinks", "preserveValueImports", "project", "reactNamespace", "jsxFactory", "jsxFragmentFactory", "jsxImportSource", "composite", "incremental", "tsBuildInfoFile", "removeComments", "resolvePackageJsonExports", "resolvePackageJsonImports", "rootDir", "rootDirs", "skipLibCheck", "skipDefaultLibCheck", "sourceMap", "sourceRoot", "strict", "strictFunctionTypes", "strictBindCallApply", "strictNullChecks", "strictPropertyInitialization", "stripInternal", "suppressExcessPropertyErrors", "suppressImplicitAnyIndexErrors", "target", "traceResolution", "useUnknownInCatchVariables", "resolveJsonModule", "types", "typeRoots", "verbatimModuleSyntax", "esModuleInterop", "useDefineForClassFields"].some(prop => key === prop))
|
|
959
|
-
return true;
|
|
960
|
-
const value = input[key];
|
|
961
|
-
if (undefined === value)
|
|
962
|
-
return true;
|
|
963
|
-
if (RegExp(/(.*)/).test(key))
|
|
964
|
-
return true;
|
|
965
|
-
return true;
|
|
966
|
-
}));
|
|
967
|
-
const $ao19 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
968
|
-
const value = input[key];
|
|
969
|
-
if (undefined === value)
|
|
970
|
-
return true;
|
|
971
|
-
if (RegExp(/(.*)/).test(key))
|
|
972
|
-
return (Array.isArray(value) || $guard(_exceptionable, {
|
|
973
|
-
path: _path + $join(key),
|
|
974
|
-
expected: "Array<string>",
|
|
975
|
-
value: value
|
|
976
|
-
})) && value.every((elem, _index11) => "string" === typeof elem || $guard(_exceptionable, {
|
|
977
|
-
path: _path + $join(key) + "[" + _index11 + "]",
|
|
978
|
-
expected: "string",
|
|
979
|
-
value: elem
|
|
980
|
-
})) || $guard(_exceptionable, {
|
|
981
|
-
path: _path + $join(key),
|
|
982
|
-
expected: "Array<string>",
|
|
983
|
-
value: value
|
|
984
|
-
});
|
|
985
|
-
return true;
|
|
986
|
-
});
|
|
987
|
-
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
|
988
|
-
if ("basic" === input.scheme)
|
|
989
|
-
return $ao7(input, _path, true && _exceptionable);
|
|
990
|
-
else if ("bearer" === input.scheme)
|
|
991
|
-
return $ao8(input, _path, true && _exceptionable);
|
|
992
|
-
else if ("apiKey" === input.type)
|
|
993
|
-
return $ao9(input, _path, true && _exceptionable);
|
|
994
|
-
else if ("openIdConnect" === input.type)
|
|
995
|
-
return $ao10(input, _path, true && _exceptionable);
|
|
996
|
-
else if ("oauth2" === input.type)
|
|
997
|
-
return $ao11(input, _path, true && _exceptionable);
|
|
998
|
-
else
|
|
999
|
-
return $guard(_exceptionable, {
|
|
1000
|
-
path: _path,
|
|
1001
|
-
expected: "(ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IOpenId | ISwaggerSecurityScheme.IOAuth2)",
|
|
1002
|
-
value: input
|
|
1003
|
-
});
|
|
1004
|
-
})();
|
|
1005
|
-
return ("object" === typeof input && null !== input || $guard(true, {
|
|
1006
|
-
path: _path + "",
|
|
1007
|
-
expected: "INestiaConfig",
|
|
1008
|
-
value: input
|
|
1009
|
-
})) && $ao0(input, _path + "", true) || $guard(true, {
|
|
1010
|
-
path: _path + "",
|
|
1011
|
-
expected: "INestiaConfig",
|
|
1012
|
-
value: input
|
|
1013
|
-
});
|
|
1014
|
-
})(input, "$input", true);
|
|
1015
|
-
return input;
|
|
1016
|
-
})(cloned);
|
|
1017
|
-
}));
|
|
1018
|
-
})(NestiaSdkConfig || (exports.NestiaSdkConfig = NestiaSdkConfig = {}));
|
|
1019
|
-
//# sourceMappingURL=NestiaSdkConfig.js.map
|