@harnessio/react-pipeline-swagger-service-client 1.10.0 → 1.12.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/pipeline-swagger-service/src/services/hooks/useCreateInputSetForPipelineMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useCreateOverlayInputSetForPipelineMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useCreateTriggerMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useGetWorkflowGraphQuery.d.ts +28 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetWorkflowGraphQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateInputSetForPipelineMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/index.d.ts +7 -1
- package/dist/pipeline-swagger-service/src/services/index.js +1 -0
- package/dist/pipeline-swagger-service/src/services/requestBodies/UpdateTriggerBodyRequestBody.d.ts +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/BatchInputSetsApiRequest.d.ts +1 -1
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseWorkflowGraph.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseWorkflowGraph.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/WorkflowGraph.d.ts +10 -0
- package/dist/pipeline-swagger-service/src/services/schemas/WorkflowGraph.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/WorkflowGraphNode.d.ts +16 -0
- package/dist/pipeline-swagger-service/src/services/schemas/WorkflowGraphNode.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/WorkflowGraphRelation.d.ts +6 -0
- package/dist/pipeline-swagger-service/src/services/schemas/WorkflowGraphRelation.js +4 -0
- package/package.json +1 -1
- package/dist/pipeline-swagger-service/src/services/requestBodies/CreateTriggerBodyRequestBody.d.ts +0 -1
- /package/dist/pipeline-swagger-service/src/services/requestBodies/{CreateTriggerBodyRequestBody.js → UpdateTriggerBodyRequestBody.js} +0 -0
package/dist/pipeline-swagger-service/src/services/hooks/useCreateInputSetForPipelineMutation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseInputSetResponse } from '../schemas/ResponseInputSetResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface CreateInputSetForPipelineMutationQueryParams {
|
|
@@ -28,7 +28,7 @@ export interface CreateInputSetForPipelineMutationQueryParams {
|
|
|
28
28
|
*/
|
|
29
29
|
InputSetVersion?: string;
|
|
30
30
|
}
|
|
31
|
-
export type CreateInputSetForPipelineRequestBody =
|
|
31
|
+
export type CreateInputSetForPipelineRequestBody = UpdateTriggerBodyRequestBody;
|
|
32
32
|
export type CreateInputSetForPipelineOkResponse = ResponseWithPagination<ResponseInputSetResponse>;
|
|
33
33
|
export type CreateInputSetForPipelineErrorResponse = Failure | Error;
|
|
34
34
|
export interface CreateInputSetForPipelineProps extends Omit<FetcherOptions<CreateInputSetForPipelineMutationQueryParams, CreateInputSetForPipelineRequestBody>, 'url'> {
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseOverlayInputSetResponse } from '../schemas/ResponseOverlayInputSetResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface CreateOverlayInputSetForPipelineMutationQueryParams {
|
|
@@ -22,7 +22,7 @@ export interface CreateOverlayInputSetForPipelineMutationQueryParams {
|
|
|
22
22
|
repoName?: string;
|
|
23
23
|
isHarnessCodeRepo?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export type CreateOverlayInputSetForPipelineRequestBody =
|
|
25
|
+
export type CreateOverlayInputSetForPipelineRequestBody = UpdateTriggerBodyRequestBody;
|
|
26
26
|
export type CreateOverlayInputSetForPipelineOkResponse = ResponseWithPagination<ResponseOverlayInputSetResponse>;
|
|
27
27
|
export type CreateOverlayInputSetForPipelineErrorResponse = Failure | Error;
|
|
28
28
|
export interface CreateOverlayInputSetForPipelineProps extends Omit<FetcherOptions<CreateOverlayInputSetForPipelineMutationQueryParams, CreateOverlayInputSetForPipelineRequestBody>, 'url'> {
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseNgTriggerResponse } from '../schemas/ResponseNgTriggerResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface CreateTriggerMutationQueryParams {
|
|
@@ -13,7 +13,7 @@ export interface CreateTriggerMutationQueryParams {
|
|
|
13
13
|
ignoreError?: boolean;
|
|
14
14
|
withServiceV2?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export type CreateTriggerRequestBody =
|
|
16
|
+
export type CreateTriggerRequestBody = UpdateTriggerBodyRequestBody;
|
|
17
17
|
export type CreateTriggerOkResponse = ResponseWithPagination<ResponseNgTriggerResponse>;
|
|
18
18
|
export type CreateTriggerErrorResponse = Failure | Error;
|
|
19
19
|
export interface CreateTriggerProps extends Omit<FetcherOptions<CreateTriggerMutationQueryParams, CreateTriggerRequestBody>, 'url'> {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWorkflowGraph } from '../schemas/ResponseWorkflowGraph';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetWorkflowGraphQueryPathParams {
|
|
8
|
+
planExecutionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetWorkflowGraphQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
nodeExecutionId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @format int32
|
|
15
|
+
* @default 10
|
|
16
|
+
*/
|
|
17
|
+
depth?: number;
|
|
18
|
+
}
|
|
19
|
+
export type GetWorkflowGraphOkResponse = ResponseWithPagination<ResponseWorkflowGraph>;
|
|
20
|
+
export type GetWorkflowGraphErrorResponse = Failure | Error;
|
|
21
|
+
export interface GetWorkflowGraphProps extends GetWorkflowGraphQueryPathParams, Omit<FetcherOptions<GetWorkflowGraphQueryQueryParams, unknown>, 'url'> {
|
|
22
|
+
queryParams: GetWorkflowGraphQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getWorkflowGraph(props: GetWorkflowGraphProps): Promise<GetWorkflowGraphOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetWorkflowGraphQuery(props: GetWorkflowGraphProps, options?: Omit<UseQueryOptions<GetWorkflowGraphOkResponse, GetWorkflowGraphErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetWorkflowGraphOkResponse, GetWorkflowGraphErrorResponse>;
|
|
@@ -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 '../../../../fetcher/index.js';
|
|
6
|
+
export function getWorkflowGraph(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/pipelines/execution/${props.planExecutionId}/workflow-graph`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetWorkflowGraphQuery(props, options) {
|
|
13
|
+
return useQuery(['getWorkflowGraph', props.planExecutionId, props.queryParams], ({ signal }) => getWorkflowGraph(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/pipeline-swagger-service/src/services/hooks/useUpdateInputSetForPipelineMutation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseInputSetResponse } from '../schemas/ResponseInputSetResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface UpdateInputSetForPipelineMutationPathParams {
|
|
@@ -36,7 +36,7 @@ export interface UpdateInputSetForPipelineMutationQueryParams {
|
|
|
36
36
|
export interface UpdateInputSetForPipelineMutationHeaderParams {
|
|
37
37
|
'If-Match'?: string;
|
|
38
38
|
}
|
|
39
|
-
export type UpdateInputSetForPipelineRequestBody =
|
|
39
|
+
export type UpdateInputSetForPipelineRequestBody = UpdateTriggerBodyRequestBody;
|
|
40
40
|
export type UpdateInputSetForPipelineOkResponse = ResponseWithPagination<ResponseInputSetResponse>;
|
|
41
41
|
export type UpdateInputSetForPipelineErrorResponse = Failure | Error;
|
|
42
42
|
export interface UpdateInputSetForPipelineProps extends UpdateInputSetForPipelineMutationPathParams, Omit<FetcherOptions<UpdateInputSetForPipelineMutationQueryParams, UpdateInputSetForPipelineRequestBody, UpdateInputSetForPipelineMutationHeaderParams>, 'url'> {
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseNgTriggerResponse } from '../schemas/ResponseNgTriggerResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface UpdateTriggerMutationPathParams {
|
|
@@ -18,7 +18,7 @@ export interface UpdateTriggerMutationQueryParams {
|
|
|
18
18
|
export interface UpdateTriggerMutationHeaderParams {
|
|
19
19
|
'If-Match'?: string;
|
|
20
20
|
}
|
|
21
|
-
export type UpdateTriggerRequestBody =
|
|
21
|
+
export type UpdateTriggerRequestBody = UpdateTriggerBodyRequestBody;
|
|
22
22
|
export type UpdateTriggerOkResponse = ResponseWithPagination<ResponseNgTriggerResponse>;
|
|
23
23
|
export type UpdateTriggerErrorResponse = Failure | Error;
|
|
24
24
|
export interface UpdateTriggerProps extends UpdateTriggerMutationPathParams, Omit<FetcherOptions<UpdateTriggerMutationQueryParams, UpdateTriggerRequestBody, UpdateTriggerMutationHeaderParams>, 'url'> {
|
|
@@ -57,6 +57,8 @@ export type { GetTriggerListForTargetErrorResponse, GetTriggerListForTargetOkRes
|
|
|
57
57
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
58
58
|
export type { GetTriggerErrorResponse, GetTriggerOkResponse, GetTriggerProps, GetTriggerQueryPathParams, GetTriggerQueryQueryParams, } from './hooks/useGetTriggerQuery';
|
|
59
59
|
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
60
|
+
export type { GetWorkflowGraphErrorResponse, GetWorkflowGraphOkResponse, GetWorkflowGraphProps, GetWorkflowGraphQueryPathParams, GetWorkflowGraphQueryQueryParams, } from './hooks/useGetWorkflowGraphQuery';
|
|
61
|
+
export { getWorkflowGraph, useGetWorkflowGraphQuery } from './hooks/useGetWorkflowGraphQuery';
|
|
60
62
|
export type { HandleInterruptErrorResponse, HandleInterruptMutationPathParams, HandleInterruptMutationQueryParams, HandleInterruptOkResponse, HandleInterruptProps, } from './hooks/useHandleInterruptMutation';
|
|
61
63
|
export { handleInterrupt, useHandleInterruptMutation } from './hooks/useHandleInterruptMutation';
|
|
62
64
|
export type { HandleManualInterventionInterruptErrorResponse, HandleManualInterventionInterruptMutationPathParams, HandleManualInterventionInterruptMutationQueryParams, HandleManualInterventionInterruptOkResponse, HandleManualInterventionInterruptProps, } from './hooks/useHandleManualInterventionInterruptMutation';
|
|
@@ -79,9 +81,9 @@ export type { UpdateTriggerErrorResponse, UpdateTriggerMutationPathParams, Updat
|
|
|
79
81
|
export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTriggerMutation';
|
|
80
82
|
export type { UpdateTriggerStatusErrorResponse, UpdateTriggerStatusMutationPathParams, UpdateTriggerStatusMutationQueryParams, UpdateTriggerStatusOkResponse, UpdateTriggerStatusProps, } from './hooks/useUpdateTriggerStatusMutation';
|
|
81
83
|
export { updateTriggerStatus, useUpdateTriggerStatusMutation, } from './hooks/useUpdateTriggerStatusMutation';
|
|
82
|
-
export type { CreateTriggerBodyRequestBody } from './requestBodies/CreateTriggerBodyRequestBody';
|
|
83
84
|
export type { FilterDtoRequestBody } from './requestBodies/FilterDtoRequestBody';
|
|
84
85
|
export type { FilterPropertiesRequestBody } from './requestBodies/FilterPropertiesRequestBody';
|
|
86
|
+
export type { UpdateTriggerBodyRequestBody } from './requestBodies/UpdateTriggerBodyRequestBody';
|
|
85
87
|
export type { AbortedBy } from './schemas/AbortedBy';
|
|
86
88
|
export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
|
|
87
89
|
export type { AdviserIssuer } from './schemas/AdviserIssuer';
|
|
@@ -185,6 +187,7 @@ export type { ResponsePmsPipelineListRepoResponse } from './schemas/ResponsePmsP
|
|
|
185
187
|
export type { ResponsePmsPipelineSummaryResponse } from './schemas/ResponsePmsPipelineSummaryResponse';
|
|
186
188
|
export type { ResponseRetryHistoryResponseDto } from './schemas/ResponseRetryHistoryResponseDto';
|
|
187
189
|
export type { ResponseTriggerCatalogResponse } from './schemas/ResponseTriggerCatalogResponse';
|
|
190
|
+
export type { ResponseWorkflowGraph } from './schemas/ResponseWorkflowGraph';
|
|
188
191
|
export type { RetryExecutionMetadata } from './schemas/RetryExecutionMetadata';
|
|
189
192
|
export type { RetryHistoryResponseDto } from './schemas/RetryHistoryResponseDto';
|
|
190
193
|
export type { RetryInterruptConfig } from './schemas/RetryInterruptConfig';
|
|
@@ -210,3 +213,6 @@ export type { ValidationStatus } from './schemas/ValidationStatus';
|
|
|
210
213
|
export type { WebhookAutoRegistrationStatus } from './schemas/WebhookAutoRegistrationStatus';
|
|
211
214
|
export type { WebhookDetails } from './schemas/WebhookDetails';
|
|
212
215
|
export type { WebhookInfo } from './schemas/WebhookInfo';
|
|
216
|
+
export type { WorkflowGraph } from './schemas/WorkflowGraph';
|
|
217
|
+
export type { WorkflowGraphNode } from './schemas/WorkflowGraphNode';
|
|
218
|
+
export type { WorkflowGraphRelation } from './schemas/WorkflowGraphRelation';
|
|
@@ -27,6 +27,7 @@ export { getTriggerCatalog, useGetTriggerCatalogQuery } from './hooks/useGetTrig
|
|
|
27
27
|
export { getTriggerDetails, useGetTriggerDetailsQuery } from './hooks/useGetTriggerDetailsQuery';
|
|
28
28
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
29
29
|
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
30
|
+
export { getWorkflowGraph, useGetWorkflowGraphQuery } from './hooks/useGetWorkflowGraphQuery';
|
|
30
31
|
export { handleInterrupt, useHandleInterruptMutation } from './hooks/useHandleInterruptMutation';
|
|
31
32
|
export { handleManualInterventionInterrupt, useHandleManualInterventionInterruptMutation, } from './hooks/useHandleManualInterventionInterruptMutation';
|
|
32
33
|
export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/useHandleStageInterruptMutation';
|
package/dist/pipeline-swagger-service/src/services/requestBodies/UpdateTriggerBodyRequestBody.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UpdateTriggerBodyRequestBody = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WorkflowGraphNode } from '../schemas/WorkflowGraphNode';
|
|
2
|
+
import type { WorkflowGraphRelation } from '../schemas/WorkflowGraphRelation';
|
|
3
|
+
export interface WorkflowGraph {
|
|
4
|
+
data?: {
|
|
5
|
+
[key: string]: WorkflowGraphNode;
|
|
6
|
+
};
|
|
7
|
+
relation?: {
|
|
8
|
+
[key: string]: WorkflowGraphRelation;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface WorkflowGraphNode {
|
|
2
|
+
identifier?: string;
|
|
3
|
+
inputs?: {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
name?: string;
|
|
9
|
+
outputs?: {
|
|
10
|
+
[key: string]: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
status?: 'ABORTED' | 'APPROVAL_REJECTED' | 'APPROVAL_WAITING' | 'ASYNC_WAITING' | 'DISCONTINUING' | 'ERRORED' | 'EXPIRED' | 'FAILED' | 'FREEZE_FAILED' | 'IGNORE_FAILED' | 'INPUT_WAITING' | 'INTERVENTION_WAITING' | 'NO_OP' | 'PAUSED' | 'PAUSING' | 'QUEUED' | 'QUEUED_EXECUTION_CONCURRENCY_REACHED' | 'QUEUED_GLOBAL_INFRA_CAPACITY_REACHED' | 'QUEUED_LICENSE_LIMIT_REACHED' | 'QUEUED_PLAN_CREATION' | 'QUEUED_STEP_LIMIT_REACHED' | 'RESOURCE_WAITING' | 'RUNNING' | 'SKIPPED' | 'STARTING_PLAN_CREATION' | 'STARTING_QUEUED_STEP' | 'SUCCEEDED' | 'SUSPENDED' | 'TASK_WAITING' | 'TIMED_WAITING' | 'UNRECOGNIZED' | 'UPLOAD_WAITING' | 'WAIT_STEP_RUNNING';
|
|
15
|
+
uuid?: string;
|
|
16
|
+
}
|
package/package.json
CHANGED
package/dist/pipeline-swagger-service/src/services/requestBodies/CreateTriggerBodyRequestBody.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CreateTriggerBodyRequestBody = string;
|