codecombat/app/schemas/subscriptions/misc.coffee

50 lines
1.4 KiB
CoffeeScript
Raw Normal View History

c = require 'schemas/schemas'
module.exports =
'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'}
'audio-player:loaded': c.object {required: ['sender']},
sender: {type: 'object'}
'audio-player:play-sound': c.object {required: ['trigger']},
trigger: {type: 'string'}
volume: {type: 'number', minimum: 0, maximum: 1}
'music-player:play-music': c.object {required: ['play']},
play: {type: 'boolean'}
file: {type: 'string'}
delay: {type: 'integer', minimum: 0, format: 'milliseconds'}
'music-player:enter-menu': c.object {required: []},
terrain: {type: 'string'}
'music-player:exit-menu': c.object {}
'modal:opened': c.object {}
'modal:closed': c.object {}
'router:navigate': c.object {required: ['route']},
route: {type: 'string'}
view: {type: 'object'}
viewClass: {type: 'function'}
viewArgs: {type: 'array'}
'router:navigated': c.object {required: ['route']},
route: {type: 'string'}
'achievements:new': c.object {required: ['earnedAchievements']},
earnedAchievements: {type: 'object'}
'ladder:game-submitted': c.object {required: ['session', 'level']},
session: {type: 'object'}
level: {type: 'object'}
2014-09-06 22:50:31 -04:00
'supermodel:load-progress-changed': c.object {required: ['progress']},
progress: {type: 'number', minimum: 0, maximum: 1}