@harnessio/react-sei-panorama-service-client 0.31.12 → 0.31.13

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.
@@ -0,0 +1,59 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiResponseListWorkItemLinkedPrDto } from '../schemas/ApiResponseListWorkItemLinkedPrDto';
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<ApiResponseListWorkItemLinkedPrDto>;
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 fractional cost attribution
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 fractional cost attribution
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 = (DeveloperIdentityUpsertFailureResponse & ErrorResponse) | ErrorResponse;
10
+ export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = (DeveloperIdentityUpsertFailureResponse | ErrorResponse) | 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';
@@ -722,6 +724,7 @@ export type { ApiResponseCorrelationData } from './schemas/ApiResponseCorrelatio
722
724
  export type { ApiResponseEntityListData } from './schemas/ApiResponseEntityListData';
723
725
  export type { ApiResponseEntityListTemplate } from './schemas/ApiResponseEntityListTemplate';
724
726
  export type { ApiResponseLeaderboardSegmentsSummaryData } from './schemas/ApiResponseLeaderboardSegmentsSummaryData';
727
+ export type { ApiResponseListWorkItemLinkedPrDto } from './schemas/ApiResponseListWorkItemLinkedPrDto';
725
728
  export type { ApiResponseMetricAggregateTemplate } from './schemas/ApiResponseMetricAggregateTemplate';
726
729
  export type { ApiResponseMetricBreakdownData } from './schemas/ApiResponseMetricBreakdownData';
727
730
  export type { ApiResponseOptimizationItem } from './schemas/ApiResponseOptimizationItem';
@@ -1194,4 +1197,5 @@ export type { WorkCompletedDrilldownResponseDataPoint } from './schemas/WorkComp
1194
1197
  export type { WorkCompletedDrilldownResponseDataPointV3 } from './schemas/WorkCompletedDrilldownResponseDataPointV3';
1195
1198
  export type { WorkCompletedIndividualDrilldownResponseDataPoint } from './schemas/WorkCompletedIndividualDrilldownResponseDataPoint';
1196
1199
  export type { WorkCompletedIndividualDrilldownResponseDataPointV3 } from './schemas/WorkCompletedIndividualDrilldownResponseDataPointV3';
1200
+ export type { WorkItemLinkedPrDto } from './schemas/WorkItemLinkedPrDto';
1197
1201
  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,23 @@
1
+ import type { WorkItemLinkedPrDto } from '../schemas/WorkItemLinkedPrDto';
2
+ export interface ApiResponseListWorkItemLinkedPrDto {
3
+ /**
4
+ * Endpoint-specific payload (template DTOs, lists, aggregates, etc.)
5
+ */
6
+ data?: WorkItemLinkedPrDto[];
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
+ }
@@ -2,6 +2,6 @@ import type { PrCycleTimeDrilldownResponseDataPoint } from '../schemas/PrCycleTi
2
2
  import type { PrVelocityDrilldownResponseDataPoint } from '../schemas/PrVelocityDrilldownResponseDataPoint';
3
3
  import type { WorkCompletedDrilldownResponseDataPoint } from '../schemas/WorkCompletedDrilldownResponseDataPoint';
4
4
  export interface DrilldownData {
5
- drilldownDataPoints?: Array<PrCycleTimeDrilldownResponseDataPoint & PrVelocityDrilldownResponseDataPoint & WorkCompletedDrilldownResponseDataPoint>;
5
+ drilldownDataPoints?: Array<PrCycleTimeDrilldownResponseDataPoint | PrVelocityDrilldownResponseDataPoint | WorkCompletedDrilldownResponseDataPoint>;
6
6
  metricType?: 'CODE_REWORK' | 'CODING_DAYS' | 'PR_CYCLE_TIME' | 'PR_VELOCITY' | 'WORK_COMPLETED';
7
7
  }
@@ -4,6 +4,6 @@ import type { PrCycleTimeDrilldownResponseDataPointV3 } from '../schemas/PrCycle
4
4
  import type { PrVelocityDrilldownResponseDataPointV3 } from '../schemas/PrVelocityDrilldownResponseDataPointV3';
5
5
  import type { WorkCompletedDrilldownResponseDataPointV3 } from '../schemas/WorkCompletedDrilldownResponseDataPointV3';
6
6
  export interface DrilldownDataV3 {
7
- drilldownDataPoints?: Array<CodeReworkDevelopersDrilldownResponseDataPointV3 & CodingDaysDrilldownResponseDataPointV3 & PrCycleTimeDrilldownResponseDataPointV3 & PrVelocityDrilldownResponseDataPointV3 & WorkCompletedDrilldownResponseDataPointV3>;
7
+ drilldownDataPoints?: Array<CodeReworkDevelopersDrilldownResponseDataPointV3 | CodingDaysDrilldownResponseDataPointV3 | PrCycleTimeDrilldownResponseDataPointV3 | PrVelocityDrilldownResponseDataPointV3 | WorkCompletedDrilldownResponseDataPointV3>;
8
8
  metricType?: 'CODE_REWORK' | 'CODING_DAYS' | 'PR_CYCLE_TIME' | 'PR_VELOCITY' | 'WORK_COMPLETED';
9
9
  }
