@gitbeaker/core 34.4.0 → 34.4.1
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/dist/index.es.js +3365 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +3473 -0
- package/dist/index.js.map +1 -0
- package/dist/map.json +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/infrastructure/RequestHelper.d.ts +55 -0
- package/dist/types/infrastructure/Utils.d.ts +7 -0
- package/dist/types/infrastructure/index.d.ts +2 -0
- package/dist/types/resources/ApplicationSettings.d.ts +69 -0
- package/dist/types/resources/Branches.d.ts +20 -0
- package/dist/types/resources/BroadcastMessages.d.ts +21 -0
- package/dist/types/resources/CommitDiscussions.d.ts +17 -0
- package/dist/types/resources/Commits.d.ts +132 -0
- package/dist/types/resources/ContainerRegistry.d.ts +37 -0
- package/dist/types/resources/DeployKeys.d.ts +19 -0
- package/dist/types/resources/Deployments.d.ts +44 -0
- package/dist/types/resources/DockerfileTemplates.d.ts +5 -0
- package/dist/types/resources/Environments.d.ts +22 -0
- package/dist/types/resources/EpicDiscussions.d.ts +17 -0
- package/dist/types/resources/EpicIssues.d.ts +12 -0
- package/dist/types/resources/EpicNotes.d.ts +18 -0
- package/dist/types/resources/Epics.d.ts +47 -0
- package/dist/types/resources/Events.d.ts +29 -0
- package/dist/types/resources/FeatureFlags.d.ts +33 -0
- package/dist/types/resources/FreezePeriods.d.ts +17 -0
- package/dist/types/resources/GeoNodes.d.ts +143 -0
- package/dist/types/resources/GitLabCIYMLTemplates.d.ts +5 -0
- package/dist/types/resources/GitignoreTemplates.d.ts +5 -0
- package/dist/types/resources/Gitlab.d.ts +202 -0
- package/dist/types/resources/GroupAccessRequests.d.ts +15 -0
- package/dist/types/resources/GroupBadges.d.ts +18 -0
- package/dist/types/resources/GroupCustomAttributes.d.ts +13 -0
- package/dist/types/resources/GroupDeployTokens.d.ts +14 -0
- package/dist/types/resources/GroupIssueBoards.d.ts +23 -0
- package/dist/types/resources/GroupLabels.d.ts +15 -0
- package/dist/types/resources/GroupMembers.d.ts +14 -0
- package/dist/types/resources/GroupMilestones.d.ts +17 -0
- package/dist/types/resources/GroupRunners.d.ts +6 -0
- package/dist/types/resources/GroupVariables.d.ts +14 -0
- package/dist/types/resources/Groups.d.ts +67 -0
- package/dist/types/resources/IssueAwardEmojis.d.ts +13 -0
- package/dist/types/resources/IssueDiscussions.d.ts +17 -0
- package/dist/types/resources/IssueNoteAwardEmojis.d.ts +13 -0
- package/dist/types/resources/IssueNotes.d.ts +22 -0
- package/dist/types/resources/Issues.d.ts +109 -0
- package/dist/types/resources/IssuesStatistics.d.ts +17 -0
- package/dist/types/resources/Jobs.d.ts +84 -0
- package/dist/types/resources/Keys.d.ts +14 -0
- package/dist/types/resources/Labels.d.ts +15 -0
- package/dist/types/resources/License.d.ts +28 -0
- package/dist/types/resources/LicenseTemplates.d.ts +23 -0
- package/dist/types/resources/Lint.d.ts +10 -0
- package/dist/types/resources/Markdown.d.ts +11 -0
- package/dist/types/resources/MergeRequestApprovals.d.ts +98 -0
- package/dist/types/resources/MergeRequestAwardEmojis.d.ts +13 -0
- package/dist/types/resources/MergeRequestDiscussions.d.ts +19 -0
- package/dist/types/resources/MergeRequestNotes.d.ts +22 -0
- package/dist/types/resources/MergeRequests.d.ts +191 -0
- package/dist/types/resources/Namespaces.d.ts +22 -0
- package/dist/types/resources/NotificationSettings.d.ts +21 -0
- package/dist/types/resources/PackageRegistry.d.ts +14 -0
- package/dist/types/resources/Packages.d.ts +30 -0
- package/dist/types/resources/PagesDomains.d.ts +21 -0
- package/dist/types/resources/PipelineScheduleVariables.d.ts +10 -0
- package/dist/types/resources/PipelineSchedules.d.ts +29 -0
- package/dist/types/resources/Pipelines.d.ts +40 -0
- package/dist/types/resources/ProjectAccessRequests.d.ts +15 -0
- package/dist/types/resources/ProjectBadges.d.ts +18 -0
- package/dist/types/resources/ProjectCustomAttributes.d.ts +13 -0
- package/dist/types/resources/ProjectDeployTokens.d.ts +14 -0
- package/dist/types/resources/ProjectHooks.d.ts +29 -0
- package/dist/types/resources/ProjectImportExport.d.ts +54 -0
- package/dist/types/resources/ProjectIssueBoards.d.ts +23 -0
- package/dist/types/resources/ProjectMembers.d.ts +14 -0
- package/dist/types/resources/ProjectMilestones.d.ts +17 -0
- package/dist/types/resources/ProjectSnippetAwardEmojis.d.ts +13 -0
- package/dist/types/resources/ProjectSnippetDiscussions.d.ts +17 -0
- package/dist/types/resources/ProjectSnippetNotes.d.ts +18 -0
- package/dist/types/resources/ProjectSnippets.d.ts +29 -0
- package/dist/types/resources/ProjectVariables.d.ts +14 -0
- package/dist/types/resources/Projects.d.ts +161 -0
- package/dist/types/resources/ProtectedBranches.d.ts +24 -0
- package/dist/types/resources/ProtectedTags.d.ts +16 -0
- package/dist/types/resources/PushRules.d.ts +24 -0
- package/dist/types/resources/ReleaseLinks.d.ts +24 -0
- package/dist/types/resources/Releases.d.ts +48 -0
- package/dist/types/resources/Repositories.d.ts +37 -0
- package/dist/types/resources/RepositoryFiles.d.ts +31 -0
- package/dist/types/resources/RepositorySubmodules.d.ts +20 -0
- package/dist/types/resources/Runners.d.ts +38 -0
- package/dist/types/resources/Search.d.ts +26 -0
- package/dist/types/resources/Services.d.ts +29 -0
- package/dist/types/resources/SidekiqMetrics.d.ts +37 -0
- package/dist/types/resources/Snippets.d.ts +42 -0
- package/dist/types/resources/SystemHooks.d.ts +18 -0
- package/dist/types/resources/Tags.d.ts +18 -0
- package/dist/types/resources/Todos.d.ts +48 -0
- package/dist/types/resources/Triggers.d.ts +22 -0
- package/dist/types/resources/UserCustomAttributes.d.ts +13 -0
- package/dist/types/resources/UserEmails.d.ts +19 -0
- package/dist/types/resources/UserGPGKeys.d.ts +21 -0
- package/dist/types/resources/UserImpersonationTokens.d.ts +23 -0
- package/dist/types/resources/UserSSHKeys.d.ts +22 -0
- package/dist/types/resources/Users.d.ts +57 -0
- package/dist/types/resources/Version.d.ts +9 -0
- package/dist/types/resources/VulnerabilityFindings.d.ts +69 -0
- package/dist/types/resources/Wikis.d.ts +15 -0
- package/dist/types/resources/index.d.ts +98 -0
- package/dist/types/resources/types.d.ts +68 -0
- package/dist/types/templates/ResourceAccessRequests.d.ts +20 -0
- package/dist/types/templates/ResourceAwardEmojis.d.ts +21 -0
- package/dist/types/templates/ResourceBadges.d.ts +20 -0
- package/dist/types/templates/ResourceCustomAttributes.d.ts +13 -0
- package/dist/types/templates/ResourceDeployTokens.d.ts +20 -0
- package/dist/types/templates/ResourceDiscussions.d.ts +45 -0
- package/dist/types/templates/ResourceIssueBoards.d.ts +31 -0
- package/dist/types/templates/ResourceLabels.d.ts +25 -0
- package/dist/types/templates/ResourceMembers.d.ts +30 -0
- package/dist/types/templates/ResourceMilestones.d.ts +27 -0
- package/dist/types/templates/ResourceNoteAwardEmojis.d.ts +11 -0
- package/dist/types/templates/ResourceNotes.d.ts +20 -0
- package/dist/types/templates/ResourceTemplates.d.ts +11 -0
- package/dist/types/templates/ResourceVariables.d.ts +18 -0
- package/dist/types/templates/index.d.ts +14 -0
- package/dist/types/templates/types.d.ts +13 -0
- package/dist/types/types.d.ts +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { ResourceDiscussions } from '../templates';
|
|
3
|
+
import { DiscussionSchema } from '../templates/types';
|
|
4
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
+
export interface EpicDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
|
|
6
|
+
addNote(groupId: string | number, epicId: number, discussionId: number, noteId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
7
|
+
all(groupId: string | number, epicId: number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>[]>;
|
|
8
|
+
create(groupId: string | number, epicId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
9
|
+
editNote(groupId: string | number, epicId: number, discussionId: number, noteId: number, options: BaseRequestOptions & {
|
|
10
|
+
body: string;
|
|
11
|
+
}): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
12
|
+
removeNote(groupId: string | number, epicId: number, discussionId: number, noteId: number, options?: Sudo): Promise<void>;
|
|
13
|
+
show(groupId: string | number, epicId: number, discussionId: number, options?: Sudo): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
14
|
+
}
|
|
15
|
+
export declare class EpicDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
|
|
16
|
+
constructor(options: BaseResourceOptions<C>);
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { IssueSchema } from './Issues';
|
|
3
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
+
export interface EpicIssueSchema extends Omit<IssueSchema, 'references' | 'task_completion_status'> {
|
|
5
|
+
epic_issue_id: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class EpicIssues<C extends boolean = false> extends BaseResource<C> {
|
|
8
|
+
all(groupId: string | number, epicIId: number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, EpicIssueSchema>[]>;
|
|
9
|
+
assign(groupId: string | number, epicIId: number, epicIssueId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, EpicIssueSchema>>;
|
|
10
|
+
edit(groupId: string | number, epicIId: number, epicIssueId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, EpicIssueSchema>>;
|
|
11
|
+
remove(groupId: string | number, epicIId: number, epicIssueId: number, options?: Sudo): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 EpicNoteSchema extends NoteSchema {
|
|
6
|
+
file_name: string;
|
|
7
|
+
expires_at: string;
|
|
8
|
+
}
|
|
9
|
+
export interface EpicNotes<C extends boolean = false> extends ResourceNotes<C> {
|
|
10
|
+
all(groupId: string | number, epicId: number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, EpicNoteSchema>[]>;
|
|
11
|
+
create(groupId: string | number, epicId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, EpicNoteSchema>>;
|
|
12
|
+
edit(groupId: string | number, epicId: number, noteId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, EpicNoteSchema>>;
|
|
13
|
+
remove(groupId: string | number, epicId: number, noteId: number, options?: Sudo): Promise<void>;
|
|
14
|
+
show(groupId: string | number, epicId: number, noteId: number, options?: Sudo): Promise<CamelizedRecord<C, EpicNoteSchema>>;
|
|
15
|
+
}
|
|
16
|
+
export declare class EpicNotes<C extends boolean = false> extends ResourceNotes<C> {
|
|
17
|
+
constructor(options: BaseResourceOptions<C>);
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { UserSchema } from './Users';
|
|
3
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
+
export interface EpicSchema extends Record<string, unknown> {
|
|
5
|
+
id: number;
|
|
6
|
+
iid: number;
|
|
7
|
+
group_id: number;
|
|
8
|
+
parent_id: number;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
state: string;
|
|
12
|
+
confidential: string;
|
|
13
|
+
web_url: string;
|
|
14
|
+
reference: string;
|
|
15
|
+
references: {
|
|
16
|
+
short: string;
|
|
17
|
+
relative: string;
|
|
18
|
+
full: string;
|
|
19
|
+
};
|
|
20
|
+
author: Omit<UserSchema, 'created_at'>;
|
|
21
|
+
start_date?: string;
|
|
22
|
+
start_date_is_fixed: boolean;
|
|
23
|
+
start_date_fixed?: string;
|
|
24
|
+
start_date_from_inherited_source?: string;
|
|
25
|
+
due_date: string;
|
|
26
|
+
due_date_is_fixed: boolean;
|
|
27
|
+
due_date_fixed?: string;
|
|
28
|
+
due_date_from_inherited_source: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
updated_at: string;
|
|
31
|
+
closed_at: string;
|
|
32
|
+
labels?: string[];
|
|
33
|
+
upvotes: number;
|
|
34
|
+
downvotes: number;
|
|
35
|
+
_links: {
|
|
36
|
+
self: string;
|
|
37
|
+
epic_issues: string;
|
|
38
|
+
group: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare class Epics<C extends boolean = false> extends BaseResource<C> {
|
|
42
|
+
all(groupId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, EpicSchema>[]>;
|
|
43
|
+
create(groupId: string | number, title: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, EpicSchema>>;
|
|
44
|
+
edit(groupId: string | number, epicId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, EpicSchema>>;
|
|
45
|
+
remove(groupId: string | number, epicId: number, options?: Sudo): Promise<void>;
|
|
46
|
+
show(groupId: string | number, epicId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, EpicSchema>>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { UserSchema } from './Users';
|
|
3
|
+
import { PaginatedRequestOptions } from '../infrastructure';
|
|
4
|
+
export interface EventOptions {
|
|
5
|
+
action?: 'created' | 'updated' | 'closed' | 'reopened' | 'pushed' | 'commented' | 'merged' | 'joined' | 'left' | 'destroyed' | 'expired';
|
|
6
|
+
targetType?: 'issue' | 'milestone' | 'merge_request' | 'note' | 'project' | 'snippet' | 'user';
|
|
7
|
+
before?: string;
|
|
8
|
+
after?: string;
|
|
9
|
+
scope?: string;
|
|
10
|
+
sort?: 'asc' | 'desc';
|
|
11
|
+
}
|
|
12
|
+
export interface EventSchema extends Record<string, unknown> {
|
|
13
|
+
id: number;
|
|
14
|
+
title?: string;
|
|
15
|
+
project_id: number;
|
|
16
|
+
action_name: string;
|
|
17
|
+
target_id: number;
|
|
18
|
+
target_type: string;
|
|
19
|
+
author_id: number;
|
|
20
|
+
target_title: string;
|
|
21
|
+
created_at: string;
|
|
22
|
+
author: Omit<UserSchema, 'created_at'>;
|
|
23
|
+
author_username: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class Events<C extends boolean = false> extends BaseResource<C> {
|
|
26
|
+
all({ projectId, ...options }?: {
|
|
27
|
+
projectId?: string | number;
|
|
28
|
+
} & PaginatedRequestOptions & EventOptions): Promise<import("../infrastructure").CamelizedRecord<C, EventSchema>[]>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
+
export interface FeatureFlagStrategyScope {
|
|
4
|
+
id: number;
|
|
5
|
+
environment_scope: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FeatureFlagStrategy {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
parameters: {
|
|
11
|
+
user_ids: string;
|
|
12
|
+
};
|
|
13
|
+
scopes?: FeatureFlagStrategyScope[];
|
|
14
|
+
}
|
|
15
|
+
export interface FeatureFlagSchema extends Record<string, unknown> {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
version: string;
|
|
20
|
+
created_at: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
scopes?: string[];
|
|
23
|
+
strategies?: FeatureFlagStrategy[];
|
|
24
|
+
}
|
|
25
|
+
export declare class FeatureFlags<C extends boolean = false> extends BaseResource<C> {
|
|
26
|
+
all(projectId: string | number, options?: {
|
|
27
|
+
scopes?: 'enabled' | 'disabled';
|
|
28
|
+
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, FeatureFlagSchema>[]>;
|
|
29
|
+
create(projectId: string | number, flagName: string, version: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, FeatureFlagSchema>>;
|
|
30
|
+
edit(projectId: string | number, flagName: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, FeatureFlagSchema>>;
|
|
31
|
+
remove(projectId: string | number, flagName: string, options?: Sudo): Promise<void>;
|
|
32
|
+
show(projectId: string | number, flagName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, FeatureFlagSchema>>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, Camelize } from '../infrastructure';
|
|
3
|
+
export interface FreezePeriodSchema extends Record<string, unknown> {
|
|
4
|
+
id: number;
|
|
5
|
+
freeze_start: string;
|
|
6
|
+
freeze_end: string;
|
|
7
|
+
cron_timezone: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
updated_at: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class FreezePeriods<C extends boolean = false> extends BaseResource<C> {
|
|
12
|
+
all(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, FreezePeriodSchema>[]>;
|
|
13
|
+
show(projectId: string | number, freezePeriodId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, FreezePeriodSchema>>;
|
|
14
|
+
create(projectId: number | string, freezeStart: string, freezeEnd: string, options?: Camelize<Pick<FreezePeriodSchema, 'cron_timezone'>> & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, FreezePeriodSchema>>;
|
|
15
|
+
edit(projectId: number | string, freezePeriodId: number, options?: Camelize<Omit<FreezePeriodSchema, 'id' | 'created_at' | 'updated_at'>> & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, FreezePeriodSchema>>;
|
|
16
|
+
delete(projectId: number | string, freezePeriodId: number, options?: BaseRequestOptions): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
+
export interface GeoNodeSchema extends Record<string, unknown> {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
internal_url: string;
|
|
8
|
+
primary: boolean;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
current: boolean;
|
|
11
|
+
files_max_capacity: number;
|
|
12
|
+
repos_max_capacity: number;
|
|
13
|
+
verification_max_capacity: number;
|
|
14
|
+
selective_sync_type: string;
|
|
15
|
+
selective_sync_shards?: string[];
|
|
16
|
+
selective_sync_namespace_ids?: number[];
|
|
17
|
+
minimum_reverification_interval: number;
|
|
18
|
+
container_repositories_max_capacity: number;
|
|
19
|
+
sync_object_storage: boolean;
|
|
20
|
+
clone_protocol: string;
|
|
21
|
+
web_edit_url: string;
|
|
22
|
+
web_geo_projects_url: string;
|
|
23
|
+
_links: {
|
|
24
|
+
self: string;
|
|
25
|
+
status: string;
|
|
26
|
+
repair: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface GeoNodeFailureSchema extends Record<string, unknown> {
|
|
30
|
+
project_id: number;
|
|
31
|
+
last_repository_synced_at: string;
|
|
32
|
+
last_repository_successful_sync_at: string;
|
|
33
|
+
last_wiki_synced_at: string;
|
|
34
|
+
last_wiki_successful_sync_at: string;
|
|
35
|
+
repository_retry_count?: number;
|
|
36
|
+
wiki_retry_count: number;
|
|
37
|
+
last_repository_sync_failure?: string;
|
|
38
|
+
last_wiki_sync_failure: string;
|
|
39
|
+
last_repository_verification_failure: string;
|
|
40
|
+
last_wiki_verification_failure: string;
|
|
41
|
+
repository_verification_checksum_sha: string;
|
|
42
|
+
wiki_verification_checksum_sha: string;
|
|
43
|
+
repository_checksum_mismatch: boolean;
|
|
44
|
+
wiki_checksum_mismatch: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface GeoNodeStatusSchema extends Record<string, unknown> {
|
|
47
|
+
geo_node_id: number;
|
|
48
|
+
healthy: boolean;
|
|
49
|
+
health: string;
|
|
50
|
+
health_status: string;
|
|
51
|
+
missing_oauth_application: boolean;
|
|
52
|
+
attachments_count: number;
|
|
53
|
+
attachments_synced_count?: number;
|
|
54
|
+
attachments_failed_count?: number;
|
|
55
|
+
attachments_synced_missing_on_primary_count: number;
|
|
56
|
+
attachments_synced_in_percentage: string;
|
|
57
|
+
db_replication_lag_seconds?: number;
|
|
58
|
+
lfs_objects_count: number;
|
|
59
|
+
lfs_objects_synced_count?: number;
|
|
60
|
+
lfs_objects_failed_count?: number;
|
|
61
|
+
lfs_objects_synced_missing_on_primary_count: number;
|
|
62
|
+
lfs_objects_synced_in_percentage: string;
|
|
63
|
+
job_artifacts_count: number;
|
|
64
|
+
job_artifacts_synced_count?: number;
|
|
65
|
+
job_artifacts_failed_count?: number;
|
|
66
|
+
job_artifacts_synced_missing_on_primary_count: number;
|
|
67
|
+
job_artifacts_synced_in_percentage: string;
|
|
68
|
+
container_repositories_count: number;
|
|
69
|
+
container_repositories_synced_count?: number;
|
|
70
|
+
container_repositories_failed_count?: number;
|
|
71
|
+
container_repositories_synced_in_percentage: string;
|
|
72
|
+
design_repositories_count: number;
|
|
73
|
+
design_repositories_synced_count?: number;
|
|
74
|
+
design_repositories_failed_count?: number;
|
|
75
|
+
design_repositories_synced_in_percentage: string;
|
|
76
|
+
projects_count: number;
|
|
77
|
+
repositories_count: number;
|
|
78
|
+
repositories_failed_count?: number;
|
|
79
|
+
repositories_synced_count?: number;
|
|
80
|
+
repositories_synced_in_percentage: string;
|
|
81
|
+
wikis_count: number;
|
|
82
|
+
wikis_failed_count?: number;
|
|
83
|
+
wikis_synced_count?: number;
|
|
84
|
+
wikis_synced_in_percentage: string;
|
|
85
|
+
replication_slots_count: number;
|
|
86
|
+
replication_slots_used_count: number;
|
|
87
|
+
replication_slots_used_in_percentage: string;
|
|
88
|
+
replication_slots_max_retained_wal_bytes: number;
|
|
89
|
+
repositories_checked_count: number;
|
|
90
|
+
repositories_checked_failed_count: number;
|
|
91
|
+
repositories_checked_in_percentage: string;
|
|
92
|
+
repositories_checksummed_count: number;
|
|
93
|
+
repositories_checksum_failed_count: number;
|
|
94
|
+
repositories_checksummed_in_percentage: string;
|
|
95
|
+
wikis_checksummed_count: number;
|
|
96
|
+
wikis_checksum_failed_count: number;
|
|
97
|
+
wikis_checksummed_in_percentage: string;
|
|
98
|
+
repositories_verified_count: number;
|
|
99
|
+
repositories_verification_failed_count: number;
|
|
100
|
+
repositories_verified_in_percentage: string;
|
|
101
|
+
repositories_checksum_mismatch_count: number;
|
|
102
|
+
wikis_verified_count: number;
|
|
103
|
+
wikis_verification_failed_count: number;
|
|
104
|
+
wikis_verified_in_percentage: string;
|
|
105
|
+
wikis_checksum_mismatch_count: number;
|
|
106
|
+
repositories_retrying_verification_count: number;
|
|
107
|
+
wikis_retrying_verification_count: number;
|
|
108
|
+
last_event_id: number;
|
|
109
|
+
last_event_timestamp: number;
|
|
110
|
+
cursor_last_event_id?: number;
|
|
111
|
+
cursor_last_event_timestamp: number;
|
|
112
|
+
last_successful_status_check_timestamp: number;
|
|
113
|
+
version: string;
|
|
114
|
+
revision: string;
|
|
115
|
+
package_files_count: number;
|
|
116
|
+
package_files_checksummed_count: number;
|
|
117
|
+
package_files_checksum_failed_count: number;
|
|
118
|
+
package_files_registry_count: number;
|
|
119
|
+
package_files_synced_count: number;
|
|
120
|
+
package_files_failed_count: number;
|
|
121
|
+
snippet_repositories_count: number;
|
|
122
|
+
snippet_repositories_checksummed_count: number;
|
|
123
|
+
snippet_repositories_checksum_failed_count: number;
|
|
124
|
+
snippet_repositories_registry_count: number;
|
|
125
|
+
snippet_repositories_synced_count: number;
|
|
126
|
+
snippet_repositories_failed_count: number;
|
|
127
|
+
group_wiki_repositories_checksummed_count: number;
|
|
128
|
+
group_wiki_repositories_checksum_failed_count: number;
|
|
129
|
+
group_wiki_repositories_registry_count: number;
|
|
130
|
+
group_wiki_repositories_synced_count: number;
|
|
131
|
+
group_wiki_repositories_failed_count: number;
|
|
132
|
+
}
|
|
133
|
+
export declare class GeoNodes<C extends boolean = false> extends BaseResource<C> {
|
|
134
|
+
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeSchema>[]>;
|
|
135
|
+
create(geonodeId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeSchema>>;
|
|
136
|
+
edit(geonodeId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeSchema>>;
|
|
137
|
+
failures(options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeFailureSchema>[]>;
|
|
138
|
+
repair(geonodeId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeSchema>>;
|
|
139
|
+
remove(geonodeId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeSchema>>;
|
|
140
|
+
show(geonodeId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeSchema>>;
|
|
141
|
+
status(geonodeId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeStatusSchema>>;
|
|
142
|
+
statuses(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GeoNodeStatusSchema>[]>;
|
|
143
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { Groups } from './Groups';
|
|
3
|
+
import { GroupAccessRequests } from './GroupAccessRequests';
|
|
4
|
+
import { GroupBadges } from './GroupBadges';
|
|
5
|
+
import { GroupCustomAttributes } from './GroupCustomAttributes';
|
|
6
|
+
import { GroupIssueBoards } from './GroupIssueBoards';
|
|
7
|
+
import { GroupMembers } from './GroupMembers';
|
|
8
|
+
import { GroupMilestones } from './GroupMilestones';
|
|
9
|
+
import { GroupRunners } from './GroupRunners';
|
|
10
|
+
import { GroupVariables } from './GroupVariables';
|
|
11
|
+
import { GroupLabels } from './GroupLabels';
|
|
12
|
+
import { GroupDeployTokens } from './GroupDeployTokens';
|
|
13
|
+
import { Epics } from './Epics';
|
|
14
|
+
import { EpicIssues } from './EpicIssues';
|
|
15
|
+
import { EpicNotes } from './EpicNotes';
|
|
16
|
+
import { EpicDiscussions } from './EpicDiscussions';
|
|
17
|
+
import { Users } from './Users';
|
|
18
|
+
import { UserCustomAttributes } from './UserCustomAttributes';
|
|
19
|
+
import { UserEmails } from './UserEmails';
|
|
20
|
+
import { UserImpersonationTokens } from './UserImpersonationTokens';
|
|
21
|
+
import { UserSSHKeys } from './UserSSHKeys';
|
|
22
|
+
import { UserGPGKeys } from './UserGPGKeys';
|
|
23
|
+
import { Branches } from './Branches';
|
|
24
|
+
import { Commits } from './Commits';
|
|
25
|
+
import { CommitDiscussions } from './CommitDiscussions';
|
|
26
|
+
import { ContainerRegistry } from './ContainerRegistry';
|
|
27
|
+
import { Deployments } from './Deployments';
|
|
28
|
+
import { DeployKeys } from './DeployKeys';
|
|
29
|
+
import { Environments } from './Environments';
|
|
30
|
+
import { FreezePeriods } from './FreezePeriods';
|
|
31
|
+
import { Issues } from './Issues';
|
|
32
|
+
import { IssuesStatistics } from './IssuesStatistics';
|
|
33
|
+
import { IssueNotes } from './IssueNotes';
|
|
34
|
+
import { IssueNoteAwardEmojis } from './IssueNoteAwardEmojis';
|
|
35
|
+
import { IssueDiscussions } from './IssueDiscussions';
|
|
36
|
+
import { IssueAwardEmojis } from './IssueAwardEmojis';
|
|
37
|
+
import { Jobs } from './Jobs';
|
|
38
|
+
import { Labels } from './Labels';
|
|
39
|
+
import { MergeRequests } from './MergeRequests';
|
|
40
|
+
import { MergeRequestApprovals } from './MergeRequestApprovals';
|
|
41
|
+
import { MergeRequestAwardEmojis } from './MergeRequestAwardEmojis';
|
|
42
|
+
import { MergeRequestDiscussions } from './MergeRequestDiscussions';
|
|
43
|
+
import { MergeRequestNotes } from './MergeRequestNotes';
|
|
44
|
+
import { Packages } from './Packages';
|
|
45
|
+
import { PackageRegistry } from './PackageRegistry';
|
|
46
|
+
import { Pipelines } from './Pipelines';
|
|
47
|
+
import { PipelineSchedules } from './PipelineSchedules';
|
|
48
|
+
import { PipelineScheduleVariables } from './PipelineScheduleVariables';
|
|
49
|
+
import { Projects } from './Projects';
|
|
50
|
+
import { ProjectAccessRequests } from './ProjectAccessRequests';
|
|
51
|
+
import { ProjectBadges } from './ProjectBadges';
|
|
52
|
+
import { ProjectCustomAttributes } from './ProjectCustomAttributes';
|
|
53
|
+
import { ProjectImportExport } from './ProjectImportExport';
|
|
54
|
+
import { ProjectIssueBoards } from './ProjectIssueBoards';
|
|
55
|
+
import { ProjectHooks } from './ProjectHooks';
|
|
56
|
+
import { ProjectMembers } from './ProjectMembers';
|
|
57
|
+
import { ProjectMilestones } from './ProjectMilestones';
|
|
58
|
+
import { ProjectSnippets } from './ProjectSnippets';
|
|
59
|
+
import { ProjectSnippetNotes } from './ProjectSnippetNotes';
|
|
60
|
+
import { ProjectSnippetDiscussions } from './ProjectSnippetDiscussions';
|
|
61
|
+
import { ProjectSnippetAwardEmojis } from './ProjectSnippetAwardEmojis';
|
|
62
|
+
import { ProtectedBranches } from './ProtectedBranches';
|
|
63
|
+
import { ProtectedTags } from './ProtectedTags';
|
|
64
|
+
import { ProjectVariables } from './ProjectVariables';
|
|
65
|
+
import { ProjectDeployTokens } from './ProjectDeployTokens';
|
|
66
|
+
import { PushRules } from './PushRules';
|
|
67
|
+
import { Releases } from './Releases';
|
|
68
|
+
import { ReleaseLinks } from './ReleaseLinks';
|
|
69
|
+
import { Repositories } from './Repositories';
|
|
70
|
+
import { RepositoryFiles } from './RepositoryFiles';
|
|
71
|
+
import { RepositorySubmodules } from './RepositorySubmodules';
|
|
72
|
+
import { Runners } from './Runners';
|
|
73
|
+
import { Services } from './Services';
|
|
74
|
+
import { Tags } from './Tags';
|
|
75
|
+
import { Todos } from './Todos';
|
|
76
|
+
import { Triggers } from './Triggers';
|
|
77
|
+
import { VulnerabilityFindings } from './VulnerabilityFindings';
|
|
78
|
+
import { ApplicationSettings } from './ApplicationSettings';
|
|
79
|
+
import { BroadcastMessages } from './BroadcastMessages';
|
|
80
|
+
import { Events } from './Events';
|
|
81
|
+
import { FeatureFlags } from './FeatureFlags';
|
|
82
|
+
import { GeoNodes } from './GeoNodes';
|
|
83
|
+
import { GitignoreTemplates } from './GitignoreTemplates';
|
|
84
|
+
import { GitLabCIYMLTemplates } from './GitLabCIYMLTemplates';
|
|
85
|
+
import { Keys } from './Keys';
|
|
86
|
+
import { License } from './License';
|
|
87
|
+
import { LicenseTemplates } from './LicenseTemplates';
|
|
88
|
+
import { Lint } from './Lint';
|
|
89
|
+
import { Namespaces } from './Namespaces';
|
|
90
|
+
import { NotificationSettings } from './NotificationSettings';
|
|
91
|
+
import { Markdown } from './Markdown';
|
|
92
|
+
import { PagesDomains } from './PagesDomains';
|
|
93
|
+
import { Search } from './Search';
|
|
94
|
+
import { SidekiqMetrics } from './SidekiqMetrics';
|
|
95
|
+
import { Snippets } from './Snippets';
|
|
96
|
+
import { SystemHooks } from './SystemHooks';
|
|
97
|
+
import { Version } from './Version';
|
|
98
|
+
import { Wikis } from './Wikis';
|
|
99
|
+
declare type BundledService<C extends boolean = false> = {
|
|
100
|
+
Groups: Groups<C>;
|
|
101
|
+
GroupAccessRequests: GroupAccessRequests<C>;
|
|
102
|
+
GroupBadges: GroupBadges<C>;
|
|
103
|
+
GroupCustomAttributes: GroupCustomAttributes<C>;
|
|
104
|
+
GroupIssueBoards: GroupIssueBoards<C>;
|
|
105
|
+
GroupMembers: GroupMembers<C>;
|
|
106
|
+
GroupMilestones: GroupMilestones<C>;
|
|
107
|
+
GroupRunners: GroupRunners<C>;
|
|
108
|
+
GroupVariables: GroupVariables<C>;
|
|
109
|
+
GroupLabels: GroupLabels<C>;
|
|
110
|
+
GroupDeployTokens: GroupDeployTokens<C>;
|
|
111
|
+
Epics: Epics<C>;
|
|
112
|
+
EpicIssues: EpicIssues<C>;
|
|
113
|
+
EpicNotes: EpicNotes<C>;
|
|
114
|
+
EpicDiscussions: EpicDiscussions<C>;
|
|
115
|
+
Users: Users<C>;
|
|
116
|
+
UserCustomAttributes: UserCustomAttributes<C>;
|
|
117
|
+
UserEmails: UserEmails<C>;
|
|
118
|
+
UserImpersonationTokens: UserImpersonationTokens<C>;
|
|
119
|
+
UserSSHKeys: UserSSHKeys<C>;
|
|
120
|
+
UserGPGKeys: UserGPGKeys<C>;
|
|
121
|
+
Branches: Branches<C>;
|
|
122
|
+
Commits: Commits<C>;
|
|
123
|
+
CommitDiscussions: CommitDiscussions<C>;
|
|
124
|
+
ContainerRegistry: ContainerRegistry<C>;
|
|
125
|
+
Deployments: Deployments<C>;
|
|
126
|
+
DeployKeys: DeployKeys<C>;
|
|
127
|
+
Environments: Environments<C>;
|
|
128
|
+
FreezePeriods: FreezePeriods<C>;
|
|
129
|
+
Issues: Issues<C>;
|
|
130
|
+
IssuesStatistics: IssuesStatistics<C>;
|
|
131
|
+
IssueNotes: IssueNotes<C>;
|
|
132
|
+
IssueNoteAwardEmojis: IssueNoteAwardEmojis<C>;
|
|
133
|
+
IssueDiscussions: IssueDiscussions<C>;
|
|
134
|
+
IssueAwardEmojis: IssueAwardEmojis<C>;
|
|
135
|
+
Jobs: Jobs<C>;
|
|
136
|
+
Labels: Labels<C>;
|
|
137
|
+
MergeRequests: MergeRequests<C>;
|
|
138
|
+
MergeRequestApprovals: MergeRequestApprovals<C>;
|
|
139
|
+
MergeRequestAwardEmojis: MergeRequestAwardEmojis<C>;
|
|
140
|
+
MergeRequestDiscussions: MergeRequestDiscussions<C>;
|
|
141
|
+
MergeRequestNotes: MergeRequestNotes<C>;
|
|
142
|
+
Packages: Packages<C>;
|
|
143
|
+
PackageRegistry: PackageRegistry<C>;
|
|
144
|
+
Pipelines: Pipelines<C>;
|
|
145
|
+
PipelineSchedules: PipelineSchedules<C>;
|
|
146
|
+
PipelineScheduleVariables: PipelineScheduleVariables<C>;
|
|
147
|
+
Projects: Projects<C>;
|
|
148
|
+
ProjectAccessRequests: ProjectAccessRequests<C>;
|
|
149
|
+
ProjectBadges: ProjectBadges<C>;
|
|
150
|
+
ProjectCustomAttributes: ProjectCustomAttributes<C>;
|
|
151
|
+
ProjectImportExport: ProjectImportExport<C>;
|
|
152
|
+
ProjectIssueBoards: ProjectIssueBoards<C>;
|
|
153
|
+
ProjectHooks: ProjectHooks<C>;
|
|
154
|
+
ProjectMembers: ProjectMembers<C>;
|
|
155
|
+
ProjectMilestones: ProjectMilestones<C>;
|
|
156
|
+
ProjectSnippets: ProjectSnippets<C>;
|
|
157
|
+
ProjectSnippetNotes: ProjectSnippetNotes<C>;
|
|
158
|
+
ProjectSnippetDiscussions: ProjectSnippetDiscussions<C>;
|
|
159
|
+
ProjectSnippetAwardEmojis: ProjectSnippetAwardEmojis<C>;
|
|
160
|
+
ProtectedBranches: ProtectedBranches<C>;
|
|
161
|
+
ProtectedTags: ProtectedTags<C>;
|
|
162
|
+
ProjectVariables: ProjectVariables<C>;
|
|
163
|
+
ProjectDeployTokens: ProjectDeployTokens<C>;
|
|
164
|
+
PushRules: PushRules<C>;
|
|
165
|
+
Releases: Releases<C>;
|
|
166
|
+
ReleaseLinks: ReleaseLinks<C>;
|
|
167
|
+
Repositories: Repositories<C>;
|
|
168
|
+
RepositoryFiles: RepositoryFiles<C>;
|
|
169
|
+
RepositorySubmodules: RepositorySubmodules<C>;
|
|
170
|
+
Runners: Runners<C>;
|
|
171
|
+
Services: Services<C>;
|
|
172
|
+
Tags: Tags<C>;
|
|
173
|
+
Todos: Todos<C>;
|
|
174
|
+
Triggers: Triggers<C>;
|
|
175
|
+
VulnerabilityFindings: VulnerabilityFindings<C>;
|
|
176
|
+
ApplicationSettings: ApplicationSettings<C>;
|
|
177
|
+
BroadcastMessages: BroadcastMessages<C>;
|
|
178
|
+
Events: Events<C>;
|
|
179
|
+
FeatureFlags: FeatureFlags<C>;
|
|
180
|
+
GeoNodes: GeoNodes<C>;
|
|
181
|
+
GitignoreTemplates: GitignoreTemplates<C>;
|
|
182
|
+
GitLabCIYMLTemplates: GitLabCIYMLTemplates<C>;
|
|
183
|
+
Keys: Keys<C>;
|
|
184
|
+
License: License<C>;
|
|
185
|
+
LicenseTemplates: LicenseTemplates<C>;
|
|
186
|
+
Lint: Lint<C>;
|
|
187
|
+
Namespaces: Namespaces<C>;
|
|
188
|
+
NotificationSettings: NotificationSettings<C>;
|
|
189
|
+
Markdown: Markdown<C>;
|
|
190
|
+
PagesDomains: PagesDomains<C>;
|
|
191
|
+
Search: Search<C>;
|
|
192
|
+
SidekiqMetrics: SidekiqMetrics<C>;
|
|
193
|
+
Snippets: Snippets<C>;
|
|
194
|
+
SystemHooks: SystemHooks<C>;
|
|
195
|
+
Version: Version<C>;
|
|
196
|
+
Wikis: Wikis<C>;
|
|
197
|
+
};
|
|
198
|
+
declare const Gitlab_base: new () => BundledService;
|
|
199
|
+
export declare class Gitlab<C extends boolean = false> extends Gitlab_base {
|
|
200
|
+
constructor(options: BaseResourceOptions<C>);
|
|
201
|
+
}
|
|
202
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { ResourceAccessRequests } from '../templates';
|
|
3
|
+
import { AccessRequestSchema, AccessLevel } from '../templates/types';
|
|
4
|
+
import { Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
+
export interface GroupAccessRequests<C extends boolean = false> extends ResourceAccessRequests<C> {
|
|
6
|
+
all(groupId: string | number): Promise<CamelizedRecord<C, AccessRequestSchema>[]>;
|
|
7
|
+
request(groupId: string | number): Promise<CamelizedRecord<C, AccessRequestSchema>>;
|
|
8
|
+
approve(groupId: string | number, userId: number, options?: {
|
|
9
|
+
accessLevel?: AccessLevel;
|
|
10
|
+
} & Sudo): Promise<CamelizedRecord<C, AccessRequestSchema>>;
|
|
11
|
+
deny(groupId: string | number, userId: number): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare class GroupAccessRequests<C extends boolean = false> extends ResourceAccessRequests<C> {
|
|
14
|
+
constructor(options: BaseResourceOptions<C>);
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { ResourceBadges } from '../templates';
|
|
3
|
+
import { BadgeSchema } from '../templates/types';
|
|
4
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
+
export interface GroupBadgeSchema extends BadgeSchema {
|
|
6
|
+
kind: 'group';
|
|
7
|
+
}
|
|
8
|
+
export interface GroupBadges<C extends boolean = false> extends ResourceBadges<C> {
|
|
9
|
+
add(groupId: string | number, options?: BaseRequestOptions): Promise<CamelizedRecord<C, GroupBadgeSchema>>;
|
|
10
|
+
all(groupId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, GroupBadgeSchema>[]>;
|
|
11
|
+
edit(groupId: string | number, badgeId: number, options?: BaseRequestOptions): Promise<CamelizedRecord<C, GroupBadgeSchema>>;
|
|
12
|
+
preview(groupId: string | number, linkUrl: string, imageUrl: string, options?: Sudo): Promise<CamelizedRecord<C, Omit<GroupBadgeSchema, 'id' | 'name' | 'kind'>>>;
|
|
13
|
+
remove(groupId: string | number, badgeId: number, options?: Sudo): Promise<void>;
|
|
14
|
+
show(groupId: string | number, badgeId: number, options?: Sudo): Promise<CamelizedRecord<C, GroupBadgeSchema>>;
|
|
15
|
+
}
|
|
16
|
+
export declare class GroupBadges<C extends boolean = false> extends ResourceBadges<C> {
|
|
17
|
+
constructor(options: BaseResourceOptions<C>);
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { ResourceCustomAttributes } from '../templates';
|
|
3
|
+
import { CustomAttributeSchema } from '../templates/types';
|
|
4
|
+
import { PaginatedRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
+
export interface GroupCustomAttributes<C extends boolean = false> extends ResourceCustomAttributes<C> {
|
|
6
|
+
all(groupId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, CustomAttributeSchema>[]>;
|
|
7
|
+
set(groupId: string | number, customAttributeId: number, value: string, options?: Sudo): Promise<CamelizedRecord<C, CustomAttributeSchema>>;
|
|
8
|
+
remove(groupId: string | number, customAttributeId: number, options?: Sudo): Promise<void>;
|
|
9
|
+
show(groupId: string | number, customAttributeId: number, options?: Sudo): Promise<CamelizedRecord<C, CustomAttributeSchema>>;
|
|
10
|
+
}
|
|
11
|
+
export declare class GroupCustomAttributes<C extends boolean = false> extends ResourceCustomAttributes<C> {
|
|
12
|
+
constructor(options: BaseResourceOptions<C>);
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { ResourceDeployTokens } from '../templates';
|
|
3
|
+
import { DeployTokenScope, DeployTokenSchema } from '../templates/types';
|
|
4
|
+
import { BaseRequestOptions, PaginatedRequestOptions, CamelizedRecord, Sudo } from '../infrastructure';
|
|
5
|
+
export interface GroupDeployTokens<C extends boolean = false> extends ResourceDeployTokens<C> {
|
|
6
|
+
add(groupId: string | number, tokenName: string, tokenScopes: DeployTokenScope[], options?: BaseRequestOptions): Promise<CamelizedRecord<C, DeployTokenSchema>>;
|
|
7
|
+
all(options?: {
|
|
8
|
+
groupId?: string | number;
|
|
9
|
+
} & PaginatedRequestOptions): Promise<CamelizedRecord<C, DeployTokenSchema>[]>;
|
|
10
|
+
remove(groupId: string | number, tokenId: number, options?: Sudo): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export declare class GroupDeployTokens<C extends boolean = false> extends ResourceDeployTokens<C> {
|
|
13
|
+
constructor(options: BaseResourceOptions<C>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { GroupSchema } from './Groups';
|
|
3
|
+
import { ResourceIssueBoards } from '../templates';
|
|
4
|
+
import { IssueBoardSchema, IssueBoardListSchema } from '../templates/types';
|
|
5
|
+
import { BaseRequestOptions, PaginatedRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
6
|
+
export interface GroupIssueBoardSchema extends IssueBoardSchema {
|
|
7
|
+
group: Pick<GroupSchema, 'id' | 'name' | 'web_url'>;
|
|
8
|
+
}
|
|
9
|
+
export interface GroupIssueBoards<C extends boolean = false> extends ResourceIssueBoards<C> {
|
|
10
|
+
all(groupId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, IssueBoardSchema>[]>;
|
|
11
|
+
create(groupId: string | number, name: string, options?: Sudo): Promise<CamelizedRecord<C, GroupIssueBoardSchema>>;
|
|
12
|
+
createList(groupId: string | number, boardId: number, labelId: number | string, options?: Sudo): Promise<CamelizedRecord<C, IssueBoardListSchema>>;
|
|
13
|
+
edit(groupId: string | number, boardId: number, options?: BaseRequestOptions): Promise<CamelizedRecord<C, GroupIssueBoardSchema>>;
|
|
14
|
+
editList(groupId: string | number, boardId: number, listId: number, position: number, options?: Sudo): Promise<CamelizedRecord<C, IssueBoardListSchema>>;
|
|
15
|
+
lists(groupId: string | number, boardId: number, options?: Sudo): Promise<CamelizedRecord<C, IssueBoardListSchema>[]>;
|
|
16
|
+
remove(groupId: string | number, boardId: number, options?: Sudo): Promise<void>;
|
|
17
|
+
removeList(groupId: string | number, boardId: number, listId: number, options?: Sudo): Promise<void>;
|
|
18
|
+
show(groupId: string | number, boardId: number, options?: Sudo): Promise<CamelizedRecord<C, GroupIssueBoardSchema>>;
|
|
19
|
+
showList(groupId: string | number, boardId: number, listId: number, options?: Sudo): Promise<CamelizedRecord<C, IssueBoardListSchema>>;
|
|
20
|
+
}
|
|
21
|
+
export declare class GroupIssueBoards<C extends boolean = false> extends ResourceIssueBoards<C> {
|
|
22
|
+
constructor(options: BaseResourceOptions<C>);
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
+
import { BaseRequestOptions, PaginatedRequestOptions, CamelizedRecord, Sudo } from '../infrastructure';
|
|
3
|
+
import { ResourceLabels } from '../templates';
|
|
4
|
+
import { LabelSchema } from '../templates/types';
|
|
5
|
+
export interface GroupLabels<C extends boolean = false> extends ResourceLabels<C> {
|
|
6
|
+
all(groupId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, LabelSchema>[]>;
|
|
7
|
+
create(groupId: string | number, labelName: string, color: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, LabelSchema>>;
|
|
8
|
+
edit(groupId: string | number, labelId: number | string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, LabelSchema>>;
|
|
9
|
+
remove(groupId: string | number, labelId: number | string, options?: Sudo): Promise<void>;
|
|
10
|
+
subscribe(groupId: string | number, labelId: number | string, options?: Sudo): Promise<CamelizedRecord<C, LabelSchema>>;
|
|
11
|
+
unsubscribe(groupId: string | number, labelId: number | string, options?: Sudo): Promise<CamelizedRecord<C, LabelSchema>>;
|
|
12
|
+
}
|
|
13
|
+
export declare class GroupLabels<C extends boolean = false> extends ResourceLabels<C> {
|
|
14
|
+
constructor(options: BaseResourceOptions<C>);
|
|
15
|
+
}
|