@kubb/plugin-ts 3.14.0 → 3.14.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.
- package/dist/{chunk-ZORSBWZA.cjs → chunk-NT6FYCYB.cjs} +10 -10
- package/dist/{chunk-ZORSBWZA.cjs.map → chunk-NT6FYCYB.cjs.map} +1 -1
- package/dist/{chunk-DNFRDZB2.js → chunk-WMP6SQOP.js} +3 -3
- package/dist/{chunk-DNFRDZB2.js.map → chunk-WMP6SQOP.js.map} +1 -1
- package/dist/{chunk-LJVDE4BW.cjs → chunk-Y3ZF2BXT.cjs} +4 -4
- package/dist/{chunk-LJVDE4BW.cjs.map → chunk-Y3ZF2BXT.cjs.map} +1 -1
- package/dist/{chunk-O2ZLAW7T.js → chunk-ZPV5F73S.js} +3 -3
- package/dist/{chunk-O2ZLAW7T.js.map → chunk-ZPV5F73S.js.map} +1 -1
- package/dist/components.cjs +3 -3
- package/dist/components.js +1 -1
- package/dist/generators.cjs +4 -4
- package/dist/generators.js +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.js +2 -2
- package/package.json +9 -9
- package/src/generators/__snapshots__/createPet.ts +4 -0
- package/src/generators/__snapshots__/createPetWithEmptySchemaTypeUnknown.ts +4 -0
- package/src/generators/__snapshots__/createPetWithEmptySchemaTypeVoid.ts +4 -0
- package/src/generators/__snapshots__/createPetWithUnknownTypeUnknown.ts +4 -0
- package/src/generators/__snapshots__/createPetWithUnknownTypeVoid.ts +4 -0
- package/src/generators/__snapshots__/petsStoreNotifcationDiscriminator.ts +9 -9
package/dist/components.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkY3ZF2BXT_cjs = require('./chunk-Y3ZF2BXT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "OasType", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkY3ZF2BXT_cjs.OasType; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "Type", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkY3ZF2BXT_cjs.Type; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=components.cjs.map
|
|
16
16
|
//# sourceMappingURL=components.cjs.map
|
package/dist/components.js
CHANGED
package/dist/generators.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkNT6FYCYB_cjs = require('./chunk-NT6FYCYB.cjs');
|
|
4
|
+
require('./chunk-Y3ZF2BXT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "oasGenerator", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkNT6FYCYB_cjs.oasGenerator; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "typeGenerator", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkNT6FYCYB_cjs.typeGenerator; }
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=generators.cjs.map
|
|
17
17
|
//# sourceMappingURL=generators.cjs.map
|
package/dist/generators.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { oasGenerator, typeGenerator } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { oasGenerator, typeGenerator } from './chunk-WMP6SQOP.js';
|
|
2
|
+
import './chunk-ZPV5F73S.js';
|
|
3
3
|
//# sourceMappingURL=generators.js.map
|
|
4
4
|
//# sourceMappingURL=generators.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkNT6FYCYB_cjs = require('./chunk-NT6FYCYB.cjs');
|
|
4
|
+
var chunkY3ZF2BXT_cjs = require('./chunk-Y3ZF2BXT.cjs');
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
|
-
|
|
7
|
+
chunkY3ZF2BXT_cjs.init_cjs_shims();
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "pluginTs", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkNT6FYCYB_cjs.pluginTs; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "pluginTsName", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkNT6FYCYB_cjs.pluginTsName; }
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=index.cjs.map
|
|
18
18
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { pluginTs, pluginTsName } from './chunk-
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
export { pluginTs, pluginTsName } from './chunk-WMP6SQOP.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-ZPV5F73S.js';
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
5
5
|
init_esm_shims();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-ts",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.3",
|
|
4
4
|
"description": "TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
"!/**/__tests__/**"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@kubb/core": "3.14.
|
|
65
|
-
"@kubb/oas": "3.14.
|
|
66
|
-
"@kubb/parser-ts": "3.14.
|
|
67
|
-
"@kubb/plugin-oas": "3.14.
|
|
68
|
-
"@kubb/react": "3.14.
|
|
64
|
+
"@kubb/core": "3.14.3",
|
|
65
|
+
"@kubb/oas": "3.14.3",
|
|
66
|
+
"@kubb/parser-ts": "3.14.3",
|
|
67
|
+
"@kubb/plugin-oas": "3.14.3",
|
|
68
|
+
"@kubb/react": "3.14.3"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/react": "^18.3.23",
|
|
72
72
|
"react": "^18.3.1",
|
|
73
73
|
"tsup": "^8.5.0",
|
|
74
74
|
"typescript": "^5.8.3",
|
|
75
|
-
"@kubb/config-ts": "3.14.
|
|
76
|
-
"@kubb/config-tsup": "3.14.
|
|
77
|
-
"@kubb/plugin-oas": "3.14.
|
|
75
|
+
"@kubb/config-ts": "3.14.3",
|
|
76
|
+
"@kubb/config-tsup": "3.14.3",
|
|
77
|
+
"@kubb/plugin-oas": "3.14.3"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@kubb/react": "^3.0.0"
|
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export type notification =
|
|
6
|
+
export type notification = (
|
|
7
|
+
| (documentDisapprovedNotification & {
|
|
8
|
+
notificationType: 'DOCUMENT_DISAPPROVED'
|
|
9
|
+
})
|
|
10
|
+
| (documentApprovedNotification & {
|
|
11
|
+
notificationType: 'DOCUMENT_APPROVED'
|
|
12
|
+
})
|
|
13
|
+
) & {
|
|
7
14
|
/**
|
|
8
15
|
* @type integer
|
|
9
16
|
*/
|
|
@@ -16,11 +23,4 @@ export type notification = {
|
|
|
16
23
|
* @type boolean
|
|
17
24
|
*/
|
|
18
25
|
isSeen: boolean
|
|
19
|
-
}
|
|
20
|
-
| (documentDisapprovedNotification & {
|
|
21
|
-
notificationType: 'DOCUMENT_DISAPPROVED'
|
|
22
|
-
})
|
|
23
|
-
| (documentApprovedNotification & {
|
|
24
|
-
notificationType: 'DOCUMENT_APPROVED'
|
|
25
|
-
})
|
|
26
|
-
)
|
|
26
|
+
}
|