@harnessio/react-chaos-manager-client 0.15.1 → 0.16.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/useCreateFaultTemplateMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useCreateFaultTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteFaultTemplateMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteFaultTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateFaultTemplateMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateFaultTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +20 -0
- package/dist/chaos-manager/src/services/index.js +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetFaultTemplateResponse.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesChaosHubResource.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultApplicationTarget.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultApplicationTarget.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultChaosParameter.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultChaosParameter.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultChaosSpec.d.ts +39 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultChaosSpec.js +1 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultConfigMapVolume.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultConfigMapVolume.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultHostPathVolume.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultHostPathVolume.js +1 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8SFault.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8SFault.js +1 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8SFaultSpec.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8SFaultSpec.js +1 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8STarget.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8STarget.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultSecretVolume.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultSecretVolume.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultTarget.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/K8sfaultTarget.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateCreateFaultTemplateResponse } from '../schemas/ChaosfaulttemplateCreateFaultTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ChaosfaulttemplateCreateFaultTemplateRequest } from '../schemas/ChaosfaulttemplateCreateFaultTemplateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateFaultTemplateMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
hubIdentity: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateFaultTemplateRequestBody = ChaosfaulttemplateCreateFaultTemplateRequest;
|
|
13
|
+
export type CreateFaultTemplateOkResponse = ChaosfaulttemplateCreateFaultTemplateResponse;
|
|
14
|
+
export type CreateFaultTemplateErrorResponse = ApiRestError;
|
|
15
|
+
export interface CreateFaultTemplateProps extends Omit<FetcherOptions<CreateFaultTemplateMutationQueryParams, CreateFaultTemplateRequestBody>, 'url'> {
|
|
16
|
+
queryParams: CreateFaultTemplateMutationQueryParams;
|
|
17
|
+
body: CreateFaultTemplateRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export interface CreateFaultTemplateResponseContainer {
|
|
20
|
+
body: CreateFaultTemplateOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function createFaultTemplate(props: CreateFaultTemplateProps): Promise<CreateFaultTemplateResponseContainer>;
|
|
24
|
+
export type CreateFaultTemplateMutationProps<T extends keyof CreateFaultTemplateProps> = Omit<CreateFaultTemplateProps, T> & Partial<Pick<CreateFaultTemplateProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Create fault templates in a hub based on tag
|
|
27
|
+
*/
|
|
28
|
+
export declare function useCreateFaultTemplateMutation<T extends keyof CreateFaultTemplateProps>(props: Pick<Partial<CreateFaultTemplateProps>, T>, options?: Omit<UseMutationOptions<CreateFaultTemplateResponseContainer, CreateFaultTemplateErrorResponse, CreateFaultTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateFaultTemplateResponseContainer, ApiRestError, CreateFaultTemplateMutationProps<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 createFaultTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/faults`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create fault templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateFaultTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createFaultTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 DeleteFaultTemplateMutationPathParams {
|
|
6
|
+
faultName: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteFaultTemplateMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteFaultTemplateOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
|
|
15
|
+
export type DeleteFaultTemplateErrorResponse = ApiRestError;
|
|
16
|
+
export interface DeleteFaultTemplateProps extends DeleteFaultTemplateMutationPathParams, Omit<FetcherOptions<DeleteFaultTemplateMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: DeleteFaultTemplateMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteFaultTemplateResponseContainer {
|
|
20
|
+
body: DeleteFaultTemplateOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function deleteFaultTemplate(props: DeleteFaultTemplateProps): Promise<DeleteFaultTemplateResponseContainer>;
|
|
24
|
+
export type DeleteFaultTemplateMutationProps<T extends keyof DeleteFaultTemplateProps> = Omit<DeleteFaultTemplateProps, T> & Partial<Pick<DeleteFaultTemplateProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Delete the fault templates in a hub based on tag
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteFaultTemplateMutation<T extends keyof DeleteFaultTemplateProps>(props: Pick<Partial<DeleteFaultTemplateProps>, T>, options?: Omit<UseMutationOptions<DeleteFaultTemplateResponseContainer, DeleteFaultTemplateErrorResponse, DeleteFaultTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteFaultTemplateResponseContainer, ApiRestError, DeleteFaultTemplateMutationProps<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 deleteFaultTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/faults/${props.faultName}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete the fault templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteFaultTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteFaultTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateUpdateFaultTemplateResponse } from '../schemas/ChaosfaulttemplateUpdateFaultTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface UpdateFaultTemplateMutationPathParams {
|
|
6
|
+
faultName: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateFaultTemplateMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateFaultTemplateOkResponse = ChaosfaulttemplateUpdateFaultTemplateResponse;
|
|
15
|
+
export type UpdateFaultTemplateErrorResponse = ApiRestError;
|
|
16
|
+
export interface UpdateFaultTemplateProps extends UpdateFaultTemplateMutationPathParams, Omit<FetcherOptions<UpdateFaultTemplateMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: UpdateFaultTemplateMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface UpdateFaultTemplateResponseContainer {
|
|
20
|
+
body: UpdateFaultTemplateOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function updateFaultTemplate(props: UpdateFaultTemplateProps): Promise<UpdateFaultTemplateResponseContainer>;
|
|
24
|
+
export type UpdateFaultTemplateMutationProps<T extends keyof UpdateFaultTemplateProps> = Omit<UpdateFaultTemplateProps, T> & Partial<Pick<UpdateFaultTemplateProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Update the fault templates in a hub based on tag
|
|
27
|
+
*/
|
|
28
|
+
export declare function useUpdateFaultTemplateMutation<T extends keyof UpdateFaultTemplateProps>(props: Pick<Partial<UpdateFaultTemplateProps>, T>, options?: Omit<UseMutationOptions<UpdateFaultTemplateResponseContainer, UpdateFaultTemplateErrorResponse, UpdateFaultTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateFaultTemplateResponseContainer, ApiRestError, UpdateFaultTemplateMutationProps<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 updateFaultTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/faults/${props.faultName}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update the fault templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateFaultTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateFaultTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -14,6 +14,8 @@ export type { CreateChaosExperimentPipelineErrorResponse, CreateChaosExperimentP
|
|
|
14
14
|
export { createChaosExperimentPipeline, useCreateChaosExperimentPipelineMutation, } from './hooks/useCreateChaosExperimentPipelineMutation';
|
|
15
15
|
export type { CreateChaosHubErrorResponse, CreateChaosHubMutationProps, CreateChaosHubMutationQueryParams, CreateChaosHubOkResponse, CreateChaosHubProps, CreateChaosHubRequestBody, } from './hooks/useCreateChaosHubMutation';
|
|
16
16
|
export { createChaosHub, useCreateChaosHubMutation } from './hooks/useCreateChaosHubMutation';
|
|
17
|
+
export type { CreateFaultTemplateErrorResponse, CreateFaultTemplateMutationProps, CreateFaultTemplateMutationQueryParams, CreateFaultTemplateOkResponse, CreateFaultTemplateProps, CreateFaultTemplateRequestBody, } from './hooks/useCreateFaultTemplateMutation';
|
|
18
|
+
export { createFaultTemplate, useCreateFaultTemplateMutation, } from './hooks/useCreateFaultTemplateMutation';
|
|
17
19
|
export type { CreateGamedayRunV2ErrorResponse, CreateGamedayRunV2MutationPathParams, CreateGamedayRunV2MutationProps, CreateGamedayRunV2MutationQueryParams, CreateGamedayRunV2OkResponse, CreateGamedayRunV2Props, } from './hooks/useCreateGamedayRunV2Mutation';
|
|
18
20
|
export { createGamedayRunV2, useCreateGamedayRunV2Mutation, } from './hooks/useCreateGamedayRunV2Mutation';
|
|
19
21
|
export type { CreateGamedayV2ErrorResponse, CreateGamedayV2MutationProps, CreateGamedayV2MutationQueryParams, CreateGamedayV2OkResponse, CreateGamedayV2Props, CreateGamedayV2RequestBody, } from './hooks/useCreateGamedayV2Mutation';
|
|
@@ -36,6 +38,8 @@ export type { DeleteChaosV2ExperimentErrorResponse, DeleteChaosV2ExperimentMutat
|
|
|
36
38
|
export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
|
|
37
39
|
export type { DeleteEventWatcherErrorResponse, DeleteEventWatcherMutationPathParams, DeleteEventWatcherMutationProps, DeleteEventWatcherMutationQueryParams, DeleteEventWatcherOkResponse, DeleteEventWatcherProps, } from './hooks/useDeleteEventWatcherMutation';
|
|
38
40
|
export { deleteEventWatcher, useDeleteEventWatcherMutation, } from './hooks/useDeleteEventWatcherMutation';
|
|
41
|
+
export type { DeleteFaultTemplateErrorResponse, DeleteFaultTemplateMutationPathParams, DeleteFaultTemplateMutationProps, DeleteFaultTemplateMutationQueryParams, DeleteFaultTemplateOkResponse, DeleteFaultTemplateProps, } from './hooks/useDeleteFaultTemplateMutation';
|
|
42
|
+
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
39
43
|
export type { DeleteGamedayV2ErrorResponse, DeleteGamedayV2MutationPathParams, DeleteGamedayV2MutationProps, DeleteGamedayV2MutationQueryParams, DeleteGamedayV2OkResponse, DeleteGamedayV2Props, } from './hooks/useDeleteGamedayV2Mutation';
|
|
40
44
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
41
45
|
export type { DeleteInfraV2ErrorResponse, DeleteInfraV2MutationPathParams, DeleteInfraV2MutationProps, DeleteInfraV2MutationQueryParams, DeleteInfraV2OkResponse, DeleteInfraV2Props, } from './hooks/useDeleteInfraV2Mutation';
|
|
@@ -230,6 +234,8 @@ export type { UpdateChaosV2CronExperimentErrorResponse, UpdateChaosV2CronExperim
|
|
|
230
234
|
export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
|
|
231
235
|
export type { UpdateEmissaryErrorResponse, UpdateEmissaryMutationPathParams, UpdateEmissaryMutationProps, UpdateEmissaryMutationQueryParams, UpdateEmissaryOkResponse, UpdateEmissaryProps, UpdateEmissaryRequestBody, } from './hooks/useUpdateEmissaryMutation';
|
|
232
236
|
export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
|
|
237
|
+
export type { UpdateFaultTemplateErrorResponse, UpdateFaultTemplateMutationPathParams, UpdateFaultTemplateMutationProps, UpdateFaultTemplateMutationQueryParams, UpdateFaultTemplateOkResponse, UpdateFaultTemplateProps, } from './hooks/useUpdateFaultTemplateMutation';
|
|
238
|
+
export { updateFaultTemplate, useUpdateFaultTemplateMutation, } from './hooks/useUpdateFaultTemplateMutation';
|
|
233
239
|
export type { UpdateGamedayRunPrerequisitesV2ErrorResponse, UpdateGamedayRunPrerequisitesV2MutationPathParams, UpdateGamedayRunPrerequisitesV2MutationProps, UpdateGamedayRunPrerequisitesV2MutationQueryParams, UpdateGamedayRunPrerequisitesV2OkResponse, UpdateGamedayRunPrerequisitesV2Props, UpdateGamedayRunPrerequisitesV2RequestBody, } from './hooks/useUpdateGamedayRunPrerequisitesV2Mutation';
|
|
234
240
|
export { updateGamedayRunPrerequisitesV2, useUpdateGamedayRunPrerequisitesV2Mutation, } from './hooks/useUpdateGamedayRunPrerequisitesV2Mutation';
|
|
235
241
|
export type { UpdateGamedayRunStakeHolderActionsV2ErrorResponse, UpdateGamedayRunStakeHolderActionsV2MutationPathParams, UpdateGamedayRunStakeHolderActionsV2MutationProps, UpdateGamedayRunStakeHolderActionsV2MutationQueryParams, UpdateGamedayRunStakeHolderActionsV2OkResponse, UpdateGamedayRunStakeHolderActionsV2Props, UpdateGamedayRunStakeHolderActionsV2RequestBody, } from './hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation';
|
|
@@ -316,11 +322,14 @@ export type { ChaosactiontemplateActionsTemplateCount } from './schemas/Chaosact
|
|
|
316
322
|
export type { ChaosactiontemplateChaosActionTemplate } from './schemas/ChaosactiontemplateChaosActionTemplate';
|
|
317
323
|
export type { ChaosfaulttemplateActionTemplate } from './schemas/ChaosfaulttemplateActionTemplate';
|
|
318
324
|
export type { ChaosfaulttemplateActionTemplateVariables } from './schemas/ChaosfaulttemplateActionTemplateVariables';
|
|
325
|
+
export type { ChaosfaulttemplateCreateFaultTemplateRequest } from './schemas/ChaosfaulttemplateCreateFaultTemplateRequest';
|
|
326
|
+
export type { ChaosfaulttemplateCreateFaultTemplateResponse } from './schemas/ChaosfaulttemplateCreateFaultTemplateResponse';
|
|
319
327
|
export type { ChaosfaulttemplateFaultTemplateVariables } from './schemas/ChaosfaulttemplateFaultTemplateVariables';
|
|
320
328
|
export type { ChaosfaulttemplateGetActionTemplateResponse } from './schemas/ChaosfaulttemplateGetActionTemplateResponse';
|
|
321
329
|
export type { ChaosfaulttemplateGetFaultTemplateResponse } from './schemas/ChaosfaulttemplateGetFaultTemplateResponse';
|
|
322
330
|
export type { ChaosfaulttemplateListActionTemplateResponse } from './schemas/ChaosfaulttemplateListActionTemplateResponse';
|
|
323
331
|
export type { ChaosfaulttemplateListFaultTemplateResponse } from './schemas/ChaosfaulttemplateListFaultTemplateResponse';
|
|
332
|
+
export type { ChaosfaulttemplateUpdateFaultTemplateResponse } from './schemas/ChaosfaulttemplateUpdateFaultTemplateResponse';
|
|
324
333
|
export type { ChaoshubFaultCategoryCount } from './schemas/ChaoshubFaultCategoryCount';
|
|
325
334
|
export type { ChaoshubListFaultsResponse } from './schemas/ChaoshubListFaultsResponse';
|
|
326
335
|
export type { ChaoshubresourcesChaosHubResource } from './schemas/ChaoshubresourcesChaosHubResource';
|
|
@@ -380,6 +389,7 @@ export type { Gamedayrunv2ApprovalStatus } from './schemas/Gamedayrunv2ApprovalS
|
|
|
380
389
|
export type { Gamedayrunv2PrerequisiteStatus } from './schemas/Gamedayrunv2PrerequisiteStatus';
|
|
381
390
|
export type { Gamedayv2GamedayRunStatus } from './schemas/Gamedayv2GamedayRunStatus';
|
|
382
391
|
export type { Gamedayv2StakeHolderRole } from './schemas/Gamedayv2StakeHolderRole';
|
|
392
|
+
export type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from './schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
|
|
383
393
|
export type { GithubComHarnessHceSaasGraphqlServerApiPagination } from './schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
|
|
384
394
|
export type { GithubComHarnessHceSaasGraphqlServerGraphModelIdentifiers } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelIdentifiers';
|
|
385
395
|
export type { GithubComHarnessHceSaasGraphqlServerGraphModelInfraFilterInput } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelInfraFilterInput';
|
|
@@ -467,6 +477,16 @@ export type { InputsetsUpdateInputSetResponse } from './schemas/InputsetsUpdateI
|
|
|
467
477
|
export type { IntstrIntOrString } from './schemas/IntstrIntOrString';
|
|
468
478
|
export type { IntstrType } from './schemas/IntstrType';
|
|
469
479
|
export type { K8sIoApimachineryPkgApisMetaV1ConditionStatus } from './schemas/K8sIoApimachineryPkgApisMetaV1ConditionStatus';
|
|
480
|
+
export type { K8sfaultApplicationTarget } from './schemas/K8sfaultApplicationTarget';
|
|
481
|
+
export type { K8sfaultChaosParameter } from './schemas/K8sfaultChaosParameter';
|
|
482
|
+
export type { K8sfaultChaosSpec } from './schemas/K8sfaultChaosSpec';
|
|
483
|
+
export type { K8sfaultConfigMapVolume } from './schemas/K8sfaultConfigMapVolume';
|
|
484
|
+
export type { K8sfaultHostPathVolume } from './schemas/K8sfaultHostPathVolume';
|
|
485
|
+
export type { K8sfaultK8SFault } from './schemas/K8sfaultK8SFault';
|
|
486
|
+
export type { K8sfaultK8SFaultSpec } from './schemas/K8sfaultK8SFaultSpec';
|
|
487
|
+
export type { K8sfaultK8STarget } from './schemas/K8sfaultK8STarget';
|
|
488
|
+
export type { K8sfaultSecretVolume } from './schemas/K8sfaultSecretVolume';
|
|
489
|
+
export type { K8sfaultTarget } from './schemas/K8sfaultTarget';
|
|
470
490
|
export type { K8sinfraGetInfraTokenResponse } from './schemas/K8sinfraGetInfraTokenResponse';
|
|
471
491
|
export type { K8sinfraUpdateEmissaryUrlRequest } from './schemas/K8sinfraUpdateEmissaryUrlRequest';
|
|
472
492
|
export type { K8sinfraUpdateEmissaryUrlResponse } from './schemas/K8sinfraUpdateEmissaryUrlResponse';
|
|
@@ -6,6 +6,7 @@ export { createAction, useCreateActionMutation } from './hooks/useCreateActionMu
|
|
|
6
6
|
export { createActionTemplate, useCreateActionTemplateMutation, } from './hooks/useCreateActionTemplateMutation';
|
|
7
7
|
export { createChaosExperimentPipeline, useCreateChaosExperimentPipelineMutation, } from './hooks/useCreateChaosExperimentPipelineMutation';
|
|
8
8
|
export { createChaosHub, useCreateChaosHubMutation } from './hooks/useCreateChaosHubMutation';
|
|
9
|
+
export { createFaultTemplate, useCreateFaultTemplateMutation, } from './hooks/useCreateFaultTemplateMutation';
|
|
9
10
|
export { createGamedayRunV2, useCreateGamedayRunV2Mutation, } from './hooks/useCreateGamedayRunV2Mutation';
|
|
10
11
|
export { createGamedayV2, useCreateGamedayV2Mutation } from './hooks/useCreateGamedayV2Mutation';
|
|
11
12
|
export { createInputSet, useCreateInputSetMutation } from './hooks/useCreateInputSetMutation';
|
|
@@ -17,6 +18,7 @@ export { deleteAction, useDeleteActionMutation } from './hooks/useDeleteActionMu
|
|
|
17
18
|
export { deleteActionTemplate, useDeleteActionTemplateMutation, } from './hooks/useDeleteActionTemplateMutation';
|
|
18
19
|
export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
|
|
19
20
|
export { deleteEventWatcher, useDeleteEventWatcherMutation, } from './hooks/useDeleteEventWatcherMutation';
|
|
21
|
+
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
20
22
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
21
23
|
export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
|
|
22
24
|
export { deleteInputSet, useDeleteInputSetMutation } from './hooks/useDeleteInputSetMutation';
|
|
@@ -114,6 +116,7 @@ export { updateActionTemplate, useUpdateActionTemplateMutation, } from './hooks/
|
|
|
114
116
|
export { updateChaosHub, useUpdateChaosHubMutation } from './hooks/useUpdateChaosHubMutation';
|
|
115
117
|
export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
|
|
116
118
|
export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
|
|
119
|
+
export { updateFaultTemplate, useUpdateFaultTemplateMutation, } from './hooks/useUpdateFaultTemplateMutation';
|
|
117
120
|
export { updateGamedayRunPrerequisitesV2, useUpdateGamedayRunPrerequisitesV2Mutation, } from './hooks/useUpdateGamedayRunPrerequisitesV2Mutation';
|
|
118
121
|
export { updateGamedayRunStakeHolderActionsV2, useUpdateGamedayRunStakeHolderActionsV2Mutation, } from './hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation';
|
|
119
122
|
export { updateGamedayRunV2, useUpdateGamedayRunV2Mutation, } from './hooks/useUpdateGamedayRunV2Mutation';
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
|
|
2
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
3
|
+
export interface ChaosfaulttemplateCreateFaultTemplateRequest {
|
|
4
|
+
description?: string;
|
|
5
|
+
identity?: string;
|
|
6
|
+
infras?: string[];
|
|
7
|
+
keywords?: string[];
|
|
8
|
+
name?: string;
|
|
9
|
+
platforms?: string[];
|
|
10
|
+
revision?: number;
|
|
11
|
+
spec?: K8sfaultK8SFaultSpec;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
variables?: TemplateVariable[];
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
|
|
2
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
3
|
+
export interface ChaosfaulttemplateCreateFaultTemplateResponse {
|
|
4
|
+
corelationID?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
hubID?: string;
|
|
7
|
+
identity?: string;
|
|
8
|
+
infras?: string[];
|
|
9
|
+
keywords?: string[];
|
|
10
|
+
name?: string;
|
|
11
|
+
platforms?: string[];
|
|
12
|
+
revision?: number;
|
|
13
|
+
spec?: K8sfaultK8SFaultSpec;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
variables?: TemplateVariable[];
|
|
16
|
+
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetFaultTemplateResponse.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate';
|
|
2
|
+
import type { K8sfaultK8SFault } from '../schemas/K8sfaultK8SFault';
|
|
2
3
|
export interface ChaosfaulttemplateGetFaultTemplateResponse {
|
|
3
4
|
corelationID?: string;
|
|
4
5
|
data?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate;
|
|
6
|
+
typed?: K8sfaultK8SFault;
|
|
5
7
|
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
|
|
2
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
3
|
+
export interface ChaosfaulttemplateUpdateFaultTemplateResponse {
|
|
4
|
+
corelationID?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
hubID?: string;
|
|
7
|
+
identity?: string;
|
|
8
|
+
infras?: string[];
|
|
9
|
+
keywords?: string[];
|
|
10
|
+
name?: string;
|
|
11
|
+
platforms?: string[];
|
|
12
|
+
revision?: number;
|
|
13
|
+
spec?: K8sfaultK8SFaultSpec;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
variables?: TemplateVariable[];
|
|
16
|
+
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -92,6 +92,10 @@ export interface ChaoshubresourcesChaosHubResource {
|
|
|
92
92
|
* Type: fault or experiment or probes
|
|
93
93
|
*/
|
|
94
94
|
resourceType?: string;
|
|
95
|
+
/**
|
|
96
|
+
* template yaml in encoded form (template.yaml)
|
|
97
|
+
*/
|
|
98
|
+
template?: string;
|
|
95
99
|
updatedAt?: number;
|
|
96
100
|
updatedBy?: string;
|
|
97
101
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { K8sfaultConfigMapVolume } from '../schemas/K8sfaultConfigMapVolume';
|
|
2
|
+
import type { V1SecurityContext } from '../schemas/V1SecurityContext';
|
|
3
|
+
import type { V1EnvVar } from '../schemas/V1EnvVar';
|
|
4
|
+
import type { K8sfaultHostPathVolume } from '../schemas/K8sfaultHostPathVolume';
|
|
5
|
+
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
6
|
+
import type { K8sfaultChaosParameter } from '../schemas/K8sfaultChaosParameter';
|
|
7
|
+
import type { V1PodSecurityContext } from '../schemas/V1PodSecurityContext';
|
|
8
|
+
import type { V1ResourceRequirements } from '../schemas/V1ResourceRequirements';
|
|
9
|
+
import type { K8sfaultSecretVolume } from '../schemas/K8sfaultSecretVolume';
|
|
10
|
+
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
11
|
+
export interface K8sfaultChaosSpec {
|
|
12
|
+
annotations?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
args?: string[];
|
|
16
|
+
command?: string[];
|
|
17
|
+
configMapVolume?: K8sfaultConfigMapVolume[];
|
|
18
|
+
containerSecurityContext?: V1SecurityContext;
|
|
19
|
+
env?: V1EnvVar[];
|
|
20
|
+
faultName?: string;
|
|
21
|
+
hostIPC?: boolean;
|
|
22
|
+
hostNetwork?: boolean;
|
|
23
|
+
hostPID?: boolean;
|
|
24
|
+
hostPathVolume?: K8sfaultHostPathVolume[];
|
|
25
|
+
image?: string;
|
|
26
|
+
imagePullPolicy?: V1PullPolicy;
|
|
27
|
+
imagePullSecrets?: string[];
|
|
28
|
+
labels?: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
nodeSelector?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
params?: K8sfaultChaosParameter[];
|
|
35
|
+
podSecurityContext?: V1PodSecurityContext;
|
|
36
|
+
resourceRequirements?: V1ResourceRequirements;
|
|
37
|
+
secretVolume?: K8sfaultSecretVolume[];
|
|
38
|
+
toleration?: V1Toleration;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
|
|
2
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
3
|
+
export interface K8sfaultK8SFault {
|
|
4
|
+
description?: string;
|
|
5
|
+
identity?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
revision?: number;
|
|
8
|
+
spec?: K8sfaultK8SFaultSpec;
|
|
9
|
+
tags?: string[];
|
|
10
|
+
variables?: TemplateVariable[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { K8sfaultApplicationTarget } from '../schemas/K8sfaultApplicationTarget';
|
|
2
|
+
import type { K8sfaultK8STarget } from '../schemas/K8sfaultK8STarget';
|
|
3
|
+
export interface K8sfaultTarget {
|
|
4
|
+
applicationSDK?: K8sfaultApplicationTarget;
|
|
5
|
+
k8sResource?: K8sfaultK8STarget[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED