@htkimura/files-storage-backend.rest-client 0.0.30 → 0.0.31

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.
@@ -17,6 +17,8 @@ export * from './folder';
17
17
  export * from './getBulkFilesByIdsParams';
18
18
  export * from './getPresignedUploadUrlParams';
19
19
  export * from './getUserFilesOutput';
20
+ export * from './listChildrenData';
21
+ export * from './listChildrenOutput';
20
22
  export * from './listChildrenParams';
21
23
  export * from './loginDto';
22
24
  export * from './moveFileToFolderDto';
@@ -17,6 +17,8 @@ export * from './folder';
17
17
  export * from './getBulkFilesByIdsParams';
18
18
  export * from './getPresignedUploadUrlParams';
19
19
  export * from './getUserFilesOutput';
20
+ export * from './listChildrenData';
21
+ export * from './listChildrenOutput';
20
22
  export * from './listChildrenParams';
21
23
  export * from './loginDto';
22
24
  export * from './moveFileToFolderDto';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v7.4.1 🍺
3
+ * Do not edit manually.
4
+ * files-storage
5
+ * This API is for storing files for different users
6
+ * OpenAPI spec version: 1.0
7
+ */
8
+ import type { Folder } from './folder';
9
+ import type { FileWithPresignedThumbnailUrl } from './fileWithPresignedThumbnailUrl';
10
+ export interface ListChildrenData {
11
+ folders: Folder[];
12
+ files: FileWithPresignedThumbnailUrl[];
13
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval v7.4.1 🍺
3
+ * Do not edit manually.
4
+ * files-storage
5
+ * This API is for storing files for different users
6
+ * OpenAPI spec version: 1.0
7
+ */
8
+ import type { ListChildrenData } from './listChildrenData';
9
+ export interface ListChildrenOutput {
10
+ page: number;
11
+ size: number;
12
+ total: number;
13
+ hasMore: boolean;
14
+ data: ListChildrenData;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type { QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
3
- import type { DeleteBulkFilesByIdsParams, DeleteBulkFilesOutput, File, FileWithPresignedUrl, GetBulkFilesByIdsParams, GetPresignedUploadUrlParams, ListChildrenParams, MoveFileToFolderDto, UploadFileOutput } from '.././model';
3
+ import type { DeleteBulkFilesByIdsParams, DeleteBulkFilesOutput, File, FileWithPresignedUrl, GetBulkFilesByIdsParams, GetPresignedUploadUrlParams, ListChildrenOutput, ListChildrenParams, MoveFileToFolderDto, UploadFileOutput } from '.././model';
4
4
  /**
5
5
  * Returns presigned url to upload file
6
6
  * @summary Get presigned url to upload file
@@ -144,9 +144,9 @@ export declare const useDeleteFileById: <TData = AxiosResponse<boolean, any>, TE
144
144
  * Returns content of a folder. If no folder is provided, list content of root folder
145
145
  * @summary Get content of a folder (also works for root folder)
146
146
  */
147
- export declare const listChildren: (params: ListChildrenParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<FileWithPresignedUrl>>;
147
+ export declare const listChildren: (params: ListChildrenParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ListChildrenOutput>>;
148
148
  export declare const getListChildrenQueryKey: (params: ListChildrenParams) => readonly ["/children", ...ListChildrenParams[]];
149
- export declare const getListChildrenQueryOptions: <TData = AxiosResponse<FileWithPresignedUrl, any>, TError = AxiosError<unknown, any>>(params: ListChildrenParams, options?: {
149
+ export declare const getListChildrenQueryOptions: <TData = AxiosResponse<ListChildrenOutput, any>, TError = AxiosError<unknown, any>>(params: ListChildrenParams, options?: {
150
150
  query?: UseQueryOptions<Awaited<ReturnType<typeof listChildren>>, TError, TData>;
151
151
  axios?: AxiosRequestConfig;
152
152
  }) => UseQueryOptions<Awaited<ReturnType<typeof listChildren>>, TError, TData> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htkimura/files-storage-backend.rest-client",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "REST client of files-storage-backend",
5
5
  "author": "Henry Kimura",
6
6
  "license": "MIT",