mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
import { ResourceDiscussions } from '../templates';
|
|
import {
|
|
BaseRequestOptions,
|
|
BaseServiceOptions,
|
|
PaginatedRequestOptions,
|
|
Sudo,
|
|
} from '../infrastructure';
|
|
|
|
export interface IssueDiscussions extends ResourceDiscussions {
|
|
addNote(
|
|
projectId: string | number,
|
|
issueId: string | number,
|
|
discussionId: string | number,
|
|
noteId: number,
|
|
content: string,
|
|
options?: BaseRequestOptions,
|
|
);
|
|
|
|
all(projectId: string | number, issueId: string | number, options?: PaginatedRequestOptions);
|
|
|
|
create(
|
|
projectId: string | number,
|
|
issueId: string | number,
|
|
content: string,
|
|
options?: BaseRequestOptions,
|
|
);
|
|
|
|
editNote(
|
|
projectId: string | number,
|
|
issueId: string | number,
|
|
discussionId: string | number,
|
|
noteId: number,
|
|
content: string,
|
|
options?: BaseRequestOptions,
|
|
);
|
|
|
|
removeNote(
|
|
projectId: string | number,
|
|
issueId: string | number,
|
|
discussionId: string | number,
|
|
noteId: number,
|
|
options?: Sudo,
|
|
);
|
|
|
|
show(
|
|
projectId: string | number,
|
|
issueId: string | number,
|
|
discussionId: string | number,
|
|
options?: Sudo,
|
|
);
|
|
}
|
|
|
|
export class IssueDiscussions extends ResourceDiscussions {
|
|
constructor(options: BaseServiceOptions = {}) {
|
|
super('projects', 'issues', options);
|
|
}
|
|
}
|