@gitbeaker/core 41.0.0 → 41.1.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.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -353,7 +353,7 @@ type CreateUserOptions = {
|
|
|
353
353
|
auditor?: boolean;
|
|
354
354
|
avatar?: {
|
|
355
355
|
content: Blob;
|
|
356
|
-
|
|
356
|
+
filename?: string;
|
|
357
357
|
};
|
|
358
358
|
bio?: string;
|
|
359
359
|
canCreateGroup?: boolean;
|
|
@@ -477,7 +477,7 @@ declare class Users<C extends boolean = false> extends BaseResource<C> {
|
|
|
477
477
|
createCIRunner<E extends boolean = false>(runnerType: 'instance_type' | 'group_type' | 'project_type', options?: CreateUserCIRunnerOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<UserRunnerSchema, C, E, void>>;
|
|
478
478
|
deactivate<E extends boolean = false>(userId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
479
479
|
disableTwoFactor<E extends boolean = false>(userId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
480
|
-
edit<E extends boolean = false>(userId: number, options?: EditUserOptions & Sudo & ShowExpanded<E>): Promise<
|
|
480
|
+
edit<E extends boolean = false>(userId: number, { avatar, ...options }?: EditUserOptions & Sudo & ShowExpanded<E>): Promise<CamelizedResponse<ExpandedUserSchema, C>>;
|
|
481
481
|
editStatus<E extends boolean = false>(options?: {
|
|
482
482
|
emoji?: string;
|
|
483
483
|
message?: string;
|
|
@@ -610,6 +610,7 @@ type AllGroupsOptions = {
|
|
|
610
610
|
type AllGroupProjectsOptions = {
|
|
611
611
|
visibility?: 'public' | 'internal' | 'private';
|
|
612
612
|
orderBy?: 'id' | 'name' | 'path' | 'created_at' | 'updated_at' | 'similarity' | 'last_activity_at';
|
|
613
|
+
topic?: string;
|
|
613
614
|
sort?: 'asc' | 'desc';
|
|
614
615
|
archived?: boolean;
|
|
615
616
|
search?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -353,7 +353,7 @@ type CreateUserOptions = {
|
|
|
353
353
|
auditor?: boolean;
|
|
354
354
|
avatar?: {
|
|
355
355
|
content: Blob;
|
|
356
|
-
|
|
356
|
+
filename?: string;
|
|
357
357
|
};
|
|
358
358
|
bio?: string;
|
|
359
359
|
canCreateGroup?: boolean;
|
|
@@ -477,7 +477,7 @@ declare class Users<C extends boolean = false> extends BaseResource<C> {
|
|
|
477
477
|
createCIRunner<E extends boolean = false>(runnerType: 'instance_type' | 'group_type' | 'project_type', options?: CreateUserCIRunnerOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<UserRunnerSchema, C, E, void>>;
|
|
478
478
|
deactivate<E extends boolean = false>(userId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
479
479
|
disableTwoFactor<E extends boolean = false>(userId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
480
|
-
edit<E extends boolean = false>(userId: number, options?: EditUserOptions & Sudo & ShowExpanded<E>): Promise<
|
|
480
|
+
edit<E extends boolean = false>(userId: number, { avatar, ...options }?: EditUserOptions & Sudo & ShowExpanded<E>): Promise<CamelizedResponse<ExpandedUserSchema, C>>;
|
|
481
481
|
editStatus<E extends boolean = false>(options?: {
|
|
482
482
|
emoji?: string;
|
|
483
483
|
message?: string;
|
|
@@ -610,6 +610,7 @@ type AllGroupsOptions = {
|
|
|
610
610
|
type AllGroupProjectsOptions = {
|
|
611
611
|
visibility?: 'public' | 'internal' | 'private';
|
|
612
612
|
orderBy?: 'id' | 'name' | 'path' | 'created_at' | 'updated_at' | 'similarity' | 'last_activity_at';
|
|
613
|
+
topic?: string;
|
|
613
614
|
sort?: 'asc' | 'desc';
|
|
614
615
|
archived?: boolean;
|
|
615
616
|
search?: string;
|
package/dist/index.js
CHANGED
|
@@ -6712,8 +6712,13 @@ var Users = class extends requesterUtils.BaseResource {
|
|
|
6712
6712
|
disableTwoFactor(userId, options) {
|
|
6713
6713
|
return RequestHelper.patch()(this, endpoint`users/${userId}/disable_two_factor`, options);
|
|
6714
6714
|
}
|
|
6715
|
-
edit(userId, options) {
|
|
6716
|
-
|
|
6715
|
+
edit(userId, { avatar, ...options } = {}) {
|
|
6716
|
+
const opts = {
|
|
6717
|
+
...options,
|
|
6718
|
+
isForm: true
|
|
6719
|
+
};
|
|
6720
|
+
if (avatar) opts.avatar = [avatar.content, avatar.filename];
|
|
6721
|
+
return RequestHelper.put()(this, endpoint`users/${userId}`, opts);
|
|
6717
6722
|
}
|
|
6718
6723
|
editStatus(options) {
|
|
6719
6724
|
return RequestHelper.put()(this, "user/status", options);
|
package/dist/index.mjs
CHANGED
|
@@ -6706,8 +6706,13 @@ var Users = class extends BaseResource {
|
|
|
6706
6706
|
disableTwoFactor(userId, options) {
|
|
6707
6707
|
return RequestHelper.patch()(this, endpoint`users/${userId}/disable_two_factor`, options);
|
|
6708
6708
|
}
|
|
6709
|
-
edit(userId, options) {
|
|
6710
|
-
|
|
6709
|
+
edit(userId, { avatar, ...options } = {}) {
|
|
6710
|
+
const opts = {
|
|
6711
|
+
...options,
|
|
6712
|
+
isForm: true
|
|
6713
|
+
};
|
|
6714
|
+
if (avatar) opts.avatar = [avatar.content, avatar.filename];
|
|
6715
|
+
return RequestHelper.put()(this, endpoint`users/${userId}`, opts);
|
|
6711
6716
|
}
|
|
6712
6717
|
editStatus(options) {
|
|
6713
6718
|
return RequestHelper.put()(this, "user/status", options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/core",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.1.1",
|
|
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": "^41.
|
|
55
|
+
"@gitbeaker/requester-utils": "^41.1.1",
|
|
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": "d657d0c58d4c39d0fec5a18a3a4a26e865b64041"
|
|
67
67
|
}
|