@prisma-next/sql-schema-ir 0.3.0-pr.110.1 → 0.3.0-pr.111.2
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/exports/types.d.mts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/{types-D0AknSUl.d.mts → types-B_SW1GAT.d.mts} +2 -12
- package/dist/types-B_SW1GAT.d.mts.map +1 -0
- package/package.json +4 -4
- package/src/exports/types.ts +0 -1
- package/src/types.ts +0 -11
- package/dist/types-D0AknSUl.d.mts.map +0 -1
package/dist/exports/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { PrimaryKey, SqlAnnotations, SqlColumnIR,
|
|
1
|
+
import { a as SqlIndexIR, c as SqlTypeMetadata, i as SqlForeignKeyIR, l as SqlTypeMetadataRegistry, n as SqlAnnotations, o as SqlSchemaIR, r as SqlColumnIR, s as SqlTableIR, t as PrimaryKey, u as SqlUniqueIR } from "../types-B_SW1GAT.mjs";
|
|
2
|
+
export { PrimaryKey, SqlAnnotations, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlSchemaIR, SqlTableIR, SqlTypeMetadata, SqlTypeMetadataRegistry, SqlUniqueIR };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { PrimaryKey, SqlAnnotations, SqlColumnIR,
|
|
1
|
+
import { a as SqlIndexIR, c as SqlTypeMetadata, i as SqlForeignKeyIR, l as SqlTypeMetadataRegistry, n as SqlAnnotations, o as SqlSchemaIR, r as SqlColumnIR, s as SqlTableIR, t as PrimaryKey, u as SqlUniqueIR } from "./types-B_SW1GAT.mjs";
|
|
2
|
+
export { PrimaryKey, SqlAnnotations, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlSchemaIR, SqlTableIR, SqlTypeMetadata, SqlTypeMetadataRegistry, SqlUniqueIR };
|
|
@@ -69,22 +69,12 @@ type SqlTableIR = {
|
|
|
69
69
|
readonly indexes: readonly SqlIndexIR[];
|
|
70
70
|
readonly annotations?: SqlAnnotations;
|
|
71
71
|
};
|
|
72
|
-
/**
|
|
73
|
-
* SQL enum IR representing an enum type in the schema.
|
|
74
|
-
* Enums are identified by name and have an ordered list of values.
|
|
75
|
-
*/
|
|
76
|
-
type SqlEnumIR = {
|
|
77
|
-
readonly name: string;
|
|
78
|
-
readonly values: readonly string[];
|
|
79
|
-
readonly annotations?: SqlAnnotations;
|
|
80
|
-
};
|
|
81
72
|
/**
|
|
82
73
|
* SQL Schema IR representing the complete database schema.
|
|
83
74
|
* This is the target-agnostic representation used for verification and migration planning.
|
|
84
75
|
*/
|
|
85
76
|
type SqlSchemaIR = {
|
|
86
77
|
readonly tables: Record<string, SqlTableIR>;
|
|
87
|
-
readonly enums?: Record<string, SqlEnumIR>;
|
|
88
78
|
readonly extensions: readonly string[];
|
|
89
79
|
readonly annotations?: SqlAnnotations;
|
|
90
80
|
};
|
|
@@ -121,5 +111,5 @@ interface SqlTypeMetadataRegistry {
|
|
|
121
111
|
values(): IterableIterator<SqlTypeMetadata>;
|
|
122
112
|
}
|
|
123
113
|
//#endregion
|
|
124
|
-
export {
|
|
125
|
-
//# sourceMappingURL=types-
|
|
114
|
+
export { SqlIndexIR as a, SqlTypeMetadata as c, SqlForeignKeyIR as i, SqlTypeMetadataRegistry as l, SqlAnnotations as n, SqlSchemaIR as o, SqlColumnIR as r, SqlTableIR as s, PrimaryKey as t, SqlUniqueIR as u };
|
|
115
|
+
//# sourceMappingURL=types-B_SW1GAT.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-B_SW1GAT.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;AAWA;AASA;AAOA;AAUA;AAWA;AASA;AAWA;;;AAGwB,KA5DZ,UAAA,GA4DY;EACS,SAAA,OAAA,EAAA,SAAA,MAAA,EAAA;EACJ,SAAA,IAAA,CAAA,EAAA,MAAA;CACA;;;AAQ7B;;AACmB,KA/DP,cAAA,GA+DO;EAEM,UAAA,SAAA,EAAA,MAAA,CAAA,EAAA,OAAA;CAAc;AAOvC;AAyBA;;KA1FY,WAAA;;;;yBAIa;;;;;KAMb,eAAA;;;;;yBAKa;;;;;KAMb,WAAA;;;yBAGa;;;;;KAMb,UAAA;;;;yBAIa;;;;;;KAOb,UAAA;;oBAEQ,eAAe;wBACX;iCACS;6BACJ;6BACA;yBACJ;;;;;;KAOb,WAAA;mBACO,eAAe;;yBAET;;;;;;UAOR,eAAA;;;;;;;;;;;;;;;;;;;;;;UAyBA,uBAAA;;;;YAIL,iBAAiB"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/sql-schema-ir",
|
|
3
|
-
"version": "0.3.0-pr.
|
|
3
|
+
"version": "0.3.0-pr.111.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "SQL Schema IR types for schema introspection and verification",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/contract": "0.3.0-pr.
|
|
8
|
+
"@prisma-next/contract": "0.3.0-pr.111.2"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"tsdown": "0.18.4",
|
|
12
12
|
"typescript": "5.9.3",
|
|
13
13
|
"vitest": "4.0.16",
|
|
14
|
-
"@prisma-next/test-utils": "0.0.1",
|
|
15
14
|
"@prisma-next/tsconfig": "0.0.0",
|
|
16
|
-
"@prisma-next/tsdown": "0.0.0"
|
|
15
|
+
"@prisma-next/tsdown": "0.0.0",
|
|
16
|
+
"@prisma-next/test-utils": "0.0.1"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
package/src/exports/types.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -76,23 +76,12 @@ export type SqlTableIR = {
|
|
|
76
76
|
readonly annotations?: SqlAnnotations; // table-level metadata
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
* SQL enum IR representing an enum type in the schema.
|
|
81
|
-
* Enums are identified by name and have an ordered list of values.
|
|
82
|
-
*/
|
|
83
|
-
export type SqlEnumIR = {
|
|
84
|
-
readonly name: string;
|
|
85
|
-
readonly values: readonly string[]; // ordered list of enum values
|
|
86
|
-
readonly annotations?: SqlAnnotations;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
79
|
/**
|
|
90
80
|
* SQL Schema IR representing the complete database schema.
|
|
91
81
|
* This is the target-agnostic representation used for verification and migration planning.
|
|
92
82
|
*/
|
|
93
83
|
export type SqlSchemaIR = {
|
|
94
84
|
readonly tables: Record<string, SqlTableIR>;
|
|
95
|
-
readonly enums?: Record<string, SqlEnumIR>; // enum types keyed by name
|
|
96
85
|
readonly extensions: readonly string[]; // logical extension ids or DB extension names
|
|
97
86
|
readonly annotations?: SqlAnnotations; // extensible global metadata
|
|
98
87
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-D0AknSUl.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;AAWA;AASA;AAOA;AAUA;AAWA;AASA;AAWA;;;AAGwB,KA5DZ,UAAA,GA4DY;EACS,SAAA,OAAA,EAAA,SAAA,MAAA,EAAA;EACJ,SAAA,IAAA,CAAA,EAAA,MAAA;CACA;;;AAQ7B;AAUA;AACkC,KAzEtB,cAAA,GAyEsB;EAAf,UAAA,SAAA,EAAA,MAAA,CAAA,EAAA,OAAA;CACe;;;;AASjB,KA5EL,WAAA,GA4EoB;EAyBf,SAAA,IAAA,EAAA,MAAA;;;yBAjGQ;;;;;KAMb,eAAA;;;;;yBAKa;;;;;KAMb,WAAA;;;yBAGa;;;;;KAMb,UAAA;;;;yBAIa;;;;;;KAOb,UAAA;;oBAEQ,eAAe;wBACX;iCACS;6BACJ;6BACA;yBACJ;;;;;;KAOb,SAAA;;;yBAGa;;;;;;KAOb,WAAA;mBACO,eAAe;mBACf,eAAe;;yBAET;;;;;;UAOR,eAAA;;;;;;;;;;;;;;;;;;;;;;UAyBA,uBAAA;;;;YAIL,iBAAiB"}
|