@harnessio/react-sei-panorama-service-client 0.31.12 → 0.31.14
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/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery.d.ts +59 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/index.d.ts +9 -0
- package/dist/sei-panorama-service/src/services/index.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/AiImpactExplainability.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/schemas/AiImpactExplainability.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiResponseWorkItemLinkedPrsResponse.d.ts +23 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiResponseWorkItemLinkedPrsResponse.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/FilterExpression.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/PrCostEntry.d.ts +11 -0
- package/dist/sei-panorama-service/src/services/schemas/PrCostEntry.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/PrRef.d.ts +7 -0
- package/dist/sei-panorama-service/src/services/schemas/PrRef.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SharedCommitEntry.d.ts +9 -0
- package/dist/sei-panorama-service/src/services/schemas/SharedCommitEntry.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/WorkItemLinkedPrDto.d.ts +40 -0
- package/dist/sei-panorama-service/src/services/schemas/WorkItemLinkedPrDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/WorkItemLinkedPrsResponse.d.ts +11 -0
- package/dist/sei-panorama-service/src/services/schemas/WorkItemLinkedPrsResponse.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiResponseWorkItemLinkedPrsResponse } from '../schemas/ApiResponseWorkItemLinkedPrsResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface AiEngineeringControllerGetWorkItemLinkedPrsQueryPathParams {
|
|
6
|
+
workItemId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AiEngineeringControllerGetWorkItemLinkedPrsQueryQueryParams {
|
|
9
|
+
account: string;
|
|
10
|
+
schema: string;
|
|
11
|
+
start_date: string;
|
|
12
|
+
end_date: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example "default"
|
|
15
|
+
*/
|
|
16
|
+
orgIdentifier?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @example "sei"
|
|
19
|
+
*/
|
|
20
|
+
projectIdentifier?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example "kmpySmUISimoRrJL6NL73w"
|
|
23
|
+
*/
|
|
24
|
+
routingId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @example "WEEKLY"
|
|
27
|
+
*/
|
|
28
|
+
granularity?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example "1"
|
|
31
|
+
*/
|
|
32
|
+
orgTreeId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @example "team-123"
|
|
35
|
+
*/
|
|
36
|
+
teamRefId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @example "claude-code"
|
|
39
|
+
*/
|
|
40
|
+
assistant?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example "java"
|
|
43
|
+
*/
|
|
44
|
+
language?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @example "senior_engineer"
|
|
47
|
+
*/
|
|
48
|
+
role?: string;
|
|
49
|
+
}
|
|
50
|
+
export type AiEngineeringControllerGetWorkItemLinkedPrsOkResponse = ResponseWithPagination<ApiResponseWorkItemLinkedPrsResponse>;
|
|
51
|
+
export type AiEngineeringControllerGetWorkItemLinkedPrsErrorResponse = unknown;
|
|
52
|
+
export interface AiEngineeringControllerGetWorkItemLinkedPrsProps extends AiEngineeringControllerGetWorkItemLinkedPrsQueryPathParams, Omit<FetcherOptions<AiEngineeringControllerGetWorkItemLinkedPrsQueryQueryParams, unknown>, 'url'> {
|
|
53
|
+
queryParams: AiEngineeringControllerGetWorkItemLinkedPrsQueryQueryParams;
|
|
54
|
+
}
|
|
55
|
+
export declare function aiEngineeringControllerGetWorkItemLinkedPrs(props: AiEngineeringControllerGetWorkItemLinkedPrsProps): Promise<AiEngineeringControllerGetWorkItemLinkedPrsOkResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Get PRs linked to a work item with cost attribution and explainability
|
|
58
|
+
*/
|
|
59
|
+
export declare function useAiEngineeringControllerGetWorkItemLinkedPrsQuery(props: AiEngineeringControllerGetWorkItemLinkedPrsProps, options?: Omit<UseQueryOptions<AiEngineeringControllerGetWorkItemLinkedPrsOkResponse, AiEngineeringControllerGetWorkItemLinkedPrsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerGetWorkItemLinkedPrsOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function aiEngineeringControllerGetWorkItemLinkedPrs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/impact/work-items/${props.workItemId}/pull-requests`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get PRs linked to a work item with cost attribution and explainability
|
|
11
|
+
*/
|
|
12
|
+
export function useAiEngineeringControllerGetWorkItemLinkedPrsQuery(props, options) {
|
|
13
|
+
return useQuery(['AiEngineeringControllerGetWorkItemLinkedPrs', props.workItemId, props.queryParams], ({ signal }) => aiEngineeringControllerGetWorkItemLinkedPrs(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -7,7 +7,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export type DeveloperControllerUpsertDeveloperIdentitiesRequestBody = DeveloperIdentity[];
|
|
9
9
|
export type DeveloperControllerUpsertDeveloperIdentitiesOkResponse = ResponseWithPagination<DeveloperIdentityUpsertResponse>;
|
|
10
|
-
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse =
|
|
10
|
+
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
|
|
11
11
|
export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
|
|
12
12
|
body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
|
|
13
13
|
}
|
|
@@ -47,6 +47,8 @@ export type { AiEngineeringControllerGetScorecardsErrorResponse, AiEngineeringCo
|
|
|
47
47
|
export { aiEngineeringControllerGetScorecards, useAiEngineeringControllerGetScorecardsQuery, } from './hooks/useAiEngineeringControllerGetScorecardsQuery';
|
|
48
48
|
export type { AiEngineeringControllerGetToolCallCategoriesCatalogErrorResponse, AiEngineeringControllerGetToolCallCategoriesCatalogOkResponse, AiEngineeringControllerGetToolCallCategoriesCatalogProps, AiEngineeringControllerGetToolCallCategoriesCatalogQueryQueryParams, } from './hooks/useAiEngineeringControllerGetToolCallCategoriesCatalogQuery';
|
|
49
49
|
export { aiEngineeringControllerGetToolCallCategoriesCatalog, useAiEngineeringControllerGetToolCallCategoriesCatalogQuery, } from './hooks/useAiEngineeringControllerGetToolCallCategoriesCatalogQuery';
|
|
50
|
+
export type { AiEngineeringControllerGetWorkItemLinkedPrsErrorResponse, AiEngineeringControllerGetWorkItemLinkedPrsOkResponse, AiEngineeringControllerGetWorkItemLinkedPrsProps, AiEngineeringControllerGetWorkItemLinkedPrsQueryPathParams, AiEngineeringControllerGetWorkItemLinkedPrsQueryQueryParams, } from './hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery';
|
|
51
|
+
export { aiEngineeringControllerGetWorkItemLinkedPrs, useAiEngineeringControllerGetWorkItemLinkedPrsQuery, } from './hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery';
|
|
50
52
|
export type { AiEngineeringControllerGetWorkTypesCatalogErrorResponse, AiEngineeringControllerGetWorkTypesCatalogOkResponse, AiEngineeringControllerGetWorkTypesCatalogProps, AiEngineeringControllerGetWorkTypesCatalogQueryQueryParams, } from './hooks/useAiEngineeringControllerGetWorkTypesCatalogQuery';
|
|
51
53
|
export { aiEngineeringControllerGetWorkTypesCatalog, useAiEngineeringControllerGetWorkTypesCatalogQuery, } from './hooks/useAiEngineeringControllerGetWorkTypesCatalogQuery';
|
|
52
54
|
export type { AiEngineeringControllerListDevelopersErrorResponse, AiEngineeringControllerListDevelopersOkResponse, AiEngineeringControllerListDevelopersProps, AiEngineeringControllerListDevelopersQueryQueryParams, } from './hooks/useAiEngineeringControllerListDevelopersQuery';
|
|
@@ -693,6 +695,7 @@ export type { AiEngineeringImpactBreakdownData } from './schemas/AiEngineeringIm
|
|
|
693
695
|
export type { AiEngineeringImpactBreakdownItem } from './schemas/AiEngineeringImpactBreakdownItem';
|
|
694
696
|
export type { AiEngineeringImpactDrilldownResponseObject } from './schemas/AiEngineeringImpactDrilldownResponseObject';
|
|
695
697
|
export type { AiEngineeringImpactSummaryData } from './schemas/AiEngineeringImpactSummaryData';
|
|
698
|
+
export type { AiImpactExplainability } from './schemas/AiImpactExplainability';
|
|
696
699
|
export type { AiMetrics } from './schemas/AiMetrics';
|
|
697
700
|
export type { AiRawMetricsRequestDto } from './schemas/AiRawMetricsRequestDto';
|
|
698
701
|
export type { AiRawMetricsResponseDto } from './schemas/AiRawMetricsResponseDto';
|
|
@@ -728,6 +731,7 @@ export type { ApiResponseOptimizationItem } from './schemas/ApiResponseOptimizat
|
|
|
728
731
|
export type { ApiResponseOptimizationListData } from './schemas/ApiResponseOptimizationListData';
|
|
729
732
|
export type { ApiResponseScorecardData } from './schemas/ApiResponseScorecardData';
|
|
730
733
|
export type { ApiResponseTimeSeriesTemplate } from './schemas/ApiResponseTimeSeriesTemplate';
|
|
734
|
+
export type { ApiResponseWorkItemLinkedPrsResponse } from './schemas/ApiResponseWorkItemLinkedPrsResponse';
|
|
731
735
|
export type { ApiResponseWrapper } from './schemas/ApiResponseWrapper';
|
|
732
736
|
export type { ArmorCodeFindingStatsRequest } from './schemas/ArmorCodeFindingStatsRequest';
|
|
733
737
|
export type { ArmorCodeFindingStatsResponse } from './schemas/ArmorCodeFindingStatsResponse';
|
|
@@ -1028,9 +1032,11 @@ export type { PaginationRequest } from './schemas/PaginationRequest';
|
|
|
1028
1032
|
export type { PrCommitsRequest } from './schemas/PrCommitsRequest';
|
|
1029
1033
|
export type { PrCommitsResponse } from './schemas/PrCommitsResponse';
|
|
1030
1034
|
export type { PrCommitsResponseWrapper } from './schemas/PrCommitsResponseWrapper';
|
|
1035
|
+
export type { PrCostEntry } from './schemas/PrCostEntry';
|
|
1031
1036
|
export type { PrCycleTimeDrilldownResponseDataPoint } from './schemas/PrCycleTimeDrilldownResponseDataPoint';
|
|
1032
1037
|
export type { PrCycleTimeDrilldownResponseDataPointV3 } from './schemas/PrCycleTimeDrilldownResponseDataPointV3';
|
|
1033
1038
|
export type { PrInfo } from './schemas/PrInfo';
|
|
1039
|
+
export type { PrRef } from './schemas/PrRef';
|
|
1034
1040
|
export type { PrRequest } from './schemas/PrRequest';
|
|
1035
1041
|
export type { PrSize } from './schemas/PrSize';
|
|
1036
1042
|
export type { PrVelocityDrilldownResponseDataPoint } from './schemas/PrVelocityDrilldownResponseDataPoint';
|
|
@@ -1091,6 +1097,7 @@ export type { SegmentSummary } from './schemas/SegmentSummary';
|
|
|
1091
1097
|
export type { SeverityCounts } from './schemas/SeverityCounts';
|
|
1092
1098
|
export type { SeverityData } from './schemas/SeverityData';
|
|
1093
1099
|
export type { SeveritySummaryData } from './schemas/SeveritySummaryData';
|
|
1100
|
+
export type { SharedCommitEntry } from './schemas/SharedCommitEntry';
|
|
1094
1101
|
export type { SimpleFilter } from './schemas/SimpleFilter';
|
|
1095
1102
|
export type { SimpleFilterExpression } from './schemas/SimpleFilterExpression';
|
|
1096
1103
|
export type { SimpleMetric } from './schemas/SimpleMetric';
|
|
@@ -1194,4 +1201,6 @@ export type { WorkCompletedDrilldownResponseDataPoint } from './schemas/WorkComp
|
|
|
1194
1201
|
export type { WorkCompletedDrilldownResponseDataPointV3 } from './schemas/WorkCompletedDrilldownResponseDataPointV3';
|
|
1195
1202
|
export type { WorkCompletedIndividualDrilldownResponseDataPoint } from './schemas/WorkCompletedIndividualDrilldownResponseDataPoint';
|
|
1196
1203
|
export type { WorkCompletedIndividualDrilldownResponseDataPointV3 } from './schemas/WorkCompletedIndividualDrilldownResponseDataPointV3';
|
|
1204
|
+
export type { WorkItemLinkedPrDto } from './schemas/WorkItemLinkedPrDto';
|
|
1205
|
+
export type { WorkItemLinkedPrsResponse } from './schemas/WorkItemLinkedPrsResponse';
|
|
1197
1206
|
export type { WorkType } from './schemas/WorkType';
|
|
@@ -22,6 +22,7 @@ export { aiEngineeringControllerGetProductivitySummary, useAiEngineeringControll
|
|
|
22
22
|
export { aiEngineeringControllerGetRolesCatalog, useAiEngineeringControllerGetRolesCatalogQuery, } from './hooks/useAiEngineeringControllerGetRolesCatalogQuery';
|
|
23
23
|
export { aiEngineeringControllerGetScorecards, useAiEngineeringControllerGetScorecardsQuery, } from './hooks/useAiEngineeringControllerGetScorecardsQuery';
|
|
24
24
|
export { aiEngineeringControllerGetToolCallCategoriesCatalog, useAiEngineeringControllerGetToolCallCategoriesCatalogQuery, } from './hooks/useAiEngineeringControllerGetToolCallCategoriesCatalogQuery';
|
|
25
|
+
export { aiEngineeringControllerGetWorkItemLinkedPrs, useAiEngineeringControllerGetWorkItemLinkedPrsQuery, } from './hooks/useAiEngineeringControllerGetWorkItemLinkedPrsQuery';
|
|
25
26
|
export { aiEngineeringControllerGetWorkTypesCatalog, useAiEngineeringControllerGetWorkTypesCatalogQuery, } from './hooks/useAiEngineeringControllerGetWorkTypesCatalogQuery';
|
|
26
27
|
export { aiEngineeringControllerListDevelopers, useAiEngineeringControllerListDevelopersQuery, } from './hooks/useAiEngineeringControllerListDevelopersQuery';
|
|
27
28
|
export { aiEngineeringControllerListOptimizations, useAiEngineeringControllerListOptimizationsQuery, } from './hooks/useAiEngineeringControllerListOptimizationsQuery';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PrCostEntry } from '../schemas/PrCostEntry';
|
|
2
|
+
import type { SharedCommitEntry } from '../schemas/SharedCommitEntry';
|
|
3
|
+
export interface AiImpactExplainability {
|
|
4
|
+
/**
|
|
5
|
+
* @format double
|
|
6
|
+
*/
|
|
7
|
+
contextCostDollars?: number;
|
|
8
|
+
explainabilityType?: string;
|
|
9
|
+
hasSharedCommits?: boolean;
|
|
10
|
+
prCosts?: PrCostEntry[];
|
|
11
|
+
sharedCommits?: SharedCommitEntry[];
|
|
12
|
+
/**
|
|
13
|
+
* @format double
|
|
14
|
+
*/
|
|
15
|
+
sharedDeductionDollars?: number;
|
|
16
|
+
summary?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/sei-panorama-service/src/services/schemas/ApiResponseWorkItemLinkedPrsResponse.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { WorkItemLinkedPrsResponse } from '../schemas/WorkItemLinkedPrsResponse';
|
|
2
|
+
export interface ApiResponseWorkItemLinkedPrsResponse {
|
|
3
|
+
/**
|
|
4
|
+
* Endpoint-specific payload (template DTOs, lists, aggregates, etc.)
|
|
5
|
+
*/
|
|
6
|
+
data?: WorkItemLinkedPrsResponse;
|
|
7
|
+
/**
|
|
8
|
+
* HATEOAS links for resource navigation (self, next, prev, etc.)
|
|
9
|
+
*/
|
|
10
|
+
links?: {
|
|
11
|
+
[key: string]: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Operation metadata: date ranges, filters, granularity, pagination info, etc.
|
|
17
|
+
*/
|
|
18
|
+
meta?: {
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
package/dist/sei-panorama-service/src/services/schemas/ApiResponseWorkItemLinkedPrsResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface WorkItemLinkedPrDto {
|
|
2
|
+
/**
|
|
3
|
+
* @format int32
|
|
4
|
+
*/
|
|
5
|
+
codeAdditions?: number;
|
|
6
|
+
/**
|
|
7
|
+
* @format int32
|
|
8
|
+
*/
|
|
9
|
+
codeDeletions?: number;
|
|
10
|
+
/**
|
|
11
|
+
* @format double
|
|
12
|
+
*/
|
|
13
|
+
fractionalCostDollars?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
fractionalTokens?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @format int32
|
|
20
|
+
*/
|
|
21
|
+
linkedIssueCount?: number;
|
|
22
|
+
prNumber?: string;
|
|
23
|
+
prUrl?: string;
|
|
24
|
+
repoId?: string;
|
|
25
|
+
targetBranch?: string;
|
|
26
|
+
title?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @format int32
|
|
29
|
+
*/
|
|
30
|
+
totalChanges?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @format double
|
|
33
|
+
*/
|
|
34
|
+
totalCostDollars?: number;
|
|
35
|
+
/**
|
|
36
|
+
* @format int64
|
|
37
|
+
*/
|
|
38
|
+
totalTokens?: number;
|
|
39
|
+
workItems?: string[];
|
|
40
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AiImpactExplainability } from '../schemas/AiImpactExplainability';
|
|
2
|
+
import type { WorkItemLinkedPrDto } from '../schemas/WorkItemLinkedPrDto';
|
|
3
|
+
export interface WorkItemLinkedPrsResponse {
|
|
4
|
+
explainability?: AiImpactExplainability;
|
|
5
|
+
pullRequests?: WorkItemLinkedPrDto[];
|
|
6
|
+
/**
|
|
7
|
+
* @format double
|
|
8
|
+
*/
|
|
9
|
+
workItemCostDollars?: number;
|
|
10
|
+
workItemId?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.14",
|
|
4
4
|
"description": "Harness React sei panorama service client - SEI Panorama APIs integrated with react hooks for Panorama project",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|