beanbagdb 0.6.7 → 0.6.9
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 +1 -1
- package/src/index.js +4 -0
- package/src/system_schema.js +4 -10
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -739,6 +739,10 @@ export class BeanBagDB {
|
|
|
739
739
|
})
|
|
740
740
|
return schemas
|
|
741
741
|
}
|
|
742
|
+
},
|
|
743
|
+
editable_meta_schema: async (criteria)=>{
|
|
744
|
+
let e = sys_sch.editable_metadata_schema
|
|
745
|
+
return e
|
|
742
746
|
}
|
|
743
747
|
}
|
|
744
748
|
if(!input.type){throw new ValidationError("No type provided. Must be: "+Object.keys(fetch_docs).join(","))}
|
package/src/system_schema.js
CHANGED
|
@@ -11,7 +11,7 @@ export const default_app = {
|
|
|
11
11
|
active: true,
|
|
12
12
|
description: "Meta-schema or the schema for defining other schemas",
|
|
13
13
|
system_generated: true,
|
|
14
|
-
version: 1,
|
|
14
|
+
version: 1.25,
|
|
15
15
|
title: "Schema document",
|
|
16
16
|
schema: {
|
|
17
17
|
type: "object",
|
|
@@ -353,7 +353,7 @@ export const default_app = {
|
|
|
353
353
|
system_generated: true,
|
|
354
354
|
title: "System log",
|
|
355
355
|
active: true,
|
|
356
|
-
version: 1,
|
|
356
|
+
version: 1.25,
|
|
357
357
|
description: "To define edges in the simple directed graph of records.",
|
|
358
358
|
schema: {
|
|
359
359
|
type: "object",
|
|
@@ -363,16 +363,9 @@ export const default_app = {
|
|
|
363
363
|
text: {
|
|
364
364
|
type: "string",
|
|
365
365
|
},
|
|
366
|
-
data: {
|
|
367
|
-
type: "object",
|
|
368
|
-
additionalProperties: true,
|
|
369
|
-
},
|
|
370
366
|
app: {
|
|
371
367
|
type: "string",
|
|
372
|
-
}
|
|
373
|
-
time: {
|
|
374
|
-
type: "string",
|
|
375
|
-
},
|
|
368
|
+
}
|
|
376
369
|
},
|
|
377
370
|
},
|
|
378
371
|
settings: {
|
|
@@ -453,6 +446,7 @@ export const editable_metadata_schema = {
|
|
|
453
446
|
},
|
|
454
447
|
title:{
|
|
455
448
|
type:"string",
|
|
449
|
+
default:"Document",
|
|
456
450
|
maxLength:10000
|
|
457
451
|
},
|
|
458
452
|
ref:{
|