@povio/openapi-codegen-cli 2.0.8-rc.34 → 2.0.8-rc.36

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/README.md CHANGED
@@ -92,7 +92,8 @@ yarn openapi-codegen generate --config my-config.ts
92
92
  --axiosRequestConfig Include Axios request config parameters in query hooks (default: false)
93
93
  --infiniteQueries Generate infinite queries for paginated API endpoints (default: false)
94
94
  --mutationEffects Add mutation effects options to mutation hooks (default: true)
95
- --workspaceContext Allow generated hooks to resolve path/ACL params from OpenApiWorkspaceContext (default: false)
95
+ --mutationDefaultOnError Use OpenApiQueryConfig.onError as the default onError for mutation hooks (default: false)
96
+ --workspaceContext Comma-separated list of path/ACL params that generated hooks may resolve from OpenApiWorkspaceContext
96
97
  --inlineEndpoints Inline endpoint implementations into generated query files (default: false)
97
98
  --inlineEndpointsExcludeModules Comma-separated modules/tags to keep as separate API files while inlineEndpoints=true
98
99
  --modelsOnly Generate only model files (default: false)
@@ -194,20 +195,36 @@ const config: OpenAPICodegenConfig = {
194
195
  export default config;
195
196
  ```
196
197
 
198
+ ### Default mutation errors
199
+
200
+ Set `mutationDefaultOnError: true` in codegen config (or pass `--mutationDefaultOnError`) to let generated mutation hooks fall back to `OpenApiQueryConfig.Provider` when a mutation call does not define its own `onError`.
201
+
202
+ ```tsx
203
+ import { ErrorHandler, OpenApiQueryConfig } from "@povio/openapi-codegen-cli";
204
+
205
+ <OpenApiQueryConfig.Provider
206
+ onError={(error) => {
207
+ errorToast({ text: ErrorHandler.getErrorMessage(error) });
208
+ }}
209
+ >
210
+ <App />
211
+ </OpenApiQueryConfig.Provider>;
212
+ ```
213
+
197
214
  ### OpenApiWorkspaceContext (Path + ACL defaults)
198
215
 
199
- Enable `workspaceContext: true` in codegen config (or pass `--workspaceContext`) and wrap your app subtree with `OpenApiWorkspaceContext.Provider` if generated hooks frequently repeat workspace-scoped params (for example `officeId`).
216
+ Set `workspaceContext` to a list of param names in codegen config (or pass `--workspaceContext officeId,projectId`) and wrap your app subtree with `OpenApiWorkspaceContext.Provider` if generated hooks frequently repeat workspace-scoped params.
200
217
 
201
218
  ```tsx
202
219
  import { OpenApiWorkspaceContext } from "@povio/openapi-codegen-cli";
203
- // openapi-codegen.config.ts -> { workspaceContext: true }
220
+ // openapi-codegen.config.ts -> { workspaceContext: ["officeId", "projectId"] }
204
221
 
205
222
  <OpenApiWorkspaceContext.Provider values={{ officeId: "office_123" }}>
206
223
  <MyWorkspacePages />
207
224
  </OpenApiWorkspaceContext.Provider>;
208
225
  ```
209
226
 
210
- Generated query/mutation hooks can then omit matching path/ACL params and resolve them from `OpenApiWorkspaceContext`.
227
+ Generated query/mutation hooks can then omit only those matching path/ACL params and resolve them from `OpenApiWorkspaceContext`. Params not listed in `workspaceContext` remain explicit and required.
211
228
 
212
229
  ### Generation Modes
213
230
 
@@ -1,4 +1,4 @@
1
- import { t as GenerateOptions } from "./options-D9TC-n26.mjs";
1
+ import { t as GenerateOptions } from "./options-fyt0BYYE.mjs";
2
2
 
3
3
  //#region src/generators/types/config.d.ts
4
4
  type OpenAPICodegenConfig = Partial<GenerateOptions>;
@@ -1,16 +1,18 @@
1
- import { S as Profiler, i as writeGenerateFileData, m as DEFAULT_GENERATE_OPTIONS, o as deepMerge, r as removeStaleGeneratedFiles, t as generateCodeFromOpenAPIDoc } from "./generateCodeFromOpenAPIDoc-B--xr_dZ.mjs";
1
+ import { S as Profiler, i as writeGenerateFileData, m as DEFAULT_GENERATE_OPTIONS, o as deepMerge, r as removeStaleGeneratedFiles, t as generateCodeFromOpenAPIDoc } from "./generateCodeFromOpenAPIDoc-WP1lRhb0.mjs";
2
2
  import path from "path";
3
3
  import SwaggerParser from "@apidevtools/swagger-parser";
4
4
 
5
5
  //#region src/generators/core/resolveConfig.ts
6
- function resolveConfig({ fileConfig = {}, params: { includeTags, excludeTags, inlineEndpointsExcludeModules, ...options } }) {
6
+ function resolveConfig({ fileConfig = {}, params: { includeTags, excludeTags, inlineEndpointsExcludeModules, workspaceContext, ...options } }) {
7
7
  const resolvedConfig = deepMerge(DEFAULT_GENERATE_OPTIONS, fileConfig ?? {}, {
8
8
  ...options,
9
9
  includeTags: includeTags?.split(","),
10
10
  excludeTags: excludeTags?.split(","),
11
- inlineEndpointsExcludeModules: inlineEndpointsExcludeModules?.split(",")
11
+ inlineEndpointsExcludeModules: inlineEndpointsExcludeModules?.split(","),
12
+ workspaceContext: workspaceContext?.split(",")
12
13
  });
13
14
  resolvedConfig.checkAcl = resolvedConfig.acl && resolvedConfig.checkAcl;
15
+ resolvedConfig.workspaceContext = Array.from(new Set((resolvedConfig.workspaceContext ?? []).map((value) => value.trim()).filter(Boolean)));
14
16
  return resolvedConfig;
15
17
  }
16
18
 
@@ -645,7 +645,8 @@ const DEFAULT_GENERATE_OPTIONS = {
645
645
  queryTypesImportPath: PACKAGE_IMPORT_PATH,
646
646
  axiosRequestConfig: false,
647
647
  mutationEffects: true,
648
- workspaceContext: false,
648
+ mutationDefaultOnError: false,
649
+ workspaceContext: [],
649
650
  prefetchQueries: true,
650
651
  infiniteQueries: false,
651
652
  infiniteQueryParamNames: { page: "page" },
@@ -1248,6 +1249,7 @@ const hasEndpointConfig = (endpoint, resolver) => {
1248
1249
  };
1249
1250
  const getEndpointPath = (endpoint) => endpoint.path.replace(/:([a-zA-Z0-9_]+)/g, "${$1}");
1250
1251
  function mapEndpointParamsToFunctionParams(resolver, endpoint, options) {
1252
+ const optionalPathParams = options?.optionalPathParams ? new Set(options.optionalPathParams) : void 0;
1251
1253
  const params = endpoint.parameters.map((param) => {
1252
1254
  let type = "string";
1253
1255
  if (isNamedZodSchema(param.zodSchema)) type = getImportedZodSchemaInferedTypeName(resolver, param.zodSchema, void 0, options?.modelNamespaceTag);
@@ -1286,7 +1288,7 @@ function mapEndpointParamsToFunctionParams(resolver, endpoint, options) {
1286
1288
  }).filter((param) => (!options?.excludeBodyParam || param.name !== BODY_PARAMETER_NAME) && (!options?.excludePageParam || param.name !== resolver.options.infiniteQueryParamNames.page) && (!options?.includeOnlyRequiredParams || param.required)).map((param) => ({
1287
1289
  ...param,
1288
1290
  name: options?.replacePageParam && param.name === resolver.options.infiniteQueryParamNames.page ? "pageParam" : param.name,
1289
- required: options?.optionalPathParams && param.paramType === "Path" ? false : param.required && (param.paramType === "Path" || !options?.pathParamsRequiredOnly)
1291
+ required: param.paramType === "Path" && optionalPathParams?.has(param.name) ? false : param.required && (param.paramType === "Path" || !options?.pathParamsRequiredOnly)
1290
1292
  }));
1291
1293
  }
1292
1294
  function getEndpointConfig(endpoint) {
@@ -3467,6 +3469,7 @@ function generateConfigs(generateTypeParams) {
3467
3469
  const hasMutation = endpoints.length > 0;
3468
3470
  resolver.options.checkAcl && endpoints.some((e) => e.acl);
3469
3471
  const hasMutationEffects = resolver.options.mutationEffects && hasMutation;
3472
+ const hasMutationDefaultOnError = resolver.options.mutationDefaultOnError && hasMutation;
3470
3473
  const hasWorkspaceContext = resolver.options.workspaceContext && endpoints.some((e) => resolver.options.workspaceContext);
3471
3474
  const endpointsImports = getEndpointsImports({
3472
3475
  tag,
@@ -3478,7 +3481,7 @@ function generateConfigs(generateTypeParams) {
3478
3481
  from: "@tanstack/react-query"
3479
3482
  };
3480
3483
  const queryTypesImport = {
3481
- bindings: ["OpenApiQueryConfig"],
3484
+ bindings: [...hasMutationDefaultOnError ? ["OpenApiQueryConfig"] : []],
3482
3485
  typeBindings: [QUERY_OPTIONS_TYPES.mutation],
3483
3486
  from: getQueryTypesImportPath(resolver.options)
3484
3487
  };
@@ -3572,6 +3575,7 @@ function renderColumnsConfig(columnsConfig) {
3572
3575
  function renderMutationContent(resolver, endpoint, tag) {
3573
3576
  const hasAclCheck = resolver.options.checkAcl && endpoint.acl;
3574
3577
  const hasMutationEffects = resolver.options.mutationEffects;
3578
+ const hasMutationDefaultOnError = resolver.options.mutationDefaultOnError;
3575
3579
  const hasAxiosRequestConfig = resolver.options.axiosRequestConfig;
3576
3580
  const endpointTag = getEndpointTag(endpoint, resolver.options);
3577
3581
  const endpointParams = mapEndpointParamsToFunctionParams(resolver, endpoint, {
@@ -3584,7 +3588,7 @@ function renderMutationContent(resolver, endpoint, tag) {
3584
3588
  const mutationVariablesType = endpoint.mediaUpload ? `{ ${endpointParamsStr}${endpointParamsStr ? "; " : ""}abortController?: AbortController; onUploadProgress?: (progress: { loaded: number; total: number }) => void }` : `{ ${endpointParamsStr} }`;
3585
3589
  const lines = [];
3586
3590
  lines.push(`(options?: AppMutationOptions<typeof ${endpointFunction}, ${mutationVariablesType}>${hasAxiosRequestConfig ? `, config?: AxiosRequestConfig` : ""}) => {`);
3587
- lines.push(" const queryConfig = OpenApiQueryConfig.useConfig();");
3591
+ if (hasMutationDefaultOnError) lines.push(" const queryConfig = OpenApiQueryConfig.useConfig();");
3588
3592
  if (hasMutationEffects) lines.push(` const { runMutationEffects } = useMutationEffects<typeof ${QUERY_MODULE_ENUM}.${endpointTag}>({ currentModule: ${QUERY_MODULE_ENUM}.${tag} });`);
3589
3593
  lines.push(` const { checkAcl } = ${ACL_CHECK_HOOK}();`);
3590
3594
  lines.push("");
@@ -3605,6 +3609,7 @@ function renderMutationContent(resolver, endpoint, tag) {
3605
3609
  lines.push(" },");
3606
3610
  }
3607
3611
  lines.push(" ...options,");
3612
+ if (hasMutationDefaultOnError) lines.push(" onError: options?.onError ?? queryConfig.onError,");
3608
3613
  lines.push(" });");
3609
3614
  lines.push("}");
3610
3615
  return lines.map((line) => " " + line).join("\n").trimStart();
@@ -3937,6 +3942,7 @@ function generateQueries(params) {
3937
3942
  from: AXIOS_IMPORT.from
3938
3943
  };
3939
3944
  const { queryEndpoints, infiniteQueryEndpoints, mutationEndpoints, aclEndpoints } = endpointGroups;
3945
+ const hasMutationDefaultOnError = resolver.options.mutationDefaultOnError && mutationEndpoints.length > 0;
3940
3946
  const queryImport = {
3941
3947
  bindings: [
3942
3948
  ...resolver.options.prefetchQueries && queryEndpoints.length > 0 ? ["QueryClient"] : [],
@@ -3963,7 +3969,7 @@ function generateQueries(params) {
3963
3969
  from: ACL_PACKAGE_IMPORT_PATH
3964
3970
  };
3965
3971
  const queryTypesImport = {
3966
- bindings: [...mutationEndpoints.length > 0 ? ["OpenApiQueryConfig"] : []],
3972
+ bindings: [...hasMutationDefaultOnError ? ["OpenApiQueryConfig"] : []],
3967
3973
  typeBindings: [
3968
3974
  ...queryEndpoints.length > 0 ? [QUERY_OPTIONS_TYPES.query] : [],
3969
3975
  ...resolver.options.infiniteQueries && infiniteQueryEndpoints.length > 0 ? [QUERY_OPTIONS_TYPES.infiniteQuery] : [],
@@ -4114,13 +4120,16 @@ function getEndpointParamMapping(resolver, endpoint, options) {
4114
4120
  endpointCache = /* @__PURE__ */ new Map();
4115
4121
  resolverCache.set(endpoint, endpointCache);
4116
4122
  }
4117
- const key = JSON.stringify(Object.entries(options ?? {}).sort(([left], [right]) => left.localeCompare(right)).map(([optionName, optionValue]) => [optionName, Boolean(optionValue)]));
4123
+ const key = JSON.stringify(Object.entries(options ?? {}).sort(([left], [right]) => left.localeCompare(right)).map(([optionName, optionValue]) => [optionName, optionValue]));
4118
4124
  const cached = endpointCache.get(key);
4119
4125
  if (cached) return cached;
4120
4126
  const computed = mapEndpointParamsToFunctionParams(resolver, endpoint, options);
4121
4127
  endpointCache.set(key, computed);
4122
4128
  return computed;
4123
4129
  }
4130
+ function getWorkspaceContextAllowList(workspaceContext) {
4131
+ return new Set(workspaceContext);
4132
+ }
4124
4133
  function renderImport(importData) {
4125
4134
  const namedImports = [...importData.bindings, ...(importData.typeBindings ?? []).map((binding) => importData.typeOnly ? binding : `type ${binding}`)];
4126
4135
  const names = [...importData.defaultImport ? [importData.defaultImport] : [], ...namedImports.length > 0 ? [`{ ${namedImports.join(", ")} }`] : []].join(", ");
@@ -4157,11 +4166,12 @@ function renderEndpointParamDescription(endpointParam) {
4157
4166
  return strs.join(". ");
4158
4167
  }
4159
4168
  function getWorkspaceParamNames(resolver, endpoint) {
4169
+ const allowList = getWorkspaceContextAllowList(resolver.options.workspaceContext);
4160
4170
  const endpointParams = getEndpointParamMapping(resolver, endpoint, {});
4161
4171
  const endpointParamNames = new Set(endpointParams.map((param) => param.name));
4162
4172
  const workspaceParamNames = endpointParams.filter((param) => param.paramType === "Path").map((param) => param.name);
4163
4173
  const aclParamNames = (getAbilityConditionsTypes(endpoint) ?? []).map((condition) => invalidVariableNameCharactersToCamel(condition.name)).filter((name) => endpointParamNames.has(name));
4164
- return getUniqueArray([...workspaceParamNames, ...aclParamNames]);
4174
+ return getUniqueArray([...workspaceParamNames, ...aclParamNames]).filter((name) => allowList.has(name));
4165
4175
  }
4166
4176
  function getWorkspaceParamReplacements(resolver, endpoint) {
4167
4177
  return Object.fromEntries(getWorkspaceParamNames(resolver, endpoint).map((name) => [name, `${name}FromWorkspace`]));
@@ -4381,6 +4391,7 @@ function renderQuery({ resolver, endpoint, inlineEndpoints }) {
4381
4391
  function renderMutation({ resolver, endpoint, inlineEndpoints, precomputed }) {
4382
4392
  const hasAclCheck = resolver.options.checkAcl && endpoint.acl;
4383
4393
  const hasMutationEffects = resolver.options.mutationEffects;
4394
+ const hasMutationDefaultOnError = resolver.options.mutationDefaultOnError;
4384
4395
  const hasAxiosRequestConfig = resolver.options.axiosRequestConfig;
4385
4396
  const tag = getEndpointTag(endpoint, resolver.options);
4386
4397
  const workspaceParamReplacements = resolver.options.workspaceContext ? getWorkspaceParamReplacements(resolver, endpoint) : {};
@@ -4404,7 +4415,7 @@ function renderMutation({ resolver, endpoint, inlineEndpoints, precomputed }) {
4404
4415
  tag
4405
4416
  }));
4406
4417
  lines.push(`export const ${getQueryName(endpoint, true)} = (options?: AppMutationOptions<typeof ${endpointFunction}, { ${mutationVariablesType} }>${hasMutationEffects ? ` & ${MUTATION_EFFECTS.optionsType}` : ""}${hasAxiosRequestConfig ? `, ${AXIOS_REQUEST_CONFIG_NAME}?: ${AXIOS_REQUEST_CONFIG_TYPE}` : ""}) => {`);
4407
- lines.push(" const queryConfig = OpenApiQueryConfig.useConfig();");
4418
+ if (hasMutationDefaultOnError) lines.push(" const queryConfig = OpenApiQueryConfig.useConfig();");
4408
4419
  if (hasAclCheck) lines.push(` const { checkAcl } = ${ACL_CHECK_HOOK}();`);
4409
4420
  if (Object.keys(workspaceParamReplacements).length > 0) lines.push(" const workspaceContext = OpenApiWorkspaceContext.useContext();");
4410
4421
  if (hasMutationEffects) lines.push(` const { runMutationEffects } = useMutationEffects<typeof ${QUERY_MODULE_ENUM}.${tag}>({ currentModule: ${QUERIES_MODULE_NAME} });`);
@@ -4445,7 +4456,7 @@ function renderMutation({ resolver, endpoint, inlineEndpoints, precomputed }) {
4445
4456
  if (hasMutationFnBody) lines.push(" },");
4446
4457
  else lines.push(",");
4447
4458
  lines.push(" ...options,");
4448
- lines.push(" onError: options?.onError ?? queryConfig.onError,");
4459
+ if (hasMutationDefaultOnError) lines.push(" onError: options?.onError ?? queryConfig.onError,");
4449
4460
  if (hasMutationEffects) {
4450
4461
  lines.push(" onSuccess: async (resData, variables, onMutateResult, context) => {");
4451
4462
  if (updateQueryEndpoints.length > 0) {
@@ -1,4 +1,4 @@
1
- import { n as GenerateFileData, t as GenerateOptions } from "./options-D9TC-n26.mjs";
1
+ import { n as GenerateFileData, t as GenerateOptions } from "./options-fyt0BYYE.mjs";
2
2
  import { OpenAPIV3 } from "openapi-types";
3
3
 
4
4
  //#region src/generators/types/metadata.d.ts
@@ -1,4 +1,4 @@
1
- import { a as getDataFromOpenAPIDoc, b as invalidVariableNameCharactersToCamel, c as isQuery, f as getTagImportPath, g as GenerateType, h as getNamespaceName, l as getSchemaTsMetaType, m as DEFAULT_GENERATE_OPTIONS, p as getQueryName, s as isMutation, t as generateCodeFromOpenAPIDoc, u as getTsTypeBase, v as isMediaTypeAllowed, x as formatTag, y as isParamMediaTypeAllowed } from "./generateCodeFromOpenAPIDoc-B--xr_dZ.mjs";
1
+ import { a as getDataFromOpenAPIDoc, b as invalidVariableNameCharactersToCamel, c as isQuery, f as getTagImportPath, g as GenerateType, h as getNamespaceName, l as getSchemaTsMetaType, m as DEFAULT_GENERATE_OPTIONS, p as getQueryName, s as isMutation, t as generateCodeFromOpenAPIDoc, u as getTsTypeBase, v as isMediaTypeAllowed, x as formatTag, y as isParamMediaTypeAllowed } from "./generateCodeFromOpenAPIDoc-WP1lRhb0.mjs";
2
2
  import SwaggerParser from "@apidevtools/swagger-parser";
3
3
 
4
4
  //#region src/generators/core/getMetadataFromOpenAPIDoc.ts
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as GeneralErrorCodes, i as ErrorHandlerOptions, n as ErrorEntry, o as SharedErrorHandler, r as ErrorHandler, t as ApplicationException } from "./error-handling-CXeVTk1T.mjs";
2
- import "./options-D9TC-n26.mjs";
3
- import { t as OpenAPICodegenConfig } from "./config-KffSntOs.mjs";
2
+ import "./options-fyt0BYYE.mjs";
3
+ import { t as OpenAPICodegenConfig } from "./config-DTx4Ck6g.mjs";
4
4
  import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, AxiosResponseHeaders, CreateAxiosDefaults } from "axios";
5
5
  import { z } from "zod";
6
6
  import "i18next";
@@ -39,7 +39,8 @@ interface QueriesGenerateOptions {
39
39
  queryTypesImportPath: string;
40
40
  axiosRequestConfig?: boolean;
41
41
  mutationEffects?: boolean;
42
- workspaceContext?: boolean;
42
+ mutationDefaultOnError?: boolean;
43
+ workspaceContext?: string[];
43
44
  prefetchQueries?: boolean;
44
45
  }
45
46
  interface InfiniteQueriesGenerateOptions {
package/dist/sh.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { C as VALIDATION_ERROR_TYPE_TITLE, S as Profiler, _ as groupByType, a as getDataFromOpenAPIDoc, d as getTagFileName, g as GenerateType, n as getOutputFileName } from "./generateCodeFromOpenAPIDoc-B--xr_dZ.mjs";
3
- import { n as resolveConfig, t as runGenerate } from "./generate.runner-CTwFD7Th.mjs";
2
+ import { C as VALIDATION_ERROR_TYPE_TITLE, S as Profiler, _ as groupByType, a as getDataFromOpenAPIDoc, d as getTagFileName, g as GenerateType, n as getOutputFileName } from "./generateCodeFromOpenAPIDoc-WP1lRhb0.mjs";
3
+ import { n as resolveConfig, t as runGenerate } from "./generate.runner-52viWKLA.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import yargs from "yargs";
6
6
  import { hideBin } from "yargs/helpers";
@@ -39,7 +39,7 @@ function logBanner(message) {
39
39
  * Fetch the version from package.json
40
40
  */
41
41
  function getVersion() {
42
- return "2.0.8-rc.34";
42
+ return "2.0.8-rc.36";
43
43
  }
44
44
 
45
45
  //#endregion
@@ -320,6 +320,7 @@ var GenerateOptions = class {
320
320
  replaceOptionalWithNullish;
321
321
  infiniteQueries;
322
322
  mutationEffects;
323
+ mutationDefaultOnError;
323
324
  workspaceContext;
324
325
  parseRequestParams;
325
326
  inlineEndpoints;
@@ -390,9 +391,10 @@ __decorate([YargOption({
390
391
  type: "boolean"
391
392
  }), __decorateMetadata("design:type", Boolean)], GenerateOptions.prototype, "mutationEffects", void 0);
392
393
  __decorate([YargOption({
393
- envAlias: "workspaceContext",
394
+ envAlias: "mutationDefaultOnError",
394
395
  type: "boolean"
395
- }), __decorateMetadata("design:type", Boolean)], GenerateOptions.prototype, "workspaceContext", void 0);
396
+ }), __decorateMetadata("design:type", Boolean)], GenerateOptions.prototype, "mutationDefaultOnError", void 0);
397
+ __decorate([YargOption({ envAlias: "workspaceContext" }), __decorateMetadata("design:type", String)], GenerateOptions.prototype, "workspaceContext", void 0);
396
398
  __decorate([YargOption({
397
399
  envAlias: "parseRequestParams",
398
400
  type: "boolean"
package/dist/vite.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { r as GenerateFileFormatter } from "./options-D9TC-n26.mjs";
2
- import { t as OpenAPICodegenConfig } from "./config-KffSntOs.mjs";
1
+ import { r as GenerateFileFormatter } from "./options-fyt0BYYE.mjs";
2
+ import { t as OpenAPICodegenConfig } from "./config-DTx4Ck6g.mjs";
3
3
  import { Plugin } from "vite";
4
4
 
5
5
  //#region src/vite/openapi-codegen.plugin.d.ts
package/dist/vite.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Profiler } from "./generateCodeFromOpenAPIDoc-B--xr_dZ.mjs";
2
- import { t as runGenerate } from "./generate.runner-CTwFD7Th.mjs";
1
+ import { S as Profiler } from "./generateCodeFromOpenAPIDoc-WP1lRhb0.mjs";
2
+ import { t as runGenerate } from "./generate.runner-52viWKLA.mjs";
3
3
  import path from "path";
4
4
 
5
5
  //#region src/vite/openapi-codegen.plugin.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/openapi-codegen-cli",
3
- "version": "2.0.8-rc.34",
3
+ "version": "2.0.8-rc.36",
4
4
  "keywords": [
5
5
  "codegen",
6
6
  "openapi",