import { BaseResource } from '@gitbeaker/requester-utils' ; import { BaseRequestOptions , PaginatedRequestOptions , RequestHelper , Sudo , Camelize , } from '../infrastructure' ; export interface BroadcastMessageSchema extends Record < string , unknown > { message : string ; starts_at : string ; ends_at : string ; color : string ; font : string ; id : number ; active : boolean ; target_path : string ; broadcast_type : string ; dismissable : boolean ; } export class BroadcastMessages < C extends boolean = false > extends BaseResource < C > { all ( options ? ) { return RequestHelper . get < BroadcastMessageSchema [ ] > ( ) ( this , 'broadcast_messages' , options ) ; } create ( options ? ) { return RequestHelper . post < BroadcastMessageSchema > ( ) ( this , 'broadcast_messages' , options ) ; } edit ( broadcastMessageId , options ? ) { return RequestHelper . put < BroadcastMessageSchema > ( ) ( this , `broadcast_messages/${ broadcastMessageId }` , options ) ; } remove ( broadcastMessageId , options ? ) { return RequestHelper . del ( ) ( this , `broadcast_messages/${ broadcastMessageId }` , options ) ; } show ( broadcastMessageId , options ? ) { return RequestHelper . get < BroadcastMessageSchema > ( ) ( this , `broadcast_messages/${ broadcastMessageId }` , options ) ; } }