@prisma-next/contract-authoring 0.5.0-dev.9 → 0.6.0-dev.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/README.md CHANGED
@@ -10,11 +10,12 @@ This package holds the small, target-neutral descriptor vocabulary shared by Pri
10
10
 
11
11
  ## Responsibilities
12
12
 
13
- - **Column descriptors**: `ColumnTypeDescriptor` captures a codec ID, native type, and optional `typeParams` / `typeRef`
14
13
  - **Index descriptors**: `IndexDef` captures index column lists plus optional `name`, `using`, and `config`
15
14
  - **Foreign key defaults**: `ForeignKeyDefaultsState` captures default FK materialization choices shared by authoring surfaces
16
15
  - **Shared authoring vocabulary**: Gives target-family packages such as `@prisma-next/sql-contract-ts` a target-neutral descriptor layer
17
16
 
17
+ `ColumnTypeDescriptor` lives in `@prisma-next/framework-components/codec` alongside the codec types.
18
+
18
19
  ## Package Status
19
20
 
20
21
  This package is the extracted shared descriptor layer from the contract authoring split. The current SQL TypeScript authoring implementation lives in `@prisma-next/sql-contract-ts`.
@@ -31,7 +32,6 @@ This package is the extracted shared descriptor layer from the contract authorin
31
32
 
32
33
  ## Exports
33
34
 
34
- - `ColumnTypeDescriptor`
35
35
  - `IndexDef`
36
36
  - `ForeignKeyDefaultsState`
37
37
 
package/dist/index.d.mts CHANGED
@@ -1,20 +1,14 @@
1
1
  //#region src/descriptors.d.ts
2
- type ColumnTypeDescriptor<TCodecId extends string = string> = {
3
- readonly codecId: TCodecId;
4
- readonly nativeType: string;
5
- readonly typeParams?: Record<string, unknown>;
6
- readonly typeRef?: string;
7
- };
8
2
  interface IndexDef {
9
3
  readonly columns: readonly string[];
10
4
  readonly name?: string;
11
- readonly using?: string;
12
- readonly config?: Record<string, unknown>;
5
+ readonly type?: string;
6
+ readonly options?: Record<string, unknown>;
13
7
  }
14
8
  interface ForeignKeyDefaultsState {
15
9
  readonly constraint: boolean;
16
10
  readonly index: boolean;
17
11
  }
18
12
  //#endregion
19
- export { type ColumnTypeDescriptor, type ForeignKeyDefaultsState, type IndexDef };
13
+ export { type ForeignKeyDefaultsState, type IndexDef };
20
14
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/descriptors.ts"],"sourcesContent":[],"mappings":";KAAY;EAAA,SAAA,OAAA,EACQ,QADY;EAOf,SAAA,UAAQ,EAAA,MAIL;EAGH,SAAA,UAAA,CAAA,EAXO,MAWgB,CAAA,MAAA,EAAA,OAAA,CAAA;;;UAPvB,QAAA;;;;oBAIG;;UAGH,uBAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/descriptors.ts"],"mappings":";UAAiB,QAAA;EAAA,SACN,OAAA;EAAA,SACA,IAAA;EAAA,SACA,IAAA;EAAA,SACA,OAAA,GAAU,MAAA;AAAA;AAAA,UAGJ,uBAAA;EAAA,SACN,UAAA;EAAA,SACA,KAAA;AAAA"}
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {};
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@prisma-next/contract-authoring",
3
- "version": "0.5.0-dev.9",
3
+ "version": "0.6.0-dev.1",
4
+ "license": "Apache-2.0",
4
5
  "type": "module",
5
6
  "sideEffects": false,
6
7
  "description": "Target-agnostic authored storage descriptor types for Prisma Next",
7
8
  "dependencies": {},
8
9
  "devDependencies": {
9
- "tsdown": "0.18.4",
10
+ "tsdown": "0.22.0",
10
11
  "typescript": "5.9.3",
11
- "vitest": "4.0.17",
12
+ "vitest": "4.1.5",
12
13
  "@prisma-next/tsconfig": "0.0.0",
13
14
  "@prisma-next/tsdown": "0.0.0"
14
15
  },
@@ -1,15 +1,8 @@
1
- export type ColumnTypeDescriptor<TCodecId extends string = string> = {
2
- readonly codecId: TCodecId;
3
- readonly nativeType: string;
4
- readonly typeParams?: Record<string, unknown>;
5
- readonly typeRef?: string;
6
- };
7
-
8
1
  export interface IndexDef {
9
2
  readonly columns: readonly string[];
10
3
  readonly name?: string;
11
- readonly using?: string;
12
- readonly config?: Record<string, unknown>;
4
+ readonly type?: string;
5
+ readonly options?: Record<string, unknown>;
13
6
  }
14
7
 
15
8
  export interface ForeignKeyDefaultsState {
package/src/index.ts CHANGED
@@ -1,5 +1 @@
1
- export type {
2
- ColumnTypeDescriptor,
3
- ForeignKeyDefaultsState,
4
- IndexDef,
5
- } from './descriptors';
1
+ export type { ForeignKeyDefaultsState, IndexDef } from './descriptors';