@harnessio/react-sei-panorama-service-client 0.18.6 → 0.19.1
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/useEfficiencyControllerMttrBreakdownQuery.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerMttrBreakdownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerMttrQuery.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerMttrQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerSummaryQuery.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerSummaryQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +11 -0
- package/dist/sei-panorama-service/src/services/index.js +3 -0
- package/dist/sei-panorama-service/src/services/schemas/DeveloperInfo.d.ts +4 -0
- package/dist/sei-panorama-service/src/services/schemas/EfficiencyMttrDataPointBreakdown.d.ts +4 -0
- package/dist/sei-panorama-service/src/services/schemas/EfficiencyMttrDataPointBreakdown.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/EfficiencyMttrMetricBreakdown.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/schemas/EfficiencyMttrMetricBreakdown.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/EfficiencySummaryRequest.d.ts +11 -0
- package/dist/sei-panorama-service/src/services/schemas/EfficiencySummaryRequest.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrDataPoint.d.ts +30 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrDataPoint.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrMetric.d.ts +33 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrMetric.js +1 -0
- package/package.json +1 -1
package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerMttrBreakdownQuery.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
2
|
+
import type { EfficiencyMttrDataPointBreakdown } from '../schemas/EfficiencyMttrDataPointBreakdown';
|
3
|
+
import type { EfficiencyRequest } from '../schemas/EfficiencyRequest';
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
|
+
export interface EfficiencyControllerMttrBreakdownQueryQueryParams {
|
7
|
+
account: string;
|
8
|
+
projectIdentifier: string;
|
9
|
+
orgIdentifier: string;
|
10
|
+
}
|
11
|
+
export type EfficiencyControllerMttrBreakdownRequestBody = EfficiencyRequest;
|
12
|
+
export type EfficiencyControllerMttrBreakdownOkResponse = ResponseWithPagination<EfficiencyMttrDataPointBreakdown>;
|
13
|
+
export type EfficiencyControllerMttrBreakdownErrorResponse = string;
|
14
|
+
export interface EfficiencyControllerMttrBreakdownProps extends Omit<FetcherOptions<EfficiencyControllerMttrBreakdownQueryQueryParams, EfficiencyControllerMttrBreakdownRequestBody>, 'url'> {
|
15
|
+
queryParams: EfficiencyControllerMttrBreakdownQueryQueryParams;
|
16
|
+
body: EfficiencyControllerMttrBreakdownRequestBody;
|
17
|
+
}
|
18
|
+
export declare function efficiencyControllerMttrBreakdown(props: EfficiencyControllerMttrBreakdownProps): Promise<EfficiencyControllerMttrBreakdownOkResponse>;
|
19
|
+
/**
|
20
|
+
* Get Mean Time to Restore breakdown for a project
|
21
|
+
*/
|
22
|
+
export declare function useEfficiencyControllerMttrBreakdownQuery(props: EfficiencyControllerMttrBreakdownProps, options?: Omit<UseQueryOptions<EfficiencyControllerMttrBreakdownOkResponse, EfficiencyControllerMttrBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<EfficiencyControllerMttrBreakdownOkResponse, string>;
|
package/dist/sei-panorama-service/src/services/hooks/useEfficiencyControllerMttrBreakdownQuery.js
ADDED
@@ -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 efficiencyControllerMttrBreakdown(props) {
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/efficiency/mttr/breakdown`, method: 'POST' }, props));
|
8
|
+
}
|
9
|
+
/**
|
10
|
+
* Get Mean Time to Restore breakdown for a project
|
11
|
+
*/
|
12
|
+
export function useEfficiencyControllerMttrBreakdownQuery(props, options) {
|
13
|
+
return useQuery(['EfficiencyControllerMttrBreakdown', props.queryParams, props.body], ({ signal }) => efficiencyControllerMttrBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
14
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
2
|
+
import type { MttrMetric } from '../schemas/MttrMetric';
|
3
|
+
import type { EfficiencyRequest } from '../schemas/EfficiencyRequest';
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
|
+
export interface EfficiencyControllerMttrQueryQueryParams {
|
7
|
+
account: string;
|
8
|
+
projectIdentifier: string;
|
9
|
+
orgIdentifier: string;
|
10
|
+
}
|
11
|
+
export type EfficiencyControllerMttrRequestBody = EfficiencyRequest;
|
12
|
+
export type EfficiencyControllerMttrOkResponse = ResponseWithPagination<MttrMetric>;
|
13
|
+
export type EfficiencyControllerMttrErrorResponse = string;
|
14
|
+
export interface EfficiencyControllerMttrProps extends Omit<FetcherOptions<EfficiencyControllerMttrQueryQueryParams, EfficiencyControllerMttrRequestBody>, 'url'> {
|
15
|
+
queryParams: EfficiencyControllerMttrQueryQueryParams;
|
16
|
+
body: EfficiencyControllerMttrRequestBody;
|
17
|
+
}
|
18
|
+
export declare function efficiencyControllerMttr(props: EfficiencyControllerMttrProps): Promise<EfficiencyControllerMttrOkResponse>;
|
19
|
+
/**
|
20
|
+
* Get Mean Time to Restore for a project
|
21
|
+
*/
|
22
|
+
export declare function useEfficiencyControllerMttrQuery(props: EfficiencyControllerMttrProps, options?: Omit<UseQueryOptions<EfficiencyControllerMttrOkResponse, EfficiencyControllerMttrErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<EfficiencyControllerMttrOkResponse, 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 efficiencyControllerMttr(props) {
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/efficiency/mttr`, method: 'POST' }, props));
|
8
|
+
}
|
9
|
+
/**
|
10
|
+
* Get Mean Time to Restore for a project
|
11
|
+
*/
|
12
|
+
export function useEfficiencyControllerMttrQuery(props, options) {
|
13
|
+
return useQuery(['EfficiencyControllerMttr', props.queryParams, props.body], ({ signal }) => efficiencyControllerMttr(Object.assign(Object.assign({}, props), { signal })), options);
|
14
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
2
|
+
import type { DoraSummaryMetric } from '../schemas/DoraSummaryMetric';
|
3
|
+
import type { EfficiencySummaryRequest } from '../schemas/EfficiencySummaryRequest';
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
|
+
export interface EfficiencyControllerSummaryQueryQueryParams {
|
7
|
+
account: string;
|
8
|
+
projectIdentifier: string;
|
9
|
+
orgIdentifier: string;
|
10
|
+
}
|
11
|
+
export type EfficiencyControllerSummaryRequestBody = EfficiencySummaryRequest;
|
12
|
+
export type EfficiencyControllerSummaryOkResponse = ResponseWithPagination<DoraSummaryMetric>;
|
13
|
+
export type EfficiencyControllerSummaryErrorResponse = string;
|
14
|
+
export interface EfficiencyControllerSummaryProps extends Omit<FetcherOptions<EfficiencyControllerSummaryQueryQueryParams, EfficiencyControllerSummaryRequestBody>, 'url'> {
|
15
|
+
queryParams: EfficiencyControllerSummaryQueryQueryParams;
|
16
|
+
body: EfficiencyControllerSummaryRequestBody;
|
17
|
+
}
|
18
|
+
export declare function efficiencyControllerSummary(props: EfficiencyControllerSummaryProps): Promise<EfficiencyControllerSummaryOkResponse>;
|
19
|
+
/**
|
20
|
+
* Get efficiency metrics summary for a project
|
21
|
+
*/
|
22
|
+
export declare function useEfficiencyControllerSummaryQuery(props: EfficiencyControllerSummaryProps, options?: Omit<UseQueryOptions<EfficiencyControllerSummaryOkResponse, EfficiencyControllerSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<EfficiencyControllerSummaryOkResponse, 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 efficiencyControllerSummary(props) {
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/efficiency/summary`, method: 'POST' }, props));
|
8
|
+
}
|
9
|
+
/**
|
10
|
+
* Get efficiency metrics summary for a project
|
11
|
+
*/
|
12
|
+
export function useEfficiencyControllerSummaryQuery(props, options) {
|
13
|
+
return useQuery(['EfficiencyControllerSummary', props.queryParams, props.body], ({ signal }) => efficiencyControllerSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
14
|
+
}
|
@@ -85,6 +85,12 @@ export type { EfficiencyControllerLeadTimeErrorResponse, EfficiencyControllerLea
|
|
85
85
|
export { efficiencyControllerLeadTime, useEfficiencyControllerLeadTimeQuery, } from './hooks/useEfficiencyControllerLeadTimeQuery';
|
86
86
|
export type { EfficiencyControllerLeadTimeStagesErrorResponse, EfficiencyControllerLeadTimeStagesOkResponse, EfficiencyControllerLeadTimeStagesProps, EfficiencyControllerLeadTimeStagesQueryQueryParams, EfficiencyControllerLeadTimeStagesRequestBody, } from './hooks/useEfficiencyControllerLeadTimeStagesQuery';
|
87
87
|
export { efficiencyControllerLeadTimeStages, useEfficiencyControllerLeadTimeStagesQuery, } from './hooks/useEfficiencyControllerLeadTimeStagesQuery';
|
88
|
+
export type { EfficiencyControllerMttrBreakdownErrorResponse, EfficiencyControllerMttrBreakdownOkResponse, EfficiencyControllerMttrBreakdownProps, EfficiencyControllerMttrBreakdownQueryQueryParams, EfficiencyControllerMttrBreakdownRequestBody, } from './hooks/useEfficiencyControllerMttrBreakdownQuery';
|
89
|
+
export { efficiencyControllerMttrBreakdown, useEfficiencyControllerMttrBreakdownQuery, } from './hooks/useEfficiencyControllerMttrBreakdownQuery';
|
90
|
+
export type { EfficiencyControllerMttrErrorResponse, EfficiencyControllerMttrOkResponse, EfficiencyControllerMttrProps, EfficiencyControllerMttrQueryQueryParams, EfficiencyControllerMttrRequestBody, } from './hooks/useEfficiencyControllerMttrQuery';
|
91
|
+
export { efficiencyControllerMttr, useEfficiencyControllerMttrQuery, } from './hooks/useEfficiencyControllerMttrQuery';
|
92
|
+
export type { EfficiencyControllerSummaryErrorResponse, EfficiencyControllerSummaryOkResponse, EfficiencyControllerSummaryProps, EfficiencyControllerSummaryQueryQueryParams, EfficiencyControllerSummaryRequestBody, } from './hooks/useEfficiencyControllerSummaryQuery';
|
93
|
+
export { efficiencyControllerSummary, useEfficiencyControllerSummaryQuery, } from './hooks/useEfficiencyControllerSummaryQuery';
|
88
94
|
export type { EfficiencyProfileControllerCreateProfileErrorResponse, EfficiencyProfileControllerCreateProfileMutationQueryParams, EfficiencyProfileControllerCreateProfileOkResponse, EfficiencyProfileControllerCreateProfileProps, EfficiencyProfileControllerCreateProfileRequestBody, } from './hooks/useEfficiencyProfileControllerCreateProfileMutation';
|
89
95
|
export { efficiencyProfileControllerCreateProfile, useEfficiencyProfileControllerCreateProfileMutation, } from './hooks/useEfficiencyProfileControllerCreateProfileMutation';
|
90
96
|
export type { EfficiencyProfileControllerDeleteProfileByRefIdErrorResponse, EfficiencyProfileControllerDeleteProfileByRefIdMutationPathParams, EfficiencyProfileControllerDeleteProfileByRefIdMutationQueryParams, EfficiencyProfileControllerDeleteProfileByRefIdOkResponse, EfficiencyProfileControllerDeleteProfileByRefIdProps, } from './hooks/useEfficiencyProfileControllerDeleteProfileByRefIdMutation';
|
@@ -218,11 +224,14 @@ export type { EfficiencyLeadTimeDrilldownItem } from './schemas/EfficiencyLeadTi
|
|
218
224
|
export type { EfficiencyLeadTimeDrilldownResponseWrapper } from './schemas/EfficiencyLeadTimeDrilldownResponseWrapper';
|
219
225
|
export type { EfficiencyLttcMetricBreakdown } from './schemas/EfficiencyLttcMetricBreakdown';
|
220
226
|
export type { EfficiencyMetricDrilldownRequest } from './schemas/EfficiencyMetricDrilldownRequest';
|
227
|
+
export type { EfficiencyMttrDataPointBreakdown } from './schemas/EfficiencyMttrDataPointBreakdown';
|
228
|
+
export type { EfficiencyMttrMetricBreakdown } from './schemas/EfficiencyMttrMetricBreakdown';
|
221
229
|
export type { EfficiencyProfileCreateRequestDto } from './schemas/EfficiencyProfileCreateRequestDto';
|
222
230
|
export type { EfficiencyProfileEvent } from './schemas/EfficiencyProfileEvent';
|
223
231
|
export type { EfficiencyProfileResponseDto } from './schemas/EfficiencyProfileResponseDto';
|
224
232
|
export type { EfficiencyRequest } from './schemas/EfficiencyRequest';
|
225
233
|
export type { EfficiencyRequestDto } from './schemas/EfficiencyRequestDto';
|
234
|
+
export type { EfficiencySummaryRequest } from './schemas/EfficiencySummaryRequest';
|
226
235
|
export type { ErrorResponse } from './schemas/ErrorResponse';
|
227
236
|
export type { ExportRequestDto } from './schemas/ExportRequestDto';
|
228
237
|
export type { FeatureDto } from './schemas/FeatureDto';
|
@@ -246,6 +255,8 @@ export type { LtcStageDto } from './schemas/LtcStageDto';
|
|
246
255
|
export type { Metric } from './schemas/Metric';
|
247
256
|
export type { MinimalTeamHierarchyResponseDto } from './schemas/MinimalTeamHierarchyResponseDto';
|
248
257
|
export type { MttrConfigurationDto } from './schemas/MttrConfigurationDto';
|
258
|
+
export type { MttrDataPoint } from './schemas/MttrDataPoint';
|
259
|
+
export type { MttrMetric } from './schemas/MttrMetric';
|
249
260
|
export type { OrgTreeCreateRequestDto } from './schemas/OrgTreeCreateRequestDto';
|
250
261
|
export type { OrgTreeProfileDto } from './schemas/OrgTreeProfileDto';
|
251
262
|
export type { OrgTreeResponseDto } from './schemas/OrgTreeResponseDto';
|
@@ -41,6 +41,9 @@ export { efficiencyControllerLeadTimeBreakdown, useEfficiencyControllerLeadTimeB
|
|
41
41
|
export { efficiencyControllerLeadTimeDrilldown, useEfficiencyControllerLeadTimeDrilldownQuery, } from './hooks/useEfficiencyControllerLeadTimeDrilldownQuery';
|
42
42
|
export { efficiencyControllerLeadTime, useEfficiencyControllerLeadTimeQuery, } from './hooks/useEfficiencyControllerLeadTimeQuery';
|
43
43
|
export { efficiencyControllerLeadTimeStages, useEfficiencyControllerLeadTimeStagesQuery, } from './hooks/useEfficiencyControllerLeadTimeStagesQuery';
|
44
|
+
export { efficiencyControllerMttrBreakdown, useEfficiencyControllerMttrBreakdownQuery, } from './hooks/useEfficiencyControllerMttrBreakdownQuery';
|
45
|
+
export { efficiencyControllerMttr, useEfficiencyControllerMttrQuery, } from './hooks/useEfficiencyControllerMttrQuery';
|
46
|
+
export { efficiencyControllerSummary, useEfficiencyControllerSummaryQuery, } from './hooks/useEfficiencyControllerSummaryQuery';
|
44
47
|
export { efficiencyProfileControllerCreateProfile, useEfficiencyProfileControllerCreateProfileMutation, } from './hooks/useEfficiencyProfileControllerCreateProfileMutation';
|
45
48
|
export { efficiencyProfileControllerDeleteProfileByRefId, useEfficiencyProfileControllerDeleteProfileByRefIdMutation, } from './hooks/useEfficiencyProfileControllerDeleteProfileByRefIdMutation';
|
46
49
|
export { efficiencyProfileControllerGetProfile, useEfficiencyProfileControllerGetProfileQuery, } from './hooks/useEfficiencyProfileControllerGetProfileQuery';
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import type { MttrDataPoint } from '../schemas/MttrDataPoint';
|
2
|
+
export interface EfficiencyMttrMetricBreakdown {
|
3
|
+
/**
|
4
|
+
* @format int32
|
5
|
+
*/
|
6
|
+
count?: number;
|
7
|
+
dataPoints?: MttrDataPoint[];
|
8
|
+
/**
|
9
|
+
* @format date-time
|
10
|
+
*/
|
11
|
+
endDate?: string;
|
12
|
+
/**
|
13
|
+
* @format double
|
14
|
+
*/
|
15
|
+
mean?: number;
|
16
|
+
/**
|
17
|
+
* @format double
|
18
|
+
*/
|
19
|
+
median?: number;
|
20
|
+
/**
|
21
|
+
* @format double
|
22
|
+
*/
|
23
|
+
p90?: number;
|
24
|
+
/**
|
25
|
+
* @format double
|
26
|
+
*/
|
27
|
+
p95?: number;
|
28
|
+
/**
|
29
|
+
* @format date-time
|
30
|
+
*/
|
31
|
+
startDate?: string;
|
32
|
+
teamName?: string;
|
33
|
+
teamRefId?: string;
|
34
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
export interface MttrDataPoint {
|
2
|
+
/**
|
3
|
+
* @format int32
|
4
|
+
*/
|
5
|
+
count?: number;
|
6
|
+
/**
|
7
|
+
* @format date-time
|
8
|
+
*/
|
9
|
+
endDate?: string;
|
10
|
+
/**
|
11
|
+
* @format double
|
12
|
+
*/
|
13
|
+
mean?: number;
|
14
|
+
/**
|
15
|
+
* @format double
|
16
|
+
*/
|
17
|
+
median?: number;
|
18
|
+
/**
|
19
|
+
* @format double
|
20
|
+
*/
|
21
|
+
p90?: number;
|
22
|
+
/**
|
23
|
+
* @format double
|
24
|
+
*/
|
25
|
+
p95?: number;
|
26
|
+
/**
|
27
|
+
* @format date-time
|
28
|
+
*/
|
29
|
+
startDate?: string;
|
30
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { MttrDataPoint } from '../schemas/MttrDataPoint';
|
2
|
+
export interface MttrMetric {
|
3
|
+
dataPoints?: MttrDataPoint[];
|
4
|
+
/**
|
5
|
+
* @format date-time
|
6
|
+
*/
|
7
|
+
endDate?: string;
|
8
|
+
/**
|
9
|
+
* @format double
|
10
|
+
*/
|
11
|
+
mean?: number;
|
12
|
+
/**
|
13
|
+
* @format double
|
14
|
+
*/
|
15
|
+
median?: number;
|
16
|
+
/**
|
17
|
+
* @format double
|
18
|
+
*/
|
19
|
+
p90?: number;
|
20
|
+
/**
|
21
|
+
* @format double
|
22
|
+
*/
|
23
|
+
p95?: number;
|
24
|
+
rating?: string;
|
25
|
+
/**
|
26
|
+
* @format date-time
|
27
|
+
*/
|
28
|
+
startDate?: string;
|
29
|
+
/**
|
30
|
+
* @format int32
|
31
|
+
*/
|
32
|
+
totalIncidents?: number;
|
33
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.19.1",
|
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",
|