@harnessio/react-har-service-client 0.97.0 → 0.99.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/har-service/src/services/hooks/useDeletePackageV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeletePackageV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.js +16 -0
- package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.js +16 -0
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.js +15 -0
- package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +1 -3
- package/dist/har-service/src/services/hooks/useGetFileV3Query.js +1 -2
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.d.ts +3 -4
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.js +1 -1
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.d.ts +3 -2
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.js +3 -2
- package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.d.ts +2 -2
- package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.js +2 -2
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +3 -0
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +4 -7
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.js +4 -7
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.d.ts +48 -0
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.js +28 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.js +19 -0
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.d.ts +49 -0
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.js +27 -0
- package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.js +17 -0
- package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.js +17 -0
- package/dist/har-service/src/services/index.d.ts +47 -5
- package/dist/har-service/src/services/index.js +8 -1
- package/dist/har-service/src/services/requestBodies/AutoMetadataRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/responses/FileDetailsResponseV3Response.d.ts +4 -0
- package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.d.ts +38 -0
- package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.js +1 -0
- package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/BulkDeleteRequestInputV3.d.ts +4 -2
- package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.d.ts +12 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/EdgeLocationV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/EdgeLocationV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgePrincipalV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/EdgePrincipalV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.d.ts +28 -0
- package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/FileDetailsV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/FileDetailsV3.js +1 -0
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +4 -12
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.js +0 -3
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +2 -6
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.js +4 -0
- package/dist/har-service/src/services/schemas/PackageV3.d.ts +0 -4
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +0 -9
- package/dist/har-service/src/services/schemas/RevertFailureDetailV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RevertFailureDetailV3.js +4 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.d.ts +34 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.js +1 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchAncestorV3.d.ts +21 -0
- package/dist/har-service/src/services/schemas/SearchAncestorV3.js +4 -0
- package/dist/har-service/src/services/schemas/SearchFileItemV3.d.ts +46 -0
- package/dist/har-service/src/services/schemas/SearchFileItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchFilesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchFilesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchPackageItemV3.d.ts +48 -0
- package/dist/har-service/src/services/schemas/SearchPackageItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.js +4 -0
- package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchVersionItemV3.d.ts +70 -0
- package/dist/har-service/src/services/schemas/SearchVersionItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyTypeV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/SigningKeyTypeV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +2 -6
- package/dist/har-service/src/services/schemas/TreeEntityKindV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/TreeEntityKindV3.js +4 -0
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +42 -22
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +0 -3
- package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +9 -13
- package/dist/har-service/src/services/schemas/TreePathStepV3.d.ts +29 -0
- package/dist/har-service/src/services/schemas/TreePathStepV3.js +1 -0
- package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +1 -1
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.d.ts +0 -24
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.js +0 -15
- package/dist/har-service/src/services/responses/FilePreviewResponseV3Response.d.ts +0 -2
- package/dist/har-service/src/services/schemas/FilePreviewDataV3.d.ts +0 -30
- package/dist/har-service/src/services/schemas/FilePreviewResponseBodyV3.d.ts +0 -7
- /package/dist/har-service/src/services/{responses/FilePreviewResponseV3Response.js → requestBodies/AutoMetadataRequestV3RequestBody.js} +0 -0
- /package/dist/har-service/src/services/{schemas/FilePreviewResponseBodyV3.js → responses/FileDetailsResponseV3Response.js} +0 -0
- /package/dist/har-service/src/services/schemas/{FilePreviewDataV3.js → EdgeAuthorizeRequestV3.js} +0 -0
|
@@ -3,31 +3,27 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface TreePaginationV3 {
|
|
5
5
|
/**
|
|
6
|
-
* Whether
|
|
6
|
+
* Whether another page exists.
|
|
7
7
|
*/
|
|
8
8
|
hasMore: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Opaque cursor for the next page, to send as `cursor`. Present only when `hasMore` is true.
|
|
11
11
|
*/
|
|
12
12
|
nextCursor?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The page size applied to this request.
|
|
15
15
|
* @format int32
|
|
16
16
|
*/
|
|
17
17
|
size: number;
|
|
18
18
|
/**
|
|
19
|
-
* Total number of
|
|
20
|
-
* pagination.
|
|
19
|
+
* Total number of children matching the request, independent of pagination.
|
|
21
20
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* exact - use `hasMore` to drive "Load More" rather than comparing against `total`.
|
|
21
|
+
* * Root (`ListTreeRootsV3`): exact, and returned **on the first page only** - it is
|
|
22
|
+
* absent when a `cursor` is sent, so keep the first page's value.
|
|
23
|
+
* * Below the root: returned on every page, exact up to 1000. Any value above 1000
|
|
24
|
+
* means "more than 1000" and should be rendered as "1000+".
|
|
27
25
|
*
|
|
28
|
-
*
|
|
29
|
-
* does not change while paging through a fixed filter set, so it is computed once on
|
|
30
|
-
* the first page and the client is expected to hold it across Load More.
|
|
26
|
+
* Drive "Load More" from `hasMore`, not from `total`.
|
|
31
27
|
*
|
|
32
28
|
* @format int64
|
|
33
29
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
|
|
2
|
+
/**
|
|
3
|
+
* One node along a resolved path. `id` matches the row's `id` in the tree listings, so the
|
|
4
|
+
* client can find and expand it. Steps are never collapsed: with `compact=true` a listed row
|
|
5
|
+
* stands for every step from its first folder to its last, and its `id` is the last one's.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export interface TreePathStepV3 {
|
|
9
|
+
/**
|
|
10
|
+
* UUID of the registry, package or version this node is, as for `TreeNodeItemV3`. Use it
|
|
11
|
+
* for the details APIs; a file's details take its `id`.
|
|
12
|
+
*
|
|
13
|
+
* @format uuid
|
|
14
|
+
*/
|
|
15
|
+
entityId?: string;
|
|
16
|
+
entityKind?: TreeEntityKindV3;
|
|
17
|
+
/**
|
|
18
|
+
* The node's tree id: a registry UUID, a node UUID, or an opaque Docker/Helm id that is
|
|
19
|
+
* only meaningful to the tree endpoints.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
treePath: string;
|
|
25
|
+
/**
|
|
26
|
+
* The node's type, as `TreeNodeItemV3.type` reports it.
|
|
27
|
+
*/
|
|
28
|
+
type: 'file' | 'folder' | 'package' | 'registry' | 'version';
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TreeResponseBodyV3 } from '../schemas/TreeResponseBodyV3';
|
|
2
|
+
import type { TreePathStepV3 } from '../schemas/TreePathStepV3';
|
|
3
|
+
/**
|
|
4
|
+
* Response body for `ResolveTreePathV3`
|
|
5
|
+
*/
|
|
6
|
+
export interface TreeResolveResponseBodyV3 {
|
|
7
|
+
children: TreeResponseBodyV3;
|
|
8
|
+
/**
|
|
9
|
+
* Every node along the path, registry first, as the tree listings return them. The last
|
|
10
|
+
* step is the requested node; the others are its ancestors.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
steps: TreePathStepV3[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import type { TreePaginationV3 } from '../schemas/TreePaginationV3';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface TreeResponseBodyV3 {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Immediate children of the requested level, in display order.
|
|
9
9
|
*/
|
|
10
10
|
items: TreeNodeItemV3[];
|
|
11
11
|
pagination: TreePaginationV3;
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { FilePreviewResponseV3Response } from '../responses/FilePreviewResponseV3Response';
|
|
3
|
-
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetFilePreviewV3QueryPathParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetFilePreviewV3QueryQueryParams {
|
|
10
|
-
account_identifier: string;
|
|
11
|
-
org_identifier?: string;
|
|
12
|
-
project_identifier?: string;
|
|
13
|
-
}
|
|
14
|
-
export type GetFilePreviewV3OkResponse = ResponseWithPagination<FilePreviewResponseV3Response>;
|
|
15
|
-
export type GetFilePreviewV3ErrorResponse = ErrorV3;
|
|
16
|
-
export interface GetFilePreviewV3Props extends GetFilePreviewV3QueryPathParams, Omit<FetcherOptions<GetFilePreviewV3QueryQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: GetFilePreviewV3QueryQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export declare function getFilePreviewV3(props: GetFilePreviewV3Props): Promise<GetFilePreviewV3OkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Returns a URL for rendering a file inline in the browser. For cloud (S3/GCS) deployments the URL is a presigned URL with inline Content-Disposition and a forced Content-Type baked in, expiring after 20 minutes. For filesystem deployments the URL routes back through the protocol API with preview=true and relies on the caller's session. The endpoint enforces the preview allowlist and a configured maximum size before returning a URL.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export declare function useGetFilePreviewV3Query(props: GetFilePreviewV3Props, options?: Omit<UseQueryOptions<GetFilePreviewV3OkResponse, GetFilePreviewV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFilePreviewV3OkResponse, ErrorV3>;
|
|
@@ -1,15 +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 getFilePreviewV3(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v3/files/${props.id}/preview`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Returns a URL for rendering a file inline in the browser. For cloud (S3/GCS) deployments the URL is a presigned URL with inline Content-Disposition and a forced Content-Type baked in, expiring after 20 minutes. For filesystem deployments the URL routes back through the protocol API with preview=true and relies on the caller's session. The endpoint enforces the preview allowlist and a configured maximum size before returning a URL.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export function useGetFilePreviewV3Query(props, options) {
|
|
14
|
-
return useQuery(['GetFilePreviewV3', props.id, props.queryParams], ({ signal }) => getFilePreviewV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inline preview details for a file.
|
|
3
|
-
*/
|
|
4
|
-
export interface FilePreviewDataV3 {
|
|
5
|
-
/**
|
|
6
|
-
* Content-Type the file will be served with for preview. HTML and SVG are forced to text/plain to mitigate stored XSS.
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
contentType: string;
|
|
10
|
-
/**
|
|
11
|
-
* When the preview URL expires (Unix ms). Set for cloud presigned URLs (now + 20m); null for filesystem deployments whose URL does not expire.
|
|
12
|
-
*
|
|
13
|
-
* @format int64
|
|
14
|
-
*/
|
|
15
|
-
expiresAt?: number | null;
|
|
16
|
-
/**
|
|
17
|
-
* File name (leaf of the node path).
|
|
18
|
-
*/
|
|
19
|
-
fileName: string;
|
|
20
|
-
/**
|
|
21
|
-
* URL the browser can open to render the file inline. A presigned URL for cloud deployments, or a protocol-API URL with preview=true for filesystem deployments.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
previewUrl: string;
|
|
25
|
-
/**
|
|
26
|
-
* File size in bytes.
|
|
27
|
-
* @format int64
|
|
28
|
-
*/
|
|
29
|
-
size: number;
|
|
30
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{FilePreviewDataV3.js → EdgeAuthorizeRequestV3.js}
RENAMED
|
File without changes
|