@prisma-next/core-execution-plane 0.1.0-pr.56.1 → 0.1.0-pr.56.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.ts +15 -18
- package/package.json +3 -3
package/dist/exports/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AdapterDescriptor, DriverDescriptor, ExtensionDescriptor, FamilyDescriptor, TargetDescriptor } from '@prisma-next/contract/framework-components';
|
|
2
|
-
import { FamilyInstance } from '@prisma-next/contract/types';
|
|
1
|
+
import { AdapterInstance, AdapterDescriptor, DriverInstance, DriverDescriptor, ExtensionInstance, ExtensionDescriptor, FamilyInstance, FamilyDescriptor, TargetInstance, TargetDescriptor } from '@prisma-next/contract/framework-components';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Runtime-plane family instance interface.
|
|
@@ -10,43 +9,41 @@ import { FamilyInstance } from '@prisma-next/contract/types';
|
|
|
10
9
|
interface RuntimeFamilyInstance<TFamilyId extends string = string> extends FamilyInstance<TFamilyId> {
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
12
|
+
* Runtime-plane target instance interface.
|
|
13
|
+
* Extends the base TargetInstance with runtime-plane specific behavior.
|
|
14
14
|
*
|
|
15
15
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
16
16
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
17
17
|
*/
|
|
18
|
-
interface RuntimeTargetInstance<TFamilyId extends string = string, TTargetId extends string = string> {
|
|
19
|
-
readonly familyId: TFamilyId;
|
|
20
|
-
readonly targetId: TTargetId;
|
|
18
|
+
interface RuntimeTargetInstance<TFamilyId extends string = string, TTargetId extends string = string> extends TargetInstance<TFamilyId, TTargetId> {
|
|
21
19
|
}
|
|
22
20
|
/**
|
|
23
|
-
*
|
|
21
|
+
* Runtime-plane adapter instance interface.
|
|
22
|
+
* Extends the base AdapterInstance with runtime-plane specific behavior.
|
|
24
23
|
* Families extend this with family-specific adapter interfaces.
|
|
25
24
|
*
|
|
26
25
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
27
26
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
28
27
|
*/
|
|
29
|
-
interface RuntimeAdapterInstance<TFamilyId extends string = string, TTargetId extends string = string> {
|
|
30
|
-
readonly familyId: TFamilyId;
|
|
31
|
-
readonly targetId: TTargetId;
|
|
28
|
+
interface RuntimeAdapterInstance<TFamilyId extends string = string, TTargetId extends string = string> extends AdapterInstance<TFamilyId, TTargetId> {
|
|
32
29
|
}
|
|
33
30
|
/**
|
|
34
|
-
*
|
|
31
|
+
* Runtime-plane driver instance interface.
|
|
32
|
+
* Extends the base DriverInstance with runtime-plane specific behavior.
|
|
35
33
|
*
|
|
34
|
+
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
36
35
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
37
36
|
*/
|
|
38
|
-
interface RuntimeDriverInstance<TTargetId extends string = string> {
|
|
39
|
-
readonly targetId?: TTargetId;
|
|
37
|
+
interface RuntimeDriverInstance<TFamilyId extends string = string, TTargetId extends string = string> extends DriverInstance<TFamilyId, TTargetId> {
|
|
40
38
|
}
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
40
|
+
* Runtime-plane extension instance interface.
|
|
41
|
+
* Extends the base ExtensionInstance with runtime-plane specific behavior.
|
|
43
42
|
*
|
|
44
43
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
45
44
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
46
45
|
*/
|
|
47
|
-
interface RuntimeExtensionInstance<TFamilyId extends string = string, TTargetId extends string = string> {
|
|
48
|
-
readonly familyId: TFamilyId;
|
|
49
|
-
readonly targetId: TTargetId;
|
|
46
|
+
interface RuntimeExtensionInstance<TFamilyId extends string = string, TTargetId extends string = string> extends ExtensionInstance<TFamilyId, TTargetId> {
|
|
50
47
|
}
|
|
51
48
|
/**
|
|
52
49
|
* Descriptor for an execution/runtime-plane family (e.g., SQL).
|
|
@@ -90,7 +87,7 @@ interface RuntimeAdapterDescriptor<TFamilyId extends string, TTargetId extends s
|
|
|
90
87
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
91
88
|
* @template TDriverInstance - The driver instance type
|
|
92
89
|
*/
|
|
93
|
-
interface RuntimeDriverDescriptor<TFamilyId extends string, TTargetId extends string, TDriverInstance extends RuntimeDriverInstance<TTargetId> = RuntimeDriverInstance<TTargetId>> extends DriverDescriptor<TFamilyId, TTargetId> {
|
|
90
|
+
interface RuntimeDriverDescriptor<TFamilyId extends string, TTargetId extends string, TDriverInstance extends RuntimeDriverInstance<TFamilyId, TTargetId> = RuntimeDriverInstance<TFamilyId, TTargetId>> extends DriverDescriptor<TFamilyId, TTargetId> {
|
|
94
91
|
create(options: unknown): TDriverInstance;
|
|
95
92
|
}
|
|
96
93
|
/**
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/core-execution-plane",
|
|
3
|
-
"version": "0.1.0-pr.56.
|
|
3
|
+
"version": "0.1.0-pr.56.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Execution/runtime plane descriptor and instance types for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/contract": "0.1.0-pr.56.
|
|
9
|
-
"@prisma-next/core-control-plane": "0.1.0-pr.56.
|
|
8
|
+
"@prisma-next/contract": "0.1.0-pr.56.2",
|
|
9
|
+
"@prisma-next/core-control-plane": "0.1.0-pr.56.2"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"tsup": "^8.3.0",
|