@harnessio/react-chaos-manager-client 1.18.1-beta.3 → 1.19.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.
- package/dist/chaos-manager/src/services/hooks/useDeletePipelineOnboardingMutation.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useDeletePipelineOnboardingMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListPipelineOnboardingQuery.d.ts +23 -0
- package/dist/chaos-manager/src/services/hooks/useListPipelineOnboardingQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/usePipelineAddExperimentRecommendationMutation.d.ts +2 -1
- package/dist/chaos-manager/src/services/index.d.ts +9 -0
- package/dist/chaos-manager/src/services/index.js +2 -0
- package/dist/chaos-manager/src/services/schemas/ApiResponseErrorCode.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ApiResponseErrorCode.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ApiRestError.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ApiRestError.js +0 -3
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingInfrastructureOnboardingMapping.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingInfrastructureOnboardingMapping.js +4 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingListPipelineOnboardingResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingListPipelineOnboardingResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineOnboarding.d.ts +30 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineOnboarding.js +1 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingSelectedExperiment.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/PipelineonboardingSelectedExperiment.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface DeletePipelineOnboardingMutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeletePipelineOnboardingMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export type DeletePipelineOnboardingOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
|
|
14
|
+
export type DeletePipelineOnboardingErrorResponse = ApiRestError;
|
|
15
|
+
export interface DeletePipelineOnboardingProps extends DeletePipelineOnboardingMutationPathParams, Omit<FetcherOptions<DeletePipelineOnboardingMutationQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: DeletePipelineOnboardingMutationQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export interface DeletePipelineOnboardingResponseContainer {
|
|
19
|
+
body: DeletePipelineOnboardingOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function deletePipelineOnboarding(props: DeletePipelineOnboardingProps): Promise<DeletePipelineOnboardingResponseContainer>;
|
|
23
|
+
export type DeletePipelineOnboardingMutationProps<T extends keyof DeletePipelineOnboardingProps> = Omit<DeletePipelineOnboardingProps, T> & Partial<Pick<DeletePipelineOnboardingProps, T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Deletes pipeline onboarding entry from database
|
|
26
|
+
*/
|
|
27
|
+
export declare function useDeletePipelineOnboardingMutation<T extends keyof DeletePipelineOnboardingProps>(props: Pick<Partial<DeletePipelineOnboardingProps>, T>, options?: Omit<UseMutationOptions<DeletePipelineOnboardingResponseContainer, DeletePipelineOnboardingErrorResponse, DeletePipelineOnboardingMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeletePipelineOnboardingResponseContainer, ApiRestError, DeletePipelineOnboardingMutationProps<T>, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function deletePipelineOnboarding(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/pipeline-onboarding/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes pipeline onboarding entry from database
|
|
11
|
+
*/
|
|
12
|
+
export function useDeletePipelineOnboardingMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deletePipelineOnboarding(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PipelineonboardingListPipelineOnboardingResponse } from '../schemas/PipelineonboardingListPipelineOnboardingResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListPipelineOnboardingQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export type ListPipelineOnboardingOkResponse = PipelineonboardingListPipelineOnboardingResponse;
|
|
11
|
+
export type ListPipelineOnboardingErrorResponse = ApiRestError;
|
|
12
|
+
export interface ListPipelineOnboardingProps extends Omit<FetcherOptions<ListPipelineOnboardingQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: ListPipelineOnboardingQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export interface ListPipelineOnboardingResponseContainer {
|
|
16
|
+
body: ListPipelineOnboardingOkResponse;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare function listPipelineOnboarding(props: ListPipelineOnboardingProps): Promise<ListPipelineOnboardingResponseContainer>;
|
|
20
|
+
/**
|
|
21
|
+
* Lists pipeline onboarding
|
|
22
|
+
*/
|
|
23
|
+
export declare function useListPipelineOnboardingQuery(props: ListPipelineOnboardingProps, options?: Omit<UseQueryOptions<ListPipelineOnboardingResponseContainer, ListPipelineOnboardingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPipelineOnboardingResponseContainer, ApiRestError>;
|
|
@@ -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 listPipelineOnboarding(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/pipeline-onboarding`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists pipeline onboarding
|
|
11
|
+
*/
|
|
12
|
+
export function useListPipelineOnboardingQuery(props, options) {
|
|
13
|
+
return useQuery(['listPipelineOnboarding', props.queryParams], ({ signal }) => listPipelineOnboarding(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/usePipelineAddExperimentRecommendationMutation.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { RecommendationsPipelineAddExperimentResponse } from '../schemas/RecommendationsPipelineAddExperimentResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
5
|
export interface PipelineAddExperimentRecommendationMutationQueryParams {
|
|
5
6
|
accountIdentifier: string;
|
|
@@ -8,7 +9,7 @@ export interface PipelineAddExperimentRecommendationMutationQueryParams {
|
|
|
8
9
|
recommendationID: string;
|
|
9
10
|
}
|
|
10
11
|
export type PipelineAddExperimentRecommendationOkResponse = RecommendationsPipelineAddExperimentResponse;
|
|
11
|
-
export type PipelineAddExperimentRecommendationErrorResponse = unknown;
|
|
12
|
+
export type PipelineAddExperimentRecommendationErrorResponse = unknown | ApiRestError;
|
|
12
13
|
export interface PipelineAddExperimentRecommendationProps extends Omit<FetcherOptions<PipelineAddExperimentRecommendationMutationQueryParams, unknown>, 'url'> {
|
|
13
14
|
queryParams: PipelineAddExperimentRecommendationMutationQueryParams;
|
|
14
15
|
}
|
|
@@ -54,6 +54,8 @@ export type { DeleteInputSetErrorResponse, DeleteInputSetMutationPathParams, Del
|
|
|
54
54
|
export { deleteInputSet, useDeleteInputSetMutation } from './hooks/useDeleteInputSetMutation';
|
|
55
55
|
export type { DeleteMachineChaosInfraErrorResponse, DeleteMachineChaosInfraMutationPathParams, DeleteMachineChaosInfraMutationProps, DeleteMachineChaosInfraMutationQueryParams, DeleteMachineChaosInfraOkResponse, DeleteMachineChaosInfraProps, } from './hooks/useDeleteMachineChaosInfraMutation';
|
|
56
56
|
export { deleteMachineChaosInfra, useDeleteMachineChaosInfraMutation, } from './hooks/useDeleteMachineChaosInfraMutation';
|
|
57
|
+
export type { DeletePipelineOnboardingErrorResponse, DeletePipelineOnboardingMutationPathParams, DeletePipelineOnboardingMutationProps, DeletePipelineOnboardingMutationQueryParams, DeletePipelineOnboardingOkResponse, DeletePipelineOnboardingProps, } from './hooks/useDeletePipelineOnboardingMutation';
|
|
58
|
+
export { deletePipelineOnboarding, useDeletePipelineOnboardingMutation, } from './hooks/useDeletePipelineOnboardingMutation';
|
|
57
59
|
export type { DeleteProbeErrorResponse, DeleteProbeMutationPathParams, DeleteProbeMutationProps, DeleteProbeMutationQueryParams, DeleteProbeOkResponse, DeleteProbeProps, } from './hooks/useDeleteProbeMutation';
|
|
58
60
|
export { deleteProbe, useDeleteProbeMutation } from './hooks/useDeleteProbeMutation';
|
|
59
61
|
export type { DeleteProbeTemplateErrorResponse, DeleteProbeTemplateMutationPathParams, DeleteProbeTemplateMutationProps, DeleteProbeTemplateMutationQueryParams, DeleteProbeTemplateOkResponse, DeleteProbeTemplateProps, } from './hooks/useDeleteProbeTemplateMutation';
|
|
@@ -210,6 +212,8 @@ export type { ListK8sInfrasV2ErrorResponse, ListK8sInfrasV2MutationProps, ListK8
|
|
|
210
212
|
export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sInfrasV2Mutation';
|
|
211
213
|
export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody, } from './hooks/useListMachineChaosInfraQuery';
|
|
212
214
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
215
|
+
export type { ListPipelineOnboardingErrorResponse, ListPipelineOnboardingOkResponse, ListPipelineOnboardingProps, ListPipelineOnboardingQueryQueryParams, } from './hooks/useListPipelineOnboardingQuery';
|
|
216
|
+
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
213
217
|
export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListProbeTemplateProps, ListProbeTemplateQueryQueryParams, } from './hooks/useListProbeTemplateQuery';
|
|
214
218
|
export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
|
|
215
219
|
export type { ListProbesErrorResponse, ListProbesOkResponse, ListProbesProps, ListProbesQueryQueryParams, } from './hooks/useListProbesQuery';
|
|
@@ -320,6 +324,7 @@ export type { ActionsUserDetails } from './schemas/ActionsUserDetails';
|
|
|
320
324
|
export type { ApiGetHarnessInfrastructureResponse } from './schemas/ApiGetHarnessInfrastructureResponse';
|
|
321
325
|
export type { ApiHarnessInfrastructure } from './schemas/ApiHarnessInfrastructure';
|
|
322
326
|
export type { ApiListHarnessInfrastructureResponse } from './schemas/ApiListHarnessInfrastructureResponse';
|
|
327
|
+
export type { ApiResponseErrorCode } from './schemas/ApiResponseErrorCode';
|
|
323
328
|
export type { ApiRestError } from './schemas/ApiRestError';
|
|
324
329
|
export type { ApplicationchaostargetListApplicationResponse } from './schemas/ApplicationchaostargetListApplicationResponse';
|
|
325
330
|
export type { ApplicationchaostargetListFunctionResponse } from './schemas/ApplicationchaostargetListFunctionResponse';
|
|
@@ -659,10 +664,14 @@ export type { NetworkmapListTargetServiceResponse } from './schemas/NetworkmapLi
|
|
|
659
664
|
export type { NetworkmapRetryExperimentCreationRequest } from './schemas/NetworkmapRetryExperimentCreationRequest';
|
|
660
665
|
export type { NetworkmapRetryExperimentCreationResponse } from './schemas/NetworkmapRetryExperimentCreationResponse';
|
|
661
666
|
export type { NetworkmapTargetServiceDetails } from './schemas/NetworkmapTargetServiceDetails';
|
|
667
|
+
export type { PipelineonboardingInfrastructureOnboardingMapping } from './schemas/PipelineonboardingInfrastructureOnboardingMapping';
|
|
668
|
+
export type { PipelineonboardingListPipelineOnboardingResponse } from './schemas/PipelineonboardingListPipelineOnboardingResponse';
|
|
662
669
|
export type { PipelineonboardingPipelineChaosOnboardingCheckResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse';
|
|
663
670
|
export type { PipelineonboardingPipelineChaosOnboardingStatusResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse';
|
|
664
671
|
export type { PipelineonboardingPipelineChaosOnboardingTaskRequest } from './schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest';
|
|
665
672
|
export type { PipelineonboardingPipelineChaosOnboardingTaskResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingTaskResponse';
|
|
673
|
+
export type { PipelineonboardingPipelineOnboarding } from './schemas/PipelineonboardingPipelineOnboarding';
|
|
674
|
+
export type { PipelineonboardingSelectedExperiment } from './schemas/PipelineonboardingSelectedExperiment';
|
|
666
675
|
export type { PipelineonboardingStatus } from './schemas/PipelineonboardingStatus';
|
|
667
676
|
export type { PipelinesBulkExperimentRunResponse } from './schemas/PipelinesBulkExperimentRunResponse';
|
|
668
677
|
export type { PipelinesChaosPipelineInput } from './schemas/PipelinesChaosPipelineInput';
|
|
@@ -26,6 +26,7 @@ export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGa
|
|
|
26
26
|
export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
|
|
27
27
|
export { deleteInputSet, useDeleteInputSetMutation } from './hooks/useDeleteInputSetMutation';
|
|
28
28
|
export { deleteMachineChaosInfra, useDeleteMachineChaosInfraMutation, } from './hooks/useDeleteMachineChaosInfraMutation';
|
|
29
|
+
export { deletePipelineOnboarding, useDeletePipelineOnboardingMutation, } from './hooks/useDeletePipelineOnboardingMutation';
|
|
29
30
|
export { deleteProbe, useDeleteProbeMutation } from './hooks/useDeleteProbeMutation';
|
|
30
31
|
export { deleteProbeTemplate, useDeleteProbeTemplateMutation, } from './hooks/useDeleteProbeTemplateMutation';
|
|
31
32
|
export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/useDeleteRecommendationMutation';
|
|
@@ -104,6 +105,7 @@ export { listInfraV2, useListInfraV2Query } from './hooks/useListInfraV2Query';
|
|
|
104
105
|
export { listInputSet, useListInputSetQuery } from './hooks/useListInputSetQuery';
|
|
105
106
|
export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sInfrasV2Mutation';
|
|
106
107
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
108
|
+
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
107
109
|
export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
|
|
108
110
|
export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
|
|
109
111
|
export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ApiResponseErrorCode = 'PIPELINE_NOT_FOUND';
|
package/dist/chaos-manager/src/services/schemas/PipelineonboardingListPipelineOnboardingResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { PipelineonboardingInfrastructureOnboardingMapping } from '../schemas/PipelineonboardingInfrastructureOnboardingMapping';
|
|
2
|
+
import type { PipelineonboardingSelectedExperiment } from '../schemas/PipelineonboardingSelectedExperiment';
|
|
1
3
|
import type { PipelineonboardingStatus } from '../schemas/PipelineonboardingStatus';
|
|
2
4
|
export interface PipelineonboardingPipelineChaosOnboardingStatusResponse {
|
|
3
5
|
accountID: string;
|
|
4
6
|
createdAt?: number;
|
|
5
7
|
createdBy?: string;
|
|
8
|
+
infrastructureOnboardingMappings?: PipelineonboardingInfrastructureOnboardingMapping[];
|
|
6
9
|
infrastructures?: {
|
|
7
10
|
[key: string]: {
|
|
8
11
|
[key: string]: {
|
|
@@ -14,7 +17,9 @@ export interface PipelineonboardingPipelineChaosOnboardingStatusResponse {
|
|
|
14
17
|
message?: string;
|
|
15
18
|
orgID?: string;
|
|
16
19
|
pipelineIdentity?: string;
|
|
20
|
+
pipelineName?: string;
|
|
17
21
|
projectID?: string;
|
|
22
|
+
selectedExperiments?: PipelineonboardingSelectedExperiment[];
|
|
18
23
|
services?: {
|
|
19
24
|
[key: string]: {
|
|
20
25
|
[key: string]: any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PipelineonboardingSelectedExperiment } from '../schemas/PipelineonboardingSelectedExperiment';
|
|
2
|
+
import type { PipelineonboardingStatus } from '../schemas/PipelineonboardingStatus';
|
|
3
|
+
export interface PipelineonboardingPipelineOnboarding {
|
|
4
|
+
accountID: string;
|
|
5
|
+
createdAt?: number;
|
|
6
|
+
createdBy?: string;
|
|
7
|
+
infrastructures?: {
|
|
8
|
+
[key: string]: {
|
|
9
|
+
[key: string]: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
isRemoved: boolean;
|
|
15
|
+
message?: string;
|
|
16
|
+
orgID?: string;
|
|
17
|
+
pipelineIdentity?: string;
|
|
18
|
+
pipelineName?: string;
|
|
19
|
+
projectID?: string;
|
|
20
|
+
selectedExperiments?: PipelineonboardingSelectedExperiment[];
|
|
21
|
+
services?: {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
singleClickOnboardings?: string[];
|
|
27
|
+
status?: PipelineonboardingStatus;
|
|
28
|
+
updatedAt?: number;
|
|
29
|
+
updatedBy?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED