mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
Adding extensive typing support Unified browser and Node.JS implementations Adding support of Gitlab API 16.0
25 lines
874 B
TypeScript
25 lines
874 B
TypeScript
import type { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
import { ResourceIterations } from '../templates';
|
|
import type { AllIterationsOptions, IterationSchema } from '../templates/ResourceIterations';
|
|
import type {
|
|
GitlabAPIResponse,
|
|
PaginationRequestOptions,
|
|
PaginationTypes,
|
|
ShowExpanded,
|
|
Sudo,
|
|
} from '../infrastructure';
|
|
|
|
export interface GroupIterations<C extends boolean = false> {
|
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(
|
|
groupId: string | number,
|
|
options?: AllIterationsOptions & Sudo & ShowExpanded<E> & PaginationRequestOptions<P>,
|
|
): Promise<GitlabAPIResponse<IterationSchema[], C, E, P>>;
|
|
}
|
|
|
|
export class GroupIterations<C extends boolean = false> extends ResourceIterations<C> {
|
|
constructor(options: BaseResourceOptions<C>) {
|
|
/* istanbul ignore next */
|
|
super('groups', options);
|
|
}
|
|
}
|