@harnessio/react-sei-panorama-service-client 0.10.11 → 0.10.12

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,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { PrVelocityResponseDto } from '../schemas/PrVelocityResponseDto';
3
+ import type { ProductivityControllerRequest } from '../schemas/ProductivityControllerRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ProductivityControllerPrVelocityMutationQueryParams {
7
+ account: string;
8
+ }
9
+ export type ProductivityControllerPrVelocityRequestBody = ProductivityControllerRequest;
10
+ export type ProductivityControllerPrVelocityOkResponse = ResponseWithPagination<PrVelocityResponseDto>;
11
+ export type ProductivityControllerPrVelocityErrorResponse = string;
12
+ export interface ProductivityControllerPrVelocityProps extends Omit<FetcherOptions<ProductivityControllerPrVelocityMutationQueryParams, ProductivityControllerPrVelocityRequestBody>, 'url'> {
13
+ queryParams: ProductivityControllerPrVelocityMutationQueryParams;
14
+ body: ProductivityControllerPrVelocityRequestBody;
15
+ }
16
+ export declare function productivityControllerPrVelocity(props: ProductivityControllerPrVelocityProps): Promise<ProductivityControllerPrVelocityOkResponse>;
17
+ /**
18
+ * Get lead time for a project
19
+ */
20
+ export declare function useProductivityControllerPrVelocityMutation(options?: Omit<UseMutationOptions<ProductivityControllerPrVelocityOkResponse, ProductivityControllerPrVelocityErrorResponse, ProductivityControllerPrVelocityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ProductivityControllerPrVelocityOkResponse, string, ProductivityControllerPrVelocityProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function productivityControllerPrVelocity(props) {
7
+ return fetcher(Object.assign({ url: `/v2/productivity/volume/pr_velocity`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get lead time for a project
11
+ */
12
+ export function useProductivityControllerPrVelocityMutation(options) {
13
+ return useMutation((mutateProps) => productivityControllerPrVelocity(mutateProps), options);
14
+ }
@@ -43,6 +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, ProductivityControllerPrVelocityMutationQueryParams, ProductivityControllerPrVelocityOkResponse, ProductivityControllerPrVelocityProps, ProductivityControllerPrVelocityRequestBody, } from './hooks/useProductivityControllerPrVelocityMutation';
47
+ export { productivityControllerPrVelocity, useProductivityControllerPrVelocityMutation, } from './hooks/useProductivityControllerPrVelocityMutation';
46
48
  export type { Category } from './schemas/Category';
47
49
  export type { CollectionEnriched } from './schemas/CollectionEnriched';
48
50
  export type { CollectionFilter } from './schemas/CollectionFilter';
@@ -63,6 +65,8 @@ export type { DoraRequest } from './schemas/DoraRequest';
63
65
  export type { DoraSummaryMetric } from './schemas/DoraSummaryMetric';
64
66
  export type { DoraSummaryRequest } from './schemas/DoraSummaryRequest';
65
67
  export type { IntegrationObject } from './schemas/IntegrationObject';
68
+ export type { PrVelocityResponseDto } from './schemas/PrVelocityResponseDto';
69
+ export type { ProductivityControllerRequest } from './schemas/ProductivityControllerRequest';
66
70
  export type { Stage } from './schemas/Stage';
67
71
  export type { SummaryCard } from './schemas/SummaryCard';
68
72
  export type { SummaryValue } from './schemas/SummaryValue';
@@ -20,3 +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, useProductivityControllerPrVelocityMutation, } from './hooks/useProductivityControllerPrVelocityMutation';
@@ -1,32 +1,19 @@
1
- import type { Stage } from '../schemas/Stage';
2
1
  export interface DataPoint {
3
- /**
4
- * @format int32
5
- */
6
- count?: number;
7
2
  /**
8
3
  * @format date-time
9
4
  */
10
- endDate?: string;
11
- /**
12
- * @format double
13
- */
14
- mean?: number;
15
- /**
16
- * @format double
17
- */
18
- median?: number;
19
- /**
20
- * @format double
21
- */
22
- p90?: number;
5
+ endTime?: string;
6
+ granularDataPoints?: DataPoint[];
7
+ stackBy?: 'PR_SIZE' | 'WORK_TYPE';
8
+ stacks?: {
9
+ [key: string]: number;
10
+ };
23
11
  /**
24
- * @format double
12
+ * @format date-time
25
13
  */
26
- p95?: number;
27
- stages?: Stage[];
14
+ startTime?: string;
28
15
  /**
29
- * @format date-time
16
+ * @format int64
30
17
  */
31
- startDate?: string;
18
+ totalCount?: number;
32
19
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -0,0 +1,5 @@
1
+ import type { DataPoint } from '../schemas/DataPoint';
2
+ export interface PrVelocityResponseDto {
3
+ currentData?: DataPoint;
4
+ previousData?: DataPoint;
5
+ }
@@ -0,0 +1,17 @@
1
+ export interface ProductivityControllerRequest {
2
+ collectionRefIds?: string[];
3
+ collectionUUIDs?: string[];
4
+ contributorRefIds?: string[];
5
+ contributorUUIDs?: string[];
6
+ /**
7
+ * @format date-time
8
+ */
9
+ endDate?: string;
10
+ featureType?: 'CODING_DAYS' | 'PR_VELOCITY';
11
+ granularity?: 'MONTHLY' | 'QUARTERLY' | 'WEEKLY';
12
+ stackBy?: 'PR_SIZE' | 'WORK_TYPE';
13
+ /**
14
+ * @format date-time
15
+ */
16
+ startDate?: string;
17
+ }
@@ -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.10.11",
3
+ "version": "0.10.12",
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",