@gitbeaker/core 42.1.0 → 42.3.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 +2 -0
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/dist/map.json +6 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1932,6 +1932,8 @@ import { Gitlab } from '@gitbeaker/core';
|
|
|
1932
1932
|
<td align="center" valign="top" width="0.33%"><a href="https://github.com/Retr0-01"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/61121754?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Giannis Kepas"/></td>
|
|
1933
1933
|
<td align="center" valign="top" width="0.33%"><a href="https://github.com/talyssonoc"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/4325587?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Talysson de Oliveira Cassiano"/></td>
|
|
1934
1934
|
<td align="center" valign="top" width="0.33%"><a href="https://github.com/Sephyr0s"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/34128667?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Marco"/></td>
|
|
1935
|
+
<td align="center" valign="top" width="0.33%"><a href="https://github.com/enduity"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/19674002?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Endrik Einberg"/></td>
|
|
1936
|
+
<td align="center" valign="top" width="0.33%"><a href="https://note.itswhat.me/"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/38807139?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Bryan Lee"/></td>
|
|
1935
1937
|
</tr>
|
|
1936
1938
|
</p>
|
|
1937
1939
|
|
package/dist/index.d.mts
CHANGED
|
@@ -868,7 +868,7 @@ interface ProjectSchema extends SimpleProjectSchema {
|
|
|
868
868
|
repository_storage: string;
|
|
869
869
|
only_allow_merge_if_pipeline_succeeds: boolean;
|
|
870
870
|
allow_merge_on_skipped_pipeline: boolean;
|
|
871
|
-
|
|
871
|
+
ci_pipeline_variables_minimum_override_role: boolean;
|
|
872
872
|
only_allow_merge_if_all_discussions_are_resolved: boolean;
|
|
873
873
|
remove_source_branch_after_merge: boolean;
|
|
874
874
|
printing_merge_requests_link_enabled: boolean;
|
|
@@ -1158,6 +1158,11 @@ declare class Projects<C extends boolean = false> extends BaseResource<C> {
|
|
|
1158
1158
|
sharedMinAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
|
|
1159
1159
|
sharedVisibleOnly?: boolean;
|
|
1160
1160
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<SimpleGroupSchema[], C, E, void>>;
|
|
1161
|
+
allInvitedGroups<E extends boolean = false>(projectId: string | number, options?: {
|
|
1162
|
+
search?: string;
|
|
1163
|
+
sharedMinAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
|
|
1164
|
+
relation?: 'direct' | 'inherited';
|
|
1165
|
+
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<SimpleGroupSchema[], C, E, void>>;
|
|
1161
1166
|
allSharableGroups<E extends boolean = false>(projectId: string | number, options?: {
|
|
1162
1167
|
search?: string;
|
|
1163
1168
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<SimpleGroupSchema[], C, E, void>>;
|
|
@@ -2331,7 +2336,7 @@ type AllPipelinesOptions = {
|
|
|
2331
2336
|
sort?: 'asc' | 'desc';
|
|
2332
2337
|
};
|
|
2333
2338
|
declare class Pipelines<C extends boolean = false> extends BaseResource<C> {
|
|
2334
|
-
all<E extends boolean = false
|
|
2339
|
+
all<E extends boolean = false>(projectId: string | number, options?: AllPipelinesOptions & PaginationRequestOptions<'offset'> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<PipelineSchema[], C, E, 'offset'>>;
|
|
2335
2340
|
allVariables<E extends boolean = false>(projectId: string | number, pipelineId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<PipelineVariableSchema[], C, E, void>>;
|
|
2336
2341
|
cancel<E extends boolean = false>(projectId: string | number, pipelineId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedPipelineSchema, C, E, void>>;
|
|
2337
2342
|
create<E extends boolean = false>(projectId: string | number, ref: string, options?: {
|
|
@@ -2527,7 +2532,7 @@ declare class Commits<C extends boolean = false> extends BaseResource<C> {
|
|
|
2527
2532
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, options?: AllCommitsOptions & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CommitSchema[], C, E, P>>;
|
|
2528
2533
|
allComments<E extends boolean = false>(projectId: string | number, sha: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CondensedCommitCommentSchema[], C, E, void>>;
|
|
2529
2534
|
allDiscussions<E extends boolean = false>(projectId: string | number, sha: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, void>>;
|
|
2530
|
-
allMergeRequests<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, sha: string, options?:
|
|
2535
|
+
allMergeRequests<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, sha: string, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MergeRequestSchema[], C, E, void>>;
|
|
2531
2536
|
allReferences<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, sha: string, options?: {
|
|
2532
2537
|
type?: string;
|
|
2533
2538
|
} & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CommitReferenceSchema[], C, E, P>>;
|
|
@@ -2909,7 +2914,7 @@ interface IssueSchema extends Record<string, unknown> {
|
|
|
2909
2914
|
health_status?: string;
|
|
2910
2915
|
weight?: number;
|
|
2911
2916
|
author: MappedOmit<SimpleUserSchema, 'created_at'>;
|
|
2912
|
-
milestone
|
|
2917
|
+
milestone?: MilestoneSchema;
|
|
2913
2918
|
project_id: number;
|
|
2914
2919
|
assignees?: MappedOmit<SimpleUserSchema, 'created_at'>[];
|
|
2915
2920
|
type: string;
|
|
@@ -3428,7 +3433,7 @@ interface CreateAndEditPushRuleOptions {
|
|
|
3428
3433
|
memberCheck?: boolean;
|
|
3429
3434
|
preventSecrets?: boolean;
|
|
3430
3435
|
commitMessageRegex?: string;
|
|
3431
|
-
|
|
3436
|
+
commitMessageNegativeRegex?: string;
|
|
3432
3437
|
branchNameRegex?: string;
|
|
3433
3438
|
authorEmailRegex?: string;
|
|
3434
3439
|
fileNameRegex?: string;
|
|
@@ -6786,6 +6791,7 @@ interface ProjectVariables<C extends boolean = false> extends ResourceVariables<
|
|
|
6786
6791
|
variableType?: VariableType;
|
|
6787
6792
|
protected?: boolean;
|
|
6788
6793
|
masked?: boolean;
|
|
6794
|
+
masked_and_hidden?: boolean;
|
|
6789
6795
|
environmentScope?: string;
|
|
6790
6796
|
description?: string;
|
|
6791
6797
|
raw?: boolean;
|
|
@@ -6794,6 +6800,7 @@ interface ProjectVariables<C extends boolean = false> extends ResourceVariables<
|
|
|
6794
6800
|
variableType?: VariableType;
|
|
6795
6801
|
protected?: boolean;
|
|
6796
6802
|
masked?: boolean;
|
|
6803
|
+
masked_and_hidden?: boolean;
|
|
6797
6804
|
environmentScope?: string;
|
|
6798
6805
|
raw?: boolean;
|
|
6799
6806
|
filter: VariableFilter;
|
|
@@ -8305,7 +8312,7 @@ interface WebhookDiffSchema {
|
|
|
8305
8312
|
renamed_file: boolean;
|
|
8306
8313
|
deleted_file: boolean;
|
|
8307
8314
|
}
|
|
8308
|
-
type WebhookUserSchema = Pick<SimpleUserSchema, 'name' | 'username' | 'avatar_url'>;
|
|
8315
|
+
type WebhookUserSchema = Pick<SimpleUserSchema, 'id' | 'name' | 'username' | 'avatar_url'>;
|
|
8309
8316
|
interface BaseWebhookEventSchema {
|
|
8310
8317
|
object_kind: string;
|
|
8311
8318
|
event_name: string;
|
|
@@ -8597,6 +8604,10 @@ interface WebhookMergeRequestEventSchema extends BaseWebhookEventSchema {
|
|
|
8597
8604
|
previous: string | null;
|
|
8598
8605
|
current: string | null;
|
|
8599
8606
|
};
|
|
8607
|
+
assignees: {
|
|
8608
|
+
previous: WebhookUserSchema[] | null;
|
|
8609
|
+
current: WebhookUserSchema[] | null;
|
|
8610
|
+
};
|
|
8600
8611
|
reviewers: {
|
|
8601
8612
|
previous: WebhookUserSchema[] | null;
|
|
8602
8613
|
current: WebhookUserSchema[] | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -868,7 +868,7 @@ interface ProjectSchema extends SimpleProjectSchema {
|
|
|
868
868
|
repository_storage: string;
|
|
869
869
|
only_allow_merge_if_pipeline_succeeds: boolean;
|
|
870
870
|
allow_merge_on_skipped_pipeline: boolean;
|
|
871
|
-
|
|
871
|
+
ci_pipeline_variables_minimum_override_role: boolean;
|
|
872
872
|
only_allow_merge_if_all_discussions_are_resolved: boolean;
|
|
873
873
|
remove_source_branch_after_merge: boolean;
|
|
874
874
|
printing_merge_requests_link_enabled: boolean;
|
|
@@ -1158,6 +1158,11 @@ declare class Projects<C extends boolean = false> extends BaseResource<C> {
|
|
|
1158
1158
|
sharedMinAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
|
|
1159
1159
|
sharedVisibleOnly?: boolean;
|
|
1160
1160
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<SimpleGroupSchema[], C, E, void>>;
|
|
1161
|
+
allInvitedGroups<E extends boolean = false>(projectId: string | number, options?: {
|
|
1162
|
+
search?: string;
|
|
1163
|
+
sharedMinAccessLevel?: Exclude<AccessLevel, AccessLevel.ADMIN>;
|
|
1164
|
+
relation?: 'direct' | 'inherited';
|
|
1165
|
+
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<SimpleGroupSchema[], C, E, void>>;
|
|
1161
1166
|
allSharableGroups<E extends boolean = false>(projectId: string | number, options?: {
|
|
1162
1167
|
search?: string;
|
|
1163
1168
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<SimpleGroupSchema[], C, E, void>>;
|
|
@@ -2331,7 +2336,7 @@ type AllPipelinesOptions = {
|
|
|
2331
2336
|
sort?: 'asc' | 'desc';
|
|
2332
2337
|
};
|
|
2333
2338
|
declare class Pipelines<C extends boolean = false> extends BaseResource<C> {
|
|
2334
|
-
all<E extends boolean = false
|
|
2339
|
+
all<E extends boolean = false>(projectId: string | number, options?: AllPipelinesOptions & PaginationRequestOptions<'offset'> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<PipelineSchema[], C, E, 'offset'>>;
|
|
2335
2340
|
allVariables<E extends boolean = false>(projectId: string | number, pipelineId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<PipelineVariableSchema[], C, E, void>>;
|
|
2336
2341
|
cancel<E extends boolean = false>(projectId: string | number, pipelineId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedPipelineSchema, C, E, void>>;
|
|
2337
2342
|
create<E extends boolean = false>(projectId: string | number, ref: string, options?: {
|
|
@@ -2527,7 +2532,7 @@ declare class Commits<C extends boolean = false> extends BaseResource<C> {
|
|
|
2527
2532
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, options?: AllCommitsOptions & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CommitSchema[], C, E, P>>;
|
|
2528
2533
|
allComments<E extends boolean = false>(projectId: string | number, sha: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CondensedCommitCommentSchema[], C, E, void>>;
|
|
2529
2534
|
allDiscussions<E extends boolean = false>(projectId: string | number, sha: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, void>>;
|
|
2530
|
-
allMergeRequests<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, sha: string, options?:
|
|
2535
|
+
allMergeRequests<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, sha: string, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MergeRequestSchema[], C, E, void>>;
|
|
2531
2536
|
allReferences<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, sha: string, options?: {
|
|
2532
2537
|
type?: string;
|
|
2533
2538
|
} & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CommitReferenceSchema[], C, E, P>>;
|
|
@@ -2909,7 +2914,7 @@ interface IssueSchema extends Record<string, unknown> {
|
|
|
2909
2914
|
health_status?: string;
|
|
2910
2915
|
weight?: number;
|
|
2911
2916
|
author: MappedOmit<SimpleUserSchema, 'created_at'>;
|
|
2912
|
-
milestone
|
|
2917
|
+
milestone?: MilestoneSchema;
|
|
2913
2918
|
project_id: number;
|
|
2914
2919
|
assignees?: MappedOmit<SimpleUserSchema, 'created_at'>[];
|
|
2915
2920
|
type: string;
|
|
@@ -3428,7 +3433,7 @@ interface CreateAndEditPushRuleOptions {
|
|
|
3428
3433
|
memberCheck?: boolean;
|
|
3429
3434
|
preventSecrets?: boolean;
|
|
3430
3435
|
commitMessageRegex?: string;
|
|
3431
|
-
|
|
3436
|
+
commitMessageNegativeRegex?: string;
|
|
3432
3437
|
branchNameRegex?: string;
|
|
3433
3438
|
authorEmailRegex?: string;
|
|
3434
3439
|
fileNameRegex?: string;
|
|
@@ -6786,6 +6791,7 @@ interface ProjectVariables<C extends boolean = false> extends ResourceVariables<
|
|
|
6786
6791
|
variableType?: VariableType;
|
|
6787
6792
|
protected?: boolean;
|
|
6788
6793
|
masked?: boolean;
|
|
6794
|
+
masked_and_hidden?: boolean;
|
|
6789
6795
|
environmentScope?: string;
|
|
6790
6796
|
description?: string;
|
|
6791
6797
|
raw?: boolean;
|
|
@@ -6794,6 +6800,7 @@ interface ProjectVariables<C extends boolean = false> extends ResourceVariables<
|
|
|
6794
6800
|
variableType?: VariableType;
|
|
6795
6801
|
protected?: boolean;
|
|
6796
6802
|
masked?: boolean;
|
|
6803
|
+
masked_and_hidden?: boolean;
|
|
6797
6804
|
environmentScope?: string;
|
|
6798
6805
|
raw?: boolean;
|
|
6799
6806
|
filter: VariableFilter;
|
|
@@ -8305,7 +8312,7 @@ interface WebhookDiffSchema {
|
|
|
8305
8312
|
renamed_file: boolean;
|
|
8306
8313
|
deleted_file: boolean;
|
|
8307
8314
|
}
|
|
8308
|
-
type WebhookUserSchema = Pick<SimpleUserSchema, 'name' | 'username' | 'avatar_url'>;
|
|
8315
|
+
type WebhookUserSchema = Pick<SimpleUserSchema, 'id' | 'name' | 'username' | 'avatar_url'>;
|
|
8309
8316
|
interface BaseWebhookEventSchema {
|
|
8310
8317
|
object_kind: string;
|
|
8311
8318
|
event_name: string;
|
|
@@ -8597,6 +8604,10 @@ interface WebhookMergeRequestEventSchema extends BaseWebhookEventSchema {
|
|
|
8597
8604
|
previous: string | null;
|
|
8598
8605
|
current: string | null;
|
|
8599
8606
|
};
|
|
8607
|
+
assignees: {
|
|
8608
|
+
previous: WebhookUserSchema[] | null;
|
|
8609
|
+
current: WebhookUserSchema[] | null;
|
|
8610
|
+
};
|
|
8600
8611
|
reviewers: {
|
|
8601
8612
|
previous: WebhookUserSchema[] | null;
|
|
8602
8613
|
current: WebhookUserSchema[] | null;
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var QS__default = /*#__PURE__*/_interopDefault(QS);
|
|
|
12
12
|
function appendFormFromObject(object) {
|
|
13
13
|
const form = new FormData();
|
|
14
14
|
Object.entries(object).forEach(([k, v]) => {
|
|
15
|
-
if (
|
|
15
|
+
if (v == null) return;
|
|
16
16
|
if (Array.isArray(v)) form.append(k, v[0], v[1]);
|
|
17
17
|
else form.append(k, v);
|
|
18
18
|
});
|
|
@@ -5083,6 +5083,13 @@ var Projects = class extends requesterUtils.BaseResource {
|
|
|
5083
5083
|
options
|
|
5084
5084
|
);
|
|
5085
5085
|
}
|
|
5086
|
+
allInvitedGroups(projectId, options) {
|
|
5087
|
+
return RequestHelper.get()(
|
|
5088
|
+
this,
|
|
5089
|
+
endpoint`projects/${projectId}/invited_groups`,
|
|
5090
|
+
options
|
|
5091
|
+
);
|
|
5092
|
+
}
|
|
5086
5093
|
allSharableGroups(projectId, options) {
|
|
5087
5094
|
return RequestHelper.get()(
|
|
5088
5095
|
this,
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import QS, { parse } from 'qs';
|
|
|
6
6
|
function appendFormFromObject(object) {
|
|
7
7
|
const form = new FormData();
|
|
8
8
|
Object.entries(object).forEach(([k, v]) => {
|
|
9
|
-
if (
|
|
9
|
+
if (v == null) return;
|
|
10
10
|
if (Array.isArray(v)) form.append(k, v[0], v[1]);
|
|
11
11
|
else form.append(k, v);
|
|
12
12
|
});
|
|
@@ -5077,6 +5077,13 @@ var Projects = class extends BaseResource {
|
|
|
5077
5077
|
options
|
|
5078
5078
|
);
|
|
5079
5079
|
}
|
|
5080
|
+
allInvitedGroups(projectId, options) {
|
|
5081
|
+
return RequestHelper.get()(
|
|
5082
|
+
this,
|
|
5083
|
+
endpoint`projects/${projectId}/invited_groups`,
|
|
5084
|
+
options
|
|
5085
|
+
);
|
|
5086
|
+
}
|
|
5080
5087
|
allSharableGroups(projectId, options) {
|
|
5081
5088
|
return RequestHelper.get()(
|
|
5082
5089
|
this,
|
package/dist/map.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/core",
|
|
3
|
-
"version": "42.
|
|
3
|
+
"version": "42.3.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": "^42.
|
|
55
|
+
"@gitbeaker/requester-utils": "^42.3.0",
|
|
56
56
|
"qs": "^6.12.2",
|
|
57
57
|
"xcase": "^2.0.1"
|
|
58
58
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"tsx": "^4.16.2",
|
|
64
64
|
"typescript": "^5.5.3"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "96753b28be73cef0a9abe230e3650f4ceb1f9168"
|
|
67
67
|
}
|