@@ -8,12 +8,12 @@ export interface EntityDto {
8
8
  applicableInsights?: Array<'AI_INSIGHTS' | 'BA' | 'DORA' | 'PRODUCTIVITY' | 'SECURITY' | 'SPRINT_INSIGHTS'>;
9
9
  applicableMetrics?: Array<'AI_INSIGHTS' | 'AVG_TIME_TO_FIRST_COMMENT' | 'BA' | 'CFR' | 'CODE_REWORK' | 'CODING_DAYS' | 'DF' | 'LINES_OF_CODE' | 'LTTC' | 'MTTR' | 'NUMBER_OF_COMMENTS_PER_PR' | 'PR_CYCLE_TIME' | 'PR_VELOCITY' | 'SPRINT_INSIGHTS' | 'TOTAL_OPEN_VULNERABILITIES' | 'WORK_COMPLETED'>;
10
10
  baCategoryColor?: string;
11
- config?: ActiveWorkStatusConfig & BugPriorityConfig & CompletedWorkStatusConfig & NewFeaturesConfig;
11
+ config?: ActiveWorkStatusConfig | BugPriorityConfig | CompletedWorkStatusConfig | NewFeaturesConfig;
12
12
  entityKey?: string;
13
13
  entityName?: string;
14
14
  entityType?: 'cd_production_failure' | 'cd_services_pipelines' | 'cd_successful_deployment' | 'im_active_work_status' | 'im_ba_category' | 'im_bug_start_trigger_status' | 'im_bugs' | 'im_completed_work_status' | 'im_default_start_trigger_status' | 'im_feature_start_trigger_status' | 'im_general' | 'im_incident_detection' | 'im_new_features' | 'itsm_change_requests' | 'itsm_incident_detection' | 'scm_code_driven_deployments' | 'scm_code_driven_hot_fixes' | 'scm_destination_branch' | 'scm_repositories' | 'security_aspm';
15
15
  integrationFilters?: {
16
- [key: string]: CompositeFilterExpression & SimpleFilterExpression;
16
+ [key: string]: CompositeFilterExpression | SimpleFilterExpression;
17
17
  };
18
18
  integrationType?: 'AI' | 'CD' | 'CI' | 'CUSTOM_INGESTION' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY' | 'TEST_MANAGEMENT';
19
19
  useDefaults?: boolean;
@@ -5,11 +5,11 @@ import type { NewFeaturesConfig } from '../schemas/NewFeaturesConfig';
5
5
  import type { CompositeFilterExpression } from '../schemas/CompositeFilterExpression';
6
6
  import type { SimpleFilterExpression } from '../schemas/SimpleFilterExpression';
7
7
  export interface EntityRequestDto {
8
- config?: ActiveWorkStatusConfig & BugPriorityConfig & CompletedWorkStatusConfig & NewFeaturesConfig;
8
+ config?: ActiveWorkStatusConfig | BugPriorityConfig | CompletedWorkStatusConfig | NewFeaturesConfig;
9
9
  entityKey?: string;
10
10
  entityType?: 'cd_production_failure' | 'cd_services_pipelines' | 'cd_successful_deployment' | 'im_active_work_status' | 'im_ba_category' | 'im_bug_start_trigger_status' | 'im_bugs' | 'im_completed_work_status' | 'im_default_start_trigger_status' | 'im_feature_start_trigger_status' | 'im_general' | 'im_incident_detection' | 'im_new_features' | 'itsm_change_requests' | 'itsm_incident_detection' | 'scm_code_driven_deployments' | 'scm_code_driven_hot_fixes' | 'scm_destination_branch' | 'scm_repositories' | 'security_aspm';
11
11
  integrationFilters?: {
12
- [key: string]: CompositeFilterExpression & SimpleFilterExpression;
12
+ [key: string]: CompositeFilterExpression | SimpleFilterExpression;
13
13
  };
14
14
  useDefaults?: boolean;
15
15
  }
@@ -1,4 +1,4 @@
1
1
  export interface FilterExpression {
2
- type: string;
2
+ type?: string;
3
3
  useDefaults?: boolean;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import type { PrVelocityIndividualDrilldownResponseDataPoint } from '../schemas/PrVelocityIndividualDrilldownResponseDataPoint';
2
2
  import type { WorkCompletedIndividualDrilldownResponseDataPoint } from '../schemas/WorkCompletedIndividualDrilldownResponseDataPoint';
3
3
  export interface IndividualDrilldownData {
4
- individualDrilldownDataPoints?: Array<PrVelocityIndividualDrilldownResponseDataPoint & WorkCompletedIndividualDrilldownResponseDataPoint>;
4
+ individualDrilldownDataPoints?: Array<PrVelocityIndividualDrilldownResponseDataPoint | WorkCompletedIndividualDrilldownResponseDataPoint>;
5
5
  metricType?: 'CODE_REWORK' | 'CODING_DAYS' | 'PR_CYCLE_TIME' | 'PR_VELOCITY' | 'WORK_COMPLETED';
6
6
  }
@@ -2,6 +2,6 @@ import type { CodingDaysIndividualDrilldownResponseDataPointV3 } from '../schema
2
2
  import type { PrVelocityIndividualDrilldownResponseDataPointV3 } from '../schemas/PrVelocityIndividualDrilldownResponseDataPointV3';
3
3
  import type { WorkCompletedIndividualDrilldownResponseDataPointV3 } from '../schemas/WorkCompletedIndividualDrilldownResponseDataPointV3';
4
4
  export interface IndividualDrilldownDataV3 {
5
- individualDrilldownDataPoints?: Array<CodingDaysIndividualDrilldownResponseDataPointV3 & PrVelocityIndividualDrilldownResponseDataPointV3 & WorkCompletedIndividualDrilldownResponseDataPointV3>;
5
+ individualDrilldownDataPoints?: Array<CodingDaysIndividualDrilldownResponseDataPointV3 | PrVelocityIndividualDrilldownResponseDataPointV3 | WorkCompletedIndividualDrilldownResponseDataPointV3>;
6
6
  metricType?: 'CODE_REWORK' | 'CODING_DAYS' | 'PR_CYCLE_TIME' | 'PR_VELOCITY' | 'WORK_COMPLETED';
7
7
  }
@@ -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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.31.12",
3
+ "version": "0.31.13",
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",