@kubb/plugin-ts 3.10.10 → 3.10.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.
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["init_cjs_shims"],"mappings":";;;;;;AAAAA,gCAAA,EAAA","file":"index.cjs","sourcesContent":["export { pluginTs, pluginTsName } from './plugin.ts'\nexport type { PluginTs } from './types.ts'\n"]}
package/dist/index.js CHANGED
@@ -1,4 +1,7 @@
1
- export { pluginTs, pluginTsName } from './chunk-ZO4SFTCS.js';
2
- import './chunk-3AQ7NZRA.js';
1
+ export { pluginTs, pluginTsName } from './chunk-WPIKTOFL.js';
2
+ import { init_esm_shims } from './chunk-WWYOI4AE.js';
3
+
4
+ // src/index.ts
5
+ init_esm_shims();
3
6
  //# sourceMappingURL=index.js.map
4
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,cAAA,EAAA","file":"index.js","sourcesContent":["export { pluginTs, pluginTsName } from './plugin.ts'\nexport type { PluginTs } from './types.ts'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-ts",
3
- "version": "3.10.10",
3
+ "version": "3.10.12",
4
4
  "description": "Generator plugin-ts",
5
5
  "keywords": [
6
6
  "zod",
@@ -58,19 +58,20 @@
58
58
  "!/**/__tests__/**"
59
59
  ],
60
60
  "dependencies": {
61
- "@kubb/core": "3.10.10",
62
- "@kubb/oas": "3.10.10",
63
- "@kubb/plugin-oas": "3.10.10",
64
- "@kubb/parser-ts": "3.10.10",
65
- "@kubb/react": "3.10.10"
61
+ "@kubb/core": "3.10.12",
62
+ "@kubb/oas": "3.10.12",
63
+ "@kubb/parser-ts": "3.10.12",
64
+ "@kubb/react": "3.10.12",
65
+ "@kubb/plugin-oas": "3.10.12"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/react": "^18.3.21",
69
69
  "react": "^18.3.1",
70
- "tsup": "^8.4.0",
70
+ "tsup": "^8.5.0",
71
71
  "typescript": "^5.8.3",
72
- "@kubb/config-ts": "3.10.10",
73
- "@kubb/config-tsup": "3.10.10"
72
+ "@kubb/config-ts": "3.10.12",
73
+ "@kubb/config-tsup": "3.10.12",
74
+ "@kubb/plugin-oas": "3.10.12"
74
75
  },
75
76
  "peerDependencies": {
76
77
  "@kubb/react": "^3.0.0"
@@ -10,3 +10,6 @@ export type catDog =
10
10
  | (dog & {
11
11
  type: 'Dog'
12
12
  })
13
+ | (dog & {
14
+ type: 'Bulldog'
15
+ })
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by Kubb (https://kubb.dev/).
3
+ * Do not edit manually.
4
+ */
5
+
6
+ export type notification = {
7
+ /**
8
+ * @type integer
9
+ */
10
+ id: number
11
+ /**
12
+ * @type string, date-time
13
+ */
14
+ createdAt: string
15
+ /**
16
+ * @type boolean
17
+ */
18
+ isSeen: boolean
19
+ } & (
20
+ | (documentDisapprovedNotification & {
21
+ notificationType: 'DOCUMENT_DISAPPROVED'
22
+ })
23
+ | (documentApprovedNotification & {
24
+ notificationType: 'DOCUMENT_APPROVED'
25
+ })
26
+ )
@@ -6,10 +6,10 @@ import { type OperationSchema as OperationSchemaType, type OperationSchemas, Sch
6
6
  import { Oas } from '@kubb/plugin-oas/components'
7
7
  import { useOas, useOperationManager, useSchemaManager } from '@kubb/plugin-oas/hooks'
8
8
  import { getBanner, getFooter } from '@kubb/plugin-oas/utils'
9
- import { pluginTsName } from '@kubb/plugin-ts'
10
9
  import { File, useApp } from '@kubb/react'
11
10
  import type ts from 'typescript'
12
11
  import { Type } from '../components'
12
+ import { pluginTsName } from '../plugin.ts'
13
13
  import type { PluginTs } from '../types'
14
14
 
15
15
  function printCombinedSchema({ name, schemas, pluginManager }: { name: string; schemas: OperationSchemas; pluginManager: PluginManager }): string {
package/src/parser.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import transformers from '@kubb/core/transformers'
2
2
  import * as factory from '@kubb/parser-ts/factory'
3
- import { type SchemaTree, isKeyword, schemaKeywords } from '@kubb/plugin-oas'
4
-
5
3
  import type { SchemaKeywordMapper, SchemaMapper } from '@kubb/plugin-oas'
4
+ import { isKeyword, type SchemaTree, schemaKeywords } from '@kubb/plugin-oas'
6
5
  import type ts from 'typescript'
7
6
 
8
7
  export const typeKeywordMapper = {
@@ -299,7 +298,7 @@ export function parse({ current, siblings, name }: SchemaTree, options: ParserOp
299
298
  })
300
299
  })
301
300
 
302
- let additionalProperties = undefined
301
+ let additionalProperties: any
303
302
 
304
303
  if (current.args?.additionalProperties?.length) {
305
304
  additionalProperties = current.args.additionalProperties