@prisma-next/contract 0.3.0-dev.135 → 0.3.0-dev.137
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/{ir-BPkihpFL.d.mts → ir-DkfZ4S60.d.mts} +1 -1
- package/dist/{ir-BPkihpFL.d.mts.map → ir-DkfZ4S60.d.mts.map} +1 -1
- package/dist/ir.d.mts +1 -1
- package/dist/types.d.mts +443 -2
- package/dist/types.d.mts.map +1 -0
- package/package.json +3 -4
- package/dist/framework-components.d.mts +0 -520
- package/dist/framework-components.d.mts.map +0 -1
- package/dist/framework-components.mjs +0 -190
- package/dist/framework-components.mjs.map +0 -1
- package/dist/types-BwcW0HFt.d.mts +0 -443
- package/dist/types-BwcW0HFt.d.mts.map +0 -1
- package/src/exports/framework-components.ts +0 -54
- package/src/framework-authoring.ts +0 -383
- package/src/framework-components.ts +0 -552
|
@@ -83,4 +83,4 @@ declare function contractIR<TStorage extends Record<string, unknown>, TModels ex
|
|
|
83
83
|
}): ContractIR<TStorage, TModels, TRelations, TExecution>;
|
|
84
84
|
//#endregion
|
|
85
85
|
export { irMeta as i, contractIR as n, irHeader as r, ContractIR as t };
|
|
86
|
-
//# sourceMappingURL=ir-
|
|
86
|
+
//# sourceMappingURL=ir-DkfZ4S60.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir-
|
|
1
|
+
{"version":3,"file":"ir-DkfZ4S60.d.mts","names":[],"sources":["../src/ir.ts"],"sourcesContent":[],"mappings":";;AAiBA;;;;;;;;AAI+C,UAJ9B,UAI8B,CAAA,iBAH5B,MAG4B,CAAA,MAAA,EAAA,OAAA,CAAA,GAHF,MAGE,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,gBAF7B,MAE6B,CAAA,MAAA,EAAA,OAAA,CAAA,GAFH,MAEG,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,mBAD1B,MAC0B,CAAA,MAAA,EAAA,OAAA,CA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MA6CH,CAAA,MAAA,EA7CkB,MA6ClB,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,GAAA,SAAA;EACA,cAAA,CAAA,EA7CK,MA6CL,CAAA,MAAA,EAAA,OAAA,CAAA,GAAA,SAAA;EACC,IAAA,CAAA,EA7CN,MA6CM,CAAA,MAAA,EAAA,OAAA,CAAA,GAAA,SAAA;EAAU,OAAA,CAAA,EA5Cb,MA4Ca,CAAA,MAAA,EAAA,OAAA,CAAA,GAAA,SAAA;CAAS,CAAA,EAAA;EAAY,SAAA,YAAA,EA1CrB,MA0CqB,CAAA,MAAA,EA1CN,MA0CM,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA;EAA1C,SAAA,cAAA,EAzCuB,MAyCvB,CAAA,MAAA,EAAA,OAAA,CAAA;EAAU,SAAA,IAAA,EAxCG,MAwCH,CAAA,MAAA,EAAA,OAAA,CAAA;oBAvCM;;;;;;iBAcJ,4BACG,yCACD,4CACG,4CACA;;;;;;;;;;2BAWM,eAAe;6BACb;mBACV;sBACG;;UAEZ;WACC;UACD;cACI;cACA;IACV,WAAW,UAAU,SAAS,YAAY"}
|
package/dist/ir.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as irMeta, n as contractIR, r as irHeader, t as ContractIR } from "./ir-
|
|
1
|
+
import { i as irMeta, n as contractIR, r as irHeader, t as ContractIR } from "./ir-DkfZ4S60.mjs";
|
|
2
2
|
export { ContractIR, contractIR, irHeader, irMeta };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,443 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as ContractIR } from "./ir-DkfZ4S60.mjs";
|
|
2
|
+
import { OperationRegistry } from "@prisma-next/operations";
|
|
3
|
+
|
|
4
|
+
//#region src/domain-types.d.ts
|
|
5
|
+
type DomainField = {
|
|
6
|
+
readonly nullable: boolean;
|
|
7
|
+
readonly codecId: string;
|
|
8
|
+
};
|
|
9
|
+
type DomainRelationOn = {
|
|
10
|
+
readonly localFields: readonly string[];
|
|
11
|
+
readonly targetFields: readonly string[];
|
|
12
|
+
};
|
|
13
|
+
type DomainReferenceRelation = {
|
|
14
|
+
readonly to: string;
|
|
15
|
+
readonly cardinality: '1:1' | '1:N' | 'N:1';
|
|
16
|
+
readonly on: DomainRelationOn;
|
|
17
|
+
};
|
|
18
|
+
type DomainEmbedRelation = {
|
|
19
|
+
readonly to: string;
|
|
20
|
+
readonly cardinality: '1:1' | '1:N';
|
|
21
|
+
};
|
|
22
|
+
type DomainRelation = DomainReferenceRelation | DomainEmbedRelation;
|
|
23
|
+
type DomainDiscriminator = {
|
|
24
|
+
readonly field: string;
|
|
25
|
+
};
|
|
26
|
+
type DomainVariantEntry = {
|
|
27
|
+
readonly value: string;
|
|
28
|
+
};
|
|
29
|
+
type DomainModel = {
|
|
30
|
+
readonly fields: Record<string, DomainField>;
|
|
31
|
+
readonly relations: Record<string, DomainRelation>;
|
|
32
|
+
readonly storage: Record<string, unknown>;
|
|
33
|
+
readonly discriminator?: DomainDiscriminator;
|
|
34
|
+
readonly variants?: Record<string, DomainVariantEntry>;
|
|
35
|
+
readonly base?: string;
|
|
36
|
+
readonly owner?: string;
|
|
37
|
+
};
|
|
38
|
+
type HasModelsWithRelations = {
|
|
39
|
+
readonly models: Record<string, {
|
|
40
|
+
readonly relations: Record<string, DomainRelation>;
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
type ReferenceRelationKeys<TContract extends HasModelsWithRelations, ModelName extends string & keyof TContract['models']> = { [K in keyof TContract['models'][ModelName]['relations']]: TContract['models'][ModelName]['relations'][K] extends DomainReferenceRelation ? K : never }[keyof TContract['models'][ModelName]['relations']];
|
|
44
|
+
type EmbedRelationKeys<TContract extends HasModelsWithRelations, ModelName extends string & keyof TContract['models']> = { [K in keyof TContract['models'][ModelName]['relations']]: TContract['models'][ModelName]['relations'][K] extends DomainReferenceRelation ? never : K }[keyof TContract['models'][ModelName]['relations']];
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/types.d.ts
|
|
47
|
+
/**
|
|
48
|
+
* Unique symbol used as the key for branding types.
|
|
49
|
+
*/
|
|
50
|
+
declare const $: unique symbol;
|
|
51
|
+
/**
|
|
52
|
+
* A helper type to brand a given type with a unique identifier.
|
|
53
|
+
*
|
|
54
|
+
* @template TKey Text used as the brand key.
|
|
55
|
+
* @template TValue Optional value associated with the brand key. Defaults to `true`.
|
|
56
|
+
*/
|
|
57
|
+
type Brand<TKey extends string | number | symbol, TValue = true> = {
|
|
58
|
+
[$]: { [K in TKey]: TValue };
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Context passed to type renderers during contract.d.ts generation.
|
|
62
|
+
*/
|
|
63
|
+
interface RenderTypeContext {
|
|
64
|
+
/** The name of the CodecTypes type alias (typically 'CodecTypes') */
|
|
65
|
+
readonly codecTypesName: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Base type for storage contract hashes.
|
|
69
|
+
* Emitted contract.d.ts files use this with the hash value as a type parameter:
|
|
70
|
+
* `type StorageHash = StorageHashBase<'sha256:abc123...'>`
|
|
71
|
+
*/
|
|
72
|
+
type StorageHashBase<THash extends string> = THash & Brand<'StorageHash'>;
|
|
73
|
+
/**
|
|
74
|
+
* Base type for execution contract hashes.
|
|
75
|
+
* Emitted contract.d.ts files use this with the hash value as a type parameter:
|
|
76
|
+
* `type ExecutionHash = ExecutionHashBase<'sha256:def456...'>`
|
|
77
|
+
*/
|
|
78
|
+
type ExecutionHashBase<THash extends string> = THash & Brand<'ExecutionHash'>;
|
|
79
|
+
declare function coreHash<const T extends string>(value: T): StorageHashBase<T>;
|
|
80
|
+
/**
|
|
81
|
+
* Base type for profile contract hashes.
|
|
82
|
+
* Emitted contract.d.ts files use this with the hash value as a type parameter:
|
|
83
|
+
* `type ProfileHash = ProfileHashBase<'sha256:def456...'>`
|
|
84
|
+
*/
|
|
85
|
+
type ProfileHashBase<THash extends string> = THash & Brand<'ProfileHash'>;
|
|
86
|
+
declare function profileHash<const T extends string>(value: T): ProfileHashBase<T>;
|
|
87
|
+
interface ContractBase<TStorageHash extends StorageHashBase<string> = StorageHashBase<string>, TExecutionHash extends ExecutionHashBase<string> = ExecutionHashBase<string>, TProfileHash extends ProfileHashBase<string> = ProfileHashBase<string>> {
|
|
88
|
+
readonly schemaVersion: string;
|
|
89
|
+
readonly target: string;
|
|
90
|
+
readonly targetFamily: string;
|
|
91
|
+
readonly storageHash: TStorageHash;
|
|
92
|
+
readonly executionHash?: TExecutionHash | undefined;
|
|
93
|
+
readonly profileHash?: TProfileHash | undefined;
|
|
94
|
+
readonly capabilities: Record<string, Record<string, boolean>>;
|
|
95
|
+
readonly extensionPacks: Record<string, unknown>;
|
|
96
|
+
readonly meta: Record<string, unknown>;
|
|
97
|
+
readonly sources: Record<string, Source>;
|
|
98
|
+
readonly execution?: ExecutionSection;
|
|
99
|
+
readonly roots: Record<string, string>;
|
|
100
|
+
readonly models: Record<string, DomainModel>;
|
|
101
|
+
}
|
|
102
|
+
interface FieldType {
|
|
103
|
+
readonly type: string;
|
|
104
|
+
readonly nullable: boolean;
|
|
105
|
+
readonly items?: FieldType;
|
|
106
|
+
readonly properties?: Record<string, FieldType>;
|
|
107
|
+
}
|
|
108
|
+
type GeneratedValueSpec = {
|
|
109
|
+
readonly id: string;
|
|
110
|
+
readonly params?: Record<string, unknown>;
|
|
111
|
+
};
|
|
112
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
113
|
+
type JsonValue = JsonPrimitive | {
|
|
114
|
+
readonly [key: string]: JsonValue;
|
|
115
|
+
} | readonly JsonValue[];
|
|
116
|
+
type TaggedBigInt = {
|
|
117
|
+
readonly $type: 'bigint';
|
|
118
|
+
readonly value: string;
|
|
119
|
+
};
|
|
120
|
+
declare function isTaggedBigInt(value: unknown): value is TaggedBigInt;
|
|
121
|
+
declare function bigintJsonReplacer(_key: string, value: unknown): unknown;
|
|
122
|
+
type TaggedRaw = {
|
|
123
|
+
readonly $type: 'raw';
|
|
124
|
+
readonly value: JsonValue;
|
|
125
|
+
};
|
|
126
|
+
declare function isTaggedRaw(value: unknown): value is TaggedRaw;
|
|
127
|
+
type TaggedLiteralValue = TaggedBigInt | TaggedRaw;
|
|
128
|
+
type ColumnDefaultLiteralValue = JsonValue | TaggedLiteralValue;
|
|
129
|
+
type ColumnDefaultLiteralInputValue = ColumnDefaultLiteralValue | bigint | Date;
|
|
130
|
+
type ColumnDefault = {
|
|
131
|
+
readonly kind: 'literal';
|
|
132
|
+
readonly value: ColumnDefaultLiteralInputValue;
|
|
133
|
+
} | {
|
|
134
|
+
readonly kind: 'function';
|
|
135
|
+
readonly expression: string;
|
|
136
|
+
};
|
|
137
|
+
type ExecutionMutationDefaultValue = {
|
|
138
|
+
readonly kind: 'generator';
|
|
139
|
+
readonly id: GeneratedValueSpec['id'];
|
|
140
|
+
readonly params?: Record<string, unknown>;
|
|
141
|
+
};
|
|
142
|
+
type ExecutionMutationDefault = {
|
|
143
|
+
readonly ref: {
|
|
144
|
+
readonly table: string;
|
|
145
|
+
readonly column: string;
|
|
146
|
+
};
|
|
147
|
+
readonly onCreate?: ExecutionMutationDefaultValue;
|
|
148
|
+
readonly onUpdate?: ExecutionMutationDefaultValue;
|
|
149
|
+
};
|
|
150
|
+
type ExecutionSection = {
|
|
151
|
+
readonly mutations: {
|
|
152
|
+
readonly defaults: ReadonlyArray<ExecutionMutationDefault>;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
interface Source {
|
|
156
|
+
readonly readOnly: boolean;
|
|
157
|
+
readonly projection: Record<string, FieldType>;
|
|
158
|
+
readonly origin?: Record<string, unknown>;
|
|
159
|
+
readonly capabilities?: Record<string, boolean>;
|
|
160
|
+
}
|
|
161
|
+
interface DocIndex {
|
|
162
|
+
readonly name: string;
|
|
163
|
+
readonly keys: Record<string, 'asc' | 'desc'>;
|
|
164
|
+
readonly unique?: boolean;
|
|
165
|
+
readonly where?: Expr;
|
|
166
|
+
}
|
|
167
|
+
type Expr = {
|
|
168
|
+
readonly kind: 'eq';
|
|
169
|
+
readonly path: ReadonlyArray<string>;
|
|
170
|
+
readonly value: unknown;
|
|
171
|
+
} | {
|
|
172
|
+
readonly kind: 'exists';
|
|
173
|
+
readonly path: ReadonlyArray<string>;
|
|
174
|
+
};
|
|
175
|
+
interface DocCollection {
|
|
176
|
+
readonly name: string;
|
|
177
|
+
readonly id?: {
|
|
178
|
+
readonly strategy: 'auto' | 'client' | 'uuid' | 'objectId';
|
|
179
|
+
};
|
|
180
|
+
readonly fields: Record<string, FieldType>;
|
|
181
|
+
readonly indexes?: ReadonlyArray<DocIndex>;
|
|
182
|
+
readonly readOnly?: boolean;
|
|
183
|
+
}
|
|
184
|
+
interface DocumentStorage {
|
|
185
|
+
readonly document: {
|
|
186
|
+
readonly collections: Record<string, DocCollection>;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
interface DocumentContract<TStorageHash extends StorageHashBase<string> = StorageHashBase<string>, TExecutionHash extends ExecutionHashBase<string> = ExecutionHashBase<string>, TProfileHash extends ProfileHashBase<string> = ProfileHashBase<string>> extends ContractBase<TStorageHash, TExecutionHash, TProfileHash> {
|
|
190
|
+
readonly targetFamily: string;
|
|
191
|
+
readonly storage: DocumentStorage;
|
|
192
|
+
}
|
|
193
|
+
interface ParamDescriptor {
|
|
194
|
+
readonly index?: number;
|
|
195
|
+
readonly name?: string;
|
|
196
|
+
readonly codecId?: string;
|
|
197
|
+
readonly nativeType?: string;
|
|
198
|
+
readonly nullable?: boolean;
|
|
199
|
+
readonly source: 'dsl' | 'raw' | 'lane';
|
|
200
|
+
readonly refs?: {
|
|
201
|
+
table: string;
|
|
202
|
+
column: string;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
interface PlanRefs {
|
|
206
|
+
readonly tables?: readonly string[];
|
|
207
|
+
readonly columns?: ReadonlyArray<{
|
|
208
|
+
table: string;
|
|
209
|
+
column: string;
|
|
210
|
+
}>;
|
|
211
|
+
readonly indexes?: ReadonlyArray<{
|
|
212
|
+
readonly table: string;
|
|
213
|
+
readonly columns: ReadonlyArray<string>;
|
|
214
|
+
readonly name?: string;
|
|
215
|
+
}>;
|
|
216
|
+
}
|
|
217
|
+
interface PlanMeta {
|
|
218
|
+
readonly target: string;
|
|
219
|
+
readonly targetFamily?: string;
|
|
220
|
+
readonly storageHash: string;
|
|
221
|
+
readonly profileHash?: string;
|
|
222
|
+
readonly lane: string;
|
|
223
|
+
readonly annotations?: {
|
|
224
|
+
codecs?: Record<string, string>;
|
|
225
|
+
[key: string]: unknown;
|
|
226
|
+
};
|
|
227
|
+
readonly paramDescriptors: ReadonlyArray<ParamDescriptor>;
|
|
228
|
+
readonly refs?: PlanRefs;
|
|
229
|
+
readonly projection?: Record<string, string> | ReadonlyArray<string>;
|
|
230
|
+
/**
|
|
231
|
+
* Optional mapping of projection alias → column type ID (fully qualified ns/name@version).
|
|
232
|
+
* Used for codec resolution when AST+refs don't provide enough type info.
|
|
233
|
+
*/
|
|
234
|
+
readonly projectionTypes?: Record<string, string>;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Canonical execution plan shape used by runtimes.
|
|
238
|
+
*
|
|
239
|
+
* - Row is the inferred result row type (TypeScript-only).
|
|
240
|
+
* - Ast is the optional, family-specific AST type (e.g. SQL QueryAst).
|
|
241
|
+
*
|
|
242
|
+
* The payload executed by the runtime is represented by the sql + params pair
|
|
243
|
+
* for now; future families can specialize this via Ast or additional metadata.
|
|
244
|
+
*/
|
|
245
|
+
interface ExecutionPlan<Row = unknown, Ast = unknown> {
|
|
246
|
+
readonly sql: string;
|
|
247
|
+
readonly params: readonly unknown[];
|
|
248
|
+
readonly ast?: Ast;
|
|
249
|
+
readonly meta: PlanMeta;
|
|
250
|
+
/**
|
|
251
|
+
* Phantom property to carry the Row generic for type-level utilities.
|
|
252
|
+
* Not set at runtime; used only for ResultType extraction.
|
|
253
|
+
*/
|
|
254
|
+
readonly _row?: Row;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Utility type to extract the Row type from an ExecutionPlan.
|
|
258
|
+
* Example: `type Row = ResultType<typeof plan>`
|
|
259
|
+
*
|
|
260
|
+
* Works with both ExecutionPlan and SqlQueryPlan (SQL query plans before lowering).
|
|
261
|
+
* SqlQueryPlan includes a phantom `_Row` property to preserve the generic parameter
|
|
262
|
+
* for type extraction.
|
|
263
|
+
*/
|
|
264
|
+
type ResultType<P> = P extends ExecutionPlan<infer R, unknown> ? R : P extends {
|
|
265
|
+
readonly _Row?: infer R;
|
|
266
|
+
} ? R : never;
|
|
267
|
+
/**
|
|
268
|
+
* Type guard to check if a contract is a Document contract
|
|
269
|
+
*/
|
|
270
|
+
declare function isDocumentContract(contract: unknown): contract is DocumentContract;
|
|
271
|
+
/**
|
|
272
|
+
* Contract marker record stored in the database.
|
|
273
|
+
* Represents the current contract identity for a database.
|
|
274
|
+
*/
|
|
275
|
+
interface ContractMarkerRecord {
|
|
276
|
+
readonly storageHash: string;
|
|
277
|
+
readonly profileHash: string;
|
|
278
|
+
readonly contractJson: unknown | null;
|
|
279
|
+
readonly canonicalVersion: number | null;
|
|
280
|
+
readonly updatedAt: Date;
|
|
281
|
+
readonly appTag: string | null;
|
|
282
|
+
readonly meta: Record<string, unknown>;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Specifies how to import TypeScript types from a package.
|
|
286
|
+
* Used in extension pack manifests to declare codec and operation type imports.
|
|
287
|
+
*/
|
|
288
|
+
interface TypesImportSpec {
|
|
289
|
+
readonly package: string;
|
|
290
|
+
readonly named: string;
|
|
291
|
+
readonly alias: string;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Validation context passed to TargetFamilyHook.validateTypes().
|
|
295
|
+
* Contains pre-assembled operation registry, type imports, and extension IDs.
|
|
296
|
+
*/
|
|
297
|
+
interface ValidationContext {
|
|
298
|
+
readonly operationRegistry?: OperationRegistry;
|
|
299
|
+
readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
300
|
+
readonly operationTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
301
|
+
readonly extensionIds?: ReadonlyArray<string>;
|
|
302
|
+
/**
|
|
303
|
+
* Parameterized codec descriptors collected from adapters and extensions.
|
|
304
|
+
* Map of codecId → descriptor for quick lookup during type generation.
|
|
305
|
+
*/
|
|
306
|
+
readonly parameterizedCodecs?: Map<string, ParameterizedCodecDescriptor>;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Context for rendering parameterized types during contract.d.ts generation.
|
|
310
|
+
* Passed to type renderers so they can reference CodecTypes by name.
|
|
311
|
+
*/
|
|
312
|
+
interface TypeRenderContext {
|
|
313
|
+
readonly codecTypesName: string;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* A normalized type renderer for parameterized codecs.
|
|
317
|
+
* This is the interface expected by TargetFamilyHook.generateContractTypes.
|
|
318
|
+
*/
|
|
319
|
+
interface TypeRenderEntry {
|
|
320
|
+
readonly codecId: string;
|
|
321
|
+
readonly render: (params: Record<string, unknown>, ctx: TypeRenderContext) => string;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Additional options for generateContractTypes.
|
|
325
|
+
*/
|
|
326
|
+
interface GenerateContractTypesOptions {
|
|
327
|
+
/**
|
|
328
|
+
* Normalized parameterized type renderers, keyed by codecId.
|
|
329
|
+
* When a column has typeParams and a renderer exists for its codecId,
|
|
330
|
+
* the renderer is called to produce the TypeScript type expression.
|
|
331
|
+
*/
|
|
332
|
+
readonly parameterizedRenderers?: Map<string, TypeRenderEntry>;
|
|
333
|
+
/**
|
|
334
|
+
* Type imports for parameterized codecs.
|
|
335
|
+
* These are merged with codec and operation type imports in contract.d.ts.
|
|
336
|
+
*/
|
|
337
|
+
readonly parameterizedTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
338
|
+
/**
|
|
339
|
+
* Query operation type imports for the query builder.
|
|
340
|
+
* Flat operation signatures keyed by operation name, emitted as standalone QueryOperationTypes.
|
|
341
|
+
*/
|
|
342
|
+
readonly queryOperationTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* SPI interface for target family hooks that extend emission behavior.
|
|
346
|
+
* Implemented by family-specific emitter hooks (e.g., SQL family).
|
|
347
|
+
*/
|
|
348
|
+
interface TargetFamilyHook {
|
|
349
|
+
readonly id: string;
|
|
350
|
+
/**
|
|
351
|
+
* Validates that all type IDs in the contract come from referenced extension packs.
|
|
352
|
+
* @param ir - Contract IR to validate
|
|
353
|
+
* @param ctx - Validation context with operation registry and extension IDs
|
|
354
|
+
*/
|
|
355
|
+
validateTypes(ir: ContractIR, ctx: ValidationContext): void;
|
|
356
|
+
/**
|
|
357
|
+
* Validates family-specific contract structure.
|
|
358
|
+
* @param ir - Contract IR to validate
|
|
359
|
+
*/
|
|
360
|
+
validateStructure(ir: ContractIR): void;
|
|
361
|
+
/**
|
|
362
|
+
* Generates contract.d.ts file content.
|
|
363
|
+
* @param ir - Contract IR
|
|
364
|
+
* @param codecTypeImports - Array of codec type import specs
|
|
365
|
+
* @param operationTypeImports - Array of operation type import specs
|
|
366
|
+
* @param hashes - Contract hash values (storageHash, executionHash, profileHash)
|
|
367
|
+
* @param options - Additional options including parameterized type renderers
|
|
368
|
+
* @returns Generated TypeScript type definitions as string
|
|
369
|
+
*/
|
|
370
|
+
generateContractTypes(ir: ContractIR, codecTypeImports: ReadonlyArray<TypesImportSpec>, operationTypeImports: ReadonlyArray<TypesImportSpec>, hashes: {
|
|
371
|
+
readonly storageHash: string;
|
|
372
|
+
readonly executionHash?: string;
|
|
373
|
+
readonly profileHash: string;
|
|
374
|
+
}, options?: GenerateContractTypesOptions): string;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Declarative type renderer that produces a TypeScript type expression.
|
|
378
|
+
*
|
|
379
|
+
* Renderers can be:
|
|
380
|
+
* - A template string with `{{paramName}}` placeholders (e.g., `Vector<{{length}}>`)
|
|
381
|
+
* - A function that receives typeParams and context and returns a type expression
|
|
382
|
+
*
|
|
383
|
+
* **Prefer template strings** for most cases:
|
|
384
|
+
* - Templates are JSON-serializable (safe for pack-ref metadata)
|
|
385
|
+
* - Templates can be statically analyzed by tooling
|
|
386
|
+
*
|
|
387
|
+
* Function renderers are allowed but have tradeoffs:
|
|
388
|
+
* - Require runtime execution during emission (the emitter runs code)
|
|
389
|
+
* - Not JSON-serializable (can't be stored in contract.json)
|
|
390
|
+
* - The emitted artifacts (contract.json, contract.d.ts) still contain no
|
|
391
|
+
* executable code - this constraint applies to outputs, not the emission process
|
|
392
|
+
*/
|
|
393
|
+
type TypeRenderer = string | ((params: Record<string, unknown>, ctx: RenderTypeContext) => string);
|
|
394
|
+
/**
|
|
395
|
+
* Descriptor for a codec that supports type parameters.
|
|
396
|
+
*
|
|
397
|
+
* Parameterized codecs allow columns to carry additional metadata (typeParams)
|
|
398
|
+
* that affects the generated TypeScript types. For example:
|
|
399
|
+
* - A vector codec can use `{ length: 1536 }` to generate `Vector<1536>`
|
|
400
|
+
* - A decimal codec can use `{ precision: 10, scale: 2 }` to generate `Decimal<10, 2>`
|
|
401
|
+
*
|
|
402
|
+
* The SQL family emitter uses these descriptors to generate precise types
|
|
403
|
+
* without hard-coding knowledge of specific codec IDs.
|
|
404
|
+
*
|
|
405
|
+
* @example
|
|
406
|
+
* ```typescript
|
|
407
|
+
* const vectorCodecDescriptor: ParameterizedCodecDescriptor = {
|
|
408
|
+
* codecId: 'pg/vector@1',
|
|
409
|
+
* outputTypeRenderer: 'Vector<{{length}}>',
|
|
410
|
+
* // Optional: paramsSchema for runtime validation
|
|
411
|
+
* };
|
|
412
|
+
* ```
|
|
413
|
+
*/
|
|
414
|
+
interface ParameterizedCodecDescriptor {
|
|
415
|
+
/** The codec ID this descriptor applies to (e.g., 'pg/vector@1') */
|
|
416
|
+
readonly codecId: string;
|
|
417
|
+
/**
|
|
418
|
+
* Renderer for the output (read) type.
|
|
419
|
+
* Can be a template string or function.
|
|
420
|
+
*
|
|
421
|
+
* This is the primary renderer used by SQL emission to generate
|
|
422
|
+
* model field types in contract.d.ts.
|
|
423
|
+
*/
|
|
424
|
+
readonly outputTypeRenderer: TypeRenderer;
|
|
425
|
+
/**
|
|
426
|
+
* Optional renderer for the input (write) type.
|
|
427
|
+
* If not provided, outputTypeRenderer is used for both.
|
|
428
|
+
*
|
|
429
|
+
* **Reserved for future use**: Currently, SQL emission only uses
|
|
430
|
+
* outputTypeRenderer. This field is defined for future support of
|
|
431
|
+
* asymmetric codecs where input and output types differ (e.g., a
|
|
432
|
+
* codec that accepts `string | number` but always returns `number`).
|
|
433
|
+
*/
|
|
434
|
+
readonly inputTypeRenderer?: TypeRenderer;
|
|
435
|
+
/**
|
|
436
|
+
* Optional import spec for types used by this codec's renderers.
|
|
437
|
+
* The emitter will add this import to contract.d.ts.
|
|
438
|
+
*/
|
|
439
|
+
readonly typesImport?: TypesImportSpec;
|
|
440
|
+
}
|
|
441
|
+
//#endregion
|
|
442
|
+
export { type $, type Brand, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type ContractBase, type ContractMarkerRecord, type DocCollection, type DocIndex, type DocumentContract, type DocumentStorage, type DomainDiscriminator, type DomainEmbedRelation, type DomainField, type DomainModel, type DomainReferenceRelation, type DomainRelation, type DomainRelationOn, type DomainVariantEntry, type EmbedRelationKeys, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultValue, type ExecutionPlan, type ExecutionSection, type Expr, type FieldType, type GenerateContractTypesOptions, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type ParamDescriptor, type ParameterizedCodecDescriptor, type PlanMeta, type PlanRefs, type ProfileHashBase, type ReferenceRelationKeys, type RenderTypeContext, type ResultType, type Source, type StorageHashBase, type TaggedBigInt, type TaggedLiteralValue, type TaggedRaw, type TargetFamilyHook, type TypeRenderContext, type TypeRenderEntry, type TypeRenderer, type TypesImportSpec, type ValidationContext, bigintJsonReplacer, coreHash, isDocumentContract, isTaggedBigInt, isTaggedRaw, profileHash };
|
|
443
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/domain-types.ts","../src/types.ts"],"sourcesContent":[],"mappings":";;;;KAAY,WAAA;;;;AAAA,KAKA,gBAAA,GALW;EAKX,SAAA,WAAgB,EAAA,SAAA,MAAA,EAAA;EAKhB,SAAA,YAAA,EAAA,SAAuB,MAGpB,EAAA;AAGf,CAAA;AAKY,KAXA,uBAAA,GAWiB;EAEjB,SAAA,EAAA,EAAA,MAAA;EAIA,SAAA,WAAA,EAAkB,KAAA,GAAA,KAAA,GAAA,KAAA;EAIlB,SAAA,EAAA,EAlBG,gBAkBQ;CACW;AAAf,KAhBP,mBAAA,GAgBO;EACkB,SAAA,EAAA,EAAA,MAAA;EAAf,SAAA,WAAA,EAAA,KAAA,GAAA,KAAA;CACF;AACO,KAdf,cAAA,GAAiB,uBAcF,GAd4B,mBAc5B;AACU,KAbzB,mBAAA,GAayB;EAAf,SAAA,KAAA,EAAA,MAAA;CAAM;AAKvB,KAdO,kBAAA,GAce;EAC4C,SAAA,KAAA,EAAA,MAAA;CAAf;AAArC,KAXP,WAAA,GAWO;EAAM,SAAA,MAAA,EAVN,MAUM,CAAA,MAAA,EAVS,WAUT,CAAA;EAGb,SAAA,SAAA,EAZU,MAYW,CAAA,MAAA,EAZI,cAYJ,CAAA;EACb,SAAA,OAAA,EAZA,MAYA,CAAA,MAAA,EAAA,OAAA,CAAA;EACe,SAAA,aAAA,CAAA,EAZR,mBAYQ;EAErB,SAAA,QAAA,CAAA,EAbQ,MAaR,CAAA,MAAA,EAbuB,kBAavB,CAAA;EAAoB,SAAA,IAAA,CAAA,EAAA,MAAA;EAA0B,SAAA,KAAA,CAAA,EAAA,MAAA;CAAoB;KAR3E,sBAAA,GAQmG;EAAW,SAAA,MAAA,EA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,OAAA,EAAA;EAA4B,SAAA,GAAA,CAAA,EAtJzB,GAsJyB;EA+B9B,SAAA,IAAA,EApLK,QAoLO;EAwBP;;;;EA4BuB,SAAA,IAAA,CAAA,EAnOtB,GAmOsB;;;;;;;;;;KAxN5B,gBACV,UAAU,sCAAsC;;;;;;iBAKlC,kBAAA,iCAAmD;;;;;UAalD,oBAAA;;;;;sBAKK;;iBAEL;;;;;;UAQA,eAAA;;;;;;;;;UAUA,iBAAA;+BACc;8BACD,cAAc;kCACV,cAAc;0BACtB;;;;;iCAKO,YAAY;;;;;;UAO5B,iBAAA;;;;;;;UAQA,eAAA;;4BAEW,8BAA8B;;;;;UAMzC,4BAAA;;;;;;oCAMmB,YAAY;;;;;sCAKV,cAAc;;;;;uCAKb,cAAc;;;;;;UAOpC,gBAAA;;;;;;;oBAQG,iBAAiB;;;;;wBAMb;;;;;;;;;;4BAYhB,8BACc,cAAc,wCACV,cAAc;;;;eAM1B;;;;;;;;;;;;;;;;;;;KA+BF,YAAA,sBAEE,8BAA8B;;;;;;;;;;;;;;;;;;;;;UAsB3B,4BAAA;;;;;;;;;;+BAWc;;;;;;;;;;+BAWA;;;;;yBAMN"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/contract",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.137",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Data contract type definitions and JSON schema for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/operations": "0.3.0-dev.
|
|
9
|
-
"@prisma-next/utils": "0.3.0-dev.
|
|
8
|
+
"@prisma-next/operations": "0.3.0-dev.137",
|
|
9
|
+
"@prisma-next/utils": "0.3.0-dev.137"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"tsdown": "0.18.4",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
|
-
"./framework-components": "./dist/framework-components.mjs",
|
|
29
28
|
"./ir": "./dist/ir.mjs",
|
|
30
29
|
"./types": "./dist/types.mjs",
|
|
31
30
|
"./validate-domain": "./dist/validate-domain.mjs",
|