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