@gitbeaker/core 35.8.0 → 36.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +179 -25
- package/dist/index.d.ts +7128 -0
- package/dist/index.js +6909 -3167
- package/dist/index.mjs +6825 -0
- package/dist/map.json +7553 -1
- package/package.json +52 -49
- package/LICENSE.md +0 -22
- package/dist/index.es.js +0 -3141
- package/dist/index.es.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/infrastructure/RequestHelper.d.ts +0 -55
- package/dist/types/infrastructure/Utils.d.ts +0 -13
- package/dist/types/infrastructure/index.d.ts +0 -2
- package/dist/types/resources/ApplicationSettings.d.ts +0 -69
- package/dist/types/resources/Branches.d.ts +0 -20
- package/dist/types/resources/BroadcastMessages.d.ts +0 -21
- package/dist/types/resources/CommitDiscussions.d.ts +0 -17
- package/dist/types/resources/Commits.d.ts +0 -132
- package/dist/types/resources/ContainerRegistry.d.ts +0 -37
- package/dist/types/resources/DeployKeys.d.ts +0 -19
- package/dist/types/resources/Deployments.d.ts +0 -44
- package/dist/types/resources/DockerfileTemplates.d.ts +0 -5
- package/dist/types/resources/Environments.d.ts +0 -22
- package/dist/types/resources/EpicDiscussions.d.ts +0 -17
- package/dist/types/resources/EpicIssues.d.ts +0 -12
- package/dist/types/resources/EpicNotes.d.ts +0 -18
- package/dist/types/resources/Epics.d.ts +0 -47
- package/dist/types/resources/Events.d.ts +0 -29
- package/dist/types/resources/FeatureFlags.d.ts +0 -33
- package/dist/types/resources/FreezePeriods.d.ts +0 -17
- package/dist/types/resources/GeoNodes.d.ts +0 -143
- package/dist/types/resources/GitLabCIYMLTemplates.d.ts +0 -5
- package/dist/types/resources/GitignoreTemplates.d.ts +0 -5
- package/dist/types/resources/Gitlab.d.ts +0 -202
- package/dist/types/resources/GroupAccessRequests.d.ts +0 -15
- package/dist/types/resources/GroupBadges.d.ts +0 -18
- package/dist/types/resources/GroupCustomAttributes.d.ts +0 -13
- package/dist/types/resources/GroupDeployTokens.d.ts +0 -14
- package/dist/types/resources/GroupIssueBoards.d.ts +0 -23
- package/dist/types/resources/GroupLabels.d.ts +0 -15
- package/dist/types/resources/GroupMembers.d.ts +0 -14
- package/dist/types/resources/GroupMilestones.d.ts +0 -17
- package/dist/types/resources/GroupRunners.d.ts +0 -6
- package/dist/types/resources/GroupVariables.d.ts +0 -14
- package/dist/types/resources/Groups.d.ts +0 -67
- package/dist/types/resources/IssueAwardEmojis.d.ts +0 -13
- package/dist/types/resources/IssueDiscussions.d.ts +0 -17
- package/dist/types/resources/IssueNoteAwardEmojis.d.ts +0 -13
- package/dist/types/resources/IssueNotes.d.ts +0 -22
- package/dist/types/resources/Issues.d.ts +0 -111
- package/dist/types/resources/IssuesStatistics.d.ts +0 -17
- package/dist/types/resources/Jobs.d.ts +0 -84
- package/dist/types/resources/Keys.d.ts +0 -14
- package/dist/types/resources/Labels.d.ts +0 -15
- package/dist/types/resources/License.d.ts +0 -28
- package/dist/types/resources/LicenseTemplates.d.ts +0 -23
- package/dist/types/resources/Lint.d.ts +0 -15
- package/dist/types/resources/Markdown.d.ts +0 -11
- package/dist/types/resources/MergeRequestApprovals.d.ts +0 -98
- package/dist/types/resources/MergeRequestAwardEmojis.d.ts +0 -13
- package/dist/types/resources/MergeRequestDiscussions.d.ts +0 -20
- package/dist/types/resources/MergeRequestNotes.d.ts +0 -22
- package/dist/types/resources/MergeRequests.d.ts +0 -192
- package/dist/types/resources/Namespaces.d.ts +0 -22
- package/dist/types/resources/NotificationSettings.d.ts +0 -21
- package/dist/types/resources/PackageRegistry.d.ts +0 -14
- package/dist/types/resources/Packages.d.ts +0 -30
- package/dist/types/resources/PagesDomains.d.ts +0 -21
- package/dist/types/resources/PipelineScheduleVariables.d.ts +0 -10
- package/dist/types/resources/PipelineSchedules.d.ts +0 -29
- package/dist/types/resources/Pipelines.d.ts +0 -40
- package/dist/types/resources/ProjectAccessRequests.d.ts +0 -15
- package/dist/types/resources/ProjectBadges.d.ts +0 -18
- package/dist/types/resources/ProjectCustomAttributes.d.ts +0 -13
- package/dist/types/resources/ProjectDeployTokens.d.ts +0 -14
- package/dist/types/resources/ProjectHooks.d.ts +0 -29
- package/dist/types/resources/ProjectImportExport.d.ts +0 -54
- package/dist/types/resources/ProjectIssueBoards.d.ts +0 -23
- package/dist/types/resources/ProjectMembers.d.ts +0 -14
- package/dist/types/resources/ProjectMilestones.d.ts +0 -17
- package/dist/types/resources/ProjectSnippetAwardEmojis.d.ts +0 -13
- package/dist/types/resources/ProjectSnippetDiscussions.d.ts +0 -17
- package/dist/types/resources/ProjectSnippetNotes.d.ts +0 -18
- package/dist/types/resources/ProjectSnippets.d.ts +0 -29
- package/dist/types/resources/ProjectVariables.d.ts +0 -14
- package/dist/types/resources/Projects.d.ts +0 -161
- package/dist/types/resources/ProtectedBranches.d.ts +0 -24
- package/dist/types/resources/ProtectedTags.d.ts +0 -16
- package/dist/types/resources/PushRules.d.ts +0 -24
- package/dist/types/resources/ReleaseLinks.d.ts +0 -24
- package/dist/types/resources/Releases.d.ts +0 -48
- package/dist/types/resources/Repositories.d.ts +0 -37
- package/dist/types/resources/RepositoryFiles.d.ts +0 -31
- package/dist/types/resources/RepositorySubmodules.d.ts +0 -20
- package/dist/types/resources/Runners.d.ts +0 -38
- package/dist/types/resources/Search.d.ts +0 -26
- package/dist/types/resources/Services.d.ts +0 -29
- package/dist/types/resources/SidekiqMetrics.d.ts +0 -37
- package/dist/types/resources/Snippets.d.ts +0 -42
- package/dist/types/resources/SystemHooks.d.ts +0 -18
- package/dist/types/resources/Tags.d.ts +0 -18
- package/dist/types/resources/Todos.d.ts +0 -48
- package/dist/types/resources/Triggers.d.ts +0 -22
- package/dist/types/resources/UserCustomAttributes.d.ts +0 -13
- package/dist/types/resources/UserEmails.d.ts +0 -19
- package/dist/types/resources/UserGPGKeys.d.ts +0 -21
- package/dist/types/resources/UserImpersonationTokens.d.ts +0 -23
- package/dist/types/resources/UserSSHKeys.d.ts +0 -22
- package/dist/types/resources/Users.d.ts +0 -57
- package/dist/types/resources/Version.d.ts +0 -9
- package/dist/types/resources/VulnerabilityFindings.d.ts +0 -69
- package/dist/types/resources/Wikis.d.ts +0 -15
- package/dist/types/resources/index.d.ts +0 -98
- package/dist/types/resources/types.d.ts +0 -68
- package/dist/types/templates/ResourceAccessRequests.d.ts +0 -20
- package/dist/types/templates/ResourceAwardEmojis.d.ts +0 -21
- package/dist/types/templates/ResourceBadges.d.ts +0 -20
- package/dist/types/templates/ResourceCustomAttributes.d.ts +0 -13
- package/dist/types/templates/ResourceDeployTokens.d.ts +0 -20
- package/dist/types/templates/ResourceDiscussions.d.ts +0 -48
- package/dist/types/templates/ResourceIssueBoards.d.ts +0 -31
- package/dist/types/templates/ResourceLabels.d.ts +0 -25
- package/dist/types/templates/ResourceMembers.d.ts +0 -30
- package/dist/types/templates/ResourceMilestones.d.ts +0 -27
- package/dist/types/templates/ResourceNoteAwardEmojis.d.ts +0 -11
- package/dist/types/templates/ResourceNotes.d.ts +0 -20
- package/dist/types/templates/ResourceTemplates.d.ts +0 -11
- package/dist/types/templates/ResourceVariables.d.ts +0 -18
- package/dist/types/templates/index.d.ts +0 -14
- package/dist/types/templates/types.d.ts +0 -13
- package/dist/types/types.d.ts +0 -3
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceNotes } from '../templates';
|
|
3
|
-
import { NoteSchema } from '../templates/types';
|
|
4
|
-
import { PaginatedRequestOptions, BaseRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
-
export interface SnippetNoteSchema extends NoteSchema {
|
|
6
|
-
file_name: string;
|
|
7
|
-
expires_at: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ProjectSnippetNotes<C extends boolean = false> extends ResourceNotes<C> {
|
|
10
|
-
all(projectId: string | number, snippetId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, SnippetNoteSchema>[]>;
|
|
11
|
-
create(projectId: string | number, snippetId: string | number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, SnippetNoteSchema>>;
|
|
12
|
-
edit(projectId: string | number, snippetId: string | number, noteId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, SnippetNoteSchema>>;
|
|
13
|
-
remove(projectId: string | number, snippetId: string | number, noteId: number, options?: Sudo): Promise<void>;
|
|
14
|
-
show(projectId: string | number, snippetId: string | number, noteId: number, options?: Sudo): Promise<CamelizedRecord<C, SnippetNoteSchema>>;
|
|
15
|
-
}
|
|
16
|
-
export declare class ProjectSnippetNotes<C extends boolean = false> extends ResourceNotes<C> {
|
|
17
|
-
constructor(options: BaseResourceOptions<C>);
|
|
18
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
import { SnippetVisibility } from './Snippets';
|
|
4
|
-
import { UserSchema } from './Users';
|
|
5
|
-
export interface ProjectSnippetSchema extends Record<string, unknown> {
|
|
6
|
-
id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
file_name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
author: Pick<UserSchema, 'id' | 'username' | 'name' | 'state' | 'created_at'>;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
created_at: string;
|
|
13
|
-
project_id: number;
|
|
14
|
-
web_url: string;
|
|
15
|
-
raw_url: string;
|
|
16
|
-
}
|
|
17
|
-
export declare class ProjectSnippets<C extends boolean = false> extends BaseResource<C> {
|
|
18
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectSnippetSchema>[]>;
|
|
19
|
-
content(projectId: string | number, snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
20
|
-
create(projectId: string | number, title: string, fileName: string, code: string, visibility: SnippetVisibility, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectSnippetSchema>>;
|
|
21
|
-
edit(projectId: string | number, snippetId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectSnippetSchema>>;
|
|
22
|
-
remove(projectId: string | number, snippetId: number, options?: Sudo): Promise<void>;
|
|
23
|
-
show(projectId: string | number, snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProjectSnippetSchema>>;
|
|
24
|
-
userAgentDetails(projectId: string | number, snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, {
|
|
25
|
-
user_agent: string;
|
|
26
|
-
ip_address: string;
|
|
27
|
-
akismet_submitted: boolean;
|
|
28
|
-
}>>;
|
|
29
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceVariables } from '../templates';
|
|
3
|
-
import { VariableSchema } from '../templates/types';
|
|
4
|
-
import { BaseRequestOptions, PaginatedRequestOptions, CamelizedRecord } from '../infrastructure';
|
|
5
|
-
export interface ProjectVariables<C extends boolean = false> extends ResourceVariables<C> {
|
|
6
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, VariableSchema>[]>;
|
|
7
|
-
create(projectId: string | number, options?: BaseRequestOptions): Promise<CamelizedRecord<C, VariableSchema>>;
|
|
8
|
-
edit(projectId: string | number, keyId: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, VariableSchema>>;
|
|
9
|
-
show(projectId: string | number, keyId: string, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, VariableSchema>>;
|
|
10
|
-
remove(projectId: string | number, keyId: string, options?: PaginatedRequestOptions): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export declare class ProjectVariables<C extends boolean = false> extends ResourceVariables<C> {
|
|
13
|
-
constructor(options: BaseResourceOptions<C>);
|
|
14
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from './Users';
|
|
3
|
-
import { NamespaceSchema } from './Namespaces';
|
|
4
|
-
import { LicenseTemplateSchema } from './LicenseTemplates';
|
|
5
|
-
import { UploadMetadata } from './ProjectImportExport';
|
|
6
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
7
|
-
import { AccessLevel } from '../templates/types';
|
|
8
|
-
export interface ProjectSchema extends Record<string, unknown> {
|
|
9
|
-
id: number;
|
|
10
|
-
description?: string;
|
|
11
|
-
default_branch?: string;
|
|
12
|
-
ssh_url_to_repo: string;
|
|
13
|
-
http_url_to_repo: string;
|
|
14
|
-
web_url: string;
|
|
15
|
-
readme_url: string;
|
|
16
|
-
tag_list?: string[];
|
|
17
|
-
topics?: string[];
|
|
18
|
-
name: string;
|
|
19
|
-
name_with_namespace: string;
|
|
20
|
-
namespace: Pick<NamespaceSchema, 'id' | 'name' | 'path' | 'kind' | 'full_path' | 'avatar_url' | 'web_url'>;
|
|
21
|
-
path: string;
|
|
22
|
-
path_with_namespace: string;
|
|
23
|
-
created_at: string;
|
|
24
|
-
last_activity_at: string;
|
|
25
|
-
forks_count: number;
|
|
26
|
-
avatar_url: string;
|
|
27
|
-
star_count: number;
|
|
28
|
-
}
|
|
29
|
-
export interface AccessSchema {
|
|
30
|
-
access_level: AccessLevel;
|
|
31
|
-
notification_level: number;
|
|
32
|
-
}
|
|
33
|
-
export interface SharedWithGroupSchema {
|
|
34
|
-
group_id: number;
|
|
35
|
-
group_name: string;
|
|
36
|
-
group_full_path: string;
|
|
37
|
-
group_access_level: number;
|
|
38
|
-
}
|
|
39
|
-
export interface ProjectExtendedSchema extends ProjectSchema {
|
|
40
|
-
visibility: string;
|
|
41
|
-
owner: Pick<UserSchema, 'id' | 'name' | 'created_at'>;
|
|
42
|
-
issues_enabled: boolean;
|
|
43
|
-
open_issues_count: number;
|
|
44
|
-
merge_requests_enabled: boolean;
|
|
45
|
-
jobs_enabled: boolean;
|
|
46
|
-
wiki_enabled: boolean;
|
|
47
|
-
snippets_enabled: boolean;
|
|
48
|
-
can_create_merge_request_in: boolean;
|
|
49
|
-
resolve_outdated_diff_discussions: boolean;
|
|
50
|
-
container_registry_enabled: boolean;
|
|
51
|
-
container_expiration_policy: {
|
|
52
|
-
cadence: string;
|
|
53
|
-
enabled: boolean;
|
|
54
|
-
keep_n?: number;
|
|
55
|
-
older_than?: string;
|
|
56
|
-
name_regex_delete?: string;
|
|
57
|
-
name_regex_keep?: string;
|
|
58
|
-
next_run_at: string;
|
|
59
|
-
};
|
|
60
|
-
creator_id: number;
|
|
61
|
-
import_status: string;
|
|
62
|
-
import_error?: string;
|
|
63
|
-
permissions: {
|
|
64
|
-
project_access: AccessSchema;
|
|
65
|
-
group_access: AccessSchema;
|
|
66
|
-
};
|
|
67
|
-
archived: boolean;
|
|
68
|
-
license_url: string;
|
|
69
|
-
license: Pick<LicenseTemplateSchema, 'key' | 'name' | 'nickname' | 'html_url' | 'source_url'>;
|
|
70
|
-
shared_runners_enabled: boolean;
|
|
71
|
-
runners_token: string;
|
|
72
|
-
ci_default_git_depth: number;
|
|
73
|
-
ci_forward_deployment_enabled: boolean;
|
|
74
|
-
public_jobs: boolean;
|
|
75
|
-
shared_with_groups?: SharedWithGroupSchema[];
|
|
76
|
-
repository_storage: string;
|
|
77
|
-
only_allow_merge_if_pipeline_succeeds: boolean;
|
|
78
|
-
allow_merge_on_skipped_pipeline: boolean;
|
|
79
|
-
restrict_user_defined_variables: boolean;
|
|
80
|
-
only_allow_merge_if_all_discussions_are_resolved: boolean;
|
|
81
|
-
remove_source_branch_after_merge: boolean;
|
|
82
|
-
printing_merge_requests_link_enabled: boolean;
|
|
83
|
-
request_access_enabled: boolean;
|
|
84
|
-
merge_method: string;
|
|
85
|
-
auto_devops_enabled: boolean;
|
|
86
|
-
auto_devops_deploy_strategy: string;
|
|
87
|
-
approvals_before_merge: number;
|
|
88
|
-
mirror: boolean;
|
|
89
|
-
mirror_user_id: number;
|
|
90
|
-
mirror_trigger_builds: boolean;
|
|
91
|
-
only_mirror_protected_branches: boolean;
|
|
92
|
-
mirror_overwrites_diverged_branches: boolean;
|
|
93
|
-
external_authorization_classification_label?: string;
|
|
94
|
-
packages_enabled: boolean;
|
|
95
|
-
service_desk_enabled: boolean;
|
|
96
|
-
service_desk_address?: string;
|
|
97
|
-
autoclose_referenced_issues: boolean;
|
|
98
|
-
suggestion_commit_message?: string;
|
|
99
|
-
marked_for_deletion_at: string;
|
|
100
|
-
marked_for_deletion_on: string;
|
|
101
|
-
compliance_frameworks?: string[];
|
|
102
|
-
statistics: {
|
|
103
|
-
commit_count: number;
|
|
104
|
-
storage_size: number;
|
|
105
|
-
repository_size: number;
|
|
106
|
-
wiki_size: number;
|
|
107
|
-
lfs_objects_size: number;
|
|
108
|
-
job_artifacts_size: number;
|
|
109
|
-
packages_size: number;
|
|
110
|
-
snippets_size: number;
|
|
111
|
-
};
|
|
112
|
-
container_registry_image_prefix: string;
|
|
113
|
-
_links: {
|
|
114
|
-
self: string;
|
|
115
|
-
issues: string;
|
|
116
|
-
merge_requests: string;
|
|
117
|
-
repo_branches: string;
|
|
118
|
-
labels: string;
|
|
119
|
-
events: string;
|
|
120
|
-
members: string;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
export interface ProjectFileUploadSchema extends Record<string, unknown> {
|
|
124
|
-
alt: string;
|
|
125
|
-
url: string;
|
|
126
|
-
full_path: string;
|
|
127
|
-
markdown: string;
|
|
128
|
-
}
|
|
129
|
-
export declare class Projects<C extends boolean = false> extends BaseResource<C> {
|
|
130
|
-
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectSchema>[]>;
|
|
131
|
-
archive(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
132
|
-
create({ userId, ...options }: ({
|
|
133
|
-
name: string;
|
|
134
|
-
} | {
|
|
135
|
-
path: string;
|
|
136
|
-
}) & {
|
|
137
|
-
userId?: number;
|
|
138
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
139
|
-
edit(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
140
|
-
fork(projectId: string | number, { forkedFromId, ...options }?: {
|
|
141
|
-
forkedFromId?: number;
|
|
142
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
143
|
-
forks(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>[]>;
|
|
144
|
-
languages(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, {
|
|
145
|
-
[name: string]: number;
|
|
146
|
-
}>>;
|
|
147
|
-
mirrorPull(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
148
|
-
remove(projectId: string | number, options?: Sudo): Promise<void>;
|
|
149
|
-
removeFork(projectId: string | number, options?: Sudo): Promise<void>;
|
|
150
|
-
search(projectName: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectSchema>[]>;
|
|
151
|
-
share(projectId: string | number, groupId: string | number, groupAccess: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
152
|
-
show(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
153
|
-
star(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
154
|
-
transfer(projectId: string | number, namespaceId: string | number): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
155
|
-
unarchive(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
156
|
-
unshare(projectId: string | number, groupId: string | number, options?: Sudo): Promise<void>;
|
|
157
|
-
unstar(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>>;
|
|
158
|
-
upload(projectId: string | number, content: string, { metadata, ...options }?: {
|
|
159
|
-
metadata?: UploadMetadata;
|
|
160
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectFileUploadSchema>>;
|
|
161
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface ProtectedBranchAccessLevel {
|
|
4
|
-
access_level: 0 | 30 | 40 | 60;
|
|
5
|
-
access_level_description: string;
|
|
6
|
-
user_id?: number;
|
|
7
|
-
group_id?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface ProtectedBranchSchema extends Record<string, unknown> {
|
|
10
|
-
id: number;
|
|
11
|
-
name: string;
|
|
12
|
-
push_access_levels?: ProtectedBranchAccessLevel[];
|
|
13
|
-
merge_access_levels?: ProtectedBranchAccessLevel[];
|
|
14
|
-
allow_force_push: boolean;
|
|
15
|
-
code_owner_approval_required: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class ProtectedBranches<C extends boolean = false> extends BaseResource<C> {
|
|
18
|
-
all(projectId: string | number, options?: {
|
|
19
|
-
search?: string;
|
|
20
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProtectedBranchSchema>[]>;
|
|
21
|
-
protect(projectId: string | number, branchName: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProtectedBranchSchema>>;
|
|
22
|
-
show(projectId: string | number, branchName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProtectedBranchSchema>>;
|
|
23
|
-
unprotect(projectId: string | number, branchName: string, options?: Sudo): Promise<void>;
|
|
24
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface ProtectedTagAccessLevel {
|
|
4
|
-
access_level: 0 | 30 | 40 | 60;
|
|
5
|
-
access_level_description: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ProtectedTagSchema extends Record<string, unknown> {
|
|
8
|
-
name: string;
|
|
9
|
-
create_access_levels?: ProtectedTagAccessLevel[];
|
|
10
|
-
}
|
|
11
|
-
export declare class ProtectedTags<C extends boolean = false> extends BaseResource<C> {
|
|
12
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProtectedTagSchema>[]>;
|
|
13
|
-
protect(projectId: string | number, tagName: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProtectedTagSchema>>;
|
|
14
|
-
show(projectId: string | number, tagName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProtectedTagSchema>>;
|
|
15
|
-
unprotect(projectId: string | number, tagName: string, options?: Sudo): Promise<void>;
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface PushRulesSchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
project_id: number;
|
|
6
|
-
commit_message_regex: string;
|
|
7
|
-
commit_message_negative_regex: string;
|
|
8
|
-
branch_name_regex: string;
|
|
9
|
-
deny_delete_tag: boolean;
|
|
10
|
-
created_at: string;
|
|
11
|
-
member_check: boolean;
|
|
12
|
-
prevent_secrets: boolean;
|
|
13
|
-
author_email_regex: string;
|
|
14
|
-
file_name_regex: string;
|
|
15
|
-
max_file_size: number;
|
|
16
|
-
commit_committer_check?: boolean;
|
|
17
|
-
reject_unsigned_commits?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare class PushRules<C extends boolean = false> extends BaseResource<C> {
|
|
20
|
-
create(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PushRulesSchema>>;
|
|
21
|
-
edit(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PushRulesSchema>>;
|
|
22
|
-
remove(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, PushRulesSchema>>;
|
|
23
|
-
show(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, PushRulesSchema>>;
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface ReleaseLinkSchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
url: string;
|
|
7
|
-
external: boolean;
|
|
8
|
-
link_type: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class ReleaseLinks<C extends boolean = false> extends BaseResource<C> {
|
|
11
|
-
all(projectId: string | number, tagName: string, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseLinkSchema>[]>;
|
|
12
|
-
create(projectId: string | number, tagName: string, name: string, url: string, options?: Sudo & {
|
|
13
|
-
filePath?: string;
|
|
14
|
-
linkType?: string;
|
|
15
|
-
}): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseLinkSchema>>;
|
|
16
|
-
edit(projectId: string | number, tagName: string, linkId: number, options?: Sudo & {
|
|
17
|
-
name?: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
filePath?: string;
|
|
20
|
-
linkType?: string;
|
|
21
|
-
}): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseLinkSchema>>;
|
|
22
|
-
remove(projectId: string | number, tagName: string, linkId: number, options?: Sudo): Promise<void>;
|
|
23
|
-
show(projectId: string | number, tagName: string, linkId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseLinkSchema>>;
|
|
24
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from './Users';
|
|
3
|
-
import { CommitSchema } from './Commits';
|
|
4
|
-
import { MilestoneSchema } from '../templates/types';
|
|
5
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
6
|
-
export interface ReleaseEvidence {
|
|
7
|
-
sha: string;
|
|
8
|
-
filepath: string;
|
|
9
|
-
collected_at: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ReleaseAssetSource {
|
|
12
|
-
format: string;
|
|
13
|
-
url: string;
|
|
14
|
-
}
|
|
15
|
-
export interface ReleaseAssetLink {
|
|
16
|
-
id: number;
|
|
17
|
-
name: string;
|
|
18
|
-
url: string;
|
|
19
|
-
external: boolean;
|
|
20
|
-
link_type: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ReleaseSchema extends Record<string, unknown> {
|
|
23
|
-
tag_name: string;
|
|
24
|
-
description: string;
|
|
25
|
-
name: string;
|
|
26
|
-
description_html: string;
|
|
27
|
-
created_at: string;
|
|
28
|
-
released_at: string;
|
|
29
|
-
user: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
30
|
-
commit: CommitSchema;
|
|
31
|
-
milestones?: MilestoneSchema[];
|
|
32
|
-
commit_path: string;
|
|
33
|
-
tag_path: string;
|
|
34
|
-
assets: {
|
|
35
|
-
count: number;
|
|
36
|
-
sources?: ReleaseAssetSource[];
|
|
37
|
-
links?: ReleaseAssetLink[];
|
|
38
|
-
evidence_file_path: string;
|
|
39
|
-
};
|
|
40
|
-
evidences?: ReleaseEvidence[];
|
|
41
|
-
}
|
|
42
|
-
export declare class Releases<C extends boolean = false> extends BaseResource<C> {
|
|
43
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseSchema>[]>;
|
|
44
|
-
create(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseSchema>>;
|
|
45
|
-
edit(projectId: string | number, tagName: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseSchema>>;
|
|
46
|
-
remove(projectId: string | number, tagName: string, options?: Sudo): Promise<void>;
|
|
47
|
-
show(projectId: string | number, tagName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ReleaseSchema>>;
|
|
48
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { CommitSchema, CommitDiffSchema } from './Commits';
|
|
3
|
-
import { Sudo, BaseRequestOptions } from '../infrastructure';
|
|
4
|
-
declare type ArchiveType = 'tar.gz' | 'tar.bz2' | 'tbz' | 'tbz2' | 'tb2' | 'bz2' | 'tar' | 'zip';
|
|
5
|
-
export interface RepositoryCompareSchema extends Record<string, unknown> {
|
|
6
|
-
commit: Pick<CommitSchema, 'id' | 'short_id' | 'title' | 'author_name' | 'author_email' | 'created_at'>;
|
|
7
|
-
commits?: Pick<CommitSchema, 'id' | 'short_id' | 'title' | 'author_name' | 'author_email' | 'created_at'>[];
|
|
8
|
-
diffs?: CommitDiffSchema[];
|
|
9
|
-
compare_timeout: boolean;
|
|
10
|
-
compare_same_ref: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface RepositoryContributorSchema extends Record<string, unknown> {
|
|
13
|
-
name: string;
|
|
14
|
-
email: string;
|
|
15
|
-
commits: number;
|
|
16
|
-
additions: number;
|
|
17
|
-
deletions: number;
|
|
18
|
-
}
|
|
19
|
-
export interface RepositoryTreeSchema extends Record<string, unknown> {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
type: string;
|
|
23
|
-
path: string;
|
|
24
|
-
mode: string;
|
|
25
|
-
}
|
|
26
|
-
export declare class Repositories<C extends boolean = false> extends BaseResource<C> {
|
|
27
|
-
compare(projectId: string | number, from: string, to: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RepositoryCompareSchema>>;
|
|
28
|
-
contributors(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RepositoryContributorSchema>[]>;
|
|
29
|
-
mergeBase(projectId: string | number, refs: string[], options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitSchema>>;
|
|
30
|
-
showArchive(projectId: string | number, { fileType, ...options }?: {
|
|
31
|
-
fileType?: ArchiveType;
|
|
32
|
-
} & Sudo): Promise<string>;
|
|
33
|
-
showBlob(projectId: string | number, sha: string, options?: Sudo): Promise<Blob>;
|
|
34
|
-
showBlobRaw(projectId: string | number, sha: string, options?: Sudo): Promise<Blob>;
|
|
35
|
-
tree(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, RepositoryTreeSchema>[]>;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { CommitSchema } from './Commits';
|
|
3
|
-
import { BaseRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
-
export interface RepositoryFileExtendedSchema extends Record<string, unknown> {
|
|
5
|
-
file_name: string;
|
|
6
|
-
file_path: string;
|
|
7
|
-
size: number;
|
|
8
|
-
encoding: string;
|
|
9
|
-
content: string;
|
|
10
|
-
content_sha256: string;
|
|
11
|
-
ref: string;
|
|
12
|
-
blob_id: string;
|
|
13
|
-
commit_id: string;
|
|
14
|
-
last_commit_id: string;
|
|
15
|
-
}
|
|
16
|
-
export interface RepositoryFileBlameSchema extends Record<string, unknown> {
|
|
17
|
-
commit: CommitSchema;
|
|
18
|
-
lines?: string[];
|
|
19
|
-
}
|
|
20
|
-
export interface RepositoryFileSchema extends Record<string, unknown> {
|
|
21
|
-
file_path: string;
|
|
22
|
-
branch: string;
|
|
23
|
-
}
|
|
24
|
-
export declare class RepositoryFiles<C extends boolean = false> extends BaseResource<C> {
|
|
25
|
-
create(projectId: string | number, filePath: string, branch: string, content: string, commitMessage: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, RepositoryFileSchema>>;
|
|
26
|
-
edit(projectId: string | number, filePath: string, branch: string, content: string, commitMessage: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, RepositoryFileSchema>>;
|
|
27
|
-
remove(projectId: string | number, filePath: string, branch: string, commitMessage: string, options?: BaseRequestOptions): Promise<void>;
|
|
28
|
-
show(projectId: string | number, filePath: string, ref: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RepositoryFileExtendedSchema>>;
|
|
29
|
-
showBlame(projectId: string | number, filePath: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RepositoryFileBlameSchema>[]>;
|
|
30
|
-
showRaw(projectId: string | number, filePath: string, options?: BaseRequestOptions): Promise<string>;
|
|
31
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface RepositorySubmoduleSchema extends Record<string, unknown> {
|
|
4
|
-
id: string;
|
|
5
|
-
short_id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
author_name: string;
|
|
8
|
-
author_email: string;
|
|
9
|
-
committer_name: string;
|
|
10
|
-
committer_email: string;
|
|
11
|
-
created_at: string;
|
|
12
|
-
message: string;
|
|
13
|
-
parent_ids: string[];
|
|
14
|
-
committed_date: Date;
|
|
15
|
-
authored_date: Date;
|
|
16
|
-
status?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare class RepositorySubmodules<C extends boolean = false> extends BaseResource<C> {
|
|
19
|
-
edit(projectId: string | number, submodule: string, branch: string, commit_sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, RepositorySubmoduleSchema>>;
|
|
20
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ProjectSchema } from './Projects';
|
|
3
|
-
import { JobSchema } from './Jobs';
|
|
4
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
5
|
-
export interface RunnerSchema extends Record<string, unknown> {
|
|
6
|
-
id: number;
|
|
7
|
-
description: string;
|
|
8
|
-
ip_address: string;
|
|
9
|
-
active: boolean;
|
|
10
|
-
is_shared: boolean;
|
|
11
|
-
name: string;
|
|
12
|
-
online: boolean;
|
|
13
|
-
status: 'running' | 'success' | 'failed' | 'canceled';
|
|
14
|
-
}
|
|
15
|
-
export interface RunnerExtendedSchema extends RunnerSchema {
|
|
16
|
-
architecture?: string;
|
|
17
|
-
description: string;
|
|
18
|
-
contacted_at: string;
|
|
19
|
-
platform?: string;
|
|
20
|
-
projects?: Pick<ProjectSchema, 'id' | 'name' | 'name_with_namespace' | 'path' | 'path_with_namespace'>;
|
|
21
|
-
revision?: string;
|
|
22
|
-
tag_list?: string[];
|
|
23
|
-
version?: string;
|
|
24
|
-
access_level: string;
|
|
25
|
-
maximum_timeout?: number;
|
|
26
|
-
}
|
|
27
|
-
export declare class Runners<C extends boolean = false> extends BaseResource<C> {
|
|
28
|
-
all({ projectId, ...options }?: {
|
|
29
|
-
projectId?: string | number;
|
|
30
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, RunnerSchema>[]>;
|
|
31
|
-
allOwned(options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, RunnerSchema>[]>;
|
|
32
|
-
edit(runnerId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, RunnerExtendedSchema>>;
|
|
33
|
-
enable(projectId: string | number, runnerId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RunnerSchema>>;
|
|
34
|
-
disable(projectId: string | number, runnerId: number, options?: Sudo): Promise<void>;
|
|
35
|
-
jobs(runnerId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, JobSchema>[]>;
|
|
36
|
-
remove(runnerId: number, options?: Sudo): Promise<void>;
|
|
37
|
-
show(runnerId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RunnerExtendedSchema>>;
|
|
38
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface SearchResultSchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
description: string;
|
|
6
|
-
name: string;
|
|
7
|
-
name_with_namespace: string;
|
|
8
|
-
path: string;
|
|
9
|
-
path_with_namespace: string;
|
|
10
|
-
created_at: string;
|
|
11
|
-
default_branch: string;
|
|
12
|
-
tag_list?: string[];
|
|
13
|
-
ssh_url_to_repo: string;
|
|
14
|
-
http_url_to_repo: string;
|
|
15
|
-
web_url: string;
|
|
16
|
-
avatar_url?: string;
|
|
17
|
-
star_count: number;
|
|
18
|
-
forks_count: number;
|
|
19
|
-
last_activity_at: string;
|
|
20
|
-
}
|
|
21
|
-
export declare class Search<C extends boolean = false> extends BaseResource<C> {
|
|
22
|
-
all(scope: string, search: string, { projectId, groupId, ...options }?: {
|
|
23
|
-
projectId?: string | number;
|
|
24
|
-
groupId?: string | number;
|
|
25
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SearchResultSchema>[]>;
|
|
26
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export declare type SupportedService = 'asana' | 'assembla' | 'bamboo' | 'bugzilla' | 'buildkite' | 'campfire' | 'custom-issue-tracker' | 'drone-ci' | 'emails-on-push' | 'external-wiki' | 'flowdock' | 'hangouts_chat' | 'hipchat' | 'irker' | 'jira' | 'kubernetes' | 'slack-slash-commands' | 'slack' | 'packagist' | 'pipelines-email' | 'pivotaltracker' | 'prometheus' | 'pushover' | 'redmine' | 'microsoft-teams' | 'mattermost' | 'mattermost-slash-commands' | 'teamcity' | 'jenkins' | 'jenkins-deprecated' | 'mock-ci' | 'youtrack';
|
|
4
|
-
export interface ServiceSchema extends Record<string, unknown> {
|
|
5
|
-
id: number;
|
|
6
|
-
title: string;
|
|
7
|
-
slug: string;
|
|
8
|
-
created_at: string;
|
|
9
|
-
updated_at: string;
|
|
10
|
-
active: boolean;
|
|
11
|
-
commit_events: boolean;
|
|
12
|
-
push_events: boolean;
|
|
13
|
-
issues_events: boolean;
|
|
14
|
-
confidential_issues_events: boolean;
|
|
15
|
-
merge_requests_events: boolean;
|
|
16
|
-
tag_push_events: boolean;
|
|
17
|
-
note_events: boolean;
|
|
18
|
-
confidential_note_events: boolean;
|
|
19
|
-
pipeline_events: boolean;
|
|
20
|
-
wiki_page_events: boolean;
|
|
21
|
-
job_events: boolean;
|
|
22
|
-
comment_on_event_enabled: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare class Services<C extends boolean = false> extends BaseResource<C> {
|
|
25
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ServiceSchema>[]>;
|
|
26
|
-
edit(projectId: string | number, serviceName: SupportedService, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ServiceSchema>>;
|
|
27
|
-
remove(projectId: string | number, serviceName: SupportedService, options?: Sudo): Promise<void>;
|
|
28
|
-
show(projectId: string | number, serviceName: SupportedService, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ServiceSchema>>;
|
|
29
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
export interface ProcessMetricSchema {
|
|
3
|
-
hostname: string;
|
|
4
|
-
pid: number;
|
|
5
|
-
tag: string;
|
|
6
|
-
started_at: string;
|
|
7
|
-
queues?: string[];
|
|
8
|
-
labels?: string[];
|
|
9
|
-
concurrency: number;
|
|
10
|
-
busy: number;
|
|
11
|
-
}
|
|
12
|
-
export interface SidekickProcessMetricsSchema extends Record<string, unknown> {
|
|
13
|
-
processes?: ProcessMetricSchema[];
|
|
14
|
-
}
|
|
15
|
-
export interface SidekickQueueMetricsSchema extends Record<string, unknown> {
|
|
16
|
-
queues: {
|
|
17
|
-
default: {
|
|
18
|
-
backlog: number;
|
|
19
|
-
latency: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export interface SidekickJobStatsSchema extends Record<string, unknown> {
|
|
24
|
-
jobs: {
|
|
25
|
-
processed: number;
|
|
26
|
-
failed: number;
|
|
27
|
-
enqueued: number;
|
|
28
|
-
dead: number;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export declare type SidekickCompoundMetricsSchema = SidekickJobStatsSchema & SidekickQueueMetricsSchema & SidekickProcessMetricsSchema;
|
|
32
|
-
export declare class SidekiqMetrics<C extends boolean = false> extends BaseResource<C> {
|
|
33
|
-
queueMetrics(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickQueueMetricsSchema>>;
|
|
34
|
-
processMetrics(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickProcessMetricsSchema>>;
|
|
35
|
-
jobStats(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickJobStatsSchema>>;
|
|
36
|
-
compoundMetrics(): Promise<import("../infrastructure").CamelizedRecord<C, SidekickCompoundMetricsSchema>>;
|
|
37
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from './Users';
|
|
3
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
-
export declare type SnippetVisibility = 'private' | 'public' | 'internal';
|
|
5
|
-
export interface SnippetSchema extends Record<string, unknown> {
|
|
6
|
-
id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
file_name: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
visibility: string;
|
|
11
|
-
author: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
12
|
-
updated_at: string;
|
|
13
|
-
created_at: string;
|
|
14
|
-
project_id?: string | number;
|
|
15
|
-
web_url: string;
|
|
16
|
-
raw_url: string;
|
|
17
|
-
}
|
|
18
|
-
export interface SnippetExtendedSchema extends SnippetSchema {
|
|
19
|
-
expires_at?: string;
|
|
20
|
-
ssh_url_to_repo: string;
|
|
21
|
-
http_url_to_repo: string;
|
|
22
|
-
files?: {
|
|
23
|
-
path: string;
|
|
24
|
-
raw_url: string;
|
|
25
|
-
}[];
|
|
26
|
-
}
|
|
27
|
-
export interface UserAgentDetailSchema extends Record<string, unknown> {
|
|
28
|
-
user_agent: string;
|
|
29
|
-
ip_address: string;
|
|
30
|
-
akismet_submitted: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare class Snippets<C extends boolean = false> extends BaseResource<C> {
|
|
33
|
-
all({ public: p, ...options }?: {
|
|
34
|
-
public?: boolean;
|
|
35
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SnippetSchema>[]>;
|
|
36
|
-
content(snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
37
|
-
create(title: string, fileName: string, content: string, visibility: SnippetVisibility, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SnippetExtendedSchema>>;
|
|
38
|
-
edit(snippetId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SnippetExtendedSchema>>;
|
|
39
|
-
remove(snippetId: number, options?: Sudo): Promise<void>;
|
|
40
|
-
show(snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, SnippetSchema>>;
|
|
41
|
-
userAgentDetails(snippetId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserAgentDetailSchema>>;
|
|
42
|
-
}
|