@gitkraken/provider-apis 0.26.1 → 0.26.3

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.
@@ -1,4 +1,4 @@
1
- import { Account, CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GetReposInput, GitLabel, GitMergeStrategy, GitPullRequest, GitRepository, NumberedPageInput, SetAccountInput, SetLabelInput, SetMilestoneInput, SetPullRequestInput } from '../../types/exportedTypes/gitProvider';
1
+ import { Account, CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GetReposInput, GitLabel, GitMergeStrategy, GitPullRequest, GitRepository, GitTreeItem, NumberedPageInput, SetAccountInput, SetLabelInput, SetMilestoneInput, SetPullRequestInput } from '../../types/exportedTypes/gitProvider';
2
2
  import { GitLabGetIssueInput, PullRequestAssociation } from '../../types/exportedTypes/gitlab';
3
3
  import { Issue, SetIssueInput } from '../../types/exportedTypes/issueProvider';
4
4
  import { GitProvider } from '../gitProvider';
@@ -295,4 +295,14 @@ export declare class GitLab extends EnterpriseProvider implements GitProvider, I
295
295
  };
296
296
  data: GitLabel[];
297
297
  }>;
298
+ getTreeForRepo(input: {
299
+ repo: GetRepoInput;
300
+ branch: string;
301
+ } & CursorPageInput, options?: EnterpriseOptions): Promise<{
302
+ data: GitTreeItem[];
303
+ pageInfo: {
304
+ endCursor: string | null;
305
+ hasNextPage: boolean;
306
+ };
307
+ }>;
298
308
  }
@@ -75,6 +75,7 @@ export interface GitRepository {
75
75
  namespace: string;
76
76
  name: string;
77
77
  project?: string;
78
+ projectId?: string;
78
79
  webUrl: string | null;
79
80
  httpsUrl: string | null;
80
81
  sshUrl: string | null;
@@ -132,6 +133,7 @@ export declare enum GitPullRequestMergeableState {
132
133
  Behind = "BEHIND",
133
134
  Blocked = "BLOCKED",
134
135
  Conflicts = "CONFLICTS",
136
+ FailingChecks = "FAILING_CHECKS",
135
137
  Mergeable = "MERGEABLE",
136
138
  Unknown = "UNKNOWN",
137
139
  UnknownAndBlocked = "UNKNOWN_AND_BLOCKED",
@@ -52,3 +52,10 @@ export declare enum GitLabCiJobStatus {
52
52
  WaitingForCallback = "WAITING_FOR_CALLBACK",
53
53
  WaitingForResource = "WAITING_FOR_RESOURCE"
54
54
  }
55
+ export interface RESTTreeItem {
56
+ id: string;
57
+ name: string;
58
+ type: string;
59
+ path: string;
60
+ mode: string;
61
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.26.1",
3
+ "version": "0.26.3",
4
4
  "description": "An SDK around different third-party APIs that accepts and returns data in a common format.",
5
5
  "author": "Axosoft, LLC dba GitKraken",
6
6
  "license": "SEE LICENSE IN LICENSE",