@the-inkwell/shared 0.1.137 → 0.1.139

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.137",
3
+ "version": "0.1.139",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -23,6 +23,8 @@ export default interface ListViews {
23
23
  createdAt: Date;
24
24
 
25
25
  updatedAt: Date;
26
+
27
+ isGeneric: boolean | null;
26
28
  }
27
29
 
28
30
  /** Represents the initializer for the table public.list_views */
@@ -45,6 +47,9 @@ export interface ListViewsInitializer {
45
47
 
46
48
  /** Default value: CURRENT_TIMESTAMP */
47
49
  updatedAt?: Date;
50
+
51
+ /** Default value: false */
52
+ isGeneric?: boolean | null;
48
53
  }
49
54
 
50
55
  /** Represents the mutator for the table public.list_views */
@@ -64,4 +69,6 @@ export interface ListViewsMutator {
64
69
  createdAt?: Date;
65
70
 
66
71
  updatedAt?: Date;
72
+
73
+ isGeneric?: boolean | null;
67
74
  }
@@ -5,7 +5,9 @@ import ListViews, {
5
5
  } from '../../../_schema/ListViews'
6
6
  import { type ListRequest, type ListResponse } from '../../../utils'
7
7
 
8
- export type AdminListView = ListViews
8
+ export type AdminListView = ListViews & {
9
+ query: Record<string, any>
10
+ }
9
11
  export type AdminListViewInitializer = ListViewsInitializer
10
12
  export type AdminListViewMutator = ListViewsMutator
11
13
 
@@ -28,8 +30,10 @@ export type AdminListViewListResponse = ListResponse<AdminListView>
28
30
 
29
31
  export type AdminListViewCreateInput = Pick<
30
32
  AdminListViewInitializer,
31
- 'model' | 'name' | 'query'
32
- >
33
+ 'model' | 'name'
34
+ > & {
35
+ query: Record<string, any>
36
+ }
33
37
  export type AdminListViewCreateResponse = Pick<AdminListView, 'id'>
34
38
 
35
39
  // update