@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 { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface SystemHookSchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
url: string;
|
|
6
|
-
created_at: string;
|
|
7
|
-
push_events: boolean;
|
|
8
|
-
tag_push_events: boolean;
|
|
9
|
-
merge_requests_events: boolean;
|
|
10
|
-
repository_update_events: boolean;
|
|
11
|
-
enable_ssl_verification: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare class SystemHooks<C extends boolean = false> extends BaseResource<C> {
|
|
14
|
-
add(url: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SystemHookSchema>>;
|
|
15
|
-
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SystemHookSchema>[]>;
|
|
16
|
-
edit(hookId: number, url: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, SystemHookSchema>>;
|
|
17
|
-
remove(hookId: number, options?: Sudo): Promise<void>;
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { CommitSchema } from './Commits';
|
|
3
|
-
import { ReleaseSchema } from './Releases';
|
|
4
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
5
|
-
export interface TagSchema extends Record<string, unknown> {
|
|
6
|
-
commit: CommitSchema;
|
|
7
|
-
release: Pick<ReleaseSchema, 'tag_name' | 'description'>;
|
|
8
|
-
name: string;
|
|
9
|
-
target: string;
|
|
10
|
-
message?: string;
|
|
11
|
-
protected: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare class Tags<C extends boolean = false> extends BaseResource<C> {
|
|
14
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, TagSchema>[]>;
|
|
15
|
-
create(projectId: string | number, tagName: string, ref: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, TagSchema>>;
|
|
16
|
-
remove(projectId: string | number, tagName: string, options?: Sudo): Promise<void>;
|
|
17
|
-
show(projectId: string | number, tagName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, TagSchema>>;
|
|
18
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from './Users';
|
|
3
|
-
import { ProjectSchema } from './Projects';
|
|
4
|
-
import { MilestoneSchema } from '../templates/types';
|
|
5
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
6
|
-
export interface TodoSchema extends Record<string, unknown> {
|
|
7
|
-
id: number;
|
|
8
|
-
project: Pick<ProjectSchema, 'id' | 'name' | 'name_with_namespace' | 'path' | 'path_with_namespace'>;
|
|
9
|
-
author: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
10
|
-
action_name: string;
|
|
11
|
-
target_type: string;
|
|
12
|
-
target: {
|
|
13
|
-
id: number;
|
|
14
|
-
iid: number;
|
|
15
|
-
project_id: number;
|
|
16
|
-
title: string;
|
|
17
|
-
description: string;
|
|
18
|
-
state: string;
|
|
19
|
-
created_at: string;
|
|
20
|
-
updated_at: string;
|
|
21
|
-
target_branch: string;
|
|
22
|
-
source_branch: string;
|
|
23
|
-
upvotes: number;
|
|
24
|
-
downvotes: number;
|
|
25
|
-
author: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
26
|
-
assignee: Pick<UserSchema, 'name' | 'username' | 'id' | 'state' | 'avatar_url' | 'web_url'>;
|
|
27
|
-
source_project_id: number;
|
|
28
|
-
target_project_id: number;
|
|
29
|
-
labels?: string[];
|
|
30
|
-
work_in_progress: boolean;
|
|
31
|
-
milestone: Omit<MilestoneSchema, 'start_date' | 'expired' | 'web_url'>;
|
|
32
|
-
merge_when_pipeline_succeeds: boolean;
|
|
33
|
-
merge_status: string;
|
|
34
|
-
user_notes_count: number;
|
|
35
|
-
};
|
|
36
|
-
target_url: string;
|
|
37
|
-
body: string;
|
|
38
|
-
state: string;
|
|
39
|
-
created_at: string;
|
|
40
|
-
updated_at: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class Todos<C extends boolean = false> extends BaseResource<C> {
|
|
43
|
-
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, TodoSchema>[]>;
|
|
44
|
-
create(projectId: string | number, resourceId: number, resourceName: 'mergerequest' | 'issue', options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, TodoSchema>>;
|
|
45
|
-
done({ todoId, ...options }?: {
|
|
46
|
-
todoId?: number;
|
|
47
|
-
} & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, TodoSchema>> | Promise<void>;
|
|
48
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from './Users';
|
|
3
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
-
export interface PipelineTriggerSchema extends Record<string, unknown> {
|
|
5
|
-
id: number;
|
|
6
|
-
description: string;
|
|
7
|
-
created_at: string;
|
|
8
|
-
last_used?: string;
|
|
9
|
-
token: string;
|
|
10
|
-
updated_at: string;
|
|
11
|
-
owner: Pick<UserSchema, 'id' | 'name' | 'created_at'>;
|
|
12
|
-
}
|
|
13
|
-
export declare class Triggers<C extends boolean = false> extends BaseResource<C> {
|
|
14
|
-
add(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>>;
|
|
15
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>[]>;
|
|
16
|
-
edit(projectId: string | number, triggerId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>>;
|
|
17
|
-
pipeline(projectId: string | number, ref: string, token: string, { variables }?: {
|
|
18
|
-
variables?: Record<string, string>;
|
|
19
|
-
}): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
20
|
-
remove(projectId: string | number, triggerId: number, options?: Sudo): Promise<void>;
|
|
21
|
-
show(projectId: string | number, triggerId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, PipelineTriggerSchema>>;
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceCustomAttributes } from '../templates';
|
|
3
|
-
import { CustomAttributeSchema } from '../templates/types';
|
|
4
|
-
import { PaginatedRequestOptions, CamelizedRecord, Sudo } from '../infrastructure';
|
|
5
|
-
export interface UserCustomAttributes<C extends boolean = false> extends ResourceCustomAttributes<C> {
|
|
6
|
-
all(userId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, CustomAttributeSchema>[]>;
|
|
7
|
-
set(userId: string | number, customAttributeId: number, value: string, options?: Sudo): Promise<CamelizedRecord<C, CustomAttributeSchema>>;
|
|
8
|
-
remove(userId: string | number, customAttributeId: number, options?: Sudo): Promise<void>;
|
|
9
|
-
show(userId: string | number, customAttributeId: number, options?: Sudo): Promise<CamelizedRecord<C, CustomAttributeSchema>>;
|
|
10
|
-
}
|
|
11
|
-
export declare class UserCustomAttributes<C extends boolean = false> extends ResourceCustomAttributes<C> {
|
|
12
|
-
constructor(options: BaseResourceOptions<C>);
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, Sudo, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface UserEmailSchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
email: string;
|
|
6
|
-
confirmed_at: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class UserEmails<C extends boolean = false> extends BaseResource<C> {
|
|
9
|
-
all({ userId, ...options }?: {
|
|
10
|
-
userId?: number;
|
|
11
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserEmailSchema>[]>;
|
|
12
|
-
add(email: string, { userId, ...options }?: {
|
|
13
|
-
userId?: number;
|
|
14
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserEmailSchema>>;
|
|
15
|
-
show(emailId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserEmailSchema>>;
|
|
16
|
-
remove(emailId: number, { userId, ...options }?: {
|
|
17
|
-
userId?: number;
|
|
18
|
-
} & Sudo): Promise<void>;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, Sudo, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface UserGPGKeySchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
key: string;
|
|
6
|
-
created_at: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class UserGPGKeys<C extends boolean = false> extends BaseResource<C> {
|
|
9
|
-
all({ userId, ...options }?: {
|
|
10
|
-
userId?: number;
|
|
11
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserGPGKeySchema>[]>;
|
|
12
|
-
add(key: string, { userId, ...options }?: {
|
|
13
|
-
userId?: number;
|
|
14
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserGPGKeySchema>>;
|
|
15
|
-
show(keyId: number, { userId, ...options }?: {
|
|
16
|
-
userId?: number;
|
|
17
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserGPGKeySchema>>;
|
|
18
|
-
remove(keyId: number, { userId, ...options }?: {
|
|
19
|
-
userId?: number;
|
|
20
|
-
} & Sudo): Promise<void>;
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export declare type ImpersonationTokenScope = 'api' | 'read_user';
|
|
4
|
-
export declare type ImpersonationTokenState = 'all' | 'active' | 'inactive';
|
|
5
|
-
export interface UserImpersonationTokenSchema extends Record<string, unknown> {
|
|
6
|
-
active: boolean;
|
|
7
|
-
user_id: number;
|
|
8
|
-
scopes?: string[];
|
|
9
|
-
revoked: boolean;
|
|
10
|
-
name: string;
|
|
11
|
-
id: number;
|
|
12
|
-
created_at: string;
|
|
13
|
-
impersonation: boolean;
|
|
14
|
-
expires_at: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class UserImpersonationTokens<C extends boolean = false> extends BaseResource<C> {
|
|
17
|
-
all(userId: number, options?: {
|
|
18
|
-
state?: ImpersonationTokenState;
|
|
19
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserImpersonationTokenSchema>[]>;
|
|
20
|
-
add(userId: number, name: string, scopes: ImpersonationTokenScope, expiresAt: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserImpersonationTokenSchema>>;
|
|
21
|
-
show(userId: number, tokenId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserImpersonationTokenSchema>>;
|
|
22
|
-
revoke(userId: number, tokenId: number, options?: Sudo): Promise<void>;
|
|
23
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, Sudo, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface UserSSHKeySchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
key: string;
|
|
6
|
-
title: string;
|
|
7
|
-
created_at: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class UserSSHKeys<C extends boolean = false> extends BaseResource<C> {
|
|
10
|
-
all({ userId, ...options }?: {
|
|
11
|
-
userId?: number;
|
|
12
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSSHKeySchema>[]>;
|
|
13
|
-
create(title: string, key: string, { userId, ...options }?: {
|
|
14
|
-
userId?: number;
|
|
15
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSSHKeySchema>>;
|
|
16
|
-
show(keyId: number, { userId, ...options }?: {
|
|
17
|
-
userId?: number;
|
|
18
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSSHKeySchema>>;
|
|
19
|
-
remove(keyId: number, { userId, ...options }?: {
|
|
20
|
-
userId?: number;
|
|
21
|
-
} & Sudo): Promise<void>;
|
|
22
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
import { ProjectExtendedSchema } from './Projects';
|
|
4
|
-
import { EventOptions, EventSchema } from './Events';
|
|
5
|
-
export interface UserSchema extends Record<string, unknown> {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
username: string;
|
|
9
|
-
state: string;
|
|
10
|
-
avatar_url: string;
|
|
11
|
-
web_url: string;
|
|
12
|
-
created_at?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface UserExtendedSchema extends UserSchema {
|
|
15
|
-
bio?: string;
|
|
16
|
-
location?: string;
|
|
17
|
-
public_email: string;
|
|
18
|
-
skype: string;
|
|
19
|
-
linkedin: string;
|
|
20
|
-
twitter: string;
|
|
21
|
-
website_url: string;
|
|
22
|
-
organization?: string;
|
|
23
|
-
last_sign_in_at: string;
|
|
24
|
-
confirmed_at: string;
|
|
25
|
-
last_activity_on: string;
|
|
26
|
-
email: string;
|
|
27
|
-
theme_id: number;
|
|
28
|
-
color_scheme_id: number;
|
|
29
|
-
projects_limit: number;
|
|
30
|
-
current_sign_in_at?: string;
|
|
31
|
-
identities?: string[];
|
|
32
|
-
can_create_group: boolean;
|
|
33
|
-
can_create_project: boolean;
|
|
34
|
-
two_factor_enabled: boolean;
|
|
35
|
-
external: boolean;
|
|
36
|
-
private_profile?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface UserActivitySchema extends Record<string, unknown> {
|
|
39
|
-
username: string;
|
|
40
|
-
last_activity_on: string;
|
|
41
|
-
last_activity_at: string;
|
|
42
|
-
}
|
|
43
|
-
export declare class Users<C extends boolean = false> extends BaseResource<C> {
|
|
44
|
-
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>[]>;
|
|
45
|
-
activities(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserActivitySchema>[]>;
|
|
46
|
-
projects(userId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ProjectExtendedSchema>[]>;
|
|
47
|
-
block(userId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
48
|
-
create(options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>>;
|
|
49
|
-
current(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserExtendedSchema>>;
|
|
50
|
-
edit(userId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>>;
|
|
51
|
-
events(userId: number, options?: BaseRequestOptions & EventOptions): Promise<import("../infrastructure").CamelizedRecord<C, EventSchema>[]>;
|
|
52
|
-
search(emailOrUsername: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>[]>;
|
|
53
|
-
show(userId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>>;
|
|
54
|
-
remove(userId: number, options?: Sudo): Promise<void>;
|
|
55
|
-
unblock(userId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
56
|
-
username(username: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, UserSchema>[]>;
|
|
57
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { Sudo } from '../infrastructure';
|
|
3
|
-
export interface VersionSchema extends Record<string, unknown> {
|
|
4
|
-
version: string;
|
|
5
|
-
revision: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class Version<C extends boolean = false> extends BaseResource<C> {
|
|
8
|
-
show(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, VersionSchema>>;
|
|
9
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface VulnerabilityFindingIdentifier {
|
|
4
|
-
external_type: string;
|
|
5
|
-
external_id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
url: string;
|
|
8
|
-
}
|
|
9
|
-
export interface VulnerabilityFindingDetailItem {
|
|
10
|
-
type: string;
|
|
11
|
-
href: string;
|
|
12
|
-
}
|
|
13
|
-
export interface VulnerabilityFindingSchema extends Record<string, unknown> {
|
|
14
|
-
id: number;
|
|
15
|
-
report_type: string;
|
|
16
|
-
name: string;
|
|
17
|
-
severity: string;
|
|
18
|
-
confidence: string;
|
|
19
|
-
scanner: {
|
|
20
|
-
external_id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
|
-
identifiers?: VulnerabilityFindingIdentifier[];
|
|
24
|
-
project_fingerprint: string;
|
|
25
|
-
uuid: string;
|
|
26
|
-
create_vulnerability_feedback_issue_path: string;
|
|
27
|
-
create_vulnerability_feedback_merge_request_path: string;
|
|
28
|
-
create_vulnerability_feedback_dismissal_path: string;
|
|
29
|
-
project: {
|
|
30
|
-
id: number;
|
|
31
|
-
name: string;
|
|
32
|
-
full_path: string;
|
|
33
|
-
full_name: string;
|
|
34
|
-
};
|
|
35
|
-
dismissal_feedback?: string;
|
|
36
|
-
issue_feedback?: string;
|
|
37
|
-
merge_request_feedback?: string;
|
|
38
|
-
description: string;
|
|
39
|
-
links?: {
|
|
40
|
-
url: string;
|
|
41
|
-
}[];
|
|
42
|
-
location: {
|
|
43
|
-
file: string;
|
|
44
|
-
dependency: {
|
|
45
|
-
package: {
|
|
46
|
-
name: string;
|
|
47
|
-
};
|
|
48
|
-
version: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
details: {
|
|
52
|
-
[custom_field: string]: {
|
|
53
|
-
name: string;
|
|
54
|
-
type: string;
|
|
55
|
-
items?: VulnerabilityFindingDetailItem[];
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
solution: string;
|
|
59
|
-
blob_path: string;
|
|
60
|
-
}
|
|
61
|
-
export declare class VulnerabilityFindings<C extends boolean = false> extends BaseResource<C> {
|
|
62
|
-
all(projectId: string | number, options?: {
|
|
63
|
-
reportType?: string[];
|
|
64
|
-
scope?: string;
|
|
65
|
-
severity?: string[];
|
|
66
|
-
confidence?: string[];
|
|
67
|
-
pipelineId?: string | number;
|
|
68
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, VulnerabilityFindingSchema>[]>;
|
|
69
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface WikiSchema extends Record<string, unknown> {
|
|
4
|
-
content: string;
|
|
5
|
-
format: string;
|
|
6
|
-
slug: string;
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class Wikis<C extends boolean = false> extends BaseResource<C> {
|
|
10
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>[]>;
|
|
11
|
-
create(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>>;
|
|
12
|
-
edit(projectId: string | number, slug: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>>;
|
|
13
|
-
show(projectId: string | number, slug: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, WikiSchema>>;
|
|
14
|
-
remove(projectId: string | number, slug: string, options?: Sudo): Promise<void>;
|
|
15
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
export { Groups } from './Groups';
|
|
2
|
-
export { GroupAccessRequests } from './GroupAccessRequests';
|
|
3
|
-
export { GroupBadges } from './GroupBadges';
|
|
4
|
-
export { GroupCustomAttributes } from './GroupCustomAttributes';
|
|
5
|
-
export { GroupIssueBoards } from './GroupIssueBoards';
|
|
6
|
-
export { GroupMembers } from './GroupMembers';
|
|
7
|
-
export { GroupMilestones } from './GroupMilestones';
|
|
8
|
-
export { GroupRunners } from './GroupRunners';
|
|
9
|
-
export { GroupVariables } from './GroupVariables';
|
|
10
|
-
export { GroupLabels } from './GroupLabels';
|
|
11
|
-
export { GroupDeployTokens } from './GroupDeployTokens';
|
|
12
|
-
export { Epics } from './Epics';
|
|
13
|
-
export { EpicIssues } from './EpicIssues';
|
|
14
|
-
export { EpicNotes } from './EpicNotes';
|
|
15
|
-
export { EpicDiscussions } from './EpicDiscussions';
|
|
16
|
-
export { Users } from './Users';
|
|
17
|
-
export { UserCustomAttributes } from './UserCustomAttributes';
|
|
18
|
-
export { UserEmails } from './UserEmails';
|
|
19
|
-
export { UserImpersonationTokens } from './UserImpersonationTokens';
|
|
20
|
-
export { UserSSHKeys } from './UserSSHKeys';
|
|
21
|
-
export { UserGPGKeys } from './UserGPGKeys';
|
|
22
|
-
export { Branches } from './Branches';
|
|
23
|
-
export { Commits } from './Commits';
|
|
24
|
-
export { CommitDiscussions } from './CommitDiscussions';
|
|
25
|
-
export { ContainerRegistry } from './ContainerRegistry';
|
|
26
|
-
export { Deployments } from './Deployments';
|
|
27
|
-
export { DeployKeys } from './DeployKeys';
|
|
28
|
-
export { Environments } from './Environments';
|
|
29
|
-
export { FreezePeriods } from './FreezePeriods';
|
|
30
|
-
export { Issues } from './Issues';
|
|
31
|
-
export { IssuesStatistics } from './IssuesStatistics';
|
|
32
|
-
export { IssueNotes } from './IssueNotes';
|
|
33
|
-
export { IssueNoteAwardEmojis } from './IssueNoteAwardEmojis';
|
|
34
|
-
export { IssueDiscussions } from './IssueDiscussions';
|
|
35
|
-
export { IssueAwardEmojis } from './IssueAwardEmojis';
|
|
36
|
-
export { Jobs } from './Jobs';
|
|
37
|
-
export { Labels } from './Labels';
|
|
38
|
-
export { MergeRequests } from './MergeRequests';
|
|
39
|
-
export { MergeRequestApprovals } from './MergeRequestApprovals';
|
|
40
|
-
export { MergeRequestAwardEmojis } from './MergeRequestAwardEmojis';
|
|
41
|
-
export { MergeRequestDiscussions } from './MergeRequestDiscussions';
|
|
42
|
-
export { MergeRequestNotes } from './MergeRequestNotes';
|
|
43
|
-
export { Packages } from './Packages';
|
|
44
|
-
export { PackageRegistry } from './PackageRegistry';
|
|
45
|
-
export { Pipelines } from './Pipelines';
|
|
46
|
-
export { PipelineSchedules } from './PipelineSchedules';
|
|
47
|
-
export { PipelineScheduleVariables } from './PipelineScheduleVariables';
|
|
48
|
-
export { Projects } from './Projects';
|
|
49
|
-
export { ProjectAccessRequests } from './ProjectAccessRequests';
|
|
50
|
-
export { ProjectBadges } from './ProjectBadges';
|
|
51
|
-
export { ProjectCustomAttributes } from './ProjectCustomAttributes';
|
|
52
|
-
export { ProjectImportExport } from './ProjectImportExport';
|
|
53
|
-
export { ProjectIssueBoards } from './ProjectIssueBoards';
|
|
54
|
-
export { ProjectHooks } from './ProjectHooks';
|
|
55
|
-
export { ProjectMembers } from './ProjectMembers';
|
|
56
|
-
export { ProjectMilestones } from './ProjectMilestones';
|
|
57
|
-
export { ProjectSnippets } from './ProjectSnippets';
|
|
58
|
-
export { ProjectSnippetNotes } from './ProjectSnippetNotes';
|
|
59
|
-
export { ProjectSnippetDiscussions } from './ProjectSnippetDiscussions';
|
|
60
|
-
export { ProjectSnippetAwardEmojis } from './ProjectSnippetAwardEmojis';
|
|
61
|
-
export { ProtectedBranches } from './ProtectedBranches';
|
|
62
|
-
export { ProtectedTags } from './ProtectedTags';
|
|
63
|
-
export { ProjectVariables } from './ProjectVariables';
|
|
64
|
-
export { ProjectDeployTokens } from './ProjectDeployTokens';
|
|
65
|
-
export { PushRules } from './PushRules';
|
|
66
|
-
export { Releases } from './Releases';
|
|
67
|
-
export { ReleaseLinks } from './ReleaseLinks';
|
|
68
|
-
export { Repositories } from './Repositories';
|
|
69
|
-
export { RepositoryFiles } from './RepositoryFiles';
|
|
70
|
-
export { RepositorySubmodules } from './RepositorySubmodules';
|
|
71
|
-
export { Runners } from './Runners';
|
|
72
|
-
export { Services } from './Services';
|
|
73
|
-
export { Tags } from './Tags';
|
|
74
|
-
export { Todos } from './Todos';
|
|
75
|
-
export { Triggers } from './Triggers';
|
|
76
|
-
export { VulnerabilityFindings } from './VulnerabilityFindings';
|
|
77
|
-
export { ApplicationSettings } from './ApplicationSettings';
|
|
78
|
-
export { BroadcastMessages } from './BroadcastMessages';
|
|
79
|
-
export { Events } from './Events';
|
|
80
|
-
export { FeatureFlags } from './FeatureFlags';
|
|
81
|
-
export { GeoNodes } from './GeoNodes';
|
|
82
|
-
export { GitignoreTemplates } from './GitignoreTemplates';
|
|
83
|
-
export { GitLabCIYMLTemplates } from './GitLabCIYMLTemplates';
|
|
84
|
-
export { Keys } from './Keys';
|
|
85
|
-
export { License } from './License';
|
|
86
|
-
export { LicenseTemplates } from './LicenseTemplates';
|
|
87
|
-
export { Lint } from './Lint';
|
|
88
|
-
export { Namespaces } from './Namespaces';
|
|
89
|
-
export { NotificationSettings } from './NotificationSettings';
|
|
90
|
-
export { Markdown } from './Markdown';
|
|
91
|
-
export { PagesDomains } from './PagesDomains';
|
|
92
|
-
export { Search } from './Search';
|
|
93
|
-
export { SidekiqMetrics } from './SidekiqMetrics';
|
|
94
|
-
export { Snippets } from './Snippets';
|
|
95
|
-
export { SystemHooks } from './SystemHooks';
|
|
96
|
-
export { Version } from './Version';
|
|
97
|
-
export { Wikis } from './Wikis';
|
|
98
|
-
export { Gitlab } from './Gitlab';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export { GroupSchema, GroupDetailSchema } from './Groups';
|
|
2
|
-
export { GroupBadgeSchema } from './GroupBadges';
|
|
3
|
-
export { GroupIssueBoardSchema } from './GroupIssueBoards';
|
|
4
|
-
export { EpicSchema } from './Epics';
|
|
5
|
-
export { EpicIssueSchema } from './EpicIssues';
|
|
6
|
-
export { EpicNoteSchema } from './EpicNotes';
|
|
7
|
-
export { UserSchema, UserExtendedSchema, UserActivitySchema } from './Users';
|
|
8
|
-
export { UserEmailSchema } from './UserEmails';
|
|
9
|
-
export { UserImpersonationTokenSchema, ImpersonationTokenScope, ImpersonationTokenState, } from './UserImpersonationTokens';
|
|
10
|
-
export { UserSSHKeySchema } from './UserSSHKeys';
|
|
11
|
-
export { UserGPGKeySchema } from './UserGPGKeys';
|
|
12
|
-
export { BranchSchema } from './Branches';
|
|
13
|
-
export { CommitAction, CommitSchema, CommitExtendedSchema, GPGSignatureSchema, X509SignatureSchema, MissingSignatureSchema, CommitSignatureSchema, CommentSchema, CommitDiffSchema, CommitStatusSchema, CommitReferenceSchema, } from './Commits';
|
|
14
|
-
export { RegistryRepositoryTagSchema, RegistryRepositorySchema } from './ContainerRegistry';
|
|
15
|
-
export { DeploymentStatus, DeployableSchema, DeploymentSchema } from './Deployments';
|
|
16
|
-
export { DeployKeySchema } from './DeployKeys';
|
|
17
|
-
export { EnvironmentSchema } from './Environments';
|
|
18
|
-
export { FreezePeriodSchema } from './FreezePeriods';
|
|
19
|
-
export { TimeStatsSchema, IssueSchema } from './Issues';
|
|
20
|
-
export { StatisticsSchema } from './IssuesStatistics';
|
|
21
|
-
export { IssueNoteSchema } from './IssueNotes';
|
|
22
|
-
export { JobScope, ArtifactSchema, JobSchema, BridgeSchema } from './Jobs';
|
|
23
|
-
export { AcceptMergeRequestOptions, ShowMergeRequestOptions, CreateMergeRequestOptions, UpdateMergeRequestOptions, AllMergeRequestsOptions, ReferenceSchema, TaskCompletionStatusSchema, RebaseSchema, DiffSchema, MergeRequestSchema, } from './MergeRequests';
|
|
24
|
-
export { ProjectLevelMergeRequestApprovalSchema, ApprovedByEntity, MergeRequestLevelMergeRequestApprovalSchema, ApprovalRulesRequestOptions, ApprovalRuleSchema, ProjectLevelApprovalRuleSchema, MergeRequestLevelApprovalRuleSchema, } from './MergeRequestApprovals';
|
|
25
|
-
export { MergeRequestNoteSchema } from './MergeRequestNotes';
|
|
26
|
-
export { PackageSchema, PackageFileSchema } from './Packages';
|
|
27
|
-
export { PipelineStatus, PipelineSchema, PipelineExtendedSchema, PipelineVariableSchema, } from './Pipelines';
|
|
28
|
-
export { PipelineScheduleSchema } from './PipelineSchedules';
|
|
29
|
-
export { ProjectSchema, ProjectExtendedSchema, ProjectFileUploadSchema, AccessSchema, SharedWithGroupSchema, } from './Projects';
|
|
30
|
-
export { ProjectBadgeSchema } from './ProjectBadges';
|
|
31
|
-
export { ExportStatusSchema, FailedRelationSchema, ImportStatusSchema, UploadMetadata, } from './ProjectImportExport';
|
|
32
|
-
export { ProjectIssueBoardSchema } from './ProjectIssueBoards';
|
|
33
|
-
export { ProjectHookSchema } from './ProjectHooks';
|
|
34
|
-
export { ProjectSnippetSchema } from './ProjectSnippets';
|
|
35
|
-
export { SnippetNoteSchema } from './ProjectSnippetNotes';
|
|
36
|
-
export { ProtectedBranchAccessLevel, ProtectedBranchSchema } from './ProtectedBranches';
|
|
37
|
-
export { ProtectedTagSchema, ProtectedTagAccessLevel } from './ProtectedTags';
|
|
38
|
-
export { PushRulesSchema } from './PushRules';
|
|
39
|
-
export { ReleaseEvidence, ReleaseAssetSource, ReleaseAssetLink, ReleaseSchema } from './Releases';
|
|
40
|
-
export { ReleaseLinkSchema } from './ReleaseLinks';
|
|
41
|
-
export { RepositoryCompareSchema, RepositoryContributorSchema, RepositoryTreeSchema, } from './Repositories';
|
|
42
|
-
export { RepositoryFileExtendedSchema, RepositoryFileBlameSchema, RepositoryFileSchema, } from './RepositoryFiles';
|
|
43
|
-
export { RepositorySubmoduleSchema } from './RepositorySubmodules';
|
|
44
|
-
export { RunnerSchema, RunnerExtendedSchema } from './Runners';
|
|
45
|
-
export { SupportedService, ServiceSchema } from './Services';
|
|
46
|
-
export { TagSchema } from './Tags';
|
|
47
|
-
export { TodoSchema } from './Todos';
|
|
48
|
-
export { PipelineTriggerSchema } from './Triggers';
|
|
49
|
-
export { VulnerabilityFindingSchema, VulnerabilityFindingDetailItem, VulnerabilityFindingIdentifier, } from './VulnerabilityFindings';
|
|
50
|
-
export { ApplicationSettingsSchema } from './ApplicationSettings';
|
|
51
|
-
export { BroadcastMessageSchema } from './BroadcastMessages';
|
|
52
|
-
export { EventOptions, EventSchema } from './Events';
|
|
53
|
-
export { FeatureFlagSchema, FeatureFlagStrategy, FeatureFlagStrategyScope } from './FeatureFlags';
|
|
54
|
-
export { GeoNodeSchema, GeoNodeFailureSchema, GeoNodeStatusSchema } from './GeoNodes';
|
|
55
|
-
export { KeySchema } from './Keys';
|
|
56
|
-
export { LicenseSchema } from './License';
|
|
57
|
-
export { LicenseTemplateSchema } from './LicenseTemplates';
|
|
58
|
-
export { LintSchema } from './Lint';
|
|
59
|
-
export { NamespaceSchema } from './Namespaces';
|
|
60
|
-
export { NotificationSettingSchema, NotificationSettingLevel } from './NotificationSettings';
|
|
61
|
-
export { MarkdownSchema } from './Markdown';
|
|
62
|
-
export { PagesDomainSchema } from './PagesDomains';
|
|
63
|
-
export { SearchResultSchema } from './Search';
|
|
64
|
-
export { SidekickProcessMetricsSchema, ProcessMetricSchema, SidekickQueueMetricsSchema, SidekickJobStatsSchema, SidekickCompoundMetricsSchema, } from './SidekiqMetrics';
|
|
65
|
-
export { SnippetVisibility, SnippetSchema, SnippetExtendedSchema, UserAgentDetailSchema, } from './Snippets';
|
|
66
|
-
export { SystemHookSchema } from './SystemHooks';
|
|
67
|
-
export { VersionSchema } from './Version';
|
|
68
|
-
export { WikiSchema } from './Wikis';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { Sudo } from '../infrastructure';
|
|
3
|
-
export declare type AccessLevel = 0 | 5 | 10 | 20 | 30 | 40 | 50;
|
|
4
|
-
export interface AccessRequestSchema extends Record<string, unknown> {
|
|
5
|
-
id: number;
|
|
6
|
-
username: string;
|
|
7
|
-
name: string;
|
|
8
|
-
state: string;
|
|
9
|
-
created_at: string;
|
|
10
|
-
requested_at: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class ResourceAccessRequests<C extends boolean = false> extends BaseResource<C> {
|
|
13
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
14
|
-
all(resourceId: string | number): Promise<import("../infrastructure").CamelizedRecord<C, AccessRequestSchema>[]>;
|
|
15
|
-
request(resourceId: string | number): Promise<import("../infrastructure").CamelizedRecord<C, AccessRequestSchema>>;
|
|
16
|
-
approve(resourceId: string | number, userId: number, options?: {
|
|
17
|
-
accessLevel?: AccessLevel;
|
|
18
|
-
} & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, AccessRequestSchema>>;
|
|
19
|
-
deny(resourceId: string | number, userId: number): Promise<void>;
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from '../resources/Users';
|
|
3
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
-
export interface AwardEmojiSchema extends Record<string, unknown> {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
user: UserSchema;
|
|
8
|
-
created_at: string;
|
|
9
|
-
updated_at: string;
|
|
10
|
-
awardable_id: number;
|
|
11
|
-
awardable_type: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function url(projectId: number | string, resourceType: string, resourceId: number | string, awardId?: number | null, noteId?: number): string;
|
|
14
|
-
export declare class ResourceAwardEmojis<C extends boolean = false> extends BaseResource<C> {
|
|
15
|
-
protected resourceType: string;
|
|
16
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
17
|
-
all(projectId: string | number, resourceIId: number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, AwardEmojiSchema>[]>;
|
|
18
|
-
award(projectId: string | number, resourceIId: number, name: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, AwardEmojiSchema>>;
|
|
19
|
-
remove(projectId: string | number, resourceIId: number, awardId: number, options?: Sudo): Promise<void>;
|
|
20
|
-
show(projectId: string | number, resourceIId: number, awardId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, AwardEmojiSchema>>;
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface BadgeSchema extends Record<string, unknown> {
|
|
4
|
-
name: string;
|
|
5
|
-
id: number;
|
|
6
|
-
link_url: string;
|
|
7
|
-
image_url: string;
|
|
8
|
-
rendered_link_url: string;
|
|
9
|
-
rendered_image_url: string;
|
|
10
|
-
kind: 'project' | 'group';
|
|
11
|
-
}
|
|
12
|
-
export declare class ResourceBadges<C extends boolean = false> extends BaseResource<C> {
|
|
13
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
14
|
-
add(resourceId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BadgeSchema>>;
|
|
15
|
-
all(resourceId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BadgeSchema>[]>;
|
|
16
|
-
edit(resourceId: string | number, badgeId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BadgeSchema>>;
|
|
17
|
-
preview(resourceId: string | number, linkUrl: string, imageUrl: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Omit<BadgeSchema, "name" | "id" | "kind">>>;
|
|
18
|
-
remove(resourceId: string | number, badgeId: number, options?: Sudo): Promise<void>;
|
|
19
|
-
show(resourceId: string | number, badgeId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BadgeSchema>>;
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface CustomAttributeSchema extends Record<string, unknown> {
|
|
4
|
-
key: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class ResourceCustomAttributes<C extends boolean = false> extends BaseResource<C> {
|
|
8
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
9
|
-
all(resourceId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CustomAttributeSchema>[]>;
|
|
10
|
-
set(resourceId: string | number, customAttributeId: number, value: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CustomAttributeSchema>>;
|
|
11
|
-
remove(resourceId: string | number, customAttributeId: number, options?: Sudo): Promise<void>;
|
|
12
|
-
show(resourceId: string | number, customAttributeId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CustomAttributeSchema>>;
|
|
13
|
-
}
|