@prisma/studio-core 0.0.0-dev.202511141157 → 0.0.0-dev.202511152033

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 (39) hide show
  1. package/dist/chunk-4ML6JJCH.js +10 -0
  2. package/dist/chunk-MEAZKIQ2.js +10 -0
  3. package/dist/data/accelerate/index.d.cts +1 -1
  4. package/dist/data/accelerate/index.d.ts +1 -1
  5. package/dist/data/bff/index.d.cts +1 -1
  6. package/dist/data/bff/index.d.ts +1 -1
  7. package/dist/data/index.d.cts +1 -1
  8. package/dist/data/index.d.ts +1 -1
  9. package/dist/data/node-sqlite/index.cjs +2 -2
  10. package/dist/data/node-sqlite/index.d.cts +1 -1
  11. package/dist/data/node-sqlite/index.d.ts +1 -1
  12. package/dist/data/node-sqlite/index.js +1 -1
  13. package/dist/data/pglite/index.cjs +2 -2
  14. package/dist/data/pglite/index.d.cts +1 -1
  15. package/dist/data/pglite/index.d.ts +1 -1
  16. package/dist/data/pglite/index.js +1 -1
  17. package/dist/data/postgres-core/index.cjs +2 -2
  18. package/dist/data/postgres-core/index.d.cts +10 -7
  19. package/dist/data/postgres-core/index.d.ts +10 -7
  20. package/dist/data/postgres-core/index.js +1 -1
  21. package/dist/data/postgresjs/index.cjs +2 -2
  22. package/dist/data/postgresjs/index.d.cts +1 -1
  23. package/dist/data/postgresjs/index.d.ts +1 -1
  24. package/dist/data/postgresjs/index.js +1 -1
  25. package/dist/data/ppg/index.d.cts +1 -1
  26. package/dist/data/ppg/index.d.ts +1 -1
  27. package/dist/data/sqlite-core/index.cjs +2 -2
  28. package/dist/data/sqlite-core/index.d.cts +13 -6
  29. package/dist/data/sqlite-core/index.d.ts +13 -6
  30. package/dist/data/sqlite-core/index.js +1 -1
  31. package/dist/{index-CVwmrqt5.d.cts → index-QHiosBWl.d.cts} +1 -1
  32. package/dist/{index-CVwmrqt5.d.ts → index-QHiosBWl.d.ts} +1 -1
  33. package/dist/metafile-cjs.json +1 -1
  34. package/dist/metafile-esm.json +1 -1
  35. package/dist/ui/index.d.cts +1 -1
  36. package/dist/ui/index.d.ts +1 -1
  37. package/package.json +21 -2
  38. package/dist/chunk-HK4HH34Z.js +0 -10
  39. package/dist/chunk-T6RNFB7W.js +0 -10
@@ -1,4 +1,4 @@
1
- import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements } from '../../index-CVwmrqt5.cjs';
1
+ import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements, f as AdapterDeleteDetails } from '../../index-QHiosBWl.cjs';
2
2
  import * as kysely from 'kysely';
3
3
 
4
4
  type SQLIteAdapterRequirements = AdapterRequirements;
@@ -19,11 +19,11 @@ declare function mockIntrospect(): {
19
19
  };
20
20
 
21
21
  /**
22
- * Returns a query that selects all columns from a table with an unbound row count as `__studio_count__`.
22
+ * Returns a query that selects all columns from a table with an unbound row count as `__ps_count__`.
23
23
  */
24
24
  declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
25
25
  [x: string]: unknown;
26
- __studio_count__: `${bigint}`;
26
+ __ps_count__: `${bigint}`;
27
27
  }>;
28
28
  /**
29
29
  * For testing purposes.
@@ -33,7 +33,7 @@ declare function mockSelectQuery(): [{
33
33
  readonly deleted_at: null;
34
34
  readonly id: 1;
35
35
  readonly name: "John Doe";
36
- readonly __studio_count__: "2";
36
+ readonly __ps_count__: "2";
37
37
  readonly role: "admin";
38
38
  readonly name_role: "Jonn Doe - admin";
39
39
  }, {
@@ -41,10 +41,17 @@ declare function mockSelectQuery(): [{
41
41
  readonly deleted_at: null;
42
42
  readonly id: 2;
43
43
  readonly name: "Jane Doe";
44
- readonly __studio_count__: "2";
44
+ readonly __ps_count__: "2";
45
45
  readonly role: "poweruser";
46
46
  readonly name_role: "Jane Doe - poweruser";
47
47
  }];
48
+ /**
49
+ * Returns a query that deletes a given set of rows.
50
+ */
51
+ declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
52
+ [x: string]: unknown;
53
+ __ps_deleted_at__: `${bigint}`;
54
+ }>;
48
55
 
