@prisma-next/core-execution-plane 0.1.0-pr.55.2 → 0.1.0-pr.56.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/dist/exports/types.d.ts +14 -38
- package/package.json +3 -3
package/dist/exports/types.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterDescriptor, DriverDescriptor, ExtensionDescriptor, FamilyDescriptor, TargetDescriptor } from '@prisma-next/contract/framework-components';
|
|
2
|
+
import { FamilyInstance } from '@prisma-next/contract/types';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
5
|
+
* Runtime-plane family instance interface.
|
|
6
|
+
* Extends the base FamilyInstance for runtime-plane specific methods.
|
|
6
7
|
*
|
|
7
8
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
8
9
|
*/
|
|
9
|
-
interface RuntimeFamilyInstance<TFamilyId extends string = string> {
|
|
10
|
-
readonly familyId: TFamilyId;
|
|
10
|
+
interface RuntimeFamilyInstance<TFamilyId extends string = string> extends FamilyInstance<TFamilyId> {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Base interface for execution/runtime-plane target instances.
|
|
@@ -55,11 +55,7 @@ interface RuntimeExtensionInstance<TFamilyId extends string = string, TTargetId
|
|
|
55
55
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
56
56
|
* @template TFamilyInstance - The family instance type
|
|
57
57
|
*/
|
|
58
|
-
interface RuntimeFamilyDescriptor<TFamilyId extends string, TFamilyInstance extends RuntimeFamilyInstance<TFamilyId> = RuntimeFamilyInstance<TFamilyId>> {
|
|
59
|
-
readonly kind: 'family';
|
|
60
|
-
readonly id: string;
|
|
61
|
-
readonly familyId: TFamilyId;
|
|
62
|
-
readonly manifest: ExtensionPackManifest;
|
|
58
|
+
interface RuntimeFamilyDescriptor<TFamilyId extends string, TFamilyInstance extends RuntimeFamilyInstance<TFamilyId> = RuntimeFamilyInstance<TFamilyId>> extends FamilyDescriptor<TFamilyId> {
|
|
63
59
|
create<TTargetId extends string>(options: {
|
|
64
60
|
readonly target: RuntimeTargetDescriptor<TFamilyId, TTargetId>;
|
|
65
61
|
readonly adapter: RuntimeAdapterDescriptor<TFamilyId, TTargetId>;
|
|
@@ -68,63 +64,43 @@ interface RuntimeFamilyDescriptor<TFamilyId extends string, TFamilyInstance exte
|
|
|
68
64
|
}): TFamilyInstance;
|
|
69
65
|
}
|
|
70
66
|
/**
|
|
71
|
-
* Descriptor for an execution/runtime-plane target
|
|
67
|
+
* Descriptor for an execution/runtime-plane target component (e.g., Postgres target).
|
|
72
68
|
*
|
|
73
69
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
74
70
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
75
71
|
* @template TTargetInstance - The target instance type
|
|
76
72
|
*/
|
|
77
|
-
interface RuntimeTargetDescriptor<TFamilyId extends string, TTargetId extends string, TTargetInstance extends RuntimeTargetInstance<TFamilyId, TTargetId> = RuntimeTargetInstance<TFamilyId, TTargetId>> {
|
|
78
|
-
readonly kind: 'target';
|
|
79
|
-
readonly id: string;
|
|
80
|
-
readonly familyId: TFamilyId;
|
|
81
|
-
readonly targetId: TTargetId;
|
|
82
|
-
readonly manifest: ExtensionPackManifest;
|
|
73
|
+
interface RuntimeTargetDescriptor<TFamilyId extends string, TTargetId extends string, TTargetInstance extends RuntimeTargetInstance<TFamilyId, TTargetId> = RuntimeTargetInstance<TFamilyId, TTargetId>> extends TargetDescriptor<TFamilyId, TTargetId> {
|
|
83
74
|
create(): TTargetInstance;
|
|
84
75
|
}
|
|
85
76
|
/**
|
|
86
|
-
* Descriptor for an execution/runtime-plane adapter
|
|
77
|
+
* Descriptor for an execution/runtime-plane adapter component (e.g., Postgres adapter).
|
|
87
78
|
*
|
|
88
79
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
89
80
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
90
81
|
* @template TAdapterInstance - The adapter instance type
|
|
91
82
|
*/
|
|
92
|
-
interface RuntimeAdapterDescriptor<TFamilyId extends string, TTargetId extends string, TAdapterInstance extends RuntimeAdapterInstance<TFamilyId, TTargetId> = RuntimeAdapterInstance<TFamilyId, TTargetId>> {
|
|
93
|
-
readonly kind: 'adapter';
|
|
94
|
-
readonly id: string;
|
|
95
|
-
readonly familyId: TFamilyId;
|
|
96
|
-
readonly targetId: TTargetId;
|
|
97
|
-
readonly manifest: ExtensionPackManifest;
|
|
83
|
+
interface RuntimeAdapterDescriptor<TFamilyId extends string, TTargetId extends string, TAdapterInstance extends RuntimeAdapterInstance<TFamilyId, TTargetId> = RuntimeAdapterInstance<TFamilyId, TTargetId>> extends AdapterDescriptor<TFamilyId, TTargetId> {
|
|
98
84
|
create(): TAdapterInstance;
|
|
99
85
|
}
|
|
100
86
|
/**
|
|
101
|
-
* Descriptor for an execution/runtime-plane driver
|
|
87
|
+
* Descriptor for an execution/runtime-plane driver component (e.g., Postgres driver).
|
|
102
88
|
*
|
|
103
89
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
104
90
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
105
91
|
* @template TDriverInstance - The driver instance type
|
|
106
92
|
*/
|
|
107
|
-
interface RuntimeDriverDescriptor<TFamilyId extends string, TTargetId extends string, TDriverInstance extends RuntimeDriverInstance<TTargetId> = RuntimeDriverInstance<TTargetId>> {
|
|
108
|
-
readonly kind: 'driver';
|
|
109
|
-
readonly id: string;
|
|
110
|
-
readonly familyId: TFamilyId;
|
|
111
|
-
readonly targetId: TTargetId;
|
|
112
|
-
readonly manifest: ExtensionPackManifest;
|
|
93
|
+
interface RuntimeDriverDescriptor<TFamilyId extends string, TTargetId extends string, TDriverInstance extends RuntimeDriverInstance<TTargetId> = RuntimeDriverInstance<TTargetId>> extends DriverDescriptor<TFamilyId, TTargetId> {
|
|
113
94
|
create(options: unknown): TDriverInstance;
|
|
114
95
|
}
|
|
115
96
|
/**
|
|
116
|
-
* Descriptor for an execution/runtime-plane extension
|
|
97
|
+
* Descriptor for an execution/runtime-plane extension component (e.g., pgvector).
|
|
117
98
|
*
|
|
118
99
|
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
119
100
|
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
120
101
|
* @template TExtensionInstance - The extension instance type
|
|
121
102
|
*/
|
|
122
|
-
interface RuntimeExtensionDescriptor<TFamilyId extends string, TTargetId extends string, TExtensionInstance extends RuntimeExtensionInstance<TFamilyId, TTargetId> = RuntimeExtensionInstance<TFamilyId, TTargetId>> {
|
|
123
|
-
readonly kind: 'extension';
|
|
124
|
-
readonly id: string;
|
|
125
|
-
readonly familyId: TFamilyId;
|
|
126
|
-
readonly targetId: TTargetId;
|
|
127
|
-
readonly manifest: ExtensionPackManifest;
|
|
103
|
+
interface RuntimeExtensionDescriptor<TFamilyId extends string, TTargetId extends string, TExtensionInstance extends RuntimeExtensionInstance<TFamilyId, TTargetId> = RuntimeExtensionInstance<TFamilyId, TTargetId>> extends ExtensionDescriptor<TFamilyId, TTargetId> {
|
|
128
104
|
create(): TExtensionInstance;
|
|
129
105
|
}
|
|
130
106
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/core-execution-plane",
|
|
3
|
-
"version": "0.1.0-pr.
|
|
3
|
+
"version": "0.1.0-pr.56.1",
|
|
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.
|
|
9
|
-
"@prisma-next/core-control-plane": "0.1.0-pr.
|
|
8
|
+
"@prisma-next/contract": "0.1.0-pr.56.1",
|
|
9
|
+
"@prisma-next/core-control-plane": "0.1.0-pr.56.1"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"tsup": "^8.3.0",
|