@harnessio/react-chaos-manager-client 1.88.2 → 1.89.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/chaos-manager/src/services/hooks/useGetRiskRuleQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListPipelineExplorerQuery.d.ts +38 -0
- package/dist/chaos-manager/src/services/hooks/useListPipelineExplorerQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +9 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerItemResponse.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerItemResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerLatestStats.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerLatestStats.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerListResponse.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerListResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerMetadata.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerMetadata.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerProgress.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerProgress.js +4 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerScanInfo.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerScanInfo.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerStats.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/PipelineexplorerStats.js +4 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface GetRiskRuleQueryPathParams {
|
|
|
8
8
|
export interface GetRiskRuleQueryQueryParams {
|
|
9
9
|
accountIdentifier: string;
|
|
10
10
|
correlationID?: string;
|
|
11
|
+
isSystem?: boolean;
|
|
11
12
|
organizationIdentifier?: string;
|
|
12
13
|
parentUniqueId?: string;
|
|
13
14
|
projectIdentifier?: string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PipelineexplorerListResponse } from '../schemas/PipelineexplorerListResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListPipelineExplorerQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @default 15
|
|
10
|
+
*/
|
|
11
|
+
limit?: number;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
parentUniqueId?: string;
|
|
18
|
+
projectIdentifier?: string;
|
|
19
|
+
refresh?: boolean;
|
|
20
|
+
scanned?: boolean;
|
|
21
|
+
search?: string;
|
|
22
|
+
sortAscending?: boolean;
|
|
23
|
+
sortField?: 'lastRunAt' | 'lastScanAt' | 'pipelineName' | 'runsLast30d' | 'scanScore';
|
|
24
|
+
}
|
|
25
|
+
export type ListPipelineExplorerOkResponse = PipelineexplorerListResponse;
|
|
26
|
+
export type ListPipelineExplorerErrorResponse = SharedError;
|
|
27
|
+
export interface ListPipelineExplorerProps extends Omit<FetcherOptions<ListPipelineExplorerQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: ListPipelineExplorerQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export interface ListPipelineExplorerResponseContainer {
|
|
31
|
+
body: ListPipelineExplorerOkResponse;
|
|
32
|
+
headers: Headers;
|
|
33
|
+
}
|
|
34
|
+
export declare function listPipelineExplorer(props: ListPipelineExplorerProps): Promise<ListPipelineExplorerResponseContainer>;
|
|
35
|
+
/**
|
|
36
|
+
* lists pipelines collected for an account; data is collected asynchronously and served from the last completed snapshot
|
|
37
|
+
*/
|
|
38
|
+
export declare function useListPipelineExplorerQuery(props: ListPipelineExplorerProps, options?: Omit<UseQueryOptions<ListPipelineExplorerResponseContainer, ListPipelineExplorerErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPipelineExplorerResponseContainer, SharedError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listPipelineExplorer(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/pipeline-explorer`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists pipelines collected for an account; data is collected asynchronously and served from the last completed snapshot
|
|
11
|
+
*/
|
|
12
|
+
export function useListPipelineExplorerQuery(props, options) {
|
|
13
|
+
return useQuery(['listPipelineExplorer', props.queryParams], ({ signal }) => listPipelineExplorer(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -404,6 +404,8 @@ export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkRespons
|
|
|
404
404
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
405
405
|
export type { ListOnboardedServicesErrorResponse, ListOnboardedServicesOkResponse, ListOnboardedServicesProps, ListOnboardedServicesQueryPathParams, ListOnboardedServicesQueryQueryParams, } from './hooks/useListOnboardedServicesQuery';
|
|
406
406
|
export { listOnboardedServices, useListOnboardedServicesQuery, } from './hooks/useListOnboardedServicesQuery';
|
|
407
|
+
export type { ListPipelineExplorerErrorResponse, ListPipelineExplorerOkResponse, ListPipelineExplorerProps, ListPipelineExplorerQueryQueryParams, } from './hooks/useListPipelineExplorerQuery';
|
|
408
|
+
export { listPipelineExplorer, useListPipelineExplorerQuery, } from './hooks/useListPipelineExplorerQuery';
|
|
407
409
|
export type { ListPipelineOnboardingErrorResponse, ListPipelineOnboardingOkResponse, ListPipelineOnboardingProps, ListPipelineOnboardingQueryQueryParams, } from './hooks/useListPipelineOnboardingQuery';
|
|
408
410
|
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
409
411
|
export type { ListProbeExecutionsErrorResponse, ListProbeExecutionsOkResponse, ListProbeExecutionsProps, ListProbeExecutionsQueryPathParams, ListProbeExecutionsQueryQueryParams, } from './hooks/useListProbeExecutionsQuery';
|
|
@@ -1203,6 +1205,13 @@ export type { OnboardingAvailableOnboardedCount } from './schemas/OnboardingAvai
|
|
|
1203
1205
|
export type { OnboardingOnboardedCount } from './schemas/OnboardingOnboardedCount';
|
|
1204
1206
|
export type { OnboardingStats } from './schemas/OnboardingStats';
|
|
1205
1207
|
export type { OnboardingStatsResponse } from './schemas/OnboardingStatsResponse';
|
|
1208
|
+
export type { PipelineexplorerItemResponse } from './schemas/PipelineexplorerItemResponse';
|
|
1209
|
+
export type { PipelineexplorerLatestStats } from './schemas/PipelineexplorerLatestStats';
|
|
1210
|
+
export type { PipelineexplorerListResponse } from './schemas/PipelineexplorerListResponse';
|
|
1211
|
+
export type { PipelineexplorerMetadata } from './schemas/PipelineexplorerMetadata';
|
|
1212
|
+
export type { PipelineexplorerProgress } from './schemas/PipelineexplorerProgress';
|
|
1213
|
+
export type { PipelineexplorerScanInfo } from './schemas/PipelineexplorerScanInfo';
|
|
1214
|
+
export type { PipelineexplorerStats } from './schemas/PipelineexplorerStats';
|
|
1206
1215
|
export type { PipelineonboardingInfrastructureOnboardingMapping } from './schemas/PipelineonboardingInfrastructureOnboardingMapping';
|
|
1207
1216
|
export type { PipelineonboardingInfrastructuresStatus } from './schemas/PipelineonboardingInfrastructuresStatus';
|
|
1208
1217
|
export type { PipelineonboardingListPipelineOnboardingResponse } from './schemas/PipelineonboardingListPipelineOnboardingResponse';
|
|
@@ -201,6 +201,7 @@ export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sI
|
|
|
201
201
|
export { listLegacyKubernetesChaosInfra, useListLegacyKubernetesChaosInfraMutation, } from './hooks/useListLegacyKubernetesChaosInfraMutation';
|
|
202
202
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
203
203
|
export { listOnboardedServices, useListOnboardedServicesQuery, } from './hooks/useListOnboardedServicesQuery';
|
|
204
|
+
export { listPipelineExplorer, useListPipelineExplorerQuery, } from './hooks/useListPipelineExplorerQuery';
|
|
204
205
|
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
205
206
|
export { listProbeExecutions, useListProbeExecutionsQuery, } from './hooks/useListProbeExecutionsQuery';
|
|
206
207
|
export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PipelineexplorerScanInfo } from '../schemas/PipelineexplorerScanInfo';
|
|
2
|
+
export interface PipelineexplorerItemResponse {
|
|
3
|
+
lastRunAt?: number;
|
|
4
|
+
lastRunStatus?: string;
|
|
5
|
+
orgIdentifier?: string;
|
|
6
|
+
orgName?: string;
|
|
7
|
+
pipelineIdentifier?: string;
|
|
8
|
+
pipelineName?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
10
|
+
projectName?: string;
|
|
11
|
+
runsLast30d?: number;
|
|
12
|
+
scan?: PipelineexplorerScanInfo;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PipelineexplorerItemResponse } from '../schemas/PipelineexplorerItemResponse';
|
|
2
|
+
import type { PipelineexplorerMetadata } from '../schemas/PipelineexplorerMetadata';
|
|
3
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
4
|
+
import type { PipelineexplorerStats } from '../schemas/PipelineexplorerStats';
|
|
5
|
+
export interface PipelineexplorerListResponse {
|
|
6
|
+
correlationID?: string;
|
|
7
|
+
data?: PipelineexplorerItemResponse[];
|
|
8
|
+
metadata?: PipelineexplorerMetadata;
|
|
9
|
+
pagination?: SharedPaginationResponse;
|
|
10
|
+
stats?: PipelineexplorerStats;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RiskPipelineInfrastructure } from '../schemas/RiskPipelineInfrastructure';
|
|
2
|
+
import type { PipelineexplorerLatestStats } from '../schemas/PipelineexplorerLatestStats';
|
|
3
|
+
export interface PipelineexplorerScanInfo {
|
|
4
|
+
identity?: string;
|
|
5
|
+
infras?: RiskPipelineInfrastructure[];
|
|
6
|
+
lastScanAt?: number;
|
|
7
|
+
latestStats?: PipelineexplorerLatestStats;
|
|
8
|
+
scanCount?: number;
|
|
9
|
+
status?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED