@harnessio/react-pipeline-swagger-service-client 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.d.ts +25 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetApprovalInstanceQuery.d.ts +23 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetApprovalInstanceQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetHarnessApprovalInstanceAuthorizationQuery.d.ts +18 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetHarnessApprovalInstanceAuthorizationQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/index.d.ts +13 -0
- package/dist/pipeline-swagger-service/src/services/index.js +3 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceDetailsDto.d.ts +3 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceDetailsDto.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceResponse.d.ts +20 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApproverInput.d.ts +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApproverInput.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalActivityRequest.d.ts +6 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalActivityRequest.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalInstanceAuthorization.d.ts +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalInstanceAuthorization.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseHarnessApprovalInstanceAuthorization.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseHarnessApprovalInstanceAuthorization.js +1 -0
- package/package.json +1 -1
package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseApprovalInstanceResponse } from '../schemas/ResponseApprovalInstanceResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { HarnessApprovalActivityRequest } from '../schemas/HarnessApprovalActivityRequest';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface AddHarnessApprovalActivityMutationPathParams {
|
|
9
|
+
approvalInstanceId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AddHarnessApprovalActivityMutationQueryParams {
|
|
12
|
+
accountIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type AddHarnessApprovalActivityRequestBody = HarnessApprovalActivityRequest;
|
|
15
|
+
export type AddHarnessApprovalActivityOkResponse = ResponseWithPagination<ResponseApprovalInstanceResponse>;
|
|
16
|
+
export type AddHarnessApprovalActivityErrorResponse = Failure | Error;
|
|
17
|
+
export interface AddHarnessApprovalActivityProps extends AddHarnessApprovalActivityMutationPathParams, Omit<FetcherOptions<AddHarnessApprovalActivityMutationQueryParams, AddHarnessApprovalActivityRequestBody>, 'url'> {
|
|
18
|
+
queryParams: AddHarnessApprovalActivityMutationQueryParams;
|
|
19
|
+
body: AddHarnessApprovalActivityRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function addHarnessApprovalActivity(props: AddHarnessApprovalActivityProps): Promise<AddHarnessApprovalActivityOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function useAddHarnessApprovalActivityMutation(options?: Omit<UseMutationOptions<AddHarnessApprovalActivityOkResponse, AddHarnessApprovalActivityErrorResponse, AddHarnessApprovalActivityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AddHarnessApprovalActivityOkResponse, AddHarnessApprovalActivityErrorResponse, AddHarnessApprovalActivityProps, unknown>;
|
package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.js
ADDED
|
@@ -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 '../../../../fetcher/index.js';
|
|
6
|
+
export function addHarnessApprovalActivity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/approvals/${props.approvalInstanceId}/harness/activity`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useAddHarnessApprovalActivityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => addHarnessApprovalActivity(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseApprovalInstanceResponse } from '../schemas/ResponseApprovalInstanceResponse';
|
|
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 GetApprovalInstanceQueryPathParams {
|
|
8
|
+
approvalInstanceId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetApprovalInstanceQueryQueryParams {
|
|
11
|
+
accountIdentifier?: string;
|
|
12
|
+
refresh?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type GetApprovalInstanceOkResponse = ResponseWithPagination<ResponseApprovalInstanceResponse>;
|
|
15
|
+
export type GetApprovalInstanceErrorResponse = Failure | Error;
|
|
16
|
+
export interface GetApprovalInstanceProps extends GetApprovalInstanceQueryPathParams, Omit<FetcherOptions<GetApprovalInstanceQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: GetApprovalInstanceQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function getApprovalInstance(props: GetApprovalInstanceProps): Promise<GetApprovalInstanceOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetApprovalInstanceQuery(props: GetApprovalInstanceProps, options?: Omit<UseQueryOptions<GetApprovalInstanceOkResponse, GetApprovalInstanceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetApprovalInstanceOkResponse, GetApprovalInstanceErrorResponse>;
|
|
@@ -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 getApprovalInstance(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/approvals/${props.approvalInstanceId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetApprovalInstanceQuery(props, options) {
|
|
13
|
+
return useQuery(['getApprovalInstance', props.approvalInstanceId, props.queryParams], ({ signal }) => getApprovalInstance(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseHarnessApprovalInstanceAuthorization } from '../schemas/ResponseHarnessApprovalInstanceAuthorization';
|
|
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 GetHarnessApprovalInstanceAuthorizationQueryPathParams {
|
|
8
|
+
approvalInstanceId: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetHarnessApprovalInstanceAuthorizationOkResponse = ResponseWithPagination<ResponseHarnessApprovalInstanceAuthorization>;
|
|
11
|
+
export type GetHarnessApprovalInstanceAuthorizationErrorResponse = Failure | Error;
|
|
12
|
+
export interface GetHarnessApprovalInstanceAuthorizationProps extends GetHarnessApprovalInstanceAuthorizationQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function getHarnessApprovalInstanceAuthorization(props: GetHarnessApprovalInstanceAuthorizationProps): Promise<GetHarnessApprovalInstanceAuthorizationOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare function useGetHarnessApprovalInstanceAuthorizationQuery(props: GetHarnessApprovalInstanceAuthorizationProps, options?: Omit<UseQueryOptions<GetHarnessApprovalInstanceAuthorizationOkResponse, GetHarnessApprovalInstanceAuthorizationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetHarnessApprovalInstanceAuthorizationOkResponse, GetHarnessApprovalInstanceAuthorizationErrorResponse>;
|
|
@@ -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 getHarnessApprovalInstanceAuthorization(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/approvals/${props.approvalInstanceId}/harness/authorization`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetHarnessApprovalInstanceAuthorizationQuery(props, options) {
|
|
13
|
+
return useQuery(['getHarnessApprovalInstanceAuthorization', props.approvalInstanceId], ({ signal }) => getHarnessApprovalInstanceAuthorization(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
+
export type { AddHarnessApprovalActivityErrorResponse, AddHarnessApprovalActivityMutationPathParams, AddHarnessApprovalActivityMutationQueryParams, AddHarnessApprovalActivityOkResponse, AddHarnessApprovalActivityProps, AddHarnessApprovalActivityRequestBody, } from './hooks/useAddHarnessApprovalActivityMutation';
|
|
3
|
+
export { addHarnessApprovalActivity, useAddHarnessApprovalActivityMutation, } from './hooks/useAddHarnessApprovalActivityMutation';
|
|
2
4
|
export type { CanRetryExecutionErrorResponse, CanRetryExecutionOkResponse, CanRetryExecutionProps, CanRetryExecutionQueryPathParams, CanRetryExecutionQueryQueryParams, } from './hooks/useCanRetryExecutionQuery';
|
|
3
5
|
export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
|
|
4
6
|
export type { ClonePipelineErrorResponse, ClonePipelineMutationQueryParams, ClonePipelineOkResponse, ClonePipelineProps, ClonePipelineRequestBody, } from './hooks/useClonePipelineMutation';
|
|
@@ -17,6 +19,8 @@ export type { DeleteTriggerErrorResponse, DeleteTriggerMutationPathParams, Delet
|
|
|
17
19
|
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
18
20
|
export type { GetAnnotationFullContentErrorResponse, GetAnnotationFullContentOkResponse, GetAnnotationFullContentProps, GetAnnotationFullContentQueryPathParams, GetAnnotationFullContentQueryQueryParams, } from './hooks/useGetAnnotationFullContentQuery';
|
|
19
21
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
22
|
+
export type { GetApprovalInstanceErrorResponse, GetApprovalInstanceOkResponse, GetApprovalInstanceProps, GetApprovalInstanceQueryPathParams, GetApprovalInstanceQueryQueryParams, } from './hooks/useGetApprovalInstanceQuery';
|
|
23
|
+
export { getApprovalInstance, useGetApprovalInstanceQuery, } from './hooks/useGetApprovalInstanceQuery';
|
|
20
24
|
export type { GetBatchInputSetsMetadataErrorResponse, GetBatchInputSetsMetadataMutationQueryParams, GetBatchInputSetsMetadataOkResponse, GetBatchInputSetsMetadataProps, GetBatchInputSetsMetadataRequestBody, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
21
25
|
export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
22
26
|
export type { GetExecutionBranchesListErrorResponse, GetExecutionBranchesListOkResponse, GetExecutionBranchesListProps, GetExecutionBranchesListQueryQueryParams, } from './hooks/useGetExecutionBranchesListQuery';
|
|
@@ -35,6 +39,8 @@ export type { GetFilterErrorResponse, GetFilterOkResponse, GetFilterProps, GetFi
|
|
|
35
39
|
export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
|
|
36
40
|
export type { GetGitTriggerEventDetailsErrorResponse, GetGitTriggerEventDetailsOkResponse, GetGitTriggerEventDetailsProps, } from './hooks/useGetGitTriggerEventDetailsQuery';
|
|
37
41
|
export { getGitTriggerEventDetails, useGetGitTriggerEventDetailsQuery, } from './hooks/useGetGitTriggerEventDetailsQuery';
|
|
42
|
+
export type { GetHarnessApprovalInstanceAuthorizationErrorResponse, GetHarnessApprovalInstanceAuthorizationOkResponse, GetHarnessApprovalInstanceAuthorizationProps, GetHarnessApprovalInstanceAuthorizationQueryPathParams, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
|
|
43
|
+
export { getHarnessApprovalInstanceAuthorization, useGetHarnessApprovalInstanceAuthorizationQuery, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
|
|
38
44
|
export type { GetInputSetForPipelineErrorResponse, GetInputSetForPipelineOkResponse, GetInputSetForPipelineProps, GetInputSetForPipelineQueryPathParams, GetInputSetForPipelineQueryQueryParams, } from './hooks/useGetInputSetForPipelineQuery';
|
|
39
45
|
export { getInputSetForPipeline, useGetInputSetForPipelineQuery, } from './hooks/useGetInputSetForPipelineQuery';
|
|
40
46
|
export type { GetInputSetsListForPipelineErrorResponse, GetInputSetsListForPipelineOkResponse, GetInputSetsListForPipelineProps, GetInputSetsListForPipelineQueryQueryParams, } from './hooks/useGetInputSetsListForPipelineQuery';
|
|
@@ -101,6 +107,9 @@ export type { AbortedBy } from './schemas/AbortedBy';
|
|
|
101
107
|
export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
|
|
102
108
|
export type { AdviserIssuer } from './schemas/AdviserIssuer';
|
|
103
109
|
export type { AnnotationContentResponseDto } from './schemas/AnnotationContentResponseDto';
|
|
110
|
+
export type { ApprovalInstanceDetailsDto } from './schemas/ApprovalInstanceDetailsDto';
|
|
111
|
+
export type { ApprovalInstanceResponse } from './schemas/ApprovalInstanceResponse';
|
|
112
|
+
export type { ApproverInput } from './schemas/ApproverInput';
|
|
104
113
|
export type { BatchInputSetsApiRequest } from './schemas/BatchInputSetsApiRequest';
|
|
105
114
|
export type { BuildDetails } from './schemas/BuildDetails';
|
|
106
115
|
export type { CacheResponseMetadata } from './schemas/CacheResponseMetadata';
|
|
@@ -132,6 +141,8 @@ export type { FilterDto } from './schemas/FilterDto';
|
|
|
132
141
|
export type { FilterProperties } from './schemas/FilterProperties';
|
|
133
142
|
export type { GovernanceMetadata } from './schemas/GovernanceMetadata';
|
|
134
143
|
export type { GraphLayoutNode } from './schemas/GraphLayoutNode';
|
|
144
|
+
export type { HarnessApprovalActivityRequest } from './schemas/HarnessApprovalActivityRequest';
|
|
145
|
+
export type { HarnessApprovalInstanceAuthorization } from './schemas/HarnessApprovalInstanceAuthorization';
|
|
135
146
|
export type { InputSetDetails } from './schemas/InputSetDetails';
|
|
136
147
|
export type { InputSetError } from './schemas/InputSetError';
|
|
137
148
|
export type { InputSetErrorResponse } from './schemas/InputSetErrorResponse';
|
|
@@ -189,10 +200,12 @@ export type { PublicAccessResponse } from './schemas/PublicAccessResponse';
|
|
|
189
200
|
export type { RecentExecutionInfoDto } from './schemas/RecentExecutionInfoDto';
|
|
190
201
|
export type { ResourceScope } from './schemas/ResourceScope';
|
|
191
202
|
export type { ResponseAnnotationContentResponseDto } from './schemas/ResponseAnnotationContentResponseDto';
|
|
203
|
+
export type { ResponseApprovalInstanceResponse } from './schemas/ResponseApprovalInstanceResponse';
|
|
192
204
|
export type { ResponseBoolean } from './schemas/ResponseBoolean';
|
|
193
205
|
export type { ResponseExecutionDataResponse } from './schemas/ResponseExecutionDataResponse';
|
|
194
206
|
export type { ResponseExecutionGraph } from './schemas/ResponseExecutionGraph';
|
|
195
207
|
export type { ResponseFilterDto } from './schemas/ResponseFilterDto';
|
|
208
|
+
export type { ResponseHarnessApprovalInstanceAuthorization } from './schemas/ResponseHarnessApprovalInstanceAuthorization';
|
|
196
209
|
export type { ResponseInputSetResponse } from './schemas/ResponseInputSetResponse';
|
|
197
210
|
export type { ResponseInputSetTemplateResponse } from './schemas/ResponseInputSetTemplateResponse';
|
|
198
211
|
export type { ResponseMapStringMapStringListString } from './schemas/ResponseMapStringMapStringListString';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { addHarnessApprovalActivity, useAddHarnessApprovalActivityMutation, } from './hooks/useAddHarnessApprovalActivityMutation';
|
|
1
2
|
export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
|
|
2
3
|
export { clonePipeline, useClonePipelineMutation } from './hooks/useClonePipelineMutation';
|
|
3
4
|
export { createInputSetForPipeline, useCreateInputSetForPipelineMutation, } from './hooks/useCreateInputSetForPipelineMutation';
|
|
@@ -7,6 +8,7 @@ export { deleteFilter, useDeleteFilterMutation } from './hooks/useDeleteFilterMu
|
|
|
7
8
|
export { deleteInputSetForPipeline, useDeleteInputSetForPipelineMutation, } from './hooks/useDeleteInputSetForPipelineMutation';
|
|
8
9
|
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
9
10
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
11
|
+
export { getApprovalInstance, useGetApprovalInstanceQuery, } from './hooks/useGetApprovalInstanceQuery';
|
|
10
12
|
export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
11
13
|
export { getExecutionBranchesList, useGetExecutionBranchesListQuery, } from './hooks/useGetExecutionBranchesListQuery';
|
|
12
14
|
export { getExecutionData, useGetExecutionDataQuery } from './hooks/useGetExecutionDataQuery';
|
|
@@ -16,6 +18,7 @@ export { getExecutionRepositoriesList, useGetExecutionRepositoriesListQuery, } f
|
|
|
16
18
|
export { getFilterList, useGetFilterListQuery } from './hooks/useGetFilterListQuery';
|
|
17
19
|
export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
|
|
18
20
|
export { getGitTriggerEventDetails, useGetGitTriggerEventDetailsQuery, } from './hooks/useGetGitTriggerEventDetailsQuery';
|
|
21
|
+
export { getHarnessApprovalInstanceAuthorization, useGetHarnessApprovalInstanceAuthorizationQuery, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
|
|
19
22
|
export { getInputSetForPipeline, useGetInputSetForPipelineQuery, } from './hooks/useGetInputSetForPipelineQuery';
|
|
20
23
|
export { getInputSetsListForPipeline, useGetInputSetsListForPipelineQuery, } from './hooks/useGetInputSetsListForPipelineQuery';
|
|
21
24
|
export { getInputsetYamlV2, useGetInputsetYamlV2Query } from './hooks/useGetInputsetYamlV2Query';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ApprovalInstanceDetailsDto } from '../schemas/ApprovalInstanceDetailsDto';
|
|
2
|
+
export interface ApprovalInstanceResponse {
|
|
3
|
+
/**
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
createdAt?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @format int64
|
|
9
|
+
*/
|
|
10
|
+
deadline?: number;
|
|
11
|
+
details: ApprovalInstanceDetailsDto;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
lastModifiedAt?: number;
|
|
18
|
+
status: 'ABORTED' | 'APPROVED' | 'EXPIRED' | 'FAILED' | 'REJECTED' | 'WAITING';
|
|
19
|
+
type: 'CustomApproval' | 'HarnessApproval' | 'JiraApproval' | 'ServiceNowApproval';
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApprovalInstanceResponse } from '../schemas/ApprovalInstanceResponse';
|
|
2
|
+
export interface ResponseApprovalInstanceResponse {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: ApprovalInstanceResponse;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HarnessApprovalInstanceAuthorization } from '../schemas/HarnessApprovalInstanceAuthorization';
|
|
2
|
+
export interface ResponseHarnessApprovalInstanceAuthorization {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: HarnessApprovalInstanceAuthorization;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED