@harnessio/react-rmg-service-client 0.59.0 → 0.62.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/rmg-service/src/services/hooks/useGetYamlSchemaQuery.d.ts +1 -1
- package/dist/rmg-service/src/services/hooks/useIngestWebhookSignalMutation.d.ts +21 -0
- package/dist/rmg-service/src/services/hooks/useIngestWebhookSignalMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessInputValidateMutation.d.ts +26 -0
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessInputValidateMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseListMutation.d.ts +33 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseListMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +16 -3
- package/dist/rmg-service/src/services/index.js +3 -1
- package/dist/rmg-service/src/services/requestBodies/ReleaseListRequestRequestBody.d.ts +7 -0
- package/dist/rmg-service/src/services/requestBodies/ReleaseListRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/responses/ReleaseListResponseResponse.d.ts +41 -0
- package/dist/rmg-service/src/services/responses/ReleaseListResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/ValidateOrchestrationProcessInputResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/ValidateOrchestrationProcessInputResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagInputVariable.d.ts +22 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagInputVariable.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagMetadata.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/CreateOrchestrationActivityRequestType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +2 -1
- package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityPipelineYaml.d.ts +20 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityWebhookYaml.d.ts +46 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/ProcessInputValidationResponse.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/ProcessInputValidationResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/ReleaseApprovalType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/StepInfoType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/WebhookErrorResponse.d.ts +12 -0
- package/dist/rmg-service/src/services/schemas/WebhookErrorResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookEventType.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookEventType.js +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalRequest.d.ts +4 -8
- package/dist/rmg-service/src/services/schemas/WebhookSignalResponse.d.ts +4 -3
- package/dist/rmg-service/src/services/schemas/WebhookSignalResponse.js +0 -3
- package/dist/rmg-service/src/services/schemas/WebhookSignalStatus.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalStatus.js +4 -0
- package/package.json +1 -1
- package/dist/rmg-service/src/services/hooks/useReceiveWebhookSignalMutation.d.ts +0 -21
- package/dist/rmg-service/src/services/hooks/useReceiveWebhookSignalMutation.js +0 -15
- package/dist/rmg-service/src/services/schemas/WebhookPipeline.d.ts +0 -6
- /package/dist/rmg-service/src/services/schemas/{WebhookPipeline.js → OrchestrationActivityWebhookYaml.js} +0 -0
|
@@ -5,7 +5,7 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface GetYamlSchemaQueryQueryParams {
|
|
6
6
|
orgIdentifier?: string;
|
|
7
7
|
projectIdentifier?: string;
|
|
8
|
-
entityType: 'PROCESS';
|
|
8
|
+
entityType: 'ACTIVITY' | 'PROCESS';
|
|
9
9
|
}
|
|
10
10
|
export interface GetYamlSchemaQueryHeaderParams {
|
|
11
11
|
'Harness-Account': string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookSignalResponse } from '../schemas/WebhookSignalResponse';
|
|
3
|
+
import type { WebhookErrorResponse } from '../schemas/WebhookErrorResponse';
|
|
4
|
+
import type { WebhookSignalRequest } from '../schemas/WebhookSignalRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface IngestWebhookSignalMutationHeaderParams {
|
|
8
|
+
'Harness-Account': string;
|
|
9
|
+
'X-Idempotency-Key': string;
|
|
10
|
+
}
|
|
11
|
+
export type IngestWebhookSignalRequestBody = WebhookSignalRequest;
|
|
12
|
+
export type IngestWebhookSignalOkResponse = ResponseWithPagination<WebhookSignalResponse>;
|
|
13
|
+
export type IngestWebhookSignalErrorResponse = WebhookErrorResponse;
|
|
14
|
+
export interface IngestWebhookSignalProps extends Omit<FetcherOptions<unknown, IngestWebhookSignalRequestBody, IngestWebhookSignalMutationHeaderParams>, 'url'> {
|
|
15
|
+
body: IngestWebhookSignalRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function ingestWebhookSignal(props: IngestWebhookSignalProps): Promise<IngestWebhookSignalOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Receives an inbound webhook signal, validates it, and queues it for processing via the outbox.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useIngestWebhookSignalMutation(options?: Omit<UseMutationOptions<IngestWebhookSignalOkResponse, IngestWebhookSignalErrorResponse, IngestWebhookSignalProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<IngestWebhookSignalOkResponse, WebhookErrorResponse, IngestWebhookSignalProps, 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 '../../../../fetcher/index.js';
|
|
6
|
+
export function ingestWebhookSignal(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/webhook/signal`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Receives an inbound webhook signal, validates it, and queues it for processing via the outbox.
|
|
11
|
+
*/
|
|
12
|
+
export function useIngestWebhookSignalMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => ingestWebhookSignal(mutateProps), options);
|
|
14
|
+
}
|
package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessInputValidateMutation.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ValidateOrchestrationProcessInputResponseResponse } from '../responses/ValidateOrchestrationProcessInputResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface PostOrchestrationProcessInputValidateMutationPathParams {
|
|
7
|
+
processIdentifier: string;
|
|
8
|
+
identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PostOrchestrationProcessInputValidateMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PostOrchestrationProcessInputValidateMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type PostOrchestrationProcessInputValidateOkResponse = ResponseWithPagination<ValidateOrchestrationProcessInputResponseResponse>;
|
|
18
|
+
export type PostOrchestrationProcessInputValidateErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface PostOrchestrationProcessInputValidateProps extends PostOrchestrationProcessInputValidateMutationPathParams, Omit<FetcherOptions<PostOrchestrationProcessInputValidateMutationQueryParams, unknown, PostOrchestrationProcessInputValidateMutationHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: PostOrchestrationProcessInputValidateMutationQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function postOrchestrationProcessInputValidate(props: PostOrchestrationProcessInputValidateProps): Promise<PostOrchestrationProcessInputValidateOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* On-demand cross-entity validation for a process input. Checks that all activity `with` keys are recognised (X4 warning) and that all required activity inputs are covered (X5 error). Returns HTTP 200 with a validation report regardless of outcome — never modifies any state.
|
|
25
|
+
*/
|
|
26
|
+
export declare function usePostOrchestrationProcessInputValidateMutation(options?: Omit<UseMutationOptions<PostOrchestrationProcessInputValidateOkResponse, PostOrchestrationProcessInputValidateErrorResponse, PostOrchestrationProcessInputValidateProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostOrchestrationProcessInputValidateOkResponse, import("..").Error, PostOrchestrationProcessInputValidateProps, unknown>;
|
package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessInputValidateMutation.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 postOrchestrationProcessInputValidate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/${props.processIdentifier}/input/${props.identifier}/validate`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* On-demand cross-entity validation for a process input. Checks that all activity `with` keys are recognised (X4 warning) and that all required activity inputs are covered (X5 error). Returns HTTP 200 with a validation report regardless of outcome — never modifies any state.
|
|
11
|
+
*/
|
|
12
|
+
export function usePostOrchestrationProcessInputValidateMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postOrchestrationProcessInputValidate(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ReleaseListResponseResponse } from '../responses/ReleaseListResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ReleaseListRequestRequestBody } from '../requestBodies/ReleaseListRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface PostReleaseListMutationQueryParams {
|
|
8
|
+
page?: number;
|
|
9
|
+
size?: number;
|
|
10
|
+
sort?: string[];
|
|
11
|
+
expectedStartTs: number;
|
|
12
|
+
expectedEndTs: number;
|
|
13
|
+
searchTerm?: string;
|
|
14
|
+
releaseGroupIds?: string[];
|
|
15
|
+
type?: 'Orchestration' | 'Tracking';
|
|
16
|
+
source?: 'ADHOC' | 'RECURRING';
|
|
17
|
+
status?: Array<'Aborted' | 'Failed' | 'InputWaiting' | 'Paused' | 'Running' | 'Scheduled' | 'Success'>;
|
|
18
|
+
}
|
|
19
|
+
export interface PostReleaseListMutationHeaderParams {
|
|
20
|
+
'Harness-Account': string;
|
|
21
|
+
}
|
|
22
|
+
export type PostReleaseListRequestBody = ReleaseListRequestRequestBody;
|
|
23
|
+
export type PostReleaseListOkResponse = ResponseWithPagination<ReleaseListResponseResponse>;
|
|
24
|
+
export type PostReleaseListErrorResponse = ErrorResponseResponse;
|
|
25
|
+
export interface PostReleaseListProps extends Omit<FetcherOptions<PostReleaseListMutationQueryParams, PostReleaseListRequestBody, PostReleaseListMutationHeaderParams>, 'url'> {
|
|
26
|
+
queryParams: PostReleaseListMutationQueryParams;
|
|
27
|
+
body: PostReleaseListRequestBody;
|
|
28
|
+
}
|
|
29
|
+
export declare function postReleaseList(props: PostReleaseListProps): Promise<PostReleaseListOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch paginated list of releases with sorting support. Uses standard page/size pagination instead of cursor-based.
|
|
32
|
+
*/
|
|
33
|
+
export declare function usePostReleaseListMutation(options?: Omit<UseMutationOptions<PostReleaseListOkResponse, PostReleaseListErrorResponse, PostReleaseListProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseListOkResponse, import("..").Error, PostReleaseListProps, 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 '../../../../fetcher/index.js';
|
|
6
|
+
export function postReleaseList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/release/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch paginated list of releases with sorting support. Uses standard page/size pagination instead of cursor-based.
|
|
11
|
+
*/
|
|
12
|
+
export function usePostReleaseListMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postReleaseList(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -87,6 +87,8 @@ export type { GetTaskCommentsSummaryErrorResponse, GetTaskCommentsSummaryOkRespo
|
|
|
87
87
|
export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
88
88
|
export type { GetYamlSchemaErrorResponse, GetYamlSchemaOkResponse, GetYamlSchemaProps, GetYamlSchemaQueryQueryParams, } from './hooks/useGetYamlSchemaQuery';
|
|
89
89
|
export { getYamlSchema, useGetYamlSchemaQuery } from './hooks/useGetYamlSchemaQuery';
|
|
90
|
+
export type { IngestWebhookSignalErrorResponse, IngestWebhookSignalOkResponse, IngestWebhookSignalProps, IngestWebhookSignalRequestBody, } from './hooks/useIngestWebhookSignalMutation';
|
|
91
|
+
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
90
92
|
export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
|
|
91
93
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
92
94
|
export type { PostActivityExecutionOutputErrorResponse, PostActivityExecutionOutputMutationPathParams, PostActivityExecutionOutputMutationQueryParams, PostActivityExecutionOutputOkResponse, PostActivityExecutionOutputProps, PostActivityExecutionOutputRequestBody, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
@@ -99,6 +101,8 @@ export type { PostOrchestrationProcessAttachedReleaseGroupsErrorResponse, PostOr
|
|
|
99
101
|
export { postOrchestrationProcessAttachedReleaseGroups, usePostOrchestrationProcessAttachedReleaseGroupsMutation, } from './hooks/usePostOrchestrationProcessAttachedReleaseGroupsMutation';
|
|
100
102
|
export type { PostOrchestrationProcessInputErrorResponse, PostOrchestrationProcessInputMutationPathParams, PostOrchestrationProcessInputMutationQueryParams, PostOrchestrationProcessInputOkResponse, PostOrchestrationProcessInputProps, PostOrchestrationProcessInputRequestBody, } from './hooks/usePostOrchestrationProcessInputMutation';
|
|
101
103
|
export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
|
|
104
|
+
export type { PostOrchestrationProcessInputValidateErrorResponse, PostOrchestrationProcessInputValidateMutationPathParams, PostOrchestrationProcessInputValidateMutationQueryParams, PostOrchestrationProcessInputValidateOkResponse, PostOrchestrationProcessInputValidateProps, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
|
|
105
|
+
export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
|
|
102
106
|
export type { PostOrchestrationProcessErrorResponse, PostOrchestrationProcessMutationQueryParams, PostOrchestrationProcessOkResponse, PostOrchestrationProcessProps, PostOrchestrationProcessRequestBody, } from './hooks/usePostOrchestrationProcessMutation';
|
|
103
107
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
104
108
|
export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParams, PostReleaseActionMutationQueryParams, PostReleaseActionOkResponse, PostReleaseActionProps, PostReleaseActionRequestBody, } from './hooks/usePostReleaseActionMutation';
|
|
@@ -109,6 +113,8 @@ export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams
|
|
|
109
113
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
110
114
|
export type { PostReleaseGroupReportGenerateErrorResponse, PostReleaseGroupReportGenerateMutationPathParams, PostReleaseGroupReportGenerateMutationQueryParams, PostReleaseGroupReportGenerateOkResponse, PostReleaseGroupReportGenerateProps, PostReleaseGroupReportGenerateRequestBody, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
111
115
|
export { postReleaseGroupReportGenerate, usePostReleaseGroupReportGenerateMutation, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
116
|
+
export type { PostReleaseListErrorResponse, PostReleaseListMutationQueryParams, PostReleaseListOkResponse, PostReleaseListProps, PostReleaseListRequestBody, } from './hooks/usePostReleaseListMutation';
|
|
117
|
+
export { postReleaseList, usePostReleaseListMutation } from './hooks/usePostReleaseListMutation';
|
|
112
118
|
export type { PostReleaseReportGenerateErrorResponse, PostReleaseReportGenerateMutationPathParams, PostReleaseReportGenerateMutationQueryParams, PostReleaseReportGenerateOkResponse, PostReleaseReportGenerateProps, PostReleaseReportGenerateRequestBody, } from './hooks/usePostReleaseReportGenerateMutation';
|
|
113
119
|
export { postReleaseReportGenerate, usePostReleaseReportGenerateMutation, } from './hooks/usePostReleaseReportGenerateMutation';
|
|
114
120
|
export type { PostReleaseSubprocessTriggerErrorResponse, PostReleaseSubprocessTriggerMutationPathParams, PostReleaseSubprocessTriggerMutationQueryParams, PostReleaseSubprocessTriggerOkResponse, PostReleaseSubprocessTriggerProps, PostReleaseSubprocessTriggerRequestBody, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
@@ -125,8 +131,6 @@ export type { PutReleaseGroupErrorResponse, PutReleaseGroupMutationPathParams, P
|
|
|
125
131
|
export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
|
|
126
132
|
export type { PutReleaseReleaseIdErrorResponse, PutReleaseReleaseIdMutationPathParams, PutReleaseReleaseIdOkResponse, PutReleaseReleaseIdProps, PutReleaseReleaseIdRequestBody, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
127
133
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
128
|
-
export type { ReceiveWebhookSignalErrorResponse, ReceiveWebhookSignalOkResponse, ReceiveWebhookSignalProps, ReceiveWebhookSignalRequestBody, } from './hooks/useReceiveWebhookSignalMutation';
|
|
129
|
-
export { receiveWebhookSignal, useReceiveWebhookSignalMutation, } from './hooks/useReceiveWebhookSignalMutation';
|
|
130
134
|
export type { ServeUploadErrorResponse, ServeUploadOkResponse, ServeUploadProps, ServeUploadQueryPathParams, } from './hooks/useServeUploadQuery';
|
|
131
135
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
132
136
|
export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, StartReleaseExecutionRequestBody, } from './hooks/useStartReleaseExecutionMutation';
|
|
@@ -149,6 +153,7 @@ export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/Creat
|
|
|
149
153
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
150
154
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
151
155
|
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
156
|
+
export type { ReleaseListRequestRequestBody } from './requestBodies/ReleaseListRequestRequestBody';
|
|
152
157
|
export type { ReleaseSummaryRequestRequestBody } from './requestBodies/ReleaseSummaryRequestRequestBody';
|
|
153
158
|
export type { UpdateOrchestrationActivityRequestRequestBody } from './requestBodies/UpdateOrchestrationActivityRequestRequestBody';
|
|
154
159
|
export type { UpdateOrchestrationProcessInputRequestRequestBody } from './requestBodies/UpdateOrchestrationProcessInputRequestRequestBody';
|
|
@@ -191,6 +196,7 @@ export type { ReleaseConflictListResponseResponse } from './responses/ReleaseCon
|
|
|
191
196
|
export type { ReleaseDetailsResponseResponse } from './responses/ReleaseDetailsResponseResponse';
|
|
192
197
|
export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseGroupComponentResponseResponse';
|
|
193
198
|
export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
|
|
199
|
+
export type { ReleaseListResponseResponse } from './responses/ReleaseListResponseResponse';
|
|
194
200
|
export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
|
|
195
201
|
export type { ReleaseTasksResponseResponse } from './responses/ReleaseTasksResponseResponse';
|
|
196
202
|
export type { ReportGenerationResponseResponse } from './responses/ReportGenerationResponseResponse';
|
|
@@ -206,6 +212,7 @@ export type { UpdateReleaseConflictResponseResponse } from './responses/UpdateRe
|
|
|
206
212
|
export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
|
|
207
213
|
export type { UpdateReleaseResponseResponse } from './responses/UpdateReleaseResponseResponse';
|
|
208
214
|
export type { UpdateTaskCommentResponseResponse } from './responses/UpdateTaskCommentResponseResponse';
|
|
215
|
+
export type { ValidateOrchestrationProcessInputResponseResponse } from './responses/ValidateOrchestrationProcessInputResponseResponse';
|
|
209
216
|
export type { ActivityCounts } from './schemas/ActivityCounts';
|
|
210
217
|
export type { ActivityExecutionInputDto } from './schemas/ActivityExecutionInputDto';
|
|
211
218
|
export type { ActivityInputYaml } from './schemas/ActivityInputYaml';
|
|
@@ -220,6 +227,8 @@ export type { AdHocReleaseResponse } from './schemas/AdHocReleaseResponse';
|
|
|
220
227
|
export type { AnyValue } from './schemas/AnyValue';
|
|
221
228
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
222
229
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
230
|
+
export type { ArtifactTagInputVariable } from './schemas/ArtifactTagInputVariable';
|
|
231
|
+
export type { ArtifactTagMetadata } from './schemas/ArtifactTagMetadata';
|
|
223
232
|
export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
|
|
224
233
|
export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
|
|
225
234
|
export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
|
|
@@ -272,6 +281,7 @@ export type { OrchestrationActivityPipelineYaml } from './schemas/OrchestrationA
|
|
|
272
281
|
export type { OrchestrationActivityProcessYaml } from './schemas/OrchestrationActivityProcessYaml';
|
|
273
282
|
export type { OrchestrationActivitySubprocessYaml } from './schemas/OrchestrationActivitySubprocessYaml';
|
|
274
283
|
export type { OrchestrationActivitySummaryDto } from './schemas/OrchestrationActivitySummaryDto';
|
|
284
|
+
export type { OrchestrationActivityWebhookYaml } from './schemas/OrchestrationActivityWebhookYaml';
|
|
275
285
|
export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
|
|
276
286
|
export type { OrchestrationActivityYamlDto } from './schemas/OrchestrationActivityYamlDto';
|
|
277
287
|
export type { OrchestrationExecutionActivity } from './schemas/OrchestrationExecutionActivity';
|
|
@@ -291,6 +301,7 @@ export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
|
|
|
291
301
|
export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
|
|
292
302
|
export type { PrimitiveInputVariable } from './schemas/PrimitiveInputVariable';
|
|
293
303
|
export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
|
|
304
|
+
export type { ProcessInputValidationResponse } from './schemas/ProcessInputValidationResponse';
|
|
294
305
|
export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
|
|
295
306
|
export type { ReleaseActionResponse } from './schemas/ReleaseActionResponse';
|
|
296
307
|
export type { ReleaseActivity } from './schemas/ReleaseActivity';
|
|
@@ -334,7 +345,9 @@ export type { TriggerType } from './schemas/TriggerType';
|
|
|
334
345
|
export type { TriggeredByDto } from './schemas/TriggeredByDto';
|
|
335
346
|
export type { UploadResponse } from './schemas/UploadResponse';
|
|
336
347
|
export type { User } from './schemas/User';
|
|
337
|
-
export type {
|
|
348
|
+
export type { WebhookErrorResponse } from './schemas/WebhookErrorResponse';
|
|
349
|
+
export type { WebhookEventType } from './schemas/WebhookEventType';
|
|
338
350
|
export type { WebhookSignalRequest } from './schemas/WebhookSignalRequest';
|
|
339
351
|
export type { WebhookSignalResponse } from './schemas/WebhookSignalResponse';
|
|
352
|
+
export type { WebhookSignalStatus } from './schemas/WebhookSignalStatus';
|
|
340
353
|
export type { Weekday } from './schemas/Weekday';
|
|
@@ -42,17 +42,20 @@ export { getReportDownload, useGetReportDownloadQuery } from './hooks/useGetRepo
|
|
|
42
42
|
export { getReportStatus, useGetReportStatusQuery } from './hooks/useGetReportStatusQuery';
|
|
43
43
|
export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
44
44
|
export { getYamlSchema, useGetYamlSchemaQuery } from './hooks/useGetYamlSchemaQuery';
|
|
45
|
+
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
45
46
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
46
47
|
export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
47
48
|
export { postOnHoldActivityAction, usePostOnHoldActivityActionMutation, } from './hooks/usePostOnHoldActivityActionMutation';
|
|
48
49
|
export { postOrchestrationActivity, usePostOrchestrationActivityMutation, } from './hooks/usePostOrchestrationActivityMutation';
|
|
49
50
|
export { postOrchestrationProcessAttachedReleaseGroups, usePostOrchestrationProcessAttachedReleaseGroupsMutation, } from './hooks/usePostOrchestrationProcessAttachedReleaseGroupsMutation';
|
|
50
51
|
export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
|
|
52
|
+
export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
|
|
51
53
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
52
54
|
export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
|
|
53
55
|
export { postReleaseAdhoc, usePostReleaseAdhocMutation } from './hooks/usePostReleaseAdhocMutation';
|
|
54
56
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
55
57
|
export { postReleaseGroupReportGenerate, usePostReleaseGroupReportGenerateMutation, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
58
|
+
export { postReleaseList, usePostReleaseListMutation } from './hooks/usePostReleaseListMutation';
|
|
56
59
|
export { postReleaseReportGenerate, usePostReleaseReportGenerateMutation, } from './hooks/usePostReleaseReportGenerateMutation';
|
|
57
60
|
export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
58
61
|
export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
|
|
@@ -61,7 +64,6 @@ export { putOrchestrationProcessInput, usePutOrchestrationProcessInputMutation,
|
|
|
61
64
|
export { putOrchestrationProcess, usePutOrchestrationProcessMutation, } from './hooks/usePutOrchestrationProcessMutation';
|
|
62
65
|
export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
|
|
63
66
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
64
|
-
export { receiveWebhookSignal, useReceiveWebhookSignalMutation, } from './hooks/useReceiveWebhookSignalMutation';
|
|
65
67
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
66
68
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
67
69
|
export { streamUpload, useStreamUploadMutation } from './hooks/useStreamUploadMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ReleaseDto } from '../schemas/ReleaseDto';
|
|
2
|
+
import type { Pageable } from '../schemas/Pageable';
|
|
3
|
+
import type { PageableSort } from '../schemas/PageableSort';
|
|
4
|
+
export interface ReleaseListResponseResponse {
|
|
5
|
+
content: ReleaseDto[];
|
|
6
|
+
/**
|
|
7
|
+
* Whether the page is empty
|
|
8
|
+
*/
|
|
9
|
+
empty: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this is the first page
|
|
12
|
+
*/
|
|
13
|
+
first: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this is the last page
|
|
16
|
+
*/
|
|
17
|
+
last: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Current page number (zero-indexed)
|
|
20
|
+
*/
|
|
21
|
+
number: number;
|
|
22
|
+
/**
|
|
23
|
+
* Number of elements in current page
|
|
24
|
+
*/
|
|
25
|
+
numberOfElements: number;
|
|
26
|
+
pageable: Pageable;
|
|
27
|
+
/**
|
|
28
|
+
* Page size
|
|
29
|
+
*/
|
|
30
|
+
size: number;
|
|
31
|
+
sort: PageableSort;
|
|
32
|
+
/**
|
|
33
|
+
* Total number of releases
|
|
34
|
+
* @format int64
|
|
35
|
+
*/
|
|
36
|
+
totalElements: number;
|
|
37
|
+
/**
|
|
38
|
+
* Total number of pages
|
|
39
|
+
*/
|
|
40
|
+
totalPages: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/rmg-service/src/services/responses/ValidateOrchestrationProcessInputResponseResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ArtifactTagMetadata } from '../schemas/ArtifactTagMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* Input variable for artifact tag type. Value is the tag string.
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactTagInputVariable {
|
|
6
|
+
/**
|
|
7
|
+
* Default tag value (e.g., "latest", "v1.2.3")
|
|
8
|
+
*/
|
|
9
|
+
default?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Description of the variable
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Artifact metadata with deployment type, artifact type, connector, and image path
|
|
16
|
+
*/
|
|
17
|
+
metadata?: ArtifactTagMetadata;
|
|
18
|
+
/**
|
|
19
|
+
* Type of the input variable
|
|
20
|
+
*/
|
|
21
|
+
type: 'artifactTag';
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface ArtifactTagMetadata {
|
|
3
|
+
/**
|
|
4
|
+
* Artifact source type (e.g., DockerRegistry, Gcr, Ecr)
|
|
5
|
+
*/
|
|
6
|
+
artifactType: string;
|
|
7
|
+
/**
|
|
8
|
+
* Connector reference for the artifact source
|
|
9
|
+
*/
|
|
10
|
+
connectorRef?: string;
|
|
11
|
+
deploymentType: DeploymentTypeEnum;
|
|
12
|
+
/**
|
|
13
|
+
* Image path for the artifact (e.g., library/nginx)
|
|
14
|
+
*/
|
|
15
|
+
imagePath?: string;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ import type { MultiEnvironmentInputVariable } from '../schemas/MultiEnvironmentI
|
|
|
6
6
|
import type { InfrastructureInputVariable } from '../schemas/InfrastructureInputVariable';
|
|
7
7
|
import type { MultiInfrastructureInputVariable } from '../schemas/MultiInfrastructureInputVariable';
|
|
8
8
|
import type { ConnectorInputVariable } from '../schemas/ConnectorInputVariable';
|
|
9
|
-
|
|
9
|
+
import type { ArtifactTagInputVariable } from '../schemas/ArtifactTagInputVariable';
|
|
10
|
+
export type InputVariable = (PrimitiveInputVariable | ServiceInputVariable | MultiServiceInputVariable | EnvironmentInputVariable | MultiEnvironmentInputVariable | InfrastructureInputVariable | MultiInfrastructureInputVariable | ConnectorInputVariable | ArtifactTagInputVariable) & {
|
|
10
11
|
[key: string]: any;
|
|
11
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of an input variable for parameters and process inputs.
|
|
3
3
|
*/
|
|
4
|
-
export type InputVariableType = 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'service' | 'string';
|
|
4
|
+
export type InputVariableType = 'artifactTag' | 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'service' | 'string';
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* Pipeline configuration for orchestration activities
|
|
3
3
|
*/
|
|
4
4
|
export interface OrchestrationActivityPipelineYaml {
|
|
5
|
+
/**
|
|
6
|
+
* Git branch for the pipeline
|
|
7
|
+
*/
|
|
8
|
+
branch?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Connector reference for the git repository
|
|
11
|
+
*/
|
|
12
|
+
connectorRef?: string;
|
|
5
13
|
/**
|
|
6
14
|
* Optional key-value map for expression resolution
|
|
7
15
|
*/
|
|
@@ -14,10 +22,22 @@ export interface OrchestrationActivityPipelineYaml {
|
|
|
14
22
|
inputSet?: {
|
|
15
23
|
[key: string]: any;
|
|
16
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Parent entity connector reference for the git repository
|
|
27
|
+
*/
|
|
28
|
+
parentEntityConnectorRef?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Parent entity repository name
|
|
31
|
+
*/
|
|
32
|
+
parentEntityRepoName?: string;
|
|
17
33
|
/**
|
|
18
34
|
* Pipeline location in format orgIdentifier/projectIdentifier/pipelineIdentifier
|
|
19
35
|
*/
|
|
20
36
|
pipeline: string;
|
|
37
|
+
/**
|
|
38
|
+
* Repository identifier
|
|
39
|
+
*/
|
|
40
|
+
repoIdentifier?: string;
|
|
21
41
|
/**
|
|
22
42
|
* Optional list of stage identifiers to execute (supports expressions)
|
|
23
43
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Webhook configuration for orchestration activities
|
|
3
|
+
*/
|
|
4
|
+
export interface OrchestrationActivityWebhookYaml {
|
|
5
|
+
/**
|
|
6
|
+
* Filter configuration for signal matching
|
|
7
|
+
*/
|
|
8
|
+
filters?: {
|
|
9
|
+
/**
|
|
10
|
+
* List of filter expressions to evaluate against incoming signals
|
|
11
|
+
*/
|
|
12
|
+
conditions?: Array<{
|
|
13
|
+
/**
|
|
14
|
+
* Filter expression (e.g., "<+metadata.triggeredBy>==<+activityInput.triggeredBy>")
|
|
15
|
+
*/
|
|
16
|
+
expression: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Pipeline identifiers to listen for
|
|
21
|
+
*/
|
|
22
|
+
pipeline: {
|
|
23
|
+
/**
|
|
24
|
+
* List of fully-qualified pipeline identifiers
|
|
25
|
+
*/
|
|
26
|
+
ids: string[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Queue configuration for signal handling
|
|
30
|
+
*/
|
|
31
|
+
queue?: {
|
|
32
|
+
/**
|
|
33
|
+
* Controls automatic activity progression on signal match
|
|
34
|
+
*/
|
|
35
|
+
autostart?: {
|
|
36
|
+
/**
|
|
37
|
+
* ALWAYS auto-completes on match, ON_APPROVAL queues for user group approval
|
|
38
|
+
*/
|
|
39
|
+
condition?: 'ALWAYS' | 'ON_APPROVAL';
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* User groups that can approve queued signals
|
|
43
|
+
*/
|
|
44
|
+
userGroups?: string | string[];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -3,6 +3,7 @@ import type { OrchestrationActivityManualYaml } from '../schemas/OrchestrationAc
|
|
|
3
3
|
import type { OutputVariable } from '../schemas/OutputVariable';
|
|
4
4
|
import type { OrchestrationActivityPipelineYaml } from '../schemas/OrchestrationActivityPipelineYaml';
|
|
5
5
|
import type { OrchestrationActivitySubprocessYaml } from '../schemas/OrchestrationActivitySubprocessYaml';
|
|
6
|
+
import type { OrchestrationActivityWebhookYaml } from '../schemas/OrchestrationActivityWebhookYaml';
|
|
6
7
|
export interface OrchestrationActivityYaml {
|
|
7
8
|
activity: {
|
|
8
9
|
/**
|
|
@@ -32,5 +33,6 @@ export interface OrchestrationActivityYaml {
|
|
|
32
33
|
};
|
|
33
34
|
pipeline?: OrchestrationActivityPipelineYaml;
|
|
34
35
|
process?: OrchestrationActivitySubprocessYaml;
|
|
36
|
+
webhook?: OrchestrationActivityWebhookYaml;
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of an on-demand process input cross-entity validation (X4/X5)
|
|
3
|
+
*/
|
|
4
|
+
export interface ProcessInputValidationResponse {
|
|
5
|
+
/**
|
|
6
|
+
* Blocking validation errors (e.g. required activity inputs not covered by with values)
|
|
7
|
+
*/
|
|
8
|
+
errors: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Non-blocking validation warnings (e.g. with keys not present in activity inputs definitions)
|
|
11
|
+
*/
|
|
12
|
+
warnings: string[];
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of the step (e.g., Approval, JiraUpdate, JiraCreate, JiraApproval).
|
|
3
3
|
*/
|
|
4
|
-
export type StepInfoType = 'HarnessApproval' | 'JiraApproval' | 'JiraCreate' | 'JiraUpdate';
|
|
4
|
+
export type StepInfoType = 'CustomApproval' | 'HarnessApproval' | 'JiraApproval' | 'JiraCreate' | 'JiraUpdate' | 'ServiceNowApproval';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface WebhookErrorResponse {
|
|
2
|
+
/**
|
|
3
|
+
* Machine-readable error code.
|
|
4
|
+
* @example "INVALID_EVENT_TYPE"
|
|
5
|
+
*/
|
|
6
|
+
code: string;
|
|
7
|
+
/**
|
|
8
|
+
* Human-readable error description.
|
|
9
|
+
* @example "eventType 'UNKNOWN' is not a registered event type"
|
|
10
|
+
*/
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WebhookEventType } from '../schemas/WebhookEventType';
|
|
2
2
|
export interface WebhookSignalRequest {
|
|
3
|
+
eventType: WebhookEventType;
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Event-specific payload (validated per event type). Maximum size 1 MiB.
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Optional arbitrary metadata payload from the webhook source.
|
|
9
|
-
*/
|
|
10
|
-
metadata?: {
|
|
7
|
+
payload: {
|
|
11
8
|
[key: string]: any;
|
|
12
9
|
};
|
|
13
|
-
pipeline?: WebhookPipeline;
|
|
14
10
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { WebhookSignalStatus } from '../schemas/WebhookSignalStatus';
|
|
1
2
|
export interface WebhookSignalResponse {
|
|
3
|
+
status: WebhookSignalStatus;
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @example "accepted"
|
|
5
|
+
* Unique identifier assigned to the ingested webhook signal.
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
webhookId: string;
|
|
7
8
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { WebhookSignalResponse } from '../schemas/WebhookSignalResponse';
|
|
3
|
-
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
-
import type { WebhookSignalRequest } from '../schemas/WebhookSignalRequest';
|
|
5
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
-
export interface ReceiveWebhookSignalMutationHeaderParams {
|
|
8
|
-
'Harness-Account': string;
|
|
9
|
-
}
|
|
10
|
-
export type ReceiveWebhookSignalRequestBody = WebhookSignalRequest;
|
|
11
|
-
export type ReceiveWebhookSignalOkResponse = ResponseWithPagination<WebhookSignalResponse>;
|
|
12
|
-
export type ReceiveWebhookSignalErrorResponse = ErrorResponseResponse;
|
|
13
|
-
export interface ReceiveWebhookSignalProps extends Omit<FetcherOptions<unknown, ReceiveWebhookSignalRequestBody, ReceiveWebhookSignalMutationHeaderParams>, 'url'> {
|
|
14
|
-
body: ReceiveWebhookSignalRequestBody;
|
|
15
|
-
}
|
|
16
|
-
export declare function receiveWebhookSignal(props: ReceiveWebhookSignalProps): Promise<ReceiveWebhookSignalOkResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Receive an inbound webhook signal from an external source (e.g. a pipeline execution completion event). Persists the signal as PENDING in the webhooks table and returns 200. Duplicate submissions with the same idempotencyKey are silently accepted (idempotent). Requires the RMG_ENABLE_WEBHOOK_QUEUE_SUPPORT feature flag to be enabled.
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export declare function useReceiveWebhookSignalMutation(options?: Omit<UseMutationOptions<ReceiveWebhookSignalOkResponse, ReceiveWebhookSignalErrorResponse, ReceiveWebhookSignalProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ReceiveWebhookSignalOkResponse, import("..").Error, ReceiveWebhookSignalProps, unknown>;
|
|
@@ -1,15 +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 '../../../../fetcher/index.js';
|
|
6
|
-
export function receiveWebhookSignal(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/webhook/signal`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Receive an inbound webhook signal from an external source (e.g. a pipeline execution completion event). Persists the signal as PENDING in the webhooks table and returns 200. Duplicate submissions with the same idempotencyKey are silently accepted (idempotent). Requires the RMG_ENABLE_WEBHOOK_QUEUE_SUPPORT feature flag to be enabled.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export function useReceiveWebhookSignalMutation(options) {
|
|
14
|
-
return useMutation((mutateProps) => receiveWebhookSignal(mutateProps), options);
|
|
15
|
-
}
|
|
File without changes
|