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
23 lines
695 B
TypeScript
23 lines
695 B
TypeScript
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
import { RequestHelper } from '../infrastructure';
|
|
import type { GitlabAPIResponse, ShowExpanded, Sudo } from '../infrastructure';
|
|
|
|
export interface MetadataSchema extends Record<string, unknown> {
|
|
version: string;
|
|
revision: string;
|
|
kas: {
|
|
enabled: boolean;
|
|
externalUrl: string;
|
|
version: string;
|
|
};
|
|
enterprise: boolean;
|
|
}
|
|
|
|
export class Metadata<C extends boolean = false> extends BaseResource<C> {
|
|
show<E extends boolean = false>(
|
|
options?: Sudo & ShowExpanded<E>,
|
|
): Promise<GitlabAPIResponse<MetadataSchema, C, E, void>> {
|
|
return RequestHelper.get<MetadataSchema>()(this, 'metadata', options);
|
|
}
|
|
}
|