@hey-api/openapi-ts 0.0.0-next-20260225213913 → 0.0.0-next-20260226002521

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as clientDefaultConfig, c as TypeScriptRenderer, d as reserved, f as keywords, l as TsDslContext, m as TsDsl, n as defaultPlugins, o as clientDefaultMeta, p as regexp, r as clientPluginHandler, s as $, u as ctx } from "./init-jpN0LI4V.mjs";
2
- import { a as defineConfig, c as createClient, i as defaultPaginationKeywords, n as OperationPath, o as definePluginConfig, r as OperationStrategy, s as utils, t as Logger } from "./src-hyXOwURP.mjs";
1
+ import { a as clientDefaultConfig, c as TypeScriptRenderer, d as reserved, f as keywords, l as TsDslContext, m as TsDsl, n as defaultPlugins, o as clientDefaultMeta, p as regexp, r as clientPluginHandler, s as $, u as ctx } from "./init-CTpyaR9a.mjs";
2
+ import { a as defineConfig, c as createClient, i as defaultPaginationKeywords, n as OperationPath, o as definePluginConfig, r as OperationStrategy, s as utils, t as Logger } from "./src-Dx_lkE0m.mjs";
3
3
 
4
4
  export { $, Logger, OperationPath, OperationStrategy, TsDsl, TsDslContext, TypeScriptRenderer, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, keywords, regexp, reserved, utils };
@@ -6905,9 +6905,10 @@ function objectToAst$4({ plugin, schema, state }) {
6905
6905
  const addPropsObj = addPropsRaw !== false && addPropsRaw ? addPropsRaw : void 0;
6906
6906
  if (hasPatterns || !!addPropsObj && (addPropsObj.type !== "never" || !indexSchemas.length)) {
6907
6907
  const addProps = addPropsObj;
6908
- if (addProps && addProps.type !== "never") indexSchemas.unshift(addProps);
6908
+ if (addProps && addProps.type !== "never") if (addProps.type === "unknown") indexSchemas = [addProps, ...schema.patternProperties ? Object.values(schema.patternProperties) : []];
6909
+ else indexSchemas.unshift(addProps);
6909
6910
  else if (!hasPatterns && !indexSchemas.length && addProps && addProps.type === "never") indexSchemas = [addProps];
6910
- if (hasOptionalProperties) indexSchemas.push({ type: "undefined" });
6911
+ if (hasOptionalProperties && addProps?.type !== "unknown") indexSchemas.push({ type: "undefined" });
6911
6912
  const type = indexSchemas.length === 1 ? irSchemaToAst$1({
6912
6913
  plugin,
6913
6914
  schema: indexSchemas[0],
@@ -11342,11 +11343,11 @@ function numberToNode$2({ plugin, schema, state }) {
11342
11343
  //#endregion
11343
11344
  //#region src/plugins/zod/mini/toAst/object.ts
11344
11345
  function additionalPropertiesNode$2(ctx$1) {
11345
- const { schema, walk, walkerCtx } = ctx$1;
11346
+ const { applyModifiers, schema, walk, walkerCtx } = ctx$1;
11346
11347
  if (!schema.additionalProperties || schema.properties && Object.keys(schema.properties).length > 0) return;
11347
11348
  const additionalResult = walk(schema.additionalProperties, childContext(walkerCtx, "additionalProperties"));
11348
11349
  if (additionalResult.hasLazyExpression) ctx$1.utils.ast.hasLazyExpression = true;
11349
- return additionalResult.expression.expression;
11350
+ return applyModifiers(additionalResult, {}).expression;
11350
11351
  }
11351
11352
  function baseNode$9(ctx$1) {
11352
11353
  const { nodes, symbols } = ctx$1;
@@ -12203,11 +12204,11 @@ function numberToNode$1({ plugin, schema, state }) {
12203
12204
  //#endregion
12204
12205
  //#region src/plugins/zod/v3/toAst/object.ts
12205
12206
  function additionalPropertiesNode$1(ctx$1) {
12206
- const { schema, walk, walkerCtx } = ctx$1;
12207
+ const { applyModifiers, schema, walk, walkerCtx } = ctx$1;
12207
12208
  if (!schema.additionalProperties || schema.properties && Object.keys(schema.properties).length > 0) return;
12208
12209
  const additionalResult = walk(schema.additionalProperties, childContext(walkerCtx, "additionalProperties"));
12209
12210
  if (additionalResult.hasLazyExpression) ctx$1.utils.ast.hasLazyExpression = true;
12210
- return additionalResult.expression.expression;
12211
+ return applyModifiers(additionalResult, {}).expression;
12211
12212
  }
12212
12213
  function baseNode$5(ctx$1) {
12213
12214
  const { nodes, symbols } = ctx$1;
@@ -13067,11 +13068,11 @@ function numberToNode({ plugin, schema, state }) {
13067
13068
  //#endregion
13068
13069
  //#region src/plugins/zod/v4/toAst/object.ts
13069
13070
  function additionalPropertiesNode(ctx$1) {
13070
- const { schema, walk, walkerCtx } = ctx$1;
13071
+ const { applyModifiers, schema, walk, walkerCtx } = ctx$1;
13071
13072
  if (!schema.additionalProperties || schema.properties && Object.keys(schema.properties).length > 0) return;
13072
13073
  const additionalResult = walk(schema.additionalProperties, childContext(walkerCtx, "additionalProperties"));
13073
13074
  if (additionalResult.hasLazyExpression) ctx$1.utils.ast.hasLazyExpression = true;
13074
- return additionalResult.expression.expression;
13075
+ return applyModifiers(additionalResult, {}).expression;
13075
13076
  }
13076
13077
  function baseNode$1(ctx$1) {
13077
13078
  const { nodes, symbols } = ctx$1;
@@ -14118,4 +14119,4 @@ async function resolveJobs({ logger, userConfigs }) {
14118
14119
 
14119
14120
  //#endregion
14120
14121
  export { postProcessors as _, clientDefaultConfig as a, TypeScriptRenderer as c, reserved as d, keywords as f, getTypedConfig as g, getClientPlugin as h, generateClientBundle as i, TsDslContext as l, TsDsl as m, defaultPlugins as n, clientDefaultMeta as o, regexp as p, clientPluginHandler as r, $ as s, resolveJobs as t, ctx as u };
14121
- //# sourceMappingURL=init-jpN0LI4V.mjs.map
14122
+ //# sourceMappingURL=init-CTpyaR9a.mjs.map