@gitkraken/provider-apis 0.27.4 → 0.28.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.
@@ -166,6 +166,7 @@ export declare class AzureDevOps extends Provider implements GitProvider, IssueP
166
166
  project: string;
167
167
  assigneeLogins?: string[];
168
168
  authorLogin?: string;
169
+ repo?: GetRepoInput;
169
170
  } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
170
171
  pageInfo: {
171
172
  hasNextPage: boolean;
@@ -180,6 +181,7 @@ export declare class AzureDevOps extends Provider implements GitProvider, IssueP
180
181
  }[];
181
182
  assigneeLogins?: string[];
182
183
  authorLogin?: string;
184
+ repo?: GetRepoInput;
183
185
  }, options?: EnterpriseOptions): Promise<{
184
186
  data: GitPullRequest[];
185
187
  }>;
@@ -84,6 +84,7 @@ export declare class Bitbucket extends Provider implements GitProvider {
84
84
  getPullRequestsForUserAndWorkspace(input: {
85
85
  userId: string;
86
86
  workspaceSlug: string;
87
+ repos?: GetRepoInput[];
87
88
  } & NumberedPageInput, options?: Options): Promise<{
88
89
  pageInfo: {
89
90
  hasNextPage: boolean;
@@ -236,6 +236,7 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider, I
236
236
  */
237
237
  getPullRequestsAssociatedWithUser(input: {
238
238
  username: string;
239
+ repos?: GetRepoInput[];
239
240
  includeFromArchivedRepos?: boolean;
240
241
  labelNames?: string[];
241
242
  maxPageSize?: number;
@@ -123,6 +123,7 @@ export declare class GitLab extends EnterpriseProvider implements GitProvider, I
123
123
  association: PullRequestAssociation;
124
124
  includeFromArchivedRepos?: boolean;
125
125
  labelNames?: string[];
126
+ repo?: GetRepoInput;
126
127
  } & CursorPageInput, options?: EnterpriseOptions): Promise<{
127
128
  pageInfo: {
128
129
  endCursor: string | null;
@@ -137,9 +138,10 @@ export declare class GitLab extends EnterpriseProvider implements GitProvider, I
137
138
  username: string;
138
139
  includeFromArchivedRepos?: boolean;
139
140
  labelNames?: string[];
141
+ repos?: GetRepoInput[];
140
142
  } & CursorPageInput, options?: EnterpriseOptions): Promise<{
141
143
  pageInfo: {
142
- hasNextPage: boolean;
144
+ hasNextPage: false;
143
145
  endCursor: string;
144
146
  };
145
147
  data: GitPullRequest[];
@@ -1,4 +1,4 @@
1
- import { CursorPageInput, EnterpriseOptions, NumberedPageInput, SetAccountInput, SetLabelInput } from '../../types/exportedTypes/gitProvider';
1
+ import { CursorPageInput, EnterpriseOptions, SetAccountInput, SetLabelInput } from '../../types/exportedTypes/gitProvider';
2
2
  import { SetIssueInput, SetStatusInput } from '../../types/exportedTypes/issueProvider';
3
3
  import { JiraGetIssueInput, JiraProject, JiraResource, SetComponentInput } from '../../types/exportedTypes/jira';
4
4
  import { Result } from '../../types/exportedTypes/types';
@@ -72,11 +72,11 @@ export declare class Jira extends Provider implements IssueProvider {
72
72
  authorLogin?: string;
73
73
  mentionLogin?: string;
74
74
  labelNames?: string[];
75
- } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
75
+ } & CursorPageInput, options?: EnterpriseOptions): Promise<{
76
76
  data: import("../../types/exportedTypes/issueProvider").Issue[];
77
77
  pageInfo: {
78
78
  hasNextPage: boolean;
79
- nextPage: number | null;
79
+ endCursor: string | null;
80
80
  };
81
81
  }>;
82
82
  getIssuesForProjects(input: {
@@ -86,21 +86,21 @@ export declare class Jira extends Provider implements IssueProvider {
86
86
  authorLogin?: string;
87
87
  mentionLogin?: string;
88
88
  labelNames?: string[];
89
- } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
89
+ } & CursorPageInput, options?: EnterpriseOptions): Promise<{
90
90
  data: import("../../types/exportedTypes/issueProvider").Issue[];
91
91
  pageInfo: {
92
92
  hasNextPage: boolean;
93
- nextPage: number | null;
93
+ endCursor: string | null;
94
94
  };
95
95
  }>;
96
96
  getIssuesForResourceForCurrentUser(input: {
97
97
  resourceId: string;
98
98
  labelNames?: string[];
99
- } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
99
+ } & CursorPageInput, options?: EnterpriseOptions): Promise<{
100
100
  data: import("../../types/exportedTypes/issueProvider").Issue[];
101
101
  pageInfo: {
102
102
  hasNextPage: boolean;
103
- nextPage: number | null;
103
+ endCursor: string | null;
104
104
  };
105
105
  }>;
106
106
  setIssueStatus(input: {
@@ -1,4 +1,4 @@
1
- import { EnterpriseOptions, NumberedPageInput, SetLabelInput } from '../../types/exportedTypes/gitProvider';
1
+ import { CursorPageInput, EnterpriseOptions, NumberedPageInput, SetLabelInput } from '../../types/exportedTypes/gitProvider';
2
2
  import { Issue, IssueComponent, IssueTransition, SetIssueInput, SetStatusInput } from '../../types/exportedTypes/issueProvider';
3
3
  import { JiraComponent, JiraUser, SetComponentInput } from '../../types/exportedTypes/jira';
4
4
  import { ProviderConfig } from '../../types/exportedTypes/types';
@@ -30,11 +30,11 @@ export declare const getIssuesForResourceForCurrentUser: (config: ProviderConfig
30
30
  resourceId?: string;
31
31
  labelNames?: string[];
32
32
  fields: JiraIssueFieldNameToId | null;
33
- } & NumberedPageInput, resourceUrl: string | null, options?: EnterpriseOptions) => Promise<{
33
+ } & CursorPageInput, resourceUrl: string | null, options?: EnterpriseOptions) => Promise<{
34
34
  data: Issue[];
35
35
  pageInfo: {
36
36
  hasNextPage: boolean;
37
- nextPage: number | null;
37
+ endCursor: string | null;
38
38
  };
39
39
  }>;
40
40
  export declare const getIssuesForProject: (config: ProviderConfig, input: {
@@ -45,11 +45,11 @@ export declare const getIssuesForProject: (config: ProviderConfig, input: {
45
45
  mentionLogin?: string;
46
46
  labelNames?: string[];
47
47
  fields: JiraIssueFieldNameToId | null;
48
- } & NumberedPageInput, resourceUrl: string | null, options?: EnterpriseOptions) => Promise<{
48
+ } & CursorPageInput, resourceUrl: string | null, options?: EnterpriseOptions) => Promise<{
49
49
  data: Issue[];
50
50
  pageInfo: {
51
51
  hasNextPage: boolean;
52
- nextPage: number | null;
52
+ endCursor: string | null;
53
53
  };
54
54
  }>;
55
55
  export declare const getIssuesForProjects: (config: ProviderConfig, input: {
@@ -60,11 +60,11 @@ export declare const getIssuesForProjects: (config: ProviderConfig, input: {
60
60
  mentionLogin?: string;
61
61
  labelNames?: string[];
62
62
  fields: JiraIssueFieldNameToId | null;
63
- } & NumberedPageInput, resourceUrl: string | null, options?: EnterpriseOptions) => Promise<{
63
+ } & CursorPageInput, resourceUrl: string | null, options?: EnterpriseOptions) => Promise<{
64
64
  data: Issue[];
65
65
  pageInfo: {
66
66
  hasNextPage: boolean;
67
- nextPage: number | null;
67
+ endCursor: string | null;
68
68
  };
69
69
  }>;
70
70
  export declare const setIssueLabels: (config: ProviderConfig, input: {
@@ -1,4 +1,4 @@
1
- import { EnterpriseOptions, NumberedPageInput, SetLabelInput } from '../../types/exportedTypes/gitProvider';
1
+ import { CursorPageInput, EnterpriseOptions, SetLabelInput } from '../../types/exportedTypes/gitProvider';
2
2
  import { SetIssueInput, SetStatusInput } from '../../types/exportedTypes/issueProvider';
3
3
  import { SetComponentInput } from '../../types/exportedTypes/jira';
4
4
  import { IssueProvider } from '../issueProvider';
@@ -35,11 +35,11 @@ export declare class JiraServer extends EnterpriseProvider implements IssueProvi
35
35
  mentionLogin?: string;
36
36
  labelNames?: string[];
37
37
  resourceUrl?: string;
38
- } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
38
+ } & CursorPageInput, options?: EnterpriseOptions): Promise<{
39
39
  data: import("../../types/exportedTypes/issueProvider").Issue[];
40
40
  pageInfo: {
41
41
  hasNextPage: boolean;
42
- nextPage: number | null;
42
+ endCursor: string | null;
43
43
  };
44
44
  }>;
45
45
  getIssuesForProjects(input: {
@@ -49,21 +49,21 @@ export declare class JiraServer extends EnterpriseProvider implements IssueProvi
49
49
  mentionLogin?: string;
50
50
  labelNames?: string[];
51
51
  resourceUrl?: string;
52
- } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
52
+ } & CursorPageInput, options?: EnterpriseOptions): Promise<{
53
53
  data: import("../../types/exportedTypes/issueProvider").Issue[];
54
54
  pageInfo: {
55
55
  hasNextPage: boolean;
56
- nextPage: number | null;
56
+ endCursor: string | null;
57
57
  };
58
58
  }>;
59
59
  getIssuesForResourceForCurrentUser(input: {
60
60
  labelNames?: string[];
61
61
  resourceUrl?: string;
62
- } & NumberedPageInput, options?: EnterpriseOptions): Promise<{
62
+ } & CursorPageInput, options?: EnterpriseOptions): Promise<{
63
63
  data: import("../../types/exportedTypes/issueProvider").Issue[];
64
64
  pageInfo: {
65
65
  hasNextPage: boolean;
66
- nextPage: number | null;
66
+ endCursor: string | null;
67
67
  };
68
68
  }>;
69
69
  setIssueStatus(input: {
@@ -243,6 +243,7 @@ export interface GetRepoInput {
243
243
  namespace: string;
244
244
  name: string;
245
245
  project?: string;
246
+ id?: string;
246
247
  }
247
248
  export interface GetReposInput {
248
249
  repos: GetRepoInput[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.27.4",
3
+ "version": "0.28.1",
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",