49
56
  declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
50
57
  name: string;
@@ -164,4 +171,4 @@ declare function mockTablesQuery(): [{
164
171
  }];
165
172
  }];
166
173
 
167
- export { type SQLIteAdapterRequirements, createSQLiteAdapter, getSelectQuery, getTablesQuery, mockIntrospect, mockSelectQuery, mockTablesQuery };
174
+ export { type SQLIteAdapterRequirements, createSQLiteAdapter, getDeleteQuery, getSelectQuery, getTablesQuery, mockIntrospect, mockSelectQuery, mockTablesQuery };
@@ -1,4 +1,4 @@
1
- import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements } from '../../index-CVwmrqt5.js';
1
+ import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements, f as AdapterDeleteDetails } from '../../index-QHiosBWl.js';
2
2
  import * as kysely from 'kysely';
3
3
 
4
4
  type SQLIteAdapterRequirements = AdapterRequirements;
@@ -19,11 +19,11 @@ declare function mockIntrospect(): {
19
19
  };
20
20
 
21
21
  /**
22
- * Returns a query that selects all columns from a table with an unbound row count as `__studio_count__`.
22
+ * Returns a query that selects all columns from a table with an unbound row count as `__ps_count__`.
23
23
  */
24
24
  declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
25
25
  [x: string]: unknown;
26
- __studio_count__: `${bigint}`;
26
+ __ps_count__: `${bigint}`;
27
27
  }>;
28
28
  /**
29
29
  * For testing purposes.
@@ -33,7 +33,7 @@ declare function mockSelectQuery(): [{
33
33
  readonly deleted_at: null;
34
34
  readonly id: 1;
35
35
  readonly name: "John Doe";
36
- readonly __studio_count__: "2";
36
+ readonly __ps_count__: "2";
37
37
  readonly role: "admin";
38
38
  readonly name_role: "Jonn Doe - admin";
39
39
  }, {
@@ -41,10 +41,17 @@ declare function mockSelectQuery(): [{
41
41
  readonly deleted_at: null;
42
42
  readonly id: 2;
43
43
  readonly name: "Jane Doe";
44
- readonly __studio_count__: "2";
44
+ readonly __ps_count__: "2";
45
45
  readonly role: "poweruser";
46
46
  readonly name_role: "Jane Doe - poweruser";
47
47
  }];
48
+ /**
49
+ * Returns a query that deletes a given set of rows.
50
+ */
51
+ declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
52
+ [x: string]: unknown;
53
+ __ps_deleted_at__: `${bigint}`;
54
+ }>;
48
55
 
49
56
  declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
50
57
  name: string;
@@ -164,4 +171,4 @@ declare function mockTablesQuery(): [{
164
171
  }];
165
172
  }];
166
173
 
167
- export { type SQLIteAdapterRequirements, createSQLiteAdapter, getSelectQuery, getTablesQuery, mockIntrospect, mockSelectQuery, mockTablesQuery };
174
+ export { type SQLIteAdapterRequirements, createSQLiteAdapter, getDeleteQuery, getSelectQuery, getTablesQuery, mockIntrospect, mockSelectQuery, mockTablesQuery };
@@ -6,5 +6,5 @@ function require(mod) {
6
6
  if (mod === 'react-dom') return ___react_dom___;
7
7
  throw new Error(`Unknown module ${mod}`);
8
8
  }
9
- import{a,b,c,d,e,f}from"../../chunk-HK4HH34Z.js";import"../../chunk-OTK4ZF2W.js";import"../../chunk-WHLVNWIR.js";import"../../chunk-GDQBQ7MK.js";export{e as createSQLiteAdapter,a as getSelectQuery,c as getTablesQuery,f as mockIntrospect,b as mockSelectQuery,d as mockTablesQuery};
9
+ import{a,b,c,d,e,f,g}from"../../chunk-MEAZKIQ2.js";import"../../chunk-OTK4ZF2W.js";import"../../chunk-WHLVNWIR.js";import"../../chunk-GDQBQ7MK.js";export{f as createSQLiteAdapter,c as getDeleteQuery,a as getSelectQuery,d as getTablesQuery,g as mockIntrospect,b as mockSelectQuery,e as mockTablesQuery};
10
10
  //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
@@ -295,4 +295,4 @@ declare class AbortError extends Error {
295
295
  }
296
296
  declare function getAbortResult(): [AbortError];
297
297
 
