import { BaseResource , BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { PaginatedRequestOptions , RequestHelper , Sudo } from '../infrastructure' ; import { AwardEmojiSchema , url } from './ResourceAwardEmojis' ; export class ResourceNoteAwardEmojis < C extends boolean = false > extends BaseResource < C > { protected resourceType : string ; constructor ( resourceType , options ) { super ( { prefixUrl : 'projects' , ... options } ) ; this . resourceType = resourceType ; } all ( projectId , resourceIId , noteId , options ? ) { return RequestHelper . get < AwardEmojiSchema [ ] > ( ) ( this , url ( projectId , this . resourceType , resourceIId , null , noteId ) , options ) ; } award ( projectId , resourceIId , noteId , name , options ? ) { return RequestHelper . post < AwardEmojiSchema > ( ) ( this , url ( projectId , this . resourceType , resourceIId , null , noteId ) , { name , ... options , } ) ; } remove ( projectId , resourceIId , noteId , awardId , options ? ) { return RequestHelper . del ( ) ( this , url ( projectId , this . resourceType , resourceIId , awardId , noteId ) , options ) ; } show ( projectId , resourceIId , noteId , awardId , options ? ) { return RequestHelper . get < AwardEmojiSchema > ( ) ( this , url ( projectId , this . resourceType , resourceIId , awardId , noteId ) , options ) ; } }