2018-11-12 19:31:47 +03:00
|
|
|
import moment from 'moment';
|
|
|
|
import {AVAILABLE_EVENTS} from 'ghost-admin/helpers/event-name';
|
2022-03-08 14:32:01 +03:00
|
|
|
import {Factory} from 'miragejs';
|
2018-11-12 19:31:47 +03:00
|
|
|
|
|
|
|
export default Factory.extend({
|
|
|
|
name(i) { return `Integration ${i + 1}`;},
|
|
|
|
event(i) {
|
|
|
|
let event = AVAILABLE_EVENTS[i % 3];
|
|
|
|
return event.event;
|
|
|
|
},
|
|
|
|
target(i) { return `https://example.com/${i + 1}`; },
|
|
|
|
lastTriggeredAt: null,
|
|
|
|
|
|
|
|
createdAt() { return moment.utc().format(); },
|
|
|
|
createdBy: 1,
|
|
|
|
updatedAt() { return moment.utc().format(); },
|
|
|
|
updatedBy: 1
|
|
|
|
});
|