@kubb/swagger-ts 2.0.0-beta.10 → 2.0.0-beta.12

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.
@@ -8,7 +8,8 @@ import { TypeBuilder } from '../TypeBuilder.ts'
8
8
 
9
9
  import type { KubbFile } from '@kubb/core'
10
10
  import type { ts } from '@kubb/parser'
11
- import type { Operation, OperationSchemas } from '@kubb/swagger'
11
+ import type { OperationSchemas } from '@kubb/swagger'
12
+ import type { Operation } from '@kubb/swagger/oas'
12
13
  import type { ReactNode } from 'react'
13
14
  import type { FileMeta, PluginOptions } from '../types.ts'
14
15
 
@@ -2,7 +2,7 @@ import { File, Type, usePlugin } from '@kubb/react'
2
2
  import { useFile } from '@kubb/react'
3
3
  import { useOas } from '@kubb/swagger/hooks'
4
4
 
5
- import type { OasTypes } from '@kubb/swagger'
5
+ import type { OasTypes } from '@kubb/swagger/oas'
6
6
  import type { ReactNode } from 'react'
7
7
  import type { FileMeta, PluginOptions } from '../types.ts'
8
8
 
@@ -8,7 +8,8 @@ import { TypeBuilder } from '../TypeBuilder.ts'
8
8
 
9
9
  import type { KubbFile } from '@kubb/core'
10
10
  import type { ts } from '@kubb/parser'
11
- import type { Operation, OperationSchemas } from '@kubb/swagger'
11
+ import type { OperationSchemas } from '@kubb/swagger'
12
+ import type { Operation } from '@kubb/swagger/oas'
12
13
  import type { ReactNode } from 'react'
13
14
  import type { FileMeta, PluginOptions } from '../types.ts'
14
15
 
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { definePlugin } from './plugin.ts'
2
2
 
3
3
  export { definePlugin, pluginKey, pluginName } from './plugin.ts'
4
- export * from './types.ts'
4
+ export type * from './types.ts'
5
5
 
6
6
  export default definePlugin
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/ban-types */
2
2
  /* eslint-disable @typescript-eslint/no-namespace */
3
- import type { OasTypes } from '@kubb/swagger'
3
+ import type { OasTypes } from '@kubb/swagger/oas'
4
4
  import type { Fn, Pipe, Tuples } from 'hotscript'
5
5
  import type {
6
6
  FromSchema,
package/src/oas/model.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
- import type { OasTypes } from '@kubb/swagger'
2
+ import type { OasTypes } from '@kubb/swagger/oas'
3
3
  import type {
4
4
  FromSchema,
5
5
  JSONSchema,
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
2
  /* eslint-disable @typescript-eslint/ban-types */
3
3
 
4
- import type { OasTypes } from '@kubb/swagger'
4
+ import type { OasTypes } from '@kubb/swagger/oas'
5
5
  import type { SplitByDelimiter, TupleToUnion } from '@kubb/types'
6
6
  import type { Pipe, Strings, Tuples } from 'hotscript'
7
7
  import type {
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
- import type { OasTypes } from '@kubb/swagger'
2
+ import type { OasTypes } from '@kubb/swagger/oas'
3
3
  import type {
4
4
  FromSchema,
5
5
  } from 'json-schema-to-ts'
package/src/plugin.ts CHANGED
@@ -9,7 +9,8 @@ import { OperationGenerator } from './OperationGenerator.tsx'
9
9
  import { TypeBuilder } from './TypeBuilder.ts'
10
10
 
11
11
  import type { KubbFile, KubbPlugin } from '@kubb/core'
12
- import type { OasTypes, PluginOptions as SwaggerPluginOptions } from '@kubb/swagger'
12
+ import type { PluginOptions as SwaggerPluginOptions } from '@kubb/swagger'
13
+ import type { OasTypes } from '@kubb/swagger/oas'
13
14
  import type { PluginOptions } from './types.ts'
14
15
  export const pluginName = 'swagger-ts' satisfies PluginOptions['name']
15
16
  export const pluginKey: PluginOptions['key'] = [pluginName] satisfies PluginOptions['key']