@gitbeaker/core 43.5.0 → 43.6.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/LICENSE.md +1 -1
- package/README.md +8 -7
- package/dist/index.d.mts +10 -6
- package/dist/index.d.ts +10 -6
- package/package.json +3 -3
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
28
|
<p align="center">
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<a href="https://codeclimate.com/github/jdalrymple/gitbeaker">
|
|
32
|
-
<img src="https://codeclimate.com/github/jdalrymple/gitbeaker/badges/gpa.svg" alt="Code Climate maintainability">
|
|
29
|
+
<a href="https://dl.circleci.com/status-badge/redirect/gh/jdalrymple/gitbeaker/tree/main">
|
|
30
|
+
<img alt="CircleCI" src="https://dl.circleci.com/status-badge/img/gh/jdalrymple/gitbeaker/tree/main.svg?style=svg" />
|
|
33
31
|
</a>
|
|
32
|
+
<a href="https://codecov.io/gh/jdalrymple/gitbeaker">
|
|
33
|
+
<img alt="Core Coverage" src="https://img.shields.io/codecov/c/github/jdalrymple/gitbeaker?flag=core&logo=codecov&label=coverage"/>
|
|
34
|
+
</a>
|
|
35
|
+
|
|
34
36
|
<a href="https://github.com/intuit/auto">
|
|
35
37
|
<img src="https://img.shields.io/badge/release-auto.svg?colorA=888888&colorB=9B065A&label=auto" alt="Auto">
|
|
36
38
|
</a>
|
|
@@ -50,12 +52,10 @@
|
|
|
50
52
|
|
|
51
53
|
## Table of Contents
|
|
52
54
|
|
|
55
|
+
- [Table of Contents](#table-of-contents)
|
|
53
56
|
- [Usage](#usage)
|
|
54
57
|
- [Supported APIs](#supported-apis)
|
|
55
|
-
- [Testing](../../docs/TESTING.md)
|
|
56
|
-
- [FAQ](../../docs/FAQ.md)
|
|
57
58
|
- [Contributors](#contributors)
|
|
58
|
-
- [Changelog](./CHANGELOG.md)
|
|
59
59
|
|
|
60
60
|
## Usage
|
|
61
61
|
|
|
@@ -1950,6 +1950,7 @@ import { Gitlab } from '@gitbeaker/core';
|
|
|
1950
1950
|
<td align="center" valign="top" width="0.33%"><a href="https://github.com/kayw-geek"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/29700073?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Kay W."/></td>
|
|
1951
1951
|
<td align="center" valign="top" width="0.33%"><a href="https://ffflorian.dev/"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/5497598?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Florian Imdahl"/></td>
|
|
1952
1952
|
<td align="center" valign="top" width="0.33%"><a href="https://github.com/lanthier"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9666344?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="lanthier"/></td>
|
|
1953
|
+
<td align="center" valign="top" width="0.33%"><a href="https://github.com/Teo-ShaoWei"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/6925907?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="ShaoWei Teo"/></td>
|
|
1953
1954
|
</tr>
|
|
1954
1955
|
</p>
|
|
1955
1956
|
|
package/dist/index.d.mts
CHANGED
|
@@ -521,8 +521,8 @@ interface CondensedNamespaceSchema extends Record<string, unknown> {
|
|
|
521
521
|
path: string;
|
|
522
522
|
kind: string;
|
|
523
523
|
full_path: string;
|
|
524
|
-
parent_id?: number;
|
|
525
|
-
avatar_url: string;
|
|
524
|
+
parent_id?: number | null;
|
|
525
|
+
avatar_url: string | null;
|
|
526
526
|
web_url: string;
|
|
527
527
|
}
|
|
528
528
|
interface NamespaceSchema extends CondensedNamespaceSchema {
|
|
@@ -565,7 +565,7 @@ interface CondensedGroupSchema extends Record<string, unknown> {
|
|
|
565
565
|
name: string;
|
|
566
566
|
}
|
|
567
567
|
interface SimpleGroupSchema extends CondensedGroupSchema {
|
|
568
|
-
avatar_url: string;
|
|
568
|
+
avatar_url: string | null;
|
|
569
569
|
full_name: string;
|
|
570
570
|
full_path: string;
|
|
571
571
|
}
|
|
@@ -616,6 +616,8 @@ type AllGroupsOptions = {
|
|
|
616
616
|
minAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
|
|
617
617
|
topLevelOnly?: boolean;
|
|
618
618
|
markedForDeletionOn?: string;
|
|
619
|
+
active?: boolean;
|
|
620
|
+
archived?: boolean;
|
|
619
621
|
};
|
|
620
622
|
type AllGroupProjectsOptions = {
|
|
621
623
|
visibility?: 'public' | 'internal' | 'private';
|
|
@@ -799,7 +801,7 @@ interface CondensedProjectSchema extends Record<string, unknown> {
|
|
|
799
801
|
path: string;
|
|
800
802
|
}
|
|
801
803
|
interface SimpleProjectSchema extends CondensedProjectSchema {
|
|
802
|
-
description: string;
|
|
804
|
+
description: string | null;
|
|
803
805
|
name_with_namespace: string;
|
|
804
806
|
path_with_namespace: string;
|
|
805
807
|
created_at: string;
|
|
@@ -807,7 +809,7 @@ interface SimpleProjectSchema extends CondensedProjectSchema {
|
|
|
807
809
|
topics: string[] | null;
|
|
808
810
|
ssh_url_to_repo: string;
|
|
809
811
|
http_url_to_repo: string;
|
|
810
|
-
readme_url: string;
|
|
812
|
+
readme_url: string | null;
|
|
811
813
|
forks_count: number;
|
|
812
814
|
avatar_url: string | null;
|
|
813
815
|
star_count: number;
|
|
@@ -956,6 +958,7 @@ type AllProjectsOptions = {
|
|
|
956
958
|
updatedBefore?: string;
|
|
957
959
|
updatedAfter?: string;
|
|
958
960
|
markedForDeletionOn?: string;
|
|
961
|
+
active?: boolean;
|
|
959
962
|
};
|
|
960
963
|
type CreateProjectOptions = {
|
|
961
964
|
userId?: number;
|
|
@@ -2896,7 +2899,7 @@ declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
|
|
|
2896
2899
|
allIssuesClosed<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
|
|
2897
2900
|
allIssuesRelated<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
|
|
2898
2901
|
allParticipants<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<SimpleUserSchema, 'created_at'>[], C, E, void>>;
|
|
2899
|
-
allPipelines<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E,
|
|
2902
|
+
allPipelines<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, mergerequestIId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E, P>>;
|
|
2900
2903
|
cancelOnPipelineSuccess<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
|
|
2901
2904
|
create<E extends boolean = false>(projectId: string | number, sourceBranch: string, targetBranch: string, title: string, options?: CreateMergeRequestOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
|
|
2902
2905
|
createPipeline<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedPipelineSchema, C, E, void>>;
|
|
@@ -8462,6 +8465,7 @@ interface WebhookBaseNoteEventSchema extends BaseWebhookEventSchema {
|
|
|
8462
8465
|
id: number;
|
|
8463
8466
|
note: string;
|
|
8464
8467
|
noteable_type: string;
|
|
8468
|
+
discussion_id: string;
|
|
8465
8469
|
author_id: number;
|
|
8466
8470
|
created_at: string;
|
|
8467
8471
|
updated_at: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -521,8 +521,8 @@ interface CondensedNamespaceSchema extends Record<string, unknown> {
|
|
|
521
521
|
path: string;
|
|
522
522
|
kind: string;
|
|
523
523
|
full_path: string;
|
|
524
|
-
parent_id?: number;
|
|
525
|
-
avatar_url: string;
|
|
524
|
+
parent_id?: number | null;
|
|
525
|
+
avatar_url: string | null;
|
|
526
526
|
web_url: string;
|
|
527
527
|
}
|
|
528
528
|
interface NamespaceSchema extends CondensedNamespaceSchema {
|
|
@@ -565,7 +565,7 @@ interface CondensedGroupSchema extends Record<string, unknown> {
|
|
|
565
565
|
name: string;
|
|
566
566
|
}
|
|
567
567
|
interface SimpleGroupSchema extends CondensedGroupSchema {
|
|
568
|
-
avatar_url: string;
|
|
568
|
+
avatar_url: string | null;
|
|
569
569
|
full_name: string;
|
|
570
570
|
full_path: string;
|
|
571
571
|
}
|
|
@@ -616,6 +616,8 @@ type AllGroupsOptions = {
|
|
|
616
616
|
minAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
|
|
617
617
|
topLevelOnly?: boolean;
|
|
618
618
|
markedForDeletionOn?: string;
|
|
619
|
+
active?: boolean;
|
|
620
|
+
archived?: boolean;
|
|
619
621
|
};
|
|
620
622
|
type AllGroupProjectsOptions = {
|
|
621
623
|
visibility?: 'public' | 'internal' | 'private';
|
|
@@ -799,7 +801,7 @@ interface CondensedProjectSchema extends Record<string, unknown> {
|
|
|
799
801
|
path: string;
|
|
800
802
|
}
|
|
801
803
|
interface SimpleProjectSchema extends CondensedProjectSchema {
|
|
802
|
-
description: string;
|
|
804
|
+
description: string | null;
|
|
803
805
|
name_with_namespace: string;
|
|
804
806
|
path_with_namespace: string;
|
|
805
807
|
created_at: string;
|
|
@@ -807,7 +809,7 @@ interface SimpleProjectSchema extends CondensedProjectSchema {
|
|
|
807
809
|
topics: string[] | null;
|
|
808
810
|
ssh_url_to_repo: string;
|
|
809
811
|
http_url_to_repo: string;
|
|
810
|
-
readme_url: string;
|
|
812
|
+
readme_url: string | null;
|
|
811
813
|
forks_count: number;
|
|
812
814
|
avatar_url: string | null;
|
|
813
815
|
star_count: number;
|
|
@@ -956,6 +958,7 @@ type AllProjectsOptions = {
|
|
|
956
958
|
updatedBefore?: string;
|
|
957
959
|
updatedAfter?: string;
|
|
958
960
|
markedForDeletionOn?: string;
|
|
961
|
+
active?: boolean;
|
|
959
962
|
};
|
|
960
963
|
type CreateProjectOptions = {
|
|
961
964
|
userId?: number;
|
|
@@ -2896,7 +2899,7 @@ declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
|
|
|
2896
2899
|
allIssuesClosed<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
|
|
2897
2900
|
allIssuesRelated<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
|
|
2898
2901
|
allParticipants<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<SimpleUserSchema, 'created_at'>[], C, E, void>>;
|
|
2899
|
-
allPipelines<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E,
|
|
2902
|
+
allPipelines<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, mergerequestIId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E, P>>;
|
|
2900
2903
|
cancelOnPipelineSuccess<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
|
|
2901
2904
|
create<E extends boolean = false>(projectId: string | number, sourceBranch: string, targetBranch: string, title: string, options?: CreateMergeRequestOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
|
|
2902
2905
|
createPipeline<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedPipelineSchema, C, E, void>>;
|
|
@@ -8462,6 +8465,7 @@ interface WebhookBaseNoteEventSchema extends BaseWebhookEventSchema {
|
|
|
8462
8465
|
id: number;
|
|
8463
8466
|
note: string;
|
|
8464
8467
|
noteable_type: string;
|
|
8468
|
+
discussion_id: string;
|
|
8465
8469
|
author_id: number;
|
|
8466
8470
|
created_at: string;
|
|
8467
8471
|
updated_at: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/core",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.6.0",
|
|
4
4
|
"description": "Core API implementation of the GitLab API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"lint:fix": "yarn lint --fix"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@gitbeaker/requester-utils": "^43.
|
|
55
|
+
"@gitbeaker/requester-utils": "^43.6.0",
|
|
56
56
|
"qs": "^6.14.0",
|
|
57
57
|
"xcase": "^2.0.1"
|
|
58
58
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"tsx": "^4.20.5",
|
|
63
63
|
"typescript": "^5.9.2"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "bdafa8ad001658674492b09a948f02fb22cd45a9"
|
|
66
66
|
}
|