@harnessio/react-template-service-client 0.9.0 → 0.11.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.
@@ -3,7 +3,7 @@ import type { TemplateSchemaResponseResponse } from '../responses/TemplateSchema
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetTemplateSchemaQueryQueryParams {
6
- node_group?: 'artifactsource' | 'artifactsourcetemplate' | 'customdeployment' | 'group' | 'monitoredservice' | 'notification' | 'pipeline' | 'secretmanager' | 'stage' | 'step' | 'stepgroup' | 'template' | 'workspace';
6
+ node_group?: 'agent' | 'artifactsource' | 'artifactsourcetemplate' | 'customdeployment' | 'group' | 'monitoredservice' | 'notification' | 'pipeline' | 'secretmanager' | 'stage' | 'step' | 'stepgroup' | 'template' | 'workspace';
7
7
  node_type?: string;
8
8
  /**
9
9
  * @default "v0"
@@ -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 stable version of Template at Account scope.
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 stable version of Template at Account scope.
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);
@@ -19,7 +19,7 @@ export interface GetTemplatesListAccQueryQueryParams {
19
19
  names?: string[];
20
20
  identifiers?: string[];
21
21
  description?: string;
22
- entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
22
+ entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
23
23
  child_types?: string[];
24
24
  global_template?: boolean;
25
25
  /**
@@ -22,7 +22,7 @@ export interface GetTemplatesListOrgQueryQueryParams {
22
22
  names?: string[];
23
23
  identifiers?: string[];
24
24
  description?: string;
25
- entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
25
+ entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
26
26
  child_types?: string[];
27
27
  }
28
28
  export interface GetTemplatesListOrgQueryHeaderParams {
@@ -23,7 +23,7 @@ export interface GetTemplatesListProjectQueryQueryParams {
23
23
  names?: string[];
24
24
  identifiers?: string[];
25
25
  description?: string;
26
- entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
26
+ entity_types?: Array<'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
27
27
  child_types?: string[];
28
28
  }
29
29
  export interface GetTemplatesListProjectQueryHeaderParams {
@@ -23,7 +23,7 @@ export interface TemplateMetadataSummaryResponse {
23
23
  * Type of Template
24
24
  *
25
25
  */
26
- entity_type?: 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup';
26
+ entity_type?: 'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup';
27
27
  git_details?: EntityGitDetails;
28
28
  /**
29
29
  * Name of an icon of corresponding template
@@ -24,7 +24,7 @@ export interface TemplateResponse {
24
24
  * Type of Template
25
25
  *
26
26
  */
27
- entity_type?: 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup';
27
+ entity_type?: 'Agent' | 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup';
28
28
  git_details?: EntityGitDetails;
29
29
  governance_metadata?: TemplateGovernanceMetadata;
30
30
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-template-service-client",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Harness React template service client - Template APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",