2021-11-04 16:05:11 -07:00
|
|
|
import GeneratedManagedGroupModel from '../generated/models/managed-group';
|
2021-10-29 15:01:50 -07:00
|
|
|
import { attr } from '@ember-data/model';
|
|
|
|
|
import { fragment } from 'ember-data-model-fragments/attributes';
|
2021-11-05 08:55:22 -07:00
|
|
|
import { A } from '@ember/array';
|
2021-10-28 08:30:28 -07:00
|
|
|
|
2021-11-04 16:05:11 -07:00
|
|
|
export default class ManagedGroupModel extends GeneratedManagedGroupModel {
|
2021-10-29 15:01:50 -07:00
|
|
|
// =attributes
|
2021-11-10 16:12:42 -05:00
|
|
|
|
|
|
|
|
// =error attributes
|
|
|
|
|
// These attributes exist solely to capture errors on nested fields.
|
|
|
|
|
// See the application adapter's error normalization method for
|
|
|
|
|
// more information.
|
|
|
|
|
|
|
|
|
|
@attr('string', { readOnly: true }) attributes_filter;
|
|
|
|
|
|
2021-11-05 08:55:22 -07:00
|
|
|
/**
|
|
|
|
|
* Members is read-only under normal circumstances. But members can
|
|
|
|
|
* be persisted via calls to `addMembers()` or `removeMembers()`.
|
|
|
|
|
*/
|
|
|
|
|
@attr({
|
|
|
|
|
readOnly: true,
|
|
|
|
|
defaultValue: () => A(),
|
|
|
|
|
emptyArrayIfMissing: true,
|
|
|
|
|
})
|
|
|
|
|
member_ids;
|
|
|
|
|
|
2021-11-04 16:05:11 -07:00
|
|
|
@fragment('fragment-managed-group-attributes', { defaultValue: {} })
|
2021-10-29 15:01:50 -07:00
|
|
|
attributes;
|
|
|
|
|
}
|