@vibeorm/generator 2.2.3 → 3.0.0
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/LICENSE +21 -0
- package/dist/emit-dts.d.ts +11 -0
- package/dist/generate.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +232 -59
- package/dist/index.js.map +10 -9
- package/dist/module-schema.d.ts +3 -0
- package/dist/type-names.d.ts +5 -0
- package/dist/util.d.ts +4 -0
- package/package.json +6 -4
- package/dist/emit-dts.d.ts.map +0 -1
- package/dist/emit-js.d.ts.map +0 -1
- package/dist/emit-module.d.ts.map +0 -1
- package/dist/extension-bake.d.ts.map +0 -1
- package/dist/generate.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/schema-view.d.ts.map +0 -1
- package/dist/type-names.d.ts.map +0 -1
- package/dist/util.d.ts.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VibeORM contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/emit-dts.d.ts
CHANGED
|
@@ -23,10 +23,21 @@ import type { SchemaView } from "./schema-view.ts";
|
|
|
23
23
|
export declare function emitEnumsDts(params: {
|
|
24
24
|
view: SchemaView;
|
|
25
25
|
}): string;
|
|
26
|
+
/** Refuse compiler-proven logical input names without invalidating SchemaIR. */
|
|
27
|
+
export declare function assertGeneratedInputNames(params: {
|
|
28
|
+
view: SchemaView;
|
|
29
|
+
computed?: readonly ComputedManifestEntry[];
|
|
30
|
+
}): void;
|
|
26
31
|
/** Emit the full index.d.ts for a resolved schema view. */
|
|
27
32
|
export declare function emitDts(params: {
|
|
28
33
|
view: SchemaView;
|
|
29
34
|
baked?: BakedExtensions;
|
|
30
35
|
computed?: readonly ComputedManifestEntry[];
|
|
31
36
|
}): string;
|
|
37
|
+
/** @internal Admit before other emitters, then render in the existing output order. */
|
|
38
|
+
export declare function prepareDts(params: {
|
|
39
|
+
view: SchemaView;
|
|
40
|
+
baked?: BakedExtensions;
|
|
41
|
+
computed?: readonly ComputedManifestEntry[];
|
|
42
|
+
}): () => string;
|
|
32
43
|
//# sourceMappingURL=emit-dts.d.ts.map
|
package/dist/generate.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export type GenerateResult = {
|
|
|
17
17
|
* Generate the client module for a schema into `outDir` (created if missing).
|
|
18
18
|
*
|
|
19
19
|
* @throws VibeError `VIBE_SCHEMA_INVALID` when the IR fails validation.
|
|
20
|
+
* @throws VibeError `VIBE_UNSUPPORTED_CAPABILITY` for logical members that cannot be represented by generated inputs.
|
|
20
21
|
*/
|
|
21
22
|
export declare function generateClient(params: {
|
|
22
23
|
schema: SchemaIR;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* typed surface in an index.d.ts written as text (decision D3) — the consumer's
|
|
7
7
|
* tsserver never re-infers ORM internals (constitution rules 1–2).
|
|
8
8
|
*/
|
|
9
|
+
export { prepareDatabaseModuleSchema } from "./module-schema.ts";
|
|
9
10
|
export { generateClient } from "./generate.ts";
|
|
10
11
|
export type { GenerateResult } from "./generate.ts";
|
|
11
12
|
export { bakeExtensions } from "./extension-bake.ts";
|