@gitbeaker/core 42.0.1 → 42.1.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 CHANGED
@@ -1931,6 +1931,7 @@ import { Gitlab } from '@gitbeaker/core';
1931
1931
  <td align="center" valign="top" width="0.33%"><a href="https://github.com/mpsanchis"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/33475618?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Miguel"/></td>
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
+ <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>
1934
1935
  </tr>
1935
1936
  </p>
1936
1937
 
package/dist/index.d.mts CHANGED
@@ -2828,7 +2828,6 @@ type EditMergeRequestOptions = {
2828
2828
  title?: string;
2829
2829
  assigneeId?: number;
2830
2830
  assigneeIds?: number[];
2831
- reviewerId?: number;
2832
2831
  reviewerIds?: number[];
2833
2832
  milestoneId?: number;
2834
2833
  addLabels?: string;
@@ -2845,7 +2844,7 @@ type EditMergeRequestOptions = {
2845
2844
  };
2846
2845
  type CreateMergeRequestOptions = {
2847
2846
  targetProjectId?: number;
2848
- } & Pick<EditMergeRequestOptions, 'assigneeId' | 'assigneeIds' | 'description' | 'labels' | 'title' | 'milestoneId' | 'reviewerId' | 'reviewerIds' | 'removeSourceBranch' | 'allowCollaboration' | 'allowMaintainerToPush' | 'squash'>;
2847
+ } & Pick<EditMergeRequestOptions, 'assigneeId' | 'assigneeIds' | 'description' | 'labels' | 'title' | 'milestoneId' | 'reviewerIds' | 'removeSourceBranch' | 'allowCollaboration' | 'allowMaintainerToPush' | 'squash'>;
2849
2848
  declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
2850
2849
  accept<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: AcceptMergeRequestOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
2851
2850
  addSpentTime<E extends boolean = false>(projectId: string | number, mergerequestIId: number, duration: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<TimeStatsSchema, C, E, void>>;
package/dist/index.d.ts CHANGED
@@ -2828,7 +2828,6 @@ type EditMergeRequestOptions = {
2828
2828
  title?: string;
2829
2829
  assigneeId?: number;
2830
2830
  assigneeIds?: number[];
2831
- reviewerId?: number;
2832
2831
  reviewerIds?: number[];
2833
2832
  milestoneId?: number;
2834
2833
  addLabels?: string;
@@ -2845,7 +2844,7 @@ type EditMergeRequestOptions = {
2845
2844
  };
2846
2845
  type CreateMergeRequestOptions = {
2847
2846
  targetProjectId?: number;
2848
- } & Pick<EditMergeRequestOptions, 'assigneeId' | 'assigneeIds' | 'description' | 'labels' | 'title' | 'milestoneId' | 'reviewerId' | 'reviewerIds' | 'removeSourceBranch' | 'allowCollaboration' | 'allowMaintainerToPush' | 'squash'>;
2847
+ } & Pick<EditMergeRequestOptions, 'assigneeId' | 'assigneeIds' | 'description' | 'labels' | 'title' | 'milestoneId' | 'reviewerIds' | 'removeSourceBranch' | 'allowCollaboration' | 'allowMaintainerToPush' | 'squash'>;
2849
2848
  declare class MergeRequests<C extends boolean = false> extends BaseResource<C> {
2850
2849
  accept<E extends boolean = false>(projectId: string | number, mergerequestIId: number, options?: AcceptMergeRequestOptions & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedMergeRequestSchema, C, E, void>>;
2851
2850
  addSpentTime<E extends boolean = false>(projectId: string | number, mergerequestIId: number, duration: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<TimeStatsSchema, C, E, void>>;
package/dist/index.js CHANGED
@@ -4738,7 +4738,7 @@ var ProjectMilestones = class extends ResourceMilestones {
4738
4738
  // src/resources/ProjectProtectedEnvironments.ts
4739
4739
  var ProjectProtectedEnvironments = class extends ResourceProtectedEnvironments {
4740
4740
  constructor(options) {
4741
- super("groups", options);
4741
+ super("projects", options);
4742
4742
  }
4743
4743
  };
4744
4744
 
package/dist/index.mjs CHANGED
@@ -4732,7 +4732,7 @@ var ProjectMilestones = class extends ResourceMilestones {
4732
4732
  // src/resources/ProjectProtectedEnvironments.ts
4733
4733
  var ProjectProtectedEnvironments = class extends ResourceProtectedEnvironments {
4734
4734
  constructor(options) {
4735
- super("groups", options);
4735
+ super("projects", options);
4736
4736
  }
4737
4737
  };
4738
4738
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitbeaker/core",
3
- "version": "42.0.1",
3
+ "version": "42.1.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.0.1",
55
+ "@gitbeaker/requester-utils": "^42.1.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": "f7893ae865f4b9c5ed84fefb504d5fb72366efcb"
66
+ "gitHead": "cccf261448125d94ce26258ed7e5599a35463733"
67
67
  }