mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
14 lines
390 B
TypeScript
14 lines
390 B
TypeScript
import type {Client} from 'sentry/api';
|
|
|
|
export function getAllBroadcasts(api: Client, orgSlug: string) {
|
|
return api.requestPromise(`/organizations/${orgSlug}/broadcasts/`, {method: 'GET'});
|
|
}
|
|
|
|
export function markBroadcastsAsSeen(api: Client, idList: string[]) {
|
|
return api.requestPromise('/broadcasts/', {
|
|
method: 'PUT',
|
|
query: {id: idList},
|
|
data: {hasSeen: '1'},
|
|
});
|
|
}
|