1 | "use strict";
|
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4 | };
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 |
|
7 | const CodegenModel_1 = __importDefault(require("./CodegenModel"));
|
8 | const CodegenOperation_1 = __importDefault(require("./CodegenOperation"));
|
9 | const CodegenParameter_1 = __importDefault(require("./CodegenParameter"));
|
10 | const CodegenProperty_1 = __importDefault(require("./CodegenProperty"));
|
11 | const CodegenResponse_1 = __importDefault(require("./CodegenResponse"));
|
12 | const CodegenSecurity_1 = __importDefault(require("./CodegenSecurity"));
|
13 | class CodegenModelType {
|
14 | constructor(defaultImplementation) {
|
15 | this.ordinal = () => ALL.indexOf(this);
|
16 | this._defaultImplementation = defaultImplementation;
|
17 | }
|
18 | getDefaultImplementation() {
|
19 | return this._defaultImplementation;
|
20 | }
|
21 | }
|
22 | CodegenModelType.values = () => ALL;
|
23 | const forType = type => new CodegenModelType(type);
|
24 | exports.MODEL = forType(CodegenModel_1.default);
|
25 | exports.OPERATION = forType(CodegenOperation_1.default);
|
26 | exports.PARAMETER = forType(CodegenParameter_1.default);
|
27 | exports.PROPERTY = forType(CodegenProperty_1.default);
|
28 | exports.RESPONSE = forType(CodegenResponse_1.default);
|
29 | exports.SECURITY = forType(CodegenSecurity_1.default);
|
30 | const ALL = [exports.MODEL, exports.OPERATION, exports.PARAMETER, exports.PROPERTY, exports.RESPONSE, exports.SECURITY];
|
31 | exports.default = {
|
32 | MODEL: exports.MODEL,
|
33 | OPERATION: exports.OPERATION,
|
34 | PARAMETER: exports.PARAMETER,
|
35 | PROPERTY: exports.PROPERTY,
|
36 | RESPONSE: exports.RESPONSE,
|
37 | SECURITY: exports.SECURITY,
|
38 | };
|
39 |
|
\ | No newline at end of file |