@hey-api/openapi-ts 0.66.5 → 0.66.7
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/chunk-AORBOYHR.js +14 -0
- package/dist/chunk-AORBOYHR.js.map +1 -0
- package/dist/index.cjs +53 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +9 -9
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/dist/{types.d-BMmln0DF.d.cts → types.d-QZmuYCzm.d.cts} +10 -2
- package/dist/{types.d-BMmln0DF.d.ts → types.d-QZmuYCzm.d.ts} +10 -2
- package/package.json +2 -2
- package/dist/chunk-DDGE4RQG.js +0 -14
- package/dist/chunk-DDGE4RQG.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-QZmuYCzm.cjs';
|
|
3
|
+
export { i as initConfigs } from './types.d-QZmuYCzm.cjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'typescript';
|
|
6
6
|
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-QZmuYCzm.js';
|
|
3
|
+
export { i as initConfigs } from './types.d-QZmuYCzm.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'typescript';
|
|
6
6
|
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-
|
|
1
|
+
import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-AORBOYHR.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -7554,6 +7554,7 @@ declare class TypeScriptFile {
|
|
|
7554
7554
|
*/
|
|
7555
7555
|
private _exportFromIndex;
|
|
7556
7556
|
private _headers;
|
|
7557
|
+
private _id;
|
|
7557
7558
|
private _identifierCase;
|
|
7558
7559
|
private _imports;
|
|
7559
7560
|
private _items;
|
|
@@ -7563,13 +7564,19 @@ declare class TypeScriptFile {
|
|
|
7563
7564
|
/**
|
|
7564
7565
|
* Path relative to the client output root.
|
|
7565
7566
|
*/
|
|
7566
|
-
constructor({ dir, exportFromIndex, header, identifierCase, name, }: {
|
|
7567
|
+
constructor({ dir, exportFromIndex, header, id, identifierCase, name, }: {
|
|
7567
7568
|
dir: string;
|
|
7568
7569
|
/**
|
|
7569
7570
|
* Should the exports from this file be re-exported in the index barrel file?
|
|
7570
7571
|
*/
|
|
7571
7572
|
exportFromIndex?: boolean;
|
|
7572
7573
|
header?: boolean;
|
|
7574
|
+
/**
|
|
7575
|
+
* Unique file ID. Used to generate correct relative paths to the file.
|
|
7576
|
+
* This should be refactored later as it's basically the file name unless
|
|
7577
|
+
* nested inside another folder.
|
|
7578
|
+
*/
|
|
7579
|
+
id: string;
|
|
7573
7580
|
identifierCase?: StringCase;
|
|
7574
7581
|
name: string;
|
|
7575
7582
|
});
|
|
@@ -7583,6 +7590,7 @@ declare class TypeScriptFile {
|
|
|
7583
7590
|
namespace: keyof Namespaces;
|
|
7584
7591
|
}): Identifier;
|
|
7585
7592
|
get exportFromIndex(): boolean;
|
|
7593
|
+
get id(): string;
|
|
7586
7594
|
identifier({ namespace, ...args }: Omit<EnsureUniqueIdentifierData, 'case' | 'namespace'> & {
|
|
7587
7595
|
namespace: keyof Namespaces;
|
|
7588
7596
|
}): Identifier;
|
|
@@ -7870,7 +7878,7 @@ interface IRSchemaObject
|
|
|
7870
7878
|
* contains any read-only or write-only fields. This value controls whether
|
|
7871
7879
|
* we split the schema into individual schemas for payloads and responses.
|
|
7872
7880
|
*/
|
|
7873
|
-
accessScopes?: ReadonlyArray<'read' | 'write'>;
|
|
7881
|
+
accessScopes?: ReadonlyArray<'both' | 'read' | 'write'>;
|
|
7874
7882
|
/**
|
|
7875
7883
|
* If type is `object`, `additionalProperties` can be used to either define
|
|
7876
7884
|
* a schema for properties not included in `properties` or disallow such
|
|
@@ -7554,6 +7554,7 @@ declare class TypeScriptFile {
|
|
|
7554
7554
|
*/
|
|
7555
7555
|
private _exportFromIndex;
|
|
7556
7556
|
private _headers;
|
|
7557
|
+
private _id;
|
|
7557
7558
|
private _identifierCase;
|
|
7558
7559
|
private _imports;
|
|
7559
7560
|
private _items;
|
|
@@ -7563,13 +7564,19 @@ declare class TypeScriptFile {
|
|
|
7563
7564
|
/**
|
|
7564
7565
|
* Path relative to the client output root.
|
|
7565
7566
|
*/
|
|
7566
|
-
constructor({ dir, exportFromIndex, header, identifierCase, name, }: {
|
|
7567
|
+
constructor({ dir, exportFromIndex, header, id, identifierCase, name, }: {
|
|
7567
7568
|
dir: string;
|
|
7568
7569
|
/**
|
|
7569
7570
|
* Should the exports from this file be re-exported in the index barrel file?
|
|
7570
7571
|
*/
|
|
7571
7572
|
exportFromIndex?: boolean;
|
|
7572
7573
|
header?: boolean;
|
|
7574
|
+
/**
|
|
7575
|
+
* Unique file ID. Used to generate correct relative paths to the file.
|
|
7576
|
+
* This should be refactored later as it's basically the file name unless
|
|
7577
|
+
* nested inside another folder.
|
|
7578
|
+
*/
|
|
7579
|
+
id: string;
|
|
7573
7580
|
identifierCase?: StringCase;
|
|
7574
7581
|
name: string;
|
|
7575
7582
|
});
|
|
@@ -7583,6 +7590,7 @@ declare class TypeScriptFile {
|
|
|
7583
7590
|
namespace: keyof Namespaces;
|
|
7584
7591
|
}): Identifier;
|
|
7585
7592
|
get exportFromIndex(): boolean;
|
|
7593
|
+
get id(): string;
|
|
7586
7594
|
identifier({ namespace, ...args }: Omit<EnsureUniqueIdentifierData, 'case' | 'namespace'> & {
|
|
7587
7595
|
namespace: keyof Namespaces;
|
|
7588
7596
|
}): Identifier;
|
|
@@ -7870,7 +7878,7 @@ interface IRSchemaObject
|
|
|
7870
7878
|
* contains any read-only or write-only fields. This value controls whether
|
|
7871
7879
|
* we split the schema into individual schemas for payloads and responses.
|
|
7872
7880
|
*/
|
|
7873
|
-
accessScopes?: ReadonlyArray<'read' | 'write'>;
|
|
7881
|
+
accessScopes?: ReadonlyArray<'both' | 'read' | 'write'>;
|
|
7874
7882
|
/**
|
|
7875
7883
|
* If type is `object`, `additionalProperties` can be used to either define
|
|
7876
7884
|
* a schema for properties not included in `properties` or disallow such
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hey-api/openapi-ts",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.7",
|
|
4
4
|
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
|
|
5
5
|
"homepage": "https://heyapi.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"node": "^18.18.0 || ^20.9.0 || >=22.10.0"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@hey-api/json-schema-ref-parser": "1.0.
|
|
79
|
+
"@hey-api/json-schema-ref-parser": "1.0.5",
|
|
80
80
|
"c12": "2.0.1",
|
|
81
81
|
"commander": "13.0.0",
|
|
82
82
|
"handlebars": "4.7.8"
|