├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github └── workflows │ ├── mirror.yml │ ├── notify.yml │ └── test.yml ├── .gitignore ├── .prettierignore ├── .prettierrc.js ├── .umirc.ts ├── .versionrc.js ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── assets ├── dd.jpg ├── logo.png ├── logo.svg └── preview.png ├── docs ├── changelog.md ├── config.md ├── images │ ├── copyCategoryId.png │ ├── copyEnvName.png │ ├── copyProjectToken.png │ ├── pathExample.png │ ├── refAbsolute.png │ ├── refArrayItem.png │ ├── refRelative.png │ ├── refTree.png │ └── requestHeaders.png ├── index.md ├── request-fetch.ts ├── request-request.ts ├── request.md └── usage.md ├── haoma-compile.config.ts ├── jest.config.js ├── notify-dingtalk.config.js ├── package.json ├── src ├── Generator.ts ├── SwaggerToYApiServer.ts ├── cli.ts ├── helpers.ts ├── index.ts ├── swaggerJsonToYApiData.ts ├── types.ts └── utils.ts ├── tests ├── Generator.test.ts ├── SwaggerToYApiServer.test.ts ├── __mocks__ │ ├── node-fetch.ts │ └── prompts.ts ├── __snapshots__ │ ├── Generator.test.ts.snap │ ├── cli.test.ts.snap │ └── helpers.test.ts.snap ├── cli.test.ts ├── consts.ts └── helpers.test.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | !**/.* 2 | node_modules 3 | lib 4 | dist 5 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/mirror.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.github/workflows/mirror.yml -------------------------------------------------------------------------------- /.github/workflows/notify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.github/workflows/notify.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /.umirc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.umirc.ts -------------------------------------------------------------------------------- /.versionrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.versionrc.js -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/README.md -------------------------------------------------------------------------------- /assets/dd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/assets/dd.jpg -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/assets/logo.png -------------------------------------------------------------------------------- /assets/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/assets/logo.svg -------------------------------------------------------------------------------- /assets/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/assets/preview.png -------------------------------------------------------------------------------- /docs/changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/changelog.md -------------------------------------------------------------------------------- /docs/config.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/config.md -------------------------------------------------------------------------------- /docs/images/copyCategoryId.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/copyCategoryId.png -------------------------------------------------------------------------------- /docs/images/copyEnvName.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/copyEnvName.png -------------------------------------------------------------------------------- /docs/images/copyProjectToken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/copyProjectToken.png -------------------------------------------------------------------------------- /docs/images/pathExample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/pathExample.png -------------------------------------------------------------------------------- /docs/images/refAbsolute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/refAbsolute.png -------------------------------------------------------------------------------- /docs/images/refArrayItem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/refArrayItem.png -------------------------------------------------------------------------------- /docs/images/refRelative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/refRelative.png -------------------------------------------------------------------------------- /docs/images/refTree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/refTree.png -------------------------------------------------------------------------------- /docs/images/requestHeaders.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/images/requestHeaders.png -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/request-fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/request-fetch.ts -------------------------------------------------------------------------------- /docs/request-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/request-request.ts -------------------------------------------------------------------------------- /docs/request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/request.md -------------------------------------------------------------------------------- /docs/usage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/docs/usage.md -------------------------------------------------------------------------------- /haoma-compile.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/haoma-compile.config.ts -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/jest.config.js -------------------------------------------------------------------------------- /notify-dingtalk.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/notify-dingtalk.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/package.json -------------------------------------------------------------------------------- /src/Generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/Generator.ts -------------------------------------------------------------------------------- /src/SwaggerToYApiServer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/SwaggerToYApiServer.ts -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/helpers.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/swaggerJsonToYApiData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/swaggerJsonToYApiData.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tests/Generator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/Generator.test.ts -------------------------------------------------------------------------------- /tests/SwaggerToYApiServer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/SwaggerToYApiServer.test.ts -------------------------------------------------------------------------------- /tests/__mocks__/node-fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/__mocks__/node-fetch.ts -------------------------------------------------------------------------------- /tests/__mocks__/prompts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/__mocks__/prompts.ts -------------------------------------------------------------------------------- /tests/__snapshots__/Generator.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/__snapshots__/Generator.test.ts.snap -------------------------------------------------------------------------------- /tests/__snapshots__/cli.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/__snapshots__/cli.test.ts.snap -------------------------------------------------------------------------------- /tests/__snapshots__/helpers.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/__snapshots__/helpers.test.ts.snap -------------------------------------------------------------------------------- /tests/cli.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/cli.test.ts -------------------------------------------------------------------------------- /tests/consts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/consts.ts -------------------------------------------------------------------------------- /tests/helpers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tests/helpers.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fjc0k/yapi-to-typescript/HEAD/yarn.lock --------------------------------------------------------------------------------