update libflitter/flap and run migrations
This commit is contained in:
parent
5aa89c308d
commit
d25b54da88
@ -6,7 +6,9 @@
|
|||||||
* globally using the model() function.
|
* globally using the model() function.
|
||||||
*/
|
*/
|
||||||
const Greeting = {
|
const Greeting = {
|
||||||
name: String,
|
schema: {
|
||||||
|
name: String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Greeting
|
module.exports = Greeting
|
@ -5,10 +5,11 @@
|
|||||||
/**
|
/**
|
||||||
* This model stores the role data from Flitter-auth.
|
* This model stores the role data from Flitter-auth.
|
||||||
*
|
*
|
||||||
* @type {Object}
|
|
||||||
*/
|
*/
|
||||||
module.exports = exports = {
|
module.exports = exports = {
|
||||||
name: String,
|
schema: {
|
||||||
permissions: [String],
|
name: String,
|
||||||
data: String,
|
permissions: [String],
|
||||||
}
|
data: String,
|
||||||
|
},
|
||||||
|
}
|
@ -8,13 +8,14 @@
|
|||||||
* stored instead of cleartext. The data field is for JSON data that
|
* stored instead of cleartext. The data field is for JSON data that
|
||||||
* holds various non-DB essential pieces of information about users.
|
* holds various non-DB essential pieces of information about users.
|
||||||
*
|
*
|
||||||
* @type {Object}
|
|
||||||
*/
|
*/
|
||||||
module.exports = exports = {
|
module.exports = exports = {
|
||||||
username: String,
|
schema: {
|
||||||
password: String,
|
username: String,
|
||||||
data: String,
|
password: String,
|
||||||
uuid: String,
|
data: String,
|
||||||
role: String,
|
uuid: String,
|
||||||
permissions: [String],
|
role: String,
|
||||||
}
|
permissions: [String],
|
||||||
|
},
|
||||||
|
}
|
@ -4,10 +4,12 @@
|
|||||||
* Put some description here!
|
* Put some description here!
|
||||||
*/
|
*/
|
||||||
const File = {
|
const File = {
|
||||||
original_name: String,
|
schema: {
|
||||||
new_name: String,
|
original_name: String,
|
||||||
mime: String,
|
new_name: String,
|
||||||
type: String,
|
mime: String,
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = File
|
module.exports = exports = File
|
@ -4,11 +4,16 @@
|
|||||||
* Put some description here!
|
* Put some description here!
|
||||||
*/
|
*/
|
||||||
const Invite = {
|
const Invite = {
|
||||||
project_id: String,
|
schema: {
|
||||||
by_user_id: String,
|
project_id: String,
|
||||||
api_type: String,
|
by_user_id: String,
|
||||||
created_on: Date,
|
api_type: String,
|
||||||
used: { type: Boolean, default: false }
|
created_on: Date,
|
||||||
|
used: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = Invite
|
module.exports = exports = Invite
|
@ -4,10 +4,15 @@
|
|||||||
* Put some description here!
|
* Put some description here!
|
||||||
*/
|
*/
|
||||||
const Out = {
|
const Out = {
|
||||||
project_id: String,
|
schema: {
|
||||||
created: { type: Date, default: Date.now },
|
project_id: String,
|
||||||
brief: String,
|
created: {
|
||||||
data: String,
|
type: Date,
|
||||||
|
default: Date.now
|
||||||
|
},
|
||||||
|
brief: String,
|
||||||
|
data: String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = Out
|
module.exports = exports = Out
|
@ -5,13 +5,21 @@
|
|||||||
*/
|
*/
|
||||||
const uuid = require('uuid/v4')
|
const uuid = require('uuid/v4')
|
||||||
const Project = {
|
const Project = {
|
||||||
name: String,
|
schema: {
|
||||||
user_id: String,
|
name: String,
|
||||||
archived: { type: Boolean, default: false },
|
user_id: String,
|
||||||
data: String,
|
archived: {
|
||||||
shared_user_ids: [String],
|
type: Boolean,
|
||||||
edit_user_ids: [String],
|
default: false
|
||||||
uuid: { type: String, default: uuid }
|
},
|
||||||
|
data: String,
|
||||||
|
shared_user_ids: [String],
|
||||||
|
edit_user_ids: [String],
|
||||||
|
uuid: {
|
||||||
|
type: String,
|
||||||
|
default: uuid
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = Project
|
module.exports = exports = Project
|
@ -5,16 +5,24 @@
|
|||||||
*/
|
*/
|
||||||
const uuid = require('uuid/v4')
|
const uuid = require('uuid/v4')
|
||||||
const Snippet = {
|
const Snippet = {
|
||||||
name: String,
|
schema: {
|
||||||
user_id: String,
|
name: String,
|
||||||
archived: { type: Boolean, default: false },
|
user_id: String,
|
||||||
data: String,
|
archived: {
|
||||||
shared_user_ids: [String],
|
type: Boolean,
|
||||||
edit_user_ids: [String],
|
default: false
|
||||||
uuid: { type: String, default: uuid },
|
},
|
||||||
public_share: String,
|
data: String,
|
||||||
mode: String,
|
shared_user_ids: [String],
|
||||||
project_id: String,
|
edit_user_ids: [String],
|
||||||
|
uuid: {
|
||||||
|
type: String,
|
||||||
|
default: uuid
|
||||||
|
},
|
||||||
|
public_share: String,
|
||||||
|
mode: String,
|
||||||
|
project_id: String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = Snippet
|
module.exports = exports = Snippet
|
@ -18,5 +18,10 @@
|
|||||||
"id": 1560988609,
|
"id": 1560988609,
|
||||||
"name": "move_database_unit_before_express_unit",
|
"name": "move_database_unit_before_express_unit",
|
||||||
"migratedOn": "2019-06-21T00:31:38.019Z"
|
"migratedOn": "2019-06-21T00:31:38.019Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1565741502,
|
||||||
|
"name": "convert_to_new_model_schema_definitions",
|
||||||
|
"migratedOn": "2019-08-15T14:58:30.109Z"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -18,11 +18,11 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"flitter-auth": "^0.4.0",
|
"flitter-auth": "^0.4.0",
|
||||||
"flitter-cli": "^0.10.0",
|
"flitter-cli": "^0.10.0",
|
||||||
"flitter-flap": "^0.3.0",
|
"flitter-flap": "^0.3.1",
|
||||||
"flitter-forms": "^0.7.2",
|
"flitter-forms": "^0.7.2",
|
||||||
"flitter-upload": "^0.7.6",
|
"flitter-upload": "^0.7.6",
|
||||||
"js-beautify": "^1.10.2",
|
"js-beautify": "^1.10.2",
|
||||||
"libflitter": "^0.27.4",
|
"libflitter": "^0.28.0",
|
||||||
"stringify-object": "^3.3.0"
|
"stringify-object": "^3.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
yarn.lock
17
yarn.lock
@ -869,12 +869,13 @@ flitter-cli@^0.10.0:
|
|||||||
mkdirp "^0.5.1"
|
mkdirp "^0.5.1"
|
||||||
nesh "^1.7.0"
|
nesh "^1.7.0"
|
||||||
|
|
||||||
flitter-flap@^0.3.0:
|
flitter-flap@^0.3.1:
|
||||||
version "0.3.0"
|
version "0.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/flitter-flap/-/flitter-flap-0.3.0.tgz#04db1cf5181dd874acab66b064dc783294ccf69d"
|
resolved "https://registry.yarnpkg.com/flitter-flap/-/flitter-flap-0.3.1.tgz#12dca0f43a6bfefd89b9e461b1eb1f1e7db18cd9"
|
||||||
integrity sha512-v7mwgQR6cvz/LPV9ZHNVVIGFKU7wjwjw+OcTuwIKz8q1W7HWf9Vicy7ucXnRLOvMpOUb3GIWOaCqxBQfHBz/mg==
|
integrity sha512-I22gvdK3cKCnQZGVXwtbgtWTkCakhZGs46K5g+UcoKYurHhjo+9+rqsPGZbYzIcFIhwPJTyv3Ve5aZprDz22WQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
del "^4.1.0"
|
del "^4.1.0"
|
||||||
|
js-beautify "^1.10.2"
|
||||||
node-migration "^1.0.1"
|
node-migration "^1.0.1"
|
||||||
touch "^3.1.0"
|
touch "^3.1.0"
|
||||||
|
|
||||||
@ -1273,10 +1274,10 @@ leven@^1.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/leven/-/leven-1.0.2.tgz#9144b6eebca5f1d0680169f1a6770dcea60b75c3"
|
resolved "https://registry.yarnpkg.com/leven/-/leven-1.0.2.tgz#9144b6eebca5f1d0680169f1a6770dcea60b75c3"
|
||||||
integrity sha1-kUS27ryl8dBoAWnxpncNzqYLdcM=
|
integrity sha1-kUS27ryl8dBoAWnxpncNzqYLdcM=
|
||||||
|
|
||||||
libflitter@^0.27.4:
|
libflitter@^0.28.0:
|
||||||
version "0.27.4"
|
version "0.28.0"
|
||||||
resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.27.4.tgz#858a49c0be7424b47eab36295cd1c001a3b32b61"
|
resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.28.0.tgz#c132dfb74e3a3e6148e924ce5ab9fc6094a6625c"
|
||||||
integrity sha512-/62fjAJCu/7dh1xQMdpNhV4LofAGGKB615dXTnWGvUBXWSYwtlwZuEWzcooEO4SdyT+ooeyTpVxy8XauFGX8pA==
|
integrity sha512-s7m0odIm96QcuycJ4GUyu4Ub6zooCtXnIRjXccAgkKMMkz1I84qT0+DO6tRiSBPlnxA9lXpDjrAzyY0Z5OpQmw==
|
||||||
dependencies:
|
dependencies:
|
||||||
busboy-body-parser "^0.3.2"
|
busboy-body-parser "^0.3.2"
|
||||||
connect-mongodb-session "^2.2.0"
|
connect-mongodb-session "^2.2.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user