1 | import { BaseService, BaseRequestOptions, Sudo } from '../infrastructure';
|
2 | export interface RepositoryFileSchema {
|
3 | file_name: string;
|
4 | file_path: string;
|
5 | size: number;
|
6 | encoding: string;
|
7 | content: string;
|
8 | content_sha256: string;
|
9 | ref: string;
|
10 | blob_id: string;
|
11 | commit_id: string;
|
12 | last_commit_id: string;
|
13 | }
|
14 | export declare class RepositoryFiles extends BaseService {
|
15 | create(projectId: string | number, filePath: string, branch: string, content: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>;
|
16 | edit(projectId: string | number, filePath: string, branch: string, content: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>;
|
17 | remove(projectId: string | number, filePath: string, branch: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>;
|
18 | show(projectId: string | number, filePath: string, ref: string, options?: Sudo): Promise<RepositoryFileSchema>;
|
19 | showBlame(projectId: string | number, filePath: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
|
20 | showRaw(projectId: string | number, filePath: string, ref: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
|
21 | }
|