@gitbeaker/core 35.8.0 → 36.0.0-rc.0
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,20 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export declare type DeployTokenScope = 'read_repository' | 'read_registry' | 'write_registry' | 'read_package_registry' | 'write_package_registry';
|
|
4
|
-
export interface DeployTokenSchema extends Record<string, unknown> {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
username: string;
|
|
8
|
-
expires_at: string;
|
|
9
|
-
scopes?: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare class ResourceDeployTokens<C extends boolean = false> extends BaseResource<C> {
|
|
12
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
13
|
-
add(resourceId: string | number, tokenName: string, tokenScopes: DeployTokenScope[], options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DeployTokenSchema>>;
|
|
14
|
-
all({ resourceId, projectId, groupId, ...options }?: {
|
|
15
|
-
resourceId?: string | number;
|
|
16
|
-
projectId?: string | number;
|
|
17
|
-
groupId?: string | number;
|
|
18
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DeployTokenSchema>[]>;
|
|
19
|
-
remove(resourceId: string | number, tokenId: number, options?: Sudo): Promise<void>;
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from '../resources/Users';
|
|
3
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
-
export interface DiscussionNotePosition {
|
|
5
|
-
base_sha: string;
|
|
6
|
-
start_sha: string;
|
|
7
|
-
head_sha: string;
|
|
8
|
-
old_path: string;
|
|
9
|
-
new_path: string;
|
|
10
|
-
position_type: string;
|
|
11
|
-
old_line: number;
|
|
12
|
-
new_line: number;
|
|
13
|
-
}
|
|
14
|
-
export interface DiscussionNote {
|
|
15
|
-
id: number;
|
|
16
|
-
type?: string;
|
|
17
|
-
body: string;
|
|
18
|
-
attachment?: string;
|
|
19
|
-
author: Omit<UserSchema, 'created_at'>;
|
|
20
|
-
created_at: string;
|
|
21
|
-
updated_at: string;
|
|
22
|
-
system: boolean;
|
|
23
|
-
noteable_id: number;
|
|
24
|
-
noteable_type: string;
|
|
25
|
-
noteable_iid?: number;
|
|
26
|
-
resolvable: boolean;
|
|
27
|
-
resolved?: boolean;
|
|
28
|
-
position?: DiscussionNotePosition;
|
|
29
|
-
}
|
|
30
|
-
export interface DiscussionSchema extends Record<string, unknown> {
|
|
31
|
-
id: string;
|
|
32
|
-
individual_note: boolean;
|
|
33
|
-
notes?: DiscussionNote[];
|
|
34
|
-
}
|
|
35
|
-
export declare class ResourceDiscussions<C extends boolean = false> extends BaseResource<C> {
|
|
36
|
-
protected resource2Type: string;
|
|
37
|
-
constructor(resourceType: string, resource2Type: string, options: BaseResourceOptions<C>);
|
|
38
|
-
addNote(resourceId: string | number, resource2Id: string | number, discussionId: string | number, noteId: number, body: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
39
|
-
all(resourceId: string | number, resource2Id: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DiscussionSchema>[]>;
|
|
40
|
-
create(resourceId: string | number, resource2Id: string | number, body: string, { position, ...options }?: {
|
|
41
|
-
position?: DiscussionNotePosition;
|
|
42
|
-
} & BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DiscussionSchema>>;
|
|
43
|
-
editNote(resourceId: string | number, resource2Id: string | number, discussionId: string | number, noteId: number, { body, ...options }?: BaseRequestOptions & {
|
|
44
|
-
body?: string;
|
|
45
|
-
}): Promise<import("../infrastructure").CamelizedRecord<C, DiscussionSchema>>;
|
|
46
|
-
removeNote(resourceId: string | number, resource2Id: string | number, discussionId: string | number, noteId: number, options?: Sudo): Promise<void>;
|
|
47
|
-
show(resourceId: string | number, resource2Id: string | number, discussionId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DiscussionSchema>>;
|
|
48
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { MilestoneSchema } from './ResourceMilestones';
|
|
3
|
-
import { LabelSchema } from './ResourceLabels';
|
|
4
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
5
|
-
export interface IssueBoardListSchema extends Record<string, unknown> {
|
|
6
|
-
id: number;
|
|
7
|
-
label: Pick<LabelSchema, 'name' | 'color' | 'description'>;
|
|
8
|
-
position: number;
|
|
9
|
-
max_issue_count: number;
|
|
10
|
-
max_issue_weight: number;
|
|
11
|
-
limit_metric?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IssueBoardSchema extends Record<string, unknown> {
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
milestone: Pick<MilestoneSchema, 'id' | 'title'>;
|
|
17
|
-
lists?: IssueBoardListSchema[];
|
|
18
|
-
}
|
|
19
|
-
export declare class ResourceIssueBoards<C extends boolean = false> extends BaseResource<C> {
|
|
20
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
21
|
-
all(resourceId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, IssueBoardSchema>[]>;
|
|
22
|
-
create(resourceId: string | number, name: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, IssueBoardSchema>>;
|
|
23
|
-
createList(resourceId: string | number, boardId: number, labelId: number | string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, IssueBoardListSchema>>;
|
|
24
|
-
edit(resourceId: string | number, boardId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
25
|
-
editList(resourceId: string | number, boardId: number, listId: number, position: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, IssueBoardListSchema>>;
|
|
26
|
-
lists(resourceId: string | number, boardId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, IssueBoardListSchema>[]>;
|
|
27
|
-
remove(resourceId: string | number, boardId: number, options?: Sudo): Promise<void>;
|
|
28
|
-
removeList(resourceId: string | number, boardId: number, listId: number, options?: Sudo): Promise<void>;
|
|
29
|
-
show(resourceId: string | number, boardId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, IssueBoardSchema>>;
|
|
30
|
-
showList(resourceId: string | number, boardId: number, listId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, IssueBoardListSchema>>;
|
|
31
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo, ShowExpanded } from '../infrastructure';
|
|
3
|
-
export interface LabelSchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
color: string;
|
|
7
|
-
text_color: string;
|
|
8
|
-
description: string;
|
|
9
|
-
description_html: string;
|
|
10
|
-
open_issues_count: number;
|
|
11
|
-
closed_issues_count: number;
|
|
12
|
-
open_merge_requests_count: number;
|
|
13
|
-
subscribed: boolean;
|
|
14
|
-
priority: number;
|
|
15
|
-
is_project_label: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class ResourceLabels<C extends boolean = false> extends BaseResource<C> {
|
|
18
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
19
|
-
all(resourceId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, LabelSchema>[]>;
|
|
20
|
-
create(resourceId: string | number, labelName: string, color: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, LabelSchema>>;
|
|
21
|
-
edit(resourceId: string | number, labelId: number | string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, LabelSchema>>;
|
|
22
|
-
remove(resourceId: string | number, labelId: number | string, options?: Sudo & ShowExpanded): Promise<void>;
|
|
23
|
-
subscribe(resourceId: string | number, labelId: number | string, options?: Sudo & ShowExpanded): Promise<import("../infrastructure").CamelizedRecord<C, LabelSchema> | import("../infrastructure").ExpandedResponse<import("../infrastructure").CamelizedRecord<C, LabelSchema>>>;
|
|
24
|
-
unsubscribe(resourceId: string | number, labelId: number | string, options?: Sudo & ShowExpanded): Promise<import("../infrastructure").CamelizedRecord<C, LabelSchema> | import("../infrastructure").ExpandedResponse<import("../infrastructure").CamelizedRecord<C, LabelSchema>>>;
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
import { AccessLevel } from './ResourceAccessRequests';
|
|
4
|
-
export interface IncludeInherited {
|
|
5
|
-
includeInherited?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface MemberSchema extends Record<string, unknown> {
|
|
8
|
-
id: number;
|
|
9
|
-
username: string;
|
|
10
|
-
name: string;
|
|
11
|
-
state: string;
|
|
12
|
-
avatar_url: string;
|
|
13
|
-
web_url: string;
|
|
14
|
-
expires_at: string;
|
|
15
|
-
access_level: AccessLevel;
|
|
16
|
-
email: string;
|
|
17
|
-
group_saml_identity: {
|
|
18
|
-
extern_uid: string;
|
|
19
|
-
provider: string;
|
|
20
|
-
saml_provider_id: number;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare class ResourceMembers<C extends boolean = false> extends BaseResource<C> {
|
|
24
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
25
|
-
add(resourceId: string | number, userId: number, accessLevel: AccessLevel, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MemberSchema>>;
|
|
26
|
-
all(resourceId: string | number, { includeInherited, ...options }?: IncludeInherited & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MemberSchema>[]>;
|
|
27
|
-
edit(resourceId: string | number, userId: number, accessLevel: AccessLevel, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MemberSchema>>;
|
|
28
|
-
show(resourceId: string | number, userId: number, { includeInherited, ...options }?: IncludeInherited & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, MemberSchema>>;
|
|
29
|
-
remove(resourceId: string | number, userId: number, options?: Sudo): Promise<void>;
|
|
30
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, BaseRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
import { IssueSchema } from '../resources/Issues';
|
|
4
|
-
import { MergeRequestSchema } from '../resources/MergeRequests';
|
|
5
|
-
export interface MilestoneSchema extends Record<string, unknown> {
|
|
6
|
-
id: number;
|
|
7
|
-
iid: number;
|
|
8
|
-
project_id: number;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
due_date?: string;
|
|
12
|
-
start_date: string;
|
|
13
|
-
state: string;
|
|
14
|
-
updated_at: string;
|
|
15
|
-
created_at: string;
|
|
16
|
-
expired: boolean;
|
|
17
|
-
web_url?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare class ResourceMilestones<C extends boolean = false> extends BaseResource<C> {
|
|
20
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
21
|
-
all(resourceId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MilestoneSchema>[]>;
|
|
22
|
-
create(resourceId: string | number, title: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MilestoneSchema>>;
|
|
23
|
-
edit(resourceId: string | number, milestoneId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MilestoneSchema>>;
|
|
24
|
-
issues(resourceId: string | number, milestoneId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, IssueSchema>[]>;
|
|
25
|
-
mergeRequests(resourceId: string | number, milestoneId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, MergeRequestSchema>[]>;
|
|
26
|
-
show(resourceId: string | number, milestoneId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, MilestoneSchema>>;
|
|
27
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
import { AwardEmojiSchema } from './ResourceAwardEmojis';
|
|
4
|
-
export declare class ResourceNoteAwardEmojis<C extends boolean = false> extends BaseResource<C> {
|
|
5
|
-
protected resourceType: string;
|
|
6
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
7
|
-
all(projectId: string | number, resourceIId: number, noteId: number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, AwardEmojiSchema>[]>;
|
|
8
|
-
award(projectId: string | number, resourceIId: number, noteId: number, name: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, AwardEmojiSchema>>;
|
|
9
|
-
remove(projectId: string | number, resourceIId: number, noteId: number, awardId: number, options?: Sudo): Promise<void>;
|
|
10
|
-
show(projectId: string | number, resourceIId: number, noteId: number, awardId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, AwardEmojiSchema>>;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from '../resources/Users';
|
|
3
|
-
import { PaginatedRequestOptions, BaseRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
-
export interface NoteSchema extends Record<string, unknown> {
|
|
5
|
-
id: number;
|
|
6
|
-
body: string;
|
|
7
|
-
author: UserSchema;
|
|
8
|
-
created_at: string;
|
|
9
|
-
updated_at: string;
|
|
10
|
-
confidential: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare class ResourceNotes<C extends boolean = false> extends BaseResource<C> {
|
|
13
|
-
protected resource2Type: string;
|
|
14
|
-
constructor(resourceType: string, resource2Type: string, options: BaseResourceOptions<C>);
|
|
15
|
-
all(resourceId: string | number, resource2Id: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, NoteSchema>[]>;
|
|
16
|
-
create(resourceId: string | number, resource2Id: string | number, body: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, NoteSchema>>;
|
|
17
|
-
edit(resourceId: string | number, resource2Id: string | number, noteId: number, body: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, NoteSchema>>;
|
|
18
|
-
remove(resourceId: string | number, resource2Id: string | number, noteId: number, options?: Sudo): Promise<void>;
|
|
19
|
-
show(resourceId: string | number, resource2Id: string | number, noteId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, NoteSchema>>;
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface TemplateSchema extends Record<string, unknown> {
|
|
4
|
-
name: string;
|
|
5
|
-
content: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class ResourceTemplates<C extends boolean = false> extends BaseResource<C> {
|
|
8
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
9
|
-
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, TemplateSchema>[]>;
|
|
10
|
-
show(key: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, TemplateSchema>>;
|
|
11
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseResource, BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { Sudo, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface VariableSchema extends Record<string, unknown> {
|
|
4
|
-
variable_type: 'env_var' | 'file';
|
|
5
|
-
value: string;
|
|
6
|
-
protected: boolean;
|
|
7
|
-
masked: boolean;
|
|
8
|
-
environment_scope?: string;
|
|
9
|
-
key: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class ResourceVariables<C extends boolean> extends BaseResource<C> {
|
|
12
|
-
constructor(resourceType: string, options: BaseResourceOptions<C>);
|
|
13
|
-
all(resourceId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, VariableSchema>[]>;
|
|
14
|
-
create(resourceId: string | number, options?: VariableSchema): Promise<import("../infrastructure").CamelizedRecord<C, VariableSchema>>;
|
|
15
|
-
edit(resourceId: string | number, keyId: string, options?: Omit<VariableSchema, 'key'>): Promise<import("../infrastructure").CamelizedRecord<C, VariableSchema>>;
|
|
16
|
-
show(resourceId: string | number, keyId: string, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, VariableSchema>>;
|
|
17
|
-
remove(resourceId: string | number, keyId: string, options?: Sudo): Promise<void>;
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { ResourceAccessRequests } from './ResourceAccessRequests';
|
|
2
|
-
export { ResourceAwardEmojis } from './ResourceAwardEmojis';
|
|
3
|
-
export { ResourceNoteAwardEmojis } from './ResourceNoteAwardEmojis';
|
|
4
|
-
export { ResourceBadges } from './ResourceBadges';
|
|
5
|
-
export { ResourceCustomAttributes } from './ResourceCustomAttributes';
|
|
6
|
-
export { ResourceDeployTokens } from './ResourceDeployTokens';
|
|
7
|
-
export { ResourceDiscussions } from './ResourceDiscussions';
|
|
8
|
-
export { ResourceIssueBoards } from './ResourceIssueBoards';
|
|
9
|
-
export { ResourceLabels } from './ResourceLabels';
|
|
10
|
-
export { ResourceMembers } from './ResourceMembers';
|
|
11
|
-
export { ResourceMilestones } from './ResourceMilestones';
|
|
12
|
-
export { ResourceNotes } from './ResourceNotes';
|
|
13
|
-
export { ResourceTemplates } from './ResourceTemplates';
|
|
14
|
-
export { ResourceVariables } from './ResourceVariables';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { AccessRequestSchema, AccessLevel } from './ResourceAccessRequests';
|
|
2
|
-
export { AwardEmojiSchema } from './ResourceAwardEmojis';
|
|
3
|
-
export { BadgeSchema } from './ResourceBadges';
|
|
4
|
-
export { CustomAttributeSchema } from './ResourceCustomAttributes';
|
|
5
|
-
export { DeployTokenScope, DeployTokenSchema } from './ResourceDeployTokens';
|
|
6
|
-
export { DiscussionSchema, DiscussionNote, DiscussionNotePosition } from './ResourceDiscussions';
|
|
7
|
-
export { IssueBoardListSchema, IssueBoardSchema } from './ResourceIssueBoards';
|
|
8
|
-
export { LabelSchema } from './ResourceLabels';
|
|
9
|
-
export { MemberSchema, IncludeInherited } from './ResourceMembers';
|
|
10
|
-
export { MilestoneSchema } from './ResourceMilestones';
|
|
11
|
-
export { NoteSchema } from './ResourceNotes';
|
|
12
|
-
export { TemplateSchema } from './ResourceTemplates';
|
|
13
|
-
export { VariableSchema } from './ResourceVariables';
|
package/dist/types/types.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './resources/types';
|
|
2
|
-
export * from './templates/types';
|
|
3
|
-
export { Sudo, ShowExpanded, BaseRequestOptions, BasePaginationRequestOptions, OffsetPaginationRequestOptions, PaginatedRequestOptions, ExpandedResponse, PaginationResponse, CamelizedRecord, } from './infrastructure';
|