2015-09-03 14:15:00 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import requests from '../utils/requests';
|
|
|
|
|
|
|
|
|
|
|
|
let NotificationFetcher = {
|
|
|
|
|
|
|
|
fetchPieceListNotifications() {
|
|
|
|
return requests.get('notification_piecelist');
|
|
|
|
},
|
|
|
|
|
2015-09-03 15:17:12 +02:00
|
|
|
fetchPieceNotifications(pieceId) {
|
|
|
|
return requests.get('notification_piece', {'piece_id': pieceId});
|
|
|
|
},
|
|
|
|
|
2015-09-03 14:15:00 +02:00
|
|
|
fetchEditionListNotifications() {
|
|
|
|
return requests.get('notification_editionlist');
|
2015-09-03 15:17:12 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
fetchEditionNotifications(editionId) {
|
|
|
|
return requests.get('notification_edition', {'edition_id': editionId});
|
2015-09-04 11:49:55 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
fetchContractAgreementListNotifications() {
|
|
|
|
return requests.get('notification_contractagreementlist');
|
2015-09-03 14:15:00 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NotificationFetcher;
|