@prisma/config 6.12.0-dev.27 → 6.12.0-dev.28

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +48 -14
  2. package/dist/index.js +1580 -1227
  3. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -244,6 +244,13 @@ declare type LoadConfigFromFileInput = {
244
244
  configRoot?: string;
245
245
  };
246
246
 
247
+ declare type MigrationsConfigShape = {
248
+ /**
249
+ * The path to the directory where Prisma should store migration files, and look for them.
250
+ */
251
+ path?: string;
252
+ };
253
+
247
254
  declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-better-sqlite3", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-mssql", "@prisma/adapter-mariadb"];
248
255
 
249
256
  declare const PRISMA_CONFIG_INTERNAL_BRAND: unique symbol;
@@ -268,7 +275,19 @@ export declare type PrismaConfig = {
268
275
  /**
269
276
  * The configuration for Prisma Studio.
270
277
  */
271
- studio?: PrismaStudioConfigShape;
278
+ studio?: Simplify<PrismaStudioConfigShape>;
279
+ /**
280
+ * Configuration for Prisma migrations.
281
+ */
282
+ migrations?: Simplify<MigrationsConfigShape>;
283
+ /**
284
+ * Configuration for the database view entities.
285
+ */
286
+ views?: Simplify<ViewsConfigShape>;
287
+ /**
288
+ * Configuration for the `typedSql` preview feature.
289
+ */
290
+ typedSql?: Simplify<TypedSqlConfigShape>;
272
291
  };
273
292
 
274
293
  /**
@@ -280,19 +299,7 @@ export declare type PrismaConfigInternal = _PrismaConfigInternal & {
280
299
  __brand: typeof PRISMA_CONFIG_INTERNAL_BRAND;
281
300
  };
282
301
 
283
- declare type _PrismaConfigInternal = {
284
- /**
285
- * Whether features with an unstable API are enabled.
286
- */
287
- earlyAccess: true;
288
- /**
289
- * The path to the schema file or path to a folder that shall be recursively searched for .prisma files.
290
- */
291
- schema?: string;
292
- /**
293
- * The configuration for Prisma Studio.
294
- */
295
- studio?: PrismaStudioConfigShape;
302
+ declare type _PrismaConfigInternal = Omit<PrismaConfig, 'adapter'> & {
296
303
  /**
297
304
  * The Driver Adapter used for Prisma CLI.
298
305
  */
@@ -332,6 +339,19 @@ declare type Result<T> = {
332
339
  readonly error: Error_2;
333
340
  });
334
341
 
342
+ /**
343
+ * Simplifies the type signature of a type.
344
+ * Re-exported from `effect/Types`.
345
+ *
346
+ * @example
347
+ * ```ts
348
+ * type Res = Simplify<{ a: number } & { b: number }> // { a: number; b: number; }
349
+ * ```
350
+ */
351
+ declare type Simplify<A> = {
352
+ [K in keyof A]: A[K];
353
+ } extends infer B ? B : never;
354
+
335
355
  declare interface SqlDriverAdapter extends SqlQueryable {
336
356
  /**
337
357
  * Execute multiple SQL statements separated by semicolon.
@@ -413,4 +433,18 @@ declare type TransactionOptions = {
413
433
  usePhantomQuery: boolean;
414
434
  };
415
435
 
436
+ declare type TypedSqlConfigShape = {
437
+ /**
438
+ * The path to the directory where Prisma should look for the `typedSql` queries, where *.sql files will be loaded.
439
+ */
440
+ path?: string;
441
+ };
442
+
443
+ declare type ViewsConfigShape = {
444
+ /**
445
+ * The path to the directory where Prisma should look for the view definitions, where *.sql files will be loaded.
446
+ */
447
+ path?: string;
448
+ };
449
+
416
450
  export { }