codecombat/app/schemas/subscriptions/editor.coffee

79 lines
1.7 KiB
CoffeeScript
Raw Normal View History

module.exports =
2014-06-30 22:16:26 -04:00
'save-new-version':
title: 'Save New Version'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published when a version gets saved'
type: 'object'
properties:
major:
2014-06-30 22:16:26 -04:00
type: 'boolean'
commitMessage:
2014-06-30 22:16:26 -04:00
type: 'string'
required: ['major', 'commitMessage']
additionalProperties: false
# TODO all these events starting with 'level:' should have 'editor' in their name
# to avoid confusion with level play events
2014-06-30 22:16:26 -04:00
'level:view-switched':
title: 'Level View Switched'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published whenever the view switches'
$ref: 'jQueryEvent'
2014-06-30 22:16:26 -04:00
'level-components-changed':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'edit-level-component':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-component-edited':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-component-editing-ended':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-systems-changed':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'edit-level-system':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-system-added':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-system-edited':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-system-editing-ended':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-thangs-changed':
title: 'Level Thangs Changed'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published when a Thang changes'
type: 'object'
properties:
thangsData:
2014-06-30 22:16:26 -04:00
type: 'array'
required: ['thangsData']
additionalProperties: false
2014-06-30 22:16:26 -04:00
'edit-level-thang':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-thang-edited':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-thang-done-editing':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-loaded':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'level-reload-from-data':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'save-new-version':
{} # TODO schema