@prisma-next/sql-contract 0.1.0-pr.65.4 → 0.1.0-pr.65.6
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/pack-types.d.ts +1 -25
- package/package.json +2 -2
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { DescriptorDeclarativeFields } from '@prisma-next/contract/framework-components';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Storage type metadata for pack refs.
|
|
5
3
|
*/
|
|
@@ -9,27 +7,5 @@ interface StorageTypeMetadata {
|
|
|
9
7
|
readonly targetId: string;
|
|
10
8
|
readonly nativeType?: string;
|
|
11
9
|
}
|
|
12
|
-
/**
|
|
13
|
-
* Base shape for any pack reference.
|
|
14
|
-
* Pack refs are pure JSON-friendly objects safe to import in authoring flows.
|
|
15
|
-
*/
|
|
16
|
-
interface PackRefBase<Kind extends string, TFamilyId extends string> extends DescriptorDeclarativeFields {
|
|
17
|
-
readonly kind: Kind;
|
|
18
|
-
readonly id: string;
|
|
19
|
-
readonly familyId: TFamilyId;
|
|
20
|
-
readonly targetId?: string;
|
|
21
|
-
}
|
|
22
|
-
type TargetPackRef<TFamilyId extends string = string, TTargetId extends string = string> = PackRefBase<'target', TFamilyId> & {
|
|
23
|
-
readonly targetId: TTargetId;
|
|
24
|
-
};
|
|
25
|
-
type AdapterPackRef<TFamilyId extends string = string, TTargetId extends string = string> = PackRefBase<'adapter', TFamilyId> & {
|
|
26
|
-
readonly targetId: TTargetId;
|
|
27
|
-
};
|
|
28
|
-
type ExtensionPackRef<TFamilyId extends string = string, TTargetId extends string = string> = PackRefBase<'extension', TFamilyId> & {
|
|
29
|
-
readonly targetId: TTargetId;
|
|
30
|
-
};
|
|
31
|
-
type DriverPackRef<TFamilyId extends string = string, TTargetId extends string = string> = PackRefBase<'driver', TFamilyId> & {
|
|
32
|
-
readonly targetId: TTargetId;
|
|
33
|
-
};
|
|
34
10
|
|
|
35
|
-
export type {
|
|
11
|
+
export type { StorageTypeMetadata };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/sql-contract",
|
|
3
|
-
"version": "0.1.0-pr.65.
|
|
3
|
+
"version": "0.1.0-pr.65.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "SQL contract types, validators, and IR factories for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"arktype": "^2.1.25",
|
|
9
|
-
"@prisma-next/contract": "0.1.0-pr.65.
|
|
9
|
+
"@prisma-next/contract": "0.1.0-pr.65.6"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@vitest/coverage-v8": "^4.0.0",
|