import Factory from './factory';
import Response from './response';
import faker from './faker';
import Model from './orm/model';
import Serializer from './serializer';
import HasMany from './orm/associations/has-many';
import BelongsTo from './orm/associations/belongs-to';

function hasMany(type) {
  return new HasMany(type);
}
function belongsTo(type) {
  return new BelongsTo(type);
}

export {
  Factory,
  Response,
  faker,
  Model,
  Serializer,
  hasMany,
  belongsTo
};

export default {
  Factory,
  Response
};

import Factory from './factory';
import Response from './response';
import faker from './faker';
import Model from './orm/model';
import Serializer from './serializer';
import HasMany from './orm/associations/has-many';
import BelongsTo from './orm/associations/belongs-to';

function hasMany(type) {
  return new HasMany(type);
}
function belongsTo(type) {
  return new BelongsTo(type);
}

export {
  Factory,
  Response,
  faker,
  Model,
  Serializer,
  hasMany,
  belongsTo
};

export default {
  Factory,
  Response,
  hasMany,
  belongsTo
};

Add back hasMany, belongsTo to default export
Add back hasMany, belongsTo to default export
