@gitbeaker/core 35.7.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 -3161
- 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 -3135
- 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 -19
- 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 -47
- 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,17 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, Sudo, ShowExpanded, 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?: Sudo & ShowExpanded): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,202 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceCustomAttributes } from '../templates';
|
|
3
|
-
import { CustomAttributeSchema } from '../templates/types';
|
|
4
|
-
import { PaginatedRequestOptions, 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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceMembers } from '../templates';
|
|
3
|
-
import { MemberSchema, AccessLevel, IncludeInherited } from '../templates/types';
|
|
4
|
-
import { BaseRequestOptions, PaginatedRequestOptions, CamelizedRecord, Sudo } from '../infrastructure';
|
|
5
|
-
export interface GroupMembers<C extends boolean = false> extends ResourceMembers<C> {
|
|
6
|
-
add(groupId: string | number, userId: number, accessLevel: AccessLevel, options?: BaseRequestOptions): Promise<CamelizedRecord<C, MemberSchema>>;
|
|
7
|
-
all(groupId: string | number, options?: IncludeInherited & PaginatedRequestOptions): Promise<CamelizedRecord<C, MemberSchema>[]>;
|
|
8
|
-
edit(groupId: string | number, userId: number, accessLevel: AccessLevel, options?: BaseRequestOptions): Promise<CamelizedRecord<C, MemberSchema>>;
|
|
9
|
-
show(groupId: string | number, userId: number, options?: IncludeInherited & Sudo): Promise<CamelizedRecord<C, MemberSchema>>;
|
|
10
|
-
remove(groupId: string | number, userId: number, options?: Sudo): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export declare class GroupMembers<C extends boolean = false> extends ResourceMembers<C> {
|
|
13
|
-
constructor(options: BaseResourceOptions<C>);
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceMilestones } from '../templates';
|
|
3
|
-
import { MilestoneSchema } from '../templates/types';
|
|
4
|
-
import { PaginatedRequestOptions, BaseRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
-
import { IssueSchema } from './Issues';
|
|
6
|
-
import { MergeRequestSchema } from './MergeRequests';
|
|
7
|
-
export interface GroupMilestones<C extends boolean = false> extends ResourceMilestones<C> {
|
|
8
|
-
all(groupId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, MilestoneSchema>[]>;
|
|
9
|
-
create(groupId: string | number, title: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, MilestoneSchema>>;
|
|
10
|
-
edit(groupId: string | number, milestoneId: number, options?: BaseRequestOptions): Promise<CamelizedRecord<C, MilestoneSchema>>;
|
|
11
|
-
issues(groupId: string | number, milestoneId: number, options?: Sudo): Promise<CamelizedRecord<C, IssueSchema>[]>;
|
|
12
|
-
mergeRequests(groupId: string | number, milestoneId: number, options?: Sudo): Promise<CamelizedRecord<C, MergeRequestSchema>[]>;
|
|
13
|
-
show(groupId: string | number, milestoneId: number, options?: Sudo): Promise<CamelizedRecord<C, MilestoneSchema>>;
|
|
14
|
-
}
|
|
15
|
-
export declare class GroupMilestones<C extends boolean = false> extends ResourceMilestones<C> {
|
|
16
|
-
constructor(options: BaseResourceOptions<C>);
|
|
17
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { PaginatedRequestOptions, ShowExpanded } from '../infrastructure';
|
|
3
|
-
import { RunnerSchema } from './Runners';
|
|
4
|
-
export declare class GroupRunners<C extends boolean = false> extends BaseResource<C> {
|
|
5
|
-
all(groupId: string | number, options?: PaginatedRequestOptions & ShowExpanded): Promise<import("../infrastructure").CamelizedRecord<C, RunnerSchema>[] | import("../infrastructure").CamelizedRecord<C, RunnerSchema>[] | import("../infrastructure").PaginationResponse<import("../infrastructure").CamelizedRecord<C, RunnerSchema>[]>>;
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceVariables } from '../templates';
|
|
3
|
-
import { VariableSchema } from '../templates/types';
|
|
4
|
-
import { PaginatedRequestOptions, BaseRequestOptions, CamelizedRecord } from '../infrastructure';
|
|
5
|
-
export interface GroupVariables<C extends boolean = false> extends ResourceVariables<C> {
|
|
6
|
-
all(groupId: string | number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, VariableSchema>[]>;
|
|
7
|
-
create(groupId: string | number, options?: BaseRequestOptions): Promise<CamelizedRecord<C, VariableSchema>>;
|
|
8
|
-
edit(groupId: string | number, key: string, options?: BaseRequestOptions): Promise<CamelizedRecord<C, VariableSchema>>;
|
|
9
|
-
show(groupId: string | number, key: string, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, VariableSchema>>;
|
|
10
|
-
remove(groupId: string | number, key: string, options?: PaginatedRequestOptions): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export declare class GroupVariables<C extends boolean = false> extends ResourceVariables<C> {
|
|
13
|
-
constructor(options: BaseResourceOptions<C>);
|
|
14
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { BaseRequestOptions, PaginatedRequestOptions, ShowExpanded, Sudo } from '../infrastructure';
|
|
3
|
-
import { ProjectSchema } from './Projects';
|
|
4
|
-
export interface GroupSchema extends Record<string, unknown> {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
path: string;
|
|
8
|
-
full_name: string;
|
|
9
|
-
full_path: string;
|
|
10
|
-
parent_id: number;
|
|
11
|
-
visibility: string;
|
|
12
|
-
avatar_url: string;
|
|
13
|
-
web_url: string;
|
|
14
|
-
description: string;
|
|
15
|
-
share_with_group_lock: boolean;
|
|
16
|
-
require_two_factor_authentication: boolean;
|
|
17
|
-
two_factor_grace_period: number;
|
|
18
|
-
project_creation_level: string;
|
|
19
|
-
auto_devops_enabled: boolean;
|
|
20
|
-
subgroup_creation_level: string;
|
|
21
|
-
emails_disabled: boolean;
|
|
22
|
-
mentions_disabled: boolean;
|
|
23
|
-
lfs_enabled: boolean;
|
|
24
|
-
default_branch_protection: number;
|
|
25
|
-
request_access_enabled: boolean;
|
|
26
|
-
file_template_project_id: number;
|
|
27
|
-
created_at: string;
|
|
28
|
-
}
|
|
29
|
-
export declare type GroupDetailSchema = {
|
|
30
|
-
id: number;
|
|
31
|
-
name: string;
|
|
32
|
-
path: string;
|
|
33
|
-
full_name: string;
|
|
34
|
-
full_path: string;
|
|
35
|
-
parent_id: number;
|
|
36
|
-
visibility: string;
|
|
37
|
-
avatar_url: string;
|
|
38
|
-
web_url: string;
|
|
39
|
-
description: string;
|
|
40
|
-
request_access_enabled: boolean;
|
|
41
|
-
file_template_project_id: number;
|
|
42
|
-
runners_token: string;
|
|
43
|
-
shared_with_groups: {
|
|
44
|
-
group_id: number;
|
|
45
|
-
group_name: string;
|
|
46
|
-
group_full_path: string;
|
|
47
|
-
group_access_level: number;
|
|
48
|
-
expires_at: string;
|
|
49
|
-
}[];
|
|
50
|
-
created_at: string;
|
|
51
|
-
};
|
|
52
|
-
export declare class Groups<C extends boolean = false> extends BaseResource<C> {
|
|
53
|
-
all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GroupSchema>[]>;
|
|
54
|
-
create(name: string, path: string, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GroupSchema>>;
|
|
55
|
-
createLDAPLink(groupId: string | number, cn: string, groupAccess: number, provider: string, options?: Sudo & ShowExpanded): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>> | import("../infrastructure").ExpandedResponse<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>>;
|
|
56
|
-
edit(groupId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GroupSchema>>;
|
|
57
|
-
projects(groupId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, ProjectSchema>[]>;
|
|
58
|
-
remove(groupId: string | number, options?: Sudo & ShowExpanded): Promise<void>;
|
|
59
|
-
removeLDAPLink(groupId: string | number, cn: string, { provider, ...options }?: Sudo & ShowExpanded & {
|
|
60
|
-
provider?: string;
|
|
61
|
-
}): Promise<void>;
|
|
62
|
-
search(nameOrPath: string, options?: Sudo): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
63
|
-
show(groupId: string | number, options?: BaseRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, GroupDetailSchema>>;
|
|
64
|
-
subgroups(groupId: string | number, options?: PaginatedRequestOptions): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>;
|
|
65
|
-
syncLDAP(groupId: string | number, options?: Sudo & ShowExpanded): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>> | import("../infrastructure").ExpandedResponse<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>>;
|
|
66
|
-
transferProject(groupId: string | number, projectId: string | number, options?: BaseRequestOptions & ShowExpanded): Promise<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>> | import("../infrastructure").ExpandedResponse<import("../infrastructure").CamelizedRecord<C, Record<string, unknown>>>>;
|
|
67
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseResourceOptions } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { ResourceAwardEmojis } from '../templates';
|
|
3
|
-
import { AwardEmojiSchema } from '../templates/types';
|
|
4
|
-
import { PaginatedRequestOptions, Sudo, CamelizedRecord } from '../infrastructure';
|
|
5
|
-
export interface IssueAwardEmojis<C extends boolean = false> extends ResourceAwardEmojis<C> {
|
|
6
|
-
all(projectId: string | number, issueIId: number, options?: PaginatedRequestOptions): Promise<CamelizedRecord<C, AwardEmojiSchema>[]>;
|
|
7
|
-
award(projectId: string | number, issueIId: number, name: string, options?: Sudo): Promise<CamelizedRecord<C, AwardEmojiSchema>>;
|
|
8
|
-
remove(projectId: string | number, issueIId: number, awardId: number, options?: Sudo): Promise<void>;
|
|
9
|
-
show(projectId: string | number, issueIId: number, awardId: number, options?: Sudo): Promise<CamelizedRecord<C, AwardEmojiSchema>>;
|
|
10
|
-
}
|
|
11
|
-
export declare class IssueAwardEmojis<C extends boolean = false> extends ResourceAwardEmojis<C> {
|
|
12
|
-
constructor(options: BaseResourceOptions<C>);
|
|
13
|
-
}
|