@kubb/swagger-ts 0.0.0-canary-20231213204140

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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -0
  3. package/dist/chunk-N6FDP2EJ.cjs +784 -0
  4. package/dist/chunk-N6FDP2EJ.cjs.map +1 -0
  5. package/dist/chunk-TCUL2H74.js +757 -0
  6. package/dist/chunk-TCUL2H74.js.map +1 -0
  7. package/dist/components.cjs +20 -0
  8. package/dist/components.cjs.map +1 -0
  9. package/dist/components.d.cts +69 -0
  10. package/dist/components.d.ts +69 -0
  11. package/dist/components.js +6 -0
  12. package/dist/components.js.map +1 -0
  13. package/dist/index-sycg8owy.d.cts +392 -0
  14. package/dist/index-sycg8owy.d.ts +392 -0
  15. package/dist/index.cjs +24 -0
  16. package/dist/index.cjs.map +1 -0
  17. package/dist/index.d.cts +16 -0
  18. package/dist/index.d.ts +16 -0
  19. package/dist/index.js +12 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/oas.cjs +4 -0
  22. package/dist/oas.cjs.map +1 -0
  23. package/dist/oas.d.cts +6 -0
  24. package/dist/oas.d.ts +6 -0
  25. package/dist/oas.js +5 -0
  26. package/dist/oas.js.map +1 -0
  27. package/dist/types-IAThMYCO.d.cts +105 -0
  28. package/dist/types-IAThMYCO.d.ts +105 -0
  29. package/package.json +91 -0
  30. package/src/OperationGenerator.tsx +63 -0
  31. package/src/TypeBuilder.ts +58 -0
  32. package/src/TypeGenerator.ts +396 -0
  33. package/src/components/Mutation.tsx +138 -0
  34. package/src/components/Oas.tsx +84 -0
  35. package/src/components/Query.tsx +137 -0
  36. package/src/components/index.ts +3 -0
  37. package/src/index.ts +6 -0
  38. package/src/oas/index.ts +7 -0
  39. package/src/oas/infer.ts +58 -0
  40. package/src/oas/mappers.ts +93 -0
  41. package/src/oas/model.ts +38 -0
  42. package/src/oas/requestParams.ts +170 -0
  43. package/src/oas/response.ts +39 -0
  44. package/src/oas/security.ts +158 -0
  45. package/src/plugin.ts +174 -0
  46. package/src/types.ts +110 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Stijn Van Hulle
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ <div align="center">
2
+
3
+ <!-- <img src="assets/logo.png" alt="logo" width="200" height="auto" /> -->
4
+ <h1>@kubb/swagger-ts</h1>
5
+
6
+ <p>
7
+ Swagger integration for TypeScript to generate all the different types based on an OpenAPI specification.
8
+ </p>
9
+
10
+ <img src="https://raw.githubusercontent.com/kubb-project/kubb/main/assets/banner.png" alt="logo" height="auto" />
11
+
12
+ [![npm version][npm-version-src]][npm-version-href]
13
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
14
+ [![Coverage][coverage-src]][coverage-href]
15
+ [![License][license-src]][license-href]
16
+
17
+ <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
18
+ <!-- ALL-CONTRIBUTORS-BADGE:END -->
19
+ </p>
20
+
21
+ <h4>
22
+ <a href="https://codesandbox.io/s/github/kubb-project/kubb/tree/alpha/examples/typescript" target="_blank">View Demo</a>
23
+ <span> · </span>
24
+ <a href="https://kubb.dev/" target="_blank">Documentation</a>
25
+ <span> · </span>
26
+ <a href="https://github.com/kubb-project/kubb/issues/" target="_blank">Report Bug</a>
27
+ <span> · </span>
28
+ <a href="https://github.com/kubb-project/kubb/issues/" target="_blank">Request Feature</a>
29
+ </h4>
30
+ </div>
31
+
32
+ <!-- Badges -->
33
+
34
+ [npm-version-src]: https://img.shields.io/npm/v/@kubb/swagger-ts?flat&colorA=18181B&colorB=f58517
35
+ [npm-version-href]: https://npmjs.com/package/@kubb/swagger-ts
36
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@kubb/swagger-ts?flat&colorA=18181B&colorB=f58517
37
+ [npm-downloads-href]: https://npmjs.com/package/@kubb/swagger-ts
38
+ [license-src]: https://img.shields.io/github/license/kubb-project/kubb.svg?flat&colorA=18181B&colorB=f58517
39
+ [license-href]: https://github.com/kubb-project/kubb/blob/main/LICENSE
40
+ [build-src]: https://img.shields.io/github/actions/workflow/status/kubb-project/kubb/ci.yaml?style=flat&colorA=18181B&colorB=f58517
41
+ [build-href]: https://www.npmjs.com/package/@kubb/swagger-ts
42
+ [minified-src]: https://img.shields.io/bundlephobia/min/@kubb/swagger-ts?style=flat&colorA=18181B&colorB=f58517
43
+ [minified-href]: https://www.npmjs.com/package/@kubb/swagger-ts
44
+ [coverage-src]: https://img.shields.io/codecov/c/github/kubb-project/kubb?style=flat&colorA=18181B&colorB=f58517
45
+ [coverage-href]: https://www.npmjs.com/package/@kubb/swagger-ts