@harnessio/react-template-service-client 0.9.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.
|
@@ -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);
|
package/package.json
CHANGED