@harnessio/react-template-service-client 0.8.0 → 0.10.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/useDeleteEntityTemplateReferencesMutation.d.ts +34 -0
- package/dist/template-service/src/services/hooks/useDeleteEntityTemplateReferencesMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useGetEntityTemplateReferencesQuery.d.ts +37 -0
- package/dist/template-service/src/services/hooks/useGetEntityTemplateReferencesQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.d.ts +2 -1
- package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.js +1 -1
- package/dist/template-service/src/services/index.d.ts +11 -0
- package/dist/template-service/src/services/index.js +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateReferenceRequestBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateReferenceRequestBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/requestBodies/UpsertEntityTemplateReferencesRequestBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/UpsertEntityTemplateReferencesRequestBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/responses/EntityTemplateReferencesResponseResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/EntityTemplateReferencesResponseResponse.js +1 -0
- package/dist/template-service/src/services/schemas/EntityGitDetails.d.ts +21 -1
- package/dist/template-service/src/services/schemas/EntityTemplateReferencesResponse.d.ts +10 -0
- package/dist/template-service/src/services/schemas/EntityTemplateReferencesResponse.js +1 -0
- package/dist/template-service/src/services/schemas/ReferencedTemplateMetadata.d.ts +65 -0
- package/dist/template-service/src/services/schemas/ReferencedTemplateMetadata.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateReferenceRequest.d.ts +18 -0
- package/dist/template-service/src/services/schemas/TemplateReferenceRequest.js +1 -0
- package/dist/template-service/src/services/schemas/UpsertEntityTemplateReferencesRequestBody.d.ts +15 -0
- package/dist/template-service/src/services/schemas/UpsertEntityTemplateReferencesRequestBody.js +1 -0
- package/package.json +1 -1
package/dist/template-service/src/services/hooks/useDeleteEntityTemplateReferencesMutation.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
export interface DeleteEntityTemplateReferencesMutationQueryParams {
|
|
5
|
+
org?: string;
|
|
6
|
+
project?: string;
|
|
7
|
+
identifier: string;
|
|
8
|
+
entity_type: 'PIPELINE' | 'TEMPLATE';
|
|
9
|
+
repo_identifier?: string;
|
|
10
|
+
branch_name?: string;
|
|
11
|
+
file_path?: string;
|
|
12
|
+
object_id?: string;
|
|
13
|
+
repo_name?: string;
|
|
14
|
+
commit_id?: string;
|
|
15
|
+
file_url?: string;
|
|
16
|
+
repo_url?: string;
|
|
17
|
+
root_folder?: string;
|
|
18
|
+
parent_entity_connector_ref?: string;
|
|
19
|
+
parent_entity_repo_name?: string;
|
|
20
|
+
is_harness_code_repo?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface DeleteEntityTemplateReferencesMutationHeaderParams {
|
|
23
|
+
'Harness-Account'?: string;
|
|
24
|
+
}
|
|
25
|
+
export type DeleteEntityTemplateReferencesOkResponse = ResponseWithPagination<unknown>;
|
|
26
|
+
export type DeleteEntityTemplateReferencesErrorResponse = unknown;
|
|
27
|
+
export interface DeleteEntityTemplateReferencesProps extends Omit<FetcherOptions<DeleteEntityTemplateReferencesMutationQueryParams, unknown, DeleteEntityTemplateReferencesMutationHeaderParams>, 'url'> {
|
|
28
|
+
queryParams: DeleteEntityTemplateReferencesMutationQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function deleteEntityTemplateReferences(props: DeleteEntityTemplateReferencesProps): Promise<DeleteEntityTemplateReferencesOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Deletes template references for a pipeline or template entity. Called by pipeline-service or template-service internally.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useDeleteEntityTemplateReferencesMutation(options?: Omit<UseMutationOptions<DeleteEntityTemplateReferencesOkResponse, DeleteEntityTemplateReferencesErrorResponse, DeleteEntityTemplateReferencesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteEntityTemplateReferencesOkResponse, unknown, DeleteEntityTemplateReferencesProps, 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 deleteEntityTemplateReferences(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entity-template-references`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes template references for a pipeline or template entity. Called by pipeline-service or template-service internally.
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteEntityTemplateReferencesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteEntityTemplateReferences(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityTemplateReferencesResponseResponse } from '../responses/EntityTemplateReferencesResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntityTemplateReferencesQueryPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetEntityTemplateReferencesQueryQueryParams {
|
|
9
|
+
org?: string;
|
|
10
|
+
project?: string;
|
|
11
|
+
entity_type: 'PIPELINE' | 'TEMPLATE';
|
|
12
|
+
repo_identifier?: string;
|
|
13
|
+
branch_name?: string;
|
|
14
|
+
file_path?: string;
|
|
15
|
+
object_id?: string;
|
|
16
|
+
repo_name?: string;
|
|
17
|
+
commit_id?: string;
|
|
18
|
+
file_url?: string;
|
|
19
|
+
repo_url?: string;
|
|
20
|
+
root_folder?: string;
|
|
21
|
+
parent_entity_connector_ref?: string;
|
|
22
|
+
parent_entity_repo_name?: string;
|
|
23
|
+
is_harness_code_repo?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface GetEntityTemplateReferencesQueryHeaderParams {
|
|
26
|
+
'Harness-Account'?: string;
|
|
27
|
+
}
|
|
28
|
+
export type GetEntityTemplateReferencesOkResponse = ResponseWithPagination<EntityTemplateReferencesResponseResponse>;
|
|
29
|
+
export type GetEntityTemplateReferencesErrorResponse = unknown;
|
|
30
|
+
export interface GetEntityTemplateReferencesProps extends GetEntityTemplateReferencesQueryPathParams, Omit<FetcherOptions<GetEntityTemplateReferencesQueryQueryParams, unknown, GetEntityTemplateReferencesQueryHeaderParams>, 'url'> {
|
|
31
|
+
queryParams: GetEntityTemplateReferencesQueryQueryParams;
|
|
32
|
+
}
|
|
33
|
+
export declare function getEntityTemplateReferences(props: GetEntityTemplateReferencesProps): Promise<GetEntityTemplateReferencesOkResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves template references for a pipeline or template entity. Called by UI.
|
|
36
|
+
*/
|
|
37
|
+
export declare function useGetEntityTemplateReferencesQuery(props: GetEntityTemplateReferencesProps, options?: Omit<UseQueryOptions<GetEntityTemplateReferencesOkResponse, GetEntityTemplateReferencesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityTemplateReferencesOkResponse, 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 getEntityTemplateReferences(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entity-template-references/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves template references for a pipeline or template entity. Called by UI.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityTemplateReferencesQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entity-template-references', props.identifier, props.queryParams], ({ signal }) => getEntityTemplateReferences(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface GetTemplateStableAccQueryPathParams {
|
|
|
6
6
|
template: string;
|
|
7
7
|
}
|
|
8
8
|
export interface GetTemplateStableAccQueryQueryParams {
|
|
9
|
+
version?: string;
|
|
9
10
|
include_yaml?: boolean;
|
|
10
11
|
branch_name?: string;
|
|
11
12
|
parent_entity_connector_ref?: string;
|
|
@@ -25,6 +26,6 @@ export interface GetTemplateStableAccProps extends GetTemplateStableAccQueryPath
|
|
|
25
26
|
}
|
|
26
27
|
export declare function getTemplateStableAcc(props: GetTemplateStableAccProps): Promise<GetTemplateStableAccOkResponse>;
|
|
27
28
|
/**
|
|
28
|
-
* Retrieves
|
|
29
|
+
* Retrieves a version of Template at Account scope. If version is not provided then it will retrieve a stable template.
|
|
29
30
|
*/
|
|
30
31
|
export declare function useGetTemplateStableAccQuery(props: GetTemplateStableAccProps, options?: Omit<UseQueryOptions<GetTemplateStableAccOkResponse, GetTemplateStableAccErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateStableAccOkResponse, unknown>;
|
|
@@ -7,7 +7,7 @@ export function getTemplateStableAcc(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/templates/${props.template}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Retrieves
|
|
10
|
+
* Retrieves a version of Template at Account scope. If version is not provided then it will retrieve a stable template.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetTemplateStableAccQuery(props, options) {
|
|
13
13
|
return useQuery(['get-template-stable-acc', props.template, props.queryParams], ({ signal }) => getTemplateStableAcc(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -5,6 +5,8 @@ export type { CreateTemplatesOrgErrorResponse, CreateTemplatesOrgMutationPathPar
|
|
|
5
5
|
export { createTemplatesOrg, useCreateTemplatesOrgMutation, } from './hooks/useCreateTemplatesOrgMutation';
|
|
6
6
|
export type { CreateTemplatesProjectErrorResponse, CreateTemplatesProjectMutationPathParams, CreateTemplatesProjectOkResponse, CreateTemplatesProjectProps, CreateTemplatesProjectRequestBody, } from './hooks/useCreateTemplatesProjectMutation';
|
|
7
7
|
export { createTemplatesProject, useCreateTemplatesProjectMutation, } from './hooks/useCreateTemplatesProjectMutation';
|
|
8
|
+
export type { DeleteEntityTemplateReferencesErrorResponse, DeleteEntityTemplateReferencesMutationQueryParams, DeleteEntityTemplateReferencesOkResponse, DeleteEntityTemplateReferencesProps, } from './hooks/useDeleteEntityTemplateReferencesMutation';
|
|
9
|
+
export { deleteEntityTemplateReferences, useDeleteEntityTemplateReferencesMutation, } from './hooks/useDeleteEntityTemplateReferencesMutation';
|
|
8
10
|
export type { DeleteTemplateAccErrorResponse, DeleteTemplateAccMutationPathParams, DeleteTemplateAccMutationQueryParams, DeleteTemplateAccOkResponse, DeleteTemplateAccProps, } from './hooks/useDeleteTemplateAccMutation';
|
|
9
11
|
export { deleteTemplateAcc, useDeleteTemplateAccMutation, } from './hooks/useDeleteTemplateAccMutation';
|
|
10
12
|
export type { DeleteTemplateOrgErrorResponse, DeleteTemplateOrgMutationPathParams, DeleteTemplateOrgMutationQueryParams, DeleteTemplateOrgOkResponse, DeleteTemplateOrgProps, } from './hooks/useDeleteTemplateOrgMutation';
|
|
@@ -13,6 +15,8 @@ export type { DeleteTemplateProjectErrorResponse, DeleteTemplateProjectMutationP
|
|
|
13
15
|
export { deleteTemplateProject, useDeleteTemplateProjectMutation, } from './hooks/useDeleteTemplateProjectMutation';
|
|
14
16
|
export type { GetAccTemplatesInputsSchemaErrorResponse, GetAccTemplatesInputsSchemaOkResponse, GetAccTemplatesInputsSchemaProps, GetAccTemplatesInputsSchemaQueryPathParams, } from './hooks/useGetAccTemplatesInputsSchemaQuery';
|
|
15
17
|
export { getAccTemplatesInputsSchema, useGetAccTemplatesInputsSchemaQuery, } from './hooks/useGetAccTemplatesInputsSchemaQuery';
|
|
18
|
+
export type { GetEntityTemplateReferencesErrorResponse, GetEntityTemplateReferencesOkResponse, GetEntityTemplateReferencesProps, GetEntityTemplateReferencesQueryPathParams, GetEntityTemplateReferencesQueryQueryParams, } from './hooks/useGetEntityTemplateReferencesQuery';
|
|
19
|
+
export { getEntityTemplateReferences, useGetEntityTemplateReferencesQuery, } from './hooks/useGetEntityTemplateReferencesQuery';
|
|
16
20
|
export type { GetInputsSchemaErrorResponse, GetInputsSchemaMutationQueryParams, GetInputsSchemaOkResponse, GetInputsSchemaProps, GetInputsSchemaRequestBody, } from './hooks/useGetInputsSchemaMutation';
|
|
17
21
|
export { getInputsSchema, useGetInputsSchemaMutation } from './hooks/useGetInputsSchemaMutation';
|
|
18
22
|
export type { GetOrgTemplatesInputsSchemaErrorResponse, GetOrgTemplatesInputsSchemaOkResponse, GetOrgTemplatesInputsSchemaProps, GetOrgTemplatesInputsSchemaQueryPathParams, } from './hooks/useGetOrgTemplatesInputsSchemaQuery';
|
|
@@ -72,8 +76,11 @@ export type { TemplateCreateBodyRequestBody } from './requestBodies/TemplateCrea
|
|
|
72
76
|
export type { TemplateFetchBodyRequestBody } from './requestBodies/TemplateFetchBodyRequestBody';
|
|
73
77
|
export type { TemplateImportRequestBodyRequestBody } from './requestBodies/TemplateImportRequestBodyRequestBody';
|
|
74
78
|
export type { TemplateInputsSchemaRequestBodyRequestBody } from './requestBodies/TemplateInputsSchemaRequestBodyRequestBody';
|
|
79
|
+
export type { TemplateReferenceRequestBodyRequestBody } from './requestBodies/TemplateReferenceRequestBodyRequestBody';
|
|
75
80
|
export type { TemplateUpdateBodyRequestBody } from './requestBodies/TemplateUpdateBodyRequestBody';
|
|
76
81
|
export type { TemplateUpdateGitMetadataRequestBodyRequestBody } from './requestBodies/TemplateUpdateGitMetadataRequestBodyRequestBody';
|
|
82
|
+
export type { UpsertEntityTemplateReferencesRequestBodyRequestBody } from './requestBodies/UpsertEntityTemplateReferencesRequestBodyRequestBody';
|
|
83
|
+
export type { EntityTemplateReferencesResponseResponse } from './responses/EntityTemplateReferencesResponseResponse';
|
|
77
84
|
export type { NotificationTemplateValidateResponseBodyResponse } from './responses/NotificationTemplateValidateResponseBodyResponse';
|
|
78
85
|
export type { TemplateImportResponseBodyResponse } from './responses/TemplateImportResponseBodyResponse';
|
|
79
86
|
export type { TemplateInputSchemaDetailsResponseBodyResponse } from './responses/TemplateInputSchemaDetailsResponseBodyResponse';
|
|
@@ -85,6 +92,7 @@ export type { TemplateUpdateStableResponseResponse } from './responses/TemplateU
|
|
|
85
92
|
export type { TemplateWithInputsResponseResponse } from './responses/TemplateWithInputsResponseResponse';
|
|
86
93
|
export type { UnresolvedNotificationRulesResponseBodyResponse } from './responses/UnresolvedNotificationRulesResponseBodyResponse';
|
|
87
94
|
export type { EntityGitDetails } from './schemas/EntityGitDetails';
|
|
95
|
+
export type { EntityTemplateReferencesResponse } from './schemas/EntityTemplateReferencesResponse';
|
|
88
96
|
export type { FixedValueFieldDependencyDetailsDto } from './schemas/FixedValueFieldDependencyDetailsDto';
|
|
89
97
|
export type { GitCreateDetails } from './schemas/GitCreateDetails';
|
|
90
98
|
export type { GitDetailsMetadata } from './schemas/GitDetailsMetadata';
|
|
@@ -96,6 +104,7 @@ export type { InputDetailsDto } from './schemas/InputDetailsDto';
|
|
|
96
104
|
export type { NotificationRulesData } from './schemas/NotificationRulesData';
|
|
97
105
|
export type { NotificationTemplateReconcileRequestBody } from './schemas/NotificationTemplateReconcileRequestBody';
|
|
98
106
|
export type { NotificationTemplateValidateResponseBody } from './schemas/NotificationTemplateValidateResponseBody';
|
|
107
|
+
export type { ReferencedTemplateMetadata } from './schemas/ReferencedTemplateMetadata';
|
|
99
108
|
export type { RuntimeInputDependencyDetailsDto } from './schemas/RuntimeInputDependencyDetailsDto';
|
|
100
109
|
export type { TemplateCreateRequestBody } from './schemas/TemplateCreateRequestBody';
|
|
101
110
|
export type { TemplateGovernanceMetadata } from './schemas/TemplateGovernanceMetadata';
|
|
@@ -111,6 +120,7 @@ export type { TemplateMetadataFilterExpression } from './schemas/TemplateMetadat
|
|
|
111
120
|
export type { TemplateMetadataLogicalFilter } from './schemas/TemplateMetadataLogicalFilter';
|
|
112
121
|
export type { TemplateMetadataPropertyFilter } from './schemas/TemplateMetadataPropertyFilter';
|
|
113
122
|
export type { TemplateMetadataSummaryResponse } from './schemas/TemplateMetadataSummaryResponse';
|
|
123
|
+
export type { TemplateReferenceRequest } from './schemas/TemplateReferenceRequest';
|
|
114
124
|
export type { TemplateResponse } from './schemas/TemplateResponse';
|
|
115
125
|
export type { TemplateSchemaResponse } from './schemas/TemplateSchemaResponse';
|
|
116
126
|
export type { TemplateUpdateGitMetadataRequest } from './schemas/TemplateUpdateGitMetadataRequest';
|
|
@@ -121,5 +131,6 @@ export type { TemplateYamlInputDetailsDto } from './schemas/TemplateYamlInputDet
|
|
|
121
131
|
export type { TemplateYamlInputDto } from './schemas/TemplateYamlInputDto';
|
|
122
132
|
export type { TemplateYamlInputMetadataDto } from './schemas/TemplateYamlInputMetadataDto';
|
|
123
133
|
export type { UnresolvedNotificationRulesResponseBody } from './schemas/UnresolvedNotificationRulesResponseBody';
|
|
134
|
+
export type { UpsertEntityTemplateReferencesRequestBody } from './schemas/UpsertEntityTemplateReferencesRequestBody';
|
|
124
135
|
export type { YamlInputDependencyDetailsDto } from './schemas/YamlInputDependencyDetailsDto';
|
|
125
136
|
export type { YamlInputType } from './schemas/YamlInputType';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export { createTemplatesAcc, useCreateTemplatesAccMutation, } from './hooks/useCreateTemplatesAccMutation';
|
|
2
2
|
export { createTemplatesOrg, useCreateTemplatesOrgMutation, } from './hooks/useCreateTemplatesOrgMutation';
|
|
3
3
|
export { createTemplatesProject, useCreateTemplatesProjectMutation, } from './hooks/useCreateTemplatesProjectMutation';
|
|
4
|
+
export { deleteEntityTemplateReferences, useDeleteEntityTemplateReferencesMutation, } from './hooks/useDeleteEntityTemplateReferencesMutation';
|
|
4
5
|
export { deleteTemplateAcc, useDeleteTemplateAccMutation, } from './hooks/useDeleteTemplateAccMutation';
|
|
5
6
|
export { deleteTemplateOrg, useDeleteTemplateOrgMutation, } from './hooks/useDeleteTemplateOrgMutation';
|
|
6
7
|
export { deleteTemplateProject, useDeleteTemplateProjectMutation, } from './hooks/useDeleteTemplateProjectMutation';
|
|
7
8
|
export { getAccTemplatesInputsSchema, useGetAccTemplatesInputsSchemaQuery, } from './hooks/useGetAccTemplatesInputsSchemaQuery';
|
|
9
|
+
export { getEntityTemplateReferences, useGetEntityTemplateReferencesQuery, } from './hooks/useGetEntityTemplateReferencesQuery';
|
|
8
10
|
export { getInputsSchema, useGetInputsSchemaMutation } from './hooks/useGetInputsSchemaMutation';
|
|
9
11
|
export { getOrgTemplatesInputsSchema, useGetOrgTemplatesInputsSchemaQuery, } from './hooks/useGetOrgTemplatesInputsSchemaQuery';
|
|
10
12
|
export { getProjectTemplatesInputsSchema, useGetProjectTemplatesInputsSchemaQuery, } from './hooks/useGetProjectTemplatesInputsSchemaQuery';
|
package/dist/template-service/src/services/requestBodies/TemplateReferenceRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/template-service/src/services/responses/EntityTemplateReferencesResponseResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,9 +19,25 @@ export interface EntityGitDetails {
|
|
|
19
19
|
*/
|
|
20
20
|
file_url?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Is harness code repo entity
|
|
23
|
+
*/
|
|
24
|
+
is_harness_code_repo?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Object Id of the Entity
|
|
23
27
|
*/
|
|
24
28
|
object_id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Connector Reference of parent entity
|
|
31
|
+
*/
|
|
32
|
+
parent_entity_connector_ref?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Repo name of parent entity
|
|
35
|
+
*/
|
|
36
|
+
parent_entity_repo_name?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Git Sync Config Id
|
|
39
|
+
*/
|
|
40
|
+
repo_identifier?: string;
|
|
25
41
|
/**
|
|
26
42
|
* Name of the repository.
|
|
27
43
|
*/
|
|
@@ -30,4 +46,8 @@ export interface EntityGitDetails {
|
|
|
30
46
|
* Repository URL of the Entity.
|
|
31
47
|
*/
|
|
32
48
|
repo_url?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Root Folder Path of the Entity
|
|
51
|
+
*/
|
|
52
|
+
root_folder?: string;
|
|
33
53
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReferencedTemplateMetadata } from '../schemas/ReferencedTemplateMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* Response body containing template references for an entity
|
|
4
|
+
*/
|
|
5
|
+
export interface EntityTemplateReferencesResponse {
|
|
6
|
+
/**
|
|
7
|
+
* List of referenced template metadata
|
|
8
|
+
*/
|
|
9
|
+
referenced_templates?: ReferencedTemplateMetadata[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metadata for a referenced template, including UI display information and reference details.
|
|
3
|
+
*/
|
|
4
|
+
export interface ReferencedTemplateMetadata {
|
|
5
|
+
/**
|
|
6
|
+
* Account identifier
|
|
7
|
+
*/
|
|
8
|
+
account_id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Git branch name (for remote templates)
|
|
11
|
+
*/
|
|
12
|
+
branch?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Template description
|
|
15
|
+
*/
|
|
16
|
+
description?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* File path in repository (for remote templates)
|
|
19
|
+
*/
|
|
20
|
+
file_path?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Template icon identifier
|
|
23
|
+
*/
|
|
24
|
+
icon?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Template icon name
|
|
27
|
+
*/
|
|
28
|
+
icon_name?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Template icon URL
|
|
31
|
+
*/
|
|
32
|
+
icon_url?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Template name
|
|
35
|
+
*/
|
|
36
|
+
name?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Organization identifier (null for account-level)
|
|
39
|
+
*/
|
|
40
|
+
org_identifier?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Project identifier (null for account/org-level)
|
|
43
|
+
*/
|
|
44
|
+
project_identifier?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Type of template reference
|
|
47
|
+
*/
|
|
48
|
+
reference_type?: 'GLOBAL' | 'INLINE' | 'REMOTE';
|
|
49
|
+
/**
|
|
50
|
+
* Git repository identifier (for remote templates)
|
|
51
|
+
*/
|
|
52
|
+
repo_identifier?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Identifier of the referenced template
|
|
55
|
+
*/
|
|
56
|
+
template_identifier?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Template scope
|
|
59
|
+
*/
|
|
60
|
+
template_scope?: 'ACCOUNT' | 'ORG' | 'PROJECT';
|
|
61
|
+
/**
|
|
62
|
+
* Version label of the referenced template (optional, null for stable versions)
|
|
63
|
+
*/
|
|
64
|
+
version_label?: string | null;
|
|
65
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EntityGitDetails } from '../schemas/EntityGitDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Request body for extracting template references from entity YAML
|
|
4
|
+
*/
|
|
5
|
+
export interface TemplateReferenceRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Git details for the entity
|
|
8
|
+
*/
|
|
9
|
+
git_details?: EntityGitDetails;
|
|
10
|
+
/**
|
|
11
|
+
* YAML content of the entity (pipeline or template)
|
|
12
|
+
*/
|
|
13
|
+
yaml: string;
|
|
14
|
+
/**
|
|
15
|
+
* YAML version, should be one of '0' or '1'
|
|
16
|
+
*/
|
|
17
|
+
yaml_version?: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/template-service/src/services/schemas/UpsertEntityTemplateReferencesRequestBody.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { EntityGitDetails } from '../schemas/EntityGitDetails';
|
|
2
|
+
import type { ReferencedTemplateMetadata } from '../schemas/ReferencedTemplateMetadata';
|
|
3
|
+
/**
|
|
4
|
+
* Request body for upserting entity template references
|
|
5
|
+
*/
|
|
6
|
+
export interface UpsertEntityTemplateReferencesRequestBody {
|
|
7
|
+
/**
|
|
8
|
+
* Git details for the entity
|
|
9
|
+
*/
|
|
10
|
+
git_details?: EntityGitDetails;
|
|
11
|
+
/**
|
|
12
|
+
* List of referenced template metadata
|
|
13
|
+
*/
|
|
14
|
+
referenced_templates?: ReferencedTemplateMetadata[];
|
|
15
|
+
}
|
package/dist/template-service/src/services/schemas/UpsertEntityTemplateReferencesRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED