@harnessio/react-rmg-service-client 0.92.0 → 0.93.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.
Files changed (18) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetYamlSchemaQuery.d.ts +2 -2
  2. package/dist/rmg-service/src/services/hooks/useGetYamlSchemaQuery.js +1 -1
  3. package/dist/rmg-service/src/services/hooks/usePostForceImportOrchestrationActivityMutation.d.ts +2 -2
  4. package/dist/rmg-service/src/services/hooks/usePostForceImportOrchestrationProcessInputMutation.d.ts +2 -2
  5. package/dist/rmg-service/src/services/hooks/usePostForceImportOrchestrationProcessMutation.d.ts +2 -2
  6. package/dist/rmg-service/src/services/hooks/usePostPendingActionsReportGenerateMutation.d.ts +27 -0
  7. package/dist/rmg-service/src/services/hooks/usePostPendingActionsReportGenerateMutation.js +14 -0
  8. package/dist/rmg-service/src/services/index.d.ts +5 -0
  9. package/dist/rmg-service/src/services/index.js +1 -0
  10. package/dist/rmg-service/src/services/schemas/ForceImportOrchestrationActivityNgResponse.d.ts +12 -0
  11. package/dist/rmg-service/src/services/schemas/ForceImportOrchestrationActivityNgResponse.js +1 -0
  12. package/dist/rmg-service/src/services/schemas/ForceImportOrchestrationProcessInputNgResponse.d.ts +12 -0
  13. package/dist/rmg-service/src/services/schemas/ForceImportOrchestrationProcessInputNgResponse.js +1 -0
  14. package/dist/rmg-service/src/services/schemas/ForceImportOrchestrationProcessNgResponse.d.ts +12 -0
  15. package/dist/rmg-service/src/services/schemas/ForceImportOrchestrationProcessNgResponse.js +1 -0
  16. package/dist/rmg-service/src/services/schemas/OrchestrationActivityPipelineYaml.d.ts +5 -1
  17. package/dist/rmg-service/src/services/schemas/WebhookSignalPipeline.d.ts +4 -0
  18. package/package.json +1 -1
@@ -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: 'ACTIVITY' | 'PROCESS';
8
+ entityType: 'ACTIVITY' | 'PROCESS' | 'PROCESS_INPUT';
9
9
  }
10
10
  export interface GetYamlSchemaQueryHeaderParams {
11
11
  'Harness-Account': string;
@@ -19,6 +19,6 @@ export interface GetYamlSchemaProps extends Omit<FetcherOptions<GetYamlSchemaQue
19
19
  }
20
20
  export declare function getYamlSchema(props: GetYamlSchemaProps): Promise<GetYamlSchemaOkResponse>;
21
21
  /**
22
- * Returns the JSON Schema for the specified entity type. Currently supports entityType=PROCESS.
22
+ * Returns the JSON Schema for the specified entity type. Supports entityType=PROCESS, ACTIVITY, and PROCESS_INPUT.
23
23
  */
24
24
  export declare function useGetYamlSchemaQuery(props: GetYamlSchemaProps, options?: Omit<UseQueryOptions<GetYamlSchemaOkResponse, GetYamlSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetYamlSchemaOkResponse, import("..").Error>;
@@ -7,7 +7,7 @@ export function getYamlSchema(props) {
7
7
  return fetcher(Object.assign({ url: `/yamlSchema`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Returns the JSON Schema for the specified entity type. Currently supports entityType=PROCESS.
10
+ * Returns the JSON Schema for the specified entity type. Supports entityType=PROCESS, ACTIVITY, and PROCESS_INPUT.
11
11
  */
12
12
  export function useGetYamlSchemaQuery(props, options) {
13
13
  return useQuery(['get-yamlSchema', props.queryParams], ({ signal }) => getYamlSchema(Object.assign(Object.assign({}, props), { signal })), options);
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ForceImportOrchestrationActivityResponse } from '../schemas/ForceImportOrchestrationActivityResponse';
2
+ import type { ForceImportOrchestrationActivityNgResponse } from '../schemas/ForceImportOrchestrationActivityNgResponse';
3
3
  import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
4
  import type { ForceImportOrchestrationActivityRequest } from '../schemas/ForceImportOrchestrationActivityRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
@@ -8,7 +8,7 @@ export interface PostForceImportOrchestrationActivityMutationHeaderParams {
8
8
  'Harness-Account': string;
9
9
  }
10
10
  export type PostForceImportOrchestrationActivityRequestBody = ForceImportOrchestrationActivityRequest;
11
- export type PostForceImportOrchestrationActivityOkResponse = ResponseWithPagination<ForceImportOrchestrationActivityResponse>;
11
+ export type PostForceImportOrchestrationActivityOkResponse = ResponseWithPagination<ForceImportOrchestrationActivityNgResponse>;
12
12
  export type PostForceImportOrchestrationActivityErrorResponse = ErrorResponseResponse;
13
13
  export interface PostForceImportOrchestrationActivityProps extends Omit<FetcherOptions<unknown, PostForceImportOrchestrationActivityRequestBody, PostForceImportOrchestrationActivityMutationHeaderParams>, 'url'> {
14
14
  body: PostForceImportOrchestrationActivityRequestBody;
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ForceImportOrchestrationProcessInputResponse } from '../schemas/ForceImportOrchestrationProcessInputResponse';
2
+ import type { ForceImportOrchestrationProcessInputNgResponse } from '../schemas/ForceImportOrchestrationProcessInputNgResponse';
3
3
  import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
4
  import type { ForceImportOrchestrationProcessInputRequest } from '../schemas/ForceImportOrchestrationProcessInputRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
@@ -8,7 +8,7 @@ export interface PostForceImportOrchestrationProcessInputMutationHeaderParams {
8
8
  'Harness-Account': string;
9
9
  }
10
10
  export type PostForceImportOrchestrationProcessInputRequestBody = ForceImportOrchestrationProcessInputRequest;
11
- export type PostForceImportOrchestrationProcessInputOkResponse = ResponseWithPagination<ForceImportOrchestrationProcessInputResponse>;
11
+ export type PostForceImportOrchestrationProcessInputOkResponse = ResponseWithPagination<ForceImportOrchestrationProcessInputNgResponse>;
12
12
  export type PostForceImportOrchestrationProcessInputErrorResponse = ErrorResponseResponse;
13
13
  export interface PostForceImportOrchestrationProcessInputProps extends Omit<FetcherOptions<unknown, PostForceImportOrchestrationProcessInputRequestBody, PostForceImportOrchestrationProcessInputMutationHeaderParams>, 'url'> {
14
14
  body: PostForceImportOrchestrationProcessInputRequestBody;
@@ -1,5 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ForceImportOrchestrationProcessResponse } from '../schemas/ForceImportOrchestrationProcessResponse';
2
+ import type { ForceImportOrchestrationProcessNgResponse } from '../schemas/ForceImportOrchestrationProcessNgResponse';
3
3
  import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
4
  import type { ForceImportOrchestrationProcessRequest } from '../schemas/ForceImportOrchestrationProcessRequest';
5
5
  import type { ResponseWithPagination } from '../helpers';
@@ -8,7 +8,7 @@ export interface PostForceImportOrchestrationProcessMutationHeaderParams {
8
8
  'Harness-Account': string;
9
9
  }
10
10
  export type PostForceImportOrchestrationProcessRequestBody = ForceImportOrchestrationProcessRequest;
11
- export type PostForceImportOrchestrationProcessOkResponse = ResponseWithPagination<ForceImportOrchestrationProcessResponse>;
11
+ export type PostForceImportOrchestrationProcessOkResponse = ResponseWithPagination<ForceImportOrchestrationProcessNgResponse>;
12
12
  export type PostForceImportOrchestrationProcessErrorResponse = ErrorResponseResponse;
13
13
  export interface PostForceImportOrchestrationProcessProps extends Omit<FetcherOptions<unknown, PostForceImportOrchestrationProcessRequestBody, PostForceImportOrchestrationProcessMutationHeaderParams>, 'url'> {
14
14
  body: PostForceImportOrchestrationProcessRequestBody;
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ReportGenerationResponseResponse } from '../responses/ReportGenerationResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface PostPendingActionsReportGenerateMutationQueryParams {
7
+ orgIdentifier?: string;
8
+ projectIdentifier?: string;
9
+ myActions?: boolean;
10
+ pendingOnMe?: boolean;
11
+ requestedBy?: string;
12
+ pendingOnUserId?: string;
13
+ pendingOnOthers?: boolean;
14
+ }
15
+ export interface PostPendingActionsReportGenerateMutationHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type PostPendingActionsReportGenerateOkResponse = ResponseWithPagination<ReportGenerationResponseResponse>;
19
+ export type PostPendingActionsReportGenerateErrorResponse = ErrorResponseResponse;
20
+ export interface PostPendingActionsReportGenerateProps extends Omit<FetcherOptions<PostPendingActionsReportGenerateMutationQueryParams, unknown, PostPendingActionsReportGenerateMutationHeaderParams>, 'url'> {
21
+ queryParams: PostPendingActionsReportGenerateMutationQueryParams;
22
+ }
23
+ export declare function postPendingActionsReportGenerate(props: PostPendingActionsReportGenerateProps): Promise<PostPendingActionsReportGenerateOkResponse>;
24
+ /**
25
+ * Generate an Excel report of the approvals and manual activity tasks pending in the given scope, as one workbook with an Approvals sheet and a Tasks sheet. Accepts the same filters as /approvals/pending and /tasks/pending (every matching row is exported, up to a cap per sheet). The report is built in the background; poll /release/report/{reportId}/status and download it from /release/report/{reportId}/download once COMPLETED.
26
+ */
27
+ export declare function usePostPendingActionsReportGenerateMutation(options?: Omit<UseMutationOptions<PostPendingActionsReportGenerateOkResponse, PostPendingActionsReportGenerateErrorResponse, PostPendingActionsReportGenerateProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostPendingActionsReportGenerateOkResponse, import("..").Error, PostPendingActionsReportGenerateProps, 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 postPendingActionsReportGenerate(props) {
7
+ return fetcher(Object.assign({ url: `/report/pending-actions/generate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Generate an Excel report of the approvals and manual activity tasks pending in the given scope, as one workbook with an Approvals sheet and a Tasks sheet. Accepts the same filters as /approvals/pending and /tasks/pending (every matching row is exported, up to a cap per sheet). The report is built in the background; poll /release/report/{reportId}/status and download it from /release/report/{reportId}/download once COMPLETED.
11
+ */
12
+ export function usePostPendingActionsReportGenerateMutation(options) {
13
+ return useMutation((mutateProps) => postPendingActionsReportGenerate(mutateProps), options);
14
+ }
@@ -191,6 +191,8 @@ export type { PostOrchestrationProcessInputValidateErrorResponse, PostOrchestrat
191
191
  export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
192
192
  export type { PostOrchestrationProcessErrorResponse, PostOrchestrationProcessMutationQueryParams, PostOrchestrationProcessOkResponse, PostOrchestrationProcessProps, PostOrchestrationProcessRequestBody, } from './hooks/usePostOrchestrationProcessMutation';
193
193
  export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
194
+ export type { PostPendingActionsReportGenerateErrorResponse, PostPendingActionsReportGenerateMutationQueryParams, PostPendingActionsReportGenerateOkResponse, PostPendingActionsReportGenerateProps, } from './hooks/usePostPendingActionsReportGenerateMutation';
195
+ export { postPendingActionsReportGenerate, usePostPendingActionsReportGenerateMutation, } from './hooks/usePostPendingActionsReportGenerateMutation';
194
196
  export type { PostPhaseActionErrorResponse, PostPhaseActionMutationPathParams, PostPhaseActionMutationQueryParams, PostPhaseActionOkResponse, PostPhaseActionProps, PostPhaseActionRequestBody, } from './hooks/usePostPhaseActionMutation';
195
197
  export { postPhaseAction, usePostPhaseActionMutation } from './hooks/usePostPhaseActionMutation';
196
198
  export type { PostProcessExecutionActionErrorResponse, PostProcessExecutionActionMutationPathParams, PostProcessExecutionActionMutationQueryParams, PostProcessExecutionActionOkResponse, PostProcessExecutionActionProps, PostProcessExecutionActionRequestBody, } from './hooks/usePostProcessExecutionActionMutation';
@@ -422,10 +424,13 @@ export type { ExecutionTriggerInfo } from './schemas/ExecutionTriggerInfo';
422
424
  export type { FailureInfo } from './schemas/FailureInfo';
423
425
  export type { FailureInfoDto } from './schemas/FailureInfoDto';
424
426
  export type { ForceImportGovernanceResponse } from './schemas/ForceImportGovernanceResponse';
427
+ export type { ForceImportOrchestrationActivityNgResponse } from './schemas/ForceImportOrchestrationActivityNgResponse';
425
428
  export type { ForceImportOrchestrationActivityRequest } from './schemas/ForceImportOrchestrationActivityRequest';
426
429
  export type { ForceImportOrchestrationActivityResponse } from './schemas/ForceImportOrchestrationActivityResponse';
430
+ export type { ForceImportOrchestrationProcessInputNgResponse } from './schemas/ForceImportOrchestrationProcessInputNgResponse';
427
431
  export type { ForceImportOrchestrationProcessInputRequest } from './schemas/ForceImportOrchestrationProcessInputRequest';
428
432
  export type { ForceImportOrchestrationProcessInputResponse } from './schemas/ForceImportOrchestrationProcessInputResponse';
433
+ export type { ForceImportOrchestrationProcessNgResponse } from './schemas/ForceImportOrchestrationProcessNgResponse';
429
434
  export type { ForceImportOrchestrationProcessRequest } from './schemas/ForceImportOrchestrationProcessRequest';
430
435
  export type { ForceImportOrchestrationProcessResponse } from './schemas/ForceImportOrchestrationProcessResponse';
431
436
  export type { FreezeDetailsDto } from './schemas/FreezeDetailsDto';
@@ -94,6 +94,7 @@ export { postOrchestrationProcessExecute, usePostOrchestrationProcessExecuteMuta
94
94
  export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
95
95
  export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
96
96
  export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
97
+ export { postPendingActionsReportGenerate, usePostPendingActionsReportGenerateMutation, } from './hooks/usePostPendingActionsReportGenerateMutation';
97
98
  export { postPhaseAction, usePostPhaseActionMutation } from './hooks/usePostPhaseActionMutation';
98
99
  export { postProcessExecutionAction, usePostProcessExecutionActionMutation, } from './hooks/usePostProcessExecutionActionMutation';
99
100
  export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
@@ -0,0 +1,12 @@
1
+ import type { ForceImportOrchestrationActivityResponse } from '../schemas/ForceImportOrchestrationActivityResponse';
2
+ export interface ForceImportOrchestrationActivityNgResponse {
3
+ /**
4
+ * Optional request correlation id
5
+ */
6
+ correlationId?: string;
7
+ data: ForceImportOrchestrationActivityResponse;
8
+ /**
9
+ * Harness NG ResponseDTO status
10
+ */
11
+ status: 'SUCCESS';
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { ForceImportOrchestrationProcessInputResponse } from '../schemas/ForceImportOrchestrationProcessInputResponse';
2
+ export interface ForceImportOrchestrationProcessInputNgResponse {
3
+ /**
4
+ * Optional request correlation id
5
+ */
6
+ correlationId?: string;
7
+ data: ForceImportOrchestrationProcessInputResponse;
8
+ /**
9
+ * Harness NG ResponseDTO status
10
+ */
11
+ status: 'SUCCESS';
12
+ }
@@ -0,0 +1,12 @@
1
+ import type { ForceImportOrchestrationProcessResponse } from '../schemas/ForceImportOrchestrationProcessResponse';
2
+ export interface ForceImportOrchestrationProcessNgResponse {
3
+ /**
4
+ * Optional request correlation id
5
+ */
6
+ correlationId?: string;
7
+ data: ForceImportOrchestrationProcessResponse;
8
+ /**
9
+ * Harness NG ResponseDTO status
10
+ */
11
+ status: 'SUCCESS';
12
+ }
@@ -17,9 +17,13 @@ export interface OrchestrationActivityPipelineYaml {
17
17
  [key: string]: string;
18
18
  };
19
19
  /**
20
- * Pipeline input set configuration
20
+ * Pipeline input set configuration. Besides the inline pipeline input mapping, it can hold inputSetReferences, which take precedence over the inline mapping when set.
21
21
  */
22
22
  inputSet?: {
23
+ /**
24
+ * Saved pipeline input set identifiers to run the pipeline with. Each item is a static identifier or an expression (e.g. an activity variable). When set, the inline pipeline input mapping, stages and expression are ignored.
25
+ */
26
+ inputSetReferences?: string[];
23
27
  [key: string]: any;
24
28
  };
25
29
  /**
@@ -11,6 +11,10 @@ export interface WebhookSignalPipeline {
11
11
  * Organization identifier.
12
12
  */
13
13
  orgId: string;
14
+ /**
15
+ * Plan execution identifier of the parent pipeline when this pipeline runs as a chained (child) pipeline stage. Omitted for non-chained pipelines.
16
+ */
17
+ parentExecutionId?: string;
14
18
  /**
15
19
  * Project identifier.
16
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.92.0",
3
+ "version": "0.93.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",