@hey-api/openapi-ts 0.98.0 → 0.98.1
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 +2 -2
- package/dist/{init-BENFi6V7.mjs → init-Y3pnLkrI.mjs} +1 -25
- package/dist/{init-BENFi6V7.mjs.map → init-Y3pnLkrI.mjs.map} +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/run.mjs +2 -2
- package/dist/{src-BXIUXBF6.mjs → src-Br-zyYwn.mjs} +6 -6
- package/dist/src-Br-zyYwn.mjs.map +1 -0
- package/package.json +5 -5
- package/dist/src-BXIUXBF6.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
2
|
-
import { a as coerce, c as defineConfigTable, d as utils, f as createClient, i as applyNaming, l as definePluginConfig, n as OperationPath, o as defaultPaginationKeywords, r as OperationStrategy, s as defineConfig, t as Logger, u as toCase } from "./src-
|
|
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-Y3pnLkrI.mjs";
|
|
2
|
+
import { a as coerce, c as defineConfigTable, d as utils, f as createClient, i as applyNaming, l as definePluginConfig, n as OperationPath, o as defaultPaginationKeywords, r as OperationStrategy, s as defineConfig, t as Logger, u as toCase } from "./src-Br-zyYwn.mjs";
|
|
3
3
|
export { $, Logger, OperationPath, OperationStrategy, TsDsl, TsDslContext, TypeScriptRenderer, applyNaming, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, coerce, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, defineConfigTable, definePluginConfig, keywords, regexp, reserved, toCase, utils };
|
|
@@ -11660,12 +11660,6 @@ function baseNode$52(ctx) {
|
|
|
11660
11660
|
plugin: ctx.plugin
|
|
11661
11661
|
});
|
|
11662
11662
|
const { v } = ctx.plugin.symbols;
|
|
11663
|
-
const def = ctx.plugin.querySymbols({
|
|
11664
|
-
resource: "definition",
|
|
11665
|
-
resourceId: pathToJsonPointer(fromRef(ctx.path)),
|
|
11666
|
-
tool: "typescript"
|
|
11667
|
-
}).filter((symbol) => symbol.kind === "var" || symbol.kind === "enum" && !symbol.node.hasModifier("const"))[0];
|
|
11668
|
-
if (def) return $(v).attr(identifiers$1.schemas.enum).call(def);
|
|
11669
11663
|
if (picklistMembers.length > 0 && picklistMembers.length === literalSchemas.length) return $(v).attr(identifiers$1.schemas.picklist).call($.array(...picklistMembers));
|
|
11670
11664
|
if (literalSchemas.length === 1) return literalSchemas[0];
|
|
11671
11665
|
return $(v).attr(identifiers$1.schemas.union).call($.array(...literalSchemas));
|
|
@@ -13849,12 +13843,6 @@ function baseNode$38(ctx) {
|
|
|
13849
13843
|
plugin: ctx.plugin
|
|
13850
13844
|
});
|
|
13851
13845
|
const { z } = ctx.plugin.symbols;
|
|
13852
|
-
const def = ctx.plugin.querySymbols({
|
|
13853
|
-
resource: "definition",
|
|
13854
|
-
resourceId: pathToJsonPointer(fromRef(ctx.path)),
|
|
13855
|
-
tool: "typescript"
|
|
13856
|
-
}).filter((symbol) => symbol.kind === "var" || symbol.kind === "enum" && !symbol.node.hasModifier("const"))[0];
|
|
13857
|
-
if (def) return $(z).attr(identifiers.enum).call(def);
|
|
13858
13846
|
if (enumMembers.length > 0 && enumMembers.length === literalSchemas.length) return $(z).attr(identifiers.enum).call($.array(...enumMembers));
|
|
13859
13847
|
if (literalSchemas.length === 1) return literalSchemas[0];
|
|
13860
13848
|
return $(z).attr(identifiers.union).call($.array(...literalSchemas));
|
|
@@ -15029,12 +15017,6 @@ function baseNode$24(ctx) {
|
|
|
15029
15017
|
plugin: ctx.plugin
|
|
15030
15018
|
});
|
|
15031
15019
|
const { z } = ctx.plugin.symbols;
|
|
15032
|
-
const def = ctx.plugin.querySymbols({
|
|
15033
|
-
resource: "definition",
|
|
15034
|
-
resourceId: pathToJsonPointer(fromRef(ctx.path)),
|
|
15035
|
-
tool: "typescript"
|
|
15036
|
-
}).filter((symbol) => symbol.kind === "var" || symbol.kind === "enum" && !symbol.node.hasModifier("const"))[0];
|
|
15037
|
-
if (def) return $(z).attr(identifiers.nativeEnum).call(def);
|
|
15038
15020
|
if (enumMembers.length > 0 && enumMembers.length === literalSchemas.length) return $(z).attr(identifiers.enum).call($.array(...enumMembers));
|
|
15039
15021
|
if (literalSchemas.length === 1) return literalSchemas[0];
|
|
15040
15022
|
return $(z).attr(identifiers.union).call($.array(...literalSchemas));
|
|
@@ -16147,12 +16129,6 @@ function baseNode$10(ctx) {
|
|
|
16147
16129
|
plugin: ctx.plugin
|
|
16148
16130
|
});
|
|
16149
16131
|
const { z } = ctx.plugin.symbols;
|
|
16150
|
-
const def = ctx.plugin.querySymbols({
|
|
16151
|
-
resource: "definition",
|
|
16152
|
-
resourceId: pathToJsonPointer(fromRef(ctx.path)),
|
|
16153
|
-
tool: "typescript"
|
|
16154
|
-
}).filter((symbol) => symbol.kind === "var" || symbol.kind === "enum" && !symbol.node.hasModifier("const"))[0];
|
|
16155
|
-
if (def) return $(z).attr(identifiers.enum).call(def);
|
|
16156
16132
|
if (enumMembers.length > 0 && enumMembers.length === literalSchemas.length) return $(z).attr(identifiers.enum).call($.array(...enumMembers));
|
|
16157
16133
|
if (literalSchemas.length === 1) return literalSchemas[0];
|
|
16158
16134
|
return $(z).attr(identifiers.union).call($.array(...literalSchemas));
|
|
@@ -17612,4 +17588,4 @@ async function resolveJobs({ logger, userConfigs }) {
|
|
|
17612
17588
|
//#endregion
|
|
17613
17589
|
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 };
|
|
17614
17590
|
|
|
17615
|
-
//# sourceMappingURL=init-
|
|
17591
|
+
//# sourceMappingURL=init-Y3pnLkrI.mjs.map
|