vovk-cli 0.0.1-draft.394 → 0.0.1-draft.395

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.
@@ -31,6 +31,8 @@ export async function bundle({ projectInfo, fullSchema, cliBundleOptions, }) {
31
31
  openapiGetModuleName: cliBundleOptions?.openapiGetModuleName,
32
32
  openapiGetMethodName: cliBundleOptions?.openapiGetMethodName,
33
33
  openapiRootUrl: cliBundleOptions?.openapiRootUrl,
34
+ openapiMixinName: cliBundleOptions?.openapiMixinName,
35
+ openapiFallback: cliBundleOptions?.openapiFallback,
34
36
  composedFrom: [BuiltInTemplateName.ts],
35
37
  composedOut: prebundleOutDirAbsolute,
36
38
  composedOnly: true,
package/dist/index.mjs CHANGED
@@ -94,13 +94,13 @@ program
94
94
  .option('--schema, --schema-path <path>', 'path to schema folder (default: ./.vovk-schema)')
95
95
  .option('--config, --config-path <config>', 'path to config file')
96
96
  .option('--origin <url>', 'set the origin URL for the generated client')
97
- .option('--watch [s]', 'watch for changes in schema or openapi spec and regenerate client; accepts a number in seconds to throttle the watcher or make an HTTP request to the OpenAPI spec URL')
98
- .option('--openapi, --openapi-spec <openapi_path_or_urls...>', 'use OpenAPI schema for client generation')
99
- .option('--openapi-module-name, --openapi-get-module-name <names...>', 'module names corresponding to the index of --openapi option')
100
- .option('--openapi-method-name, --openapi-get-method-name <names...>', 'method names corresponding to the index of --openapi option')
97
+ .option('--watch [s]', 'watch for changes in schema or openapi spec and regenerate client; accepts a number in seconds to throttle the watcher or make an HTTP request to the OpenAPI spec URLs')
98
+ .option('--openapi, --openapi-spec <openapi_path_or_urls...>', 'use OpenAPI mixins for client generation')
99
+ .option('--openapi-module-name, --openapi-get-module-name <names...>', 'module name strategies corresponding to the index of --openapi option')
100
+ .option('--openapi-method-name, --openapi-get-method-name <names...>', 'method name strategies corresponding to the index of --openapi option')
101
101
  .option('--openapi-root-url <urls...>', 'root URLs corresponding to the index of --openapi option')
102
102
  .option('--openapi-mixin-name <names...>', 'mixin names corresponding to the index of --openapi option')
103
- .option('--openapi-fallback <paths...>', 'save OpenAPI spec and use it as a fallback if URL is not available')
103
+ .option('--openapi-fallback <paths...>', 'save OpenAPI spec corresponding to the index of --openapi option to a local file and use it as a fallback if URL is not available')
104
104
  .option('--log-level <level>', 'set the log level')
105
105
  .action(async (cliGenerateOptions) => {
106
106
  const projectInfo = await getProjectInfo({
@@ -126,10 +126,12 @@ program
126
126
  .option('--schema, --schema-path <path>', 'path to schema folder (default: .vovk-schema)')
127
127
  .option('--config, --config-path <config>', 'path to config file')
128
128
  .option('--origin <url>', 'set the origin URL for the generated client')
129
- .option('--openapi, --openapi-spec <openapi_path_or_urls...>', 'use OpenAPI schema instead of Vovk schema')
130
- .option('--openapi-get-module-name <names...>', 'module names corresponding to the index of --openapi option')
131
- .option('--openapi-get-method-name <names...>', 'method names corresponding to the index of --openapi option')
129
+ .option('--openapi, --openapi-spec <openapi_path_or_urls...>', 'use OpenAPI mixins for client generation')
130
+ .option('--openapi-module-name, --openapi-get-module-name <names...>', 'module name strategies corresponding to the index of --openapi option')
131
+ .option('--openapi-method-name, --openapi-get-method-name <names...>', 'method name strategies corresponding to the index of --openapi option')
132
132
  .option('--openapi-root-url <urls...>', 'root URLs corresponding to the index of --openapi option')
133
+ .option('--openapi-mixin-name <names...>', 'mixin names corresponding to the index of --openapi option')
134
+ .option('--openapi-fallback <paths...>', 'save OpenAPI spec corresponding to the index of --openapi option to a local file and use it as a fallback if URL is not available')
133
135
  .option('--log-level <level>', 'set the log level')
134
136
  .action(async (cliBundleOptions) => {
135
137
  const projectInfo = await getProjectInfo({
package/dist/types.d.mts CHANGED
@@ -50,6 +50,7 @@ export interface BundleOptions extends Partial<Pick<VovkStrictConfig['bundle'],
50
50
  openapiGetMethodName?: string[];
51
51
  openapiRootUrl?: string[];
52
52
  openapiMixinName?: string[];
53
+ openapiFallback?: string[];
53
54
  logLevel?: LogLevelNames;
54
55
  }
55
56
  export interface InitOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.394",
3
+ "version": "0.0.1-draft.395",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "homepage": "https://vovk.dev",
37
37
  "peerDependencies": {
38
- "vovk": "^3.0.0-draft.470",
39
- "vovk-ajv": "^0.0.0-draft.112",
40
- "vovk-client": "^0.0.4-draft.139",
41
- "vovk-python": "^0.0.1-draft.81",
42
- "vovk-rust": "^0.0.1-draft.67"
38
+ "vovk": "^3.0.0-draft.471",
39
+ "vovk-ajv": "^0.0.0-draft.113",
40
+ "vovk-client": "^0.0.4-draft.140",
41
+ "vovk-python": "^0.0.1-draft.82",
42
+ "vovk-rust": "^0.0.1-draft.68"
43
43
  },
44
44
  "optionalDependencies": {
45
45
  "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.44"
@@ -83,10 +83,7 @@
83
83
  "create-next-app": "^15.5.4",
84
84
  "http-server": "^14.1.1",
85
85
  "node-pty": "^1.0.0",
86
- "tsdown": "^0.15.12",
86
+ "tsdown": "^0.16.0",
87
87
  "zod": "^4.1.11"
88
- },
89
- "overrides": {
90
- "rolldown-plugin-dts": "0.17.3"
91
88
  }
92
89
  }