openapi-contract-kit 0.0.1 → 0.0.3

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 (43) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +13 -5
  3. package/dist/bin/openapi-contract-kit.d.ts +2 -0
  4. package/dist/bin/openapi-contract-kit.js +3 -0
  5. package/dist/src/cli/formatOutput.d.ts +6 -0
  6. package/dist/src/cli/formatOutput.js +32 -0
  7. package/dist/src/generator/config.d.ts +3 -0
  8. package/dist/src/generator/config.js +72 -0
  9. package/dist/src/generator/documents.d.ts +11 -0
  10. package/dist/src/generator/documents.js +92 -0
  11. package/dist/src/generator/emitEndpoints.d.ts +2 -0
  12. package/{src/generator/emitEndpoints.mjs → dist/src/generator/emitEndpoints.js} +48 -80
  13. package/dist/src/generator/emitMakers.d.ts +2 -0
  14. package/dist/src/generator/emitMakers.js +328 -0
  15. package/dist/src/generator/emitTypes.d.ts +3 -0
  16. package/dist/src/generator/emitTypes.js +87 -0
  17. package/dist/src/generator/generateOpenApiRuntime.d.ts +3 -0
  18. package/dist/src/generator/generateOpenApiRuntime.js +41 -0
  19. package/dist/src/generator/model.d.ts +2 -0
  20. package/dist/src/generator/model.js +278 -0
  21. package/dist/src/generator/schemaModel.d.ts +9 -0
  22. package/dist/src/generator/schemaModel.js +408 -0
  23. package/dist/src/generator/types.d.ts +82 -0
  24. package/dist/src/generator/writeOutput.d.ts +5 -0
  25. package/dist/src/generator/writeOutput.js +141 -0
  26. package/dist/src/index.d.ts +2 -0
  27. package/dist/src/index.js +1 -0
  28. package/dist/src/runtime.d.ts +14 -0
  29. package/dist/src/runtime.js +1 -0
  30. package/package.json +30 -18
  31. package/bin/openapi-contract-kit.mjs +0 -5
  32. package/src/generator/config.mjs +0 -92
  33. package/src/generator/documents.mjs +0 -119
  34. package/src/generator/emitMakers.mjs +0 -459
  35. package/src/generator/emitTypes.mjs +0 -104
  36. package/src/generator/generateOpenApiRuntime.mjs +0 -48
  37. package/src/generator/model.mjs +0 -415
  38. package/src/generator/schemaModel.mjs +0 -497
  39. package/src/generator/writeOutput.mjs +0 -196
  40. package/src/index.d.ts +0 -16
  41. package/src/index.mjs +0 -4
  42. package/src/runtime.d.ts +0 -14
  43. /package/{src/runtime.mjs → dist/src/generator/types.js} +0 -0
package/src/runtime.d.ts DELETED
@@ -1,14 +0,0 @@
1
- export type ValidationPath = readonly (string | number)[];
2
-
3
- export type ValidationIssue = {
4
- readonly path: ValidationPath;
5
- readonly keyword: string;
6
- readonly message: string;
7
- };
8
-
9
- export type Result<T> =
10
- | { readonly ok: true; readonly value: T }
11
- | { readonly ok: false; readonly errors: readonly ValidationIssue[] };
12
-
13
- export type MakeResult<T> = Result<T>;
14
-