@harnessio/react-chaos-manager-client 0.16.1 → 0.16.3
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/index.d.ts +0 -16
- package/dist/chaos-manager/src/services/index.js +0 -4
- package/dist/chaos-manager/src/services/schemas/ChaoshubListFaultsResponse.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationEventRequest.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesListProbeResponse.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chaos-manager/src/services/hooks/useDeleteEventWatcherMutation.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useDeleteEventWatcherMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useGetEventWatcherQuery.d.ts +0 -27
- package/dist/chaos-manager/src/services/hooks/useGetEventWatcherQuery.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useListEventWatcherQuery.d.ts +0 -32
- package/dist/chaos-manager/src/services/hooks/useListEventWatcherQuery.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useRegisterEventWatcherMutation.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useRegisterEventWatcherMutation.js +0 -14
- package/dist/chaos-manager/src/services/schemas/EventWatcherDeleteEventWatcherResponse.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/EventWatcherDeleteEventWatcherResponse.js +0 -4
- package/dist/chaos-manager/src/services/schemas/EventWatcherEventWatcherDetails.d.ts +0 -52
- package/dist/chaos-manager/src/services/schemas/EventWatcherEventWatcherDetails.js +0 -1
- package/dist/chaos-manager/src/services/schemas/EventWatcherEventWatcherStatus.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/EventWatcherEventWatcherStatus.js +0 -4
- package/dist/chaos-manager/src/services/schemas/EventWatcherEventWatcherType.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/EventWatcherEventWatcherType.js +0 -4
- package/dist/chaos-manager/src/services/schemas/EventWatcherIdentifiers.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/EventWatcherIdentifiers.js +0 -4
- package/dist/chaos-manager/src/services/schemas/EventWatcherListEventWatchersResponse.d.ts +0 -7
- package/dist/chaos-manager/src/services/schemas/EventWatcherListEventWatchersResponse.js +0 -1
- package/dist/chaos-manager/src/services/schemas/EventWatcherRegisterEventWatcherRequest.d.ts +0 -42
- package/dist/chaos-manager/src/services/schemas/EventWatcherRegisterEventWatcherRequest.js +0 -1
- package/dist/chaos-manager/src/services/schemas/EventWatcherRegisterEventWatcherResponse.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/EventWatcherRegisterEventWatcherResponse.js +0 -4
|
@@ -36,8 +36,6 @@ export type { DeleteActionTemplateErrorResponse, DeleteActionTemplateMutationPat
|
|
|
36
36
|
export { deleteActionTemplate, useDeleteActionTemplateMutation, } from './hooks/useDeleteActionTemplateMutation';
|
|
37
37
|
export type { DeleteChaosV2ExperimentErrorResponse, DeleteChaosV2ExperimentMutationPathParams, DeleteChaosV2ExperimentMutationProps, DeleteChaosV2ExperimentMutationQueryParams, DeleteChaosV2ExperimentOkResponse, DeleteChaosV2ExperimentProps, } from './hooks/useDeleteChaosV2ExperimentMutation';
|
|
38
38
|
export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
|
|
39
|
-
export type { DeleteEventWatcherErrorResponse, DeleteEventWatcherMutationPathParams, DeleteEventWatcherMutationProps, DeleteEventWatcherMutationQueryParams, DeleteEventWatcherOkResponse, DeleteEventWatcherProps, } from './hooks/useDeleteEventWatcherMutation';
|
|
40
|
-
export { deleteEventWatcher, useDeleteEventWatcherMutation, } from './hooks/useDeleteEventWatcherMutation';
|
|
41
39
|
export type { DeleteFaultTemplateErrorResponse, DeleteFaultTemplateMutationPathParams, DeleteFaultTemplateMutationProps, DeleteFaultTemplateMutationQueryParams, DeleteFaultTemplateOkResponse, DeleteFaultTemplateProps, } from './hooks/useDeleteFaultTemplateMutation';
|
|
42
40
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
43
41
|
export type { DeleteGamedayV2ErrorResponse, DeleteGamedayV2MutationPathParams, DeleteGamedayV2MutationProps, DeleteGamedayV2MutationQueryParams, DeleteGamedayV2OkResponse, DeleteGamedayV2Props, } from './hooks/useDeleteGamedayV2Mutation';
|
|
@@ -84,8 +82,6 @@ export type { GetChaosV2ExperimentVariablesErrorResponse, GetChaosV2ExperimentVa
|
|
|
84
82
|
export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
85
83
|
export type { GetConnectorForInfraErrorResponse, GetConnectorForInfraOkResponse, GetConnectorForInfraProps, GetConnectorForInfraQueryPathParams, GetConnectorForInfraQueryQueryParams, } from './hooks/useGetConnectorForInfraQuery';
|
|
86
84
|
export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
|
|
87
|
-
export type { GetEventWatcherErrorResponse, GetEventWatcherOkResponse, GetEventWatcherProps, GetEventWatcherQueryPathParams, GetEventWatcherQueryQueryParams, } from './hooks/useGetEventWatcherQuery';
|
|
88
|
-
export { getEventWatcher, useGetEventWatcherQuery } from './hooks/useGetEventWatcherQuery';
|
|
89
85
|
export type { GetExperimentHelperImageVersionErrorResponse, GetExperimentHelperImageVersionOkResponse, GetExperimentHelperImageVersionProps, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
|
90
86
|
export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
|
91
87
|
export type { GetExperimentRunTimelineViewErrorResponse, GetExperimentRunTimelineViewOkResponse, GetExperimentRunTimelineViewProps, GetExperimentRunTimelineViewQueryPathParams, GetExperimentRunTimelineViewQueryQueryParams, } from './hooks/useGetExperimentRunTimelineViewQuery';
|
|
@@ -154,8 +150,6 @@ export type { ListChaosHubErrorResponse, ListChaosHubOkResponse, ListChaosHubPro
|
|
|
154
150
|
export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
|
|
155
151
|
export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkResponse, ListChaosV2ExperimentProps, ListChaosV2ExperimentQueryQueryParams, } from './hooks/useListChaosV2ExperimentQuery';
|
|
156
152
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
157
|
-
export type { ListEventWatcherErrorResponse, ListEventWatcherOkResponse, ListEventWatcherProps, ListEventWatcherQueryQueryParams, } from './hooks/useListEventWatcherQuery';
|
|
158
|
-
export { listEventWatcher, useListEventWatcherQuery } from './hooks/useListEventWatcherQuery';
|
|
159
153
|
export type { ListExperimentsWithActiveInfrasMinimalNotificationErrorResponse, ListExperimentsWithActiveInfrasMinimalNotificationOkResponse, ListExperimentsWithActiveInfrasMinimalNotificationProps, ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
160
154
|
export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
161
155
|
export type { ListFaultErrorResponse, ListFaultOkResponse, ListFaultProps, ListFaultQueryQueryParams, } from './hooks/useListFaultQuery';
|
|
@@ -206,8 +200,6 @@ export type { OnboardingConfirmNetworkMapErrorResponse, OnboardingConfirmNetwork
|
|
|
206
200
|
export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
|
|
207
201
|
export type { RecommendationEventErrorResponse, RecommendationEventMutationProps, RecommendationEventOkResponse, RecommendationEventProps, RecommendationEventRequestBody, } from './hooks/useRecommendationEventMutation';
|
|
208
202
|
export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
|
|
209
|
-
export type { RegisterEventWatcherErrorResponse, RegisterEventWatcherMutationProps, RegisterEventWatcherMutationQueryParams, RegisterEventWatcherOkResponse, RegisterEventWatcherProps, RegisterEventWatcherRequestBody, } from './hooks/useRegisterEventWatcherMutation';
|
|
210
|
-
export { registerEventWatcher, useRegisterEventWatcherMutation, } from './hooks/useRegisterEventWatcherMutation';
|
|
211
203
|
export type { RegisterInfraV2ErrorResponse, RegisterInfraV2MutationProps, RegisterInfraV2MutationQueryParams, RegisterInfraV2OkResponse, RegisterInfraV2Props, RegisterInfraV2RequestBody, } from './hooks/useRegisterInfraV2Mutation';
|
|
212
204
|
export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
|
|
213
205
|
export type { RetryExperimentCreationErrorResponse, RetryExperimentCreationMutationPathParams, RetryExperimentCreationMutationProps, RetryExperimentCreationMutationQueryParams, RetryExperimentCreationOkResponse, RetryExperimentCreationProps, RetryExperimentCreationRequestBody, } from './hooks/useRetryExperimentCreationMutation';
|
|
@@ -376,14 +368,6 @@ export type { DatabaseResourceList } from './schemas/DatabaseResourceList';
|
|
|
376
368
|
export type { DatabaseResourceRequirements } from './schemas/DatabaseResourceRequirements';
|
|
377
369
|
export type { DatabaseServiceCollection } from './schemas/DatabaseServiceCollection';
|
|
378
370
|
export type { DatabaseServiceIdentity } from './schemas/DatabaseServiceIdentity';
|
|
379
|
-
export type { EventWatcherDeleteEventWatcherResponse } from './schemas/EventWatcherDeleteEventWatcherResponse';
|
|
380
|
-
export type { EventWatcherEventWatcherDetails } from './schemas/EventWatcherEventWatcherDetails';
|
|
381
|
-
export type { EventWatcherEventWatcherStatus } from './schemas/EventWatcherEventWatcherStatus';
|
|
382
|
-
export type { EventWatcherEventWatcherType } from './schemas/EventWatcherEventWatcherType';
|
|
383
|
-
export type { EventWatcherIdentifiers } from './schemas/EventWatcherIdentifiers';
|
|
384
|
-
export type { EventWatcherListEventWatchersResponse } from './schemas/EventWatcherListEventWatchersResponse';
|
|
385
|
-
export type { EventWatcherRegisterEventWatcherRequest } from './schemas/EventWatcherRegisterEventWatcherRequest';
|
|
386
|
-
export type { EventWatcherRegisterEventWatcherResponse } from './schemas/EventWatcherRegisterEventWatcherResponse';
|
|
387
371
|
export type { ExperimentSaveChaosExperimentResponse } from './schemas/ExperimentSaveChaosExperimentResponse';
|
|
388
372
|
export type { Gamedayrunv2ApprovalStatus } from './schemas/Gamedayrunv2ApprovalStatus';
|
|
389
373
|
export type { Gamedayrunv2PrerequisiteStatus } from './schemas/Gamedayrunv2PrerequisiteStatus';
|
|
@@ -17,7 +17,6 @@ export { createV2Onboarding, useCreateV2OnboardingMutation, } from './hooks/useC
|
|
|
17
17
|
export { deleteAction, useDeleteActionMutation } from './hooks/useDeleteActionMutation';
|
|
18
18
|
export { deleteActionTemplate, useDeleteActionTemplateMutation, } from './hooks/useDeleteActionTemplateMutation';
|
|
19
19
|
export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
|
|
20
|
-
export { deleteEventWatcher, useDeleteEventWatcherMutation, } from './hooks/useDeleteEventWatcherMutation';
|
|
21
20
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
22
21
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
23
22
|
export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
|
|
@@ -41,7 +40,6 @@ export { getChaosV2ExperimentRunInternalApi, useGetChaosV2ExperimentRunInternalA
|
|
|
41
40
|
export { getChaosV2ExperimentRun, useGetChaosV2ExperimentRunQuery, } from './hooks/useGetChaosV2ExperimentRunQuery';
|
|
42
41
|
export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
43
42
|
export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
|
|
44
|
-
export { getEventWatcher, useGetEventWatcherQuery } from './hooks/useGetEventWatcherQuery';
|
|
45
43
|
export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
|
46
44
|
export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
|
|
47
45
|
export { getExperimentRunsOverviewStats, useGetExperimentRunsOverviewStatsQuery, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
|
|
@@ -76,7 +74,6 @@ export { listApplication, useListApplicationQuery } from './hooks/useListApplica
|
|
|
76
74
|
export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hooks/useListChaosEnabledInfraV2Query';
|
|
77
75
|
export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
|
|
78
76
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
79
|
-
export { listEventWatcher, useListEventWatcherQuery } from './hooks/useListEventWatcherQuery';
|
|
80
77
|
export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
81
78
|
export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
|
|
82
79
|
export { listFaultTemplate, useListFaultTemplateQuery } from './hooks/useListFaultTemplateQuery';
|
|
@@ -102,7 +99,6 @@ export { onboardingConfirmExperimentCreation, useOnboardingConfirmExperimentCrea
|
|
|
102
99
|
export { onboardingConfirmExperimentRun, useOnboardingConfirmExperimentRunMutation, } from './hooks/useOnboardingConfirmExperimentRunMutation';
|
|
103
100
|
export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
|
|
104
101
|
export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
|
|
105
|
-
export { registerEventWatcher, useRegisterEventWatcherMutation, } from './hooks/useRegisterEventWatcherMutation';
|
|
106
102
|
export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
|
|
107
103
|
export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
|
|
108
104
|
export { runChaosV2Experiment, useRunChaosV2ExperimentMutation, } from './hooks/useRunChaosV2ExperimentMutation';
|
|
@@ -3,6 +3,6 @@ import type { ChaoshubresourcesChaosHubResource } from '../schemas/Chaoshubresou
|
|
|
3
3
|
import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
|
|
4
4
|
export interface ChaoshubListFaultsResponse {
|
|
5
5
|
categoryCount?: ChaoshubFaultCategoryCount[];
|
|
6
|
-
|
|
6
|
+
data?: ChaoshubresourcesChaosHubResource[];
|
|
7
7
|
pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
|
|
8
8
|
}
|
package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export interface InfraV2KubernetesInfrastructureV2Details {
|
|
|
35
35
|
infraType?: InfraV2InfraType;
|
|
36
36
|
insecureSkipVerify?: boolean;
|
|
37
37
|
installationType?: InfraV2InstallationType;
|
|
38
|
+
isAIEnabled?: boolean;
|
|
38
39
|
isChaosEnabled?: boolean;
|
|
39
40
|
k8sConnectorID?: string;
|
|
40
41
|
label?: {
|
|
@@ -9,6 +9,7 @@ import type { V1Toleration } from '../schemas/V1Toleration';
|
|
|
9
9
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
10
10
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
11
11
|
export interface InfraV2RegisterInfrastructureV2Request {
|
|
12
|
+
aiEnabled?: boolean;
|
|
12
13
|
annotation?: {
|
|
13
14
|
[key: string]: string;
|
|
14
15
|
};
|
package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { V1Toleration } from '../schemas/V1Toleration';
|
|
|
6
6
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
7
7
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
8
8
|
export interface InfraV2UpdateKubernetesInfrastructureV2Request {
|
|
9
|
+
aiEnabled?: boolean;
|
|
9
10
|
annotation?: {
|
|
10
11
|
[key: string]: string;
|
|
11
12
|
};
|
|
@@ -4,7 +4,6 @@ import type { RecommendationProbePayload } from '../schemas/RecommendationProbeP
|
|
|
4
4
|
export interface RecommendationEventRequest {
|
|
5
5
|
environmentID?: string;
|
|
6
6
|
faultPayload?: RecommendationFaultPayload;
|
|
7
|
-
id?: string;
|
|
8
7
|
identifiers?: RecommendationIdentifiers;
|
|
9
8
|
infraID?: string;
|
|
10
9
|
probePayload?: RecommendationProbePayload;
|
|
@@ -9,6 +9,7 @@ export interface TypesGetProbeResponse {
|
|
|
9
9
|
createdAt?: number;
|
|
10
10
|
createdBy?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
|
|
11
11
|
description?: string;
|
|
12
|
+
identity?: string;
|
|
12
13
|
infrastructureType?: TypesInfrastructureType;
|
|
13
14
|
isEnabled?: boolean;
|
|
14
15
|
name?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
|
|
2
1
|
import type { TypesGetProbeResponse } from '../schemas/TypesGetProbeResponse';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
|
|
3
3
|
export interface TypesListProbeResponse {
|
|
4
|
+
data?: TypesGetProbeResponse[];
|
|
4
5
|
pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
|
|
5
|
-
probes?: TypesGetProbeResponse[];
|
|
6
6
|
totalNoOfProbes?: number;
|
|
7
7
|
}
|
|
@@ -6,6 +6,7 @@ import type { TypesProbeType } from '../schemas/TypesProbeType';
|
|
|
6
6
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
7
7
|
export interface TypesProbeRequest {
|
|
8
8
|
description?: string;
|
|
9
|
+
identity?: string;
|
|
9
10
|
infrastructureType?: TypesInfrastructureType;
|
|
10
11
|
isEnabled?: boolean;
|
|
11
12
|
name?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-chaos-manager-client",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"keywords": [],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prebuild": "rimraf dist",
|
|
27
|
-
"build": "yarn generate && tsc",
|
|
27
|
+
"build": "rm -rf src/services && yarn generate && tsc",
|
|
28
28
|
"generate": "oats import --config='./oats.config.ts'",
|
|
29
29
|
"fmt": "prettier --write ./index.ts"
|
|
30
30
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { EventWatcherDeleteEventWatcherResponse } from '../schemas/EventWatcherDeleteEventWatcherResponse';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface DeleteEventWatcherMutationPathParams {
|
|
6
|
-
identity: string;
|
|
7
|
-
environmentIdentifier: string;
|
|
8
|
-
}
|
|
9
|
-
export interface DeleteEventWatcherMutationQueryParams {
|
|
10
|
-
accountIdentifier: string;
|
|
11
|
-
organizationIdentifier: string;
|
|
12
|
-
projectIdentifier: string;
|
|
13
|
-
}
|
|
14
|
-
export type DeleteEventWatcherOkResponse = EventWatcherDeleteEventWatcherResponse;
|
|
15
|
-
export type DeleteEventWatcherErrorResponse = ApiRestError;
|
|
16
|
-
export interface DeleteEventWatcherProps extends DeleteEventWatcherMutationPathParams, Omit<FetcherOptions<DeleteEventWatcherMutationQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: DeleteEventWatcherMutationQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export interface DeleteEventWatcherResponseContainer {
|
|
20
|
-
body: DeleteEventWatcherOkResponse;
|
|
21
|
-
headers: Headers;
|
|
22
|
-
}
|
|
23
|
-
export declare function deleteEventWatcher(props: DeleteEventWatcherProps): Promise<DeleteEventWatcherResponseContainer>;
|
|
24
|
-
export type DeleteEventWatcherMutationProps<T extends keyof DeleteEventWatcherProps> = Omit<DeleteEventWatcherProps, T> & Partial<Pick<DeleteEventWatcherProps, T>>;
|
|
25
|
-
/**
|
|
26
|
-
* Delete a event watcher
|
|
27
|
-
*/
|
|
28
|
-
export declare function useDeleteEventWatcherMutation<T extends keyof DeleteEventWatcherProps>(props: Pick<Partial<DeleteEventWatcherProps>, T>, options?: Omit<UseMutationOptions<DeleteEventWatcherResponseContainer, DeleteEventWatcherErrorResponse, DeleteEventWatcherMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteEventWatcherResponseContainer, ApiRestError, DeleteEventWatcherMutationProps<T>, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 deleteEventWatcher(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/eventwatcher/${props.environmentIdentifier}/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete a event watcher
|
|
11
|
-
*/
|
|
12
|
-
export function useDeleteEventWatcherMutation(props, options) {
|
|
13
|
-
return useMutation((mutateProps) => deleteEventWatcher(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { EventWatcherEventWatcherDetails } from '../schemas/EventWatcherEventWatcherDetails';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface GetEventWatcherQueryPathParams {
|
|
6
|
-
identity: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetEventWatcherQueryQueryParams {
|
|
9
|
-
accountIdentifier: string;
|
|
10
|
-
organizationIdentifier: string;
|
|
11
|
-
projectIdentifier: string;
|
|
12
|
-
environmentIdentifier: string;
|
|
13
|
-
}
|
|
14
|
-
export type GetEventWatcherOkResponse = EventWatcherEventWatcherDetails;
|
|
15
|
-
export type GetEventWatcherErrorResponse = ApiRestError;
|
|
16
|
-
export interface GetEventWatcherProps extends GetEventWatcherQueryPathParams, Omit<FetcherOptions<GetEventWatcherQueryQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: GetEventWatcherQueryQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export interface GetEventWatcherResponseContainer {
|
|
20
|
-
body: GetEventWatcherOkResponse;
|
|
21
|
-
headers: Headers;
|
|
22
|
-
}
|
|
23
|
-
export declare function getEventWatcher(props: GetEventWatcherProps): Promise<GetEventWatcherResponseContainer>;
|
|
24
|
-
/**
|
|
25
|
-
* Get event watcher
|
|
26
|
-
*/
|
|
27
|
-
export declare function useGetEventWatcherQuery(props: GetEventWatcherProps, options?: Omit<UseQueryOptions<GetEventWatcherResponseContainer, GetEventWatcherErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEventWatcherResponseContainer, ApiRestError>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getEventWatcher(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/eventwatcher/${props.identity}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get event watcher
|
|
11
|
-
*/
|
|
12
|
-
export function useGetEventWatcherQuery(props, options) {
|
|
13
|
-
return useQuery(['getEventWatcher', props.identity, props.queryParams], ({ signal }) => getEventWatcher(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { EventWatcherListEventWatchersResponse } from '../schemas/EventWatcherListEventWatchersResponse';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface ListEventWatcherQueryQueryParams {
|
|
6
|
-
accountIdentifier: string;
|
|
7
|
-
organizationIdentifier: string;
|
|
8
|
-
projectIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @default 0
|
|
11
|
-
*/
|
|
12
|
-
page: number;
|
|
13
|
-
/**
|
|
14
|
-
* @default 10
|
|
15
|
-
*/
|
|
16
|
-
limit: number;
|
|
17
|
-
search?: string;
|
|
18
|
-
}
|
|
19
|
-
export type ListEventWatcherOkResponse = EventWatcherListEventWatchersResponse;
|
|
20
|
-
export type ListEventWatcherErrorResponse = ApiRestError;
|
|
21
|
-
export interface ListEventWatcherProps extends Omit<FetcherOptions<ListEventWatcherQueryQueryParams, unknown>, 'url'> {
|
|
22
|
-
queryParams: ListEventWatcherQueryQueryParams;
|
|
23
|
-
}
|
|
24
|
-
export interface ListEventWatcherResponseContainer {
|
|
25
|
-
body: ListEventWatcherOkResponse;
|
|
26
|
-
headers: Headers;
|
|
27
|
-
}
|
|
28
|
-
export declare function listEventWatcher(props: ListEventWatcherProps): Promise<ListEventWatcherResponseContainer>;
|
|
29
|
-
/**
|
|
30
|
-
* List event watchers
|
|
31
|
-
*/
|
|
32
|
-
export declare function useListEventWatcherQuery(props: ListEventWatcherProps, options?: Omit<UseQueryOptions<ListEventWatcherResponseContainer, ListEventWatcherErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListEventWatcherResponseContainer, ApiRestError>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 listEventWatcher(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/eventwatcher`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* List event watchers
|
|
11
|
-
*/
|
|
12
|
-
export function useListEventWatcherQuery(props, options) {
|
|
13
|
-
return useQuery(['listEventWatcher', props.queryParams], ({ signal }) => listEventWatcher(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { EventWatcherRegisterEventWatcherResponse } from '../schemas/EventWatcherRegisterEventWatcherResponse';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import type { EventWatcherRegisterEventWatcherRequest } from '../schemas/EventWatcherRegisterEventWatcherRequest';
|
|
5
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
-
export interface RegisterEventWatcherMutationQueryParams {
|
|
7
|
-
correlationID?: string;
|
|
8
|
-
accountIdentifier: string;
|
|
9
|
-
organizationIdentifier: string;
|
|
10
|
-
projectIdentifier: string;
|
|
11
|
-
}
|
|
12
|
-
export type RegisterEventWatcherRequestBody = EventWatcherRegisterEventWatcherRequest;
|
|
13
|
-
export type RegisterEventWatcherOkResponse = EventWatcherRegisterEventWatcherResponse;
|
|
14
|
-
export type RegisterEventWatcherErrorResponse = ApiRestError;
|
|
15
|
-
export interface RegisterEventWatcherProps extends Omit<FetcherOptions<RegisterEventWatcherMutationQueryParams, RegisterEventWatcherRequestBody>, 'url'> {
|
|
16
|
-
queryParams: RegisterEventWatcherMutationQueryParams;
|
|
17
|
-
body: RegisterEventWatcherRequestBody;
|
|
18
|
-
}
|
|
19
|
-
export interface RegisterEventWatcherResponseContainer {
|
|
20
|
-
body: RegisterEventWatcherOkResponse;
|
|
21
|
-
headers: Headers;
|
|
22
|
-
}
|
|
23
|
-
export declare function registerEventWatcher(props: RegisterEventWatcherProps): Promise<RegisterEventWatcherResponseContainer>;
|
|
24
|
-
export type RegisterEventWatcherMutationProps<T extends keyof RegisterEventWatcherProps> = Omit<RegisterEventWatcherProps, T> & Partial<Pick<RegisterEventWatcherProps, T>>;
|
|
25
|
-
/**
|
|
26
|
-
* Register a new event watcher
|
|
27
|
-
*/
|
|
28
|
-
export declare function useRegisterEventWatcherMutation<T extends keyof RegisterEventWatcherProps>(props: Pick<Partial<RegisterEventWatcherProps>, T>, options?: Omit<UseMutationOptions<RegisterEventWatcherResponseContainer, RegisterEventWatcherErrorResponse, RegisterEventWatcherMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RegisterEventWatcherResponseContainer, ApiRestError, RegisterEventWatcherMutationProps<T>, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 registerEventWatcher(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/eventwatcher/register`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Register a new event watcher
|
|
11
|
-
*/
|
|
12
|
-
export function useRegisterEventWatcherMutation(props, options) {
|
|
13
|
-
return useMutation((mutateProps) => registerEventWatcher(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { InfraV2UserDetails } from '../schemas/InfraV2UserDetails';
|
|
2
|
-
import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
3
|
-
import type { EventWatcherEventWatcherType } from '../schemas/EventWatcherEventWatcherType';
|
|
4
|
-
import type { EventWatcherIdentifiers } from '../schemas/EventWatcherIdentifiers';
|
|
5
|
-
import type { ImageRegistryImageRegistryV2 } from '../schemas/ImageRegistryImageRegistryV2';
|
|
6
|
-
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
7
|
-
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
8
|
-
import type { EventWatcherEventWatcherStatus } from '../schemas/EventWatcherEventWatcherStatus';
|
|
9
|
-
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
10
|
-
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
11
|
-
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
12
|
-
export interface EventWatcherEventWatcherDetails {
|
|
13
|
-
annotation?: {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
16
|
-
containers?: string;
|
|
17
|
-
createdAt?: string;
|
|
18
|
-
createdBy?: InfraV2UserDetails;
|
|
19
|
-
deploymentType?: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
env?: InfraV2Env[];
|
|
22
|
-
environmentID?: string;
|
|
23
|
-
eventWatcherID?: string;
|
|
24
|
-
eventWatcherNamespace?: string;
|
|
25
|
-
eventWatcherType?: EventWatcherEventWatcherType;
|
|
26
|
-
identifier?: EventWatcherIdentifiers;
|
|
27
|
-
identity?: string;
|
|
28
|
-
imageRegistry?: ImageRegistryImageRegistryV2;
|
|
29
|
-
insecureSkipVerify?: boolean;
|
|
30
|
-
k8sConnectorID?: string;
|
|
31
|
-
label?: {
|
|
32
|
-
[key: string]: string;
|
|
33
|
-
};
|
|
34
|
-
lastHeartbeat?: number;
|
|
35
|
-
mtls?: InfraV2MtlsConfiguration;
|
|
36
|
-
name?: string;
|
|
37
|
-
nodeSelector?: {
|
|
38
|
-
[key: string]: string;
|
|
39
|
-
};
|
|
40
|
-
proxy?: InfraV2ProxyConfiguration;
|
|
41
|
-
runAsGroup?: number;
|
|
42
|
-
runAsUser?: number;
|
|
43
|
-
serviceAccount?: string;
|
|
44
|
-
status?: EventWatcherEventWatcherStatus;
|
|
45
|
-
tags?: string[];
|
|
46
|
-
tolerations?: V1Toleration[];
|
|
47
|
-
updatedAt?: string;
|
|
48
|
-
updatedBy?: InfraV2UserDetails;
|
|
49
|
-
version?: string;
|
|
50
|
-
volumeMounts?: V1VolumeMount[];
|
|
51
|
-
volumes?: InfraV2Volumes[];
|
|
52
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type EventWatcherEventWatcherStatus = 'ACTIVE' | 'INACTIVE' | 'PENDING';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type EventWatcherEventWatcherType = 'K8sWatcher';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EventWatcherEventWatcherDetails } from '../schemas/EventWatcherEventWatcherDetails';
|
|
2
|
-
import type { InfraV2Pagination } from '../schemas/InfraV2Pagination';
|
|
3
|
-
export interface EventWatcherListEventWatchersResponse {
|
|
4
|
-
eventWatchers?: EventWatcherEventWatcherDetails[];
|
|
5
|
-
pagination?: InfraV2Pagination;
|
|
6
|
-
totalNoOfEventWatchers?: number;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/chaos-manager/src/services/schemas/EventWatcherRegisterEventWatcherRequest.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
2
|
-
import type { EventWatcherEventWatcherType } from '../schemas/EventWatcherEventWatcherType';
|
|
3
|
-
import type { EventWatcherIdentifiers } from '../schemas/EventWatcherIdentifiers';
|
|
4
|
-
import type { ImageRegistryImageRegistryV2 } from '../schemas/ImageRegistryImageRegistryV2';
|
|
5
|
-
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
6
|
-
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
7
|
-
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
8
|
-
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
9
|
-
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
10
|
-
export interface EventWatcherRegisterEventWatcherRequest {
|
|
11
|
-
annotation?: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
containers?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
env?: InfraV2Env[];
|
|
17
|
-
environmentID?: string;
|
|
18
|
-
eventWatcherID?: string;
|
|
19
|
-
eventWatcherNamespace?: string;
|
|
20
|
-
eventWatcherType?: EventWatcherEventWatcherType;
|
|
21
|
-
identifier?: EventWatcherIdentifiers;
|
|
22
|
-
identity?: string;
|
|
23
|
-
imageRegistry?: ImageRegistryImageRegistryV2;
|
|
24
|
-
insecureSkipVerify?: boolean;
|
|
25
|
-
k8sConnectorID?: string;
|
|
26
|
-
label?: {
|
|
27
|
-
[key: string]: string;
|
|
28
|
-
};
|
|
29
|
-
mtls?: InfraV2MtlsConfiguration;
|
|
30
|
-
name?: string;
|
|
31
|
-
nodeSelector?: {
|
|
32
|
-
[key: string]: string;
|
|
33
|
-
};
|
|
34
|
-
proxy?: InfraV2ProxyConfiguration;
|
|
35
|
-
runAsGroup?: number;
|
|
36
|
-
runAsUser?: number;
|
|
37
|
-
serviceAccount?: string;
|
|
38
|
-
tags?: string[];
|
|
39
|
-
tolerations?: V1Toleration[];
|
|
40
|
-
volumeMounts?: V1VolumeMount[];
|
|
41
|
-
volumes?: InfraV2Volumes[];
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|