@gitbeaker/core 39.1.1 → 39.2.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/dist/index.d.ts CHANGED
@@ -307,6 +307,14 @@ type AllUsersOptions = {
307
307
  withoutProjects?: boolean;
308
308
  admins?: boolean;
309
309
  samlProviderId?: number;
310
+ search?: string;
311
+ username?: string;
312
+ active?: boolean;
313
+ blocked?: boolean;
314
+ external?: boolean;
315
+ excludeInternal?: boolean;
316
+ excludeExternal?: boolean;
317
+ withoutProjectBots?: boolean;
310
318
  };
311
319
  type CreateUserOptions = {
312
320
  admin?: boolean;
@@ -5584,10 +5592,10 @@ interface PipelineTriggerTokenSchema extends Record<string, unknown> {
5584
5592
  id: number;
5585
5593
  description: string;
5586
5594
  created_at: string;
5587
- last_used?: null;
5595
+ last_used: string | null;
5588
5596
  token: string;
5589
5597
  updated_at: string;
5590
- owner?: null;
5598
+ owner: MappedOmit<UserSchema, 'created_at'> | null;
5591
5599
  }
5592
5600
  declare class PipelineTriggerTokens<C extends boolean = false> extends BaseResource<C> {
5593
5601
  all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<PipelineTriggerTokenSchema[], C, E, P>>;
@@ -5733,7 +5741,12 @@ interface ImportStatusSchema extends Record<string, unknown> {
5733
5741
  import_error?: string;
5734
5742
  }
5735
5743
  declare class ProjectImportExports<C extends boolean = false> extends BaseResource<C> {
5736
- download<E extends boolean = false>(projectId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Blob, void, E, void>>;
5744
+ download<E extends boolean = false>(projectId: string | number, options: {
5745
+ asStream: true;
5746
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ReadableStream, void, E, void>>;
5747
+ download<E extends boolean = false>(projectId: string | number, options?: {
5748
+ asStream?: boolean;
5749
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Blob, void, E, void>>;
5737
5750
  import<E extends boolean = false>(file: {
5738
5751
  content: Blob;
5739
5752
  filename: string;
@@ -5753,8 +5766,8 @@ declare class ProjectImportExports<C extends boolean = false> extends BaseResour
5753
5766
  name?: number;
5754
5767
  namespace?: number | string;
5755
5768
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ImportStatusSchema, C, E, void>>;
5756
- showExportStatus(projectId: string | number, options?: Sudo): Promise<CamelizedResponse<ExportStatusSchema, C>>;
5757
- showImportStatus(projectId: string | number, options?: Sudo): Promise<CamelizedResponse<ImportStatusSchema, C>>;
5769
+ showExportStatus<E extends boolean = false>(projectId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIExpandedResponse<CamelizedResponse<ExportStatusSchema, C>, E, undefined>>;
5770
+ showImportStatus<E extends boolean = false>(projectId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIExpandedResponse<CamelizedResponse<ImportStatusSchema, C>, E, undefined>>;
5758
5771
  scheduleExport<E extends boolean = false>(projectId: string | number, uploadConfig: {
5759
5772
  url: string;
5760
5773
  http_method?: string;
@@ -6833,7 +6846,12 @@ declare class GroupHooks<C extends boolean = false> extends ResourceHooks<C> {
6833
6846
  }
6834
6847
 
6835
6848
  declare class GroupImportExports<C extends boolean = false> extends BaseResource<C> {
6836
- download<E extends boolean = false>(groupId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Blob, void, E, void>>;
6849
+ download<E extends boolean = false>(groupId: string | number, options: {
6850
+ asStream: true;
6851
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ReadableStream, void, E, void>>;
6852
+ download<E extends boolean = false>(groupId: string | number, options?: {
6853
+ asStream?: boolean;
6854
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Blob, void, E, void>>;
6837
6855
  import<E extends boolean = false>(file: {
6838
6856
  content: Blob;
6839
6857
  filename: string;
@@ -6841,7 +6859,7 @@ declare class GroupImportExports<C extends boolean = false> extends BaseResource
6841
6859
  parentId?: number;
6842
6860
  name?: string;
6843
6861
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ImportStatusSchema, C, E, void>>;
6844
- scheduleExport<E extends boolean = false>(groupId: string | number, options?: BaseRequestOptions<E>): Promise<GitlabAPIResponse<{
6862
+ scheduleExport<E extends boolean = false>(groupId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<{
6845
6863
  message: string;
6846
6864
  }, C, E, void>>;
6847
6865
  }
package/dist/index.js CHANGED
@@ -5905,7 +5905,11 @@ var GroupHooks = class extends ResourceHooks {
5905
5905
  };
5906
5906
  var GroupImportExports = class extends requesterUtils.BaseResource {
5907
5907
  download(groupId, options) {
5908
- return RequestHelper.get()(this, endpoint`groups/${groupId}/export/download`, options);
5908
+ return RequestHelper.get()(
5909
+ this,
5910
+ endpoint`groups/${groupId}/export/download`,
5911
+ options
5912
+ );
5909
5913
  }
5910
5914
  import(file, path, { parentId, name, ...options }) {
5911
5915
  return RequestHelper.post()(this, "groups/import", {
package/dist/index.mjs CHANGED
@@ -5899,7 +5899,11 @@ var GroupHooks = class extends ResourceHooks {
5899
5899
  };
5900
5900
  var GroupImportExports = class extends BaseResource {
5901
5901
  download(groupId, options) {
5902
- return RequestHelper.get()(this, endpoint`groups/${groupId}/export/download`, options);
5902
+ return RequestHelper.get()(
5903
+ this,
5904
+ endpoint`groups/${groupId}/export/download`,
5905
+ options
5906
+ );
5903
5907
  }
5904
5908
  import(file, path, { parentId, name, ...options }) {
5905
5909
  return RequestHelper.post()(this, "groups/import", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitbeaker/core",
3
- "version": "39.1.1",
3
+ "version": "39.2.0",
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.1.1",
59
- "qs": "^6.11.1",
58
+ "@gitbeaker/requester-utils": "^39.2.0",
59
+ "qs": "^6.11.2",
60
60
  "xcase": "^2.0.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@types/node": "^20.0.0",
63
+ "@types/node": "^20.3.1",
64
64
  "get-param-names": "github:jdalrymple/get-param-names#1-improve-functionality",
65
- "tsup": "^6.7.0",
66
- "tsx": "^3.12.6",
67
- "typescript": "^5.0.4"
65
+ "tsup": "^7.1.0",
66
+ "tsx": "^3.12.7",
67
+ "typescript": "^5.1.3"
68
68
  },
69
- "gitHead": "cad136a360a24c553c59662aacc321f44fd53d64"
69
+ "gitHead": "d7a872816145eacdac3773821b4640e60bb38db7"
70
70
  }