@harnessio/react-rmg-service-client 0.68.0 → 0.69.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.
@@ -1,5 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
3
+ import type { ProcessExecutionActionRequest } from '../schemas/ProcessExecutionActionRequest';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface PostProcessExecutionActionMutationPathParams {
@@ -12,12 +13,7 @@ export interface PostProcessExecutionActionMutationQueryParams {
12
13
  export interface PostProcessExecutionActionMutationHeaderParams {
13
14
  'Harness-Account': string;
14
15
  }
15
- export type PostProcessExecutionActionRequestBody = {
16
- /**
17
- * Action to perform on the process execution
18
- */
19
- action: 'Abort';
20
- };
16
+ export type PostProcessExecutionActionRequestBody = ProcessExecutionActionRequest;
21
17
  export type PostProcessExecutionActionOkResponse = ResponseWithPagination<{
22
18
  /**
23
19
  * Result status
@@ -397,10 +397,12 @@ export type { PipelineStageInfo } from './schemas/PipelineStageInfo';
397
397
  export type { PolicyMetadata } from './schemas/PolicyMetadata';
398
398
  export type { PolicySetMetadata } from './schemas/PolicySetMetadata';
399
399
  export type { PrimitiveInputVariable } from './schemas/PrimitiveInputVariable';
400
+ export type { ProcessExecutionActionRequest } from './schemas/ProcessExecutionActionRequest';
400
401
  export type { ProcessExecutionDetailsResponse } from './schemas/ProcessExecutionDetailsResponse';
401
402
  export type { ProcessExecutionDto } from './schemas/ProcessExecutionDto';
402
403
  export type { ProcessExecutionInfoDto } from './schemas/ProcessExecutionInfoDto';
403
404
  export type { ProcessExecutionInputResponse } from './schemas/ProcessExecutionInputResponse';
405
+ export type { ProcessExecutionStatus } from './schemas/ProcessExecutionStatus';
404
406
  export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
405
407
  export type { ProcessInputValidationResponse } from './schemas/ProcessInputValidationResponse';
406
408
  export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
@@ -0,0 +1,11 @@
1
+ export interface ProcessExecutionActionRequest {
2
+ /**
3
+ * Action to perform on the process execution
4
+ */
5
+ action: 'Abort';
6
+ /**
7
+ * Message explaining the reason for the action (e.g., why the process execution is being aborted)
8
+ * @example "Production issue detected - aborting process execution"
9
+ */
10
+ message: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { ReleaseInfo } from '../schemas/ReleaseInfo';
2
- import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
2
+ import type { ProcessExecutionStatus } from '../schemas/ProcessExecutionStatus';
3
3
  import type { TriggeredByDto } from '../schemas/TriggeredByDto';
4
4
  /**
5
5
  * A single execution history row for GET /orchestration/process/{identifier}/executions. Process context comes from the URL path; use executionId to navigate to the execution.
@@ -39,7 +39,7 @@ export interface ProcessExecutionDto {
39
39
  * Execution start timestamp in milliseconds
40
40
  */
41
41
  startedAt: number;
42
- status: OrchestrationStatus;
42
+ status: ProcessExecutionStatus;
43
43
  triggeredBy?: TriggeredByDto;
44
44
  /**
45
45
  * Last updated timestamp in milliseconds
@@ -1,3 +1,4 @@
1
+ import type { ProcessExecutionStatus } from '../schemas/ProcessExecutionStatus';
1
2
  import type { TriggeredByDto } from '../schemas/TriggeredByDto';
2
3
  /**
3
4
  * Summary metadata for a single process execution (GET /orchestration/process/execution/{executionId}).
@@ -20,9 +21,6 @@ export interface ProcessExecutionInfoDto {
20
21
  * @format int64
21
22
  */
22
23
  startTs: number;
23
- /**
24
- * Release-style execution status
25
- */
26
- status: 'Aborted' | 'Failed' | 'InputWaiting' | 'Paused' | 'Running' | 'Scheduled' | 'Success';
24
+ status: ProcessExecutionStatus;
27
25
  triggeredBy?: TriggeredByDto;
28
26
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Release-style execution status
3
+ */
4
+ export type ProcessExecutionStatus = 'Aborted' | 'Failed' | 'InputWaiting' | 'Paused' | 'Running' | 'Scheduled' | 'Success';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.68.0",
3
+ "version": "0.69.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",