@harnessio/react-rmg-service-client 0.60.0 → 0.63.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/useGetOrchestrationProcessSummaryQuery.d.ts +1 -0
- 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/index.d.ts +20 -3
- package/dist/rmg-service/src/services/index.js +2 -1
- 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/AcrArtifactMetadata.d.ts +21 -0
- package/dist/rmg-service/src/services/schemas/AcrArtifactMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagInputVariable.d.ts +2 -2
- package/dist/rmg-service/src/services/schemas/ArtifactTagMetadata.d.ts +16 -16
- package/dist/rmg-service/src/services/schemas/ArtifactoryRegistryMetadata.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/ArtifactoryRegistryMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/CreateOrchestrationActivityRequestType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/CustomArtifactMetadata.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/CustomArtifactMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/DockerRegistryArtifactMetadata.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/DockerRegistryArtifactMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/EcrArtifactMetadata.d.ts +21 -0
- package/dist/rmg-service/src/services/schemas/EcrArtifactMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/GcrArtifactMetadata.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/GcrArtifactMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/GithubPackageRegistryMetadata.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/GithubPackageRegistryMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/GoogleArtifactRegistryMetadata.d.ts +25 -0
- package/dist/rmg-service/src/services/schemas/GoogleArtifactRegistryMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/ManualTaskYaml.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/ManualTaskYaml.js +0 -3
- package/dist/rmg-service/src/services/schemas/Nexus3RegistryArtifactMetadata.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/Nexus3RegistryArtifactMetadata.js +1 -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/TaskExecuteConfig.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/TaskExecuteConfig.js +4 -0
- 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
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -127,8 +131,6 @@ export type { PutReleaseGroupErrorResponse, PutReleaseGroupMutationPathParams, P
|
|
|
127
131
|
export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
|
|
128
132
|
export type { PutReleaseReleaseIdErrorResponse, PutReleaseReleaseIdMutationPathParams, PutReleaseReleaseIdOkResponse, PutReleaseReleaseIdProps, PutReleaseReleaseIdRequestBody, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
129
133
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
130
|
-
export type { ReceiveWebhookSignalErrorResponse, ReceiveWebhookSignalOkResponse, ReceiveWebhookSignalProps, ReceiveWebhookSignalRequestBody, } from './hooks/useReceiveWebhookSignalMutation';
|
|
131
|
-
export { receiveWebhookSignal, useReceiveWebhookSignalMutation, } from './hooks/useReceiveWebhookSignalMutation';
|
|
132
134
|
export type { ServeUploadErrorResponse, ServeUploadOkResponse, ServeUploadProps, ServeUploadQueryPathParams, } from './hooks/useServeUploadQuery';
|
|
133
135
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
134
136
|
export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, StartReleaseExecutionRequestBody, } from './hooks/useStartReleaseExecutionMutation';
|
|
@@ -210,6 +212,8 @@ export type { UpdateReleaseConflictResponseResponse } from './responses/UpdateRe
|
|
|
210
212
|
export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
|
|
211
213
|
export type { UpdateReleaseResponseResponse } from './responses/UpdateReleaseResponseResponse';
|
|
212
214
|
export type { UpdateTaskCommentResponseResponse } from './responses/UpdateTaskCommentResponseResponse';
|
|
215
|
+
export type { ValidateOrchestrationProcessInputResponseResponse } from './responses/ValidateOrchestrationProcessInputResponseResponse';
|
|
216
|
+
export type { AcrArtifactMetadata } from './schemas/AcrArtifactMetadata';
|
|
213
217
|
export type { ActivityCounts } from './schemas/ActivityCounts';
|
|
214
218
|
export type { ActivityExecutionInputDto } from './schemas/ActivityExecutionInputDto';
|
|
215
219
|
export type { ActivityInputYaml } from './schemas/ActivityInputYaml';
|
|
@@ -226,6 +230,7 @@ export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
|
226
230
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
227
231
|
export type { ArtifactTagInputVariable } from './schemas/ArtifactTagInputVariable';
|
|
228
232
|
export type { ArtifactTagMetadata } from './schemas/ArtifactTagMetadata';
|
|
233
|
+
export type { ArtifactoryRegistryMetadata } from './schemas/ArtifactoryRegistryMetadata';
|
|
229
234
|
export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
|
|
230
235
|
export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
|
|
231
236
|
export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
|
|
@@ -236,7 +241,10 @@ export type { ConnectorMetadata } from './schemas/ConnectorMetadata';
|
|
|
236
241
|
export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
|
|
237
242
|
export type { CreateOrchestrationActivityRequestType } from './schemas/CreateOrchestrationActivityRequestType';
|
|
238
243
|
export type { CreatedByDto } from './schemas/CreatedByDto';
|
|
244
|
+
export type { CustomArtifactMetadata } from './schemas/CustomArtifactMetadata';
|
|
239
245
|
export type { DeploymentTypeEnum } from './schemas/DeploymentTypeEnum';
|
|
246
|
+
export type { DockerRegistryArtifactMetadata } from './schemas/DockerRegistryArtifactMetadata';
|
|
247
|
+
export type { EcrArtifactMetadata } from './schemas/EcrArtifactMetadata';
|
|
240
248
|
export type { EnvironmentDashboardDto } from './schemas/EnvironmentDashboardDto';
|
|
241
249
|
export type { EnvironmentDto } from './schemas/EnvironmentDto';
|
|
242
250
|
export type { EnvironmentInputVariable } from './schemas/EnvironmentInputVariable';
|
|
@@ -257,8 +265,11 @@ export type { FreezeEntitiesDto } from './schemas/FreezeEntitiesDto';
|
|
|
257
265
|
export type { FreezeListItemDto } from './schemas/FreezeListItemDto';
|
|
258
266
|
export type { FreezeListResponseDto } from './schemas/FreezeListResponseDto';
|
|
259
267
|
export type { Freq } from './schemas/Freq';
|
|
268
|
+
export type { GcrArtifactMetadata } from './schemas/GcrArtifactMetadata';
|
|
260
269
|
export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
|
|
270
|
+
export type { GithubPackageRegistryMetadata } from './schemas/GithubPackageRegistryMetadata';
|
|
261
271
|
export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
|
|
272
|
+
export type { GoogleArtifactRegistryMetadata } from './schemas/GoogleArtifactRegistryMetadata';
|
|
262
273
|
export type { InfrastructureDeploymentDto } from './schemas/InfrastructureDeploymentDto';
|
|
263
274
|
export type { InfrastructureInputVariable } from './schemas/InfrastructureInputVariable';
|
|
264
275
|
export type { InfrastructureMetadata } from './schemas/InfrastructureMetadata';
|
|
@@ -271,6 +282,7 @@ export type { MultiEnvironmentInputVariable } from './schemas/MultiEnvironmentIn
|
|
|
271
282
|
export type { MultiInfrastructureInputVariable } from './schemas/MultiInfrastructureInputVariable';
|
|
272
283
|
export type { MultiServiceInputVariable } from './schemas/MultiServiceInputVariable';
|
|
273
284
|
export type { NextRequest } from './schemas/NextRequest';
|
|
285
|
+
export type { Nexus3RegistryArtifactMetadata } from './schemas/Nexus3RegistryArtifactMetadata';
|
|
274
286
|
export type { OnHoldActivityActionRequest } from './schemas/OnHoldActivityActionRequest';
|
|
275
287
|
export type { OnHoldActivityActionResponse } from './schemas/OnHoldActivityActionResponse';
|
|
276
288
|
export type { OrchestrationActivityManualYaml } from './schemas/OrchestrationActivityManualYaml';
|
|
@@ -278,6 +290,7 @@ export type { OrchestrationActivityPipelineYaml } from './schemas/OrchestrationA
|
|
|
278
290
|
export type { OrchestrationActivityProcessYaml } from './schemas/OrchestrationActivityProcessYaml';
|
|
279
291
|
export type { OrchestrationActivitySubprocessYaml } from './schemas/OrchestrationActivitySubprocessYaml';
|
|
280
292
|
export type { OrchestrationActivitySummaryDto } from './schemas/OrchestrationActivitySummaryDto';
|
|
293
|
+
export type { OrchestrationActivityWebhookYaml } from './schemas/OrchestrationActivityWebhookYaml';
|
|
281
294
|
export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
|
|
282
295
|
export type { OrchestrationActivityYamlDto } from './schemas/OrchestrationActivityYamlDto';
|
|
283
296
|
export type { OrchestrationExecutionActivity } from './schemas/OrchestrationExecutionActivity';
|
|
@@ -297,6 +310,7 @@ export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
|
|
|
297
310
|
export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
|
|
298
311
|
export type { PrimitiveInputVariable } from './schemas/PrimitiveInputVariable';
|
|
299
312
|
export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
|
|
313
|
+
export type { ProcessInputValidationResponse } from './schemas/ProcessInputValidationResponse';
|
|
300
314
|
export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
|
|
301
315
|
export type { ReleaseActionResponse } from './schemas/ReleaseActionResponse';
|
|
302
316
|
export type { ReleaseActivity } from './schemas/ReleaseActivity';
|
|
@@ -335,12 +349,15 @@ export type { SubprocessTriggerRequest } from './schemas/SubprocessTriggerReques
|
|
|
335
349
|
export type { SubprocessTriggerResponse } from './schemas/SubprocessTriggerResponse';
|
|
336
350
|
export type { TaskCommentDto } from './schemas/TaskCommentDto';
|
|
337
351
|
export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
|
|
352
|
+
export type { TaskExecuteConfig } from './schemas/TaskExecuteConfig';
|
|
338
353
|
export type { TimeRangeDto } from './schemas/TimeRangeDto';
|
|
339
354
|
export type { TriggerType } from './schemas/TriggerType';
|
|
340
355
|
export type { TriggeredByDto } from './schemas/TriggeredByDto';
|
|
341
356
|
export type { UploadResponse } from './schemas/UploadResponse';
|
|
342
357
|
export type { User } from './schemas/User';
|
|
343
|
-
export type {
|
|
358
|
+
export type { WebhookErrorResponse } from './schemas/WebhookErrorResponse';
|
|
359
|
+
export type { WebhookEventType } from './schemas/WebhookEventType';
|
|
344
360
|
export type { WebhookSignalRequest } from './schemas/WebhookSignalRequest';
|
|
345
361
|
export type { WebhookSignalResponse } from './schemas/WebhookSignalResponse';
|
|
362
|
+
export type { WebhookSignalStatus } from './schemas/WebhookSignalStatus';
|
|
346
363
|
export type { Weekday } from './schemas/Weekday';
|
|
@@ -42,12 +42,14 @@ 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';
|
|
@@ -62,7 +64,6 @@ export { putOrchestrationProcessInput, usePutOrchestrationProcessInputMutation,
|
|
|
62
64
|
export { putOrchestrationProcess, usePutOrchestrationProcessMutation, } from './hooks/usePutOrchestrationProcessMutation';
|
|
63
65
|
export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
|
|
64
66
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
65
|
-
export { receiveWebhookSignal, useReceiveWebhookSignalMutation, } from './hooks/useReceiveWebhookSignalMutation';
|
|
66
67
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
67
68
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
68
69
|
export { streamUpload, useStreamUploadMutation } from './hooks/useStreamUploadMutation';
|
package/dist/rmg-service/src/services/responses/ValidateOrchestrationProcessInputResponseResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface AcrArtifactMetadata {
|
|
3
|
+
artifactType: 'Acr';
|
|
4
|
+
/**
|
|
5
|
+
* Azure connector reference
|
|
6
|
+
*/
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
deploymentType: DeploymentTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* ACR registry name
|
|
11
|
+
*/
|
|
12
|
+
registry?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Repository name within the registry
|
|
15
|
+
*/
|
|
16
|
+
repository?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Azure subscription ID
|
|
19
|
+
*/
|
|
20
|
+
subscriptionId?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import type { ArtifactTagMetadata } from '../schemas/ArtifactTagMetadata';
|
|
|
2
2
|
/**
|
|
3
3
|
* Input variable for artifact tag type. Value is the tag string.
|
|
4
4
|
*/
|
|
5
|
-
export interface ArtifactTagInputVariable {
|
|
5
|
+
export interface ArtifactTagInputVariable<T0 extends ArtifactTagMetadata = ArtifactTagMetadata> {
|
|
6
6
|
/**
|
|
7
7
|
* Default tag value (e.g., "latest", "v1.2.3")
|
|
8
8
|
*/
|
|
@@ -14,7 +14,7 @@ export interface ArtifactTagInputVariable {
|
|
|
14
14
|
/**
|
|
15
15
|
* Artifact metadata with deployment type, artifact type, connector, and image path
|
|
16
16
|
*/
|
|
17
|
-
metadata?:
|
|
17
|
+
metadata?: T0;
|
|
18
18
|
/**
|
|
19
19
|
* Type of the input variable
|
|
20
20
|
*/
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import type { DockerRegistryArtifactMetadata } from '../schemas/DockerRegistryArtifactMetadata';
|
|
2
|
+
import type { EcrArtifactMetadata } from '../schemas/EcrArtifactMetadata';
|
|
3
|
+
import type { GcrArtifactMetadata } from '../schemas/GcrArtifactMetadata';
|
|
4
|
+
import type { AcrArtifactMetadata } from '../schemas/AcrArtifactMetadata';
|
|
5
|
+
import type { GoogleArtifactRegistryMetadata } from '../schemas/GoogleArtifactRegistryMetadata';
|
|
6
|
+
import type { Nexus3RegistryArtifactMetadata } from '../schemas/Nexus3RegistryArtifactMetadata';
|
|
7
|
+
import type { ArtifactoryRegistryMetadata } from '../schemas/ArtifactoryRegistryMetadata';
|
|
8
|
+
import type { GithubPackageRegistryMetadata } from '../schemas/GithubPackageRegistryMetadata';
|
|
9
|
+
import type { CustomArtifactMetadata } from '../schemas/CustomArtifactMetadata';
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for artifact tag variables. The required fields depend on the artifactType.
|
|
12
|
+
* Use the discriminated schemas below to determine which fields are needed per type.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export type ArtifactTagMetadata = (DockerRegistryArtifactMetadata | EcrArtifactMetadata | GcrArtifactMetadata | AcrArtifactMetadata | GoogleArtifactRegistryMetadata | Nexus3RegistryArtifactMetadata | ArtifactoryRegistryMetadata | GithubPackageRegistryMetadata | CustomArtifactMetadata) & {
|
|
16
16
|
[key: string]: any;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface ArtifactoryRegistryMetadata {
|
|
3
|
+
/**
|
|
4
|
+
* Path to artifact within the repository
|
|
5
|
+
*/
|
|
6
|
+
artifactPath?: string;
|
|
7
|
+
artifactType: 'ArtifactoryRegistry';
|
|
8
|
+
/**
|
|
9
|
+
* Artifactory connector reference
|
|
10
|
+
*/
|
|
11
|
+
connectorRef?: string;
|
|
12
|
+
deploymentType: DeploymentTypeEnum;
|
|
13
|
+
/**
|
|
14
|
+
* Artifactory repository name
|
|
15
|
+
*/
|
|
16
|
+
repository?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface DockerRegistryArtifactMetadata {
|
|
3
|
+
artifactType: 'DockerRegistry';
|
|
4
|
+
/**
|
|
5
|
+
* Docker registry connector reference
|
|
6
|
+
*/
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
deploymentType: DeploymentTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* Image path (e.g., library/nginx)
|
|
11
|
+
*/
|
|
12
|
+
imagePath?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface EcrArtifactMetadata {
|
|
3
|
+
artifactType: 'Ecr';
|
|
4
|
+
/**
|
|
5
|
+
* AWS connector reference
|
|
6
|
+
*/
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
deploymentType: DeploymentTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* ECR repository name (e.g., my-app)
|
|
11
|
+
*/
|
|
12
|
+
imagePath?: string;
|
|
13
|
+
/**
|
|
14
|
+
* AWS region (e.g., us-east-1). Required for ECR image/tag lookup.
|
|
15
|
+
*/
|
|
16
|
+
region?: string;
|
|
17
|
+
/**
|
|
18
|
+
* AWS account ID for the ECR registry (optional, defaults to connector account)
|
|
19
|
+
*/
|
|
20
|
+
registryId?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TaskExecuteConfig } from '../schemas/TaskExecuteConfig';
|
|
1
2
|
import type { FailureInfo } from '../schemas/FailureInfo';
|
|
2
3
|
import type { StringOrBool } from '../schemas/StringOrBool';
|
|
3
4
|
import type { ExecutionTaskStatus } from '../schemas/ExecutionTaskStatus';
|
|
@@ -19,6 +20,7 @@ export interface ExecutionTaskDto {
|
|
|
19
20
|
* Description of the task
|
|
20
21
|
*/
|
|
21
22
|
description?: string;
|
|
23
|
+
execute?: TaskExecuteConfig;
|
|
22
24
|
/**
|
|
23
25
|
* Expected duration for the task (e.g., "1d 12h")
|
|
24
26
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface GcrArtifactMetadata {
|
|
3
|
+
artifactType: 'Gcr';
|
|
4
|
+
/**
|
|
5
|
+
* GCP connector reference
|
|
6
|
+
*/
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
deploymentType: DeploymentTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* Image path (e.g., project-id/image-name)
|
|
11
|
+
*/
|
|
12
|
+
imagePath?: string;
|
|
13
|
+
/**
|
|
14
|
+
* GCR hostname (e.g., gcr.io, us.gcr.io)
|
|
15
|
+
*/
|
|
16
|
+
registryHostname?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface GithubPackageRegistryMetadata {
|
|
3
|
+
artifactType: 'GithubPackageRegistry';
|
|
4
|
+
/**
|
|
5
|
+
* GitHub connector reference
|
|
6
|
+
*/
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
deploymentType: DeploymentTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* GitHub organization
|
|
11
|
+
*/
|
|
12
|
+
org?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Package name
|
|
15
|
+
*/
|
|
16
|
+
packageName?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface GoogleArtifactRegistryMetadata {
|
|
3
|
+
artifactType: 'GoogleArtifactRegistry';
|
|
4
|
+
/**
|
|
5
|
+
* GCP connector reference
|
|
6
|
+
*/
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
deploymentType: DeploymentTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* Package name within the repository
|
|
11
|
+
*/
|
|
12
|
+
package?: string;
|
|
13
|
+
/**
|
|
14
|
+
* GCP project ID
|
|
15
|
+
*/
|
|
16
|
+
project?: string;
|
|
17
|
+
/**
|
|
18
|
+
* GAR region (e.g., us-central1)
|
|
19
|
+
*/
|
|
20
|
+
region?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Artifact Registry repository name
|
|
23
|
+
*/
|
|
24
|
+
repositoryName?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TaskExecuteConfig } from '../schemas/TaskExecuteConfig';
|
|
1
2
|
/**
|
|
2
3
|
* Manual task configuration
|
|
3
4
|
*/
|
|
@@ -10,6 +11,7 @@ export interface ManualTaskYaml {
|
|
|
10
11
|
* Expected duration for the task (e.g., "1w", "1d", "2h", "1d 12h")
|
|
11
12
|
*/
|
|
12
13
|
duration: string;
|
|
14
|
+
execute?: TaskExecuteConfig;
|
|
13
15
|
/**
|
|
14
16
|
* Unique identifier for the manual task
|
|
15
17
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface Nexus3RegistryArtifactMetadata {
|
|
3
|
+
artifactType: 'Nexus3Registry';
|
|
4
|
+
/**
|
|
5
|
+
* Nexus connector reference
|
|
6
|
+
*/
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
deploymentType: DeploymentTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* Nexus repository name
|
|
11
|
+
*/
|
|
12
|
+
repository?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for subprocess execution from a manual task
|
|
3
|
+
*/
|
|
4
|
+
export interface TaskExecuteConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Either the literal string "all" (any process can be triggered), the literal string "none" (no process can be triggered), or an array of whitelisted process identifiers.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
processes: 'all' | 'none' | string[];
|
|
10
|
+
}
|
|
@@ -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
|