UNPKG

673 BJavaScriptView Raw
1import DS from 'ember-data';
2import { memberAction } from 'ember-api-actions';
3
4export default DS.Model.extend({
5 /// Email address for the account.
6 email: DS.attr ('string'),
7
8 /// Username of the account.
9 username: DS.attr ('string'),
10
11 /// Password for the account. The password is only used with the account is being
12 /// created.
13 password: DS.attr ('string'),
14
15 /// The enabled state of the account.
16 enabled: DS.attr ('boolean'),
17
18 /// The scope for the account. It will be an array of strings.
19 scope: DS.attr (),
20
21 /// Change the password for the account.
22 changePassword: memberAction ({ path: 'password', type: 'post', urlType: 'findRecord'})
23});