2015-09-03 14:15:00 +02:00
|
|
|
'use strict';
|
|
|
|
|
2016-06-14 16:53:18 +02:00
|
|
|
import request from '../utils/request';
|
2015-09-03 14:15:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
let NotificationFetcher = {
|
|
|
|
fetchPieceListNotifications() {
|
2016-06-14 16:53:18 +02:00
|
|
|
return request('notification_piecelist');
|
2015-09-03 14:15:00 +02:00
|
|
|
},
|
|
|
|
|
2015-09-03 15:17:12 +02:00
|
|
|
fetchPieceNotifications(pieceId) {
|
2016-06-14 16:53:18 +02:00
|
|
|
return request('notification_piece', {
|
|
|
|
urlTemplateSpec: { pieceId }
|
|
|
|
});
|
2015-09-03 15:17:12 +02:00
|
|
|
},
|
|
|
|
|
2015-09-03 14:15:00 +02:00
|
|
|
fetchEditionListNotifications() {
|
2016-06-14 16:53:18 +02:00
|
|
|
return request('notification_editionlist');
|
2015-09-03 15:17:12 +02:00
|
|
|
},
|
2015-12-16 10:24:44 +01:00
|
|
|
|
2015-09-03 15:17:12 +02:00
|
|
|
fetchEditionNotifications(editionId) {
|
2016-06-14 16:53:18 +02:00
|
|
|
return request('notification_edition', {
|
|
|
|
urlTemplateSpec: { editionId }
|
|
|
|
});
|
2015-09-04 11:49:55 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
fetchContractAgreementListNotifications() {
|
2016-06-14 16:53:18 +02:00
|
|
|
return request('notification_contract_agreement_list');
|
2015-09-03 14:15:00 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NotificationFetcher;
|