@harnessio/react-sei-panorama-service-client 0.10.14 → 0.10.16

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 { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ProductivityResponseDto } from '../schemas/ProductivityResponseDto';
3
+ import type { ProductivityControllerRequest } from '../schemas/ProductivityControllerRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ProductivityControllerGetFeatureMetricsQueryQueryParams {
7
+ account: string;
8
+ }
9
+ export type ProductivityControllerGetFeatureMetricsRequestBody = ProductivityControllerRequest;
10
+ export type ProductivityControllerGetFeatureMetricsOkResponse = ResponseWithPagination<ProductivityResponseDto>;
11
+ export type ProductivityControllerGetFeatureMetricsErrorResponse = string;
12
+ export interface ProductivityControllerGetFeatureMetricsProps extends Omit<FetcherOptions<ProductivityControllerGetFeatureMetricsQueryQueryParams, ProductivityControllerGetFeatureMetricsRequestBody>, 'url'> {
13
+ queryParams: ProductivityControllerGetFeatureMetricsQueryQueryParams;
14
+ body: ProductivityControllerGetFeatureMetricsRequestBody;
15
+ }
16
+ export declare function productivityControllerGetFeatureMetrics(props: ProductivityControllerGetFeatureMetricsProps): Promise<ProductivityControllerGetFeatureMetricsOkResponse>;
17
+ /**
18
+ * Get productivity metrics (PR velocity, number of bugs, number of stories) for a collection
19
+ */
20
+ export declare function useProductivityControllerGetFeatureMetricsQuery(props: ProductivityControllerGetFeatureMetricsProps, options?: Omit<UseQueryOptions<ProductivityControllerGetFeatureMetricsOkResponse, ProductivityControllerGetFeatureMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ProductivityControllerGetFeatureMetricsOkResponse, string>;
@@ -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 productivityControllerGetFeatureMetrics(props) {
7
+ return fetcher(Object.assign({ url: `/v2/productivity/feature_metrics`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get productivity metrics (PR velocity, number of bugs, number of stories) for a collection
11
+ */
12
+ export function useProductivityControllerGetFeatureMetricsQuery(props, options) {
13
+ return useQuery(['ProductivityControllerGetFeatureMetrics', props.queryParams, props.body], ({ signal }) => productivityControllerGetFeatureMetrics(Object.assign(Object.assign({}, props), { signal })), options);
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, ProductivityControllerPrVelocityMutationQueryParams, ProductivityControllerPrVelocityOkResponse, ProductivityControllerPrVelocityProps, ProductivityControllerPrVelocityRequestBody, } from './hooks/useProductivityControllerPrVelocityMutation';
47
- export { productivityControllerPrVelocity, useProductivityControllerPrVelocityMutation, } from './hooks/useProductivityControllerPrVelocityMutation';
46
+ export type { ProductivityControllerGetFeatureMetricsErrorResponse, ProductivityControllerGetFeatureMetricsOkResponse, ProductivityControllerGetFeatureMetricsProps, ProductivityControllerGetFeatureMetricsQueryQueryParams, ProductivityControllerGetFeatureMetricsRequestBody, } from './hooks/useProductivityControllerGetFeatureMetricsQuery';
47
+ export { productivityControllerGetFeatureMetrics, useProductivityControllerGetFeatureMetricsQuery, } from './hooks/useProductivityControllerGetFeatureMetricsQuery';
48
48
  export type { Category } from './schemas/Category';
49
49
  export type { CollectionEnriched } from './schemas/CollectionEnriched';
50
50
  export type { CollectionFilter } from './schemas/CollectionFilter';
@@ -65,9 +65,9 @@ export type { DoraRequest } from './schemas/DoraRequest';
65
65
  export type { DoraSummaryMetric } from './schemas/DoraSummaryMetric';
66
66
  export type { DoraSummaryRequest } from './schemas/DoraSummaryRequest';
67
67
  export type { IntegrationObject } from './schemas/IntegrationObject';
68
- export type { PrVelocityResponseDto } from './schemas/PrVelocityResponseDto';
69
68
  export type { ProductivityControllerRequest } from './schemas/ProductivityControllerRequest';
70
69
  export type { ProductivityDataPoint } from './schemas/ProductivityDataPoint';
70
+ export type { ProductivityResponseDto } from './schemas/ProductivityResponseDto';
71
71
  export type { Stage } from './schemas/Stage';
72
72
  export type { SummaryCard } from './schemas/SummaryCard';
73
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, useProductivityControllerPrVelocityMutation, } from './hooks/useProductivityControllerPrVelocityMutation';
23
+ export { productivityControllerGetFeatureMetrics, useProductivityControllerGetFeatureMetricsQuery, } from './hooks/useProductivityControllerGetFeatureMetricsQuery';
@@ -7,9 +7,10 @@ export interface ProductivityControllerRequest {
7
7
  * @format date-time
8
8
  */
9
9
  endDate?: string;
10
- featureType?: 'CODING_DAYS' | 'PR_VELOCITY';
10
+ featureType?: 'CODING_DAYS' | 'NUMBER_OF_BUGS' | 'NUMBER_OF_STORIES' | 'PR_VELOCITY';
11
11
  granularity?: 'MONTHLY' | 'QUARTERLY' | 'WEEKLY';
12
- stackBy?: 'PR_SIZE' | 'WORK_TYPE';
12
+ section?: 'COLLABORATION' | 'OUTPUT' | 'VOLUME';
13
+ stackBy?: 'PRIORITY' | 'PR_SIZE' | 'TICKET_SIZE' | 'WORK_TYPE';
13
14
  /**
14
15
  * @format date-time
15
16
  */
@@ -4,7 +4,7 @@ export interface ProductivityDataPoint {
4
4
  */
5
5
  endTime?: string;
6
6
  granularDataPoints?: ProductivityDataPoint[];
7
- stackBy?: 'PR_SIZE' | 'WORK_TYPE';
7
+ stackBy?: 'PRIORITY' | 'PR_SIZE' | 'TICKET_SIZE' | 'WORK_TYPE';
8
8
  stacks?: {
9
9
  [key: string]: number;
10
10
  };
@@ -0,0 +1,17 @@
1
+ import type { ProductivityDataPoint } from '../schemas/ProductivityDataPoint';
2
+ export interface ProductivityResponseDto {
3
+ currentData?: ProductivityDataPoint;
4
+ /**
5
+ * @format date-time
6
+ */
7
+ endDate?: string;
8
+ featureType?: 'CODING_DAYS' | 'NUMBER_OF_BUGS' | 'NUMBER_OF_STORIES' | 'PR_VELOCITY';
9
+ granularity?: 'MONTHLY' | 'QUARTERLY' | 'WEEKLY';
10
+ previousData?: ProductivityDataPoint;
11
+ section?: 'COLLABORATION' | 'OUTPUT' | 'VOLUME';
12
+ stackBy?: 'PRIORITY' | 'PR_SIZE' | 'TICKET_SIZE' | 'WORK_TYPE';
13
+ /**
14
+ * @format date-time
15
+ */
16
+ startDate?: string;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.10.14",
3
+ "version": "0.10.16",
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",
@@ -1,20 +0,0 @@
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 PR Velocity for a collection
19
- */
20
- export declare function useProductivityControllerPrVelocityMutation(options?: Omit<UseMutationOptions<ProductivityControllerPrVelocityOkResponse, ProductivityControllerPrVelocityErrorResponse, ProductivityControllerPrVelocityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ProductivityControllerPrVelocityOkResponse, string, ProductivityControllerPrVelocityProps, unknown>;
@@ -1,14 +0,0 @@
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 PR Velocity for a collection
11
- */
12
- export function useProductivityControllerPrVelocityMutation(options) {
13
- return useMutation((mutateProps) => productivityControllerPrVelocity(mutateProps), options);
14
- }
@@ -1,5 +0,0 @@
1
- import type { ProductivityDataPoint } from '../schemas/ProductivityDataPoint';
2
- export interface PrVelocityResponseDto {
3
- currentData?: ProductivityDataPoint;
4
- previousData?: ProductivityDataPoint;
5
- }