goby-database 2.0.11 → 2.0.12

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/types.d.ts CHANGED
@@ -143,15 +143,16 @@ export type JunctionTable = {
143
143
  metadata: {};
144
144
  };
145
145
  export type JunctionList = JunctionTable[];
146
+ export type WindowType = 'home' | 'hopper' | 'workspace';
146
147
  export type SQLApplicationWindow = {
147
148
  id: number;
148
- type: string;
149
+ type: WindowType;
149
150
  open: BinaryBoolean;
150
151
  metadata: string;
151
152
  };
152
153
  export type ApplicationWindow = {
153
154
  id: number;
154
- type: string;
155
+ type: WindowType;
155
156
  open: BinaryBoolean;
156
157
  metadata: {
157
158
  pos: [null, null] | [number, number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goby-database",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "This will hold the core better-sqlite3-powered application for creating and modifying goby databases",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types.ts CHANGED
@@ -182,16 +182,17 @@ export type JunctionTable ={
182
182
 
183
183
  export type JunctionList =JunctionTable[];
184
184
 
185
+ export type WindowType = 'home' | 'hopper' | 'workspace';
185
186
 
186
187
  export type SQLApplicationWindow ={
187
188
  id:number;
188
- type:string;
189
+ type:WindowType;
189
190
  open:BinaryBoolean;
190
191
  metadata:string; // JSON string
191
192
  }
192
193
  export type ApplicationWindow ={
193
194
  id:number;
194
- type:string;
195
+ type:WindowType;
195
196
  open:BinaryBoolean;
196
197
  metadata:{
197
198
  pos:[null,null] | [number,number];