@power-plant/openapi-typescript 0.0.2
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/LICENSE +201 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +4292 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +4292 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":""}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{defineGenerator as e,useExecution as t}from"@power-plant/core";import n from"@power-plant/openapi-schema";import r,{astToString as i}from"openapi-typescript";function a(e){let{servers:t,info:n,...r}=e;return{...r,info:{...n,license:n.license?{name:n.license.name,url:n.license.url??``,identifier:n.license.identifier??``}:void 0},servers:t?.map(e=>({url:e.url,description:e.description??``,variables:e.variables??{}}))}}var o=e({meta:{name:`openapi-typescript`,title:`OpenAPI TypeScript`,description:`A generator that uses openapi-typescript to generate TypeScript types from an OpenAPI schema.`,version:`1.0`,tags:[`openapi`,`openapi-typescript`],links:[{href:`https://openapi-ts.dev`,description:`OpenAPI TypeScript`},{href:`https://github.com/openapi-ts/openapi-typescript`,description:`OpenAPI TypeScript GitHub Repository`},{href:`https://github.com/storm-software/powerlines/blob/main/packages/plugins/plugin-openapi/src/index.ts`,description:`Powerlines OpenAPI plugin`}]},schema:n,generator:async(e,n)=>{let{cwd:o}=t(),{output:s=`api.ts`,...c}=n,l=i(await r(a(e),{...c,cwd:o}),{fileName:s});return{[s]:{path:s,language:`typescript`,chunks:[{content:l,meta:{name:`openapi-typescript`}}]}}}});export{o as default};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@power-plant/openapi-typescript",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A Power Plant generator that uses openapi-typescript to generate TypeScript types from an OpenAPI schema.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"openapi",
|
|
8
|
+
"openapi-typescript",
|
|
9
|
+
"power-plant-generator",
|
|
10
|
+
"power-plant",
|
|
11
|
+
"storm-software"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://stormsoftware.com",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://stormsoftware.com/support",
|
|
16
|
+
"email": "support@stormsoftware.com"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "github",
|
|
20
|
+
"url": "https://github.com/storm-software/power-plant.git",
|
|
21
|
+
"directory": "packages/generators/openapi-typescript"
|
|
22
|
+
},
|
|
23
|
+
"funding": {
|
|
24
|
+
"type": "github",
|
|
25
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
26
|
+
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Storm Software",
|
|
30
|
+
"email": "contact@stormsoftware.com",
|
|
31
|
+
"url": "https://stormsoftware.com"
|
|
32
|
+
},
|
|
33
|
+
"maintainers": [
|
|
34
|
+
{
|
|
35
|
+
"name": "Storm Software",
|
|
36
|
+
"email": "contact@stormsoftware.com",
|
|
37
|
+
"url": "https://stormsoftware.com"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"contributors": [
|
|
41
|
+
{
|
|
42
|
+
"name": "Storm Software",
|
|
43
|
+
"email": "contact@stormsoftware.com",
|
|
44
|
+
"url": "https://stormsoftware.com"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"type": "module",
|
|
48
|
+
"exports": {
|
|
49
|
+
".": {
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/index.d.cts",
|
|
52
|
+
"default": "./dist/index.cjs"
|
|
53
|
+
},
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/index.d.mts",
|
|
56
|
+
"default": "./dist/index.mjs"
|
|
57
|
+
},
|
|
58
|
+
"default": {
|
|
59
|
+
"types": "./dist/index.d.mts",
|
|
60
|
+
"default": "./dist/index.mjs"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"./package.json": "./package.json"
|
|
64
|
+
},
|
|
65
|
+
"main": "./dist/index.cjs",
|
|
66
|
+
"module": "./dist/index.mjs",
|
|
67
|
+
"types": "./dist/index.d.cts",
|
|
68
|
+
"typings": "dist/index.d.mts",
|
|
69
|
+
"files": ["dist"],
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@power-plant/core": "^0.0.22",
|
|
72
|
+
"@power-plant/openapi-schema": "^0.0.1",
|
|
73
|
+
"@power-plant/schema": "^0.0.21",
|
|
74
|
+
"openapi-typescript": "^7.13.0"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@powerlines/plugin-tsdown": "^0.1.545",
|
|
78
|
+
"@types/node": "^25.9.5",
|
|
79
|
+
"powerlines": "^0.47.144"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": { "access": "public" },
|
|
82
|
+
"gitHead": "36bc90dee1e209badc95dcf08e563b403ad55886"
|
|
83
|
+
}
|