@twin.org/ts-to-openapi 0.0.1-next.6 → 0.0.1-next.8

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.
@@ -1107,11 +1107,11 @@ class CLI extends cliCore.CLIBase {
1107
1107
  return this.execute({
1108
1108
  title: "TWIN TypeScript To OpenAPI",
1109
1109
  appName: "ts-to-openapi",
1110
- version: "0.0.1-next.6",
1110
+ version: "0.0.1-next.8",
1111
1111
  icon: "⚙️ ",
1112
1112
  supportsEnvFiles: false,
1113
1113
  overrideOutputWidth: options?.overrideOutputWidth
1114
- }, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
1114
+ }, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
1115
1115
  }
1116
1116
  /**
1117
1117
  * Configure any options or actions at the root program level.
@@ -1104,7 +1104,7 @@ class CLI extends CLIBase {
1104
1104
  return this.execute({
1105
1105
  title: "TWIN TypeScript To OpenAPI",
1106
1106
  appName: "ts-to-openapi",
1107
- version: "0.0.1-next.6",
1107
+ version: "0.0.1-next.8",
1108
1108
  icon: "⚙️ ",
1109
1109
  supportsEnvFiles: false,
1110
1110
  overrideOutputWidth: options?.overrideOutputWidth
@@ -1,22 +1,5 @@
1
1
  {
2
2
  "error": {
3
- "commands": {
4
- "ts-to-openapi": {
5
- "configFailed": "Configuration failed to load.",
6
- "missingRestRoutesEntryPoints": "Missing REST routes method \"{method}\" in package \"{package}\".",
7
- "missingRestRoutesEntryPoint": "Missing REST routes entryPoint \"{entryPoint}\" in package \"{package}\".",
8
- "unsupportedProperties": "Unsupported properties found in the request object \"{keys}\"."
9
- },
10
- "common": {
11
- "missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
12
- "optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
13
- "optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
14
- "optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
15
- "optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
16
- "optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
17
- "optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
18
- }
19
- },
20
3
  "baseRestClient": {
21
4
  "missingRouteProp": "Missing route parameter in data \"{routeProp}\" for route \"{route}\"",
22
5
  "decodingFailed": "Decoding JSON failed for route \"{route}\"",
@@ -180,38 +163,22 @@
180
163
  },
181
164
  "slip0010": {
182
165
  "invalidSeed": "The seed is invalid \"{seed}\""
183
- }
184
- },
185
- "commands": {
186
- "ts-to-openapi": {
187
- "options": {
188
- "config": {
189
- "param": "'<'config'>'",
190
- "description": "Path to the JSON configuration file."
191
- },
192
- "output-file": {
193
- "param": "'<'output-file'>'",
194
- "description": "The JSON file to write the OpenAPI spec."
195
- }
196
- },
197
- "progress": {
198
- "loadingConfigJson": "Loading Config JSON",
199
- "creatingWorkingDir": "Creating Working Directory",
200
- "creatingSecuritySchemas": "Creating Security Schemas",
201
- "generatingSchemas": "Generating Schemas",
202
- "finalisingSchemas": "Finalising Schemas",
203
- "writingOutputFile": "Writing Output File",
204
- "models": "Models",
205
- "installingNpmPackages": "Installing NPM Packages",
206
- "processingPackage": "Processing Package",
207
- "importingModule": "Importing Module",
208
- "processingRoutes": "Processing Routes"
166
+ },
167
+ "commands": {
168
+ "common": {
169
+ "missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
170
+ "optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
171
+ "optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
172
+ "optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
173
+ "optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
174
+ "optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
175
+ "optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
209
176
  },
210
- "labels": {
211
- "configJson": "Config JSON",
212
- "outputFile": "Output File",
213
- "outputWorkingDir": "Output Working Directory",
214
- "route": "Route"
177
+ "ts-to-openapi": {
178
+ "configFailed": "Configuration failed to load.",
179
+ "missingRestRoutesEntryPoints": "Missing REST routes method \"{method}\" in package \"{package}\".",
180
+ "missingRestRoutesEntryPoint": "Missing REST routes entryPoint \"{entryPoint}\" in package \"{package}\".",
181
+ "unsupportedProperties": "Unsupported properties found in the request object \"{keys}\"."
215
182
  }
216
183
  }
217
184
  },
@@ -274,5 +241,38 @@
274
241
  "description": "If the env file already exists merge the data instead of overwriting."
275
242
  }
276
243
  }
244
+ },
245
+ "commands": {
246
+ "ts-to-openapi": {
247
+ "options": {
248
+ "config": {
249
+ "param": "'<'config'>'",
250
+ "description": "Path to the JSON configuration file."
251
+ },
252
+ "output-file": {
253
+ "param": "'<'output-file'>'",
254
+ "description": "The JSON file to write the OpenAPI spec."
255
+ }
256
+ },
257
+ "progress": {
258
+ "loadingConfigJson": "Loading Config JSON",
259
+ "creatingWorkingDir": "Creating Working Directory",
260
+ "creatingSecuritySchemas": "Creating Security Schemas",
261
+ "generatingSchemas": "Generating Schemas",
262
+ "finalisingSchemas": "Finalising Schemas",
263
+ "writingOutputFile": "Writing Output File",
264
+ "models": "Models",
265
+ "installingNpmPackages": "Installing NPM Packages",
266
+ "processingPackage": "Processing Package",
267
+ "importingModule": "Importing Module",
268
+ "processingRoutes": "Processing Routes"
269
+ },
270
+ "labels": {
271
+ "configJson": "Config JSON",
272
+ "outputFile": "Output File",
273
+ "outputWorkingDir": "Output Working Directory",
274
+ "route": "Route"
275
+ }
276
+ }
277
277
  }
278
278
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/ts-to-openapi - Changelog
2
2
 
3
- ## v0.0.1-next.6
3
+ ## v0.0.1-next.8
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/ts-to-openapi",
3
- "version": "0.0.1-next.6",
3
+ "version": "0.0.1-next.8",
4
4
  "description": "Tool to convert TypeScript REST route definitions to OpenAPI Specifications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "@twin.org/api-models": "next",
18
18
  "@twin.org/cli-core": "next",
19
19
  "@twin.org/core": "next",
20
- "@twin.org/nameof": "0.0.1-next.6",
20
+ "@twin.org/nameof": "0.0.1-next.8",
21
21
  "@twin.org/web": "next",
22
22
  "commander": "12.1.0",
23
23
  "glob": "11.0.0",