feat: notifications and flow fixes
This commit is contained in:
parent
423cfd4bbb
commit
8f8e95c292
9 changed files with 103 additions and 26 deletions
|
|
@ -1,14 +1,31 @@
|
|||
const uuid = require('uuid')
|
||||
|
||||
const {APPROVED} = require('../consts')
|
||||
|
||||
const CODE = 'mock-compliance'
|
||||
|
||||
const createLink = (settings, userId, level) => {
|
||||
return `this is a mock external link, ${userId}, ${level}`
|
||||
}
|
||||
|
||||
const getApplicantStatus = (settings, userId) => {
|
||||
const getApplicantStatus = (account, userId) => {
|
||||
return Promise.resolve({
|
||||
service: CODE,
|
||||
status: {
|
||||
level: account.applicantLevel, answer: APPROVED
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const createApplicant = () => {
|
||||
return Promise.resolve({
|
||||
id: uuid.v4()
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
CODE,
|
||||
createLink,
|
||||
getApplicantStatus
|
||||
createApplicant,
|
||||
getApplicantStatus,
|
||||
createLink
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue