broadcasts.tsx 385 B

12345678910111213
  1. import {Client} from 'sentry/api';
  2. export function getAllBroadcasts(api: Client, orgSlug: string) {
  3. return api.requestPromise(`/organizations/${orgSlug}/broadcasts/`, {method: 'GET'});
  4. }
  5. export function markBroadcastsAsSeen(api: Client, idList: string[]) {
  6. return api.requestPromise('/broadcasts/', {
  7. method: 'PUT',
  8. query: {id: idList},
  9. data: {hasSeen: '1'},
  10. });
  11. }