userFeedback.js 411 B

12345678910111213141516171819
  1. import {Event} from './event';
  2. import {Group} from './group';
  3. import {User} from './user';
  4. export function UserFeedback(params = {}) {
  5. const event = Event();
  6. return {
  7. id: '123',
  8. name: 'Lyn',
  9. email: 'lyn@sentry.io',
  10. comments: 'Something bad happened',
  11. dateCreated: '2018-12-20T00:00:00.000Z',
  12. issue: Group(),
  13. eventID: event.id,
  14. event,
  15. user: User(),
  16. ...params,
  17. };
  18. }