@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.
- package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetImProjectsCountWithDateRangeQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetImTicketsCountWithDateRangeQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useIntegrationStatsControllerGetIntegrationHealthQuery.d.ts +4 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +4 -0
- package/dist/sei-panorama-service/src/services/index.js +2 -0
- package/dist/sei-panorama-service/src/services/schemas/ActivityDataDto.d.ts +8 -0
- package/dist/sei-panorama-service/src/services/schemas/IssueRequest.d.ts +5 -0
- package/dist/sei-panorama-service/src/services/schemas/PrCommitsRequest.d.ts +5 -0
- package/dist/sei-panorama-service/src/services/schemas/PrRequest.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.22.
|
|
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",
|