@gitbeaker/core 38.11.0 → 38.12.1
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/dist/index.d.ts +70 -56
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ type Either3<T, U, V> = Only3<T, U, V> | Only3<T, U, V> | Only3<T, U, V>;
|
|
|
21
21
|
type EitherOrNone<T, U> = OnlyOrNone<T, U> | OnlyOrNone<U, T>;
|
|
22
22
|
type EitherOrNone3<T, U, V> = OnlyOrNone3<T, U, V> | OnlyOrNone3<U, T, V> | OnlyOrNone3<V, T, U>;
|
|
23
23
|
type AllOrNone<T extends Record<string, any>> = T | Partial<Record<keyof T, never>>;
|
|
24
|
+
type MappedOmit<T, K extends keyof T> = {
|
|
25
|
+
[P in keyof T as P extends K ? never : P]: T[P];
|
|
26
|
+
};
|
|
24
27
|
|
|
25
28
|
interface IsForm {
|
|
26
29
|
isForm?: boolean;
|
|
@@ -134,7 +137,7 @@ interface EventSchema extends Record<string, unknown> {
|
|
|
134
137
|
author_id: number;
|
|
135
138
|
target_title: string;
|
|
136
139
|
created_at: string;
|
|
137
|
-
author:
|
|
140
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
138
141
|
author_username: string;
|
|
139
142
|
}
|
|
140
143
|
declare class Events<C extends boolean = false> extends BaseResource<C> {
|
|
@@ -643,7 +646,7 @@ declare class Groups<C extends boolean = false> extends BaseResource<C> {
|
|
|
643
646
|
|
|
644
647
|
interface ProjectStarrerSchema extends Record<string, unknown> {
|
|
645
648
|
starred_since: string;
|
|
646
|
-
user:
|
|
649
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
647
650
|
}
|
|
648
651
|
interface ProjectStoragePath extends Record<string, unknown> {
|
|
649
652
|
project_id: string | number;
|
|
@@ -997,7 +1000,7 @@ declare class Projects<C extends boolean = false> extends BaseResource<C> {
|
|
|
997
1000
|
allUsers<E extends boolean = false>(projectId: string | number, options?: {
|
|
998
1001
|
search?: string;
|
|
999
1002
|
skipUsers?: number[];
|
|
1000
|
-
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<
|
|
1003
|
+
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<UserSchema, 'created_at'>[], C, E, void>>;
|
|
1001
1004
|
allGroups<E extends boolean = false>(projectId: string | number, options?: {
|
|
1002
1005
|
search?: string;
|
|
1003
1006
|
skipGroups?: number[];
|
|
@@ -1548,7 +1551,18 @@ interface BroadcastMessageSchema extends Record<string, unknown> {
|
|
|
1548
1551
|
broadcast_type: string;
|
|
1549
1552
|
dismissable: boolean;
|
|
1550
1553
|
}
|
|
1551
|
-
|
|
1554
|
+
interface BroadcastMessageOptions extends Record<string, unknown> {
|
|
1555
|
+
message?: string;
|
|
1556
|
+
startsAt?: string;
|
|
1557
|
+
endsAt?: string;
|
|
1558
|
+
color?: string;
|
|
1559
|
+
font?: string;
|
|
1560
|
+
active?: boolean;
|
|
1561
|
+
targetPath?: string;
|
|
1562
|
+
targetAccessLevels?: AccessLevel[];
|
|
1563
|
+
broadcastType?: string;
|
|
1564
|
+
dismissable?: boolean;
|
|
1565
|
+
}
|
|
1552
1566
|
declare class BroadcastMessages<C extends boolean = false> extends BaseResource<C> {
|
|
1553
1567
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<BroadcastMessageSchema[], C, E, P>>;
|
|
1554
1568
|
create<E extends boolean = false>(options?: BroadcastMessageOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<BroadcastMessageSchema, C, E, void>>;
|
|
@@ -1941,7 +1955,7 @@ interface DiscussionNoteSchema extends Record<string, unknown> {
|
|
|
1941
1955
|
type?: string;
|
|
1942
1956
|
body: string;
|
|
1943
1957
|
attachment?: string;
|
|
1944
|
-
author:
|
|
1958
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
1945
1959
|
created_at: string;
|
|
1946
1960
|
updated_at: string;
|
|
1947
1961
|
system: boolean;
|
|
@@ -2010,7 +2024,7 @@ interface ExpandedPipelineSchema extends PipelineSchema {
|
|
|
2010
2024
|
before_sha: string;
|
|
2011
2025
|
tag: boolean;
|
|
2012
2026
|
yaml_errors?: unknown;
|
|
2013
|
-
user:
|
|
2027
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
2014
2028
|
started_at: string;
|
|
2015
2029
|
finished_at: string;
|
|
2016
2030
|
committed_at?: string;
|
|
@@ -2182,7 +2196,7 @@ interface MissingSignatureSchema extends Record<string, unknown> {
|
|
|
2182
2196
|
type CommitSignatureSchema = GPGSignatureSchema | X509SignatureSchema | MissingSignatureSchema;
|
|
2183
2197
|
interface CondensedCommitCommentSchema extends Record<string, unknown> {
|
|
2184
2198
|
note: string;
|
|
2185
|
-
author:
|
|
2199
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
2186
2200
|
}
|
|
2187
2201
|
interface CommitCommentSchema extends CondensedCommitCommentSchema {
|
|
2188
2202
|
line_type: 'new' | 'old';
|
|
@@ -2205,7 +2219,7 @@ interface CommitStatusSchema extends Record<string, unknown> {
|
|
|
2205
2219
|
started_at?: string;
|
|
2206
2220
|
name: string;
|
|
2207
2221
|
allow_failure: boolean;
|
|
2208
|
-
author:
|
|
2222
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
2209
2223
|
description?: string;
|
|
2210
2224
|
sha: string;
|
|
2211
2225
|
target_url: string;
|
|
@@ -2217,7 +2231,7 @@ interface CommitReferenceSchema extends Record<string, unknown> {
|
|
|
2217
2231
|
type: 'branch' | 'tag' | 'all';
|
|
2218
2232
|
name: string;
|
|
2219
2233
|
}
|
|
2220
|
-
interface CommitDiscussionNoteSchema extends
|
|
2234
|
+
interface CommitDiscussionNoteSchema extends MappedOmit<DiscussionNoteSchema, 'position'> {
|
|
2221
2235
|
confidential?: boolean;
|
|
2222
2236
|
commands_changes: Record<string, unknown>;
|
|
2223
2237
|
}
|
|
@@ -2297,7 +2311,7 @@ type TodoType = 'Issue' | 'MergeRequest' | 'Commit' | 'Epic' | 'DesignManagement
|
|
|
2297
2311
|
type TodoState = 'pending' | 'done';
|
|
2298
2312
|
interface TodoSchema extends Record<string, unknown> {
|
|
2299
2313
|
id: number;
|
|
2300
|
-
author:
|
|
2314
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
2301
2315
|
project: Pick<SimpleProjectSchema, 'id' | 'name' | 'name_with_namespace' | 'path' | 'path_with_namespace'>;
|
|
2302
2316
|
action_name: TodoAction;
|
|
2303
2317
|
target_type: TodoType;
|
|
@@ -2385,19 +2399,19 @@ interface CondensedMergeRequestSchema extends Record<string, unknown> {
|
|
|
2385
2399
|
web_url: string;
|
|
2386
2400
|
}
|
|
2387
2401
|
interface MergeRequestSchema extends CondensedMergeRequestSchema {
|
|
2388
|
-
merged_by:
|
|
2402
|
+
merged_by: MappedOmit<UserSchema, 'created_at'> | null;
|
|
2389
2403
|
merged_at: string | null;
|
|
2390
|
-
closed_by:
|
|
2391
|
-
closed_at:
|
|
2404
|
+
closed_by: MappedOmit<UserSchema, 'created_at'> | null;
|
|
2405
|
+
closed_at: MappedOmit<UserSchema, 'created_at'> | null;
|
|
2392
2406
|
target_branch: string;
|
|
2393
2407
|
source_branch: string;
|
|
2394
2408
|
user_notes_count: number;
|
|
2395
2409
|
upvotes: number;
|
|
2396
2410
|
downvotes: number;
|
|
2397
|
-
author:
|
|
2398
|
-
assignees:
|
|
2399
|
-
assignee:
|
|
2400
|
-
reviewers:
|
|
2411
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
2412
|
+
assignees: MappedOmit<UserSchema, 'created_at'>[] | null;
|
|
2413
|
+
assignee: MappedOmit<UserSchema, 'created_at'> | null;
|
|
2414
|
+
reviewers: MappedOmit<UserSchema, 'created_at'>[] | null;
|
|
2401
2415
|
source_project_id: number;
|
|
2402
2416
|
target_project_id: number;
|
|
2403
2417
|
labels: string[] | null;
|
|
@@ -2441,7 +2455,7 @@ interface MergeRequestTodoSchema extends TodoSchema {
|
|
|
2441
2455
|
target_type: 'MergeRequest';
|
|
2442
2456
|
target: ExpandedMergeRequestSchema;
|
|
2443
2457
|
}
|
|
2444
|
-
interface MergeRequestChangesSchema extends
|
|
2458
|
+
interface MergeRequestChangesSchema extends MappedOmit<MergeRequestSchema, 'has_conflicts' | 'blocking_discussions_resolved' | 'approvals_before_merge'> {
|
|
2445
2459
|
changes: CommitDiffSchema[];
|
|
2446
2460
|
overflow: boolean;
|
|
2447
2461
|
}
|
|
@@ -2528,7 +2542,7 @@ type EditMergeRequestOptions = {
|
|
|
2528
2542
|
declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
|
|
2529
2543
|
accept<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: AcceptMergeRequestOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
|
|
2530
2544
|
addSpentTime<E extends boolean = false>(projectId: string | number, mergerequestIId: number, duration: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<TimeStatsSchema, C, E, void>>;
|
|
2531
|
-
all<E extends boolean = false, P extends PaginationTypes = 'offset'>({ projectId, groupId, ...options }?: AllMergeRequestsOptions &
|
|
2545
|
+
all<E extends boolean = false, P extends PaginationTypes = 'offset'>({ projectId, groupId, ...options }?: AllMergeRequestsOptions & EitherOrNone<{
|
|
2532
2546
|
projectId: string | number;
|
|
2533
2547
|
}, {
|
|
2534
2548
|
groupId: string | number;
|
|
@@ -2537,7 +2551,7 @@ declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
|
|
|
2537
2551
|
allCommits<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CommitSchema[], C, E, void>>;
|
|
2538
2552
|
allDiffVersions<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MergeRequestDiffVersionsSchema[], C, E, void>>;
|
|
2539
2553
|
allIssuesClosed<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, void>>;
|
|
2540
|
-
allParticipants<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<
|
|
2554
|
+
allParticipants<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<UserSchema, 'created_at'>[], C, E, void>>;
|
|
2541
2555
|
allPipelines<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>[], C, E, void>>;
|
|
2542
2556
|
cancelOnPipelineSuccess<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
|
|
2543
2557
|
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>>;
|
|
@@ -2578,10 +2592,10 @@ interface IssueSchema extends Record<string, unknown> {
|
|
|
2578
2592
|
description: string;
|
|
2579
2593
|
health_status?: string;
|
|
2580
2594
|
weight?: number;
|
|
2581
|
-
author:
|
|
2595
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
2582
2596
|
milestone: MilestoneSchema;
|
|
2583
2597
|
project_id: number;
|
|
2584
|
-
assignees?:
|
|
2598
|
+
assignees?: MappedOmit<UserSchema, 'created_at'>[];
|
|
2585
2599
|
type: string;
|
|
2586
2600
|
updated_at: string;
|
|
2587
2601
|
closed_at?: string;
|
|
@@ -2707,7 +2721,7 @@ declare class Issues<C extends boolean = false> extends BaseResource<C> {
|
|
|
2707
2721
|
groupId?: string | number;
|
|
2708
2722
|
}> & PaginationRequestOptions<P> & AllIssuesOptions & BaseRequestOptions<E>): Promise<GitlabAPIResponse<IssueSchema[], C, E, P>>;
|
|
2709
2723
|
allMetricImages<E extends boolean = false>(projectId: string | number, issueIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MetricImageSchema[], C, E, void>>;
|
|
2710
|
-
allParticipants<E extends boolean = false>(projectId: string | number, issueIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<
|
|
2724
|
+
allParticipants<E extends boolean = false>(projectId: string | number, issueIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<UserSchema, 'created_at'>[], C, E, void>>;
|
|
2711
2725
|
allRelatedMergeRequests<E extends boolean = false>(projectId: string | number, issueIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MergeRequestSchema[], C, E, void>>;
|
|
2712
2726
|
create<E extends boolean = false>(projectId: string | number, title: string, options?: CreateIssueOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<IssueSchema, C, E, void>>;
|
|
2713
2727
|
createTodo<E extends boolean = false>(projectId: string | number, issueIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<TodoSchema, C, E, void>>;
|
|
@@ -2931,7 +2945,7 @@ declare class ResourceMembers<C extends boolean = false> extends BaseResource<C>
|
|
|
2931
2945
|
interface NoteSchema extends Record<string, unknown> {
|
|
2932
2946
|
id: number;
|
|
2933
2947
|
body: string;
|
|
2934
|
-
author:
|
|
2948
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
2935
2949
|
created_at: string;
|
|
2936
2950
|
updated_at: string;
|
|
2937
2951
|
}
|
|
@@ -3240,7 +3254,7 @@ declare class ResourceProtectedEnvironments<C extends boolean = false> extends B
|
|
|
3240
3254
|
|
|
3241
3255
|
interface IterationEventSchema extends Record<string, unknown> {
|
|
3242
3256
|
id: number;
|
|
3243
|
-
user:
|
|
3257
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
3244
3258
|
created_at: string;
|
|
3245
3259
|
resource_type: 'Issue';
|
|
3246
3260
|
resource_id: number;
|
|
@@ -3256,7 +3270,7 @@ declare class ResourceIterationEvents<C extends boolean = false> extends BaseRes
|
|
|
3256
3270
|
|
|
3257
3271
|
interface LabelEventSchema extends Record<string, unknown> {
|
|
3258
3272
|
id: number;
|
|
3259
|
-
user:
|
|
3273
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
3260
3274
|
created_at: string;
|
|
3261
3275
|
resource_type: 'Issue' | 'Epic' | 'MergeRequest';
|
|
3262
3276
|
resource_id: number;
|
|
@@ -3272,7 +3286,7 @@ declare class ResourceLabelEvents<C extends boolean = false> extends BaseResourc
|
|
|
3272
3286
|
|
|
3273
3287
|
interface MilestoneEventSchema extends Record<string, unknown> {
|
|
3274
3288
|
id: number;
|
|
3275
|
-
user:
|
|
3289
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
3276
3290
|
created_at: string;
|
|
3277
3291
|
resource_type: 'Issue' | 'MergeRequest';
|
|
3278
3292
|
resource_id: number;
|
|
@@ -3288,7 +3302,7 @@ declare class ResourceMilestoneEvents<C extends boolean = false> extends BaseRes
|
|
|
3288
3302
|
|
|
3289
3303
|
interface StateEventSchema extends Record<string, unknown> {
|
|
3290
3304
|
id: number;
|
|
3291
|
-
user:
|
|
3305
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
3292
3306
|
created_at: string;
|
|
3293
3307
|
resource_type: 'Issue';
|
|
3294
3308
|
resource_id: number;
|
|
@@ -3304,7 +3318,7 @@ declare class ResourceStateEvents<C extends boolean = false> extends BaseResourc
|
|
|
3304
3318
|
|
|
3305
3319
|
interface WeightEventSchema extends Record<string, unknown> {
|
|
3306
3320
|
id: number;
|
|
3307
|
-
user:
|
|
3321
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
3308
3322
|
created_at: string;
|
|
3309
3323
|
issue_id: number;
|
|
3310
3324
|
weight: number;
|
|
@@ -3966,7 +3980,7 @@ interface SimpleSnippetSchema extends Record<string, unknown> {
|
|
|
3966
3980
|
title: string;
|
|
3967
3981
|
file_name: string;
|
|
3968
3982
|
description?: string;
|
|
3969
|
-
author:
|
|
3983
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
3970
3984
|
updated_at: string;
|
|
3971
3985
|
created_at: string;
|
|
3972
3986
|
project_id?: string | number;
|
|
@@ -4252,7 +4266,7 @@ interface BranchSchema extends Record<string, unknown> {
|
|
|
4252
4266
|
developers_can_merge: boolean;
|
|
4253
4267
|
can_push: boolean;
|
|
4254
4268
|
web_url: string;
|
|
4255
|
-
commit:
|
|
4269
|
+
commit: MappedOmit<CommitSchema, 'web_url' | 'created_at'>;
|
|
4256
4270
|
}
|
|
4257
4271
|
declare class Branches<C extends boolean = false> extends BaseResource<C> {
|
|
4258
4272
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, options?: {
|
|
@@ -4307,7 +4321,7 @@ interface RegistryRepositorySchema extends Record<string, unknown> {
|
|
|
4307
4321
|
tags_count?: number;
|
|
4308
4322
|
tags?: Pick<RegistryRepositoryTagSchema, 'name' | 'path' | 'location'>[];
|
|
4309
4323
|
}
|
|
4310
|
-
type CondensedRegistryRepositorySchema =
|
|
4324
|
+
type CondensedRegistryRepositorySchema = MappedOmit<RegistryRepositorySchema, 'tags' | 'tags_count'>;
|
|
4311
4325
|
declare class ContainerRegistry<C extends boolean = false> extends BaseResource<C> {
|
|
4312
4326
|
allRepositories<E extends boolean = false, P extends PaginationTypes = 'offset'>({ groupId, projectId, ...options }?: Either<{
|
|
4313
4327
|
projectId: string | number;
|
|
@@ -4320,7 +4334,7 @@ declare class ContainerRegistry<C extends boolean = false> extends BaseResource<
|
|
|
4320
4334
|
allTags<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, repositoryId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<CondensedRegistryRepositoryTagSchema[], C, E, P>>;
|
|
4321
4335
|
editRegistryVisibility<E extends boolean = false>(projectId: string | number, options?: {
|
|
4322
4336
|
containerRegistryAccessLevel: 'enabled' | 'private' | 'disabled';
|
|
4323
|
-
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIExpandedResponse<CamelizedResponse<
|
|
4337
|
+
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIExpandedResponse<CamelizedResponse<MappedOmit<RegistryRepositorySchema, "tags" | "tags_count">, C>, E, undefined>>;
|
|
4324
4338
|
removeRepository<E extends boolean = false>(projectId: string | number, repositoryId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
4325
4339
|
removeTag<E extends boolean = false>(projectId: string | number, repositoryId: number, tagName: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
4326
4340
|
removeTags<E extends boolean = false>(projectId: string | number, repositoryId: number, nameRegexDelete: string, options?: Sudo & {
|
|
@@ -4395,7 +4409,7 @@ interface BridgeSchema extends Record<string, unknown> {
|
|
|
4395
4409
|
queued_duration: number;
|
|
4396
4410
|
id: number;
|
|
4397
4411
|
name: string;
|
|
4398
|
-
pipeline:
|
|
4412
|
+
pipeline: MappedOmit<PipelineSchema & {
|
|
4399
4413
|
project_id: number;
|
|
4400
4414
|
}, 'user'>;
|
|
4401
4415
|
ref: string;
|
|
@@ -4404,17 +4418,17 @@ interface BridgeSchema extends Record<string, unknown> {
|
|
|
4404
4418
|
tag: boolean;
|
|
4405
4419
|
web_url: string;
|
|
4406
4420
|
user: ExpandedUserSchema;
|
|
4407
|
-
downstream_pipeline:
|
|
4421
|
+
downstream_pipeline: MappedOmit<PipelineSchema, 'user'>;
|
|
4408
4422
|
}
|
|
4409
4423
|
interface AllowedAgentSchema extends Record<string, unknown> {
|
|
4410
4424
|
id: number;
|
|
4411
|
-
config_project:
|
|
4425
|
+
config_project: MappedOmit<SimpleProjectSchema, 'web_url'>;
|
|
4412
4426
|
}
|
|
4413
4427
|
interface JobKubernetesAgentsSchema extends Record<string, unknown> {
|
|
4414
4428
|
allowed_agents: AllowedAgentSchema[];
|
|
4415
4429
|
job: CondensedJobSchema;
|
|
4416
4430
|
pipeline: PipelineSchema;
|
|
4417
|
-
project:
|
|
4431
|
+
project: MappedOmit<SimpleProjectSchema, 'web_url'>;
|
|
4418
4432
|
user: UserSchema;
|
|
4419
4433
|
}
|
|
4420
4434
|
interface JobVariableAttributeOption extends Record<string, unknown> {
|
|
@@ -4548,8 +4562,8 @@ interface EnvironmentSchema extends Record<string, unknown> {
|
|
|
4548
4562
|
last_deployment: DeploymentSchema;
|
|
4549
4563
|
deployable: DeployableSchema;
|
|
4550
4564
|
}
|
|
4551
|
-
type CondensedEnvironmentSchema =
|
|
4552
|
-
type ReviewAppSchema =
|
|
4565
|
+
type CondensedEnvironmentSchema = MappedOmit<EnvironmentSchema, 'last_deployment' | 'deployable'>;
|
|
4566
|
+
type ReviewAppSchema = MappedOmit<CondensedEnvironmentSchema, 'state'>;
|
|
4553
4567
|
declare class Environments<C extends boolean = false> extends BaseResource<C> {
|
|
4554
4568
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, options?: PaginationRequestOptions<P> & EitherOrNone<{
|
|
4555
4569
|
name: string;
|
|
@@ -4735,7 +4749,7 @@ type CreateFeatureFlagOptions = {
|
|
|
4735
4749
|
strategies?: {
|
|
4736
4750
|
name: string;
|
|
4737
4751
|
parameters?: Record<string, string>;
|
|
4738
|
-
scopes?:
|
|
4752
|
+
scopes?: MappedOmit<FeatureFlagStrategyScopeSchema, 'id'>[];
|
|
4739
4753
|
};
|
|
4740
4754
|
};
|
|
4741
4755
|
type EditFeatureFlagOptions = {
|
|
@@ -4909,9 +4923,9 @@ interface IssueLinkSchema extends Record<string, unknown> {
|
|
|
4909
4923
|
state: string;
|
|
4910
4924
|
description: string;
|
|
4911
4925
|
weight?: number;
|
|
4912
|
-
author:
|
|
4926
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
4913
4927
|
milestone: MilestoneSchema;
|
|
4914
|
-
assignees?:
|
|
4928
|
+
assignees?: MappedOmit<UserSchema, 'created_at'>[];
|
|
4915
4929
|
title: string;
|
|
4916
4930
|
labels?: string[];
|
|
4917
4931
|
user_notes_count: number;
|
|
@@ -4924,8 +4938,8 @@ interface IssueLinkSchema extends Record<string, unknown> {
|
|
|
4924
4938
|
link_type: 'relates_to' | 'blocks' | 'is_blocked_by';
|
|
4925
4939
|
}
|
|
4926
4940
|
interface ExpandedIssueLinkSchema extends Record<string, unknown> {
|
|
4927
|
-
source_issue:
|
|
4928
|
-
target_issue:
|
|
4941
|
+
source_issue: MappedOmit<IssueLinkSchema, 'link_type' | 'link_created_at' | 'link_updated_at' | 'issue_link_id'>;
|
|
4942
|
+
target_issue: MappedOmit<IssueLinkSchema, 'link_type' | 'link_created_at' | 'link_updated_at' | 'issue_link_id'>;
|
|
4929
4943
|
link_type: 'relates_to' | 'blocks' | 'is_blocked_by';
|
|
4930
4944
|
}
|
|
4931
4945
|
declare class IssueLinks<C extends boolean = false> extends BaseResource<C> {
|
|
@@ -5123,7 +5137,7 @@ interface ProjectLevelMergeRequestApprovalSchema extends Record<string, unknown>
|
|
|
5123
5137
|
require_password_to_approve: boolean;
|
|
5124
5138
|
}
|
|
5125
5139
|
interface ApprovedByEntity {
|
|
5126
|
-
user:
|
|
5140
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
5127
5141
|
}
|
|
5128
5142
|
interface MergeRequestLevelMergeRequestApprovalSchema extends Record<string, unknown> {
|
|
5129
5143
|
id: number;
|
|
@@ -5143,9 +5157,9 @@ interface ApprovalRuleSchema extends Record<string, unknown> {
|
|
|
5143
5157
|
id: number;
|
|
5144
5158
|
name: string;
|
|
5145
5159
|
rule_type: string;
|
|
5146
|
-
eligible_approvers?:
|
|
5160
|
+
eligible_approvers?: MappedOmit<UserSchema, 'created_at'>[];
|
|
5147
5161
|
approvals_required: number;
|
|
5148
|
-
users?:
|
|
5162
|
+
users?: MappedOmit<UserSchema, 'created_at'>[];
|
|
5149
5163
|
groups?: GroupSchema[];
|
|
5150
5164
|
contains_hidden_groups: boolean;
|
|
5151
5165
|
overridden: boolean;
|
|
@@ -5375,7 +5389,7 @@ declare class MergeRequestNoteAwardEmojis<C extends boolean = false> extends Res
|
|
|
5375
5389
|
interface MergeTrainSchema extends Record<string, unknown> {
|
|
5376
5390
|
id: number;
|
|
5377
5391
|
merge_request: CondensedMergeRequestSchema;
|
|
5378
|
-
user:
|
|
5392
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
5379
5393
|
pipeline: PipelineSchema;
|
|
5380
5394
|
created_at: string;
|
|
5381
5395
|
updated_at: string;
|
|
@@ -5454,7 +5468,7 @@ interface PackageSchema extends Record<string, unknown> {
|
|
|
5454
5468
|
interface ExpandedPackageSchema extends PackageSchema {
|
|
5455
5469
|
_links: Record<string, string>;
|
|
5456
5470
|
pipelines: PipelineSchema[];
|
|
5457
|
-
versions:
|
|
5471
|
+
versions: MappedOmit<ExpandedPackageSchema, '_links'>;
|
|
5458
5472
|
}
|
|
5459
5473
|
interface PackageFileSchema extends Record<string, unknown> {
|
|
5460
5474
|
id: number;
|
|
@@ -5531,7 +5545,7 @@ interface CondensedPipelineScheduleSchema extends Record<string, unknown> {
|
|
|
5531
5545
|
active: boolean;
|
|
5532
5546
|
created_at: string;
|
|
5533
5547
|
updated_at: string;
|
|
5534
|
-
owner:
|
|
5548
|
+
owner: MappedOmit<UserSchema, 'created_at'>;
|
|
5535
5549
|
}
|
|
5536
5550
|
interface PipelineScheduleSchema extends CondensedPipelineScheduleSchema {
|
|
5537
5551
|
last_pipeline: Pick<PipelineSchema, 'id' | 'sha' | 'ref' | 'status'>;
|
|
@@ -5950,7 +5964,7 @@ interface ReleaseSchema extends Record<string, unknown> {
|
|
|
5950
5964
|
description_html: string;
|
|
5951
5965
|
created_at: string;
|
|
5952
5966
|
released_at: string;
|
|
5953
|
-
user:
|
|
5967
|
+
user: MappedOmit<UserSchema, 'created_at'>;
|
|
5954
5968
|
commit: CommitSchema;
|
|
5955
5969
|
milestones?: MilestoneSchema[];
|
|
5956
5970
|
commit_path: string;
|
|
@@ -6254,8 +6268,8 @@ interface RepositoryChangelogSchema extends Record<string, unknown> {
|
|
|
6254
6268
|
notes: string;
|
|
6255
6269
|
}
|
|
6256
6270
|
interface RepositoryCompareSchema extends Record<string, unknown> {
|
|
6257
|
-
commit:
|
|
6258
|
-
commits?:
|
|
6271
|
+
commit: MappedOmit<CondensedCommitSchema, 'message'>;
|
|
6272
|
+
commits?: MappedOmit<CondensedCommitSchema, 'message'>[];
|
|
6259
6273
|
diffs?: CommitDiffSchema[];
|
|
6260
6274
|
compare_timeout: boolean;
|
|
6261
6275
|
compare_same_ref: boolean;
|
|
@@ -6535,7 +6549,7 @@ declare class EpicDiscussions<C extends boolean = false> extends ResourceDiscuss
|
|
|
6535
6549
|
constructor(options: BaseResourceOptions<C>);
|
|
6536
6550
|
}
|
|
6537
6551
|
|
|
6538
|
-
interface EpicIssueSchema extends
|
|
6552
|
+
interface EpicIssueSchema extends MappedOmit<IssueSchema, 'references' | 'task_completion_status'> {
|
|
6539
6553
|
epic_issue_id: number;
|
|
6540
6554
|
}
|
|
6541
6555
|
interface ExpandedEpicIssueSchema extends EpicIssueSchema {
|
|
@@ -6647,7 +6661,7 @@ interface EpicSchema extends Record<string, unknown> {
|
|
|
6647
6661
|
relative: string;
|
|
6648
6662
|
full: string;
|
|
6649
6663
|
};
|
|
6650
|
-
author:
|
|
6664
|
+
author: MappedOmit<UserSchema, 'created_at'>;
|
|
6651
6665
|
start_date?: string;
|
|
6652
6666
|
start_date_is_fixed: boolean;
|
|
6653
6667
|
start_date_fixed?: string;
|
|
@@ -6723,7 +6737,7 @@ declare class Epics<C extends boolean = false> extends BaseResource<C> {
|
|
|
6723
6737
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(groupId: string | number, options?: AllEpicsOptions & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<EpicSchema[], C, E, P>>;
|
|
6724
6738
|
create<E extends boolean = false>(groupId: string | number, title: string, options?: CreateEpicOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<EpicSchema, C, E, void>>;
|
|
6725
6739
|
createTodo<E extends boolean = false>(groupId: string | number, epicIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<EpicTodoSchema, C, E, void>>;
|
|
6726
|
-
edit<E extends boolean = false>(groupId: string | number, epicIId: number, options?: EditEpicOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<
|
|
6740
|
+
edit<E extends boolean = false>(groupId: string | number, epicIId: number, options?: EditEpicOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<MappedOmit<EpicSchema, '_links'>, C, E, void>>;
|
|
6727
6741
|
remove<E extends boolean = false>(groupId: string | number, epicIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
6728
6742
|
show<E extends boolean = false>(groupId: string | number, epicIId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<EpicSchema, C, E, void>>;
|
|
6729
6743
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/core",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.12.1",
|
|
4
4
|
"description": "Core API implementation of the GitLab API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"release": "auto shipit"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@gitbeaker/requester-utils": "^38.
|
|
58
|
+
"@gitbeaker/requester-utils": "^38.12.1",
|
|
59
59
|
"qs": "^6.11.1",
|
|
60
60
|
"xcase": "^2.0.1"
|
|
61
61
|
},
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"tsx": "^3.12.6",
|
|
67
67
|
"typescript": "^5.0.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "3f08cb83dfe66c77782324adfb5da46933f081f8"
|
|
70
70
|
}
|