@harnessio/react-rmg-service-client 0.17.0 → 0.18.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 +38 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputStoreQuery.d.ts +33 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputStoreQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputStoreSummaryQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputStoreSummaryQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessInputStoreSummaryQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessInputStoreSummaryQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessQuery.js +1 -1
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessSummaryQuery.js +1 -1
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationActivityInputStoreMutation.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationActivityInputStoreMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationActivityMutation.js +1 -1
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessInputStoreMutation.d.ts +41 -0
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessInputStoreMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessMutation.js +1 -1
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationActivityInputStoreMutation.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationActivityInputStoreMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationActivityMutation.d.ts +27 -0
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationActivityMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationProcessInputStoreMutation.d.ts +39 -0
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationProcessInputStoreMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationProcessMutation.d.ts +27 -0
- package/dist/rmg-service/src/services/hooks/usePutOrchestrationProcessMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +41 -5
- package/dist/rmg-service/src/services/index.js +12 -1
- package/dist/rmg-service/src/services/requestBodies/CreateOrchestrationActivityInputStoreRequestRequestBody.d.ts +6 -0
- package/dist/rmg-service/src/services/requestBodies/UpdateOrchestrationActivityRequestRequestBody.d.ts +3 -0
- package/dist/rmg-service/src/services/requestBodies/UpdateOrchestrationProcessRequestRequestBody.d.ts +3 -0
- package/dist/rmg-service/src/services/responses/{CreateInputSetStoreResponseResponse.d.ts → CreateOrchestrationActivityInputStoreResponseResponse.d.ts} +1 -1
- package/dist/rmg-service/src/services/responses/CreateOrchestrationActivityInputStoreResponseResponse.js +4 -0
- package/dist/rmg-service/src/services/responses/CreateOrchestrationProcessInputStoreResponseResponse.d.ts +6 -0
- package/dist/rmg-service/src/services/responses/CreateOrchestrationProcessInputStoreResponseResponse.js +4 -0
- package/dist/rmg-service/src/services/responses/GetOrchestrationActivityResponseResponse.d.ts +10 -0
- package/dist/rmg-service/src/services/responses/GetOrchestrationActivityResponseResponse.js +4 -0
- package/dist/rmg-service/src/services/responses/OrchestrationActivityInputStoreSummaryResponseResponse.d.ts +16 -0
- package/dist/rmg-service/src/services/responses/OrchestrationActivityInputStoreSummaryResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/OrchestrationActivityListByProcessIdentifierResponseResponse.d.ts +10 -0
- package/dist/rmg-service/src/services/responses/OrchestrationActivityListByProcessIdentifierResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/OrchestrationProcessInputStoreSummaryResponseResponse.d.ts +16 -0
- package/dist/rmg-service/src/services/responses/OrchestrationProcessInputStoreSummaryResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/CreateOrchestrationActivityInputSetRequestType.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/CreateOrchestrationActivityInputSetRequestType.js +4 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityInputStoreDto.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityInputStoreDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +18 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.js +4 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYamlDto.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYamlDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +24 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.js +1 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationProcessInputStoreDto.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationProcessInputStoreDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationReleaseProcessYaml.d.ts +16 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationReleaseProcessYaml.js +1 -0
- package/dist/rmg-service/src/services/schemas/PipelineOrchestrationActivityYaml.d.ts +62 -0
- package/dist/rmg-service/src/services/schemas/PipelineOrchestrationActivityYaml.js +4 -0
- package/package.json +1 -1
- package/dist/rmg-service/src/services/hooks/usePostInputSetStoreMutation.d.ts +0 -25
- package/dist/rmg-service/src/services/hooks/usePostInputSetStoreMutation.js +0 -14
- package/dist/rmg-service/src/services/requestBodies/CreateInputSetStoreRequestRequestBody.d.ts +0 -6
- package/dist/rmg-service/src/services/schemas/CreateInputSetStoreRequestType.d.ts +0 -4
- /package/dist/rmg-service/src/services/requestBodies/{CreateInputSetStoreRequestRequestBody.js → CreateOrchestrationActivityInputStoreRequestRequestBody.js} +0 -0
- /package/dist/rmg-service/src/services/{responses/CreateInputSetStoreResponseResponse.js → requestBodies/UpdateOrchestrationActivityRequestRequestBody.js} +0 -0
- /package/dist/rmg-service/src/services/{schemas/CreateInputSetStoreRequestType.js → requestBodies/UpdateOrchestrationProcessRequestRequestBody.js} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationActivityListByProcessIdentifierResponseResponse } from '../responses/OrchestrationActivityListByProcessIdentifierResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationActivitiesByAcitivityRefsMutationPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
phaseIdentifier?: string;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @default 500
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface GetOrchestrationActivitiesByAcitivityRefsMutationHeaderParams {
|
|
20
|
+
'Harness-Account': string;
|
|
21
|
+
}
|
|
22
|
+
export type GetOrchestrationActivitiesByAcitivityRefsRequestBody = {
|
|
23
|
+
/**
|
|
24
|
+
* Array of activity references
|
|
25
|
+
*/
|
|
26
|
+
activityRefs: string[];
|
|
27
|
+
};
|
|
28
|
+
export type GetOrchestrationActivitiesByAcitivityRefsOkResponse = ResponseWithPagination<OrchestrationActivityListByProcessIdentifierResponseResponse>;
|
|
29
|
+
export type GetOrchestrationActivitiesByAcitivityRefsErrorResponse = ErrorResponseResponse;
|
|
30
|
+
export interface GetOrchestrationActivitiesByAcitivityRefsProps extends GetOrchestrationActivitiesByAcitivityRefsMutationPathParams, Omit<FetcherOptions<GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams, GetOrchestrationActivitiesByAcitivityRefsRequestBody, GetOrchestrationActivitiesByAcitivityRefsMutationHeaderParams>, 'url'> {
|
|
31
|
+
queryParams: GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams;
|
|
32
|
+
body: GetOrchestrationActivitiesByAcitivityRefsRequestBody;
|
|
33
|
+
}
|
|
34
|
+
export declare function getOrchestrationActivitiesByAcitivityRefs(props: GetOrchestrationActivitiesByAcitivityRefsProps): Promise<GetOrchestrationActivitiesByAcitivityRefsOkResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get orchestration activities for a specific process identifier
|
|
37
|
+
*/
|
|
38
|
+
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
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 getOrchestrationActivitiesByAcitivityRefs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/processIdentifier/${props.identifier}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get orchestration activities for a specific process identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationActivitiesByAcitivityRefsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getOrchestrationActivitiesByAcitivityRefs(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationActivityListByProcessIdentifierResponseResponse } from '../responses/OrchestrationActivityListByProcessIdentifierResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationActivitiesByProcessIdentifierQueryPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOrchestrationActivitiesByProcessIdentifierQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
phaseIdentifier?: string;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @default 500
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface GetOrchestrationActivitiesByProcessIdentifierQueryHeaderParams {
|
|
20
|
+
'Harness-Account': string;
|
|
21
|
+
}
|
|
22
|
+
export type GetOrchestrationActivitiesByProcessIdentifierOkResponse = ResponseWithPagination<OrchestrationActivityListByProcessIdentifierResponseResponse>;
|
|
23
|
+
export type GetOrchestrationActivitiesByProcessIdentifierErrorResponse = ErrorResponseResponse;
|
|
24
|
+
export interface GetOrchestrationActivitiesByProcessIdentifierProps extends GetOrchestrationActivitiesByProcessIdentifierQueryPathParams, Omit<FetcherOptions<GetOrchestrationActivitiesByProcessIdentifierQueryQueryParams, unknown, GetOrchestrationActivitiesByProcessIdentifierQueryHeaderParams>, 'url'> {
|
|
25
|
+
queryParams: GetOrchestrationActivitiesByProcessIdentifierQueryQueryParams;
|
|
26
|
+
}
|
|
27
|
+
export declare function getOrchestrationActivitiesByProcessIdentifier(props: GetOrchestrationActivitiesByProcessIdentifierProps): Promise<GetOrchestrationActivitiesByProcessIdentifierOkResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a paginated list of orchestration activities for a specific process identifier
|
|
30
|
+
*/
|
|
31
|
+
export declare function useGetOrchestrationActivitiesByProcessIdentifierQuery(props: GetOrchestrationActivitiesByProcessIdentifierProps, options?: Omit<UseQueryOptions<GetOrchestrationActivitiesByProcessIdentifierOkResponse, GetOrchestrationActivitiesByProcessIdentifierErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivitiesByProcessIdentifierOkResponse, import("..").Error>;
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery.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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOrchestrationActivitiesByProcessIdentifier(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/processIdentifier/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a paginated list of orchestration activities for a specific process identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationActivitiesByProcessIdentifierQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestration-activities-by-process-identifier', props.identifier, props.queryParams], ({ signal }) => getOrchestrationActivitiesByProcessIdentifier(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetOrchestrationActivityInputStoreQueryPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetOrchestrationActivityInputStoreQueryQueryParams {
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetOrchestrationActivityInputStoreQueryHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type GetOrchestrationActivityInputStoreOkResponse = ResponseWithPagination<{
|
|
16
|
+
/**
|
|
17
|
+
* Identifier of the activity input store
|
|
18
|
+
*/
|
|
19
|
+
identifier: string;
|
|
20
|
+
/**
|
|
21
|
+
* YAML configuration of the activity input store
|
|
22
|
+
*/
|
|
23
|
+
yaml: string;
|
|
24
|
+
}>;
|
|
25
|
+
export type GetOrchestrationActivityInputStoreErrorResponse = ErrorResponseResponse;
|
|
26
|
+
export interface GetOrchestrationActivityInputStoreProps extends GetOrchestrationActivityInputStoreQueryPathParams, Omit<FetcherOptions<GetOrchestrationActivityInputStoreQueryQueryParams, unknown, GetOrchestrationActivityInputStoreQueryHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: GetOrchestrationActivityInputStoreQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function getOrchestrationActivityInputStore(props: GetOrchestrationActivityInputStoreProps): Promise<GetOrchestrationActivityInputStoreOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Get the activity input store by identifier
|
|
32
|
+
*/
|
|
33
|
+
export declare function useGetOrchestrationActivityInputStoreQuery(props: GetOrchestrationActivityInputStoreProps, options?: Omit<UseQueryOptions<GetOrchestrationActivityInputStoreOkResponse, GetOrchestrationActivityInputStoreErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivityInputStoreOkResponse, 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 getOrchestrationActivityInputStore(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/inputStore/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the activity input store by identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationActivityInputStoreQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestrationActivityInputStore', props.identifier, props.queryParams], ({ signal }) => getOrchestrationActivityInputStore(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputStoreSummaryQuery.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationActivityInputStoreSummaryResponseResponse } from '../responses/OrchestrationActivityInputStoreSummaryResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationActivityInputStoreSummaryQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
searchTerm?: string;
|
|
9
|
+
page?: number;
|
|
10
|
+
size?: number;
|
|
11
|
+
sort?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface GetOrchestrationActivityInputStoreSummaryQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetOrchestrationActivityInputStoreSummaryOkResponse = ResponseWithPagination<OrchestrationActivityInputStoreSummaryResponseResponse>;
|
|
17
|
+
export type GetOrchestrationActivityInputStoreSummaryErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetOrchestrationActivityInputStoreSummaryProps extends Omit<FetcherOptions<GetOrchestrationActivityInputStoreSummaryQueryQueryParams, unknown, GetOrchestrationActivityInputStoreSummaryQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetOrchestrationActivityInputStoreSummaryQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getOrchestrationActivityInputStoreSummary(props: GetOrchestrationActivityInputStoreSummaryProps): Promise<GetOrchestrationActivityInputStoreSummaryOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Fetch List of Orchestration Activity Input Stores
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetOrchestrationActivityInputStoreSummaryQuery(props: GetOrchestrationActivityInputStoreSummaryProps, options?: Omit<UseQueryOptions<GetOrchestrationActivityInputStoreSummaryOkResponse, GetOrchestrationActivityInputStoreSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivityInputStoreSummaryOkResponse, import("..").Error>;
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputStoreSummaryQuery.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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOrchestrationActivityInputStoreSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/inputStore/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch List of Orchestration Activity Input Stores
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationActivityInputStoreSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestrationActivityInputStore-summary', props.queryParams], ({ signal }) => getOrchestrationActivityInputStoreSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GetOrchestrationActivityResponseResponse } from '../responses/GetOrchestrationActivityResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationActivityQueryPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOrchestrationActivityQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetOrchestrationActivityQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetOrchestrationActivityOkResponse = ResponseWithPagination<GetOrchestrationActivityResponseResponse>;
|
|
17
|
+
export type GetOrchestrationActivityErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetOrchestrationActivityProps extends GetOrchestrationActivityQueryPathParams, Omit<FetcherOptions<GetOrchestrationActivityQueryQueryParams, unknown, GetOrchestrationActivityQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetOrchestrationActivityQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getOrchestrationActivity(props: GetOrchestrationActivityProps): Promise<GetOrchestrationActivityOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get orchestration activity by identifier
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetOrchestrationActivityQuery(props: GetOrchestrationActivityProps, options?: Omit<UseQueryOptions<GetOrchestrationActivityOkResponse, GetOrchestrationActivityErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivityOkResponse, 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 getOrchestrationActivity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get orchestration activity by identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationActivityQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestrationActivity', props.identifier, props.queryParams], ({ signal }) => getOrchestrationActivity(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessInputStoreSummaryQuery.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationProcessInputStoreSummaryResponseResponse } from '../responses/OrchestrationProcessInputStoreSummaryResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationProcessInputStoreSummaryQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
searchTerm?: string;
|
|
9
|
+
page?: number;
|
|
10
|
+
size?: number;
|
|
11
|
+
sort?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface GetOrchestrationProcessInputStoreSummaryQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetOrchestrationProcessInputStoreSummaryOkResponse = ResponseWithPagination<OrchestrationProcessInputStoreSummaryResponseResponse>;
|
|
17
|
+
export type GetOrchestrationProcessInputStoreSummaryErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetOrchestrationProcessInputStoreSummaryProps extends Omit<FetcherOptions<GetOrchestrationProcessInputStoreSummaryQueryQueryParams, unknown, GetOrchestrationProcessInputStoreSummaryQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetOrchestrationProcessInputStoreSummaryQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getOrchestrationProcessInputStoreSummary(props: GetOrchestrationProcessInputStoreSummaryProps): Promise<GetOrchestrationProcessInputStoreSummaryOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Fetch List of Orchestration Process Input Stores
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetOrchestrationProcessInputStoreSummaryQuery(props: GetOrchestrationProcessInputStoreSummaryProps, options?: Omit<UseQueryOptions<GetOrchestrationProcessInputStoreSummaryOkResponse, GetOrchestrationProcessInputStoreSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationProcessInputStoreSummaryOkResponse, import("..").Error>;
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessInputStoreSummaryQuery.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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOrchestrationProcessInputStoreSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/inputStore/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch List of Orchestration Process Input Stores
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationProcessInputStoreSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestrationProcessInputStore-summary', props.queryParams], ({ signal }) => getOrchestrationProcessInputStoreSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getOrchestrationProcess(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/${props.identifier}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get orchestration process by identifier
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getOrchestrationProcessSummary(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/summary`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Fetch List of Orchestration Processes
|
package/dist/rmg-service/src/services/hooks/usePostOrchestrationActivityInputStoreMutation.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateOrchestrationActivityInputStoreResponseResponse } from '../responses/CreateOrchestrationActivityInputStoreResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { CreateOrchestrationActivityInputStoreRequestRequestBody } from '../requestBodies/CreateOrchestrationActivityInputStoreRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface PostOrchestrationActivityInputStoreMutationQueryParams {
|
|
8
|
+
orgIdentifier?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PostOrchestrationActivityInputStoreMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type PostOrchestrationActivityInputStoreRequestBody = CreateOrchestrationActivityInputStoreRequestRequestBody;
|
|
15
|
+
export type PostOrchestrationActivityInputStoreOkResponse = ResponseWithPagination<CreateOrchestrationActivityInputStoreResponseResponse>;
|
|
16
|
+
export type PostOrchestrationActivityInputStoreErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface PostOrchestrationActivityInputStoreProps extends Omit<FetcherOptions<PostOrchestrationActivityInputStoreMutationQueryParams, PostOrchestrationActivityInputStoreRequestBody, PostOrchestrationActivityInputStoreMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: PostOrchestrationActivityInputStoreMutationQueryParams;
|
|
19
|
+
body: PostOrchestrationActivityInputStoreRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function postOrchestrationActivityInputStore(props: PostOrchestrationActivityInputStoreProps): Promise<PostOrchestrationActivityInputStoreOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a new input store
|
|
24
|
+
*/
|
|
25
|
+
export declare function usePostOrchestrationActivityInputStoreMutation(options?: Omit<UseMutationOptions<PostOrchestrationActivityInputStoreOkResponse, PostOrchestrationActivityInputStoreErrorResponse, PostOrchestrationActivityInputStoreProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostOrchestrationActivityInputStoreOkResponse, import("..").Error, PostOrchestrationActivityInputStoreProps, 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 postOrchestrationActivityInputStore(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/inputStore`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a new input store
|
|
11
|
+
*/
|
|
12
|
+
export function usePostOrchestrationActivityInputStoreMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postOrchestrationActivityInputStore(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function postOrchestrationActivity(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Create a new orchestration activity
|
package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessInputStoreMutation.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateOrchestrationProcessInputStoreResponseResponse } from '../responses/CreateOrchestrationProcessInputStoreResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface PostOrchestrationProcessInputStoreMutationQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PostOrchestrationProcessInputStoreMutationHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type PostOrchestrationProcessInputStoreRequestBody = {
|
|
14
|
+
/**
|
|
15
|
+
* Description of the process input store
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the process input store
|
|
20
|
+
*/
|
|
21
|
+
identifier: string;
|
|
22
|
+
/**
|
|
23
|
+
* Name of the process input store
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* identifier for the process
|
|
28
|
+
*/
|
|
29
|
+
processIdentifier?: string;
|
|
30
|
+
};
|
|
31
|
+
export type PostOrchestrationProcessInputStoreOkResponse = ResponseWithPagination<CreateOrchestrationProcessInputStoreResponseResponse>;
|
|
32
|
+
export type PostOrchestrationProcessInputStoreErrorResponse = ErrorResponseResponse;
|
|
33
|
+
export interface PostOrchestrationProcessInputStoreProps extends Omit<FetcherOptions<PostOrchestrationProcessInputStoreMutationQueryParams, PostOrchestrationProcessInputStoreRequestBody, PostOrchestrationProcessInputStoreMutationHeaderParams>, 'url'> {
|
|
34
|
+
queryParams: PostOrchestrationProcessInputStoreMutationQueryParams;
|
|
35
|
+
body: PostOrchestrationProcessInputStoreRequestBody;
|
|
36
|
+
}
|
|
37
|
+
export declare function postOrchestrationProcessInputStore(props: PostOrchestrationProcessInputStoreProps): Promise<PostOrchestrationProcessInputStoreOkResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a new process input store
|
|
40
|
+
*/
|
|
41
|
+
export declare function usePostOrchestrationProcessInputStoreMutation(options?: Omit<UseMutationOptions<PostOrchestrationProcessInputStoreOkResponse, PostOrchestrationProcessInputStoreErrorResponse, PostOrchestrationProcessInputStoreProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostOrchestrationProcessInputStoreOkResponse, import("..").Error, PostOrchestrationProcessInputStoreProps, 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 postOrchestrationProcessInputStore(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/inputStore`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a new process input store
|
|
11
|
+
*/
|
|
12
|
+
export function usePostOrchestrationProcessInputStoreMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postOrchestrationProcessInputStore(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function postOrchestrationProcess(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Create a new orchestration process
|
package/dist/rmg-service/src/services/hooks/usePutOrchestrationActivityInputStoreMutation.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface PutOrchestrationActivityInputStoreMutationPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PutOrchestrationActivityInputStoreMutationQueryParams {
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PutOrchestrationActivityInputStoreMutationHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type PutOrchestrationActivityInputStoreRequestBody = {
|
|
16
|
+
/**
|
|
17
|
+
* YAML configuration of activity input store
|
|
18
|
+
*/
|
|
19
|
+
yaml: string;
|
|
20
|
+
};
|
|
21
|
+
export type PutOrchestrationActivityInputStoreOkResponse = ResponseWithPagination<unknown>;
|
|
22
|
+
export type PutOrchestrationActivityInputStoreErrorResponse = ErrorResponseResponse;
|
|
23
|
+
export interface PutOrchestrationActivityInputStoreProps extends PutOrchestrationActivityInputStoreMutationPathParams, Omit<FetcherOptions<PutOrchestrationActivityInputStoreMutationQueryParams, PutOrchestrationActivityInputStoreRequestBody, PutOrchestrationActivityInputStoreMutationHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: PutOrchestrationActivityInputStoreMutationQueryParams;
|
|
25
|
+
body: PutOrchestrationActivityInputStoreRequestBody;
|
|
26
|
+
}
|
|
27
|
+
export declare function putOrchestrationActivityInputStore(props: PutOrchestrationActivityInputStoreProps): Promise<PutOrchestrationActivityInputStoreOkResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Update the YAML configuration for an activity input store
|
|
30
|
+
*/
|
|
31
|
+
export declare function usePutOrchestrationActivityInputStoreMutation(options?: Omit<UseMutationOptions<PutOrchestrationActivityInputStoreOkResponse, PutOrchestrationActivityInputStoreErrorResponse, PutOrchestrationActivityInputStoreProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PutOrchestrationActivityInputStoreOkResponse, import("..").Error, PutOrchestrationActivityInputStoreProps, 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 putOrchestrationActivityInputStore(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/inputStore/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update the YAML configuration for an activity input store
|
|
11
|
+
*/
|
|
12
|
+
export function usePutOrchestrationActivityInputStoreMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => putOrchestrationActivityInputStore(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { UpdateOrchestrationActivityRequestRequestBody } from '../requestBodies/UpdateOrchestrationActivityRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface PutOrchestrationActivityMutationPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PutOrchestrationActivityMutationQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PutOrchestrationActivityMutationHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type PutOrchestrationActivityRequestBody = UpdateOrchestrationActivityRequestRequestBody;
|
|
17
|
+
export type PutOrchestrationActivityOkResponse = ResponseWithPagination<unknown>;
|
|
18
|
+
export type PutOrchestrationActivityErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface PutOrchestrationActivityProps extends PutOrchestrationActivityMutationPathParams, Omit<FetcherOptions<PutOrchestrationActivityMutationQueryParams, PutOrchestrationActivityRequestBody, PutOrchestrationActivityMutationHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: PutOrchestrationActivityMutationQueryParams;
|
|
21
|
+
body: PutOrchestrationActivityRequestBody;
|
|
22
|
+
}
|
|
23
|
+
export declare function putOrchestrationActivity(props: PutOrchestrationActivityProps): Promise<PutOrchestrationActivityOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Update an orchestration activity with the provided YAML configuration
|
|
26
|
+
*/
|
|
27
|
+
export declare function usePutOrchestrationActivityMutation(options?: Omit<UseMutationOptions<PutOrchestrationActivityOkResponse, PutOrchestrationActivityErrorResponse, PutOrchestrationActivityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PutOrchestrationActivityOkResponse, import("..").Error, PutOrchestrationActivityProps, 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 putOrchestrationActivity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update an orchestration activity with the provided YAML configuration
|
|
11
|
+
*/
|
|
12
|
+
export function usePutOrchestrationActivityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => putOrchestrationActivity(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface PutOrchestrationProcessInputStoreMutationPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PutOrchestrationProcessInputStoreMutationQueryParams {
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface PutOrchestrationProcessInputStoreMutationHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type PutOrchestrationProcessInputStoreRequestBody = {
|
|
16
|
+
/**
|
|
17
|
+
* Identifier of the activity
|
|
18
|
+
*/
|
|
19
|
+
activityIdentifier: string;
|
|
20
|
+
/**
|
|
21
|
+
* Reference to the activity input
|
|
22
|
+
*/
|
|
23
|
+
activityInputRef: string;
|
|
24
|
+
/**
|
|
25
|
+
* Identifier of the phase
|
|
26
|
+
*/
|
|
27
|
+
phaseIdentifier: string;
|
|
28
|
+
};
|
|
29
|
+
export type PutOrchestrationProcessInputStoreOkResponse = ResponseWithPagination<unknown>;
|
|
30
|
+
export type PutOrchestrationProcessInputStoreErrorResponse = ErrorResponseResponse;
|
|
31
|
+
export interface PutOrchestrationProcessInputStoreProps extends PutOrchestrationProcessInputStoreMutationPathParams, Omit<FetcherOptions<PutOrchestrationProcessInputStoreMutationQueryParams, PutOrchestrationProcessInputStoreRequestBody, PutOrchestrationProcessInputStoreMutationHeaderParams>, 'url'> {
|
|
32
|
+
queryParams: PutOrchestrationProcessInputStoreMutationQueryParams;
|
|
33
|
+
body: PutOrchestrationProcessInputStoreRequestBody;
|
|
34
|
+
}
|
|
35
|
+
export declare function putOrchestrationProcessInputStore(props: PutOrchestrationProcessInputStoreProps): Promise<PutOrchestrationProcessInputStoreOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Update the process input store to patch activity ref to activity input ref
|
|
38
|
+
*/
|
|
39
|
+
export declare function usePutOrchestrationProcessInputStoreMutation(options?: Omit<UseMutationOptions<PutOrchestrationProcessInputStoreOkResponse, PutOrchestrationProcessInputStoreErrorResponse, PutOrchestrationProcessInputStoreProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PutOrchestrationProcessInputStoreOkResponse, import("..").Error, PutOrchestrationProcessInputStoreProps, 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 putOrchestrationProcessInputStore(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/inputStore/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update the process input store to patch activity ref to activity input ref
|
|
11
|
+
*/
|
|
12
|
+
export function usePutOrchestrationProcessInputStoreMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => putOrchestrationProcessInputStore(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { UpdateOrchestrationProcessRequestRequestBody } from '../requestBodies/UpdateOrchestrationProcessRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface PutOrchestrationProcessMutationPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PutOrchestrationProcessMutationQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PutOrchestrationProcessMutationHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type PutOrchestrationProcessRequestBody = UpdateOrchestrationProcessRequestRequestBody;
|
|
17
|
+
export type PutOrchestrationProcessOkResponse = ResponseWithPagination<unknown>;
|
|
18
|
+
export type PutOrchestrationProcessErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface PutOrchestrationProcessProps extends PutOrchestrationProcessMutationPathParams, Omit<FetcherOptions<PutOrchestrationProcessMutationQueryParams, PutOrchestrationProcessRequestBody, PutOrchestrationProcessMutationHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: PutOrchestrationProcessMutationQueryParams;
|
|
21
|
+
body: PutOrchestrationProcessRequestBody;
|
|
22
|
+
}
|
|
23
|
+
export declare function putOrchestrationProcess(props: PutOrchestrationProcessProps): Promise<PutOrchestrationProcessOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Update an orchestration process with the provided YAML configuration
|
|
26
|
+
*/
|
|
27
|
+
export declare function usePutOrchestrationProcessMutation(options?: Omit<UseMutationOptions<PutOrchestrationProcessOkResponse, PutOrchestrationProcessErrorResponse, PutOrchestrationProcessProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PutOrchestrationProcessOkResponse, import("..").Error, PutOrchestrationProcessProps, 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 putOrchestrationProcess(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update an orchestration process with the provided YAML configuration
|
|
11
|
+
*/
|
|
12
|
+
export function usePutOrchestrationProcessMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => putOrchestrationProcess(mutateProps), options);
|
|
14
|
+
}
|