298
- export { type Adapter as A, type BuilderRequirements as B, type Column as C, type DataType as D, type Executor as E, type FilterOperator as F, createAdapterError as G, AbortError as H, getAbortResult as I, type BigIntString as J, type NumericString as N, type Query as Q, type Schema as S, type Table as T, type ExecuteOptions as a, type Either as b, type QueryResult as c, type AdapterRequirements as d, type AdapterQueryDetails as e, AdapterError as f, type AdapterInsertDetails as g, type AdapterUpdateDetails as h, type AdapterDeleteDetails as i, applyInferredRowFilters as j, type AdapterBaseOptions as k, type AdapterIntrospectOptions as l, type AdapterQueryOptions as m, type AdapterInsertOptions as n, type AdapterUpdateOptions as o, type AdapterDeleteOptions as p, type AdapterIntrospectResult as q, type DataTypeGroup as r, type ColumnFilter as s, type FilterGroup as t, type SortOrderItem as u, type SortDirection as v, type AdapterQueryResult as w, type AdapterInsertResult as x, type AdapterUpdateResult as y, type AdapterDeleteResult as z };
298
+ export { type Adapter as A, type BuilderRequirements as B, type Column as C, type DataType as D, type Executor as E, type FilterOperator as F, createAdapterError as G, AbortError as H, getAbortResult as I, type BigIntString as J, type NumericString as N, type Query as Q, type Schema as S, type Table as T, type ExecuteOptions as a, type Either as b, type QueryResult as c, type AdapterRequirements as d, type AdapterQueryDetails as e, type AdapterDeleteDetails as f, AdapterError as g, type AdapterInsertDetails as h, type AdapterUpdateDetails as i, applyInferredRowFilters as j, type AdapterBaseOptions as k, type AdapterIntrospectOptions as l, type AdapterQueryOptions as m, type AdapterInsertOptions as n, type AdapterUpdateOptions as o, type AdapterDeleteOptions as p, type AdapterIntrospectResult as q, type DataTypeGroup as r, type ColumnFilter as s, type FilterGroup as t, type SortOrderItem as u, type SortDirection as v, type AdapterQueryResult as w, type AdapterInsertResult as x, type AdapterUpdateResult as y, type AdapterDeleteResult as z };
@@ -295,4 +295,4 @@ declare class AbortError extends Error {
295
295
  }
296
296
  declare function getAbortResult(): [AbortError];
297
297
 
298
- export { type Adapter as A, type BuilderRequirements as B, type Column as C, type DataType as D, type Executor as E, type FilterOperator as F, createAdapterError as G, AbortError as H, getAbortResult as I, type BigIntString as J, type NumericString as N, type Query as Q, type Schema as S, type Table as T, type ExecuteOptions as a, type Either as b, type QueryResult as c, type AdapterRequirements as d, type AdapterQueryDetails as e, AdapterError as f, type AdapterInsertDetails as g, type AdapterUpdateDetails as h, type AdapterDeleteDetails as i, applyInferredRowFilters as j, type AdapterBaseOptions as k, type AdapterIntrospectOptions as l, type AdapterQueryOptions as m, type AdapterInsertOptions as n, type AdapterUpdateOptions as o, type AdapterDeleteOptions as p, type AdapterIntrospectResult as q, type DataTypeGroup as r, type ColumnFilter as s, type FilterGroup as t, type SortOrderItem as u, type SortDirection as v, type AdapterQueryResult as w, type AdapterInsertResult as x, type AdapterUpdateResult as y, type AdapterDeleteResult as z };
298
+ export { type Adapter as A, type BuilderRequirements as B, type Column as C, type DataType as D, type Executor as E, type FilterOperator as F, createAdapterError as G, AbortError as H, getAbortResult as I, type BigIntString as J, type NumericString as N, type Query as Q, type Schema as S, type Table as T, type ExecuteOptions as a, type Either as b, type QueryResult as c, type AdapterRequirements as d, type AdapterQueryDetails as e, type AdapterDeleteDetails as f, AdapterError as g, type AdapterInsertDetails as h, type AdapterUpdateDetails as i, applyInferredRowFilters as j, type AdapterBaseOptions as k, type AdapterIntrospectOptions as l, type AdapterQueryOptions as m, type AdapterInsertOptions as n, type AdapterUpdateOptions as o, type AdapterDeleteOptions as p, type AdapterIntrospectResult as q, type DataTypeGroup as r, type ColumnFilter as s, type FilterGroup as t, type SortOrderItem as u, type SortDirection as v, type AdapterQueryResult as w, type AdapterInsertResult as x, type AdapterUpdateResult as y, type AdapterDeleteResult as z };