-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83473f4
commit f4b0de6
Showing
6 changed files
with
36 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
// var Credentials = new Schema({ | ||
// appname: String, | ||
// credentials: String, | ||
// }); | ||
|
||
import { storage } from "../storage.js"; | ||
interface ICredentials { | ||
appname: string; | ||
credentials: string; | ||
} | ||
|
||
export default { | ||
findOne: ( | ||
where: { appname: string }, | ||
cb: (err: Error, credentials: any) => void | ||
cb: (err: Error, credentials: ICredentials) => void | ||
) => {}, | ||
|
||
findOneAndUpdate: ( | ||
where: { appname: string }, | ||
data: { credentials: any }, | ||
cb: (err: Error, credentials: any) => {} | ||
cb: (err: Error, credentials: ICredentials) => {} | ||
) => {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
// var Flows = new Schema({ | ||
// appname: String, | ||
// flow: Schema.Types.Mixed, | ||
// }); | ||
import { storage } from "../storage.js"; | ||
interface IFlows { | ||
appname: string; | ||
flow: any; | ||
} | ||
|
||
export default { | ||
findOne: ( | ||
where: { appname: string }, | ||
cb: (err: Error, flows: any) => void | ||
cb: (err: Error, flows: IFlows) => void | ||
) => {}, | ||
|
||
findOneAndUpdate: ( | ||
where: { appname: string }, | ||
data: { flow: any }, | ||
cb: (err: Error, flows: any) => {} | ||
cb: (err: Error, flows: IFlows) => {} | ||
) => {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
// var Library = new Schema({ | ||
// appname: String, | ||
// type: String, | ||
// name: String, | ||
// meta: Schema.Types.Mixed, | ||
// body: Schema.Types.Mixed, | ||
// }); | ||
import { storage } from "../storage.js"; | ||
interface ILibrary { | ||
appname: string; | ||
type: string; | ||
name: string; | ||
meta: any; | ||
body: any; | ||
} | ||
|
||
export default { | ||
findOne: ( | ||
where: { appname: string; type: string; name: string }, | ||
cb: (err: Error, library: any) => void | ||
cb: (err: Error, library: ILibrary) => void | ||
) => {}, | ||
|
||
findOneAndUpdate: ( | ||
where: { appname: string; name: string }, | ||
data: { name: string; meta: string; body: string; type: string }, | ||
cb: (err: Error, library: any) => {} | ||
data: { name: string; meta: any; body: any; type: string }, | ||
cb: (err: Error, library: ILibrary) => {} | ||
) => {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
// var Sessions = new Schema({ | ||
// appname: String, | ||
// sessions: Schema.Types.Mixed, | ||
// }); | ||
import { storage } from "../storage.js"; | ||
interface ISessions { | ||
appname: string; | ||
sessions: any; | ||
} | ||
|
||
export default { | ||
findOne: ( | ||
where: { appname: string }, | ||
cb: (err: Error, sessions: any) => void | ||
cb: (err: Error, sessions: ISessions) => void | ||
) => {}, | ||
|
||
findOneAndUpdate: ( | ||
where: { appname: string }, | ||
data: { sessions: any }, | ||
cb: (err: Error, sessions: any) => {} | ||
cb: (err: Error, sessions: ISessions) => {} | ||
) => {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
// var Settings = new Schema({ | ||
// appname: String, | ||
// settings: Schema.Types.Mixed, | ||
// }); | ||
import { storage } from "../storage.js"; | ||
interface ISettings { | ||
appname: string; | ||
settings: any; | ||
} | ||
|
||
export default { | ||
findOne: ( | ||
whrere: { appname: string }, | ||
cb: (err: Error, settings: any) => void | ||
cb: (err: Error, settings: ISettings) => void | ||
) => {}, | ||
|
||
findOneAndUpdate: ( | ||
where: { appname: string }, | ||
data: { settings: any }, | ||
cb: (err: Error, settings: any) => {} | ||
cb: (err: Error, settings: ISettings) => {} | ||
) => {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters