@harnessio/react-template-service-client 0.11.0 → 1.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.
Files changed (84) hide show
  1. package/dist/template-service/src/services/hooks/useCreateTemplatesMutation.d.ts +42 -0
  2. package/dist/template-service/src/services/hooks/useCreateTemplatesMutation.js +30 -0
  3. package/dist/template-service/src/services/hooks/useDeleteTemplateMutation.d.ts +53 -0
  4. package/dist/template-service/src/services/hooks/useDeleteTemplateMutation.js +30 -0
  5. package/dist/template-service/src/services/hooks/useGetTemplateInputsMutation.d.ts +53 -0
  6. package/dist/template-service/src/services/hooks/useGetTemplateInputsMutation.js +30 -0
  7. package/dist/template-service/src/services/hooks/useGetTemplateQuery.d.ts +69 -0
  8. package/dist/template-service/src/services/hooks/useGetTemplateQuery.js +30 -0
  9. package/dist/template-service/src/services/hooks/useGetTemplateStableQuery.d.ts +67 -0
  10. package/dist/template-service/src/services/hooks/useGetTemplateStableQuery.js +30 -0
  11. package/dist/template-service/src/services/hooks/useGetTemplatesListQuery.d.ts +102 -0
  12. package/dist/template-service/src/services/hooks/useGetTemplatesListQuery.js +30 -0
  13. package/dist/template-service/src/services/hooks/useImportTemplateMutation.d.ts +42 -0
  14. package/dist/template-service/src/services/hooks/useImportTemplateMutation.js +30 -0
  15. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsRefMutation.d.ts +42 -0
  16. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsRefMutation.js +30 -0
  17. package/dist/template-service/src/services/hooks/useUpdateTemplateMutation.d.ts +48 -0
  18. package/dist/template-service/src/services/hooks/useUpdateTemplateMutation.js +30 -0
  19. package/dist/template-service/src/services/hooks/useUpdateTemplateStableMutation.d.ts +48 -0
  20. package/dist/template-service/src/services/hooks/useUpdateTemplateStableMutation.js +30 -0
  21. package/dist/template-service/src/services/index.d.ts +22 -54
  22. package/dist/template-service/src/services/index.js +10 -27
  23. package/dist/template-service/src/services/responses/TemplateInputsResponseBodyResponse.d.ts +2 -0
  24. package/dist/template-service/src/services/responses/TemplateInputsResponseBodyResponse.js +1 -0
  25. package/dist/template-service/src/services/schemas/TemplateCreateRequestBody.d.ts +4 -0
  26. package/dist/template-service/src/services/schemas/TemplateInputsResponseBody.d.ts +16 -0
  27. package/dist/template-service/src/services/schemas/TemplateInputsResponseBody.js +4 -0
  28. package/dist/template-service/src/services/schemas/TemplateMetadataSummaryResponse.d.ts +4 -0
  29. package/dist/template-service/src/services/schemas/TemplateResponse.d.ts +4 -0
  30. package/package.json +1 -1
  31. package/dist/template-service/src/services/hooks/useCreateTemplatesAccMutation.d.ts +0 -23
  32. package/dist/template-service/src/services/hooks/useCreateTemplatesAccMutation.js +0 -14
  33. package/dist/template-service/src/services/hooks/useCreateTemplatesOrgMutation.d.ts +0 -22
  34. package/dist/template-service/src/services/hooks/useCreateTemplatesOrgMutation.js +0 -14
  35. package/dist/template-service/src/services/hooks/useCreateTemplatesProjectMutation.d.ts +0 -23
  36. package/dist/template-service/src/services/hooks/useCreateTemplatesProjectMutation.js +0 -14
  37. package/dist/template-service/src/services/hooks/useDeleteTemplateAccMutation.d.ts +0 -25
  38. package/dist/template-service/src/services/hooks/useDeleteTemplateAccMutation.js +0 -14
  39. package/dist/template-service/src/services/hooks/useDeleteTemplateOrgMutation.d.ts +0 -25
  40. package/dist/template-service/src/services/hooks/useDeleteTemplateOrgMutation.js +0 -14
  41. package/dist/template-service/src/services/hooks/useDeleteTemplateProjectMutation.d.ts +0 -26
  42. package/dist/template-service/src/services/hooks/useDeleteTemplateProjectMutation.js +0 -14
  43. package/dist/template-service/src/services/hooks/useGetTemplateAccQuery.d.ts +0 -31
  44. package/dist/template-service/src/services/hooks/useGetTemplateAccQuery.js +0 -14
  45. package/dist/template-service/src/services/hooks/useGetTemplateOrgQuery.d.ts +0 -31
  46. package/dist/template-service/src/services/hooks/useGetTemplateOrgQuery.js +0 -14
  47. package/dist/template-service/src/services/hooks/useGetTemplateProjectQuery.d.ts +0 -32
  48. package/dist/template-service/src/services/hooks/useGetTemplateProjectQuery.js +0 -21
  49. package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.d.ts +0 -31
  50. package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.js +0 -14
  51. package/dist/template-service/src/services/hooks/useGetTemplateStableOrgQuery.d.ts +0 -30
  52. package/dist/template-service/src/services/hooks/useGetTemplateStableOrgQuery.js +0 -14
  53. package/dist/template-service/src/services/hooks/useGetTemplateStableProjectQuery.d.ts +0 -31
  54. package/dist/template-service/src/services/hooks/useGetTemplateStableProjectQuery.js +0 -14
  55. package/dist/template-service/src/services/hooks/useGetTemplatesListAccQuery.d.ts +0 -44
  56. package/dist/template-service/src/services/hooks/useGetTemplatesListAccQuery.js +0 -14
  57. package/dist/template-service/src/services/hooks/useGetTemplatesListOrgQuery.d.ts +0 -40
  58. package/dist/template-service/src/services/hooks/useGetTemplatesListOrgQuery.js +0 -14
  59. package/dist/template-service/src/services/hooks/useGetTemplatesListProjectQuery.d.ts +0 -41
  60. package/dist/template-service/src/services/hooks/useGetTemplatesListProjectQuery.js +0 -14
  61. package/dist/template-service/src/services/hooks/useImportTemplateAccMutation.d.ts +0 -22
  62. package/dist/template-service/src/services/hooks/useImportTemplateAccMutation.js +0 -14
  63. package/dist/template-service/src/services/hooks/useImportTemplateOrgMutation.d.ts +0 -23
  64. package/dist/template-service/src/services/hooks/useImportTemplateOrgMutation.js +0 -14
  65. package/dist/template-service/src/services/hooks/useImportTemplateProjectMutation.d.ts +0 -24
  66. package/dist/template-service/src/services/hooks/useImportTemplateProjectMutation.js +0 -14
  67. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsMutation.d.ts +0 -22
  68. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsMutation.js +0 -14
  69. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsOrgMutation.d.ts +0 -23
  70. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsOrgMutation.js +0 -14
  71. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.d.ts +0 -24
  72. package/dist/template-service/src/services/hooks/useUpdateGitMetadataDetailsProjectMutation.js +0 -14
  73. package/dist/template-service/src/services/hooks/useUpdateTemplateAccMutation.d.ts +0 -27
  74. package/dist/template-service/src/services/hooks/useUpdateTemplateAccMutation.js +0 -14
  75. package/dist/template-service/src/services/hooks/useUpdateTemplateOrgMutation.d.ts +0 -24
  76. package/dist/template-service/src/services/hooks/useUpdateTemplateOrgMutation.js +0 -14
  77. package/dist/template-service/src/services/hooks/useUpdateTemplateProjectMutation.d.ts +0 -25
  78. package/dist/template-service/src/services/hooks/useUpdateTemplateProjectMutation.js +0 -14
  79. package/dist/template-service/src/services/hooks/useUpdateTemplateStableAccMutation.d.ts +0 -27
  80. package/dist/template-service/src/services/hooks/useUpdateTemplateStableAccMutation.js +0 -14
  81. package/dist/template-service/src/services/hooks/useUpdateTemplateStableOrgMutation.d.ts +0 -24
  82. package/dist/template-service/src/services/hooks/useUpdateTemplateStableOrgMutation.js +0 -14
  83. package/dist/template-service/src/services/hooks/useUpdateTemplateStableProjectMutation.d.ts +0 -25
  84. package/dist/template-service/src/services/hooks/useUpdateTemplateStableProjectMutation.js +0 -14
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function createTemplatesProject(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Creates a Template in the Project scope.
11
- */
12
- export function useCreateTemplatesProjectMutation(options) {
13
- return useMutation((mutateProps) => createTemplatesProject(mutateProps), options);
14
- }
@@ -1,25 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ResponseWithPagination } from '../helpers';
3
- import { FetcherOptions } from '../../../../fetcher/index.js';
4
- export interface DeleteTemplateAccMutationPathParams {
5
- template: string;
6
- version: string;
7
- }
8
- export interface DeleteTemplateAccMutationQueryParams {
9
- comments?: string;
10
- forceDelete?: boolean;
11
- global_template?: boolean;
12
- }
13
- export interface DeleteTemplateAccMutationHeaderParams {
14
- 'Harness-Account'?: string;
15
- }
16
- export type DeleteTemplateAccOkResponse = ResponseWithPagination<unknown>;
17
- export type DeleteTemplateAccErrorResponse = {};
18
- export interface DeleteTemplateAccProps extends DeleteTemplateAccMutationPathParams, Omit<FetcherOptions<DeleteTemplateAccMutationQueryParams, unknown, DeleteTemplateAccMutationHeaderParams>, 'url'> {
19
- queryParams: DeleteTemplateAccMutationQueryParams;
20
- }
21
- export declare function deleteTemplateAcc(props: DeleteTemplateAccProps): Promise<DeleteTemplateAccOkResponse>;
22
- /**
23
- * Deletes particular version of Template at Account scope.
24
- */
25
- export declare function useDeleteTemplateAccMutation(options?: Omit<UseMutationOptions<DeleteTemplateAccOkResponse, DeleteTemplateAccErrorResponse, DeleteTemplateAccProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteTemplateAccOkResponse, DeleteTemplateAccErrorResponse, DeleteTemplateAccProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deleteTemplateAcc(props) {
7
- return fetcher(Object.assign({ url: `/v1/templates/${props.template}/versions/${props.version}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Deletes particular version of Template at Account scope.
11
- */
12
- export function useDeleteTemplateAccMutation(options) {
13
- return useMutation((mutateProps) => deleteTemplateAcc(mutateProps), options);
14
- }
@@ -1,25 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ResponseWithPagination } from '../helpers';
3
- import { FetcherOptions } from '../../../../fetcher/index.js';
4
- export interface DeleteTemplateOrgMutationPathParams {
5
- template: string;
6
- org: string;
7
- version: string;
8
- }
9
- export interface DeleteTemplateOrgMutationQueryParams {
10
- comments?: string;
11
- forceDelete?: boolean;
12
- }
13
- export interface DeleteTemplateOrgMutationHeaderParams {
14
- 'Harness-Account'?: string;
15
- }
16
- export type DeleteTemplateOrgOkResponse = ResponseWithPagination<unknown>;
17
- export type DeleteTemplateOrgErrorResponse = {};
18
- export interface DeleteTemplateOrgProps extends DeleteTemplateOrgMutationPathParams, Omit<FetcherOptions<DeleteTemplateOrgMutationQueryParams, unknown, DeleteTemplateOrgMutationHeaderParams>, 'url'> {
19
- queryParams: DeleteTemplateOrgMutationQueryParams;
20
- }
21
- export declare function deleteTemplateOrg(props: DeleteTemplateOrgProps): Promise<DeleteTemplateOrgOkResponse>;
22
- /**
23
- * Deletes particular version of Template at Organization scope.
24
- */
25
- export declare function useDeleteTemplateOrgMutation(options?: Omit<UseMutationOptions<DeleteTemplateOrgOkResponse, DeleteTemplateOrgErrorResponse, DeleteTemplateOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteTemplateOrgOkResponse, DeleteTemplateOrgErrorResponse, DeleteTemplateOrgProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deleteTemplateOrg(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/${props.template}/versions/${props.version}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Deletes particular version of Template at Organization scope.
11
- */
12
- export function useDeleteTemplateOrgMutation(options) {
13
- return useMutation((mutateProps) => deleteTemplateOrg(mutateProps), options);
14
- }
@@ -1,26 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ResponseWithPagination } from '../helpers';
3
- import { FetcherOptions } from '../../../../fetcher/index.js';
4
- export interface DeleteTemplateProjectMutationPathParams {
5
- project: string;
6
- template: string;
7
- org: string;
8
- version: string;
9
- }
10
- export interface DeleteTemplateProjectMutationQueryParams {
11
- comments?: string;
12
- forceDelete?: boolean;
13
- }
14
- export interface DeleteTemplateProjectMutationHeaderParams {
15
- 'Harness-Account'?: string;
16
- }
17
- export type DeleteTemplateProjectOkResponse = ResponseWithPagination<unknown>;
18
- export type DeleteTemplateProjectErrorResponse = {};
19
- export interface DeleteTemplateProjectProps extends DeleteTemplateProjectMutationPathParams, Omit<FetcherOptions<DeleteTemplateProjectMutationQueryParams, unknown, DeleteTemplateProjectMutationHeaderParams>, 'url'> {
20
- queryParams: DeleteTemplateProjectMutationQueryParams;
21
- }
22
- export declare function deleteTemplateProject(props: DeleteTemplateProjectProps): Promise<DeleteTemplateProjectOkResponse>;
23
- /**
24
- * Deletes particular version of Template at Project scope.
25
- */
26
- export declare function useDeleteTemplateProjectMutation(options?: Omit<UseMutationOptions<DeleteTemplateProjectOkResponse, DeleteTemplateProjectErrorResponse, DeleteTemplateProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteTemplateProjectOkResponse, DeleteTemplateProjectErrorResponse, DeleteTemplateProjectProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deleteTemplateProject(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}/versions/${props.version}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Deletes particular version of Template at Project scope.
11
- */
12
- export function useDeleteTemplateProjectMutation(options) {
13
- return useMutation((mutateProps) => deleteTemplateProject(mutateProps), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplateAccQueryPathParams {
6
- template: string;
7
- version: string;
8
- }
9
- export interface GetTemplateAccQueryQueryParams {
10
- include_yaml?: boolean;
11
- branch_name?: string;
12
- parent_entity_connector_ref?: string;
13
- parent_entity_repo_name?: string;
14
- parent_entity_account_id?: string;
15
- parent_entity_org_id?: string;
16
- parent_entity_project_id?: string;
17
- global_template?: boolean;
18
- }
19
- export interface GetTemplateAccQueryHeaderParams {
20
- 'Harness-Account'?: string;
21
- }
22
- export type GetTemplateAccOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
23
- export type GetTemplateAccErrorResponse = unknown;
24
- export interface GetTemplateAccProps extends GetTemplateAccQueryPathParams, Omit<FetcherOptions<GetTemplateAccQueryQueryParams, unknown, GetTemplateAccQueryHeaderParams>, 'url'> {
25
- queryParams: GetTemplateAccQueryQueryParams;
26
- }
27
- export declare function getTemplateAcc(props: GetTemplateAccProps): Promise<GetTemplateAccOkResponse>;
28
- /**
29
- * Retrieves particular version of Template at Account scope.
30
- */
31
- export declare function useGetTemplateAccQuery(props: GetTemplateAccProps, options?: Omit<UseQueryOptions<GetTemplateAccOkResponse, GetTemplateAccErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateAccOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplateAcc(props) {
7
- return fetcher(Object.assign({ url: `/v1/templates/${props.template}/versions/${props.version}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves particular version of Template at Account scope.
11
- */
12
- export function useGetTemplateAccQuery(props, options) {
13
- return useQuery(['get-template-acc', props.template, props.version, props.queryParams], ({ signal }) => getTemplateAcc(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplateOrgQueryPathParams {
6
- template: string;
7
- org: string;
8
- version: string;
9
- }
10
- export interface GetTemplateOrgQueryQueryParams {
11
- include_yaml?: boolean;
12
- branch_name?: string;
13
- parent_entity_connector_ref?: string;
14
- parent_entity_repo_name?: string;
15
- parent_entity_account_id?: string;
16
- parent_entity_org_id?: string;
17
- parent_entity_project_id?: string;
18
- }
19
- export interface GetTemplateOrgQueryHeaderParams {
20
- 'Harness-Account'?: string;
21
- }
22
- export type GetTemplateOrgOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
23
- export type GetTemplateOrgErrorResponse = unknown;
24
- export interface GetTemplateOrgProps extends GetTemplateOrgQueryPathParams, Omit<FetcherOptions<GetTemplateOrgQueryQueryParams, unknown, GetTemplateOrgQueryHeaderParams>, 'url'> {
25
- queryParams: GetTemplateOrgQueryQueryParams;
26
- }
27
- export declare function getTemplateOrg(props: GetTemplateOrgProps): Promise<GetTemplateOrgOkResponse>;
28
- /**
29
- * Retrieves particular version of Template at Organization scope.
30
- */
31
- export declare function useGetTemplateOrgQuery(props: GetTemplateOrgProps, options?: Omit<UseQueryOptions<GetTemplateOrgOkResponse, GetTemplateOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateOrgOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplateOrg(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/${props.template}/versions/${props.version}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves particular version of Template at Organization scope.
11
- */
12
- export function useGetTemplateOrgQuery(props, options) {
13
- return useQuery(['get-template-org', props.template, props.org, props.version, props.queryParams], ({ signal }) => getTemplateOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,32 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplateProjectQueryPathParams {
6
- project: string;
7
- template: string;
8
- org: string;
9
- version: string;
10
- }
11
- export interface GetTemplateProjectQueryQueryParams {
12
- include_yaml?: boolean;
13
- branch_name?: string;
14
- parent_entity_connector_ref?: string;
15
- parent_entity_repo_name?: string;
16
- parent_entity_account_id?: string;
17
- parent_entity_org_id?: string;
18
- parent_entity_project_id?: string;
19
- }
20
- export interface GetTemplateProjectQueryHeaderParams {
21
- 'Harness-Account'?: string;
22
- }
23
- export type GetTemplateProjectOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
24
- export type GetTemplateProjectErrorResponse = unknown;
25
- export interface GetTemplateProjectProps extends GetTemplateProjectQueryPathParams, Omit<FetcherOptions<GetTemplateProjectQueryQueryParams, unknown, GetTemplateProjectQueryHeaderParams>, 'url'> {
26
- queryParams: GetTemplateProjectQueryQueryParams;
27
- }
28
- export declare function getTemplateProject(props: GetTemplateProjectProps): Promise<GetTemplateProjectOkResponse>;
29
- /**
30
- * Retrieves particular version of Template at Project scope.
31
- */
32
- export declare function useGetTemplateProjectQuery(props: GetTemplateProjectProps, options?: Omit<UseQueryOptions<GetTemplateProjectOkResponse, GetTemplateProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateProjectOkResponse, unknown>;
@@ -1,21 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplateProject(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}/versions/${props.version}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves particular version of Template at Project scope.
11
- */
12
- export function useGetTemplateProjectQuery(props, options) {
13
- return useQuery([
14
- 'get-template-project',
15
- props.project,
16
- props.template,
17
- props.org,
18
- props.version,
19
- props.queryParams,
20
- ], ({ signal }) => getTemplateProject(Object.assign(Object.assign({}, props), { signal })), options);
21
- }
@@ -1,31 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplateStableAccQueryPathParams {
6
- template: string;
7
- }
8
- export interface GetTemplateStableAccQueryQueryParams {
9
- version?: string;
10
- include_yaml?: boolean;
11
- branch_name?: string;
12
- parent_entity_connector_ref?: string;
13
- parent_entity_repo_name?: string;
14
- parent_entity_account_id?: string;
15
- parent_entity_org_id?: string;
16
- parent_entity_project_id?: string;
17
- global_template?: boolean;
18
- }
19
- export interface GetTemplateStableAccQueryHeaderParams {
20
- 'Harness-Account'?: string;
21
- }
22
- export type GetTemplateStableAccOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
23
- export type GetTemplateStableAccErrorResponse = unknown;
24
- export interface GetTemplateStableAccProps extends GetTemplateStableAccQueryPathParams, Omit<FetcherOptions<GetTemplateStableAccQueryQueryParams, unknown, GetTemplateStableAccQueryHeaderParams>, 'url'> {
25
- queryParams: GetTemplateStableAccQueryQueryParams;
26
- }
27
- export declare function getTemplateStableAcc(props: GetTemplateStableAccProps): Promise<GetTemplateStableAccOkResponse>;
28
- /**
29
- * Retrieves a version of Template at Account scope. If version is not provided then it will retrieve a stable template.
30
- */
31
- export declare function useGetTemplateStableAccQuery(props: GetTemplateStableAccProps, options?: Omit<UseQueryOptions<GetTemplateStableAccOkResponse, GetTemplateStableAccErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateStableAccOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplateStableAcc(props) {
7
- return fetcher(Object.assign({ url: `/v1/templates/${props.template}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves a version of Template at Account scope. If version is not provided then it will retrieve a stable template.
11
- */
12
- export function useGetTemplateStableAccQuery(props, options) {
13
- return useQuery(['get-template-stable-acc', props.template, props.queryParams], ({ signal }) => getTemplateStableAcc(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,30 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplateStableOrgQueryPathParams {
6
- org: string;
7
- template: string;
8
- }
9
- export interface GetTemplateStableOrgQueryQueryParams {
10
- include_yaml?: boolean;
11
- branch_name?: string;
12
- parent_entity_connector_ref?: string;
13
- parent_entity_repo_name?: string;
14
- parent_entity_account_id?: string;
15
- parent_entity_org_id?: string;
16
- parent_entity_project_id?: string;
17
- }
18
- export interface GetTemplateStableOrgQueryHeaderParams {
19
- 'Harness-Account'?: string;
20
- }
21
- export type GetTemplateStableOrgOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
22
- export type GetTemplateStableOrgErrorResponse = unknown;
23
- export interface GetTemplateStableOrgProps extends GetTemplateStableOrgQueryPathParams, Omit<FetcherOptions<GetTemplateStableOrgQueryQueryParams, unknown, GetTemplateStableOrgQueryHeaderParams>, 'url'> {
24
- queryParams: GetTemplateStableOrgQueryQueryParams;
25
- }
26
- export declare function getTemplateStableOrg(props: GetTemplateStableOrgProps): Promise<GetTemplateStableOrgOkResponse>;
27
- /**
28
- * Retrieves stable version of Template at Organization scope.
29
- */
30
- export declare function useGetTemplateStableOrgQuery(props: GetTemplateStableOrgProps, options?: Omit<UseQueryOptions<GetTemplateStableOrgOkResponse, GetTemplateStableOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateStableOrgOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplateStableOrg(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates/${props.template}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves stable version of Template at Organization scope.
11
- */
12
- export function useGetTemplateStableOrgQuery(props, options) {
13
- return useQuery(['get-template-stable-org', props.org, props.template, props.queryParams], ({ signal }) => getTemplateStableOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateWithInputsResponseResponse } from '../responses/TemplateWithInputsResponseResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplateStableProjectQueryPathParams {
6
- org: string;
7
- project: string;
8
- template: string;
9
- }
10
- export interface GetTemplateStableProjectQueryQueryParams {
11
- include_yaml?: boolean;
12
- branch_name?: string;
13
- parent_entity_connector_ref?: string;
14
- parent_entity_repo_name?: string;
15
- parent_entity_account_id?: string;
16
- parent_entity_org_id?: string;
17
- parent_entity_project_id?: string;
18
- }
19
- export interface GetTemplateStableProjectQueryHeaderParams {
20
- 'Harness-Account'?: string;
21
- }
22
- export type GetTemplateStableProjectOkResponse = ResponseWithPagination<TemplateWithInputsResponseResponse>;
23
- export type GetTemplateStableProjectErrorResponse = unknown;
24
- export interface GetTemplateStableProjectProps extends GetTemplateStableProjectQueryPathParams, Omit<FetcherOptions<GetTemplateStableProjectQueryQueryParams, unknown, GetTemplateStableProjectQueryHeaderParams>, 'url'> {
25
- queryParams: GetTemplateStableProjectQueryQueryParams;
26
- }
27
- export declare function getTemplateStableProject(props: GetTemplateStableProjectProps): Promise<GetTemplateStableProjectOkResponse>;
28
- /**
29
- * Retrieves stable version of Template at Project scope.
30
- */
31
- export declare function useGetTemplateStableProjectQuery(props: GetTemplateStableProjectProps, options?: Omit<UseQueryOptions<GetTemplateStableProjectOkResponse, GetTemplateStableProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplateStableProjectOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplateStableProject(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates/${props.template}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves stable version of Template at Project scope.
11
- */
12
- export function useGetTemplateStableProjectQuery(props, options) {
13
- return useQuery(['get-template-stable-project', props.org, props.project, props.template, props.queryParams], ({ signal }) => getTemplateStableProject(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,44 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateMetaDataListResponse } from '../responses/TemplateMetaDataListResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplatesListAccQueryQueryParams {
6
- /**
7
- * @default 0
8
- */
9
- page?: number;
10
- /**
11
- * @default 30
12
- */
13
- limit?: number;
14
- sort?: 'identifier' | 'name' | 'updated';
15
- order?: 'ASC' | 'DESC';
16
- search_term?: string;
17
- type?: 'ALL' | 'LAST_UPDATES_TEMPLATE' | 'STABLE_TEMPLATE';
18
- recursive?: boolean;
19
- names?: string[];
20
- identifiers?: string[];
21
- description?: string;
22
- entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
23
- child_types?: string[];
24
- global_template?: boolean;
25
- /**
26
- * JSON-encoded TemplateMetadataFilterExpression object for filtering templates by metadata.
27
- * Supports nested AND/OR operations on filterMetadata properties.
28
- *
29
- */
30
- metadata_filter?: string;
31
- }
32
- export interface GetTemplatesListAccQueryHeaderParams {
33
- 'Harness-Account'?: string;
34
- }
35
- export type GetTemplatesListAccOkResponse = ResponseWithPagination<TemplateMetaDataListResponse>;
36
- export type GetTemplatesListAccErrorResponse = unknown;
37
- export interface GetTemplatesListAccProps extends Omit<FetcherOptions<GetTemplatesListAccQueryQueryParams, unknown, GetTemplatesListAccQueryHeaderParams>, 'url'> {
38
- queryParams: GetTemplatesListAccQueryQueryParams;
39
- }
40
- export declare function getTemplatesListAcc(props: GetTemplatesListAccProps): Promise<GetTemplatesListAccOkResponse>;
41
- /**
42
- * Retrieves list of Template with meta-data at Account scope.
43
- */
44
- export declare function useGetTemplatesListAccQuery(props: GetTemplatesListAccProps, options?: Omit<UseQueryOptions<GetTemplatesListAccOkResponse, GetTemplatesListAccErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplatesListAccOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplatesListAcc(props) {
7
- return fetcher(Object.assign({ url: `/v1/templates`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves list of Template with meta-data at Account scope.
11
- */
12
- export function useGetTemplatesListAccQuery(props, options) {
13
- return useQuery(['get-templates-list-acc', props.queryParams], ({ signal }) => getTemplatesListAcc(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,40 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateMetaDataListResponse } from '../responses/TemplateMetaDataListResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplatesListOrgQueryPathParams {
6
- org: string;
7
- }
8
- export interface GetTemplatesListOrgQueryQueryParams {
9
- /**
10
- * @default 0
11
- */
12
- page?: number;
13
- /**
14
- * @default 30
15
- */
16
- limit?: number;
17
- sort?: 'identifier' | 'name' | 'updated';
18
- order?: 'ASC' | 'DESC';
19
- search_term?: string;
20
- type?: 'ALL' | 'LAST_UPDATES_TEMPLATE' | 'STABLE_TEMPLATE';
21
- recursive?: boolean;
22
- names?: string[];
23
- identifiers?: string[];
24
- description?: string;
25
- entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
26
- child_types?: string[];
27
- }
28
- export interface GetTemplatesListOrgQueryHeaderParams {
29
- 'Harness-Account'?: string;
30
- }
31
- export type GetTemplatesListOrgOkResponse = ResponseWithPagination<TemplateMetaDataListResponse>;
32
- export type GetTemplatesListOrgErrorResponse = unknown;
33
- export interface GetTemplatesListOrgProps extends GetTemplatesListOrgQueryPathParams, Omit<FetcherOptions<GetTemplatesListOrgQueryQueryParams, unknown, GetTemplatesListOrgQueryHeaderParams>, 'url'> {
34
- queryParams: GetTemplatesListOrgQueryQueryParams;
35
- }
36
- export declare function getTemplatesListOrg(props: GetTemplatesListOrgProps): Promise<GetTemplatesListOrgOkResponse>;
37
- /**
38
- * Retrieves list of Template with meta-data at Organization scope.
39
- */
40
- export declare function useGetTemplatesListOrgQuery(props: GetTemplatesListOrgProps, options?: Omit<UseQueryOptions<GetTemplatesListOrgOkResponse, GetTemplatesListOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplatesListOrgOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplatesListOrg(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/templates`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves list of Template with meta-data at Organization scope.
11
- */
12
- export function useGetTemplatesListOrgQuery(props, options) {
13
- return useQuery(['get-templates-list-org', props.org, props.queryParams], ({ signal }) => getTemplatesListOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,41 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateMetaDataListResponse } from '../responses/TemplateMetaDataListResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetTemplatesListProjectQueryPathParams {
6
- org: string;
7
- project: string;
8
- }
9
- export interface GetTemplatesListProjectQueryQueryParams {
10
- /**
11
- * @default 0
12
- */
13
- page?: number;
14
- /**
15
- * @default 30
16
- */
17
- limit?: number;
18
- sort?: 'identifier' | 'name' | 'updated';
19
- order?: 'ASC' | 'DESC';
20
- search_term?: string;
21
- type?: 'ALL' | 'LAST_UPDATES_TEMPLATE' | 'STABLE_TEMPLATE';
22
- recursive?: boolean;
23
- names?: string[];
24
- identifiers?: string[];
25
- description?: string;
26
- entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
27
- child_types?: string[];
28
- }
29
- export interface GetTemplatesListProjectQueryHeaderParams {
30
- 'Harness-Account'?: string;
31
- }
32
- export type GetTemplatesListProjectOkResponse = ResponseWithPagination<TemplateMetaDataListResponse>;
33
- export type GetTemplatesListProjectErrorResponse = unknown;
34
- export interface GetTemplatesListProjectProps extends GetTemplatesListProjectQueryPathParams, Omit<FetcherOptions<GetTemplatesListProjectQueryQueryParams, unknown, GetTemplatesListProjectQueryHeaderParams>, 'url'> {
35
- queryParams: GetTemplatesListProjectQueryQueryParams;
36
- }
37
- export declare function getTemplatesListProject(props: GetTemplatesListProjectProps): Promise<GetTemplatesListProjectOkResponse>;
38
- /**
39
- * Retrieves list of Template with meta-data at Project scope.
40
- */
41
- export declare function useGetTemplatesListProjectQuery(props: GetTemplatesListProjectProps, options?: Omit<UseQueryOptions<GetTemplatesListProjectOkResponse, GetTemplatesListProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTemplatesListProjectOkResponse, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getTemplatesListProject(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/templates`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Retrieves list of Template with meta-data at Project scope.
11
- */
12
- export function useGetTemplatesListProjectQuery(props, options) {
13
- return useQuery(['get-templates-list-project', props.org, props.project, props.queryParams], ({ signal }) => getTemplatesListProject(Object.assign(Object.assign({}, props), { signal })), options);
14
- }