-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
11 changed files
with
102 additions
and
125 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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const Joi = require('joi') | ||
const validate = require('./validate') | ||
|
||
// | ||
// Define the schema | ||
// | ||
const schema = { | ||
header: Joi.string().allow('').optional(), | ||
members: Joi.array().items(Joi.string()) | ||
} | ||
|
||
// | ||
// Generate a valid object | ||
// | ||
module.exports = function (props) { | ||
return { | ||
type: 'direct_channel', | ||
direct_channel: validate(schema, props) | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const Joi = require('joi') | ||
const validate = require('./validate') | ||
|
||
// | ||
// Define the schema | ||
// | ||
const schema = { | ||
channel_members: Joi.array().items(Joi.string()), | ||
user: Joi.string(), | ||
message: Joi.string(), | ||
create_at: Joi.number() | ||
} | ||
|
||
// | ||
// Generate a valid object | ||
// | ||
module.exports = function (props) { | ||
return { | ||
type: 'direct_post', | ||
direct_post: validate(schema, props) | ||
} | ||
} |
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
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
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
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
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
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,123 +1,48 @@ | ||
module.exports = [ | ||
{ | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'member', | ||
nick_jid: '[email protected]/Micahel Cross', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: '[email protected]/Scott Barclay', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'admin', | ||
nick_jid: '[email protected]/Tonyy Brown', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'admin', | ||
nick_jid: '[email protected]/James Seegar', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'admin', | ||
nick_jid: '[email protected]/jarrett.jennings2', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: '[email protected]/Micahel.Cross', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: '[email protected]/Michael Rhoades', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'admin', | ||
nick_jid: '[email protected]/Michael Rock', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'admin', | ||
nick_jid: '[email protected]/Terrence Flynn', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'admin', | ||
nick_jid: '[email protected]/Tony DiLisio', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: '[email protected]/william.fleming2', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: 'test\\[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: 'test\\[email protected]/LT U755', | ||
reason: '', | ||
initiator_jid: 'test\\[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: 'test\\[email protected]', | ||
real_jid: '[email protected]/9fyg1zayoi', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: 'test\\[email protected]/LT U755', | ||
reason: 'creation', | ||
initiator_jid: 'test\\[email protected]' | ||
real_jid: '[email protected]/9fyg1zayoi' | ||
}, { | ||
room_jid: 'the\\20cool\\[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: 'the\\20cool\\[email protected]/Cody Webb', | ||
reason: '', | ||
initiator_jid: 'the\\20cool\\[email protected]' | ||
real_jid: '[email protected]' | ||
}, { | ||
room_jid: '[email protected]', | ||
real_jid: '[email protected]', | ||
role: 'none', | ||
affiliation: 'owner', | ||
nick_jid: '[email protected]/Tony DiLisio', | ||
reason: '', | ||
initiator_jid: '[email protected]' | ||
real_jid: '[email protected]' | ||
} | ||
] |
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
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