@harnessio/react-sei-panorama-service-client 0.22.7 → 0.22.9

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 { IntegrationStatsDto } from '../schemas/IntegrationStatsDto';
3
+ import type { ScmStatsRequest } from '../schemas/ScmStatsRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams {
7
+ account: string;
8
+ }
9
+ export type IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody = ScmStatsRequest;
10
+ export type IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse = ResponseWithPagination<IntegrationStatsDto[]>;
11
+ export type IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse = IntegrationStatsDto[];
12
+ export interface IntegrationStatsControllerGetImProjectsCountWithDateRangeProps extends Omit<FetcherOptions<IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody>, 'url'> {
13
+ queryParams: IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams;
14
+ body: IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody;
15
+ }
16
+ export declare function integrationStatsControllerGetImProjectsCountWithDateRange(props: IntegrationStatsControllerGetImProjectsCountWithDateRangeProps): Promise<IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse>;
17
+ /**
18
+ * Get IM project counts with optional daily breakdown
19
+ */
20
+ export declare function useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery(props: IntegrationStatsControllerGetImProjectsCountWithDateRangeProps, options?: Omit<UseQueryOptions<IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse>;
@@ -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 integrationStatsControllerGetImProjectsCountWithDateRange(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integration-stats/im/projects`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get IM project counts with optional daily breakdown
11
+ */
12
+ export function useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery(props, options) {
13
+ return useQuery(['IntegrationStatsControllerGetImProjectsCountWithDateRange', props.queryParams, props.body], ({ signal }) => integrationStatsControllerGetImProjectsCountWithDateRange(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationStatsDto } from '../schemas/IntegrationStatsDto';
3
+ import type { ScmStatsRequest } from '../schemas/ScmStatsRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams {
7
+ account: string;
8
+ }
9
+ export type IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody = ScmStatsRequest;
10
+ export type IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse = ResponseWithPagination<IntegrationStatsDto[]>;
11
+ export type IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse = IntegrationStatsDto[];
12
+ export interface IntegrationStatsControllerGetImTicketsCountWithDateRangeProps extends Omit<FetcherOptions<IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody>, 'url'> {
13
+ queryParams: IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams;
14
+ body: IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody;
15
+ }
16
+ export declare function integrationStatsControllerGetImTicketsCountWithDateRange(props: IntegrationStatsControllerGetImTicketsCountWithDateRangeProps): Promise<IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse>;
17
+ /**
18
+ * Get IM ticket counts with optional daily breakdown
19
+ */
20
+ export declare function useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery(props: IntegrationStatsControllerGetImTicketsCountWithDateRangeProps, options?: Omit<UseQueryOptions<IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse>;
@@ -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 integrationStatsControllerGetImTicketsCountWithDateRange(props) {
7
+ return fetcher(Object.assign({ url: `/v2/integration-stats/im/tickets`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get IM ticket counts with optional daily breakdown
11
+ */
12
+ export function useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery(props, options) {
13
+ return useQuery(['IntegrationStatsControllerGetImTicketsCountWithDateRange', props.queryParams, props.body], ({ signal }) => integrationStatsControllerGetImTicketsCountWithDateRange(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -6,6 +6,10 @@ export interface IntegrationStatsControllerGetIntegrationHealthQueryQueryParams
6
6
  integrationId: string;
7
7
  fromDate: string;
8
8
  toDate: string;
9
+ /**
10
+ * @default "SCM"
11
+ */
12
+ appType?: string;
9
13
  account: string;
10
14
  }
11
15
  export type IntegrationStatsControllerGetIntegrationHealthOkResponse = ResponseWithPagination<IntegrationHealthStatusDto[]>;
@@ -167,8 +167,12 @@ export type { IntegrationStatsControllerGetCicdPipelinesCountErrorResponse, Inte
167
167
  export { integrationStatsControllerGetCicdPipelinesCount, useIntegrationStatsControllerGetCicdPipelinesCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdPipelinesCountQuery';
168
168
  export type { IntegrationStatsControllerGetImProjectsCountErrorResponse, IntegrationStatsControllerGetImProjectsCountOkResponse, IntegrationStatsControllerGetImProjectsCountProps, IntegrationStatsControllerGetImProjectsCountQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetImProjectsCountQuery';
169
169
  export { integrationStatsControllerGetImProjectsCount, useIntegrationStatsControllerGetImProjectsCountQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountQuery';
170
+ export type { IntegrationStatsControllerGetImProjectsCountWithDateRangeErrorResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImProjectsCountWithDateRangeProps, IntegrationStatsControllerGetImProjectsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImProjectsCountWithDateRangeRequestBody, } from './hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery';
171
+ export { integrationStatsControllerGetImProjectsCountWithDateRange, useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery';
170
172
  export type { IntegrationStatsControllerGetImTicketsCountErrorResponse, IntegrationStatsControllerGetImTicketsCountOkResponse, IntegrationStatsControllerGetImTicketsCountProps, IntegrationStatsControllerGetImTicketsCountQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetImTicketsCountQuery';
171
173
  export { integrationStatsControllerGetImTicketsCount, useIntegrationStatsControllerGetImTicketsCountQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountQuery';
174
+ export type { IntegrationStatsControllerGetImTicketsCountWithDateRangeErrorResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeOkResponse, IntegrationStatsControllerGetImTicketsCountWithDateRangeProps, IntegrationStatsControllerGetImTicketsCountWithDateRangeQueryQueryParams, IntegrationStatsControllerGetImTicketsCountWithDateRangeRequestBody, } from './hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery';
175
+ export { integrationStatsControllerGetImTicketsCountWithDateRange, useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery';
172
176
  export type { IntegrationStatsControllerGetIntegrationHealthDrillDownErrorResponse, IntegrationStatsControllerGetIntegrationHealthDrillDownOkResponse, IntegrationStatsControllerGetIntegrationHealthDrillDownProps, IntegrationStatsControllerGetIntegrationHealthDrillDownQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery';
173
177
  export { integrationStatsControllerGetIntegrationHealthDrillDown, useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery';
174
178
  export type { IntegrationStatsControllerGetIntegrationHealthErrorResponse, IntegrationStatsControllerGetIntegrationHealthOkResponse, IntegrationStatsControllerGetIntegrationHealthProps, IntegrationStatsControllerGetIntegrationHealthQueryQueryParams, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthQuery';
@@ -82,7 +82,9 @@ export { integrationControllerListIntegrations, useIntegrationControllerListInte
82
82
  export { integrationStatsControllerGetCicdJobsCount, useIntegrationStatsControllerGetCicdJobsCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdJobsCountQuery';
83
83
  export { integrationStatsControllerGetCicdPipelinesCount, useIntegrationStatsControllerGetCicdPipelinesCountQuery, } from './hooks/useIntegrationStatsControllerGetCicdPipelinesCountQuery';
84
84
  export { integrationStatsControllerGetImProjectsCount, useIntegrationStatsControllerGetImProjectsCountQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountQuery';
85
+ export { integrationStatsControllerGetImProjectsCountWithDateRange, useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery';
85
86
  export { integrationStatsControllerGetImTicketsCount, useIntegrationStatsControllerGetImTicketsCountQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountQuery';
87
+ export { integrationStatsControllerGetImTicketsCountWithDateRange, useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery, } from './hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery';
86
88
  export { integrationStatsControllerGetIntegrationHealthDrillDown, useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthDrillDownQuery';
87
89
  export { integrationStatsControllerGetIntegrationHealth, useIntegrationStatsControllerGetIntegrationHealthQuery, } from './hooks/useIntegrationStatsControllerGetIntegrationHealthQuery';
88
90
  export { integrationStatsControllerGetScmCommitsCount, useIntegrationStatsControllerGetScmCommitsCountQuery, } from './hooks/useIntegrationStatsControllerGetScmCommitsCountQuery';
@@ -3,6 +3,14 @@ export interface ActivityDataDto {
3
3
  * @format int64
4
4
  */
5
5
  commits?: number;
6
+ /**
7
+ * @format int64
8
+ */
9
+ issues?: number;
10
+ /**
11
+ * @format int64
12
+ */
13
+ projects?: number;
6
14
  /**
7
15
  * @format int64
8
16
  */
@@ -11,4 +11,9 @@ export interface IssueRequest {
11
11
  * Pagination request
12
12
  */
13
13
  pagination?: PaginationRequest;
14
+ /**
15
+ * Team reference ID for filtering results by team's integrations
16
+ * @format int32
17
+ */
18
+ teamRefId?: number;
14
19
  }
@@ -11,4 +11,9 @@ export interface PrCommitsRequest {
11
11
  * PR identifier
12
12
  */
13
13
  prId: string;
14
+ /**
15
+ * Team reference ID for filtering results by team's integrations
16
+ * @format int32
17
+ */
18
+ teamRefId?: number;
14
19
  }
@@ -11,4 +11,9 @@ export interface PrRequest {
11
11
  * Pull Request ID
12
12
  */
13
13
  prId: string;
14
+ /**
15
+ * Team reference ID for filtering results by team's integrations
16
+ * @format int32
17
+ */
18
+ teamRefId?: number;
14
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.22.7",
3
+ "version": "0.22.9",
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",