Last active
September 19, 2018 14:45
-
-
Save hlmnrmr/9dabff968f2ae7551925c3936b207281 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
desks_schema = { | |
'name': { | |
'type': 'string', | |
'required': True, | |
'nullable': False, | |
'empty': False, | |
'iunique': True | |
}, | |
'description': { | |
'type': 'string' | |
}, | |
'members': { | |
'type': 'list', | |
'schema': { | |
'type': 'dict', | |
'schema': { | |
'user': Resource.rel('users', True) | |
} | |
} | |
}, | |
'incoming_stage': Resource.rel('stages', True), | |
'working_stage': Resource.rel('stages', True), | |
'content_expiry': { | |
'type': 'integer' | |
}, | |
'source': { | |
'type': 'string' | |
}, | |
'monitoring_settings': { | |
'type': 'list', | |
'schema': { | |
'type': 'dict', | |
'schema': { | |
'_id': { | |
'type': 'string', | |
'required': True | |
}, | |
'type': { | |
'type': 'string', | |
'allowed': ['search', 'stage', 'scheduledDeskOutput', 'deskOutput', 'personal'], | |
'required': True | |
}, | |
'max_items': { | |
'type': 'integer', | |
'required': True | |
} | |
} | |
} | |
}, | |
'desk_type': { | |
'type': 'string', | |
'default': DeskTypes.authoring.value, | |
'allowed': DeskTypes.values() | |
}, | |
'desk_metadata': { | |
'type': 'dict', | |
}, | |
'content_profiles': { | |
'type': 'dict', | |
}, | |
'desk_language': { | |
'type': 'string' | |
}, | |
'monitoring_default_view': { | |
'type': 'string', | |
'allowed': ['', 'list', 'swimlane', 'photogrid'], | |
'required': False | |
}, | |
'default_content_profile': Resource.rel('content_types', type='string', nullable=True), | |
'default_content_template': Resource.rel('content_templates', nullable=True), | |
# name of a Slack channel that may be associated with the desk | |
'slack_channel_name': { | |
'type': 'string' | |
}, | |
# desk prefered vocabulary items | |
'preferred_cv_items': { | |
'type': 'dict', | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment