@harnessio/react-sei-panorama-service-client 0.10.13 → 0.10.15
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/{useProductivityControllerPrVelocityMutation.d.ts → useProductivityControllerPrVelocityQuery.d.ts} +5 -5
- package/dist/sei-panorama-service/src/services/hooks/{useProductivityControllerPrVelocityMutation.js → useProductivityControllerPrVelocityQuery.js} +3 -3
- package/dist/sei-panorama-service/src/services/index.d.ts +3 -2
- package/dist/sei-panorama-service/src/services/index.js +1 -1
- package/dist/sei-panorama-service/src/services/schemas/DataPoint.d.ts +23 -10
- package/dist/sei-panorama-service/src/services/schemas/DataPoint.js +0 -3
- package/dist/sei-panorama-service/src/services/schemas/PrVelocityResponseDto.d.ts +3 -3
- package/dist/sei-panorama-service/src/services/schemas/ProductivityDataPoint.d.ts +19 -0
- package/dist/sei-panorama-service/src/services/schemas/ProductivityDataPoint.js +4 -0
- package/package.json +1 -1
@@ -1,20 +1,20 @@
|
|
1
|
-
import {
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
2
2
|
import type { PrVelocityResponseDto } from '../schemas/PrVelocityResponseDto';
|
3
3
|
import type { ProductivityControllerRequest } from '../schemas/ProductivityControllerRequest';
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
|
-
export interface
|
6
|
+
export interface ProductivityControllerPrVelocityQueryQueryParams {
|
7
7
|
account: string;
|
8
8
|
}
|
9
9
|
export type ProductivityControllerPrVelocityRequestBody = ProductivityControllerRequest;
|
10
10
|
export type ProductivityControllerPrVelocityOkResponse = ResponseWithPagination<PrVelocityResponseDto>;
|
11
11
|
export type ProductivityControllerPrVelocityErrorResponse = string;
|
12
|
-
export interface ProductivityControllerPrVelocityProps extends Omit<FetcherOptions<
|
13
|
-
queryParams:
|
12
|
+
export interface ProductivityControllerPrVelocityProps extends Omit<FetcherOptions<ProductivityControllerPrVelocityQueryQueryParams, ProductivityControllerPrVelocityRequestBody>, 'url'> {
|
13
|
+
queryParams: ProductivityControllerPrVelocityQueryQueryParams;
|
14
14
|
body: ProductivityControllerPrVelocityRequestBody;
|
15
15
|
}
|
16
16
|
export declare function productivityControllerPrVelocity(props: ProductivityControllerPrVelocityProps): Promise<ProductivityControllerPrVelocityOkResponse>;
|
17
17
|
/**
|
18
18
|
* Get PR Velocity for a collection
|
19
19
|
*/
|
20
|
-
export declare function
|
20
|
+
export declare function useProductivityControllerPrVelocityQuery(props: ProductivityControllerPrVelocityProps, options?: Omit<UseQueryOptions<ProductivityControllerPrVelocityOkResponse, ProductivityControllerPrVelocityErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ProductivityControllerPrVelocityOkResponse, string>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/* eslint-disable */
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
3
3
|
// Please do not modify this code directly.
|
4
|
-
import {
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
6
6
|
export function productivityControllerPrVelocity(props) {
|
7
7
|
return fetcher(Object.assign({ url: `/v2/productivity/volume/pr_velocity`, method: 'POST' }, props));
|
@@ -9,6 +9,6 @@ export function productivityControllerPrVelocity(props) {
|
|
9
9
|
/**
|
10
10
|
* Get PR Velocity for a collection
|
11
11
|
*/
|
12
|
-
export function
|
13
|
-
return
|
12
|
+
export function useProductivityControllerPrVelocityQuery(props, options) {
|
13
|
+
return useQuery(['ProductivityControllerPrVelocity', props.queryParams, props.body], ({ signal }) => productivityControllerPrVelocity(Object.assign(Object.assign({}, props), { signal })), options);
|
14
14
|
}
|
@@ -43,8 +43,8 @@ export type { JiraIssuesControllerGetJiraIssueCountErrorResponse, JiraIssuesCont
|
|
43
43
|
export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
|
44
44
|
export type { LegacyHealthControllerCheckErrorResponse, LegacyHealthControllerCheckOkResponse, LegacyHealthControllerCheckProps, } from './hooks/useLegacyHealthControllerCheckQuery';
|
45
45
|
export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
|
46
|
-
export type { ProductivityControllerPrVelocityErrorResponse,
|
47
|
-
export { productivityControllerPrVelocity,
|
46
|
+
export type { ProductivityControllerPrVelocityErrorResponse, ProductivityControllerPrVelocityOkResponse, ProductivityControllerPrVelocityProps, ProductivityControllerPrVelocityQueryQueryParams, ProductivityControllerPrVelocityRequestBody, } from './hooks/useProductivityControllerPrVelocityQuery';
|
47
|
+
export { productivityControllerPrVelocity, useProductivityControllerPrVelocityQuery, } from './hooks/useProductivityControllerPrVelocityQuery';
|
48
48
|
export type { Category } from './schemas/Category';
|
49
49
|
export type { CollectionEnriched } from './schemas/CollectionEnriched';
|
50
50
|
export type { CollectionFilter } from './schemas/CollectionFilter';
|
@@ -67,6 +67,7 @@ export type { DoraSummaryRequest } from './schemas/DoraSummaryRequest';
|
|
67
67
|
export type { IntegrationObject } from './schemas/IntegrationObject';
|
68
68
|
export type { PrVelocityResponseDto } from './schemas/PrVelocityResponseDto';
|
69
69
|
export type { ProductivityControllerRequest } from './schemas/ProductivityControllerRequest';
|
70
|
+
export type { ProductivityDataPoint } from './schemas/ProductivityDataPoint';
|
70
71
|
export type { Stage } from './schemas/Stage';
|
71
72
|
export type { SummaryCard } from './schemas/SummaryCard';
|
72
73
|
export type { SummaryValue } from './schemas/SummaryValue';
|
@@ -20,4 +20,4 @@ export { doraControllerMttrBreakdown, useDoraControllerMttrBreakdownQuery, } fro
|
|
20
20
|
export { doraControllerSummary, useDoraControllerSummaryQuery, } from './hooks/useDoraControllerSummaryQuery';
|
21
21
|
export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
|
22
22
|
export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
|
23
|
-
export { productivityControllerPrVelocity,
|
23
|
+
export { productivityControllerPrVelocity, useProductivityControllerPrVelocityQuery, } from './hooks/useProductivityControllerPrVelocityQuery';
|
@@ -1,19 +1,32 @@
|
|
1
|
+
import type { Stage } from '../schemas/Stage';
|
1
2
|
export interface DataPoint {
|
2
3
|
/**
|
3
|
-
* @format
|
4
|
+
* @format int32
|
4
5
|
*/
|
5
|
-
|
6
|
-
granularDataPoints?: DataPoint[];
|
7
|
-
stackBy?: 'PR_SIZE' | 'WORK_TYPE';
|
8
|
-
stacks?: {
|
9
|
-
[key: string]: number;
|
10
|
-
};
|
6
|
+
count?: number;
|
11
7
|
/**
|
12
8
|
* @format date-time
|
13
9
|
*/
|
14
|
-
|
10
|
+
endDate?: string;
|
11
|
+
/**
|
12
|
+
* @format double
|
13
|
+
*/
|
14
|
+
mean?: number;
|
15
|
+
/**
|
16
|
+
* @format double
|
17
|
+
*/
|
18
|
+
median?: number;
|
15
19
|
/**
|
16
|
-
* @format
|
20
|
+
* @format double
|
21
|
+
*/
|
22
|
+
p90?: number;
|
23
|
+
/**
|
24
|
+
* @format double
|
25
|
+
*/
|
26
|
+
p95?: number;
|
27
|
+
stages?: Stage[];
|
28
|
+
/**
|
29
|
+
* @format date-time
|
17
30
|
*/
|
18
|
-
|
31
|
+
startDate?: string;
|
19
32
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ProductivityDataPoint } from '../schemas/ProductivityDataPoint';
|
2
2
|
export interface PrVelocityResponseDto {
|
3
|
-
currentData?:
|
4
|
-
previousData?:
|
3
|
+
currentData?: ProductivityDataPoint;
|
4
|
+
previousData?: ProductivityDataPoint;
|
5
5
|
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export interface ProductivityDataPoint {
|
2
|
+
/**
|
3
|
+
* @format date-time
|
4
|
+
*/
|
5
|
+
endTime?: string;
|
6
|
+
granularDataPoints?: ProductivityDataPoint[];
|
7
|
+
stackBy?: 'PR_SIZE' | 'WORK_TYPE';
|
8
|
+
stacks?: {
|
9
|
+
[key: string]: number;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* @format date-time
|
13
|
+
*/
|
14
|
+
startTime?: string;
|
15
|
+
/**
|
16
|
+
* @format int64
|
17
|
+
*/
|
18
|
+
totalCount?: number;
|
19
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
3
|
-
"version": "0.10.
|
3
|
+
"version": "0.10.15",
|
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",
|