@harnessio/react-rmg-service-client 0.25.0 → 0.26.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/useGetOrchestrationActivitiesByAcitivityRefsMutation.d.ts +1 -1
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation.js +1 -1
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitySummaryQuery.d.ts +26 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitySummaryQuery.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +4 -0
- package/dist/rmg-service/src/services/index.js +1 -0
- package/dist/rmg-service/src/services/responses/OrchestrationActivitySummaryResponseResponse.d.ts +16 -0
- package/dist/rmg-service/src/services/responses/OrchestrationActivitySummaryResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivitySummaryDto.d.ts +23 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivitySummaryDto.js +1 -0
- package/package.json +1 -1
|
@@ -29,6 +29,6 @@ export interface GetOrchestrationActivitiesByAcitivityRefsProps extends Omit<Fet
|
|
|
29
29
|
}
|
|
30
30
|
export declare function getOrchestrationActivitiesByAcitivityRefs(props: GetOrchestrationActivitiesByAcitivityRefsProps): Promise<GetOrchestrationActivitiesByAcitivityRefsOkResponse>;
|
|
31
31
|
/**
|
|
32
|
-
* Get orchestration activities for
|
|
32
|
+
* Get orchestration activities for specific activity refs
|
|
33
33
|
*/
|
|
34
34
|
export declare function useGetOrchestrationActivitiesByAcitivityRefsMutation(options?: Omit<UseMutationOptions<GetOrchestrationActivitiesByAcitivityRefsOkResponse, GetOrchestrationActivitiesByAcitivityRefsErrorResponse, GetOrchestrationActivitiesByAcitivityRefsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetOrchestrationActivitiesByAcitivityRefsOkResponse, import("..").Error, GetOrchestrationActivitiesByAcitivityRefsProps, unknown>;
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function getOrchestrationActivitiesByAcitivityRefs(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/orchestration/activity/list`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Get orchestration activities for
|
|
10
|
+
* Get orchestration activities for specific activity refs
|
|
11
11
|
*/
|
|
12
12
|
export function useGetOrchestrationActivitiesByAcitivityRefsMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => getOrchestrationActivitiesByAcitivityRefs(mutateProps), options);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationActivitySummaryResponseResponse } from '../responses/OrchestrationActivitySummaryResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationActivitySummaryQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
page?: number;
|
|
10
|
+
size?: number;
|
|
11
|
+
sort?: string[];
|
|
12
|
+
searchTerm?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetOrchestrationActivitySummaryQueryHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type GetOrchestrationActivitySummaryOkResponse = ResponseWithPagination<OrchestrationActivitySummaryResponseResponse>;
|
|
18
|
+
export type GetOrchestrationActivitySummaryErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface GetOrchestrationActivitySummaryProps extends Omit<FetcherOptions<GetOrchestrationActivitySummaryQueryQueryParams, unknown, GetOrchestrationActivitySummaryQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetOrchestrationActivitySummaryQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getOrchestrationActivitySummary(props: GetOrchestrationActivitySummaryProps): Promise<GetOrchestrationActivitySummaryOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve a paginated list of orchestration activities
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetOrchestrationActivitySummaryQuery(props: GetOrchestrationActivitySummaryProps, options?: Omit<UseQueryOptions<GetOrchestrationActivitySummaryOkResponse, GetOrchestrationActivitySummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivitySummaryOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOrchestrationActivitySummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a paginated list of orchestration activities
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationActivitySummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestration-activity-summary', props.queryParams], ({ signal }) => getOrchestrationActivitySummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -17,6 +17,8 @@ export type { GetOrchestrationActivityInputsErrorResponse, GetOrchestrationActiv
|
|
|
17
17
|
export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
|
|
18
18
|
export type { GetOrchestrationActivityErrorResponse, GetOrchestrationActivityOkResponse, GetOrchestrationActivityProps, GetOrchestrationActivityQueryPathParams, GetOrchestrationActivityQueryQueryParams, } from './hooks/useGetOrchestrationActivityQuery';
|
|
19
19
|
export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
|
|
20
|
+
export type { GetOrchestrationActivitySummaryErrorResponse, GetOrchestrationActivitySummaryOkResponse, GetOrchestrationActivitySummaryProps, GetOrchestrationActivitySummaryQueryQueryParams, } from './hooks/useGetOrchestrationActivitySummaryQuery';
|
|
21
|
+
export { getOrchestrationActivitySummary, useGetOrchestrationActivitySummaryQuery, } from './hooks/useGetOrchestrationActivitySummaryQuery';
|
|
20
22
|
export type { GetOrchestrationExecutionActivitiesErrorResponse, GetOrchestrationExecutionActivitiesOkResponse, GetOrchestrationExecutionActivitiesProps, GetOrchestrationExecutionActivitiesQueryPathParams, GetOrchestrationExecutionActivitiesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
21
23
|
export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
22
24
|
export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
@@ -114,6 +116,7 @@ export type { GetOrchestrationProcessInputResponseResponse } from './responses/G
|
|
|
114
116
|
export type { GetOrchestrationProcessResponseResponse } from './responses/GetOrchestrationProcessResponseResponse';
|
|
115
117
|
export type { GetReleaseGroupResponseResponse } from './responses/GetReleaseGroupResponseResponse';
|
|
116
118
|
export type { OrchestrationActivityListByProcessIdentifierResponseResponse } from './responses/OrchestrationActivityListByProcessIdentifierResponseResponse';
|
|
119
|
+
export type { OrchestrationActivitySummaryResponseResponse } from './responses/OrchestrationActivitySummaryResponseResponse';
|
|
117
120
|
export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from './responses/OrchestrationProcessAttachedReleaseGroupsResponseResponse';
|
|
118
121
|
export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
|
|
119
122
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
@@ -166,6 +169,7 @@ export type { NextRequest } from './schemas/NextRequest';
|
|
|
166
169
|
export type { OrchestrationActivityManualYaml } from './schemas/OrchestrationActivityManualYaml';
|
|
167
170
|
export type { OrchestrationActivityPipelineYaml } from './schemas/OrchestrationActivityPipelineYaml';
|
|
168
171
|
export type { OrchestrationActivityProcessYaml } from './schemas/OrchestrationActivityProcessYaml';
|
|
172
|
+
export type { OrchestrationActivitySummaryDto } from './schemas/OrchestrationActivitySummaryDto';
|
|
169
173
|
export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
|
|
170
174
|
export type { OrchestrationActivityYamlDto } from './schemas/OrchestrationActivityYamlDto';
|
|
171
175
|
export type { OrchestrationExecutionActivity } from './schemas/OrchestrationExecutionActivity';
|
|
@@ -7,6 +7,7 @@ export { getOrchestrationActivitiesByAcitivityRefs, useGetOrchestrationActivitie
|
|
|
7
7
|
export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActivitiesByProcessIdentifierQuery, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
|
|
8
8
|
export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
|
|
9
9
|
export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
|
|
10
|
+
export { getOrchestrationActivitySummary, useGetOrchestrationActivitySummaryQuery, } from './hooks/useGetOrchestrationActivitySummaryQuery';
|
|
10
11
|
export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
11
12
|
export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
12
13
|
export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
|
package/dist/rmg-service/src/services/responses/OrchestrationActivitySummaryResponseResponse.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OrchestrationActivitySummaryDto } from '../schemas/OrchestrationActivitySummaryDto';
|
|
2
|
+
import type { Pageable } from '../schemas/Pageable';
|
|
3
|
+
import type { PageableSort } from '../schemas/PageableSort';
|
|
4
|
+
export interface OrchestrationActivitySummaryResponseResponse {
|
|
5
|
+
content: OrchestrationActivitySummaryDto[];
|
|
6
|
+
empty: boolean;
|
|
7
|
+
first: boolean;
|
|
8
|
+
last: boolean;
|
|
9
|
+
number: number;
|
|
10
|
+
numberOfElements: number;
|
|
11
|
+
pageable: Pageable;
|
|
12
|
+
size: number;
|
|
13
|
+
sort: PageableSort;
|
|
14
|
+
totalElements: number;
|
|
15
|
+
totalPages: number;
|
|
16
|
+
}
|
package/dist/rmg-service/src/services/responses/OrchestrationActivitySummaryResponseResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { LastUpdatedByDto } from '../schemas/LastUpdatedByDto';
|
|
2
|
+
import type { CreateOrchestrationActivityRequestType } from '../schemas/CreateOrchestrationActivityRequestType';
|
|
3
|
+
export interface OrchestrationActivitySummaryDto {
|
|
4
|
+
/**
|
|
5
|
+
* Description of the orchestration activity
|
|
6
|
+
*/
|
|
7
|
+
description?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Identifier of the orchestration activity
|
|
10
|
+
*/
|
|
11
|
+
identifier: string;
|
|
12
|
+
/**
|
|
13
|
+
* Last updated timestamp in milliseconds
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
lastUpdatedAt: number;
|
|
17
|
+
lastUpdatedBy: LastUpdatedByDto;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the orchestration activity
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
type: CreateOrchestrationActivityRequestType;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|