@prisma/client 7.4.0-integration-parameterization.5 → 7.4.0-integration-parameterization.7
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/generator-build/index.js +443 -251
- package/package.json +34 -34
- package/runtime/client.d.mts +12 -121
- package/runtime/client.d.ts +12 -121
- package/runtime/client.js +20 -20
- package/runtime/client.js.map +4 -4
- package/runtime/client.mjs +20 -20
- package/runtime/client.mjs.map +4 -4
- package/runtime/wasm-compiler-edge.js +18 -18
- package/runtime/wasm-compiler-edge.js.map +4 -4
- package/runtime/wasm-compiler-edge.mjs +18 -18
- package/runtime/wasm-compiler-edge.mjs.map +4 -4
- package/scripts/default-index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "7.4.0-integration-parameterization.
|
|
3
|
+
"version": "7.4.0-integration-parameterization.7",
|
|
4
4
|
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ORM",
|
|
@@ -218,41 +218,41 @@
|
|
|
218
218
|
"typescript": "5.4.5",
|
|
219
219
|
"undici": "7.4.0",
|
|
220
220
|
"zx": "8.4.1",
|
|
221
|
-
"@prisma/adapter-better-sqlite3": "7.4.0-integration-parameterization.
|
|
222
|
-
"@prisma/adapter-d1": "7.4.0-integration-parameterization.
|
|
223
|
-
"@prisma/adapter-libsql": "7.4.0-integration-parameterization.
|
|
224
|
-
"@prisma/adapter-
|
|
225
|
-
"@prisma/adapter-
|
|
226
|
-
"@prisma/adapter-
|
|
227
|
-
"@prisma/adapter-
|
|
228
|
-
"@prisma/client-common": "7.4.0-integration-parameterization.
|
|
229
|
-
"@prisma/client-engine-runtime": "7.4.0-integration-parameterization.
|
|
230
|
-
"@prisma/adapter-
|
|
231
|
-
"@prisma/client-generator-ts": "7.4.0-integration-parameterization.
|
|
232
|
-
"@prisma/client-generator-js": "7.4.0-integration-parameterization.
|
|
233
|
-
"@prisma/config": "7.4.0-integration-parameterization.
|
|
234
|
-
"@prisma/debug": "7.4.0-integration-parameterization.
|
|
235
|
-
"@prisma/dmmf": "7.4.0-integration-parameterization.
|
|
236
|
-
"@prisma/driver-adapter-utils": "7.4.0-integration-parameterization.
|
|
237
|
-
"@prisma/engines": "7.4.0-integration-parameterization.
|
|
238
|
-
"@prisma/fetch-engine": "7.4.0-integration-parameterization.
|
|
239
|
-
"@prisma/generator": "7.4.0-integration-parameterization.
|
|
240
|
-
"@prisma/
|
|
241
|
-
"@prisma/
|
|
242
|
-
"@prisma/instrumentation": "7.4.0-integration-parameterization.
|
|
243
|
-
"@prisma/
|
|
244
|
-
"@prisma/
|
|
245
|
-
"@prisma/
|
|
246
|
-
"@prisma/migrate": "7.4.0-integration-parameterization.
|
|
247
|
-
"@prisma/param-graph": "7.4.0-integration-parameterization.
|
|
248
|
-
"@prisma/
|
|
249
|
-
"@prisma/
|
|
250
|
-
"@prisma/sqlcommenter": "7.4.0-integration-parameterization.
|
|
251
|
-
"@prisma/
|
|
252
|
-
"@prisma/
|
|
221
|
+
"@prisma/adapter-better-sqlite3": "7.4.0-integration-parameterization.7",
|
|
222
|
+
"@prisma/adapter-d1": "7.4.0-integration-parameterization.7",
|
|
223
|
+
"@prisma/adapter-libsql": "7.4.0-integration-parameterization.7",
|
|
224
|
+
"@prisma/adapter-mssql": "7.4.0-integration-parameterization.7",
|
|
225
|
+
"@prisma/adapter-mariadb": "7.4.0-integration-parameterization.7",
|
|
226
|
+
"@prisma/adapter-neon": "7.4.0-integration-parameterization.7",
|
|
227
|
+
"@prisma/adapter-planetscale": "7.4.0-integration-parameterization.7",
|
|
228
|
+
"@prisma/client-common": "7.4.0-integration-parameterization.7",
|
|
229
|
+
"@prisma/client-engine-runtime": "7.4.0-integration-parameterization.7",
|
|
230
|
+
"@prisma/adapter-pg": "7.4.0-integration-parameterization.7",
|
|
231
|
+
"@prisma/client-generator-ts": "7.4.0-integration-parameterization.7",
|
|
232
|
+
"@prisma/client-generator-js": "7.4.0-integration-parameterization.7",
|
|
233
|
+
"@prisma/config": "7.4.0-integration-parameterization.7",
|
|
234
|
+
"@prisma/debug": "7.4.0-integration-parameterization.7",
|
|
235
|
+
"@prisma/dmmf": "7.4.0-integration-parameterization.7",
|
|
236
|
+
"@prisma/driver-adapter-utils": "7.4.0-integration-parameterization.7",
|
|
237
|
+
"@prisma/engines": "7.4.0-integration-parameterization.7",
|
|
238
|
+
"@prisma/fetch-engine": "7.4.0-integration-parameterization.7",
|
|
239
|
+
"@prisma/generator": "7.4.0-integration-parameterization.7",
|
|
240
|
+
"@prisma/generator-helper": "7.4.0-integration-parameterization.7",
|
|
241
|
+
"@prisma/get-platform": "7.4.0-integration-parameterization.7",
|
|
242
|
+
"@prisma/instrumentation-contract": "7.4.0-integration-parameterization.7",
|
|
243
|
+
"@prisma/instrumentation": "7.4.0-integration-parameterization.7",
|
|
244
|
+
"@prisma/internals": "7.4.0-integration-parameterization.7",
|
|
245
|
+
"@prisma/json-protocol": "7.4.0-integration-parameterization.7",
|
|
246
|
+
"@prisma/migrate": "7.4.0-integration-parameterization.7",
|
|
247
|
+
"@prisma/param-graph": "7.4.0-integration-parameterization.7",
|
|
248
|
+
"@prisma/param-graph-builder": "7.4.0-integration-parameterization.7",
|
|
249
|
+
"@prisma/query-plan-executor": "7.4.0-integration-parameterization.7",
|
|
250
|
+
"@prisma/sqlcommenter": "7.4.0-integration-parameterization.7",
|
|
251
|
+
"@prisma/sqlcommenter-trace-context": "7.4.0-integration-parameterization.7",
|
|
252
|
+
"@prisma/ts-builders": "7.4.0-integration-parameterization.7"
|
|
253
253
|
},
|
|
254
254
|
"dependencies": {
|
|
255
|
-
"@prisma/client-runtime-utils": "7.4.0-integration-parameterization.
|
|
255
|
+
"@prisma/client-runtime-utils": "7.4.0-integration-parameterization.7"
|
|
256
256
|
},
|
|
257
257
|
"peerDependencies": {
|
|
258
258
|
"prisma": "*",
|
package/runtime/client.d.mts
CHANGED
|
@@ -801,7 +801,7 @@ declare interface EngineConfig {
|
|
|
801
801
|
* Parameterization schema (ParamGraph) for schema-aware query parameterization.
|
|
802
802
|
* Enables precise parameterization based on DMMF metadata.
|
|
803
803
|
*/
|
|
804
|
-
parameterizationSchema:
|
|
804
|
+
parameterizationSchema: SerializedParamGraph;
|
|
805
805
|
/**
|
|
806
806
|
* Runtime data model for enum lookups during parameterization.
|
|
807
807
|
*/
|
|
@@ -1309,7 +1309,7 @@ export declare type GetPrismaClientConfig = {
|
|
|
1309
1309
|
* Parameterization schema for schema-aware query parameterization.
|
|
1310
1310
|
* Enables precise parameterization based on DMMF metadata.
|
|
1311
1311
|
*/
|
|
1312
|
-
parameterizationSchema:
|
|
1312
|
+
parameterizationSchema: SerializedParamGraph;
|
|
1313
1313
|
};
|
|
1314
1314
|
|
|
1315
1315
|
export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', GlobalOmitOptions = {}> = {
|
|
@@ -1412,35 +1412,6 @@ declare type InMemoryOps = {
|
|
|
1412
1412
|
nested: Record<string, InMemoryOps>;
|
|
1413
1413
|
};
|
|
1414
1414
|
|
|
1415
|
-
/**
|
|
1416
|
-
* Edge descriptor for input fields.
|
|
1417
|
-
* Encodes what kinds of values the field accepts and how to handle them.
|
|
1418
|
-
*/
|
|
1419
|
-
declare type InputEdge = {
|
|
1420
|
-
/**
|
|
1421
|
-
* Bit flags describing field capabilities.
|
|
1422
|
-
* See EdgeFlag enum below.
|
|
1423
|
-
*/
|
|
1424
|
-
k: number;
|
|
1425
|
-
/**
|
|
1426
|
-
* Child input node id (for object values or list of objects).
|
|
1427
|
-
* Present when the field accepts input object types.
|
|
1428
|
-
*/
|
|
1429
|
-
c?: NodeId;
|
|
1430
|
-
/**
|
|
1431
|
-
* Scalar type mask for allowed scalar categories.
|
|
1432
|
-
* Present when field accepts scalar values.
|
|
1433
|
-
* See ScalarMask enum below.
|
|
1434
|
-
*/
|
|
1435
|
-
m?: number;
|
|
1436
|
-
/**
|
|
1437
|
-
* Enum name id (index into `en` array).
|
|
1438
|
-
* Present when field accepts a user enum without a plain String scalar.
|
|
1439
|
-
* Used for runtime membership validation.
|
|
1440
|
-
*/
|
|
1441
|
-
e?: number;
|
|
1442
|
-
};
|
|
1443
|
-
|
|
1444
1415
|
/**
|
|
1445
1416
|
* Matches a JSON array.
|
|
1446
1417
|
* Unlike \`JsonArray\`, readonly arrays are assignable to this type.
|
|
@@ -1473,19 +1444,6 @@ export declare type InputJsonValue = string | number | boolean | InputJsonObject
|
|
|
1473
1444
|
toJSON(): unknown;
|
|
1474
1445
|
};
|
|
1475
1446
|
|
|
1476
|
-
/**
|
|
1477
|
-
* Input node: describes parameterizable fields in an input object.
|
|
1478
|
-
* Only fields that are parameterizable or lead to parameterizable
|
|
1479
|
-
* descendants are present.
|
|
1480
|
-
*/
|
|
1481
|
-
declare type InputNode = {
|
|
1482
|
-
/**
|
|
1483
|
-
* Map from string-table index to edge descriptor.
|
|
1484
|
-
* Omitted if the node has no fields (shouldn't happen in practice).
|
|
1485
|
-
*/
|
|
1486
|
-
f?: Record<number, InputEdge>;
|
|
1487
|
-
};
|
|
1488
|
-
|
|
1489
1447
|
declare type InputType = ReadonlyDeep_2<{
|
|
1490
1448
|
name: string;
|
|
1491
1449
|
constraints: {
|
|
@@ -1901,11 +1859,6 @@ export declare type Narrowable = string | number | bigint | boolean | [];
|
|
|
1901
1859
|
|
|
1902
1860
|
export declare type NeverToUnknown<T> = [T] extends [never] ? unknown : T;
|
|
1903
1861
|
|
|
1904
|
-
/**
|
|
1905
|
-
* Node ID is an index into `i` or `o` array.
|
|
1906
|
-
*/
|
|
1907
|
-
declare type NodeId = number;
|
|
1908
|
-
|
|
1909
1862
|
export { NullTypes }
|
|
1910
1863
|
|
|
1911
1864
|
export { ObjectEnumValue }
|
|
@@ -1975,27 +1928,6 @@ declare type OtherOperationMappings = ReadonlyDeep_2<{
|
|
|
1975
1928
|
write: string[];
|
|
1976
1929
|
}>;
|
|
1977
1930
|
|
|
1978
|
-
/**
|
|
1979
|
-
* Edge descriptor for output fields.
|
|
1980
|
-
*/
|
|
1981
|
-
declare type OutputEdge = {
|
|
1982
|
-
/** Args node for this field (if it accepts arguments) */
|
|
1983
|
-
a?: NodeId;
|
|
1984
|
-
/** Next output node for nested selection traversal */
|
|
1985
|
-
o?: NodeId;
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
/**
|
|
1989
|
-
* Output node: describes fields in a selection set that have args
|
|
1990
|
-
* or nested selections that may contain parameterizable args.
|
|
1991
|
-
*/
|
|
1992
|
-
declare type OutputNode = {
|
|
1993
|
-
/**
|
|
1994
|
-
* Map from string-table index to edge descriptor.
|
|
1995
|
-
*/
|
|
1996
|
-
f?: Record<number, OutputEdge>;
|
|
1997
|
-
};
|
|
1998
|
-
|
|
1999
1931
|
declare type OutputType = ReadonlyDeep_2<{
|
|
2000
1932
|
name: string;
|
|
2001
1933
|
fields: SchemaField[];
|
|
@@ -2015,47 +1947,6 @@ export declare type Param<out $Type, $Value extends string> = {
|
|
|
2015
1947
|
readonly name: $Value;
|
|
2016
1948
|
};
|
|
2017
1949
|
|
|
2018
|
-
/**
|
|
2019
|
-
* ParamGraph: Compact schema for runtime parameterization.
|
|
2020
|
-
*
|
|
2021
|
-
* This data structure is generated from DMMF at client generation time
|
|
2022
|
-
* and embedded in the generated client. It enables schema-aware
|
|
2023
|
-
* parameterization where values are only parameterized when both schema
|
|
2024
|
-
* rules and runtime value types agree.
|
|
2025
|
-
*/
|
|
2026
|
-
/**
|
|
2027
|
-
* Compact schema embedded in the generated client.
|
|
2028
|
-
*/
|
|
2029
|
-
declare type ParamGraph = {
|
|
2030
|
-
/**
|
|
2031
|
-
* String table to avoid repeating field names.
|
|
2032
|
-
* Field names are referenced by index throughout the graph.
|
|
2033
|
-
*/
|
|
2034
|
-
s: string[];
|
|
2035
|
-
/**
|
|
2036
|
-
* User enum names for runtime membership checks.
|
|
2037
|
-
* Values are looked up via `runtimeDataModel.enums[enumName].values`.
|
|
2038
|
-
*/
|
|
2039
|
-
e: string[];
|
|
2040
|
-
/**
|
|
2041
|
-
* Input nodes used for argument objects and input types.
|
|
2042
|
-
* Each node describes which fields are parameterizable or lead to
|
|
2043
|
-
* parameterizable descendants.
|
|
2044
|
-
*/
|
|
2045
|
-
i: InputNode[];
|
|
2046
|
-
/**
|
|
2047
|
-
* Output nodes used for selection traversal.
|
|
2048
|
-
* Each node describes which fields have arguments or lead to
|
|
2049
|
-
* nested selections with arguments.
|
|
2050
|
-
*/
|
|
2051
|
-
o: OutputNode[];
|
|
2052
|
-
/**
|
|
2053
|
-
* Root mapping: "Model.action" or "action" (for non-model ops).
|
|
2054
|
-
* Points to the args node (input) and root output node.
|
|
2055
|
-
*/
|
|
2056
|
-
r: Record<string, RootEntry>;
|
|
2057
|
-
};
|
|
2058
|
-
|
|
2059
1950
|
export declare type PatchFlat<O1, O2> = O1 & Omit_2<O2, keyof O1>;
|
|
2060
1951
|
|
|
2061
1952
|
export declare type Path<O, P, Default = never> = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path<O[K], R> : Default : O : never;
|
|
@@ -2661,16 +2552,6 @@ declare type ResultNode = {
|
|
|
2661
2552
|
|
|
2662
2553
|
export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
|
|
2663
2554
|
|
|
2664
|
-
/**
|
|
2665
|
-
* Entry point for a root operation.
|
|
2666
|
-
*/
|
|
2667
|
-
declare type RootEntry = {
|
|
2668
|
-
/** Args node id (into `i` array) */
|
|
2669
|
-
a?: NodeId;
|
|
2670
|
-
/** Output node id (into `o` array) */
|
|
2671
|
-
o?: NodeId;
|
|
2672
|
-
};
|
|
2673
|
-
|
|
2674
2555
|
export declare type RuntimeDataModel = {
|
|
2675
2556
|
readonly models: Record<string, RuntimeModel>;
|
|
2676
2557
|
readonly enums: Record<string, RuntimeEnum>;
|
|
@@ -2749,6 +2630,16 @@ export declare type SelectField<P extends SelectablePayloadFields<any, any>, K e
|
|
|
2749
2630
|
declare type Selection_2 = Record<string, boolean | Skip | JsArgs>;
|
|
2750
2631
|
export { Selection_2 as Selection }
|
|
2751
2632
|
|
|
2633
|
+
/**
|
|
2634
|
+
* Serialized format stored in the generated client.
|
|
2635
|
+
*/
|
|
2636
|
+
declare interface SerializedParamGraph {
|
|
2637
|
+
/** String table (field names, enum names, root keys) */
|
|
2638
|
+
strings: string[];
|
|
2639
|
+
/** Base64url-encoded binary blob for structural data */
|
|
2640
|
+
graph: string;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2752
2643
|
export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, wrapRawValues, }: SerializeParams): JsonQuery;
|
|
2753
2644
|
|
|
2754
2645
|
declare type SerializeParams = {
|
package/runtime/client.d.ts
CHANGED
|
@@ -801,7 +801,7 @@ declare interface EngineConfig {
|
|
|
801
801
|
* Parameterization schema (ParamGraph) for schema-aware query parameterization.
|
|
802
802
|
* Enables precise parameterization based on DMMF metadata.
|
|
803
803
|
*/
|
|
804
|
-
parameterizationSchema:
|
|
804
|
+
parameterizationSchema: SerializedParamGraph;
|
|
805
805
|
/**
|
|
806
806
|
* Runtime data model for enum lookups during parameterization.
|
|
807
807
|
*/
|
|
@@ -1309,7 +1309,7 @@ export declare type GetPrismaClientConfig = {
|
|
|
1309
1309
|
* Parameterization schema for schema-aware query parameterization.
|
|
1310
1310
|
* Enables precise parameterization based on DMMF metadata.
|
|
1311
1311
|
*/
|
|
1312
|
-
parameterizationSchema:
|
|
1312
|
+
parameterizationSchema: SerializedParamGraph;
|
|
1313
1313
|
};
|
|
1314
1314
|
|
|
1315
1315
|
export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', GlobalOmitOptions = {}> = {
|
|
@@ -1412,35 +1412,6 @@ declare type InMemoryOps = {
|
|
|
1412
1412
|
nested: Record<string, InMemoryOps>;
|
|
1413
1413
|
};
|
|
1414
1414
|
|
|
1415
|
-
/**
|
|
1416
|
-
* Edge descriptor for input fields.
|
|
1417
|
-
* Encodes what kinds of values the field accepts and how to handle them.
|
|
1418
|
-
*/
|
|
1419
|
-
declare type InputEdge = {
|
|
1420
|
-
/**
|
|
1421
|
-
* Bit flags describing field capabilities.
|
|
1422
|
-
* See EdgeFlag enum below.
|
|
1423
|
-
*/
|
|
1424
|
-
k: number;
|
|
1425
|
-
/**
|
|
1426
|
-
* Child input node id (for object values or list of objects).
|
|
1427
|
-
* Present when the field accepts input object types.
|
|
1428
|
-
*/
|
|
1429
|
-
c?: NodeId;
|
|
1430
|
-
/**
|
|
1431
|
-
* Scalar type mask for allowed scalar categories.
|
|
1432
|
-
* Present when field accepts scalar values.
|
|
1433
|
-
* See ScalarMask enum below.
|
|
1434
|
-
*/
|
|
1435
|
-
m?: number;
|
|
1436
|
-
/**
|
|
1437
|
-
* Enum name id (index into `en` array).
|
|
1438
|
-
* Present when field accepts a user enum without a plain String scalar.
|
|
1439
|
-
* Used for runtime membership validation.
|
|
1440
|
-
*/
|
|
1441
|
-
e?: number;
|
|
1442
|
-
};
|
|
1443
|
-
|
|
1444
1415
|
/**
|
|
1445
1416
|
* Matches a JSON array.
|
|
1446
1417
|
* Unlike \`JsonArray\`, readonly arrays are assignable to this type.
|
|
@@ -1473,19 +1444,6 @@ export declare type InputJsonValue = string | number | boolean | InputJsonObject
|
|
|
1473
1444
|
toJSON(): unknown;
|
|
1474
1445
|
};
|
|
1475
1446
|
|
|
1476
|
-
/**
|
|
1477
|
-
* Input node: describes parameterizable fields in an input object.
|
|
1478
|
-
* Only fields that are parameterizable or lead to parameterizable
|
|
1479
|
-
* descendants are present.
|
|
1480
|
-
*/
|
|
1481
|
-
declare type InputNode = {
|
|
1482
|
-
/**
|
|
1483
|
-
* Map from string-table index to edge descriptor.
|
|
1484
|
-
* Omitted if the node has no fields (shouldn't happen in practice).
|
|
1485
|
-
*/
|
|
1486
|
-
f?: Record<number, InputEdge>;
|
|
1487
|
-
};
|
|
1488
|
-
|
|
1489
1447
|
declare type InputType = ReadonlyDeep_2<{
|
|
1490
1448
|
name: string;
|
|
1491
1449
|
constraints: {
|
|
@@ -1901,11 +1859,6 @@ export declare type Narrowable = string | number | bigint | boolean | [];
|
|
|
1901
1859
|
|
|
1902
1860
|
export declare type NeverToUnknown<T> = [T] extends [never] ? unknown : T;
|
|
1903
1861
|
|
|
1904
|
-
/**
|
|
1905
|
-
* Node ID is an index into `i` or `o` array.
|
|
1906
|
-
*/
|
|
1907
|
-
declare type NodeId = number;
|
|
1908
|
-
|
|
1909
1862
|
export { NullTypes }
|
|
1910
1863
|
|
|
1911
1864
|
export { ObjectEnumValue }
|
|
@@ -1975,27 +1928,6 @@ declare type OtherOperationMappings = ReadonlyDeep_2<{
|
|
|
1975
1928
|
write: string[];
|
|
1976
1929
|
}>;
|
|
1977
1930
|
|
|
1978
|
-
/**
|
|
1979
|
-
* Edge descriptor for output fields.
|
|
1980
|
-
*/
|
|
1981
|
-
declare type OutputEdge = {
|
|
1982
|
-
/** Args node for this field (if it accepts arguments) */
|
|
1983
|
-
a?: NodeId;
|
|
1984
|
-
/** Next output node for nested selection traversal */
|
|
1985
|
-
o?: NodeId;
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
/**
|
|
1989
|
-
* Output node: describes fields in a selection set that have args
|
|
1990
|
-
* or nested selections that may contain parameterizable args.
|
|
1991
|
-
*/
|
|
1992
|
-
declare type OutputNode = {
|
|
1993
|
-
/**
|
|
1994
|
-
* Map from string-table index to edge descriptor.
|
|
1995
|
-
*/
|
|
1996
|
-
f?: Record<number, OutputEdge>;
|
|
1997
|
-
};
|
|
1998
|
-
|
|
1999
1931
|
declare type OutputType = ReadonlyDeep_2<{
|
|
2000
1932
|
name: string;
|
|
2001
1933
|
fields: SchemaField[];
|
|
@@ -2015,47 +1947,6 @@ export declare type Param<out $Type, $Value extends string> = {
|
|
|
2015
1947
|
readonly name: $Value;
|
|
2016
1948
|
};
|
|
2017
1949
|
|
|
2018
|
-
/**
|
|
2019
|
-
* ParamGraph: Compact schema for runtime parameterization.
|
|
2020
|
-
*
|
|
2021
|
-
* This data structure is generated from DMMF at client generation time
|
|
2022
|
-
* and embedded in the generated client. It enables schema-aware
|
|
2023
|
-
* parameterization where values are only parameterized when both schema
|
|
2024
|
-
* rules and runtime value types agree.
|
|
2025
|
-
*/
|
|
2026
|
-
/**
|
|
2027
|
-
* Compact schema embedded in the generated client.
|
|
2028
|
-
*/
|
|
2029
|
-
declare type ParamGraph = {
|
|
2030
|
-
/**
|
|
2031
|
-
* String table to avoid repeating field names.
|
|
2032
|
-
* Field names are referenced by index throughout the graph.
|
|
2033
|
-
*/
|
|
2034
|
-
s: string[];
|
|
2035
|
-
/**
|
|
2036
|
-
* User enum names for runtime membership checks.
|
|
2037
|
-
* Values are looked up via `runtimeDataModel.enums[enumName].values`.
|
|
2038
|
-
*/
|
|
2039
|
-
e: string[];
|
|
2040
|
-
/**
|
|
2041
|
-
* Input nodes used for argument objects and input types.
|
|
2042
|
-
* Each node describes which fields are parameterizable or lead to
|
|
2043
|
-
* parameterizable descendants.
|
|
2044
|
-
*/
|
|
2045
|
-
i: InputNode[];
|
|
2046
|
-
/**
|
|
2047
|
-
* Output nodes used for selection traversal.
|
|
2048
|
-
* Each node describes which fields have arguments or lead to
|
|
2049
|
-
* nested selections with arguments.
|
|
2050
|
-
*/
|
|
2051
|
-
o: OutputNode[];
|
|
2052
|
-
/**
|
|
2053
|
-
* Root mapping: "Model.action" or "action" (for non-model ops).
|
|
2054
|
-
* Points to the args node (input) and root output node.
|
|
2055
|
-
*/
|
|
2056
|
-
r: Record<string, RootEntry>;
|
|
2057
|
-
};
|
|
2058
|
-
|
|
2059
1950
|
export declare type PatchFlat<O1, O2> = O1 & Omit_2<O2, keyof O1>;
|
|
2060
1951
|
|
|
2061
1952
|
export declare type Path<O, P, Default = never> = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path<O[K], R> : Default : O : never;
|
|
@@ -2661,16 +2552,6 @@ declare type ResultNode = {
|
|
|
2661
2552
|
|
|
2662
2553
|
export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
|
|
2663
2554
|
|
|
2664
|
-
/**
|
|
2665
|
-
* Entry point for a root operation.
|
|
2666
|
-
*/
|
|
2667
|
-
declare type RootEntry = {
|
|
2668
|
-
/** Args node id (into `i` array) */
|
|
2669
|
-
a?: NodeId;
|
|
2670
|
-
/** Output node id (into `o` array) */
|
|
2671
|
-
o?: NodeId;
|
|
2672
|
-
};
|
|
2673
|
-
|
|
2674
2555
|
export declare type RuntimeDataModel = {
|
|
2675
2556
|
readonly models: Record<string, RuntimeModel>;
|
|
2676
2557
|
readonly enums: Record<string, RuntimeEnum>;
|
|
@@ -2749,6 +2630,16 @@ export declare type SelectField<P extends SelectablePayloadFields<any, any>, K e
|
|
|
2749
2630
|
declare type Selection_2 = Record<string, boolean | Skip | JsArgs>;
|
|
2750
2631
|
export { Selection_2 as Selection }
|
|
2751
2632
|
|
|
2633
|
+
/**
|
|
2634
|
+
* Serialized format stored in the generated client.
|
|
2635
|
+
*/
|
|
2636
|
+
declare interface SerializedParamGraph {
|
|
2637
|
+
/** String table (field names, enum names, root keys) */
|
|
2638
|
+
strings: string[];
|
|
2639
|
+
/** Base64url-encoded binary blob for structural data */
|
|
2640
|
+
graph: string;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2752
2643
|
export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, wrapRawValues, }: SerializeParams): JsonQuery;
|
|
2753
2644
|
|
|
2754
2645
|
declare type SerializeParams = {
|