@gitbeaker/core 39.24.0 → 39.25.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 CHANGED
@@ -4807,20 +4807,20 @@ declare class Branches<C extends boolean = false> extends BaseResource<C> {
4807
4807
  }
4808
4808
 
4809
4809
  interface CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
4810
- addNote<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, noteId: number, body: string, options?: {
4810
+ addNote<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, noteId: number, body: string, options?: {
4811
4811
  createdAt?: string;
4812
4812
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
4813
- all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, commitId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, P>>;
4814
- create<E extends boolean = false>(projectId: string | number, commitId: number, body: string, options?: {
4813
+ all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, commitId: string, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, P>>;
4814
+ create<E extends boolean = false>(projectId: string | number, commitId: string, body: string, options?: {
4815
4815
  position?: DiscussionNotePositionOptions;
4816
4816
  commitId?: string;
4817
4817
  createdAt?: string;
4818
4818
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
4819
- editNote<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E> & {
4819
+ editNote<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E> & {
4820
4820
  body?: string;
4821
4821
  }): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
4822
- removeNote<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
4823
- show<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
4822
+ removeNote<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
4823
+ show<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
4824
4824
  }
4825
4825
  declare class CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
4826
4826
  constructor(options: BaseResourceOptions<C>);
@@ -7731,21 +7731,21 @@ declare class GroupServiceAccounts<C extends boolean = false> extends BaseResour
7731
7731
  }
7732
7732
 
7733
7733
  interface GroupVariables<C extends boolean = false> extends ResourceVariables<C> {
7734
- all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<VariableSchema[], C, E, P>>;
7735
- create<E extends boolean = false>(projectId: string | number, key: string, value: string, options?: {
7734
+ all<E extends boolean = false, P extends PaginationTypes = 'offset'>(groupId: string | number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<VariableSchema[], C, E, P>>;
7735
+ create<E extends boolean = false>(groupId: string | number, key: string, value: string, options?: {
7736
7736
  variableType?: VariableType;
7737
7737
  protected?: boolean;
7738
7738
  masked?: boolean;
7739
7739
  environmentScope?: string;
7740
7740
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7741
- edit<E extends boolean = false>(projectId: string | number, key: string, value: string, options?: {
7741
+ edit<E extends boolean = false>(groupId: string | number, key: string, value: string, options?: {
7742
7742
  variableType?: VariableType;
7743
7743
  protected?: boolean;
7744
7744
  masked?: boolean;
7745
7745
  environmentScope?: string;
7746
7746
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7747
- show<E extends boolean = false>(projectId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7748
- remove<E extends boolean = false>(projectId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
7747
+ show<E extends boolean = false>(groupId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7748
+ remove<E extends boolean = false>(groupId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
7749
7749
  }
7750
7750
  declare class GroupVariables<C extends boolean = false> extends ResourceVariables<C> {
7751
7751
  constructor(options: BaseResourceOptions<C>);
package/dist/index.d.ts CHANGED
@@ -4807,20 +4807,20 @@ declare class Branches<C extends boolean = false> extends BaseResource<C> {
4807
4807
  }
4808
4808
 
4809
4809
  interface CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
4810
- addNote<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, noteId: number, body: string, options?: {
4810
+ addNote<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, noteId: number, body: string, options?: {
4811
4811
  createdAt?: string;
4812
4812
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
4813
- all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, commitId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, P>>;
4814
- create<E extends boolean = false>(projectId: string | number, commitId: number, body: string, options?: {
4813
+ all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, commitId: string, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, P>>;
4814
+ create<E extends boolean = false>(projectId: string | number, commitId: string, body: string, options?: {
4815
4815
  position?: DiscussionNotePositionOptions;
4816
4816
  commitId?: string;
4817
4817
  createdAt?: string;
4818
4818
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
4819
- editNote<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E> & {
4819
+ editNote<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E> & {
4820
4820
  body?: string;
4821
4821
  }): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
4822
- removeNote<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
4823
- show<E extends boolean = false>(projectId: string | number, commitId: number, discussionId: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
4822
+ removeNote<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, noteId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
4823
+ show<E extends boolean = false>(projectId: string | number, commitId: string, discussionId: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
4824
4824
  }
4825
4825
  declare class CommitDiscussions<C extends boolean = false> extends ResourceDiscussions<C> {
4826
4826
  constructor(options: BaseResourceOptions<C>);
@@ -7731,21 +7731,21 @@ declare class GroupServiceAccounts<C extends boolean = false> extends BaseResour
7731
7731
  }
7732
7732
 
7733
7733
  interface GroupVariables<C extends boolean = false> extends ResourceVariables<C> {
7734
- all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<VariableSchema[], C, E, P>>;
7735
- create<E extends boolean = false>(projectId: string | number, key: string, value: string, options?: {
7734
+ all<E extends boolean = false, P extends PaginationTypes = 'offset'>(groupId: string | number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<VariableSchema[], C, E, P>>;
7735
+ create<E extends boolean = false>(groupId: string | number, key: string, value: string, options?: {
7736
7736
  variableType?: VariableType;
7737
7737
  protected?: boolean;
7738
7738
  masked?: boolean;
7739
7739
  environmentScope?: string;
7740
7740
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7741
- edit<E extends boolean = false>(projectId: string | number, key: string, value: string, options?: {
7741
+ edit<E extends boolean = false>(groupId: string | number, key: string, value: string, options?: {
7742
7742
  variableType?: VariableType;
7743
7743
  protected?: boolean;
7744
7744
  masked?: boolean;
7745
7745
  environmentScope?: string;
7746
7746
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7747
- show<E extends boolean = false>(projectId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7748
- remove<E extends boolean = false>(projectId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
7747
+ show<E extends boolean = false>(groupId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<VariableSchema, C, E, void>>;
7748
+ remove<E extends boolean = false>(groupId: string | number, key: string, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
7749
7749
  }
7750
7750
  declare class GroupVariables<C extends boolean = false> extends ResourceVariables<C> {
7751
7751
  constructor(options: BaseResourceOptions<C>);
package/dist/index.js CHANGED
@@ -6362,21 +6362,17 @@ var GroupSAMLLinks = class extends requesterUtils.BaseResource {
6362
6362
  );
6363
6363
  }
6364
6364
  remove(groupId, samlGroupName, options) {
6365
- return RequestHelper.del()(this, endpoint`groups/${groupId}/saml_group_links`, {
6366
- searchParams: {
6367
- samlGroupName
6368
- },
6369
- ...options
6370
- });
6365
+ return RequestHelper.del()(
6366
+ this,
6367
+ endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
6368
+ options
6369
+ );
6371
6370
  }
6372
6371
  show(groupId, samlGroupName, options) {
6373
6372
  return RequestHelper.get()(
6374
6373
  this,
6375
- endpoint`groups/${groupId}/saml_group_links`,
6376
- {
6377
- samlGroupName,
6378
- ...options
6379
- }
6374
+ endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
6375
+ options
6380
6376
  );
6381
6377
  }
6382
6378
  };
package/dist/index.mjs CHANGED
@@ -6356,21 +6356,17 @@ var GroupSAMLLinks = class extends BaseResource {
6356
6356
  );
6357
6357
  }
6358
6358
  remove(groupId, samlGroupName, options) {
6359
- return RequestHelper.del()(this, endpoint`groups/${groupId}/saml_group_links`, {
6360
- searchParams: {
6361
- samlGroupName
6362
- },
6363
- ...options
6364
- });
6359
+ return RequestHelper.del()(
6360
+ this,
6361
+ endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
6362
+ options
6363
+ );
6365
6364
  }
6366
6365
  show(groupId, samlGroupName, options) {
6367
6366
  return RequestHelper.get()(
6368
6367
  this,
6369
- endpoint`groups/${groupId}/saml_group_links`,
6370
- {
6371
- samlGroupName,
6372
- ...options
6373
- }
6368
+ endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
6369
+ options
6374
6370
  );
6375
6371
  }
6376
6372
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitbeaker/core",
3
- "version": "39.24.0",
3
+ "version": "39.25.1",
4
4
  "description": "Core API implementation of the GitLab API",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -55,16 +55,16 @@
55
55
  "release": "auto shipit"
56
56
  },
57
57
  "dependencies": {
58
- "@gitbeaker/requester-utils": "^39.24.0",
58
+ "@gitbeaker/requester-utils": "^39.25.1",
59
59
  "qs": "^6.11.2",
60
60
  "xcase": "^2.0.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@types/node": "^20.9.1",
63
+ "@types/node": "^20.10.4",
64
64
  "get-param-names": "github:jdalrymple/get-param-names#1-improve-functionality",
65
- "tsup": "^7.3.0",
66
- "tsx": "^4.1.2",
67
- "typescript": "^5.2.2"
65
+ "tsup": "^8.0.1",
66
+ "tsx": "^4.6.2",
67
+ "typescript": "^5.3.3"
68
68
  },
69
- "gitHead": "e057fcfabda761e5d5b30c4a54549a6c79cb2305"
69
+ "gitHead": "5fd8b4573c206c8f079ff6e58cea299b8fd1f868"
70
70
  }