@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
package/dist/types/index.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
3
|
-
import { Camelize } from './Utils';
|
|
4
|
-
export declare type IsForm = {
|
|
5
|
-
isForm?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare type Sudo = {
|
|
8
|
-
sudo?: string | number;
|
|
9
|
-
};
|
|
10
|
-
export declare type ShowExpanded<T extends boolean = boolean> = {
|
|
11
|
-
showExpanded?: T;
|
|
12
|
-
};
|
|
13
|
-
export declare type BaseRequestOptions = Sudo & Record<string, unknown>;
|
|
14
|
-
export declare type BasePaginationRequestOptions<P extends 'keyset' | 'offset' = 'keyset' | 'offset'> = BaseRequestOptions & {
|
|
15
|
-
pagination?: P;
|
|
16
|
-
perPage?: number;
|
|
17
|
-
};
|
|
18
|
-
export declare type OffsetPaginationRequestOptions = {
|
|
19
|
-
page?: number;
|
|
20
|
-
maxPages?: number;
|
|
21
|
-
};
|
|
22
|
-
export declare type PaginatedRequestOptions<P extends 'keyset' | 'offset' = 'keyset' | 'offset'> = P extends 'keyset' ? BasePaginationRequestOptions<P> : BasePaginationRequestOptions<P> & OffsetPaginationRequestOptions;
|
|
23
|
-
export interface ExpandedResponse<T = Record<string, unknown>> {
|
|
24
|
-
data: T;
|
|
25
|
-
headers: Record<string, unknown>;
|
|
26
|
-
status: number;
|
|
27
|
-
}
|
|
28
|
-
export interface PaginationResponse<T = Record<string, unknown>[]> {
|
|
29
|
-
data: T;
|
|
30
|
-
paginationInfo: {
|
|
31
|
-
total: number;
|
|
32
|
-
next: number | null;
|
|
33
|
-
current: number;
|
|
34
|
-
previous: number | null;
|
|
35
|
-
perPage: number;
|
|
36
|
-
totalPages: number;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export declare type CamelizedRecord<C, T> = C extends true ? Camelize<T> : T;
|
|
40
|
-
export declare type ExtendedRecordReturn<C extends boolean, E extends boolean, T extends Record<string, unknown> | void> = T extends void ? void : E extends false ? CamelizedRecord<C, T> : ExpandedResponse<CamelizedRecord<C, T>>;
|
|
41
|
-
export declare type ExtendedArrayReturn<C extends boolean, E extends boolean, T, P extends 'keyset' | 'offset'> = E extends false ? CamelizedRecord<C, T>[] : P extends 'keyset' ? CamelizedRecord<C, T>[] : PaginationResponse<CamelizedRecord<C, T>[]>;
|
|
42
|
-
export declare type ExtendedReturn<C extends boolean, E extends boolean, P extends 'keyset' | 'offset', T extends Record<string, unknown> | Record<string, unknown>[]> = T extends Record<string, unknown> ? ExtendedRecordReturn<C, E, T> : T extends (infer R)[] ? ExtendedArrayReturn<C, E, R, P> : never;
|
|
43
|
-
export declare function get<T extends Record<string, unknown> | Record<string, unknown>[] = Record<string, unknown>>(): <C extends boolean, P extends "keyset" | "offset" = "offset", E extends boolean = false>(service: BaseResource<C>, endpoint: string, options?: (PaginatedRequestOptions<P> & ShowExpanded<E> & Record<string, any>) | undefined) => Promise<ExtendedReturn<C, E, P, T>>;
|
|
44
|
-
export declare function post<T extends Record<string, unknown> | void = Record<string, unknown>>(): <C extends boolean, E extends boolean = false>(service: BaseResource<C>, endpoint: string, { query, isForm, sudo, showExpanded, ...options }?: IsForm & Sudo & Record<string, unknown> & ShowExpanded<E>) => Promise<ExtendedRecordReturn<C, E, T>>;
|
|
45
|
-
export declare function put<T extends Record<string, unknown> = Record<string, unknown>>(): <C extends boolean, E extends boolean = false>(service: BaseResource<C>, endpoint: string, { query, isForm, sudo, showExpanded, ...options }?: IsForm & Sudo & Record<string, unknown> & ShowExpanded<E>) => Promise<ExtendedRecordReturn<C, E, T>>;
|
|
46
|
-
export declare function del<T extends Record<string, unknown> | void = void>(): <C extends boolean, E extends boolean = false>(service: BaseResource<C>, endpoint: string, { sudo, showExpanded, query, ...options }?: Sudo & Record<string, unknown> & ShowExpanded<E>) => Promise<ExtendedRecordReturn<C, E, T>>;
|
|
47
|
-
declare function stream<C extends boolean>(service: BaseResource<C>, endpoint: string, options?: BaseRequestOptions): NodeJS.ReadableStream;
|
|
48
|
-
export declare const RequestHelper: {
|
|
49
|
-
post: typeof post;
|
|
50
|
-
put: typeof put;
|
|
51
|
-
get: typeof get;
|
|
52
|
-
del: typeof del;
|
|
53
|
-
stream: typeof stream;
|
|
54
|
-
};
|
|
55
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import FormData from 'form-data';
|
|
2
|
-
export declare type CamelizeString<T extends PropertyKey> = T extends string ? string extends T ? string : T extends `${infer F}_${infer R}` ? `${F}${Capitalize<CamelizeString<R>>}` : T : T;
|
|
3
|
-
export declare type Camelize<T> = {
|
|
4
|
-
[K in keyof T as CamelizeString<K>]: T[K];
|
|
5
|
-
};
|
|
6
|
-
export declare function appendFormFromObject(object: Record<string, unknown>): FormData;
|
|
7
|
-
export declare function getAPIMap(): Record<string, unknown>;
|
|
8
|
-
/**
|
|
9
|
-
* Normalize GitLab API endpoint by encoding route parameters.
|
|
10
|
-
* @param strings
|
|
11
|
-
* @param values
|
|
12
|
-
*/
|
|
13
|
-
export declare function endpoint<T extends (string | number)[]>(strings: TemplateStringsArray, ...values: T): T extends number[] ? void : string;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { Sudo, BaseRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface ApplicationSettingsSchema extends Record<string, unknown> {
|
|
4
|
-
default_projects_limit: number;
|
|
5
|
-
signup_enabled: boolean;
|
|
6
|
-
id: number;
|
|
7
|
-
default_branch_protection: number;
|
|
8
|
-
restricted_visibility_levels?: string[];
|
|
9
|
-
password_authentication_enabled_for_web: boolean;
|
|
10
|
-
after_sign_out_path?: string;
|
|
11
|
-
max_attachment_size: number;
|
|
12
|
-
max_import_size: number;
|
|
13
|
-
user_oauth_applications: boolean;
|
|
14
|
-
updated_at: string;
|
|
15
|
-
session_expire_delay: number;
|
|
16
|
-
home_page_url?: string;
|
|
17
|
-
default_snippet_visibility: string;
|
|
18
|
-
outbound_local_requests_whitelist?: string[];
|
|
19
|
-
domain_allowlist?: string[];
|
|
20
|
-
domain_denylist_enabled: boolean;
|
|
21
|
-
domain_denylist?: string[];
|
|
22
|
-
created_at: string;
|
|
23
|
-
default_ci_config_path?: string;
|
|
24
|
-
default_project_visibility: string;
|
|
25
|
-
default_group_visibility: string;
|
|
26
|
-
gravatar_enabled: boolean;
|
|
27
|
-
sign_in_text?: string;
|
|
28
|
-
container_expiration_policies_enable_historic_entries: boolean;
|
|
29
|
-
container_registry_token_expire_delay: number;
|
|
30
|
-
repository_storages_weighted: {
|
|
31
|
-
[name: string]: number;
|
|
32
|
-
};
|
|
33
|
-
plantuml_enabled: boolean;
|
|
34
|
-
plantuml_url?: string;
|
|
35
|
-
kroki_enabled: boolean;
|
|
36
|
-
kroki_url?: string;
|
|
37
|
-
terminal_max_session_time: number;
|
|
38
|
-
polling_interval_multiplier: number;
|
|
39
|
-
rsa_key_restriction: number;
|
|
40
|
-
dsa_key_restriction: number;
|
|
41
|
-
ecdsa_key_restriction: number;
|
|
42
|
-
ed25519_key_restriction: number;
|
|
43
|
-
first_day_of_week: number;
|
|
44
|
-
enforce_terms: boolean;
|
|
45
|
-
terms: string;
|
|
46
|
-
performance_bar_allowed_group_id: number;
|
|
47
|
-
user_show_add_ssh_key_message: boolean;
|
|
48
|
-
local_markdown_version: number;
|
|
49
|
-
allow_local_requests_from_hooks_and_services: boolean;
|
|
50
|
-
allow_local_requests_from_web_hooks_and_services: boolean;
|
|
51
|
-
allow_local_requests_from_system_hooks: boolean;
|
|
52
|
-
asset_proxy_enabled: boolean;
|
|
53
|
-
asset_proxy_url: string;
|
|
54
|
-
asset_proxy_whitelist?: string[];
|
|
55
|
-
asset_proxy_allowlist?: string[];
|
|
56
|
-
npm_package_requests_forwarding: boolean;
|
|
57
|
-
snippet_size_limit: number;
|
|
58
|
-
issues_create_limit: number;
|
|
59
|
-
raw_blob_request_limit: number;
|
|
60
|
-
wiki_page_max_content_bytes: number;
|
|
61
|
-
require_admin_approval_after_user_signup: boolean;
|
|
62
|
-
personal_access_token_prefix: string;
|
|
63
|
-
rate_limiting_response_text?: string;
|
|
64
|
-
keep_latest_artifact: boolean;
|
|
65
|
-
}
|
|
66
|
-
export declare class ApplicationSettings<C extends boolean = false> extends BaseResource<C> {
|
|
67
|
-
all(options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, ApplicationSettingsSchema>>;
|
|
68
|
-
edit(options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ApplicationSettingsSchema>>;
|
|
69
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { CommitSchema } from './Commits';
|
|
3
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
4
|
-
export interface BranchSchema extends Record<string, unknown> {
|
|
5
|
-
name: string;
|
|
6
|
-
merged: boolean;
|
|
7
|
-
protected: boolean;
|
|
8
|
-
default: boolean;
|
|
9
|
-
developers_can_push: boolean;
|
|
10
|
-
developers_can_merge: boolean;
|
|
11
|
-
can_push: boolean;
|
|
12
|
-
web_url: string;
|
|
13
|
-
commit: Omit<CommitSchema, 'web_url' | 'created_at'>;
|
|
14
|
-
}
|
|
15
|
-
export declare class Branches<C extends boolean = false> extends BaseResource<C> {
|
|
16
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BranchSchema>[]>;
|
|
17
|
-
create(projectId: string | number, branchName: string, ref: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BranchSchema>>;
|
|
18
|
-
remove(projectId: string | number, branchName: string, options?: Sudo): Promise<void>;
|
|
19
|
-
show(projectId: string | number, branchName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BranchSchema>>;
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo, Camelize } from '../infrastructure';
|
|
3
|
-
export interface BroadcastMessageSchema extends Record<string, unknown> {
|
|
4
|
-
message: string;
|
|
5
|
-
starts_at: string;
|
|
6
|
-
ends_at: string;
|
|
7
|
-
color: string;
|
|
8
|
-
font: string;
|
|
9
|
-
id: number;
|
|
10
|
-
active: boolean;
|
|
11
|
-
target_path: string;
|
|
12
|
-
broadcast_type: string;
|
|
13
|
-
dismissable: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class BroadcastMessages<C extends boolean = false> extends BaseResource<C> {
|
|
16
|
-
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>[]>;
|
|
17
|
-
create(options?: Camelize<Omit<BroadcastMessageSchema, 'id'>> & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>>;
|
|
18
|
-
edit(broadcastMessageId: number, options?: Camelize<Omit<BroadcastMessageSchema, 'id'>> & Sudo): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>>;
|
|
19
|
-
remove(broadcastMessageId: number, options?: Sudo): Promise<void>;
|
|
20
|
-
show(broadcastMessageId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, BroadcastMessageSchema>>;
|
|
21
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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 CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
|
|
6
|
-
addNote(projectId: string | number, commitId: number, discussionId: string | number, noteId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
7
|
-
all(projectId: string | number, commitId: number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>[]>;
|
|
8
|
-
create(projectId: string | number, commitId: number, body: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
9
|
-
editNote(projectId: string | number, commitId: number, discussionId: string | number, noteId: number, options: BaseRequestOptions & {
|
|
10
|
-
body: string;
|
|
11
|
-
}): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
12
|
-
removeNote(projectId: string | number, commitId: number, discussionId: string | number, noteId: number, options?: Sudo): Promise<void>;
|
|
13
|
-
show(projectId: string | number, commitId: number, discussionId: string | number, options?: Sudo): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
14
|
-
}
|
|
15
|
-
export declare class CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
|
|
16
|
-
constructor(options: BaseResourceOptions<C>);
|
|
17
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { UserSchema } from './Users';
|
|
3
|
-
import { MergeRequestSchema } from './MergeRequests';
|
|
4
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
5
|
-
export interface CommitAction {
|
|
6
|
-
/** The action to perform */
|
|
7
|
-
action: 'create' | 'delete' | 'move' | 'update' | 'chmod';
|
|
8
|
-
/** Full path to the file. Ex. lib/class.rb */
|
|
9
|
-
filePath: string;
|
|
10
|
-
/** Original full path to the file being moved.Ex.lib / class1.rb */
|
|
11
|
-
previousPath?: string;
|
|
12
|
-
/** File content, required for all except delete. Optional for move */
|
|
13
|
-
content?: string;
|
|
14
|
-
/** text or base64. text is default. */
|
|
15
|
-
encoding?: string;
|
|
16
|
-
/** Last known file commit id. Will be only considered in update, move and delete actions. */
|
|
17
|
-
lastCommitId?: string;
|
|
18
|
-
/** When true/false enables/disables the execute flag on the file. Only considered for chmod action. */
|
|
19
|
-
execute_filemode?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface CommitSchema extends Record<string, unknown> {
|
|
22
|
-
id: string;
|
|
23
|
-
short_id: string;
|
|
24
|
-
created_at: Date;
|
|
25
|
-
parent_ids?: string[];
|
|
26
|
-
title: string;
|
|
27
|
-
message: string;
|
|
28
|
-
author_name: string;
|
|
29
|
-
author_email: string;
|
|
30
|
-
authored_date?: Date;
|
|
31
|
-
committer_name?: string;
|
|
32
|
-
committer_email?: string;
|
|
33
|
-
committed_date?: Date;
|
|
34
|
-
web_url: string;
|
|
35
|
-
}
|
|
36
|
-
export interface CommitExtendedSchema extends CommitSchema {
|
|
37
|
-
last_pipeline: {
|
|
38
|
-
id: number;
|
|
39
|
-
ref: string;
|
|
40
|
-
sha: string;
|
|
41
|
-
status: string;
|
|
42
|
-
};
|
|
43
|
-
stats: {
|
|
44
|
-
additions: number;
|
|
45
|
-
deletions: number;
|
|
46
|
-
total: number;
|
|
47
|
-
};
|
|
48
|
-
status: string;
|
|
49
|
-
}
|
|
50
|
-
export interface GPGSignatureSchema extends Record<string, unknown> {
|
|
51
|
-
signature_type: 'PGP';
|
|
52
|
-
verification_status: 'verified' | 'unverified';
|
|
53
|
-
gpg_key_id: number;
|
|
54
|
-
gpg_key_primary_keyid: string;
|
|
55
|
-
gpg_key_user_name: string;
|
|
56
|
-
gpg_key_user_email: string;
|
|
57
|
-
gpg_key_subkey_id?: number;
|
|
58
|
-
commit_source: string;
|
|
59
|
-
}
|
|
60
|
-
export interface X509SignatureSchema extends Record<string, unknown> {
|
|
61
|
-
signature_type: 'X509';
|
|
62
|
-
verification_status: 'verified' | 'unverified';
|
|
63
|
-
x509_certificate: {
|
|
64
|
-
id: number;
|
|
65
|
-
subject: string;
|
|
66
|
-
subject_key_identifier: string;
|
|
67
|
-
email: string;
|
|
68
|
-
serial_number: string;
|
|
69
|
-
certificate_status: string;
|
|
70
|
-
x509_issuer: {
|
|
71
|
-
id: number;
|
|
72
|
-
subject: string;
|
|
73
|
-
subject_key_identifier: string;
|
|
74
|
-
crl_url: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
commit_source: string;
|
|
78
|
-
}
|
|
79
|
-
export interface MissingSignatureSchema extends Record<string, unknown> {
|
|
80
|
-
message: string;
|
|
81
|
-
}
|
|
82
|
-
export declare type CommitSignatureSchema = GPGSignatureSchema | X509SignatureSchema | MissingSignatureSchema;
|
|
83
|
-
export interface CommentSchema extends Record<string, unknown> {
|
|
84
|
-
note: string;
|
|
85
|
-
line_type: 'new' | 'old';
|
|
86
|
-
path: string;
|
|
87
|
-
line: number;
|
|
88
|
-
author: Omit<UserSchema, 'created_at'>;
|
|
89
|
-
}
|
|
90
|
-
export interface CommitDiffSchema extends Record<string, unknown> {
|
|
91
|
-
diff: string;
|
|
92
|
-
new_path: string;
|
|
93
|
-
old_path: string;
|
|
94
|
-
a_mode?: string;
|
|
95
|
-
b_mode: string;
|
|
96
|
-
new_file: boolean;
|
|
97
|
-
renamed_file: boolean;
|
|
98
|
-
deleted_file: boolean;
|
|
99
|
-
}
|
|
100
|
-
export interface CommitStatusSchema extends Record<string, unknown> {
|
|
101
|
-
status: string;
|
|
102
|
-
created_at: string;
|
|
103
|
-
started_at?: string;
|
|
104
|
-
name: string;
|
|
105
|
-
allow_failure: boolean;
|
|
106
|
-
author: Omit<UserSchema, 'created_at'>;
|
|
107
|
-
description?: string;
|
|
108
|
-
sha: string;
|
|
109
|
-
target_url: string;
|
|
110
|
-
finished_at?: string;
|
|
111
|
-
id: number;
|
|
112
|
-
ref: string;
|
|
113
|
-
}
|
|
114
|
-
export interface CommitReferenceSchema extends Record<string, unknown> {
|
|
115
|
-
type: 'branch' | 'tag' | 'all';
|
|
116
|
-
name: string;
|
|
117
|
-
}
|
|
118
|
-
export declare class Commits<C extends boolean = false> extends BaseResource<C> {
|
|
119
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitSchema>[]>;
|
|
120
|
-
cherryPick(projectId: string | number, sha: string, branch: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitSchema>>;
|
|
121
|
-
comments(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommentSchema>[]>;
|
|
122
|
-
create(projectId: string | number, branch: string, message: string, actions?: CommitAction[], options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitExtendedSchema>>;
|
|
123
|
-
createComment(projectId: string | number, sha: string, note: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommentSchema>>;
|
|
124
|
-
diff(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitDiffSchema>[]>;
|
|
125
|
-
editStatus(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitStatusSchema>>;
|
|
126
|
-
references(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitReferenceSchema>[]>;
|
|
127
|
-
revert(projectId: string | number, sha: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, CommitSchema>>;
|
|
128
|
-
show(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitExtendedSchema>>;
|
|
129
|
-
statuses(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, CommitStatusSchema>[]>;
|
|
130
|
-
mergeRequests(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, MergeRequestSchema>[]>;
|
|
131
|
-
signature(projectId: string | number, sha: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GPGSignatureSchema> | import("../infrastructure").CamelizedRecord<C, X509SignatureSchema> | import("../infrastructure").CamelizedRecord<C, MissingSignatureSchema>>;
|
|
132
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
export interface RegistryRepositoryTagSchema extends Record<string, unknown> {
|
|
4
|
-
name: string;
|
|
5
|
-
path: string;
|
|
6
|
-
location: string;
|
|
7
|
-
revision: string;
|
|
8
|
-
short_revision: string;
|
|
9
|
-
digest: string;
|
|
10
|
-
created_at: string;
|
|
11
|
-
total_size: number;
|
|
12
|
-
}
|
|
13
|
-
export interface RegistryRepositorySchema extends Record<string, unknown> {
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
path: string;
|
|
17
|
-
project_id: number;
|
|
18
|
-
location: string;
|
|
19
|
-
created_at: string;
|
|
20
|
-
cleanup_policy_started_at: string;
|
|
21
|
-
tags_count?: number;
|
|
22
|
-
tags?: Pick<RegistryRepositoryTagSchema, 'name' | 'path' | 'location'>[];
|
|
23
|
-
}
|
|
24
|
-
export declare class ContainerRegistry<C extends boolean = false> extends BaseResource<C> {
|
|
25
|
-
projectRepositories(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<RegistryRepositorySchema, "tags_count" | "tags">>[]>;
|
|
26
|
-
groupRepositories(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<RegistryRepositorySchema, "tags_count" | "tags">>[]>;
|
|
27
|
-
showRepository(projectId: string | number, repositoryId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RegistryRepositorySchema>>;
|
|
28
|
-
tags(projectId: string | number, repositoryId: number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Pick<RegistryRepositoryTagSchema, "name" | "path" | "location">>[]>;
|
|
29
|
-
removeRepository(projectId: string | number, repositoryId: number, options?: Sudo): Promise<void>;
|
|
30
|
-
removeTag(projectId: string | number, repositoryId: number, tagName: string, options?: Sudo): Promise<void>;
|
|
31
|
-
removeTags(projectId: string | number, repositoryId: number, nameRegexDelete: string, options?: Sudo & {
|
|
32
|
-
nameRegexKeep: string;
|
|
33
|
-
keepN: string;
|
|
34
|
-
olderThan: string;
|
|
35
|
-
}): Promise<void>;
|
|
36
|
-
showTag(projectId: string | number, repositoryId: number, tagName: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, RegistryRepositoryTagSchema>>;
|
|
37
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { Sudo, BaseRequestOptions, PaginatedRequestOptions } from '../infrastructure';
|
|
3
|
-
export interface DeployKeySchema extends Record<string, unknown> {
|
|
4
|
-
id: number;
|
|
5
|
-
title: string;
|
|
6
|
-
key: string;
|
|
7
|
-
can_push?: boolean;
|
|
8
|
-
created_at: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class DeployKeys<C extends boolean = false> extends BaseResource<C> {
|
|
11
|
-
add(projectId: string | number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeployKeySchema>>;
|
|
12
|
-
all({ projectId, ...options }?: {
|
|
13
|
-
projectId?: string | number;
|
|
14
|
-
} & PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<DeployKeySchema, "can_push">>[]>;
|
|
15
|
-
edit(projectId: string | number, keyId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DeployKeySchema>>;
|
|
16
|
-
enable(projectId: string | number, keyId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Omit<DeployKeySchema, "can_push">>>;
|
|
17
|
-
remove(projectId: string | number, keyId: number, options?: Sudo): Promise<void>;
|
|
18
|
-
show(projectId: string | number, keyId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeployKeySchema>>;
|
|
19
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
import { CommitSchema } from './Commits';
|
|
4
|
-
import { PipelineSchema } from './Pipelines';
|
|
5
|
-
import { UserSchema } from './Users';
|
|
6
|
-
import { RunnerSchema } from './Runners';
|
|
7
|
-
import { EnvironmentSchema } from './Environments';
|
|
8
|
-
import { MergeRequestSchema } from './MergeRequests';
|
|
9
|
-
export declare type DeploymentStatus = 'created' | 'running' | 'success' | 'failed' | 'canceled';
|
|
10
|
-
export interface DeployableSchema {
|
|
11
|
-
id: number;
|
|
12
|
-
ref: string;
|
|
13
|
-
name: string;
|
|
14
|
-
runner?: RunnerSchema;
|
|
15
|
-
stage?: string;
|
|
16
|
-
started_at?: Date;
|
|
17
|
-
status?: DeploymentStatus;
|
|
18
|
-
tag: boolean;
|
|
19
|
-
commit?: CommitSchema;
|
|
20
|
-
coverage?: string;
|
|
21
|
-
created_at?: Date;
|
|
22
|
-
finished_at?: Date;
|
|
23
|
-
user?: UserSchema;
|
|
24
|
-
pipeline?: PipelineSchema;
|
|
25
|
-
}
|
|
26
|
-
export declare type DeploymentSchema = {
|
|
27
|
-
id: number;
|
|
28
|
-
iid: number;
|
|
29
|
-
ref: string;
|
|
30
|
-
sha: string;
|
|
31
|
-
user: UserSchema;
|
|
32
|
-
created_at: string;
|
|
33
|
-
updated_at: string;
|
|
34
|
-
status: DeploymentStatus;
|
|
35
|
-
deployable: DeployableSchema;
|
|
36
|
-
environment: EnvironmentSchema;
|
|
37
|
-
};
|
|
38
|
-
export declare class Deployments<C extends boolean = false> extends BaseResource<C> {
|
|
39
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>[]>;
|
|
40
|
-
create(projectId: string | number, environment: string, sha: string, ref: string, tag: string, status: DeploymentStatus, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>>;
|
|
41
|
-
edit(projectId: string | number, deploymentId: number, status: DeploymentStatus, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>>;
|
|
42
|
-
show(projectId: string | number, deploymentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, DeploymentSchema>>;
|
|
43
|
-
mergeRequests(projectId: string | number, deploymentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, MergeRequestSchema>[]>;
|
|
44
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
|
3
|
-
import { DeploymentSchema, DeployableSchema } from './Deployments';
|
|
4
|
-
import { ProjectSchema } from './Projects';
|
|
5
|
-
export interface EnvironmentSchema extends Record<string, unknown> {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
slug?: string;
|
|
9
|
-
external_url?: string;
|
|
10
|
-
project?: ProjectSchema;
|
|
11
|
-
state?: string;
|
|
12
|
-
last_deployment?: DeploymentSchema;
|
|
13
|
-
deployable?: DeployableSchema;
|
|
14
|
-
}
|
|
15
|
-
export declare class Environments<C extends boolean = false> extends BaseResource<C> {
|
|
16
|
-
all(projectId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>[]>;
|
|
17
|
-
show(projectId: string | number, environmentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, EnvironmentSchema>>;
|
|
18
|
-
create(projectId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>>;
|
|
19
|
-
edit(projectId: string | number, environmentId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>>;
|
|
20
|
-
remove(projectId: string | number, environmentId: number, options?: Sudo): Promise<void>;
|
|
21
|
-
stop(projectId: string | number, environmentId: number, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Omit<EnvironmentSchema, "last_deployment" | "deployable">>>;
|
|
22
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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: string | 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: string | number, noteId: number, options: BaseRequestOptions & {
|
|
10
|
-
body: string;
|
|
11
|
-
}): Promise<CamelizedRecord<C, DiscussionSchema>>;
|
|
12
|
-
removeNote(groupId: string | number, epicId: number, discussionId: string | number, noteId: number, options?: Sudo): Promise<void>;
|
|
13
|
-
show(groupId: string | number, epicId: number, discussionId: string | 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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceNotes } from '../templates';
|
|
3
|
-
import { NoteSchema } from '../templates/types';
|
|
4
|
-
import { PaginatedRequestOptions, BaseRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
-
export interface 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
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
}
|