@harnessio/react-chaos-manager-client 1.88.2 → 1.89.0

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.
Files changed (19) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListPipelineExplorerQuery.d.ts +38 -0
  2. package/dist/chaos-manager/src/services/hooks/useListPipelineExplorerQuery.js +14 -0
  3. package/dist/chaos-manager/src/services/index.d.ts +9 -0
  4. package/dist/chaos-manager/src/services/index.js +1 -0
  5. package/dist/chaos-manager/src/services/schemas/PipelineexplorerItemResponse.d.ts +13 -0
  6. package/dist/chaos-manager/src/services/schemas/PipelineexplorerItemResponse.js +1 -0
  7. package/dist/chaos-manager/src/services/schemas/PipelineexplorerLatestStats.d.ts +5 -0
  8. package/dist/chaos-manager/src/services/schemas/PipelineexplorerLatestStats.js +1 -0
  9. package/dist/chaos-manager/src/services/schemas/PipelineexplorerListResponse.d.ts +11 -0
  10. package/dist/chaos-manager/src/services/schemas/PipelineexplorerListResponse.js +1 -0
  11. package/dist/chaos-manager/src/services/schemas/PipelineexplorerMetadata.d.ts +7 -0
  12. package/dist/chaos-manager/src/services/schemas/PipelineexplorerMetadata.js +1 -0
  13. package/dist/chaos-manager/src/services/schemas/PipelineexplorerProgress.d.ts +5 -0
  14. package/dist/chaos-manager/src/services/schemas/PipelineexplorerProgress.js +4 -0
  15. package/dist/chaos-manager/src/services/schemas/PipelineexplorerScanInfo.d.ts +10 -0
  16. package/dist/chaos-manager/src/services/schemas/PipelineexplorerScanInfo.js +1 -0
  17. package/dist/chaos-manager/src/services/schemas/PipelineexplorerStats.d.ts +5 -0
  18. package/dist/chaos-manager/src/services/schemas/PipelineexplorerStats.js +4 -0
  19. package/package.json +1 -1
@@ -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,5 @@
1
+ import type { RiskRiskSummary } from '../schemas/RiskRiskSummary';
2
+ export interface PipelineexplorerLatestStats {
3
+ risks?: RiskRiskSummary;
4
+ score?: number;
5
+ }
@@ -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,7 @@
1
+ import type { PipelineexplorerProgress } from '../schemas/PipelineexplorerProgress';
2
+ export interface PipelineexplorerMetadata {
3
+ collectedAt?: number;
4
+ message?: string;
5
+ progress?: PipelineexplorerProgress;
6
+ status?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface PipelineexplorerProgress {
2
+ orgs?: string[];
3
+ pipelines?: string[];
4
+ projects?: string[];
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ 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,5 @@
1
+ export interface PipelineexplorerStats {
2
+ totalPipelines?: number;
3
+ totalPipelinesScanned?: number;
4
+ totalScans?: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.88.2",
3
+ "version": "1.89.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",