@gitbeaker/core 39.25.1 → 39.26.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/README.md CHANGED
@@ -1927,6 +1927,10 @@ import { Gitlab } from '@gitbeaker/core';
1927
1927
  <td align="center" valign="top" width="3.84%"><a href="https://github.com/Artemoire"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/18062266?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="artemoire"/></td>
1928
1928
  <td align="center" valign="top" width="3.84%"><a href="https://github.com/pataar"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/3403851?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Pieter Willekens"/></td>
1929
1929
  <td align="center" valign="top" width="3.84%"><a href="https://github.com/Djcd"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/761764?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="David Claybourne"/></td>
1930
+ </tr><br />
1931
+ <tr>
1932
+ <td align="center" valign="top" width="3.84%"><a href="https://github.com/domharrington"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/848223?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Dom Harrington"/></td>
1933
+ <td align="center" valign="top" width="3.84%"><a href="https://github.com/kseino"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/1378066?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Kohei Seino"/></td>
1930
1934
  </tr>
1931
1935
  </p>
1932
1936
 
package/dist/index.d.mts CHANGED
@@ -156,7 +156,7 @@ interface PersonalAccessTokenSchema extends Record<string, unknown> {
156
156
  last_used_at: string;
157
157
  active: boolean;
158
158
  expires_at?: string;
159
- token?: string;
159
+ token: string;
160
160
  }
161
161
  type PersonalAccessTokenScopes = 'api' | 'read_api' | 'read_user' | 'create_runner' | 'read_repository' | 'write_repository' | 'read_registry' | 'write_registry' | 'sudo' | 'admin_mode';
