@harnessio/react-template-service-client 0.11.0 → 1.0.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/template-service/src/services/hooks/useCreateTemplatesMutation.d.ts +42 -0
- package/dist/template-service/src/services/hooks/useCreateTemplatesMutation.js +30 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateMutation.d.ts +53 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateMutation.js +30 -0
- package/dist/template-service/src/services/hooks/useGetTemplateQuery.d.ts +69 -0
- package/dist/template-service/src/services/hooks/useGetTemplateQuery.js +30 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableQuery.d.ts +67 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableQuery.js +30 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListQuery.d.ts +102 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListQuery.js +30 -0
- package/dist/template-service/src/services/hooks/useImportTemplateMutation.d.ts +42 -0
- package/dist/template-service/src/services/hooks/useImportTemplateMutation.js +30 -0
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsRefMutation.d.ts +42 -0
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsRefMutation.js +30 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateMutation.d.ts +48 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateMutation.js +30 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableMutation.d.ts +48 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableMutation.js +30 -0
- package/dist/template-service/src/services/index.d.ts +18 -54
- package/dist/template-service/src/services/index.js +9 -27
- package/package.json +1 -1
- package/dist/template-service/src/services/hooks/useCreateTemplatesAccMutation.d.ts +0 -23
- package/dist/template-service/src/services/hooks/useCreateTemplatesAccMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useCreateTemplatesOrgMutation.d.ts +0 -22
- package/dist/template-service/src/services/hooks/useCreateTemplatesOrgMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useCreateTemplatesProjectMutation.d.ts +0 -23
- package/dist/template-service/src/services/hooks/useCreateTemplatesProjectMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useDeleteTemplateAccMutation.d.ts +0 -25
- package/dist/template-service/src/services/hooks/useDeleteTemplateAccMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useDeleteTemplateOrgMutation.d.ts +0 -25
- package/dist/template-service/src/services/hooks/useDeleteTemplateOrgMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useDeleteTemplateProjectMutation.d.ts +0 -26
- package/dist/template-service/src/services/hooks/useDeleteTemplateProjectMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplateAccQuery.d.ts +0 -31
- package/dist/template-service/src/services/hooks/useGetTemplateAccQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplateOrgQuery.d.ts +0 -31
- package/dist/template-service/src/services/hooks/useGetTemplateOrgQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplateProjectQuery.d.ts +0 -32
- package/dist/template-service/src/services/hooks/useGetTemplateProjectQuery.js +0 -21
- package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.d.ts +0 -31
- package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplateStableOrgQuery.d.ts +0 -30
- package/dist/template-service/src/services/hooks/useGetTemplateStableOrgQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplateStableProjectQuery.d.ts +0 -31
- package/dist/template-service/src/services/hooks/useGetTemplateStableProjectQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplatesListAccQuery.d.ts +0 -44
- package/dist/template-service/src/services/hooks/useGetTemplatesListAccQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplatesListOrgQuery.d.ts +0 -40
- package/dist/template-service/src/services/hooks/useGetTemplatesListOrgQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useGetTemplatesListProjectQuery.d.ts +0 -41
- package/dist/template-service/src/services/hooks/useGetTemplatesListProjectQuery.js +0 -14
- package/dist/template-service/src/services/hooks/useImportTemplateAccMutation.d.ts +0 -22
- package/dist/template-service/src/services/hooks/useImportTemplateAccMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useImportTemplateOrgMutation.d.ts +0 -23
- package/dist/template-service/src/services/hooks/useImportTemplateOrgMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useImportTemplateProjectMutation.d.ts +0 -24
- package/dist/template-service/src/services/hooks/useImportTemplateProjectMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsMutation.d.ts +0 -22
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsOrgMutation.d.ts +0 -23
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsOrgMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.d.ts +0 -24
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateTemplateAccMutation.d.ts +0 -27
- package/dist/template-service/src/services/hooks/useUpdateTemplateAccMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateTemplateOrgMutation.d.ts +0 -24
- package/dist/template-service/src/services/hooks/useUpdateTemplateOrgMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateTemplateProjectMutation.d.ts +0 -25
- package/dist/template-service/src/services/hooks/useUpdateTemplateProjectMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableAccMutation.d.ts +0 -27
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableAccMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableOrgMutation.d.ts +0 -24
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableOrgMutation.js +0 -14
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableProjectMutation.d.ts +0 -25
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableProjectMutation.js +0 -14
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplateAcc(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/templates/${props.template}/versions/${props.version}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves particular version of Template at Account scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplateAccQuery(props, options) {
|
|
13
|
-
return useQuery(['get-template-acc', props.template, props.version, props.queryParams], ({ signal }) => getTemplateAcc(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplateOrgQueryPathParams {
|
|
6
|
-
template: string;
|
|
7
|
-
org: string;
|
|
8
|
-
version: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetTemplateOrgQueryQueryParams {
|
|
11
|
-
include_yaml?: boolean;
|
|
12
|
-
branch_name?: string;
|
|
13
|
-
parent_entity_connector_ref?: string;
|
|
14
|
-
parent_entity_repo_name?: string;
|
|
15
|
-
parent_entity_account_id?: string;
|
|
16
|
-
parent_entity_org_id?: string;
|
|
17
|
-
parent_entity_project_id?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface GetTemplateOrgQueryHeaderParams {
|
|
20
|
-
'Harness-Account'?: string;
|
|
21
|
-
}
|
|
22
|
-
export type GetTemplateOrgOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
|
|
23
|
-
export type GetTemplateOrgErrorResponse = unknown;
|
|
24
|
-
export interface GetTemplateOrgProps extends GetTemplateOrgQueryPathParams, Omit<FetcherOptions<GetTemplateOrgQueryQueryParams, unknown, GetTemplateOrgQueryHeaderParams>, 'url'> {
|
|
25
|
-
queryParams: GetTemplateOrgQueryQueryParams;
|
|
26
|
-
}
|
|
27
|
-
export declare function getTemplateOrg(props: GetTemplateOrgProps): Promise<GetTemplateOrgOkResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves particular version of Template at Organization scope.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useGetTemplateOrgQuery(props: GetTemplateOrgProps, options?: Omit<UseQueryOptions<GetTemplateOrgOkResponse, GetTemplateOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateOrgOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplateOrg(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/${props.template}/versions/${props.version}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves particular version of Template at Organization scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplateOrgQuery(props, options) {
|
|
13
|
-
return useQuery(['get-template-org', props.template, props.org, props.version, props.queryParams], ({ signal }) => getTemplateOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplateProjectQueryPathParams {
|
|
6
|
-
project: string;
|
|
7
|
-
template: string;
|
|
8
|
-
org: string;
|
|
9
|
-
version: string;
|
|
10
|
-
}
|
|
11
|
-
export interface GetTemplateProjectQueryQueryParams {
|
|
12
|
-
include_yaml?: boolean;
|
|
13
|
-
branch_name?: string;
|
|
14
|
-
parent_entity_connector_ref?: string;
|
|
15
|
-
parent_entity_repo_name?: string;
|
|
16
|
-
parent_entity_account_id?: string;
|
|
17
|
-
parent_entity_org_id?: string;
|
|
18
|
-
parent_entity_project_id?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface GetTemplateProjectQueryHeaderParams {
|
|
21
|
-
'Harness-Account'?: string;
|
|
22
|
-
}
|
|
23
|
-
export type GetTemplateProjectOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
|
|
24
|
-
export type GetTemplateProjectErrorResponse = unknown;
|
|
25
|
-
export interface GetTemplateProjectProps extends GetTemplateProjectQueryPathParams, Omit<FetcherOptions<GetTemplateProjectQueryQueryParams, unknown, GetTemplateProjectQueryHeaderParams>, 'url'> {
|
|
26
|
-
queryParams: GetTemplateProjectQueryQueryParams;
|
|
27
|
-
}
|
|
28
|
-
export declare function getTemplateProject(props: GetTemplateProjectProps): Promise<GetTemplateProjectOkResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves particular version of Template at Project scope.
|
|
31
|
-
*/
|
|
32
|
-
export declare function useGetTemplateProjectQuery(props: GetTemplateProjectProps, options?: Omit<UseQueryOptions<GetTemplateProjectOkResponse, GetTemplateProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateProjectOkResponse, unknown>;
|
|
@@ -1,21 +0,0 @@
|
|
|
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 getTemplateProject(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}/versions/${props.version}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves particular version of Template at Project scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplateProjectQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
14
|
-
'get-template-project',
|
|
15
|
-
props.project,
|
|
16
|
-
props.template,
|
|
17
|
-
props.org,
|
|
18
|
-
props.version,
|
|
19
|
-
props.queryParams,
|
|
20
|
-
], ({ signal }) => getTemplateProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplateStableAccQueryPathParams {
|
|
6
|
-
template: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetTemplateStableAccQueryQueryParams {
|
|
9
|
-
version?: string;
|
|
10
|
-
include_yaml?: boolean;
|
|
11
|
-
branch_name?: string;
|
|
12
|
-
parent_entity_connector_ref?: string;
|
|
13
|
-
parent_entity_repo_name?: string;
|
|
14
|
-
parent_entity_account_id?: string;
|
|
15
|
-
parent_entity_org_id?: string;
|
|
16
|
-
parent_entity_project_id?: string;
|
|
17
|
-
global_template?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface GetTemplateStableAccQueryHeaderParams {
|
|
20
|
-
'Harness-Account'?: string;
|
|
21
|
-
}
|
|
22
|
-
export type GetTemplateStableAccOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
|
|
23
|
-
export type GetTemplateStableAccErrorResponse = unknown;
|
|
24
|
-
export interface GetTemplateStableAccProps extends GetTemplateStableAccQueryPathParams, Omit<FetcherOptions<GetTemplateStableAccQueryQueryParams, unknown, GetTemplateStableAccQueryHeaderParams>, 'url'> {
|
|
25
|
-
queryParams: GetTemplateStableAccQueryQueryParams;
|
|
26
|
-
}
|
|
27
|
-
export declare function getTemplateStableAcc(props: GetTemplateStableAccProps): Promise<GetTemplateStableAccOkResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves a version of Template at Account scope. If version is not provided then it will retrieve a stable template.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useGetTemplateStableAccQuery(props: GetTemplateStableAccProps, options?: Omit<UseQueryOptions<GetTemplateStableAccOkResponse, GetTemplateStableAccErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateStableAccOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplateStableAcc(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/templates/${props.template}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves a version of Template at Account scope. If version is not provided then it will retrieve a stable template.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplateStableAccQuery(props, options) {
|
|
13
|
-
return useQuery(['get-template-stable-acc', props.template, props.queryParams], ({ signal }) => getTemplateStableAcc(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplateStableOrgQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
template: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetTemplateStableOrgQueryQueryParams {
|
|
10
|
-
include_yaml?: boolean;
|
|
11
|
-
branch_name?: string;
|
|
12
|
-
parent_entity_connector_ref?: string;
|
|
13
|
-
parent_entity_repo_name?: string;
|
|
14
|
-
parent_entity_account_id?: string;
|
|
15
|
-
parent_entity_org_id?: string;
|
|
16
|
-
parent_entity_project_id?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface GetTemplateStableOrgQueryHeaderParams {
|
|
19
|
-
'Harness-Account'?: string;
|
|
20
|
-
}
|
|
21
|
-
export type GetTemplateStableOrgOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
|
|
22
|
-
export type GetTemplateStableOrgErrorResponse = unknown;
|
|
23
|
-
export interface GetTemplateStableOrgProps extends GetTemplateStableOrgQueryPathParams, Omit<FetcherOptions<GetTemplateStableOrgQueryQueryParams, unknown, GetTemplateStableOrgQueryHeaderParams>, 'url'> {
|
|
24
|
-
queryParams: GetTemplateStableOrgQueryQueryParams;
|
|
25
|
-
}
|
|
26
|
-
export declare function getTemplateStableOrg(props: GetTemplateStableOrgProps): Promise<GetTemplateStableOrgOkResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves stable version of Template at Organization scope.
|
|
29
|
-
*/
|
|
30
|
-
export declare function useGetTemplateStableOrgQuery(props: GetTemplateStableOrgProps, options?: Omit<UseQueryOptions<GetTemplateStableOrgOkResponse, GetTemplateStableOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateStableOrgOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplateStableOrg(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/${props.template}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves stable version of Template at Organization scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplateStableOrgQuery(props, options) {
|
|
13
|
-
return useQuery(['get-template-stable-org', props.org, props.template, props.queryParams], ({ signal }) => getTemplateStableOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplateStableProjectQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
template: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetTemplateStableProjectQueryQueryParams {
|
|
11
|
-
include_yaml?: boolean;
|
|
12
|
-
branch_name?: string;
|
|
13
|
-
parent_entity_connector_ref?: string;
|
|
14
|
-
parent_entity_repo_name?: string;
|
|
15
|
-
parent_entity_account_id?: string;
|
|
16
|
-
parent_entity_org_id?: string;
|
|
17
|
-
parent_entity_project_id?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface GetTemplateStableProjectQueryHeaderParams {
|
|
20
|
-
'Harness-Account'?: string;
|
|
21
|
-
}
|
|
22
|
-
export type GetTemplateStableProjectOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
|
|
23
|
-
export type GetTemplateStableProjectErrorResponse = unknown;
|
|
24
|
-
export interface GetTemplateStableProjectProps extends GetTemplateStableProjectQueryPathParams, Omit<FetcherOptions<GetTemplateStableProjectQueryQueryParams, unknown, GetTemplateStableProjectQueryHeaderParams>, 'url'> {
|
|
25
|
-
queryParams: GetTemplateStableProjectQueryQueryParams;
|
|
26
|
-
}
|
|
27
|
-
export declare function getTemplateStableProject(props: GetTemplateStableProjectProps): Promise<GetTemplateStableProjectOkResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves stable version of Template at Project scope.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useGetTemplateStableProjectQuery(props: GetTemplateStableProjectProps, options?: Omit<UseQueryOptions<GetTemplateStableProjectOkResponse, GetTemplateStableProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateStableProjectOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplateStableProject(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves stable version of Template at Project scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplateStableProjectQuery(props, options) {
|
|
13
|
-
return useQuery(['get-template-stable-project', props.org, props.project, props.template, props.queryParams], ({ signal }) => getTemplateStableProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateMetaDataListResponse } from '../responses/TemplateMetaDataListResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplatesListAccQueryQueryParams {
|
|
6
|
-
/**
|
|
7
|
-
* @default 0
|
|
8
|
-
*/
|
|
9
|
-
page?: number;
|
|
10
|
-
/**
|
|
11
|
-
* @default 30
|
|
12
|
-
*/
|
|
13
|
-
limit?: number;
|
|
14
|
-
sort?: 'identifier' | 'name' | 'updated';
|
|
15
|
-
order?: 'ASC' | 'DESC';
|
|
16
|
-
search_term?: string;
|
|
17
|
-
type?: 'ALL' | 'LAST_UPDATES_TEMPLATE' | 'STABLE_TEMPLATE';
|
|
18
|
-
recursive?: boolean;
|
|
19
|
-
names?: string[];
|
|
20
|
-
identifiers?: string[];
|
|
21
|
-
description?: string;
|
|
22
|
-
entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
|
|
23
|
-
child_types?: string[];
|
|
24
|
-
global_template?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* JSON-encoded TemplateMetadataFilterExpression object for filtering templates by metadata.
|
|
27
|
-
* Supports nested AND/OR operations on filterMetadata properties.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
metadata_filter?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface GetTemplatesListAccQueryHeaderParams {
|
|
33
|
-
'Harness-Account'?: string;
|
|
34
|
-
}
|
|
35
|
-
export type GetTemplatesListAccOkResponse = ResponseWithPagination<TemplateMetaDataListResponse>;
|
|
36
|
-
export type GetTemplatesListAccErrorResponse = unknown;
|
|
37
|
-
export interface GetTemplatesListAccProps extends Omit<FetcherOptions<GetTemplatesListAccQueryQueryParams, unknown, GetTemplatesListAccQueryHeaderParams>, 'url'> {
|
|
38
|
-
queryParams: GetTemplatesListAccQueryQueryParams;
|
|
39
|
-
}
|
|
40
|
-
export declare function getTemplatesListAcc(props: GetTemplatesListAccProps): Promise<GetTemplatesListAccOkResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves list of Template with meta-data at Account scope.
|
|
43
|
-
*/
|
|
44
|
-
export declare function useGetTemplatesListAccQuery(props: GetTemplatesListAccProps, options?: Omit<UseQueryOptions<GetTemplatesListAccOkResponse, GetTemplatesListAccErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplatesListAccOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplatesListAcc(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/templates`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves list of Template with meta-data at Account scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplatesListAccQuery(props, options) {
|
|
13
|
-
return useQuery(['get-templates-list-acc', props.queryParams], ({ signal }) => getTemplatesListAcc(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateMetaDataListResponse } from '../responses/TemplateMetaDataListResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplatesListOrgQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetTemplatesListOrgQueryQueryParams {
|
|
9
|
-
/**
|
|
10
|
-
* @default 0
|
|
11
|
-
*/
|
|
12
|
-
page?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @default 30
|
|
15
|
-
*/
|
|
16
|
-
limit?: number;
|
|
17
|
-
sort?: 'identifier' | 'name' | 'updated';
|
|
18
|
-
order?: 'ASC' | 'DESC';
|
|
19
|
-
search_term?: string;
|
|
20
|
-
type?: 'ALL' | 'LAST_UPDATES_TEMPLATE' | 'STABLE_TEMPLATE';
|
|
21
|
-
recursive?: boolean;
|
|
22
|
-
names?: string[];
|
|
23
|
-
identifiers?: string[];
|
|
24
|
-
description?: string;
|
|
25
|
-
entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
|
|
26
|
-
child_types?: string[];
|
|
27
|
-
}
|
|
28
|
-
export interface GetTemplatesListOrgQueryHeaderParams {
|
|
29
|
-
'Harness-Account'?: string;
|
|
30
|
-
}
|
|
31
|
-
export type GetTemplatesListOrgOkResponse = ResponseWithPagination<TemplateMetaDataListResponse>;
|
|
32
|
-
export type GetTemplatesListOrgErrorResponse = unknown;
|
|
33
|
-
export interface GetTemplatesListOrgProps extends GetTemplatesListOrgQueryPathParams, Omit<FetcherOptions<GetTemplatesListOrgQueryQueryParams, unknown, GetTemplatesListOrgQueryHeaderParams>, 'url'> {
|
|
34
|
-
queryParams: GetTemplatesListOrgQueryQueryParams;
|
|
35
|
-
}
|
|
36
|
-
export declare function getTemplatesListOrg(props: GetTemplatesListOrgProps): Promise<GetTemplatesListOrgOkResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Retrieves list of Template with meta-data at Organization scope.
|
|
39
|
-
*/
|
|
40
|
-
export declare function useGetTemplatesListOrgQuery(props: GetTemplatesListOrgProps, options?: Omit<UseQueryOptions<GetTemplatesListOrgOkResponse, GetTemplatesListOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplatesListOrgOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplatesListOrg(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves list of Template with meta-data at Organization scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplatesListOrgQuery(props, options) {
|
|
13
|
-
return useQuery(['get-templates-list-org', props.org, props.queryParams], ({ signal }) => getTemplatesListOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateMetaDataListResponse } from '../responses/TemplateMetaDataListResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetTemplatesListProjectQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetTemplatesListProjectQueryQueryParams {
|
|
10
|
-
/**
|
|
11
|
-
* @default 0
|
|
12
|
-
*/
|
|
13
|
-
page?: number;
|
|
14
|
-
/**
|
|
15
|
-
* @default 30
|
|
16
|
-
*/
|
|
17
|
-
limit?: number;
|
|
18
|
-
sort?: 'identifier' | 'name' | 'updated';
|
|
19
|
-
order?: 'ASC' | 'DESC';
|
|
20
|
-
search_term?: string;
|
|
21
|
-
type?: 'ALL' | 'LAST_UPDATES_TEMPLATE' | 'STABLE_TEMPLATE';
|
|
22
|
-
recursive?: boolean;
|
|
23
|
-
names?: string[];
|
|
24
|
-
identifiers?: string[];
|
|
25
|
-
description?: string;
|
|
26
|
-
entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
|
|
27
|
-
child_types?: string[];
|
|
28
|
-
}
|
|
29
|
-
export interface GetTemplatesListProjectQueryHeaderParams {
|
|
30
|
-
'Harness-Account'?: string;
|
|
31
|
-
}
|
|
32
|
-
export type GetTemplatesListProjectOkResponse = ResponseWithPagination<TemplateMetaDataListResponse>;
|
|
33
|
-
export type GetTemplatesListProjectErrorResponse = unknown;
|
|
34
|
-
export interface GetTemplatesListProjectProps extends GetTemplatesListProjectQueryPathParams, Omit<FetcherOptions<GetTemplatesListProjectQueryQueryParams, unknown, GetTemplatesListProjectQueryHeaderParams>, 'url'> {
|
|
35
|
-
queryParams: GetTemplatesListProjectQueryQueryParams;
|
|
36
|
-
}
|
|
37
|
-
export declare function getTemplatesListProject(props: GetTemplatesListProjectProps): Promise<GetTemplatesListProjectOkResponse>;
|
|
38
|
-
/**
|
|
39
|
-
* Retrieves list of Template with meta-data at Project scope.
|
|
40
|
-
*/
|
|
41
|
-
export declare function useGetTemplatesListProjectQuery(props: GetTemplatesListProjectProps, options?: Omit<UseQueryOptions<GetTemplatesListProjectOkResponse, GetTemplatesListProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplatesListProjectOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getTemplatesListProject(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves list of Template with meta-data at Project scope.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetTemplatesListProjectQuery(props, options) {
|
|
13
|
-
return useQuery(['get-templates-list-project', props.org, props.project, props.queryParams], ({ signal }) => getTemplatesListProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateImportResponseBodyResponse } from '../responses/TemplateImportResponseBodyResponse';
|
|
3
|
-
import type { TemplateImportRequestBodyRequestBody } from '../requestBodies/TemplateImportRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface ImportTemplateAccMutationPathParams {
|
|
7
|
-
template: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ImportTemplateAccMutationHeaderParams {
|
|
10
|
-
'Harness-Account'?: string;
|
|
11
|
-
}
|
|
12
|
-
export type ImportTemplateAccRequestBody = TemplateImportRequestBodyRequestBody;
|
|
13
|
-
export type ImportTemplateAccOkResponse = ResponseWithPagination<TemplateImportResponseBodyResponse>;
|
|
14
|
-
export type ImportTemplateAccErrorResponse = unknown;
|
|
15
|
-
export interface ImportTemplateAccProps extends ImportTemplateAccMutationPathParams, Omit<FetcherOptions<unknown, ImportTemplateAccRequestBody, ImportTemplateAccMutationHeaderParams>, 'url'> {
|
|
16
|
-
body: ImportTemplateAccRequestBody;
|
|
17
|
-
}
|
|
18
|
-
export declare function importTemplateAcc(props: ImportTemplateAccProps): Promise<ImportTemplateAccOkResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Import template at account level
|
|
21
|
-
*/
|
|
22
|
-
export declare function useImportTemplateAccMutation(options?: Omit<UseMutationOptions<ImportTemplateAccOkResponse, ImportTemplateAccErrorResponse, ImportTemplateAccProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportTemplateAccOkResponse, unknown, ImportTemplateAccProps, unknown>;
|
|
@@ -1,14 +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 importTemplateAcc(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/templates/${props.template}/import`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Import template at account level
|
|
11
|
-
*/
|
|
12
|
-
export function useImportTemplateAccMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => importTemplateAcc(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateImportResponseBodyResponse } from '../responses/TemplateImportResponseBodyResponse';
|
|
3
|
-
import type { TemplateImportRequestBodyRequestBody } from '../requestBodies/TemplateImportRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface ImportTemplateOrgMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
template: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ImportTemplateOrgMutationHeaderParams {
|
|
11
|
-
'Harness-Account'?: string;
|
|
12
|
-
}
|
|
13
|
-
export type ImportTemplateOrgRequestBody = TemplateImportRequestBodyRequestBody;
|
|
14
|
-
export type ImportTemplateOrgOkResponse = ResponseWithPagination<TemplateImportResponseBodyResponse>;
|
|
15
|
-
export type ImportTemplateOrgErrorResponse = unknown;
|
|
16
|
-
export interface ImportTemplateOrgProps extends ImportTemplateOrgMutationPathParams, Omit<FetcherOptions<unknown, ImportTemplateOrgRequestBody, ImportTemplateOrgMutationHeaderParams>, 'url'> {
|
|
17
|
-
body: ImportTemplateOrgRequestBody;
|
|
18
|
-
}
|
|
19
|
-
export declare function importTemplateOrg(props: ImportTemplateOrgProps): Promise<ImportTemplateOrgOkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Import template at org level
|
|
22
|
-
*/
|
|
23
|
-
export declare function useImportTemplateOrgMutation(options?: Omit<UseMutationOptions<ImportTemplateOrgOkResponse, ImportTemplateOrgErrorResponse, ImportTemplateOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportTemplateOrgOkResponse, unknown, ImportTemplateOrgProps, unknown>;
|
|
@@ -1,14 +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 importTemplateOrg(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/${props.template}/import`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Import template at org level
|
|
11
|
-
*/
|
|
12
|
-
export function useImportTemplateOrgMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => importTemplateOrg(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateImportResponseBodyResponse } from '../responses/TemplateImportResponseBodyResponse';
|
|
3
|
-
import type { TemplateImportRequestBodyRequestBody } from '../requestBodies/TemplateImportRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface ImportTemplateProjectMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
template: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ImportTemplateProjectMutationHeaderParams {
|
|
12
|
-
'Harness-Account'?: string;
|
|
13
|
-
}
|
|
14
|
-
export type ImportTemplateProjectRequestBody = TemplateImportRequestBodyRequestBody;
|
|
15
|
-
export type ImportTemplateProjectOkResponse = ResponseWithPagination<TemplateImportResponseBodyResponse>;
|
|
16
|
-
export type ImportTemplateProjectErrorResponse = unknown;
|
|
17
|
-
export interface ImportTemplateProjectProps extends ImportTemplateProjectMutationPathParams, Omit<FetcherOptions<unknown, ImportTemplateProjectRequestBody, ImportTemplateProjectMutationHeaderParams>, 'url'> {
|
|
18
|
-
body: ImportTemplateProjectRequestBody;
|
|
19
|
-
}
|
|
20
|
-
export declare function importTemplateProject(props: ImportTemplateProjectProps): Promise<ImportTemplateProjectOkResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Import template at a project level
|
|
23
|
-
*/
|
|
24
|
-
export declare function useImportTemplateProjectMutation(options?: Omit<UseMutationOptions<ImportTemplateProjectOkResponse, ImportTemplateProjectErrorResponse, ImportTemplateProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportTemplateProjectOkResponse, unknown, ImportTemplateProjectProps, unknown>;
|
|
@@ -1,14 +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 importTemplateProject(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}/import`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Import template at a project level
|
|
11
|
-
*/
|
|
12
|
-
export function useImportTemplateProjectMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => importTemplateProject(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateUpdateGitMetadataResponseResponse } from '../responses/TemplateUpdateGitMetadataResponseResponse';
|
|
3
|
-
import type { TemplateUpdateGitMetadataRequestBodyRequestBody } from '../requestBodies/TemplateUpdateGitMetadataRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface UpdateGitMetadataDetailsMutationPathParams {
|
|
7
|
-
template: string;
|
|
8
|
-
}
|
|
9
|
-
export interface UpdateGitMetadataDetailsMutationHeaderParams {
|
|
10
|
-
'Harness-Account'?: string;
|
|
11
|
-
}
|
|
12
|
-
export type UpdateGitMetadataDetailsRequestBody = TemplateUpdateGitMetadataRequestBodyRequestBody;
|
|
13
|
-
export type UpdateGitMetadataDetailsOkResponse = ResponseWithPagination<TemplateUpdateGitMetadataResponseResponse>;
|
|
14
|
-
export type UpdateGitMetadataDetailsErrorResponse = unknown;
|
|
15
|
-
export interface UpdateGitMetadataDetailsProps extends UpdateGitMetadataDetailsMutationPathParams, Omit<FetcherOptions<unknown, UpdateGitMetadataDetailsRequestBody, UpdateGitMetadataDetailsMutationHeaderParams>, 'url'> {
|
|
16
|
-
body: UpdateGitMetadataDetailsRequestBody;
|
|
17
|
-
}
|
|
18
|
-
export declare function updateGitMetadataDetails(props: UpdateGitMetadataDetailsProps): Promise<UpdateGitMetadataDetailsOkResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Update Git details for multiple version.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useUpdateGitMetadataDetailsMutation(options?: Omit<UseMutationOptions<UpdateGitMetadataDetailsOkResponse, UpdateGitMetadataDetailsErrorResponse, UpdateGitMetadataDetailsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGitMetadataDetailsOkResponse, unknown, UpdateGitMetadataDetailsProps, unknown>;
|
|
@@ -1,14 +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 updateGitMetadataDetails(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/templates/git-metadata/${props.template}`, method: 'PUT' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Update Git details for multiple version.
|
|
11
|
-
*/
|
|
12
|
-
export function useUpdateGitMetadataDetailsMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => updateGitMetadataDetails(mutateProps), options);
|
|
14
|
-
}
|
package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsOrgMutation.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { TemplateUpdateGitMetadataResponseResponse } from '../responses/TemplateUpdateGitMetadataResponseResponse';
|
|
3
|
-
import type { TemplateUpdateGitMetadataRequestBodyRequestBody } from '../requestBodies/TemplateUpdateGitMetadataRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface UpdateGitMetadataDetailsOrgMutationPathParams {
|
|
7
|
-
template: string;
|
|
8
|
-
org: string;
|
|
9
|
-
}
|
|
10
|
-
export interface UpdateGitMetadataDetailsOrgMutationHeaderParams {
|
|
11
|
-
'Harness-Account'?: string;
|
|
12
|
-
}
|
|
13
|
-
export type UpdateGitMetadataDetailsOrgRequestBody = TemplateUpdateGitMetadataRequestBodyRequestBody;
|
|
14
|
-
export type UpdateGitMetadataDetailsOrgOkResponse = ResponseWithPagination<TemplateUpdateGitMetadataResponseResponse>;
|
|
15
|
-
export type UpdateGitMetadataDetailsOrgErrorResponse = unknown;
|
|
16
|
-
export interface UpdateGitMetadataDetailsOrgProps extends UpdateGitMetadataDetailsOrgMutationPathParams, Omit<FetcherOptions<unknown, UpdateGitMetadataDetailsOrgRequestBody, UpdateGitMetadataDetailsOrgMutationHeaderParams>, 'url'> {
|
|
17
|
-
body: UpdateGitMetadataDetailsOrgRequestBody;
|
|
18
|
-
}
|
|
19
|
-
export declare function updateGitMetadataDetailsOrg(props: UpdateGitMetadataDetailsOrgProps): Promise<UpdateGitMetadataDetailsOrgOkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Update Git details for multiple version.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useUpdateGitMetadataDetailsOrgMutation(options?: Omit<UseMutationOptions<UpdateGitMetadataDetailsOrgOkResponse, UpdateGitMetadataDetailsOrgErrorResponse, UpdateGitMetadataDetailsOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGitMetadataDetailsOrgOkResponse, unknown, UpdateGitMetadataDetailsOrgProps, unknown>;
|