@gitkraken/core-gitlens 0.22.1 → 0.24.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/CHANGELOG.md +16 -1
- package/dist/plus/integrations/index.d.ts +3 -3
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +10 -2
- package/dist/plus/integrations/integrationService.js +9 -1
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/manager.d.ts +25 -1
- package/dist/plus/integrations/models/issueReads.d.ts +5 -0
- package/dist/plus/integrations/providers/linear.d.ts +39 -6
- package/dist/plus/integrations/providers/linear.js +129 -15
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +4 -1
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +9 -1
- package/dist/plus/integrations/providers/providersApi.js +8 -0
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/reads/cursors.d.ts +8 -0
- package/dist/plus/integrations/reads/cursors.js +14 -4
- package/dist/plus/integrations/reads/cursors.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts +8 -2
- package/dist/plus/integrations/reads/hierarchy.js +42 -2
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts +14 -1
- package/dist/plus/integrations/reads/issueTracker.js +46 -5
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/dist/plus/integrations/reads/selectionConfirmation.d.ts +5 -3
- package/dist/plus/integrations/reads/selectionConfirmation.js.map +1 -1
- package/dist/plus/integrations/reads/warnings.js +1 -1
- package/dist/plus/integrations/reads/warnings.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +18 -2
- package/dist/plus/integrations/results.js.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts +3 -0
- package/dist/plus/integrations/utils/integration.utils.js +5 -1
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/docs/integrations.md +41 -22
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@ import { GitCloudHostIntegrationId, GitSelfManagedHostIntegrationId, Integration
|
|
|
7
7
|
import { ProviderOrganization } from "../results.js";
|
|
8
8
|
import { ProviderPullRequestCount, ProviderPullRequestSearchPage } from "../models/pullRequestReads.js";
|
|
9
9
|
import { IssueFilter } from "../providerFilters.js";
|
|
10
|
-
import { GetIssuesOptions, GetPullRequestsForUserOptions, GetPullRequestsOptions, GetReposOptions, JiraIssuePage, PageInfo, PagingInput, PagingMode, ProviderAccount, ProviderApiCollectionResult, ProviderApiPagedResult, ProviderAzureProject, ProviderAzureResource, ProviderBitbucketResource, ProviderGitHubOrganization, ProviderGitLabGroup, ProviderHierarchyResult, ProviderIssue, ProviderJiraProject, ProviderJiraResource, ProviderJiraServerProject, ProviderLinearOrganization, ProviderLinearTeam, ProviderPullRequest, ProviderRepoInput, ProviderReposInput, ProviderRepository } from "./models.js";
|
|
10
|
+
import { GetIssuesOptions, GetPullRequestsForUserOptions, GetPullRequestsOptions, GetReposOptions, JiraIssuePage, PageInfo, PagingInput, PagingMode, ProviderAccount, ProviderApiCollectionResult, ProviderApiPagedResult, ProviderAzureProject, ProviderAzureResource, ProviderBitbucketResource, ProviderGitHubOrganization, ProviderGitLabGroup, ProviderHierarchyResult, ProviderIssue, ProviderJiraProject, ProviderJiraResource, ProviderJiraServerProject, ProviderLinearOrganization, ProviderLinearProject, ProviderLinearTeam, ProviderPullRequest, ProviderRepoInput, ProviderReposInput, ProviderRepository } from "./models.js";
|
|
11
11
|
import { AzurePullRequest, AzureWorkItemEtagRead } from "./azure/models.js";
|
|
12
12
|
import { AzureWorkItemStatesCache } from "./azure/workItemStateCategories.js";
|
|
13
13
|
import { AzureWorkItemDescriptionsCache } from "./azure/workItemDescriptions.js";
|
|
@@ -171,6 +171,12 @@ export declare class ProvidersApi implements Disposable {
|
|
|
171
171
|
getJiraResourcesForCurrentUser(tokenOptInfo: TokenWithInfo<IssuesCloudHostIntegrationId.Jira>): Promise<ProviderJiraResource[] | undefined>;
|
|
172
172
|
getLinearOrganization(tokenOptInfo: TokenWithInfo<IssuesCloudHostIntegrationId.Linear>): Promise<ProviderLinearOrganization | undefined>;
|
|
173
173
|
getLinearTeamsForCurrentUser(tokenOptInfo: TokenWithInfo<IssuesCloudHostIntegrationId.Linear>): Promise<ProviderLinearTeam[] | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* One page of the workspace's Linear Projects (Linear's `Project` entity, not its teams). Follow `paging.cursor`.
|
|
176
|
+
*/
|
|
177
|
+
getLinearProjects(tokenOptInfo: TokenWithInfo<IssuesCloudHostIntegrationId.Linear>, options?: {
|
|
178
|
+
cursor?: string;
|
|
179
|
+
}): Promise<ProviderApiPagedResult<ProviderLinearProject>>;
|
|
174
180
|
/**
|
|
175
181
|
* Reads issues scoped to Linear teams/projects/labels/assignees (Linear's issue-list filter). One page per
|
|
176
182
|
* call — follow `paging.cursor`. `assignees` takes Linear user ids (the viewer's `id`), not names.
|
|
@@ -181,6 +187,8 @@ export declare class ProvidersApi implements Disposable {
|
|
|
181
187
|
labels?: string[];
|
|
182
188
|
/** Linear user ids (the viewer's `id`), not names. */
|
|
183
189
|
assignees?: string[];
|
|
190
|
+
/** Linear user ids whose GitHub-synced issues (created by one of them) to read as well, ORed with `assignees`. */
|
|
191
|
+
githubSyncedCreators?: string[];
|
|
184
192
|
/** Omitted reads open issues (workflow state type other than `completed`/`canceled`). */
|
|
185
193
|
states?: GitIssueState[];
|
|
186
194
|
}, options?: PagingInput & {
|
|
@@ -271,6 +271,7 @@ var ProvidersApi = class {
|
|
|
271
271
|
getLinearOrganizationFn: providerApis.linear.getLinearOrganization.bind(providerApis.linear),
|
|
272
272
|
getLinearTeamsForCurrentUserFn: providerApis.linear.getTeamsForCurrentUser.bind(providerApis.linear),
|
|
273
273
|
getLinearIssuesFn: providerApis.linear.getIssues.bind(providerApis.linear),
|
|
274
|
+
getLinearProjectsFn: providerApis.linear.getProjects.bind(providerApis.linear),
|
|
274
275
|
getLinearCurrentUserFn: providerApis.linear.getCurrentUser.bind(providerApis.linear)
|
|
275
276
|
},
|
|
276
277
|
["trello"]: {
|
|
@@ -810,6 +811,13 @@ var ProvidersApi = class {
|
|
|
810
811
|
}
|
|
811
812
|
}
|
|
812
813
|
/**
|
|
814
|
+
* One page of the workspace's Linear Projects (Linear's `Project` entity, not its teams). Follow `paging.cursor`.
|
|
815
|
+
*/
|
|
816
|
+
async getLinearProjects(tokenOptInfo, options) {
|
|
817
|
+
const { provider, tokenWithInfo } = await this.ensureProviderTokenAndFunction(tokenOptInfo, "getLinearProjectsFn");
|
|
818
|
+
return this.getPagedResult({}, provider.getLinearProjectsFn, tokenWithInfo, options?.cursor);
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
813
821
|
* Reads issues scoped to Linear teams/projects/labels/assignees (Linear's issue-list filter). One page per
|
|
814
822
|
* call — follow `paging.cursor`. `assignees` takes Linear user ids (the viewer's `id`), not names.
|
|
815
823
|
*/
|