@sohcah/openapi-generator 0.1.2 → 0.2.1

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.
@@ -1,8 +1,7 @@
1
- import { NotImplementedError, OpenApiGenerator } from "./types-DjImZ4S-.js";
1
+ import { FailedToUpgradeOpenApiDocumentError, NotImplementedError, OpenApiGenerator } from "./types-DMB5w9Tt.js";
2
2
  import { Effect } from "effect";
3
3
  import { FileSystem } from "@effect/platform/FileSystem";
4
4
  import * as _effect_platform_Error0 from "@effect/platform/Error";
5
- import { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from "openapi-types";
6
5
 
7
6
  //#region src/generator.d.ts
8
7
  type GeneratorOptions = {
@@ -10,17 +9,16 @@ type GeneratorOptions = {
10
9
  };
11
10
  //#endregion
12
11
  //#region src/index.d.ts
13
- type APIDocument<T extends object> = OpenAPIV2.Document<T> | OpenAPIV3_1.Document<T> | OpenAPIV3.Document<T>;
14
12
  type OpenapiGenerateOptions = GeneratorOptions & {
15
- schema: APIDocument<object> | string;
13
+ schema: string;
16
14
  };
17
15
  type OpenapiGenerateToFileOptions = OpenapiGenerateOptions & {
18
16
  output: string;
19
17
  watch?: boolean;
20
18
  onGenerated?: () => void;
21
19
  };
22
- declare const generate: (args_0: OpenapiGenerateOptions) => Effect.Effect<string, NotImplementedError, never>;
23
- declare const generateToFile: (args_0: OpenapiGenerateToFileOptions) => Effect.Effect<void, NotImplementedError | _effect_platform_Error0.PlatformError, FileSystem>;
20
+ declare const generate: (args_0: OpenapiGenerateOptions) => Effect.Effect<string, NotImplementedError | FailedToUpgradeOpenApiDocumentError, never>;
21
+ declare const generateToFile: (args_0: OpenapiGenerateToFileOptions) => Effect.Effect<void, NotImplementedError | FailedToUpgradeOpenApiDocumentError | _effect_platform_Error0.PlatformError, FileSystem>;
24
22
  //#endregion
25
23
  export { OpenapiGenerateOptions, OpenapiGenerateToFileOptions, generate, generateToFile };
26
- //# sourceMappingURL=index-BOme2BJ_.d.ts.map
24
+ //# sourceMappingURL=index-DY2v-Q37.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DY2v-Q37.d.ts","names":[],"sources":["../../src/generator.ts","../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;KASY,gBAAA;EAAA,UAAA,EACE,gBADc,EACd;;;;KCEF,sBAAA,GAAyB;;ADHrC,CAAA;KCOY,4BAAA,GAA+B;;;EAJ/B,WAAA,CAAA,EAAA,GAAA,GAAA,IAAA;AAIZ,CAAA;AAMa,cAAA,QAkBX,EAAA,CAAA,MAAA,EAlBmB,sBAkBnB,EAAA,GAlBmB,MAAA,CAAA,MAkBnB,CAAA,MAAA,EAlBmB,mBAAA,GAAA,mCAkBnB,EAAA,KAAA,CAAA;AAAA,cAEW,cAFX,EAAA,CAAA,MAAA,EAEyB,4BAFzB,EAAA,GAEyB,MAAA,CAAA,MAFzB,CAAA,IAAA,EAEyB,mBAAA,GAAA,mCAFzB,GAEyB,uBAAA,CAAA,aAFzB,EAEyB,UAFzB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import "./types-DjImZ4S-.js";
2
- import { OpenapiGenerateOptions, OpenapiGenerateToFileOptions, generate, generateToFile } from "./index-BOme2BJ_.js";
1
+ import "./types-DMB5w9Tt.js";
2
+ import { OpenapiGenerateOptions, OpenapiGenerateToFileOptions, generate, generateToFile } from "./index-DY2v-Q37.js";
3
3
  export { OpenapiGenerateOptions, OpenapiGenerateToFileOptions, generate, generateToFile };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./helpers-tkoILkcL.js";
2
- import { generate, generateToFile } from "./src-Di4R7y_C.js";
1
+ import { generate, generateToFile } from "./src-DhXSDR6J.js";
2
+ import "./helpers-CqzmoMek.js";
3
3
 
4
4
  export { generate, generateToFile };