@gitkraken/provider-apis 0.29.8 → 0.29.9

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.
@@ -3,7 +3,7 @@ import { Options } from '../../types/exportedTypes/gitProvider';
3
3
  import { GetIssueInput, Issue } from '../../types/exportedTypes/issueProvider';
4
4
  import { Result } from '../../types/exportedTypes/types';
5
5
  import { CursorPageInput } from '../../types/exportedTypes/gitProvider';
6
- import { LinearOrganization, LinearTeam } from '../../types/exportedTypes/linear';
6
+ import { LinearGetIssuesInput, LinearOrganization, LinearTeam } from '../../types/exportedTypes/linear';
7
7
  import { PagedResult } from '../../types/exportedTypes/types';
8
8
  import { IssueProvider } from '../issueProvider';
9
9
  import { Provider } from '../provider';
@@ -19,4 +19,5 @@ export declare class Linear extends Provider implements IssueProvider {
19
19
  getTeamsForCurrentUser(options?: Options): Promise<Result<LinearTeam[]>>;
20
20
  getCurrentUser(options?: Options): Promise<Result<LinearUser>>;
21
21
  getIssuesForCurrentUser(input: CursorPageInput, options?: Options): Promise<PagedResult<Issue>>;
22
+ getIssues(input: LinearGetIssuesInput & CursorPageInput, options?: Options): Promise<PagedResult<Issue>>;
22
23
  }
@@ -10,3 +10,8 @@ export interface LinearOrganization {
10
10
  key: string;
11
11
  url: string;
12
12
  }
13
+ export interface LinearGetIssuesInput {
14
+ teams?: string[];
15
+ projects?: string[];
16
+ labels?: string[];
17
+ }
@@ -0,0 +1,22 @@
1
+ import type { Issue as LinearIssue } from '@linear/sdk';
2
+ export type LinearOrganizationResponse = {
3
+ id: string;
4
+ name: string;
5
+ urlKey: string;
6
+ };
7
+ export type LinearSearchResult = {
8
+ nodes: LinearIssue[];
9
+ pageInfo: {
10
+ hasNextPage: boolean;
11
+ endCursor?: string;
12
+ };
13
+ };
14
+ export type LinearIssuesResponse = {
15
+ issues: {
16
+ nodes: LinearIssue[];
17
+ pageInfo: {
18
+ hasNextPage: boolean;
19
+ endCursor?: string;
20
+ };
21
+ };
22
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.29.8",
3
+ "version": "0.29.9",
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",