@harnessio/react-chaos-manager-client 1.18.1-beta.2 → 1.18.1-beta.4

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 (17) hide show
  1. package/dist/chaos-manager/src/services/hooks/useDeletePipelineOnboardingMutation.d.ts +27 -0
  2. package/dist/chaos-manager/src/services/hooks/useDeletePipelineOnboardingMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useListPipelineOnboardingQuery.d.ts +23 -0
  4. package/dist/chaos-manager/src/services/hooks/useListPipelineOnboardingQuery.js +14 -0
  5. package/dist/chaos-manager/src/services/index.d.ts +8 -0
  6. package/dist/chaos-manager/src/services/index.js +2 -0
  7. package/dist/chaos-manager/src/services/schemas/PipelineonboardingInfrastructureOnboardingMapping.d.ts +6 -0
  8. package/dist/chaos-manager/src/services/schemas/PipelineonboardingInfrastructureOnboardingMapping.js +4 -0
  9. package/dist/chaos-manager/src/services/schemas/PipelineonboardingListPipelineOnboardingResponse.d.ts +4 -0
  10. package/dist/chaos-manager/src/services/schemas/PipelineonboardingListPipelineOnboardingResponse.js +1 -0
  11. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse.d.ts +1 -0
  12. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse.d.ts +5 -0
  13. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineOnboarding.d.ts +30 -0
  14. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineOnboarding.js +1 -0
  15. package/dist/chaos-manager/src/services/schemas/PipelineonboardingSelectedExperiment.d.ts +10 -0
  16. package/dist/chaos-manager/src/services/schemas/PipelineonboardingSelectedExperiment.js +4 -0
  17. 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
+ }
@@ -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';
@@ -659,10 +663,14 @@ export type { NetworkmapListTargetServiceResponse } from './schemas/NetworkmapLi
659
663
  export type { NetworkmapRetryExperimentCreationRequest } from './schemas/NetworkmapRetryExperimentCreationRequest';
660
664
  export type { NetworkmapRetryExperimentCreationResponse } from './schemas/NetworkmapRetryExperimentCreationResponse';
661
665
  export type { NetworkmapTargetServiceDetails } from './schemas/NetworkmapTargetServiceDetails';
666
+ export type { PipelineonboardingInfrastructureOnboardingMapping } from './schemas/PipelineonboardingInfrastructureOnboardingMapping';
667
+ export type { PipelineonboardingListPipelineOnboardingResponse } from './schemas/PipelineonboardingListPipelineOnboardingResponse';
662
668
  export type { PipelineonboardingPipelineChaosOnboardingCheckResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse';
663
669
  export type { PipelineonboardingPipelineChaosOnboardingStatusResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse';
664
670
  export type { PipelineonboardingPipelineChaosOnboardingTaskRequest } from './schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest';
665
671
  export type { PipelineonboardingPipelineChaosOnboardingTaskResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingTaskResponse';
672
+ export type { PipelineonboardingPipelineOnboarding } from './schemas/PipelineonboardingPipelineOnboarding';
673
+ export type { PipelineonboardingSelectedExperiment } from './schemas/PipelineonboardingSelectedExperiment';
666
674
  export type { PipelineonboardingStatus } from './schemas/PipelineonboardingStatus';
667
675
  export type { PipelinesBulkExperimentRunResponse } from './schemas/PipelinesBulkExperimentRunResponse';
668
676
  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,6 @@
1
+ export interface PipelineonboardingInfrastructureOnboardingMapping {
2
+ environmentIdentity?: string;
3
+ identity?: string;
4
+ onboardingId?: string;
5
+ status?: string;
6
+ }
@@ -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,4 @@
1
+ import type { PipelineonboardingPipelineOnboarding } from '../schemas/PipelineonboardingPipelineOnboarding';
2
+ export interface PipelineonboardingListPipelineOnboardingResponse {
3
+ pipelineOnboardings?: PipelineonboardingPipelineOnboarding[];
4
+ }
@@ -8,6 +8,7 @@ export interface PipelineonboardingPipelineChaosOnboardingCheckResponse {
8
8
  };
9
9
  };
10
10
  message?: string;
11
+ name?: string;
11
12
  services?: {
12
13
  [key: string]: {
13
14
  [key: string]: any;
@@ -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,10 @@
1
+ export interface PipelineonboardingSelectedExperiment {
2
+ environmentIdentity?: string;
3
+ experimentId?: string;
4
+ identity?: string;
5
+ infraId?: string;
6
+ infrastructureIdentity?: string;
7
+ name?: string;
8
+ serviceNames?: string[];
9
+ tags?: string[];
10
+ }
@@ -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.18.1-beta.2",
3
+ "version": "1.18.1-beta.4",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",