import stampit from 'stampit';
import {Meta, Model} from './base';
import {BaseQuerySet, Get, List, First, PageSize, Raw} from '../querySet';

const AdminQuerySet = stampit().compose(
  BaseQuerySet,
  Get,
  List,
  First,
  PageSize
);

const AdminMeta = Meta({
  name: 'admin',
  pluralName: 'admins',
  endpoints: {
    'detail': {
      'methods': ['delete', 'patch', 'put', 'get'],
      'path': '/v1/instances/{instanceName}/admins/{id}/'
    },
    'list': {
      'methods': ['get'],
      'path': '/v1/instances/{instanceName}/admins/'
    }
  }
});

const Admin = stampit()
  .compose(Model)
  .setQuerySet(AdminQuerySet)
  .setMeta(AdminMeta);

export default Admin;

import stampit from 'stampit';
import {Meta, Model} from './base';
import {BaseQuerySet, Get, List, First, PageSize} from '../querySet';

const AdminQuerySet = stampit().compose(
  BaseQuerySet,
  Get,
  List,
  First,
  PageSize
);

const AdminMeta = Meta({
  name: 'admin',
  pluralName: 'admins',
  endpoints: {
    'detail': {
      'methods': ['delete', 'patch', 'put', 'get'],
      'path': '/v1/instances/{instanceName}/admins/{id}/'
    },
    'list': {
      'methods': ['get'],
      'path': '/v1/instances/{instanceName}/admins/'
    }
  }
});

const Admin = stampit()
  .compose(Model)
  .setQuerySet(AdminQuerySet)
  .setMeta(AdminMeta);

export default Admin;

Remove Raw import from Admin model
[LIB-464] Remove Raw import from Admin model
