@gitbeaker/core 39.1.1 → 39.3.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
@@ -302,12 +302,29 @@ interface UserRunnerSchema extends Record<string, unknown> {
302
302
  }
303
303
  type AllUsersOptions = {
304
304
  orderBy?: 'name' | 'username' | 'created_at' | 'updated_at';
305
+ createdBy?: string;
305
306
  sort?: 'asc' | 'desc';
306
307
  twoFactor?: string;
307
308
  withoutProjects?: boolean;
308
309
  admins?: boolean;
309
310
  samlProviderId?: number;
310
- };
311
+ skipLdap?: boolean;
312
+ search?: string;
313
+ username?: string;
314
+ active?: boolean;
315
+ blocked?: boolean;
316
+ external?: boolean;
317
+ excludeInternal?: boolean;
318
+ excludeExternal?: boolean;
319
+ withoutProjectBots?: boolean;
320
+ createdBefore?: string;
321
+ createdAfter?: string;
322
+ withCustomAttributes?: boolean;
323
+ customAttributes?: Record<string, string>;
324
+ } & AllOrNone<{
325
+ provider: string;
326
+ externUid: string;
327
+ }>;
311
328
  type CreateUserOptions = {
312
329
  admin?: boolean;
313
330
  auditor?: boolean;
@@ -5584,10 +5601,10 @@ interface PipelineTriggerTokenSchema extends Record<string, unknown> {
5584
5601
  id: number;
5585
5602
  description: string;
5586
5603
  created_at: string;
5587
- last_used?: null;
5604
+ last_used: string | null;
5588
5605
  token: string;
5589
5606
  updated_at: string;
5590
- owner?: null;
5607
+ owner: MappedOmit<UserSchema, 'created_at'> | null;
5591
5608
  }
5592
5609
  declare class PipelineTriggerTokens<C extends boolean = false> extends BaseResource<C> {
5593
5610
  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 +5750,12 @@ interface ImportStatusSchema extends Record<string, unknown> {
5733
5750
  import_error?: string;
5734
5751
  }
5735
5752
  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>>;
5753
+ download<E extends boolean = false>(projectId: string | number, options: {
5754
+ asStream: true;
5755
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ReadableStream, void, E, void>>;
5756
+ download<E extends boolean = false>(projectId: string | number, options?: {
5757
+ asStream?: boolean;
5758
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Blob, void, E, void>>;
5737
5759
  import<E extends boolean = false>(file: {
5738
5760
  content: Blob;
5739
5761
  filename: string;
@@ -5753,8 +5775,8 @@ declare class ProjectImportExports<C extends boolean = false> extends BaseResour
5753
5775
  name?: number;
5754
5776
  namespace?: number | string;
5755
5777
  } & 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>>;
5778
+ showExportStatus<E extends boolean = false>(projectId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIExpandedResponse<CamelizedResponse<ExportStatusSchema, C>, E, undefined>>;
5779
+ showImportStatus<E extends boolean = false>(projectId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIExpandedResponse<CamelizedResponse<ImportStatusSchema, C>, E, undefined>>;
5758
5780
  scheduleExport<E extends boolean = false>(projectId: string | number, uploadConfig: {
5759
5781
  url: string;
5760
5782
  http_method?: string;
@@ -6833,7 +6855,12 @@ declare class GroupHooks<C extends boolean = false> extends ResourceHooks<C> {
6833
6855
  }
6834
6856
 
6835
6857
  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>>;
6858
+ download<E extends boolean = false>(groupId: string | number, options: {
6859
+ asStream: true;
6860
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ReadableStream, void, E, void>>;
6861
+ download<E extends boolean = false>(groupId: string | number, options?: {
6862
+ asStream?: boolean;
6863
+ } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<Blob, void, E, void>>;
6837
6864
  import<E extends boolean = false>(file: {
6838
6865
  content: Blob;
6839
6866
  filename: string;
@@ -6841,7 +6868,7 @@ declare class GroupImportExports<C extends boolean = false> extends BaseResource
6841
6868
  parentId?: number;
6842
6869
  name?: string;
6843
6870
  } & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ImportStatusSchema, C, E, void>>;
6844
- scheduleExport<E extends boolean = false>(groupId: string | number, options?: BaseRequestOptions<E>): Promise<GitlabAPIResponse<{
6871
+ scheduleExport<E extends boolean = false>(groupId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<{
6845
6872
  message: string;
6846
6873
  }, C, E, void>>;
6847
6874
  }
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.3.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.3.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": "39f6206dc562a762569da6570cc2a1586ab11f62"
70
70
  }