@gitkraken/provider-apis 0.22.2 → 0.22.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,5 +1,5 @@
1
1
  import { type Account } from '../types/exportedTypes/gitProvider';
2
- import type { ActionablePullRequest, EnrichedItemsByUniqueId, PullRequestBuckets, PullRequestWithUniqueID } from '../types/exportedTypes/types';
2
+ import type { ActionablePullRequest, CodeSuggestionsCountByPrUuid, EnrichedItemsByUniqueId, PullRequestBuckets, PullRequestWithUniqueID } from '../types/exportedTypes/types';
3
3
  export declare const PINNED_BUCKET_ID = "pinned";
4
4
  export declare const READY_TO_MERGE_BUCKET_ID = "readyToMerge";
5
5
  export declare const UNASSIGNED_REVIEWERS_BUCKET_ID = "unassignedReviewers";
@@ -24,7 +24,9 @@ export declare const DRAFT_ACTION_CATEGORY = "draft";
24
24
  export declare const OTHER_ACTION_CATEGORY = "other";
25
25
  export declare const getActionablePullRequests: (pullRequests: PullRequestWithUniqueID[], currentUser: Pick<Account, 'id'>, options?: {
26
26
  enrichedItemsByUniqueId?: EnrichedItemsByUniqueId;
27
+ codeSuggestionsCountByPrUuid?: CodeSuggestionsCountByPrUuid;
27
28
  }) => ActionablePullRequest[];
28
29
  export declare const groupPullRequestsIntoBuckets: (pullRequests: PullRequestWithUniqueID[], currentUser: Pick<Account, 'id'>, options?: {
29
30
  enrichedItemsByUniqueId?: EnrichedItemsByUniqueId;
31
+ codeSuggestionsCountByPrUuid?: CodeSuggestionsCountByPrUuid;
30
32
  }) => PullRequestBuckets;
@@ -92,6 +92,11 @@ export interface PullRequestBucket {
92
92
  export type EnrichedItemsByUniqueId = {
93
93
  [uuid: string]: EnrichedItem[];
94
94
  };
95
+ export type CodeSuggestionsCountByPrUuid = {
96
+ [uuid: string]: {
97
+ count: number;
98
+ };
99
+ };
95
100
  export type EnrichedItem = {
96
101
  id: string;
97
102
  userId?: string;
@@ -126,6 +131,7 @@ export type ActionablePullRequest = PullRequestWithUniqueID & {
126
131
  failingCI: boolean;
127
132
  hasConflicts: boolean;
128
133
  changeRequestReviewCount: number;
134
+ codeSuggestionsCount: number;
129
135
  commentReviewCount: number;
130
136
  approvalReviewCount: number;
131
137
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitkraken/provider-apis",
3
- "version": "0.22.2",
3
+ "version": "0.22.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",