@harnessio/react-template-service-client 0.1.0 → 0.3.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/useGetAccTemplatesInputsSchemaQuery.d.ts +20 -0
- package/dist/template-service/src/services/hooks/useGetAccTemplatesInputsSchemaQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetInputsSchemaMutation.d.ts +24 -0
- package/dist/template-service/src/services/hooks/useGetInputsSchemaMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useGetOrgTemplatesInputsSchemaQuery.d.ts +21 -0
- package/dist/template-service/src/services/hooks/useGetOrgTemplatesInputsSchemaQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetProjectTemplatesInputsSchemaQuery.d.ts +22 -0
- package/dist/template-service/src/services/hooks/useGetProjectTemplatesInputsSchemaQuery.js +20 -0
- package/dist/template-service/src/services/hooks/useGetTemplateSchemaQuery.d.ts +1 -1
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsMutation.d.ts +22 -0
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsOrgMutation.d.ts +23 -0
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsOrgMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.d.ts +24 -0
- package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.js +14 -0
- package/dist/template-service/src/services/index.d.ts +30 -0
- package/dist/template-service/src/services/index.js +7 -0
- package/dist/template-service/src/services/requestBodies/TemplateInputsSchemaRequestBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateInputsSchemaRequestBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/requestBodies/TemplateUpdateGitMetadataRequestBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateUpdateGitMetadataRequestBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/responses/TemplateInputSchemaDetailsResponseBodyResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/TemplateInputSchemaDetailsResponseBodyResponse.js +1 -0
- package/dist/template-service/src/services/responses/TemplateUpdateGitMetadataResponseResponse.d.ts +3 -0
- package/dist/template-service/src/services/responses/TemplateUpdateGitMetadataResponseResponse.js +4 -0
- package/dist/template-service/src/services/schemas/FixedValueFieldDependencyDetailsDto.d.ts +7 -0
- package/dist/template-service/src/services/schemas/FixedValueFieldDependencyDetailsDto.js +4 -0
- package/dist/template-service/src/services/schemas/GitDetailsMetadata.d.ts +8 -0
- package/dist/template-service/src/services/schemas/GitDetailsMetadata.js +4 -0
- package/dist/template-service/src/services/schemas/InputDetailsDto.d.ts +7 -0
- package/dist/template-service/src/services/schemas/InputDetailsDto.js +4 -0
- package/dist/template-service/src/services/schemas/RuntimeInputDependencyDetailsDto.d.ts +4 -0
- package/dist/template-service/src/services/schemas/RuntimeInputDependencyDetailsDto.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateCreateRequestBody.d.ts +22 -0
- package/dist/template-service/src/services/schemas/TemplateInputSchemaDetailsResponseBody.d.ts +4 -0
- package/dist/template-service/src/services/schemas/TemplateInputSchemaDetailsResponseBody.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateInputsSchemaRequestBody.d.ts +3 -0
- package/dist/template-service/src/services/schemas/TemplateInputsSchemaRequestBody.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateMetadataSummaryResponse.d.ts +4 -0
- package/dist/template-service/src/services/schemas/TemplateResponse.d.ts +4 -0
- package/dist/template-service/src/services/schemas/TemplateUpdateGitMetadataRequest.d.ts +8 -0
- package/dist/template-service/src/services/schemas/TemplateUpdateGitMetadataRequest.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateUpdateRequestBody.d.ts +22 -0
- package/dist/template-service/src/services/schemas/TemplateYamlInputDetailsDto.d.ts +6 -0
- package/dist/template-service/src/services/schemas/TemplateYamlInputDetailsDto.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateYamlInputDto.d.ts +13 -0
- package/dist/template-service/src/services/schemas/TemplateYamlInputDto.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateYamlInputMetadataDto.d.ts +6 -0
- package/dist/template-service/src/services/schemas/TemplateYamlInputMetadataDto.js +1 -0
- package/dist/template-service/src/services/schemas/YamlInputDependencyDetailsDto.d.ts +6 -0
- package/dist/template-service/src/services/schemas/YamlInputDependencyDetailsDto.js +1 -0
- package/dist/template-service/src/services/schemas/YamlInputType.d.ts +5 -0
- package/dist/template-service/src/services/schemas/YamlInputType.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TemplateInputSchemaDetailsResponseBodyResponse } from '../responses/TemplateInputSchemaDetailsResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetAccTemplatesInputsSchemaQueryPathParams {
|
|
6
|
+
template: string;
|
|
7
|
+
version: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetAccTemplatesInputsSchemaQueryHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetAccTemplatesInputsSchemaOkResponse = ResponseWithPagination<TemplateInputSchemaDetailsResponseBodyResponse>;
|
|
13
|
+
export type GetAccTemplatesInputsSchemaErrorResponse = unknown;
|
|
14
|
+
export interface GetAccTemplatesInputsSchemaProps extends GetAccTemplatesInputsSchemaQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAccTemplatesInputsSchemaQueryHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getAccTemplatesInputsSchema(props: GetAccTemplatesInputsSchemaProps): Promise<GetAccTemplatesInputsSchemaOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* get inputs schema for account level templates
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetAccTemplatesInputsSchemaQuery(props: GetAccTemplatesInputsSchemaProps, options?: Omit<UseQueryOptions<GetAccTemplatesInputsSchemaOkResponse, GetAccTemplatesInputsSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAccTemplatesInputsSchemaOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getAccTemplatesInputsSchema(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/templates/${props.template}/versions/${props.version}/inputs-schema`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* get inputs schema for account level templates
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAccTemplatesInputsSchemaQuery(props, options) {
|
|
13
|
+
return useQuery(['get-acc-templates-inputs-schema', props.template, props.version], ({ signal }) => getAccTemplatesInputsSchema(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TemplateInputSchemaDetailsResponseBodyResponse } from '../responses/TemplateInputSchemaDetailsResponseBodyResponse';
|
|
3
|
+
import type { TemplateInputsSchemaRequestBodyRequestBody } from '../requestBodies/TemplateInputsSchemaRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetInputsSchemaMutationQueryParams {
|
|
7
|
+
org_id?: string;
|
|
8
|
+
project_id?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetInputsSchemaMutationHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetInputsSchemaRequestBody = TemplateInputsSchemaRequestBodyRequestBody;
|
|
14
|
+
export type GetInputsSchemaOkResponse = ResponseWithPagination<TemplateInputSchemaDetailsResponseBodyResponse>;
|
|
15
|
+
export type GetInputsSchemaErrorResponse = unknown;
|
|
16
|
+
export interface GetInputsSchemaProps extends Omit<FetcherOptions<GetInputsSchemaMutationQueryParams, GetInputsSchemaRequestBody, GetInputsSchemaMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetInputsSchemaMutationQueryParams;
|
|
18
|
+
body: GetInputsSchemaRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function getInputsSchema(props: GetInputsSchemaProps): Promise<GetInputsSchemaOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetInputsSchemaMutation(options?: Omit<UseMutationOptions<GetInputsSchemaOkResponse, GetInputsSchemaErrorResponse, GetInputsSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetInputsSchemaOkResponse, unknown, GetInputsSchemaProps, 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 getInputsSchema(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/template-schema/inputs-schema`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetInputsSchemaMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getInputsSchema(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TemplateInputSchemaDetailsResponseBodyResponse } from '../responses/TemplateInputSchemaDetailsResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetOrgTemplatesInputsSchemaQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
template: string;
|
|
8
|
+
version: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetOrgTemplatesInputsSchemaQueryHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetOrgTemplatesInputsSchemaOkResponse = ResponseWithPagination<TemplateInputSchemaDetailsResponseBodyResponse>;
|
|
14
|
+
export type GetOrgTemplatesInputsSchemaErrorResponse = unknown;
|
|
15
|
+
export interface GetOrgTemplatesInputsSchemaProps extends GetOrgTemplatesInputsSchemaQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetOrgTemplatesInputsSchemaQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getOrgTemplatesInputsSchema(props: GetOrgTemplatesInputsSchemaProps): Promise<GetOrgTemplatesInputsSchemaOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* get inputs schema for org level templates
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetOrgTemplatesInputsSchemaQuery(props: GetOrgTemplatesInputsSchemaProps, options?: Omit<UseQueryOptions<GetOrgTemplatesInputsSchemaOkResponse, GetOrgTemplatesInputsSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrgTemplatesInputsSchemaOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOrgTemplatesInputsSchema(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/${props.template}/versions/${props.version}/inputs-schema`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* get inputs schema for org level templates
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrgTemplatesInputsSchemaQuery(props, options) {
|
|
13
|
+
return useQuery(['get-org-templates-inputs-schema', props.org, props.template, props.version], ({ signal }) => getOrgTemplatesInputsSchema(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TemplateInputSchemaDetailsResponseBodyResponse } from '../responses/TemplateInputSchemaDetailsResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetProjectTemplatesInputsSchemaQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
template: string;
|
|
9
|
+
version: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetProjectTemplatesInputsSchemaQueryHeaderParams {
|
|
12
|
+
'Harness-Account'?: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetProjectTemplatesInputsSchemaOkResponse = ResponseWithPagination<TemplateInputSchemaDetailsResponseBodyResponse>;
|
|
15
|
+
export type GetProjectTemplatesInputsSchemaErrorResponse = unknown;
|
|
16
|
+
export interface GetProjectTemplatesInputsSchemaProps extends GetProjectTemplatesInputsSchemaQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetProjectTemplatesInputsSchemaQueryHeaderParams>, 'url'> {
|
|
17
|
+
}
|
|
18
|
+
export declare function getProjectTemplatesInputsSchema(props: GetProjectTemplatesInputsSchemaProps): Promise<GetProjectTemplatesInputsSchemaOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* get inputs schema for project level templates
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetProjectTemplatesInputsSchemaQuery(props: GetProjectTemplatesInputsSchemaProps, options?: Omit<UseQueryOptions<GetProjectTemplatesInputsSchemaOkResponse, GetProjectTemplatesInputsSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProjectTemplatesInputsSchemaOkResponse, unknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 getProjectTemplatesInputsSchema(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}/versions/${props.version}/inputs-schema`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* get inputs schema for project level templates
|
|
11
|
+
*/
|
|
12
|
+
export function useGetProjectTemplatesInputsSchemaQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'get-project-templates-inputs-schema',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.template,
|
|
18
|
+
props.version,
|
|
19
|
+
], ({ signal }) => getProjectTemplatesInputsSchema(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -3,7 +3,7 @@ import type { TemplateSchemaResponseResponse } from '../responses/TemplateSchema
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetTemplateSchemaQueryQueryParams {
|
|
6
|
-
node_group?: 'artifactsourcetemplate' | 'customdeployment' | 'monitoredservice' | 'pipeline' | 'secretmanager' | 'stage' | 'step' | 'stepgroup' | 'template';
|
|
6
|
+
node_group?: 'artifactsource' | 'artifactsourcetemplate' | 'customdeployment' | 'group' | 'monitoredservice' | 'pipeline' | 'secretmanager' | 'stage' | 'step' | 'stepgroup' | 'template';
|
|
7
7
|
node_type?: string;
|
|
8
8
|
/**
|
|
9
9
|
* @default "v0"
|
|
@@ -0,0 +1,22 @@
|
|
|
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>;
|
|
@@ -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 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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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>;
|
|
@@ -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 updateGitMetadataDetailsOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/git-metadata/${props.template}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update Git details for multiple version.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateGitMetadataDetailsOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateGitMetadataDetailsOrg(mutateProps), options);
|
|
14
|
+
}
|
package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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 UpdateGitMetadataDetailsProjectMutationPathParams {
|
|
7
|
+
template: string;
|
|
8
|
+
org: string;
|
|
9
|
+
project: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateGitMetadataDetailsProjectMutationHeaderParams {
|
|
12
|
+
'Harness-Account'?: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateGitMetadataDetailsProjectRequestBody = TemplateUpdateGitMetadataRequestBodyRequestBody;
|
|
15
|
+
export type UpdateGitMetadataDetailsProjectOkResponse = ResponseWithPagination<TemplateUpdateGitMetadataResponseResponse>;
|
|
16
|
+
export type UpdateGitMetadataDetailsProjectErrorResponse = unknown;
|
|
17
|
+
export interface UpdateGitMetadataDetailsProjectProps extends UpdateGitMetadataDetailsProjectMutationPathParams, Omit<FetcherOptions<unknown, UpdateGitMetadataDetailsProjectRequestBody, UpdateGitMetadataDetailsProjectMutationHeaderParams>, 'url'> {
|
|
18
|
+
body: UpdateGitMetadataDetailsProjectRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function updateGitMetadataDetailsProject(props: UpdateGitMetadataDetailsProjectProps): Promise<UpdateGitMetadataDetailsProjectOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update Git details for multiple version.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpdateGitMetadataDetailsProjectMutation(options?: Omit<UseMutationOptions<UpdateGitMetadataDetailsProjectOkResponse, UpdateGitMetadataDetailsProjectErrorResponse, UpdateGitMetadataDetailsProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGitMetadataDetailsProjectOkResponse, unknown, UpdateGitMetadataDetailsProjectProps, unknown>;
|
package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.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 updateGitMetadataDetailsProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/git-metadata/${props.template}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update Git details for multiple version.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateGitMetadataDetailsProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateGitMetadataDetailsProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -11,6 +11,14 @@ export type { DeleteTemplateOrgErrorResponse, DeleteTemplateOrgMutationPathParam
|
|
|
11
11
|
export { deleteTemplateOrg, useDeleteTemplateOrgMutation, } from './hooks/useDeleteTemplateOrgMutation';
|
|
12
12
|
export type { DeleteTemplateProjectErrorResponse, DeleteTemplateProjectMutationPathParams, DeleteTemplateProjectMutationQueryParams, DeleteTemplateProjectOkResponse, DeleteTemplateProjectProps, } from './hooks/useDeleteTemplateProjectMutation';
|
|
13
13
|
export { deleteTemplateProject, useDeleteTemplateProjectMutation, } from './hooks/useDeleteTemplateProjectMutation';
|
|
14
|
+
export type { GetAccTemplatesInputsSchemaErrorResponse, GetAccTemplatesInputsSchemaOkResponse, GetAccTemplatesInputsSchemaProps, GetAccTemplatesInputsSchemaQueryPathParams, } from './hooks/useGetAccTemplatesInputsSchemaQuery';
|
|
15
|
+
export { getAccTemplatesInputsSchema, useGetAccTemplatesInputsSchemaQuery, } from './hooks/useGetAccTemplatesInputsSchemaQuery';
|
|
16
|
+
export type { GetInputsSchemaErrorResponse, GetInputsSchemaMutationQueryParams, GetInputsSchemaOkResponse, GetInputsSchemaProps, GetInputsSchemaRequestBody, } from './hooks/useGetInputsSchemaMutation';
|
|
17
|
+
export { getInputsSchema, useGetInputsSchemaMutation } from './hooks/useGetInputsSchemaMutation';
|
|
18
|
+
export type { GetOrgTemplatesInputsSchemaErrorResponse, GetOrgTemplatesInputsSchemaOkResponse, GetOrgTemplatesInputsSchemaProps, GetOrgTemplatesInputsSchemaQueryPathParams, } from './hooks/useGetOrgTemplatesInputsSchemaQuery';
|
|
19
|
+
export { getOrgTemplatesInputsSchema, useGetOrgTemplatesInputsSchemaQuery, } from './hooks/useGetOrgTemplatesInputsSchemaQuery';
|
|
20
|
+
export type { GetProjectTemplatesInputsSchemaErrorResponse, GetProjectTemplatesInputsSchemaOkResponse, GetProjectTemplatesInputsSchemaProps, GetProjectTemplatesInputsSchemaQueryPathParams, } from './hooks/useGetProjectTemplatesInputsSchemaQuery';
|
|
21
|
+
export { getProjectTemplatesInputsSchema, useGetProjectTemplatesInputsSchemaQuery, } from './hooks/useGetProjectTemplatesInputsSchemaQuery';
|
|
14
22
|
export type { GetTemplateAccErrorResponse, GetTemplateAccOkResponse, GetTemplateAccProps, GetTemplateAccQueryPathParams, GetTemplateAccQueryQueryParams, } from './hooks/useGetTemplateAccQuery';
|
|
15
23
|
export { getTemplateAcc, useGetTemplateAccQuery } from './hooks/useGetTemplateAccQuery';
|
|
16
24
|
export type { GetTemplateOrgErrorResponse, GetTemplateOrgOkResponse, GetTemplateOrgProps, GetTemplateOrgQueryPathParams, GetTemplateOrgQueryQueryParams, } from './hooks/useGetTemplateOrgQuery';
|
|
@@ -37,6 +45,12 @@ export type { ImportTemplateOrgErrorResponse, ImportTemplateOrgMutationPathParam
|
|
|
37
45
|
export { importTemplateOrg, useImportTemplateOrgMutation, } from './hooks/useImportTemplateOrgMutation';
|
|
38
46
|
export type { ImportTemplateProjectErrorResponse, ImportTemplateProjectMutationPathParams, ImportTemplateProjectOkResponse, ImportTemplateProjectProps, ImportTemplateProjectRequestBody, } from './hooks/useImportTemplateProjectMutation';
|
|
39
47
|
export { importTemplateProject, useImportTemplateProjectMutation, } from './hooks/useImportTemplateProjectMutation';
|
|
48
|
+
export type { UpdateGitMetadataDetailsErrorResponse, UpdateGitMetadataDetailsMutationPathParams, UpdateGitMetadataDetailsOkResponse, UpdateGitMetadataDetailsProps, UpdateGitMetadataDetailsRequestBody, } from './hooks/useUpdateGitMetadataDetailsMutation';
|
|
49
|
+
export { updateGitMetadataDetails, useUpdateGitMetadataDetailsMutation, } from './hooks/useUpdateGitMetadataDetailsMutation';
|
|
50
|
+
export type { UpdateGitMetadataDetailsOrgErrorResponse, UpdateGitMetadataDetailsOrgMutationPathParams, UpdateGitMetadataDetailsOrgOkResponse, UpdateGitMetadataDetailsOrgProps, UpdateGitMetadataDetailsOrgRequestBody, } from './hooks/useUpdateGitMetadataDetailsOrgMutation';
|
|
51
|
+
export { updateGitMetadataDetailsOrg, useUpdateGitMetadataDetailsOrgMutation, } from './hooks/useUpdateGitMetadataDetailsOrgMutation';
|
|
52
|
+
export type { UpdateGitMetadataDetailsProjectErrorResponse, UpdateGitMetadataDetailsProjectMutationPathParams, UpdateGitMetadataDetailsProjectOkResponse, UpdateGitMetadataDetailsProjectProps, UpdateGitMetadataDetailsProjectRequestBody, } from './hooks/useUpdateGitMetadataDetailsProjectMutation';
|
|
53
|
+
export { updateGitMetadataDetailsProject, useUpdateGitMetadataDetailsProjectMutation, } from './hooks/useUpdateGitMetadataDetailsProjectMutation';
|
|
40
54
|
export type { UpdateTemplateAccErrorResponse, UpdateTemplateAccMutationPathParams, UpdateTemplateAccOkResponse, UpdateTemplateAccProps, UpdateTemplateAccRequestBody, } from './hooks/useUpdateTemplateAccMutation';
|
|
41
55
|
export { updateTemplateAcc, useUpdateTemplateAccMutation, } from './hooks/useUpdateTemplateAccMutation';
|
|
42
56
|
export type { UpdateTemplateOrgErrorResponse, UpdateTemplateOrgMutationPathParams, UpdateTemplateOrgOkResponse, UpdateTemplateOrgProps, UpdateTemplateOrgRequestBody, } from './hooks/useUpdateTemplateOrgMutation';
|
|
@@ -52,26 +66,42 @@ export { updateTemplateStableProject, useUpdateTemplateStableProjectMutation, }
|
|
|
52
66
|
export type { TemplateCreateBodyRequestBody } from './requestBodies/TemplateCreateBodyRequestBody';
|
|
53
67
|
export type { TemplateFetchBodyRequestBody } from './requestBodies/TemplateFetchBodyRequestBody';
|
|
54
68
|
export type { TemplateImportRequestBodyRequestBody } from './requestBodies/TemplateImportRequestBodyRequestBody';
|
|
69
|
+
export type { TemplateInputsSchemaRequestBodyRequestBody } from './requestBodies/TemplateInputsSchemaRequestBodyRequestBody';
|
|
55
70
|
export type { TemplateUpdateBodyRequestBody } from './requestBodies/TemplateUpdateBodyRequestBody';
|
|
71
|
+
export type { TemplateUpdateGitMetadataRequestBodyRequestBody } from './requestBodies/TemplateUpdateGitMetadataRequestBodyRequestBody';
|
|
56
72
|
export type { TemplateImportResponseBodyResponse } from './responses/TemplateImportResponseBodyResponse';
|
|
73
|
+
export type { TemplateInputSchemaDetailsResponseBodyResponse } from './responses/TemplateInputSchemaDetailsResponseBodyResponse';
|
|
57
74
|
export type { TemplateMetaDataListResponse } from './responses/TemplateMetaDataListResponse';
|
|
58
75
|
export type { TemplateResponseResponse } from './responses/TemplateResponseResponse';
|
|
59
76
|
export type { TemplateSchemaResponseResponse } from './responses/TemplateSchemaResponseResponse';
|
|
77
|
+
export type { TemplateUpdateGitMetadataResponseResponse } from './responses/TemplateUpdateGitMetadataResponseResponse';
|
|
60
78
|
export type { TemplateUpdateStableResponseResponse } from './responses/TemplateUpdateStableResponseResponse';
|
|
61
79
|
export type { TemplateWithInputsResponseResponse } from './responses/TemplateWithInputsResponseResponse';
|
|
62
80
|
export type { EntityGitDetails } from './schemas/EntityGitDetails';
|
|
81
|
+
export type { FixedValueFieldDependencyDetailsDto } from './schemas/FixedValueFieldDependencyDetailsDto';
|
|
63
82
|
export type { GitCreateDetails } from './schemas/GitCreateDetails';
|
|
83
|
+
export type { GitDetailsMetadata } from './schemas/GitDetailsMetadata';
|
|
64
84
|
export type { GitFindDetails } from './schemas/GitFindDetails';
|
|
65
85
|
export type { GitImportDetails } from './schemas/GitImportDetails';
|
|
66
86
|
export type { GitUpdateDetails } from './schemas/GitUpdateDetails';
|
|
87
|
+
export type { InputDetailsDto } from './schemas/InputDetailsDto';
|
|
88
|
+
export type { RuntimeInputDependencyDetailsDto } from './schemas/RuntimeInputDependencyDetailsDto';
|
|
67
89
|
export type { TemplateCreateRequestBody } from './schemas/TemplateCreateRequestBody';
|
|
68
90
|
export type { TemplateImportRequestBody } from './schemas/TemplateImportRequestBody';
|
|
69
91
|
export type { TemplateImportRequestDto } from './schemas/TemplateImportRequestDto';
|
|
70
92
|
export type { TemplateImportResponseBody } from './schemas/TemplateImportResponseBody';
|
|
93
|
+
export type { TemplateInputSchemaDetailsResponseBody } from './schemas/TemplateInputSchemaDetailsResponseBody';
|
|
94
|
+
export type { TemplateInputsSchemaRequestBody } from './schemas/TemplateInputsSchemaRequestBody';
|
|
71
95
|
export type { TemplateMetaDataList } from './schemas/TemplateMetaDataList';
|
|
72
96
|
export type { TemplateMetadataSummaryResponse } from './schemas/TemplateMetadataSummaryResponse';
|
|
73
97
|
export type { TemplateResponse } from './schemas/TemplateResponse';
|
|
74
98
|
export type { TemplateSchemaResponse } from './schemas/TemplateSchemaResponse';
|
|
99
|
+
export type { TemplateUpdateGitMetadataRequest } from './schemas/TemplateUpdateGitMetadataRequest';
|
|
75
100
|
export type { TemplateUpdateRequestBody } from './schemas/TemplateUpdateRequestBody';
|
|
76
101
|
export type { TemplateUpdateStableResponse } from './schemas/TemplateUpdateStableResponse';
|
|
77
102
|
export type { TemplateWithInputsResponse } from './schemas/TemplateWithInputsResponse';
|
|
103
|
+
export type { TemplateYamlInputDetailsDto } from './schemas/TemplateYamlInputDetailsDto';
|
|
104
|
+
export type { TemplateYamlInputDto } from './schemas/TemplateYamlInputDto';
|
|
105
|
+
export type { TemplateYamlInputMetadataDto } from './schemas/TemplateYamlInputMetadataDto';
|
|
106
|
+
export type { YamlInputDependencyDetailsDto } from './schemas/YamlInputDependencyDetailsDto';
|
|
107
|
+
export type { YamlInputType } from './schemas/YamlInputType';
|
|
@@ -4,6 +4,10 @@ export { createTemplatesProject, useCreateTemplatesProjectMutation, } from './ho
|
|
|
4
4
|
export { deleteTemplateAcc, useDeleteTemplateAccMutation, } from './hooks/useDeleteTemplateAccMutation';
|
|
5
5
|
export { deleteTemplateOrg, useDeleteTemplateOrgMutation, } from './hooks/useDeleteTemplateOrgMutation';
|
|
6
6
|
export { deleteTemplateProject, useDeleteTemplateProjectMutation, } from './hooks/useDeleteTemplateProjectMutation';
|
|
7
|
+
export { getAccTemplatesInputsSchema, useGetAccTemplatesInputsSchemaQuery, } from './hooks/useGetAccTemplatesInputsSchemaQuery';
|
|
8
|
+
export { getInputsSchema, useGetInputsSchemaMutation } from './hooks/useGetInputsSchemaMutation';
|
|
9
|
+
export { getOrgTemplatesInputsSchema, useGetOrgTemplatesInputsSchemaQuery, } from './hooks/useGetOrgTemplatesInputsSchemaQuery';
|
|
10
|
+
export { getProjectTemplatesInputsSchema, useGetProjectTemplatesInputsSchemaQuery, } from './hooks/useGetProjectTemplatesInputsSchemaQuery';
|
|
7
11
|
export { getTemplateAcc, useGetTemplateAccQuery } from './hooks/useGetTemplateAccQuery';
|
|
8
12
|
export { getTemplateOrg, useGetTemplateOrgQuery } from './hooks/useGetTemplateOrgQuery';
|
|
9
13
|
export { getTemplateProject, useGetTemplateProjectQuery } from './hooks/useGetTemplateProjectQuery';
|
|
@@ -17,6 +21,9 @@ export { getTemplatesListProject, useGetTemplatesListProjectQuery, } from './hoo
|
|
|
17
21
|
export { importTemplateAcc, useImportTemplateAccMutation, } from './hooks/useImportTemplateAccMutation';
|
|
18
22
|
export { importTemplateOrg, useImportTemplateOrgMutation, } from './hooks/useImportTemplateOrgMutation';
|
|
19
23
|
export { importTemplateProject, useImportTemplateProjectMutation, } from './hooks/useImportTemplateProjectMutation';
|
|
24
|
+
export { updateGitMetadataDetails, useUpdateGitMetadataDetailsMutation, } from './hooks/useUpdateGitMetadataDetailsMutation';
|
|
25
|
+
export { updateGitMetadataDetailsOrg, useUpdateGitMetadataDetailsOrgMutation, } from './hooks/useUpdateGitMetadataDetailsOrgMutation';
|
|
26
|
+
export { updateGitMetadataDetailsProject, useUpdateGitMetadataDetailsProjectMutation, } from './hooks/useUpdateGitMetadataDetailsProjectMutation';
|
|
20
27
|
export { updateTemplateAcc, useUpdateTemplateAccMutation, } from './hooks/useUpdateTemplateAccMutation';
|
|
21
28
|
export { updateTemplateOrg, useUpdateTemplateOrgMutation, } from './hooks/useUpdateTemplateOrgMutation';
|
|
22
29
|
export { updateTemplateProject, useUpdateTemplateProjectMutation, } from './hooks/useUpdateTemplateProjectMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,11 +7,33 @@ export interface TemplateCreateRequestBody {
|
|
|
7
7
|
* Specify comment with respect to changes
|
|
8
8
|
*/
|
|
9
9
|
comments?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Pipeline description
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
10
14
|
git_details?: GitCreateDetails;
|
|
15
|
+
/**
|
|
16
|
+
* Template identifier
|
|
17
|
+
*/
|
|
18
|
+
identifier?: string;
|
|
11
19
|
/**
|
|
12
20
|
* True if given version for template to be set as stable
|
|
13
21
|
*/
|
|
14
22
|
is_stable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Template version label
|
|
25
|
+
*/
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Template name
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Template tags
|
|
33
|
+
*/
|
|
34
|
+
tags?: {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
};
|
|
15
37
|
/**
|
|
16
38
|
* Yaml for creating new Template
|
|
17
39
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GitDetailsMetadata } from '../schemas/GitDetailsMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* Lists down request params for template update git details request
|
|
4
|
+
*/
|
|
5
|
+
export interface TemplateUpdateGitMetadataRequest {
|
|
6
|
+
git_details?: GitDetailsMetadata;
|
|
7
|
+
version?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,7 +7,29 @@ export interface TemplateUpdateRequestBody {
|
|
|
7
7
|
* Specify comment with respect to changes
|
|
8
8
|
*/
|
|
9
9
|
comments?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Pipeline description
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
10
14
|
git_details?: GitUpdateDetails;
|
|
15
|
+
/**
|
|
16
|
+
* Template identifier
|
|
17
|
+
*/
|
|
18
|
+
identifier?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Template version label
|
|
21
|
+
*/
|
|
22
|
+
label?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Template name
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Template tags
|
|
29
|
+
*/
|
|
30
|
+
tags?: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
11
33
|
/**
|
|
12
34
|
* Yaml for updating existing Template
|
|
13
35
|
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TemplateYamlInputDto } from '../schemas/TemplateYamlInputDto';
|
|
2
|
+
import type { TemplateYamlInputMetadataDto } from '../schemas/TemplateYamlInputMetadataDto';
|
|
3
|
+
export interface TemplateYamlInputDetailsDto {
|
|
4
|
+
details?: TemplateYamlInputDto;
|
|
5
|
+
metadata?: TemplateYamlInputMetadataDto[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { YamlInputType } from '../schemas/YamlInputType';
|
|
2
|
+
export interface TemplateYamlInputDto {
|
|
3
|
+
allowed_values?: Array<{}>;
|
|
4
|
+
default?: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
description?: string;
|
|
8
|
+
execution?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
regex?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
type?: YamlInputType;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { YamlInputDependencyDetailsDto } from '../schemas/YamlInputDependencyDetailsDto';
|
|
2
|
+
import type { InputDetailsDto } from '../schemas/InputDetailsDto';
|
|
3
|
+
export interface TemplateYamlInputMetadataDto {
|
|
4
|
+
dependencies?: YamlInputDependencyDetailsDto;
|
|
5
|
+
field_properties?: InputDetailsDto;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FixedValueFieldDependencyDetailsDto } from '../schemas/FixedValueFieldDependencyDetailsDto';
|
|
2
|
+
import type { RuntimeInputDependencyDetailsDto } from '../schemas/RuntimeInputDependencyDetailsDto';
|
|
3
|
+
export interface YamlInputDependencyDetailsDto {
|
|
4
|
+
required_fixed_values?: FixedValueFieldDependencyDetailsDto[];
|
|
5
|
+
required_runtime_inputs?: RuntimeInputDependencyDetailsDto[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED