├── .gitignore ├── README.md ├── airship.png ├── bin ├── aschemegen ├── asdkgen └── asdocgen ├── package.json ├── src ├── index.ts └── modules │ ├── apiServer │ ├── application │ │ └── AirshipAPIServer.ts │ ├── domain │ │ ├── BaseRequestHandler.ts │ │ ├── RequestsProvider.ts │ │ ├── ServerConfig.ts │ │ └── entity │ │ │ ├── ASErrorResponse.ts │ │ │ ├── ASRequest.ts │ │ │ ├── ASResponse.ts │ │ │ └── ASSuccessResponse.ts │ └── infrastructure │ │ ├── HttpRequestsProvider.ts │ │ ├── MultyRequestHandler.ts │ │ └── RequestHandlersManager.ts │ ├── cache │ ├── domain │ │ └── BaseCache.ts │ └── infrustructure │ │ └── MemoryCache.ts │ ├── codeGen │ ├── domain │ │ ├── CodeGenerator.ts │ │ ├── CodeLine.ts │ │ ├── SourceCode.ts │ │ ├── schema │ │ │ ├── ApiMethodParam.ts │ │ │ ├── ApiMethodScheme.ts │ │ │ ├── ClassField.ts │ │ │ └── ClassScheme.ts │ │ └── types │ │ │ ├── AnyType.ts │ │ │ ├── BooleanType.ts │ │ │ ├── CustomType.ts │ │ │ ├── IntBoolType.ts │ │ │ ├── NumberType.ts │ │ │ ├── ObjectType.ts │ │ │ ├── StringType.ts │ │ │ ├── Type.ts │ │ │ └── VectorType.ts │ └── infrastructure │ │ ├── JavaScriptCodeGenerator.ts │ │ ├── SwiftCodeGenerator.ts │ │ ├── TypescriptCodeGenerator.ts │ │ └── Utils.ts │ ├── doc │ ├── domain │ │ └── BaseApiDocGenerator.ts │ ├── infrastructure │ │ └── ApiDocGenerator.ts │ └── presentation │ │ └── DocsGeneratorApplication.ts │ ├── logger │ ├── domain │ │ └── BaseLogger.ts │ └── infrustructure │ │ └── ConsoleLogger.ts │ ├── schemeGenerator │ ├── application │ │ └── AirshipSchemeGenerator.ts │ ├── domain │ │ ├── ApiSchema.ts │ │ └── ApiSchemeGenerator.ts │ ├── infrastructure │ │ └── AirshipApiSchemeGenerator.ts │ └── presentation │ │ └── AirshipSchemeGeneratorApplication.ts │ ├── sdkGenerator │ ├── application │ │ └── AirshipSDKGenerator.ts │ ├── domain │ │ ├── ApiSDKGenerator.ts │ │ ├── SDKConfig.ts │ │ └── SDKFile.ts │ ├── infrastructure │ │ └── AirshipApiSDKGenerator.ts │ └── presentation │ │ └── AirshipSDKGeneratorApplication.ts │ ├── serialize │ ├── BaseSerializer.ts │ └── JSONSerializer.ts │ ├── statistics │ ├── domain │ │ └── BaseStatisticsCounter.ts │ └── infrastructure │ │ └── LocalStatisticsCounter.ts │ └── utils │ ├── BaseConsoleApplication.ts │ └── CallbackQueue.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | .idea 4 | .DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
Param | ') 62 | code.add('Type | ') 63 | code.add('
---|---|
${param.name} | `) 72 | code.add(`${this.renderType(param.type)} | `) 73 | 74 | code.add('
Field | ') 96 | code.add('Type | ') 97 | code.add('
---|---|
${param.name} | `) 106 | code.add(`${this.renderType(param.type)} | `) 107 | 108 | code.add('
Param | ') 134 | code.add('Type | ') 135 | code.add('
---|---|
${param.name} | `) 144 | code.add(`${this.renderType(param.type)} | `) 145 | 146 | code.add('
') 157 | tsModelCode.add(this.tsCodeGenerator.generateClass(model).render()) 158 | tsModelCode.add('') 159 | code.append(this.createCollapsablePanel('TS model code', tsModelCode)) 160 | 161 | let jsModelCode = new SourceCode() 162 | jsModelCode.add('
') 163 | jsModelCode.add(this.jsCodeGenerator.generateClass(model).render()) 164 | jsModelCode.add('') 165 | code.append(this.createCollapsablePanel('JS model code', jsModelCode)) 166 | 167 | let swiftModelCode = new SourceCode() 168 | swiftModelCode.add('
') 169 | swiftModelCode.add(this.swiftCodeGenerator.generateClass(model).render()) 170 | swiftModelCode.add('') 171 | code.append(this.createCollapsablePanel('Swift model code', swiftModelCode)) 172 | 173 | code.add('