2020-12-10 14:38:38 +03:00
|
|
|
/* eslint-disable camelcase */
|
|
|
|
import ApplicationSerializer from 'ghost-admin/serializers/application';
|
|
|
|
import {EmbeddedRecordsMixin} from '@ember-data/serializer/rest';
|
|
|
|
|
2022-02-02 21:35:18 +03:00
|
|
|
export default class EmailRecipientSerializer extends ApplicationSerializer.extend(EmbeddedRecordsMixin) {
|
|
|
|
attrs = {
|
2020-12-10 14:38:38 +03:00
|
|
|
processedAtUTC: {key: 'processed_at'},
|
|
|
|
deliveredAtUTC: {key: 'delivered_at'},
|
|
|
|
openedAtUTC: {key: 'opened_at'},
|
|
|
|
failedAtUTC: {key: 'failed_at'},
|
|
|
|
email: {embedded: 'always'}
|
2022-02-10 13:41:36 +03:00
|
|
|
};
|
2022-02-02 21:35:18 +03:00
|
|
|
}
|