import { BaseResource } from '@gitbeaker/requester-utils'; import { RequestHelper, endpoint } from '../infrastructure'; import type { GitlabAPIResponse, ShowExpanded, Sudo } from '../infrastructure'; export interface GitlabPagesSettingsSchema extends Record { url: string; is_unique_domain_enabled: boolean; force_https: boolean; deployments: Array<{ created_at: string; url: string; path_prefix: string; root_directory: string; }>; } export class GitlabPages extends BaseResource { remove( projectId: string | number, options?: Sudo & ShowExpanded, ): Promise> { return RequestHelper.del()(this, endpoint`projects/${projectId}/pages`, options); } showSettings( projectId: string | number, options?: Sudo & ShowExpanded, ): Promise> { return RequestHelper.get()( this, endpoint`projects/${projectId}/pages`, options, ); } }