162
162
  type AllPersonalAccessTokenOptions = {
@@ -353,7 +353,7 @@ type CreateUserOptions = {
353
353
  externUid?: number;
354
354
  external?: boolean;
355
355
  extraSharedRunnersMinutesLimit?: number;
356
- forceRandomPassword?: string;
356
+ forceRandomPassword?: boolean;
357
357
  groupIdForSaml?: number;
358
358
  linkedin?: string;
359
359
  location?: string;
@@ -2129,7 +2129,7 @@ declare class ResourceDiscussions<C extends boolean = false> extends BaseResourc
2129
2129
  commitId?: string;
2130
2130
  createdAt?: string;
2131
2131
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
2132
- editNote<E extends boolean = false>(resourceId: string | number, resource2Id: string | number, discussionId: string | number, noteId: number, { body, ...options }?: Sudo & ShowExpanded<E> & {
2132
+ editNote<E extends boolean = false>(resourceId: string | number, resource2Id: string | number, discussionId: string | number, noteId: number, options: Sudo & ShowExpanded<E> & {
2133
2133
  body?: string;
2134
2134
  resolved?: boolean;
2135
2135
  }): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
@@ -2637,6 +2637,7 @@ interface MergeRequestSchema extends CondensedMergeRequestSchema {
2637
2637
  milestone: MilestoneSchema | null;
2638
2638
  merge_when_pipeline_succeeds: boolean;
2639
2639
  merge_status: 'unchecked' | 'checking' | 'can_be_merged' | 'cannot_be_merged' | 'cannot_be_merged_recheck';
2640
+ detailed_merge_status: 'blocked_status' | 'broken_status' | 'checking' | 'unchecked' | 'ci_must_pass' | 'ci_still_running' | 'discussions_not_resolved' | 'draft_status' | 'external_status_checks' | 'mergeable' | 'not_approved' | 'not_open' | 'policies_denied' | 'jira_association_missing';
2640
2641
  sha: string;
2641
2642
  merge_commit_sha: string | null;
2642
2643
  squash_commit_sha: string | null;
package/dist/index.d.ts CHANGED
@@ -156,7 +156,7 @@ interface PersonalAccessTokenSchema extends Record<string, unknown> {
156
156
  last_used_at: string;
157
157
  active: boolean;
158
158
  expires_at?: string;
159
- token?: string;
159
+ token: string;
160
160
  }
161
161
  type PersonalAccessTokenScopes = 'api' | 'read_api' | 'read_user' | 'create_runner' | 'read_repository' | 'write_repository' | 'read_registry' | 'write_registry' | 'sudo' | 'admin_mode';
162
162
  type AllPersonalAccessTokenOptions = {
@@ -353,7 +353,7 @@ type CreateUserOptions = {
353
353
  externUid?: number;
354
354
  external?: boolean;
355
355
  extraSharedRunnersMinutesLimit?: number;
356
- forceRandomPassword?: string;
356
+ forceRandomPassword?: boolean;
357
357
  groupIdForSaml?: number;
358
358
  linkedin?: string;
359
359
  location?: string;
@@ -2129,7 +2129,7 @@ declare class ResourceDiscussions<C extends boolean = false> extends BaseResourc
2129
2129
  commitId?: string;
2130
2130
  createdAt?: string;
2131
2131
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
2132
- editNote<E extends boolean = false>(resourceId: string | number, resource2Id: string | number, discussionId: string | number, noteId: number, { body, ...options }?: Sudo & ShowExpanded<E> & {
2132
+ editNote<E extends boolean = false>(resourceId: string | number, resource2Id: string | number, discussionId: string | number, noteId: number, options: Sudo & ShowExpanded<E> & {
2133
2133
  body?: string;
2134
2134
  resolved?: boolean;
2135
2135
  }): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
@@ -2637,6 +2637,7 @@ interface MergeRequestSchema extends CondensedMergeRequestSchema {
2637
2637
  milestone: MilestoneSchema | null;
2638
2638
  merge_when_pipeline_succeeds: boolean;
2639
2639
  merge_status: 'unchecked' | 'checking' | 'can_be_merged' | 'cannot_be_merged' | 'cannot_be_merged_recheck';
2640
+ detailed_merge_status: 'blocked_status' | 'broken_status' | 'checking' | 'unchecked' | 'ci_must_pass' | 'ci_still_running' | 'discussions_not_resolved' | 'draft_status' | 'external_status_checks' | 'mergeable' | 'not_approved' | 'not_open' | 'policies_denied' | 'jira_association_missing';
2640
2641
  sha: string;
2641
2642
  merge_commit_sha: string | null;
2642
2643
  squash_commit_sha: string | null;
package/dist/index.js CHANGED
@@ -1171,7 +1171,7 @@ var ResourceDiscussions = class extends requesterUtils.BaseResource {
1171
1171
  return RequestHelper.post()(
1172
1172
  this,
1173
1173
  endpoint`${resourceId}/${this.resource2Type}/${resource2Id}/discussions/${discussionId}/notes`,
1174
- { searchParams: { body }, noteId, ...options }
1174
+ { ...options, body, noteId }
1175
1175
  );
1176
1176
  }
1177
1177
  all(resourceId, resource2Id, options) {
@@ -1185,13 +1185,9 @@ var ResourceDiscussions = class extends requesterUtils.BaseResource {
1185
1185
  position,
1186
1186
  ...options
1187
1187
  } = {}) {
1188
- const opts = { ...options };
1188
+ const opts = { ...options, body };
1189
1189
  if (position) {
1190
1190
  Object.assign(opts, reformatObjectOptions(position, "position", true));
1191
- opts.isForm = true;
1192
- opts.body = body;
1193
- } else {
1194
- opts.searchParams = { body };
1195
1191
  }
1196
1192
  return RequestHelper.post()(
1197
1193
  this,
@@ -1199,14 +1195,11 @@ var ResourceDiscussions = class extends requesterUtils.BaseResource {
1199
1195
  opts
1200
1196
  );
1201
1197
  }
1202
- editNote(resourceId, resource2Id, discussionId, noteId, { body, ...options } = {}) {
1198
+ editNote(resourceId, resource2Id, discussionId, noteId, options) {
1203
1199
  return RequestHelper.put()(
1204
1200
  this,
1205
1201
  endpoint`${resourceId}/${this.resource2Type}/${resource2Id}/discussions/${discussionId}/notes/${noteId}`,
1206
- {
1207
- searchParams: { body },
1208
- ...options
1209
- }
1202
+ options
1210
1203
  );
1211
1204
  }
1212
1205
  removeNote(resourceId, resource2Id, discussionId, noteId, options) {
package/dist/index.mjs CHANGED
@@ -1165,7 +1165,7 @@ var ResourceDiscussions = class extends BaseResource {
1165
1165
  return RequestHelper.post()(
1166
1166
  this,
1167
1167
  endpoint`${resourceId}/${this.resource2Type}/${resource2Id}/discussions/${discussionId}/notes`,
1168
- { searchParams: { body }, noteId, ...options }
1168
+ { ...options, body, noteId }
1169
1169
  );
1170
1170
  }
1171
1171
  all(resourceId, resource2Id, options) {
@@ -1179,13 +1179,9 @@ var ResourceDiscussions = class extends BaseResource {
1179
1179
  position,
1180
1180
  ...options
1181
1181
  } = {}) {
1182
- const opts = { ...options };
1182
+ const opts = { ...options, body };
1183
1183
  if (position) {
1184
1184
  Object.assign(opts, reformatObjectOptions(position, "position", true));
1185
- opts.isForm = true;
1186
- opts.body = body;
1187
- } else {
1188
- opts.searchParams = { body };
1189
1185
  }
1190
1186
  return RequestHelper.post()(
1191
1187
  this,
@@ -1193,14 +1189,11 @@ var ResourceDiscussions = class extends BaseResource {
1193
1189
  opts
1194
1190
  );
1195
1191
  }
1196
- editNote(resourceId, resource2Id, discussionId, noteId, { body, ...options } = {}) {
1192
+ editNote(resourceId, resource2Id, discussionId, noteId, options) {
1197
1193
  return RequestHelper.put()(
1198
1194
  this,
1199
1195
  endpoint`${resourceId}/${this.resource2Type}/${resource2Id}/discussions/${discussionId}/notes/${noteId}`,
1200
- {
1201
- searchParams: { body },
1202
- ...options
1203
- }
1196
+ options
1204
1197
  );
1205
1198
  }
1206
1199
  removeNote(resourceId, resource2Id, discussionId, noteId, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitbeaker/core",
3
- "version": "39.25.1",
3
+ "version": "39.26.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": "^39.25.1",
58
+ "@gitbeaker/requester-utils": "^39.26.1",
59
59
  "qs": "^6.11.2",
60
60
  "xcase": "^2.0.1"
61
61
  },
@@ -66,5 +66,5 @@
66
66
  "tsx": "^4.6.2",
67
67
  "typescript": "^5.3.3"
68
68
  },
69
- "gitHead": "5fd8b4573c206c8f079ff6e58cea299b8fd1f868"
69
+ "gitHead": "880ec9b264aec105b90ca42c3e14156da096efb0"
70
70
  }