2014-08-27 15:24:03 -04:00
|
|
|
c = require 'schemas/schemas'
|
|
|
|
|
2014-04-11 08:22:49 -04:00
|
|
|
module.exports =
|
2014-08-27 15:24:03 -04:00
|
|
|
'application:idle-changed': c.object {},
|
|
|
|
idle: {type: 'boolean'}
|
|
|
|
|
2014-09-06 22:50:31 -04:00
|
|
|
'application:error': c.object {},
|
|
|
|
message: {type: 'string'}
|
|
|
|
stack: {type: 'string'}
|
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'audio-player:loaded': c.object {required: ['sender']},
|
|
|
|
sender: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'audio-player:play-sound': c.object {required: ['trigger']},
|
|
|
|
trigger: {type: 'string'}
|
|
|
|
volume: {type: 'number', minimum: 0, maximum: 1}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'music-player:play-music': c.object {required: ['play']},
|
|
|
|
play: {type: 'boolean'}
|
|
|
|
file: {type: 'string'}
|
2014-10-23 23:03:19 -04:00
|
|
|
delay: {type: 'integer', minimum: 0, format: 'milliseconds'}
|
|
|
|
|
|
|
|
'music-player:enter-menu': c.object {required: []},
|
|
|
|
terrain: {type: 'string'}
|
|
|
|
|
|
|
|
'music-player:exit-menu': c.object {}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'modal:opened': c.object {}
|
2014-07-13 19:07:15 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'modal:closed': c.object {}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-11-21 19:23:26 -05:00
|
|
|
'modal:open-modal-view': c.object {required: ['modalPath']},
|
|
|
|
modalPath: {type: 'string'}
|
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'router:navigate': c.object {required: ['route']},
|
|
|
|
route: {type: 'string'}
|
|
|
|
view: {type: 'object'}
|
2014-11-29 19:46:36 -05:00
|
|
|
viewClass: {type: ['function', 'string']}
|
2014-08-27 15:24:03 -04:00
|
|
|
viewArgs: {type: 'array'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-10-01 13:58:19 -04:00
|
|
|
'router:navigated': c.object {required: ['route']},
|
|
|
|
route: {type: 'string'}
|
|
|
|
|
2014-09-02 17:27:13 -04:00
|
|
|
'achievements:new': c.object {required: ['earnedAchievements']},
|
2014-08-27 15:24:03 -04:00
|
|
|
earnedAchievements: {type: 'object'}
|
2014-08-28 12:27:42 -04:00
|
|
|
|
|
|
|
'ladder:game-submitted': c.object {required: ['session', 'level']},
|
|
|
|
session: {type: 'object'}
|
|
|
|
level: {type: 'object'}
|
2014-09-06 22:50:31 -04:00
|
|
|
|
2014-11-12 13:23:43 -05:00
|
|
|
'buy-gems-modal:update-products': { }
|
2014-11-21 19:23:26 -05:00
|
|
|
|
2014-11-12 13:23:43 -05:00
|
|
|
'buy-gems-modal:purchase-initiated': c.object {required: ['productID']},
|
2014-11-17 18:15:02 -05:00
|
|
|
productID: { type: 'string' }
|
|
|
|
|
2014-12-03 14:19:10 -05:00
|
|
|
'subscribe-modal:subscribed': c.object {}
|
|
|
|
|
2014-11-17 18:15:02 -05:00
|
|
|
'stripe:received-token': c.object { required: ['token'] },
|
|
|
|
token: { type: 'object', properties: {
|
|
|
|
id: {type: 'string'}
|
2014-11-21 19:23:26 -05:00
|
|
|
}}
|
|
|
|
|
|
|
|
'store:item-purchased': c.object {required: ['item', 'itemSlug']},
|
|
|
|
item: {type: 'object'}
|
|
|
|
itemSlug: {type: 'string'}
|
2014-11-25 13:15:10 -05:00
|
|
|
|
|
|
|
'store:hero-purchased': c.object {required: ['hero', 'heroSlug']},
|
|
|
|
hero: {type: 'object'}
|
|
|
|
heroSlug: {type: 'string'}
|
2016-02-02 15:48:19 -05:00
|
|
|
|
|
|
|
'application:service-loaded': c.object {required: ['service']},
|
|
|
|
service: {type: 'string'} # 'segment'
|