@prisma/generator 6.6.0-dev.55 → 6.6.0-integration-push-xmzqvqxpztks.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/configuration.js +16 -0
- package/dist/configuration.mjs +0 -0
- package/dist/generator.d.ts +6 -0
- package/dist/generator.js +16 -0
- package/dist/generator.mjs +0 -0
- package/dist/index.d.ts +3 -443
- package/dist/index.js +10 -2
- package/dist/index.mjs +3 -0
- package/dist/typedSql.js +16 -0
- package/dist/typedSql.mjs +0 -0
- package/package.json +3 -3
- package/dist/index.d.mts +0 -443
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var configuration_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(configuration_exports);
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var generator_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(generator_exports);
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,443 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
schemaEngine?: {
|
|
5
|
-
[binaryTarget: string]: string;
|
|
6
|
-
};
|
|
7
|
-
queryEngine?: {
|
|
8
|
-
[binaryTarget: string]: string;
|
|
9
|
-
};
|
|
10
|
-
libqueryEngine?: {
|
|
11
|
-
[binaryTarget: string]: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export declare interface BinaryTargetsEnvValue {
|
|
16
|
-
fromEnvVar: string | null;
|
|
17
|
-
value: string;
|
|
18
|
-
native?: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'prisma+postgres' | 'sqlserver' | 'cockroachdb';
|
|
22
|
-
|
|
23
|
-
declare type Datamodel = ReadonlyDeep<{
|
|
24
|
-
models: Model[];
|
|
25
|
-
enums: DatamodelEnum[];
|
|
26
|
-
types: Model[];
|
|
27
|
-
indexes: Index[];
|
|
28
|
-
}>;
|
|
29
|
-
|
|
30
|
-
declare type DatamodelEnum = ReadonlyDeep<{
|
|
31
|
-
name: string;
|
|
32
|
-
values: EnumValue[];
|
|
33
|
-
dbName?: string | null;
|
|
34
|
-
documentation?: string;
|
|
35
|
-
}>;
|
|
36
|
-
|
|
37
|
-
declare function datamodelEnumToSchemaEnum(datamodelEnum: DatamodelEnum): SchemaEnum;
|
|
38
|
-
|
|
39
|
-
export declare interface DataSource {
|
|
40
|
-
name: string;
|
|
41
|
-
provider: ConnectorType;
|
|
42
|
-
activeProvider: ActiveConnectorType;
|
|
43
|
-
url: EnvValue;
|
|
44
|
-
directUrl?: EnvValue;
|
|
45
|
-
schemas: string[] | [];
|
|
46
|
-
sourceFilePath: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare type Deprecation = ReadonlyDeep<{
|
|
50
|
-
sinceVersion: string;
|
|
51
|
-
reason: string;
|
|
52
|
-
plannedRemovalVersion?: string;
|
|
53
|
-
}>;
|
|
54
|
-
|
|
55
|
-
declare namespace DMMF {
|
|
56
|
-
export {
|
|
57
|
-
datamodelEnumToSchemaEnum,
|
|
58
|
-
Datamodel,
|
|
59
|
-
DatamodelEnum,
|
|
60
|
-
Deprecation,
|
|
61
|
-
Document_2 as Document,
|
|
62
|
-
EnumValue,
|
|
63
|
-
Field,
|
|
64
|
-
FieldDefault,
|
|
65
|
-
FieldDefaultScalar,
|
|
66
|
-
FieldKind,
|
|
67
|
-
FieldLocation,
|
|
68
|
-
FieldNamespace,
|
|
69
|
-
FieldRefAllowType,
|
|
70
|
-
FieldRefType,
|
|
71
|
-
Index,
|
|
72
|
-
IndexField,
|
|
73
|
-
IndexType,
|
|
74
|
-
InputType,
|
|
75
|
-
InputTypeRef,
|
|
76
|
-
Mappings,
|
|
77
|
-
Model,
|
|
78
|
-
ModelAction,
|
|
79
|
-
ModelMapping,
|
|
80
|
-
OtherOperationMappings,
|
|
81
|
-
OutputType,
|
|
82
|
-
OutputTypeRef,
|
|
83
|
-
PrimaryKey,
|
|
84
|
-
Query,
|
|
85
|
-
QueryOutput,
|
|
86
|
-
Schema,
|
|
87
|
-
SchemaArg,
|
|
88
|
-
SchemaEnum,
|
|
89
|
-
SchemaField,
|
|
90
|
-
SortOrder,
|
|
91
|
-
TypeRef,
|
|
92
|
-
uniqueIndex
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare type Document_2 = ReadonlyDeep<{
|
|
97
|
-
datamodel: Datamodel;
|
|
98
|
-
schema: Schema;
|
|
99
|
-
mappings: Mappings;
|
|
100
|
-
}>;
|
|
101
|
-
|
|
102
|
-
export declare type EngineType = 'queryEngine' | 'libqueryEngine' | 'schemaEngine';
|
|
103
|
-
|
|
104
|
-
declare type EnumValue = ReadonlyDeep<{
|
|
105
|
-
name: string;
|
|
106
|
-
dbName: string | null;
|
|
107
|
-
}>;
|
|
108
|
-
|
|
109
|
-
export declare type EnvPaths = {
|
|
110
|
-
rootEnvPath: string | null;
|
|
111
|
-
schemaEnvPath: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export declare interface EnvValue {
|
|
115
|
-
fromEnvVar: null | string;
|
|
116
|
-
value: null | string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare type Field = ReadonlyDeep<{
|
|
120
|
-
kind: FieldKind;
|
|
121
|
-
name: string;
|
|
122
|
-
isRequired: boolean;
|
|
123
|
-
isList: boolean;
|
|
124
|
-
isUnique: boolean;
|
|
125
|
-
isId: boolean;
|
|
126
|
-
isReadOnly: boolean;
|
|
127
|
-
isGenerated?: boolean;
|
|
128
|
-
isUpdatedAt?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Describes the data type in the same the way it is defined in the Prisma schema:
|
|
131
|
-
* BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
|
|
132
|
-
*/
|
|
133
|
-
type: string;
|
|
134
|
-
/**
|
|
135
|
-
* Native database type, if specified.
|
|
136
|
-
* For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
|
|
137
|
-
* `@db.Text` is encoded as `['Text', []]`.
|
|
138
|
-
*/
|
|
139
|
-
nativeType?: [string, string[]] | null;
|
|
140
|
-
dbName?: string | null;
|
|
141
|
-
hasDefaultValue: boolean;
|
|
142
|
-
default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
|
|
143
|
-
relationFromFields?: string[];
|
|
144
|
-
relationToFields?: string[];
|
|
145
|
-
relationOnDelete?: string;
|
|
146
|
-
relationOnUpdate?: string;
|
|
147
|
-
relationName?: string;
|
|
148
|
-
documentation?: string;
|
|
149
|
-
}>;
|
|
150
|
-
|
|
151
|
-
declare type FieldDefault = ReadonlyDeep<{
|
|
152
|
-
name: string;
|
|
153
|
-
args: Array<string | number>;
|
|
154
|
-
}>;
|
|
155
|
-
|
|
156
|
-
declare type FieldDefaultScalar = string | boolean | number;
|
|
157
|
-
|
|
158
|
-
declare type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported';
|
|
159
|
-
|
|
160
|
-
declare type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes';
|
|
161
|
-
|
|
162
|
-
declare type FieldNamespace = 'model' | 'prisma';
|
|
163
|
-
|
|
164
|
-
declare type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>;
|
|
165
|
-
|
|
166
|
-
declare type FieldRefType = ReadonlyDeep<{
|
|
167
|
-
name: string;
|
|
168
|
-
allowTypes: FieldRefAllowType[];
|
|
169
|
-
fields: SchemaArg[];
|
|
170
|
-
}>;
|
|
171
|
-
|
|
172
|
-
export declare interface GeneratorConfig {
|
|
173
|
-
name: string;
|
|
174
|
-
output: EnvValue | null;
|
|
175
|
-
isCustomOutput?: boolean;
|
|
176
|
-
provider: EnvValue;
|
|
177
|
-
config: {
|
|
178
|
-
/** `output` is a reserved name and will only be available directly at `generator.output` */
|
|
179
|
-
output?: never;
|
|
180
|
-
/** `provider` is a reserved name and will only be available directly at `generator.provider` */
|
|
181
|
-
provider?: never;
|
|
182
|
-
/** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */
|
|
183
|
-
binaryTargets?: never;
|
|
184
|
-
/** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */
|
|
185
|
-
previewFeatures?: never;
|
|
186
|
-
} & {
|
|
187
|
-
[key: string]: string | string[] | undefined;
|
|
188
|
-
};
|
|
189
|
-
binaryTargets: BinaryTargetsEnvValue[];
|
|
190
|
-
previewFeatures: string[];
|
|
191
|
-
envPaths?: EnvPaths;
|
|
192
|
-
sourceFilePath: string;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export declare type GeneratorManifest = {
|
|
196
|
-
prettyName?: string;
|
|
197
|
-
defaultOutput?: string;
|
|
198
|
-
denylists?: {
|
|
199
|
-
models?: string[];
|
|
200
|
-
fields?: string[];
|
|
201
|
-
};
|
|
202
|
-
requiresGenerators?: string[];
|
|
203
|
-
requiresEngines?: EngineType[];
|
|
204
|
-
version?: string;
|
|
205
|
-
requiresEngineVersion?: string;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
/** The options passed to the generator implementations */
|
|
209
|
-
export declare type GeneratorOptions = {
|
|
210
|
-
generator: GeneratorConfig;
|
|
211
|
-
otherGenerators: GeneratorConfig[];
|
|
212
|
-
schemaPath: string;
|
|
213
|
-
dmmf: DMMF.Document;
|
|
214
|
-
datasources: DataSource[];
|
|
215
|
-
datamodel: string;
|
|
216
|
-
version: string;
|
|
217
|
-
binaryPaths?: BinaryPaths;
|
|
218
|
-
postinstall?: boolean;
|
|
219
|
-
noEngine?: boolean;
|
|
220
|
-
noHints?: boolean;
|
|
221
|
-
allowNoModels?: boolean;
|
|
222
|
-
envPaths?: EnvPaths;
|
|
223
|
-
typedSql?: SqlQueryOutput[];
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
declare type Index = ReadonlyDeep<{
|
|
227
|
-
model: string;
|
|
228
|
-
type: IndexType;
|
|
229
|
-
isDefinedOnField: boolean;
|
|
230
|
-
name?: string;
|
|
231
|
-
dbName?: string;
|
|
232
|
-
algorithm?: string;
|
|
233
|
-
clustered?: boolean;
|
|
234
|
-
fields: IndexField[];
|
|
235
|
-
}>;
|
|
236
|
-
|
|
237
|
-
declare type IndexField = ReadonlyDeep<{
|
|
238
|
-
name: string;
|
|
239
|
-
sortOrder?: SortOrder;
|
|
240
|
-
length?: number;
|
|
241
|
-
operatorClass?: string;
|
|
242
|
-
}>;
|
|
243
|
-
|
|
244
|
-
declare type IndexType = 'id' | 'normal' | 'unique' | 'fulltext';
|
|
245
|
-
|
|
246
|
-
declare type InputType = ReadonlyDeep<{
|
|
247
|
-
name: string;
|
|
248
|
-
constraints: {
|
|
249
|
-
maxNumFields: number | null;
|
|
250
|
-
minNumFields: number | null;
|
|
251
|
-
fields?: string[];
|
|
252
|
-
};
|
|
253
|
-
meta?: {
|
|
254
|
-
source?: string;
|
|
255
|
-
};
|
|
256
|
-
fields: SchemaArg[];
|
|
257
|
-
}>;
|
|
258
|
-
|
|
259
|
-
declare type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>;
|
|
260
|
-
|
|
261
|
-
declare type Mappings = ReadonlyDeep<{
|
|
262
|
-
modelOperations: ModelMapping[];
|
|
263
|
-
otherOperations: {
|
|
264
|
-
read: string[];
|
|
265
|
-
write: string[];
|
|
266
|
-
};
|
|
267
|
-
}>;
|
|
268
|
-
|
|
269
|
-
declare type Model = ReadonlyDeep<{
|
|
270
|
-
name: string;
|
|
271
|
-
dbName: string | null;
|
|
272
|
-
schema: string | null;
|
|
273
|
-
fields: Field[];
|
|
274
|
-
uniqueFields: string[][];
|
|
275
|
-
uniqueIndexes: uniqueIndex[];
|
|
276
|
-
documentation?: string;
|
|
277
|
-
primaryKey: PrimaryKey | null;
|
|
278
|
-
isGenerated?: boolean;
|
|
279
|
-
}>;
|
|
280
|
-
|
|
281
|
-
declare enum ModelAction {
|
|
282
|
-
findUnique = "findUnique",
|
|
283
|
-
findUniqueOrThrow = "findUniqueOrThrow",
|
|
284
|
-
findFirst = "findFirst",
|
|
285
|
-
findFirstOrThrow = "findFirstOrThrow",
|
|
286
|
-
findMany = "findMany",
|
|
287
|
-
create = "create",
|
|
288
|
-
createMany = "createMany",
|
|
289
|
-
createManyAndReturn = "createManyAndReturn",
|
|
290
|
-
update = "update",
|
|
291
|
-
updateMany = "updateMany",
|
|
292
|
-
updateManyAndReturn = "updateManyAndReturn",
|
|
293
|
-
upsert = "upsert",
|
|
294
|
-
delete = "delete",
|
|
295
|
-
deleteMany = "deleteMany",
|
|
296
|
-
groupBy = "groupBy",
|
|
297
|
-
count = "count",// TODO: count does not actually exist in DMMF
|
|
298
|
-
aggregate = "aggregate",
|
|
299
|
-
findRaw = "findRaw",
|
|
300
|
-
aggregateRaw = "aggregateRaw"
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
declare type ModelMapping = ReadonlyDeep<{
|
|
304
|
-
model: string;
|
|
305
|
-
plural: string;
|
|
306
|
-
findUnique?: string | null;
|
|
307
|
-
findUniqueOrThrow?: string | null;
|
|
308
|
-
findFirst?: string | null;
|
|
309
|
-
findFirstOrThrow?: string | null;
|
|
310
|
-
findMany?: string | null;
|
|
311
|
-
create?: string | null;
|
|
312
|
-
createMany?: string | null;
|
|
313
|
-
createManyAndReturn?: string | null;
|
|
314
|
-
update?: string | null;
|
|
315
|
-
updateMany?: string | null;
|
|
316
|
-
updateManyAndReturn?: string | null;
|
|
317
|
-
upsert?: string | null;
|
|
318
|
-
delete?: string | null;
|
|
319
|
-
deleteMany?: string | null;
|
|
320
|
-
aggregate?: string | null;
|
|
321
|
-
groupBy?: string | null;
|
|
322
|
-
count?: string | null;
|
|
323
|
-
findRaw?: string | null;
|
|
324
|
-
aggregateRaw?: string | null;
|
|
325
|
-
}>;
|
|
326
|
-
|
|
327
|
-
declare type OtherOperationMappings = ReadonlyDeep<{
|
|
328
|
-
read: string[];
|
|
329
|
-
write: string[];
|
|
330
|
-
}>;
|
|
331
|
-
|
|
332
|
-
declare type OutputType = ReadonlyDeep<{
|
|
333
|
-
name: string;
|
|
334
|
-
fields: SchemaField[];
|
|
335
|
-
}>;
|
|
336
|
-
|
|
337
|
-
declare type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>;
|
|
338
|
-
|
|
339
|
-
declare type PrimaryKey = ReadonlyDeep<{
|
|
340
|
-
name: string | null;
|
|
341
|
-
fields: string[];
|
|
342
|
-
}>;
|
|
343
|
-
|
|
344
|
-
declare type Query = ReadonlyDeep<{
|
|
345
|
-
name: string;
|
|
346
|
-
args: SchemaArg[];
|
|
347
|
-
output: QueryOutput;
|
|
348
|
-
}>;
|
|
349
|
-
|
|
350
|
-
export declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
|
|
351
|
-
|
|
352
|
-
export declare type QueryIntrospectionType = QueryIntrospectionBuiltinType | (string & {});
|
|
353
|
-
|
|
354
|
-
declare type QueryOutput = ReadonlyDeep<{
|
|
355
|
-
name: string;
|
|
356
|
-
isRequired: boolean;
|
|
357
|
-
isList: boolean;
|
|
358
|
-
}>;
|
|
359
|
-
|
|
360
|
-
declare type ReadonlyDeep<O> = {
|
|
361
|
-
+readonly [K in keyof O]: ReadonlyDeep<O[K]>;
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
declare type Schema = ReadonlyDeep<{
|
|
365
|
-
rootQueryType?: string;
|
|
366
|
-
rootMutationType?: string;
|
|
367
|
-
inputObjectTypes: {
|
|
368
|
-
model?: InputType[];
|
|
369
|
-
prisma: InputType[];
|
|
370
|
-
};
|
|
371
|
-
outputObjectTypes: {
|
|
372
|
-
model: OutputType[];
|
|
373
|
-
prisma: OutputType[];
|
|
374
|
-
};
|
|
375
|
-
enumTypes: {
|
|
376
|
-
model?: SchemaEnum[];
|
|
377
|
-
prisma: SchemaEnum[];
|
|
378
|
-
};
|
|
379
|
-
fieldRefTypes: {
|
|
380
|
-
prisma?: FieldRefType[];
|
|
381
|
-
};
|
|
382
|
-
}>;
|
|
383
|
-
|
|
384
|
-
declare type SchemaArg = ReadonlyDeep<{
|
|
385
|
-
name: string;
|
|
386
|
-
comment?: string;
|
|
387
|
-
isNullable: boolean;
|
|
388
|
-
isRequired: boolean;
|
|
389
|
-
inputTypes: InputTypeRef[];
|
|
390
|
-
deprecation?: Deprecation;
|
|
391
|
-
}>;
|
|
392
|
-
|
|
393
|
-
declare type SchemaEnum = ReadonlyDeep<{
|
|
394
|
-
name: string;
|
|
395
|
-
values: string[];
|
|
396
|
-
}>;
|
|
397
|
-
|
|
398
|
-
declare type SchemaField = ReadonlyDeep<{
|
|
399
|
-
name: string;
|
|
400
|
-
isNullable?: boolean;
|
|
401
|
-
outputType: OutputTypeRef;
|
|
402
|
-
args: SchemaArg[];
|
|
403
|
-
deprecation?: Deprecation;
|
|
404
|
-
documentation?: string;
|
|
405
|
-
}>;
|
|
406
|
-
|
|
407
|
-
declare type SortOrder = 'asc' | 'desc';
|
|
408
|
-
|
|
409
|
-
export declare type SqlQueryColumnOutput = {
|
|
410
|
-
name: string;
|
|
411
|
-
typ: QueryIntrospectionType;
|
|
412
|
-
nullable: boolean;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
export declare type SqlQueryOutput = {
|
|
416
|
-
name: string;
|
|
417
|
-
source: string;
|
|
418
|
-
documentation: string | null;
|
|
419
|
-
parameters: SqlQueryParameterOutput[];
|
|
420
|
-
resultColumns: SqlQueryColumnOutput[];
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
export declare type SqlQueryParameterOutput = {
|
|
424
|
-
name: string;
|
|
425
|
-
query: string;
|
|
426
|
-
typ: QueryIntrospectionType;
|
|
427
|
-
documentation: string | null;
|
|
428
|
-
nullable: boolean;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
declare type TypeRef<AllowedLocations extends FieldLocation> = {
|
|
432
|
-
isList: boolean;
|
|
433
|
-
type: string;
|
|
434
|
-
location: AllowedLocations;
|
|
435
|
-
namespace?: FieldNamespace;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
declare type uniqueIndex = ReadonlyDeep<{
|
|
439
|
-
name: string;
|
|
440
|
-
fields: string[];
|
|
441
|
-
}>;
|
|
442
|
-
|
|
443
|
-
export { }
|
|
1
|
+
export * from './configuration';
|
|
2
|
+
export * from './generator';
|
|
3
|
+
export * from './typedSql';
|
package/dist/index.js
CHANGED
|
@@ -11,8 +11,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
11
|
}
|
|
12
12
|
return to;
|
|
13
13
|
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/index.ts
|
|
17
16
|
var index_exports = {};
|
|
18
17
|
module.exports = __toCommonJS(index_exports);
|
|
18
|
+
__reExport(index_exports, require("./configuration"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./generator"), module.exports);
|
|
20
|
+
__reExport(index_exports, require("./typedSql"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("./configuration"),
|
|
24
|
+
...require("./generator"),
|
|
25
|
+
...require("./typedSql")
|
|
26
|
+
});
|
package/dist/index.mjs
CHANGED
package/dist/typedSql.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var typedSql_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(typedSql_exports);
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/generator",
|
|
3
|
-
"version": "6.6.0-
|
|
3
|
+
"version": "6.6.0-integration-push-xmzqvqxpztks.1",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"import": {
|
|
15
|
-
"types": "./dist/index.d.
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
16
|
"default": "./dist/index.mjs"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"vitest": "3.0.9",
|
|
28
|
-
"@prisma/dmmf": "6.6.0-
|
|
28
|
+
"@prisma/dmmf": "6.6.0-integration-push-xmzqvqxpztks.1"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist"
|
package/dist/index.d.mts
DELETED
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
export declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres' | 'prisma+postgres'>;
|
|
2
|
-
|
|
3
|
-
export declare type BinaryPaths = {
|
|
4
|
-
schemaEngine?: {
|
|
5
|
-
[binaryTarget: string]: string;
|
|
6
|
-
};
|
|
7
|
-
queryEngine?: {
|
|
8
|
-
[binaryTarget: string]: string;
|
|
9
|
-
};
|
|
10
|
-
libqueryEngine?: {
|
|
11
|
-
[binaryTarget: string]: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export declare interface BinaryTargetsEnvValue {
|
|
16
|
-
fromEnvVar: string | null;
|
|
17
|
-
value: string;
|
|
18
|
-
native?: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'prisma+postgres' | 'sqlserver' | 'cockroachdb';
|
|
22
|
-
|
|
23
|
-
declare type Datamodel = ReadonlyDeep<{
|
|
24
|
-
models: Model[];
|
|
25
|
-
enums: DatamodelEnum[];
|
|
26
|
-
types: Model[];
|
|
27
|
-
indexes: Index[];
|
|
28
|
-
}>;
|
|
29
|
-
|
|
30
|
-
declare type DatamodelEnum = ReadonlyDeep<{
|
|
31
|
-
name: string;
|
|
32
|
-
values: EnumValue[];
|
|
33
|
-
dbName?: string | null;
|
|
34
|
-
documentation?: string;
|
|
35
|
-
}>;
|
|
36
|
-
|
|
37
|
-
declare function datamodelEnumToSchemaEnum(datamodelEnum: DatamodelEnum): SchemaEnum;
|
|
38
|
-
|
|
39
|
-
export declare interface DataSource {
|
|
40
|
-
name: string;
|
|
41
|
-
provider: ConnectorType;
|
|
42
|
-
activeProvider: ActiveConnectorType;
|
|
43
|
-
url: EnvValue;
|
|
44
|
-
directUrl?: EnvValue;
|
|
45
|
-
schemas: string[] | [];
|
|
46
|
-
sourceFilePath: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare type Deprecation = ReadonlyDeep<{
|
|
50
|
-
sinceVersion: string;
|
|
51
|
-
reason: string;
|
|
52
|
-
plannedRemovalVersion?: string;
|
|
53
|
-
}>;
|
|
54
|
-
|
|
55
|
-
declare namespace DMMF {
|
|
56
|
-
export {
|
|
57
|
-
datamodelEnumToSchemaEnum,
|
|
58
|
-
Datamodel,
|
|
59
|
-
DatamodelEnum,
|
|
60
|
-
Deprecation,
|
|
61
|
-
Document_2 as Document,
|
|
62
|
-
EnumValue,
|
|
63
|
-
Field,
|
|
64
|
-
FieldDefault,
|
|
65
|
-
FieldDefaultScalar,
|
|
66
|
-
FieldKind,
|
|
67
|
-
FieldLocation,
|
|
68
|
-
FieldNamespace,
|
|
69
|
-
FieldRefAllowType,
|
|
70
|
-
FieldRefType,
|
|
71
|
-
Index,
|
|
72
|
-
IndexField,
|
|
73
|
-
IndexType,
|
|
74
|
-
InputType,
|
|
75
|
-
InputTypeRef,
|
|
76
|
-
Mappings,
|
|
77
|
-
Model,
|
|
78
|
-
ModelAction,
|
|
79
|
-
ModelMapping,
|
|
80
|
-
OtherOperationMappings,
|
|
81
|
-
OutputType,
|
|
82
|
-
OutputTypeRef,
|
|
83
|
-
PrimaryKey,
|
|
84
|
-
Query,
|
|
85
|
-
QueryOutput,
|
|
86
|
-
Schema,
|
|
87
|
-
SchemaArg,
|
|
88
|
-
SchemaEnum,
|
|
89
|
-
SchemaField,
|
|
90
|
-
SortOrder,
|
|
91
|
-
TypeRef,
|
|
92
|
-
uniqueIndex
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare type Document_2 = ReadonlyDeep<{
|
|
97
|
-
datamodel: Datamodel;
|
|
98
|
-
schema: Schema;
|
|
99
|
-
mappings: Mappings;
|
|
100
|
-
}>;
|
|
101
|
-
|
|
102
|
-
export declare type EngineType = 'queryEngine' | 'libqueryEngine' | 'schemaEngine';
|
|
103
|
-
|
|
104
|
-
declare type EnumValue = ReadonlyDeep<{
|
|
105
|
-
name: string;
|
|
106
|
-
dbName: string | null;
|
|
107
|
-
}>;
|
|
108
|
-
|
|
109
|
-
export declare type EnvPaths = {
|
|
110
|
-
rootEnvPath: string | null;
|
|
111
|
-
schemaEnvPath: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export declare interface EnvValue {
|
|
115
|
-
fromEnvVar: null | string;
|
|
116
|
-
value: null | string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare type Field = ReadonlyDeep<{
|
|
120
|
-
kind: FieldKind;
|
|
121
|
-
name: string;
|
|
122
|
-
isRequired: boolean;
|
|
123
|
-
isList: boolean;
|
|
124
|
-
isUnique: boolean;
|
|
125
|
-
isId: boolean;
|
|
126
|
-
isReadOnly: boolean;
|
|
127
|
-
isGenerated?: boolean;
|
|
128
|
-
isUpdatedAt?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Describes the data type in the same the way it is defined in the Prisma schema:
|
|
131
|
-
* BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
|
|
132
|
-
*/
|
|
133
|
-
type: string;
|
|
134
|
-
/**
|
|
135
|
-
* Native database type, if specified.
|
|
136
|
-
* For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
|
|
137
|
-
* `@db.Text` is encoded as `['Text', []]`.
|
|
138
|
-
*/
|
|
139
|
-
nativeType?: [string, string[]] | null;
|
|
140
|
-
dbName?: string | null;
|
|
141
|
-
hasDefaultValue: boolean;
|
|
142
|
-
default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
|
|
143
|
-
relationFromFields?: string[];
|
|
144
|
-
relationToFields?: string[];
|
|
145
|
-
relationOnDelete?: string;
|
|
146
|
-
relationOnUpdate?: string;
|
|
147
|
-
relationName?: string;
|
|
148
|
-
documentation?: string;
|
|
149
|
-
}>;
|
|
150
|
-
|
|
151
|
-
declare type FieldDefault = ReadonlyDeep<{
|
|
152
|
-
name: string;
|
|
153
|
-
args: Array<string | number>;
|
|
154
|
-
}>;
|
|
155
|
-
|
|
156
|
-
declare type FieldDefaultScalar = string | boolean | number;
|
|
157
|
-
|
|
158
|
-
declare type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported';
|
|
159
|
-
|
|
160
|
-
declare type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes';
|
|
161
|
-
|
|
162
|
-
declare type FieldNamespace = 'model' | 'prisma';
|
|
163
|
-
|
|
164
|
-
declare type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>;
|
|
165
|
-
|
|
166
|
-
declare type FieldRefType = ReadonlyDeep<{
|
|
167
|
-
name: string;
|
|
168
|
-
allowTypes: FieldRefAllowType[];
|
|
169
|
-
fields: SchemaArg[];
|
|
170
|
-
}>;
|
|
171
|
-
|
|
172
|
-
export declare interface GeneratorConfig {
|
|
173
|
-
name: string;
|
|
174
|
-
output: EnvValue | null;
|
|
175
|
-
isCustomOutput?: boolean;
|
|
176
|
-
provider: EnvValue;
|
|
177
|
-
config: {
|
|
178
|
-
/** `output` is a reserved name and will only be available directly at `generator.output` */
|
|
179
|
-
output?: never;
|
|
180
|
-
/** `provider` is a reserved name and will only be available directly at `generator.provider` */
|
|
181
|
-
provider?: never;
|
|
182
|
-
/** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */
|
|
183
|
-
binaryTargets?: never;
|
|
184
|
-
/** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */
|
|
185
|
-
previewFeatures?: never;
|
|
186
|
-
} & {
|
|
187
|
-
[key: string]: string | string[] | undefined;
|
|
188
|
-
};
|
|
189
|
-
binaryTargets: BinaryTargetsEnvValue[];
|
|
190
|
-
previewFeatures: string[];
|
|
191
|
-
envPaths?: EnvPaths;
|
|
192
|
-
sourceFilePath: string;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export declare type GeneratorManifest = {
|
|
196
|
-
prettyName?: string;
|
|
197
|
-
defaultOutput?: string;
|
|
198
|
-
denylists?: {
|
|
199
|
-
models?: string[];
|
|
200
|
-
fields?: string[];
|
|
201
|
-
};
|
|
202
|
-
requiresGenerators?: string[];
|
|
203
|
-
requiresEngines?: EngineType[];
|
|
204
|
-
version?: string;
|
|
205
|
-
requiresEngineVersion?: string;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
/** The options passed to the generator implementations */
|
|
209
|
-
export declare type GeneratorOptions = {
|
|
210
|
-
generator: GeneratorConfig;
|
|
211
|
-
otherGenerators: GeneratorConfig[];
|
|
212
|
-
schemaPath: string;
|
|
213
|
-
dmmf: DMMF.Document;
|
|
214
|
-
datasources: DataSource[];
|
|
215
|
-
datamodel: string;
|
|
216
|
-
version: string;
|
|
217
|
-
binaryPaths?: BinaryPaths;
|
|
218
|
-
postinstall?: boolean;
|
|
219
|
-
noEngine?: boolean;
|
|
220
|
-
noHints?: boolean;
|
|
221
|
-
allowNoModels?: boolean;
|
|
222
|
-
envPaths?: EnvPaths;
|
|
223
|
-
typedSql?: SqlQueryOutput[];
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
declare type Index = ReadonlyDeep<{
|
|
227
|
-
model: string;
|
|
228
|
-
type: IndexType;
|
|
229
|
-
isDefinedOnField: boolean;
|
|
230
|
-
name?: string;
|
|
231
|
-
dbName?: string;
|
|
232
|
-
algorithm?: string;
|
|
233
|
-
clustered?: boolean;
|
|
234
|
-
fields: IndexField[];
|
|
235
|
-
}>;
|
|
236
|
-
|
|
237
|
-
declare type IndexField = ReadonlyDeep<{
|
|
238
|
-
name: string;
|
|
239
|
-
sortOrder?: SortOrder;
|
|
240
|
-
length?: number;
|
|
241
|
-
operatorClass?: string;
|
|
242
|
-
}>;
|
|
243
|
-
|
|
244
|
-
declare type IndexType = 'id' | 'normal' | 'unique' | 'fulltext';
|
|
245
|
-
|
|
246
|
-
declare type InputType = ReadonlyDeep<{
|
|
247
|
-
name: string;
|
|
248
|
-
constraints: {
|
|
249
|
-
maxNumFields: number | null;
|
|
250
|
-
minNumFields: number | null;
|
|
251
|
-
fields?: string[];
|
|
252
|
-
};
|
|
253
|
-
meta?: {
|
|
254
|
-
source?: string;
|
|
255
|
-
};
|
|
256
|
-
fields: SchemaArg[];
|
|
257
|
-
}>;
|
|
258
|
-
|
|
259
|
-
declare type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>;
|
|
260
|
-
|
|
261
|
-
declare type Mappings = ReadonlyDeep<{
|
|
262
|
-
modelOperations: ModelMapping[];
|
|
263
|
-
otherOperations: {
|
|
264
|
-
read: string[];
|
|
265
|
-
write: string[];
|
|
266
|
-
};
|
|
267
|
-
}>;
|
|
268
|
-
|
|
269
|
-
declare type Model = ReadonlyDeep<{
|
|
270
|
-
name: string;
|
|
271
|
-
dbName: string | null;
|
|
272
|
-
schema: string | null;
|
|
273
|
-
fields: Field[];
|
|
274
|
-
uniqueFields: string[][];
|
|
275
|
-
uniqueIndexes: uniqueIndex[];
|
|
276
|
-
documentation?: string;
|
|
277
|
-
primaryKey: PrimaryKey | null;
|
|
278
|
-
isGenerated?: boolean;
|
|
279
|
-
}>;
|
|
280
|
-
|
|
281
|
-
declare enum ModelAction {
|
|
282
|
-
findUnique = "findUnique",
|
|
283
|
-
findUniqueOrThrow = "findUniqueOrThrow",
|
|
284
|
-
findFirst = "findFirst",
|
|
285
|
-
findFirstOrThrow = "findFirstOrThrow",
|
|
286
|
-
findMany = "findMany",
|
|
287
|
-
create = "create",
|
|
288
|
-
createMany = "createMany",
|
|
289
|
-
createManyAndReturn = "createManyAndReturn",
|
|
290
|
-
update = "update",
|
|
291
|
-
updateMany = "updateMany",
|
|
292
|
-
updateManyAndReturn = "updateManyAndReturn",
|
|
293
|
-
upsert = "upsert",
|
|
294
|
-
delete = "delete",
|
|
295
|
-
deleteMany = "deleteMany",
|
|
296
|
-
groupBy = "groupBy",
|
|
297
|
-
count = "count",// TODO: count does not actually exist in DMMF
|
|
298
|
-
aggregate = "aggregate",
|
|
299
|
-
findRaw = "findRaw",
|
|
300
|
-
aggregateRaw = "aggregateRaw"
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
declare type ModelMapping = ReadonlyDeep<{
|
|
304
|
-
model: string;
|
|
305
|
-
plural: string;
|
|
306
|
-
findUnique?: string | null;
|
|
307
|
-
findUniqueOrThrow?: string | null;
|
|
308
|
-
findFirst?: string | null;
|
|
309
|
-
findFirstOrThrow?: string | null;
|
|
310
|
-
findMany?: string | null;
|
|
311
|
-
create?: string | null;
|
|
312
|
-
createMany?: string | null;
|
|
313
|
-
createManyAndReturn?: string | null;
|
|
314
|
-
update?: string | null;
|
|
315
|
-
updateMany?: string | null;
|
|
316
|
-
updateManyAndReturn?: string | null;
|
|
317
|
-
upsert?: string | null;
|
|
318
|
-
delete?: string | null;
|
|
319
|
-
deleteMany?: string | null;
|
|
320
|
-
aggregate?: string | null;
|
|
321
|
-
groupBy?: string | null;
|
|
322
|
-
count?: string | null;
|
|
323
|
-
findRaw?: string | null;
|
|
324
|
-
aggregateRaw?: string | null;
|
|
325
|
-
}>;
|
|
326
|
-
|
|
327
|
-
declare type OtherOperationMappings = ReadonlyDeep<{
|
|
328
|
-
read: string[];
|
|
329
|
-
write: string[];
|
|
330
|
-
}>;
|
|
331
|
-
|
|
332
|
-
declare type OutputType = ReadonlyDeep<{
|
|
333
|
-
name: string;
|
|
334
|
-
fields: SchemaField[];
|
|
335
|
-
}>;
|
|
336
|
-
|
|
337
|
-
declare type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>;
|
|
338
|
-
|
|
339
|
-
declare type PrimaryKey = ReadonlyDeep<{
|
|
340
|
-
name: string | null;
|
|
341
|
-
fields: string[];
|
|
342
|
-
}>;
|
|
343
|
-
|
|
344
|
-
declare type Query = ReadonlyDeep<{
|
|
345
|
-
name: string;
|
|
346
|
-
args: SchemaArg[];
|
|
347
|
-
output: QueryOutput;
|
|
348
|
-
}>;
|
|
349
|
-
|
|
350
|
-
export declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
|
|
351
|
-
|
|
352
|
-
export declare type QueryIntrospectionType = QueryIntrospectionBuiltinType | (string & {});
|
|
353
|
-
|
|
354
|
-
declare type QueryOutput = ReadonlyDeep<{
|
|
355
|
-
name: string;
|
|
356
|
-
isRequired: boolean;
|
|
357
|
-
isList: boolean;
|
|
358
|
-
}>;
|
|
359
|
-
|
|
360
|
-
declare type ReadonlyDeep<O> = {
|
|
361
|
-
+readonly [K in keyof O]: ReadonlyDeep<O[K]>;
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
declare type Schema = ReadonlyDeep<{
|
|
365
|
-
rootQueryType?: string;
|
|
366
|
-
rootMutationType?: string;
|
|
367
|
-
inputObjectTypes: {
|
|
368
|
-
model?: InputType[];
|
|
369
|
-
prisma: InputType[];
|
|
370
|
-
};
|
|
371
|
-
outputObjectTypes: {
|
|
372
|
-
model: OutputType[];
|
|
373
|
-
prisma: OutputType[];
|
|
374
|
-
};
|
|
375
|
-
enumTypes: {
|
|
376
|
-
model?: SchemaEnum[];
|
|
377
|
-
prisma: SchemaEnum[];
|
|
378
|
-
};
|
|
379
|
-
fieldRefTypes: {
|
|
380
|
-
prisma?: FieldRefType[];
|
|
381
|
-
};
|
|
382
|
-
}>;
|
|
383
|
-
|
|
384
|
-
declare type SchemaArg = ReadonlyDeep<{
|
|
385
|
-
name: string;
|
|
386
|
-
comment?: string;
|
|
387
|
-
isNullable: boolean;
|
|
388
|
-
isRequired: boolean;
|
|
389
|
-
inputTypes: InputTypeRef[];
|
|
390
|
-
deprecation?: Deprecation;
|
|
391
|
-
}>;
|
|
392
|
-
|
|
393
|
-
declare type SchemaEnum = ReadonlyDeep<{
|
|
394
|
-
name: string;
|
|
395
|
-
values: string[];
|
|
396
|
-
}>;
|
|
397
|
-
|
|
398
|
-
declare type SchemaField = ReadonlyDeep<{
|
|
399
|
-
name: string;
|
|
400
|
-
isNullable?: boolean;
|
|
401
|
-
outputType: OutputTypeRef;
|
|
402
|
-
args: SchemaArg[];
|
|
403
|
-
deprecation?: Deprecation;
|
|
404
|
-
documentation?: string;
|
|
405
|
-
}>;
|
|
406
|
-
|
|
407
|
-
declare type SortOrder = 'asc' | 'desc';
|
|
408
|
-
|
|
409
|
-
export declare type SqlQueryColumnOutput = {
|
|
410
|
-
name: string;
|
|
411
|
-
typ: QueryIntrospectionType;
|
|
412
|
-
nullable: boolean;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
export declare type SqlQueryOutput = {
|
|
416
|
-
name: string;
|
|
417
|
-
source: string;
|
|
418
|
-
documentation: string | null;
|
|
419
|
-
parameters: SqlQueryParameterOutput[];
|
|
420
|
-
resultColumns: SqlQueryColumnOutput[];
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
export declare type SqlQueryParameterOutput = {
|
|
424
|
-
name: string;
|
|
425
|
-
query: string;
|
|
426
|
-
typ: QueryIntrospectionType;
|
|
427
|
-
documentation: string | null;
|
|
428
|
-
nullable: boolean;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
declare type TypeRef<AllowedLocations extends FieldLocation> = {
|
|
432
|
-
isList: boolean;
|
|
433
|
-
type: string;
|
|
434
|
-
location: AllowedLocations;
|
|
435
|
-
namespace?: FieldNamespace;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
declare type uniqueIndex = ReadonlyDeep<{
|
|
439
|
-
name: string;
|
|
440
|
-
fields: string[];
|
|
441
|
-
}>;
|
|
442
|
-
|
|
443
|
-
export { }
|