mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
import { BaseServiceOptions } from '@gitbeaker/requester-utils';
|
|
import { ResourceDiscussions } from '../templates';
|
|
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
|
|
export interface EpicDiscussions extends ResourceDiscussions {
|
|
addNote(
|
|
groupId: string | number,
|
|
epicId: string | number,
|
|
discussionId: string | number,
|
|
noteId: number,
|
|
content: string,
|
|
options?: BaseRequestOptions,
|
|
);
|
|
|
|
all(groupId: string | number, epicId: string | number, options?: PaginatedRequestOptions);
|
|
|
|
create(
|
|
groupId: string | number,
|
|
epicId: string | number,
|
|
content: string,
|
|
options?: BaseRequestOptions,
|
|
);
|
|
|
|
editNote(
|
|
groupId: string | number,
|
|
epicId: string | number,
|
|
discussionId: string | number,
|
|
noteId: number,
|
|
content: string,
|
|
options?: BaseRequestOptions,
|
|
);
|
|
|
|
removeNote(
|
|
groupId: string | number,
|
|
epicId: string | number,
|
|
discussionId: string | number,
|
|
noteId: number,
|
|
options?: Sudo,
|
|
);
|
|
|
|
show(
|
|
groupId: string | number,
|
|
epicId: string | number,
|
|
discussionId: string | number,
|
|
options?: Sudo,
|
|
);
|
|
}
|
|
|
|
export class EpicDiscussions extends ResourceDiscussions {
|
|
constructor(options: BaseServiceOptions) {
|
|
super('groups', 'epics', options);
|
|
}
|
|
}
|