@harnessio/react-template-service-client 0.1.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/README.md +39 -0
- package/dist/fetcher/index.d.ts +17 -0
- package/dist/fetcher/index.js +65 -0
- package/dist/template-service/src/index.d.ts +6 -0
- package/dist/template-service/src/index.js +10 -0
- package/dist/template-service/src/services/helpers.d.ts +14 -0
- package/dist/template-service/src/services/helpers.js +1 -0
- package/dist/template-service/src/services/hooks/useCreateTemplatesAccMutation.d.ts +19 -0
- package/dist/template-service/src/services/hooks/useCreateTemplatesAccMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useCreateTemplatesOrgMutation.d.ts +22 -0
- package/dist/template-service/src/services/hooks/useCreateTemplatesOrgMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useCreateTemplatesProjectMutation.d.ts +23 -0
- package/dist/template-service/src/services/hooks/useCreateTemplatesProjectMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateAccMutation.d.ts +24 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateAccMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateOrgMutation.d.ts +25 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateOrgMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateProjectMutation.d.ts +26 -0
- package/dist/template-service/src/services/hooks/useDeleteTemplateProjectMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplateAccQuery.d.ts +30 -0
- package/dist/template-service/src/services/hooks/useGetTemplateAccQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplateOrgQuery.d.ts +31 -0
- package/dist/template-service/src/services/hooks/useGetTemplateOrgQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplateProjectQuery.d.ts +32 -0
- package/dist/template-service/src/services/hooks/useGetTemplateProjectQuery.js +21 -0
- package/dist/template-service/src/services/hooks/useGetTemplateSchemaQuery.d.ts +25 -0
- package/dist/template-service/src/services/hooks/useGetTemplateSchemaQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.d.ts +29 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableOrgQuery.d.ts +30 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableOrgQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableProjectQuery.d.ts +31 -0
- package/dist/template-service/src/services/hooks/useGetTemplateStableProjectQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListAccQuery.d.ts +37 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListAccQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListOrgQuery.d.ts +40 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListOrgQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListProjectQuery.d.ts +41 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListProjectQuery.js +14 -0
- package/dist/template-service/src/services/hooks/useImportTemplateAccMutation.d.ts +22 -0
- package/dist/template-service/src/services/hooks/useImportTemplateAccMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useImportTemplateOrgMutation.d.ts +23 -0
- package/dist/template-service/src/services/hooks/useImportTemplateOrgMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useImportTemplateProjectMutation.d.ts +24 -0
- package/dist/template-service/src/services/hooks/useImportTemplateProjectMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateAccMutation.d.ts +23 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateAccMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateOrgMutation.d.ts +24 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateOrgMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateProjectMutation.d.ts +25 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateProjectMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableAccMutation.d.ts +23 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableAccMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableOrgMutation.d.ts +24 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableOrgMutation.js +14 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableProjectMutation.d.ts +25 -0
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableProjectMutation.js +14 -0
- package/dist/template-service/src/services/index.d.ts +77 -0
- package/dist/template-service/src/services/index.js +25 -0
- package/dist/template-service/src/services/requestBodies/TemplateCreateBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateCreateBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/requestBodies/TemplateFetchBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateFetchBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/requestBodies/TemplateImportRequestBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateImportRequestBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/requestBodies/TemplateUpdateBodyRequestBody.d.ts +2 -0
- package/dist/template-service/src/services/requestBodies/TemplateUpdateBodyRequestBody.js +1 -0
- package/dist/template-service/src/services/responses/TemplateImportResponseBodyResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/TemplateImportResponseBodyResponse.js +1 -0
- package/dist/template-service/src/services/responses/TemplateMetaDataListResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/TemplateMetaDataListResponse.js +1 -0
- package/dist/template-service/src/services/responses/TemplateResponseResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/TemplateResponseResponse.js +1 -0
- package/dist/template-service/src/services/responses/TemplateSchemaResponseResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/TemplateSchemaResponseResponse.js +1 -0
- package/dist/template-service/src/services/responses/TemplateUpdateStableResponseResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/TemplateUpdateStableResponseResponse.js +1 -0
- package/dist/template-service/src/services/responses/TemplateWithInputsResponseResponse.d.ts +2 -0
- package/dist/template-service/src/services/responses/TemplateWithInputsResponseResponse.js +1 -0
- package/dist/template-service/src/services/schemas/EntityGitDetails.d.ts +33 -0
- package/dist/template-service/src/services/schemas/EntityGitDetails.js +4 -0
- package/dist/template-service/src/services/schemas/GitCreateDetails.d.ts +33 -0
- package/dist/template-service/src/services/schemas/GitCreateDetails.js +4 -0
- package/dist/template-service/src/services/schemas/GitFindDetails.d.ts +33 -0
- package/dist/template-service/src/services/schemas/GitFindDetails.js +4 -0
- package/dist/template-service/src/services/schemas/GitImportDetails.d.ts +10 -0
- package/dist/template-service/src/services/schemas/GitImportDetails.js +4 -0
- package/dist/template-service/src/services/schemas/GitUpdateDetails.d.ts +41 -0
- package/dist/template-service/src/services/schemas/GitUpdateDetails.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateCreateRequestBody.d.ts +19 -0
- package/dist/template-service/src/services/schemas/TemplateCreateRequestBody.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateImportRequestBody.d.ts +9 -0
- package/dist/template-service/src/services/schemas/TemplateImportRequestBody.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateImportRequestDto.d.ts +8 -0
- package/dist/template-service/src/services/schemas/TemplateImportRequestDto.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateImportResponseBody.d.ts +7 -0
- package/dist/template-service/src/services/schemas/TemplateImportResponseBody.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateMetaDataList.d.ts +5 -0
- package/dist/template-service/src/services/schemas/TemplateMetaDataList.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateMetadataSummaryResponse.d.ts +77 -0
- package/dist/template-service/src/services/schemas/TemplateMetadataSummaryResponse.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateResponse.d.ts +81 -0
- package/dist/template-service/src/services/schemas/TemplateResponse.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateSchemaResponse.d.ts +5 -0
- package/dist/template-service/src/services/schemas/TemplateSchemaResponse.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateUpdateRequestBody.d.ts +15 -0
- package/dist/template-service/src/services/schemas/TemplateUpdateRequestBody.js +1 -0
- package/dist/template-service/src/services/schemas/TemplateUpdateStableResponse.d.ts +10 -0
- package/dist/template-service/src/services/schemas/TemplateUpdateStableResponse.js +4 -0
- package/dist/template-service/src/services/schemas/TemplateWithInputsResponse.d.ts +11 -0
- package/dist/template-service/src/services/schemas/TemplateWithInputsResponse.js +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TemplateUpdateStableResponseResponse } from '../responses/TemplateUpdateStableResponseResponse';
|
|
3
|
+
import type { TemplateFetchBodyRequestBody } from '../requestBodies/TemplateFetchBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateTemplateStableProjectMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
template: string;
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateTemplateStableProjectMutationHeaderParams {
|
|
13
|
+
'Harness-Account'?: string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateTemplateStableProjectRequestBody = TemplateFetchBodyRequestBody;
|
|
16
|
+
export type UpdateTemplateStableProjectOkResponse = ResponseWithPagination<TemplateUpdateStableResponseResponse>;
|
|
17
|
+
export type UpdateTemplateStableProjectErrorResponse = unknown;
|
|
18
|
+
export interface UpdateTemplateStableProjectProps extends UpdateTemplateStableProjectMutationPathParams, Omit<FetcherOptions<unknown, UpdateTemplateStableProjectRequestBody, UpdateTemplateStableProjectMutationHeaderParams>, 'url'> {
|
|
19
|
+
body: UpdateTemplateStableProjectRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function updateTemplateStableProject(props: UpdateTemplateStableProjectProps): Promise<UpdateTemplateStableProjectOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Updates the stable version of Template at Project scope.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useUpdateTemplateStableProjectMutation(options?: Omit<UseMutationOptions<UpdateTemplateStableProjectOkResponse, UpdateTemplateStableProjectErrorResponse, UpdateTemplateStableProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateTemplateStableProjectOkResponse, unknown, UpdateTemplateStableProjectProps, 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 updateTemplateStableProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}/versions/${props.version}/stable`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates the stable version of Template at Project scope.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateTemplateStableProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateTemplateStableProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
+
export type { CreateTemplatesAccErrorResponse, CreateTemplatesAccOkResponse, CreateTemplatesAccProps, CreateTemplatesAccRequestBody, } from './hooks/useCreateTemplatesAccMutation';
|
|
3
|
+
export { createTemplatesAcc, useCreateTemplatesAccMutation, } from './hooks/useCreateTemplatesAccMutation';
|
|
4
|
+
export type { CreateTemplatesOrgErrorResponse, CreateTemplatesOrgMutationPathParams, CreateTemplatesOrgOkResponse, CreateTemplatesOrgProps, CreateTemplatesOrgRequestBody, } from './hooks/useCreateTemplatesOrgMutation';
|
|
5
|
+
export { createTemplatesOrg, useCreateTemplatesOrgMutation, } from './hooks/useCreateTemplatesOrgMutation';
|
|
6
|
+
export type { CreateTemplatesProjectErrorResponse, CreateTemplatesProjectMutationPathParams, CreateTemplatesProjectOkResponse, CreateTemplatesProjectProps, CreateTemplatesProjectRequestBody, } from './hooks/useCreateTemplatesProjectMutation';
|
|
7
|
+
export { createTemplatesProject, useCreateTemplatesProjectMutation, } from './hooks/useCreateTemplatesProjectMutation';
|
|
8
|
+
export type { DeleteTemplateAccErrorResponse, DeleteTemplateAccMutationPathParams, DeleteTemplateAccMutationQueryParams, DeleteTemplateAccOkResponse, DeleteTemplateAccProps, } from './hooks/useDeleteTemplateAccMutation';
|
|
9
|
+
export { deleteTemplateAcc, useDeleteTemplateAccMutation, } from './hooks/useDeleteTemplateAccMutation';
|
|
10
|
+
export type { DeleteTemplateOrgErrorResponse, DeleteTemplateOrgMutationPathParams, DeleteTemplateOrgMutationQueryParams, DeleteTemplateOrgOkResponse, DeleteTemplateOrgProps, } from './hooks/useDeleteTemplateOrgMutation';
|
|
11
|
+
export { deleteTemplateOrg, useDeleteTemplateOrgMutation, } from './hooks/useDeleteTemplateOrgMutation';
|
|
12
|
+
export type { DeleteTemplateProjectErrorResponse, DeleteTemplateProjectMutationPathParams, DeleteTemplateProjectMutationQueryParams, DeleteTemplateProjectOkResponse, DeleteTemplateProjectProps, } from './hooks/useDeleteTemplateProjectMutation';
|
|
13
|
+
export { deleteTemplateProject, useDeleteTemplateProjectMutation, } from './hooks/useDeleteTemplateProjectMutation';
|
|
14
|
+
export type { GetTemplateAccErrorResponse, GetTemplateAccOkResponse, GetTemplateAccProps, GetTemplateAccQueryPathParams, GetTemplateAccQueryQueryParams, } from './hooks/useGetTemplateAccQuery';
|
|
15
|
+
export { getTemplateAcc, useGetTemplateAccQuery } from './hooks/useGetTemplateAccQuery';
|
|
16
|
+
export type { GetTemplateOrgErrorResponse, GetTemplateOrgOkResponse, GetTemplateOrgProps, GetTemplateOrgQueryPathParams, GetTemplateOrgQueryQueryParams, } from './hooks/useGetTemplateOrgQuery';
|
|
17
|
+
export { getTemplateOrg, useGetTemplateOrgQuery } from './hooks/useGetTemplateOrgQuery';
|
|
18
|
+
export type { GetTemplateProjectErrorResponse, GetTemplateProjectOkResponse, GetTemplateProjectProps, GetTemplateProjectQueryPathParams, GetTemplateProjectQueryQueryParams, } from './hooks/useGetTemplateProjectQuery';
|
|
19
|
+
export { getTemplateProject, useGetTemplateProjectQuery } from './hooks/useGetTemplateProjectQuery';
|
|
20
|
+
export type { GetTemplateSchemaErrorResponse, GetTemplateSchemaOkResponse, GetTemplateSchemaProps, GetTemplateSchemaQueryQueryParams, } from './hooks/useGetTemplateSchemaQuery';
|
|
21
|
+
export { getTemplateSchema, useGetTemplateSchemaQuery } from './hooks/useGetTemplateSchemaQuery';
|
|
22
|
+
export type { GetTemplateStableAccErrorResponse, GetTemplateStableAccOkResponse, GetTemplateStableAccProps, GetTemplateStableAccQueryPathParams, GetTemplateStableAccQueryQueryParams, } from './hooks/useGetTemplateStableAccQuery';
|
|
23
|
+
export { getTemplateStableAcc, useGetTemplateStableAccQuery, } from './hooks/useGetTemplateStableAccQuery';
|
|
24
|
+
export type { GetTemplateStableOrgErrorResponse, GetTemplateStableOrgOkResponse, GetTemplateStableOrgProps, GetTemplateStableOrgQueryPathParams, GetTemplateStableOrgQueryQueryParams, } from './hooks/useGetTemplateStableOrgQuery';
|
|
25
|
+
export { getTemplateStableOrg, useGetTemplateStableOrgQuery, } from './hooks/useGetTemplateStableOrgQuery';
|
|
26
|
+
export type { GetTemplateStableProjectErrorResponse, GetTemplateStableProjectOkResponse, GetTemplateStableProjectProps, GetTemplateStableProjectQueryPathParams, GetTemplateStableProjectQueryQueryParams, } from './hooks/useGetTemplateStableProjectQuery';
|
|
27
|
+
export { getTemplateStableProject, useGetTemplateStableProjectQuery, } from './hooks/useGetTemplateStableProjectQuery';
|
|
28
|
+
export type { GetTemplatesListAccErrorResponse, GetTemplatesListAccOkResponse, GetTemplatesListAccProps, GetTemplatesListAccQueryQueryParams, } from './hooks/useGetTemplatesListAccQuery';
|
|
29
|
+
export { getTemplatesListAcc, useGetTemplatesListAccQuery, } from './hooks/useGetTemplatesListAccQuery';
|
|
30
|
+
export type { GetTemplatesListOrgErrorResponse, GetTemplatesListOrgOkResponse, GetTemplatesListOrgProps, GetTemplatesListOrgQueryPathParams, GetTemplatesListOrgQueryQueryParams, } from './hooks/useGetTemplatesListOrgQuery';
|
|
31
|
+
export { getTemplatesListOrg, useGetTemplatesListOrgQuery, } from './hooks/useGetTemplatesListOrgQuery';
|
|
32
|
+
export type { GetTemplatesListProjectErrorResponse, GetTemplatesListProjectOkResponse, GetTemplatesListProjectProps, GetTemplatesListProjectQueryPathParams, GetTemplatesListProjectQueryQueryParams, } from './hooks/useGetTemplatesListProjectQuery';
|
|
33
|
+
export { getTemplatesListProject, useGetTemplatesListProjectQuery, } from './hooks/useGetTemplatesListProjectQuery';
|
|
34
|
+
export type { ImportTemplateAccErrorResponse, ImportTemplateAccMutationPathParams, ImportTemplateAccOkResponse, ImportTemplateAccProps, ImportTemplateAccRequestBody, } from './hooks/useImportTemplateAccMutation';
|
|
35
|
+
export { importTemplateAcc, useImportTemplateAccMutation, } from './hooks/useImportTemplateAccMutation';
|
|
36
|
+
export type { ImportTemplateOrgErrorResponse, ImportTemplateOrgMutationPathParams, ImportTemplateOrgOkResponse, ImportTemplateOrgProps, ImportTemplateOrgRequestBody, } from './hooks/useImportTemplateOrgMutation';
|
|
37
|
+
export { importTemplateOrg, useImportTemplateOrgMutation, } from './hooks/useImportTemplateOrgMutation';
|
|
38
|
+
export type { ImportTemplateProjectErrorResponse, ImportTemplateProjectMutationPathParams, ImportTemplateProjectOkResponse, ImportTemplateProjectProps, ImportTemplateProjectRequestBody, } from './hooks/useImportTemplateProjectMutation';
|
|
39
|
+
export { importTemplateProject, useImportTemplateProjectMutation, } from './hooks/useImportTemplateProjectMutation';
|
|
40
|
+
export type { UpdateTemplateAccErrorResponse, UpdateTemplateAccMutationPathParams, UpdateTemplateAccOkResponse, UpdateTemplateAccProps, UpdateTemplateAccRequestBody, } from './hooks/useUpdateTemplateAccMutation';
|
|
41
|
+
export { updateTemplateAcc, useUpdateTemplateAccMutation, } from './hooks/useUpdateTemplateAccMutation';
|
|
42
|
+
export type { UpdateTemplateOrgErrorResponse, UpdateTemplateOrgMutationPathParams, UpdateTemplateOrgOkResponse, UpdateTemplateOrgProps, UpdateTemplateOrgRequestBody, } from './hooks/useUpdateTemplateOrgMutation';
|
|
43
|
+
export { updateTemplateOrg, useUpdateTemplateOrgMutation, } from './hooks/useUpdateTemplateOrgMutation';
|
|
44
|
+
export type { UpdateTemplateProjectErrorResponse, UpdateTemplateProjectMutationPathParams, UpdateTemplateProjectOkResponse, UpdateTemplateProjectProps, UpdateTemplateProjectRequestBody, } from './hooks/useUpdateTemplateProjectMutation';
|
|
45
|
+
export { updateTemplateProject, useUpdateTemplateProjectMutation, } from './hooks/useUpdateTemplateProjectMutation';
|
|
46
|
+
export type { UpdateTemplateStableAccErrorResponse, UpdateTemplateStableAccMutationPathParams, UpdateTemplateStableAccOkResponse, UpdateTemplateStableAccProps, UpdateTemplateStableAccRequestBody, } from './hooks/useUpdateTemplateStableAccMutation';
|
|
47
|
+
export { updateTemplateStableAcc, useUpdateTemplateStableAccMutation, } from './hooks/useUpdateTemplateStableAccMutation';
|
|
48
|
+
export type { UpdateTemplateStableOrgErrorResponse, UpdateTemplateStableOrgMutationPathParams, UpdateTemplateStableOrgOkResponse, UpdateTemplateStableOrgProps, UpdateTemplateStableOrgRequestBody, } from './hooks/useUpdateTemplateStableOrgMutation';
|
|
49
|
+
export { updateTemplateStableOrg, useUpdateTemplateStableOrgMutation, } from './hooks/useUpdateTemplateStableOrgMutation';
|
|
50
|
+
export type { UpdateTemplateStableProjectErrorResponse, UpdateTemplateStableProjectMutationPathParams, UpdateTemplateStableProjectOkResponse, UpdateTemplateStableProjectProps, UpdateTemplateStableProjectRequestBody, } from './hooks/useUpdateTemplateStableProjectMutation';
|
|
51
|
+
export { updateTemplateStableProject, useUpdateTemplateStableProjectMutation, } from './hooks/useUpdateTemplateStableProjectMutation';
|
|
52
|
+
export type { TemplateCreateBodyRequestBody } from './requestBodies/TemplateCreateBodyRequestBody';
|
|
53
|
+
export type { TemplateFetchBodyRequestBody } from './requestBodies/TemplateFetchBodyRequestBody';
|
|
54
|
+
export type { TemplateImportRequestBodyRequestBody } from './requestBodies/TemplateImportRequestBodyRequestBody';
|
|
55
|
+
export type { TemplateUpdateBodyRequestBody } from './requestBodies/TemplateUpdateBodyRequestBody';
|
|
56
|
+
export type { TemplateImportResponseBodyResponse } from './responses/TemplateImportResponseBodyResponse';
|
|
57
|
+
export type { TemplateMetaDataListResponse } from './responses/TemplateMetaDataListResponse';
|
|
58
|
+
export type { TemplateResponseResponse } from './responses/TemplateResponseResponse';
|
|
59
|
+
export type { TemplateSchemaResponseResponse } from './responses/TemplateSchemaResponseResponse';
|
|
60
|
+
export type { TemplateUpdateStableResponseResponse } from './responses/TemplateUpdateStableResponseResponse';
|
|
61
|
+
export type { TemplateWithInputsResponseResponse } from './responses/TemplateWithInputsResponseResponse';
|
|
62
|
+
export type { EntityGitDetails } from './schemas/EntityGitDetails';
|
|
63
|
+
export type { GitCreateDetails } from './schemas/GitCreateDetails';
|
|
64
|
+
export type { GitFindDetails } from './schemas/GitFindDetails';
|
|
65
|
+
export type { GitImportDetails } from './schemas/GitImportDetails';
|
|
66
|
+
export type { GitUpdateDetails } from './schemas/GitUpdateDetails';
|
|
67
|
+
export type { TemplateCreateRequestBody } from './schemas/TemplateCreateRequestBody';
|
|
68
|
+
export type { TemplateImportRequestBody } from './schemas/TemplateImportRequestBody';
|
|
69
|
+
export type { TemplateImportRequestDto } from './schemas/TemplateImportRequestDto';
|
|
70
|
+
export type { TemplateImportResponseBody } from './schemas/TemplateImportResponseBody';
|
|
71
|
+
export type { TemplateMetaDataList } from './schemas/TemplateMetaDataList';
|
|
72
|
+
export type { TemplateMetadataSummaryResponse } from './schemas/TemplateMetadataSummaryResponse';
|
|
73
|
+
export type { TemplateResponse } from './schemas/TemplateResponse';
|
|
74
|
+
export type { TemplateSchemaResponse } from './schemas/TemplateSchemaResponse';
|
|
75
|
+
export type { TemplateUpdateRequestBody } from './schemas/TemplateUpdateRequestBody';
|
|
76
|
+
export type { TemplateUpdateStableResponse } from './schemas/TemplateUpdateStableResponse';
|
|
77
|
+
export type { TemplateWithInputsResponse } from './schemas/TemplateWithInputsResponse';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { createTemplatesAcc, useCreateTemplatesAccMutation, } from './hooks/useCreateTemplatesAccMutation';
|
|
2
|
+
export { createTemplatesOrg, useCreateTemplatesOrgMutation, } from './hooks/useCreateTemplatesOrgMutation';
|
|
3
|
+
export { createTemplatesProject, useCreateTemplatesProjectMutation, } from './hooks/useCreateTemplatesProjectMutation';
|
|
4
|
+
export { deleteTemplateAcc, useDeleteTemplateAccMutation, } from './hooks/useDeleteTemplateAccMutation';
|
|
5
|
+
export { deleteTemplateOrg, useDeleteTemplateOrgMutation, } from './hooks/useDeleteTemplateOrgMutation';
|
|
6
|
+
export { deleteTemplateProject, useDeleteTemplateProjectMutation, } from './hooks/useDeleteTemplateProjectMutation';
|
|
7
|
+
export { getTemplateAcc, useGetTemplateAccQuery } from './hooks/useGetTemplateAccQuery';
|
|
8
|
+
export { getTemplateOrg, useGetTemplateOrgQuery } from './hooks/useGetTemplateOrgQuery';
|
|
9
|
+
export { getTemplateProject, useGetTemplateProjectQuery } from './hooks/useGetTemplateProjectQuery';
|
|
10
|
+
export { getTemplateSchema, useGetTemplateSchemaQuery } from './hooks/useGetTemplateSchemaQuery';
|
|
11
|
+
export { getTemplateStableAcc, useGetTemplateStableAccQuery, } from './hooks/useGetTemplateStableAccQuery';
|
|
12
|
+
export { getTemplateStableOrg, useGetTemplateStableOrgQuery, } from './hooks/useGetTemplateStableOrgQuery';
|
|
13
|
+
export { getTemplateStableProject, useGetTemplateStableProjectQuery, } from './hooks/useGetTemplateStableProjectQuery';
|
|
14
|
+
export { getTemplatesListAcc, useGetTemplatesListAccQuery, } from './hooks/useGetTemplatesListAccQuery';
|
|
15
|
+
export { getTemplatesListOrg, useGetTemplatesListOrgQuery, } from './hooks/useGetTemplatesListOrgQuery';
|
|
16
|
+
export { getTemplatesListProject, useGetTemplatesListProjectQuery, } from './hooks/useGetTemplatesListProjectQuery';
|
|
17
|
+
export { importTemplateAcc, useImportTemplateAccMutation, } from './hooks/useImportTemplateAccMutation';
|
|
18
|
+
export { importTemplateOrg, useImportTemplateOrgMutation, } from './hooks/useImportTemplateOrgMutation';
|
|
19
|
+
export { importTemplateProject, useImportTemplateProjectMutation, } from './hooks/useImportTemplateProjectMutation';
|
|
20
|
+
export { updateTemplateAcc, useUpdateTemplateAccMutation, } from './hooks/useUpdateTemplateAccMutation';
|
|
21
|
+
export { updateTemplateOrg, useUpdateTemplateOrgMutation, } from './hooks/useUpdateTemplateOrgMutation';
|
|
22
|
+
export { updateTemplateProject, useUpdateTemplateProjectMutation, } from './hooks/useUpdateTemplateProjectMutation';
|
|
23
|
+
export { updateTemplateStableAcc, useUpdateTemplateStableAccMutation, } from './hooks/useUpdateTemplateStableAccMutation';
|
|
24
|
+
export { updateTemplateStableOrg, useUpdateTemplateStableOrgMutation, } from './hooks/useUpdateTemplateStableOrgMutation';
|
|
25
|
+
export { updateTemplateStableProject, useUpdateTemplateStableProjectMutation, } from './hooks/useUpdateTemplateStableProjectMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/template-service/src/services/requestBodies/TemplateImportRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git Experience related details of the Entity.
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityGitDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the branch.
|
|
7
|
+
*/
|
|
8
|
+
branch_name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Latest commit identifier.
|
|
11
|
+
*/
|
|
12
|
+
commit_id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* File path of the Entity in the repository.
|
|
15
|
+
*/
|
|
16
|
+
file_path?: string;
|
|
17
|
+
/**
|
|
18
|
+
* File URL of the Entity.
|
|
19
|
+
*/
|
|
20
|
+
file_url?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Entity identifier
|
|
23
|
+
*/
|
|
24
|
+
object_id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Name of the repository.
|
|
27
|
+
*/
|
|
28
|
+
repo_name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Repository URL of the Entity.
|
|
31
|
+
*/
|
|
32
|
+
repo_url?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains parameters related to creating an Entity for Git Experience.
|
|
3
|
+
*/
|
|
4
|
+
export interface GitCreateDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the default branch (this checks out a new branch titled by branch_name).
|
|
7
|
+
*/
|
|
8
|
+
base_branch?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the branch.
|
|
11
|
+
*/
|
|
12
|
+
branch_name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Commit message used for the merge commit.
|
|
15
|
+
*/
|
|
16
|
+
commit_message?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Identifier of the Harness Connector used for CRUD operations on the Entity.
|
|
19
|
+
*/
|
|
20
|
+
connector_ref?: string;
|
|
21
|
+
/**
|
|
22
|
+
* File path of the Entity in the repository.
|
|
23
|
+
*/
|
|
24
|
+
file_path?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Name of the repository.
|
|
27
|
+
*/
|
|
28
|
+
repo_name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies whether the Entity is to be stored in Git or not.
|
|
31
|
+
*/
|
|
32
|
+
store_type?: 'INLINE' | 'REMOTE';
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains parameters related to Fetching an Entity for Git Experience.
|
|
3
|
+
*/
|
|
4
|
+
export interface GitFindDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the branch.
|
|
7
|
+
*/
|
|
8
|
+
branch_name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Specify comment with respect to changes
|
|
11
|
+
*/
|
|
12
|
+
comments?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Account name of parent template if its remote
|
|
15
|
+
*/
|
|
16
|
+
parent_entity_account_id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Connector ref of parent template if its remote
|
|
19
|
+
*/
|
|
20
|
+
parent_entity_connector_ref?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Organization name of parent template if its remote
|
|
23
|
+
*/
|
|
24
|
+
parent_entity_org_id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Project name of parent entity if its remote
|
|
27
|
+
*/
|
|
28
|
+
parent_entity_project_id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Repo name of parent template if its remote
|
|
31
|
+
*/
|
|
32
|
+
parent_entity_repo_name?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains parameters related to Updating an Entity for Git Experience.
|
|
3
|
+
*/
|
|
4
|
+
export interface GitUpdateDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the default branch (this checks out a new branch titled by branch_name).
|
|
7
|
+
*/
|
|
8
|
+
base_branch?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the branch.
|
|
11
|
+
*/
|
|
12
|
+
branch_name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Commit message used for the merge commit.
|
|
15
|
+
*/
|
|
16
|
+
commit_message?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Identifier of the Harness Connector used for CRUD operations on the Entity.
|
|
19
|
+
*/
|
|
20
|
+
connector_ref?: string;
|
|
21
|
+
/**
|
|
22
|
+
* File path of the Entity in the repository.
|
|
23
|
+
*/
|
|
24
|
+
file_path?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Last commit identifier (for Git Repositories other than Github).
|
|
27
|
+
*/
|
|
28
|
+
last_commit_id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Last object identifier (for Github).
|
|
31
|
+
*/
|
|
32
|
+
last_object_id?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the repository.
|
|
35
|
+
*/
|
|
36
|
+
repo_name?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies whether the Entity is to be stored in Git or not.
|
|
39
|
+
*/
|
|
40
|
+
store_type?: 'INLINE' | 'REMOTE';
|
|
41
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GitCreateDetails } from '../schemas/GitCreateDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Templates Create Request Body
|
|
4
|
+
*/
|
|
5
|
+
export interface TemplateCreateRequestBody {
|
|
6
|
+
/**
|
|
7
|
+
* Specify comment with respect to changes
|
|
8
|
+
*/
|
|
9
|
+
comments?: string;
|
|
10
|
+
git_details?: GitCreateDetails;
|
|
11
|
+
/**
|
|
12
|
+
* True if given version for template to be set as stable
|
|
13
|
+
*/
|
|
14
|
+
is_stable?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Yaml for creating new Template
|
|
17
|
+
*/
|
|
18
|
+
template_yaml?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GitImportDetails } from '../schemas/GitImportDetails';
|
|
2
|
+
import type { TemplateImportRequestDto } from '../schemas/TemplateImportRequestDto';
|
|
3
|
+
/**
|
|
4
|
+
* Template Import Request Body
|
|
5
|
+
*/
|
|
6
|
+
export interface TemplateImportRequestBody {
|
|
7
|
+
git_import_details?: GitImportDetails;
|
|
8
|
+
template_import_request?: TemplateImportRequestDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { EntityGitDetails } from '../schemas/EntityGitDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Single Template Metadata Model
|
|
4
|
+
*/
|
|
5
|
+
export interface TemplateMetadataSummaryResponse {
|
|
6
|
+
/**
|
|
7
|
+
* Account identifier
|
|
8
|
+
*/
|
|
9
|
+
account?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Defines child template type
|
|
12
|
+
*/
|
|
13
|
+
child_type?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Identifier of the Harness Connector used for CRUD operations on the Entity (for Git Experience).
|
|
16
|
+
*/
|
|
17
|
+
connector_ref?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Template description
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Type of Template
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
entity_type?: 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step';
|
|
27
|
+
git_details?: EntityGitDetails;
|
|
28
|
+
/**
|
|
29
|
+
* Template identifier
|
|
30
|
+
*/
|
|
31
|
+
identifier?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Template Name
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Organization identifier
|
|
38
|
+
*/
|
|
39
|
+
org?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Project identifier
|
|
42
|
+
*/
|
|
43
|
+
project?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Scope of template
|
|
46
|
+
*/
|
|
47
|
+
scope?: 'account' | 'org' | 'project' | 'unknown';
|
|
48
|
+
/**
|
|
49
|
+
* True if this version is stable version of Template
|
|
50
|
+
*/
|
|
51
|
+
stable_template?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies whether the Entity is to be stored in Git or not (for Git Experience).
|
|
54
|
+
*/
|
|
55
|
+
store_type?: 'INLINE' | 'REMOTE';
|
|
56
|
+
/**
|
|
57
|
+
* Template tags
|
|
58
|
+
*/
|
|
59
|
+
tags?: {
|
|
60
|
+
[key: string]: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Last modification timestamp for Service.
|
|
64
|
+
*
|
|
65
|
+
* @format int64
|
|
66
|
+
*/
|
|
67
|
+
updated?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Version of template
|
|
70
|
+
* @format int64
|
|
71
|
+
*/
|
|
72
|
+
version?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Version label of template
|
|
75
|
+
*/
|
|
76
|
+
version_label?: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|