@htkimura/files-storage-backend.rest-client 0.0.20 → 0.0.21
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/generated/model/createUserDto.d.ts +11 -0
- package/dist/generated/model/createUserDto.js +8 -0
- package/dist/{model → generated/model}/index.d.ts +7 -0
- package/dist/generated/model/index.js +13 -0
- package/dist/generated/model/loginDto.d.ts +11 -0
- package/dist/generated/model/loginDto.js +8 -0
- package/dist/generated/model/refreshTokenDto.d.ts +10 -0
- package/dist/generated/model/refreshTokenDto.js +8 -0
- package/dist/generated/model/storageControllerGetPresignedUrlParams.d.ts +12 -0
- package/dist/generated/model/storageControllerGetPresignedUrlParams.js +8 -0
- package/dist/generated/model/user.d.ts +13 -0
- package/dist/generated/model/user.js +8 -0
- package/dist/generated/model/userLogin.d.ts +13 -0
- package/dist/generated/model/userLogin.js +1 -0
- package/dist/generated/storage/storage.js +30 -0
- package/dist/{user → generated/user}/user.d.ts +35 -0
- package/dist/generated/user/user.js +140 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -20
- package/package.json +3 -5
- package/dist/index.js.map +0 -1
- package/dist/model/createUserDto.d.ts +0 -4
- package/dist/model/createUserDto.js +0 -3
- package/dist/model/createUserDto.js.map +0 -1
- package/dist/model/index.js +0 -23
- package/dist/model/index.js.map +0 -1
- package/dist/model/loginDto.d.ts +0 -4
- package/dist/model/loginDto.js +0 -3
- package/dist/model/loginDto.js.map +0 -1
- package/dist/model/refreshTokenDto.d.ts +0 -3
- package/dist/model/refreshTokenDto.js +0 -3
- package/dist/model/refreshTokenDto.js.map +0 -1
- package/dist/model/storageControllerGetPresignedUrlParams.d.ts +0 -5
- package/dist/model/storageControllerGetPresignedUrlParams.js +0 -3
- package/dist/model/storageControllerGetPresignedUrlParams.js.map +0 -1
- package/dist/model/user.d.ts +0 -6
- package/dist/model/user.js +0 -3
- package/dist/model/user.js.map +0 -1
- package/dist/model/userLogin.d.ts +0 -6
- package/dist/model/userLogin.js +0 -3
- package/dist/model/userLogin.js.map +0 -1
- package/dist/storage/storage.js +0 -31
- package/dist/storage/storage.js.map +0 -1
- package/dist/user/user.js +0 -119
- package/dist/user/user.js.map +0 -1
- /package/dist/{storage → generated/storage}/storage.d.ts +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
*/
|
|
1
8
|
export * from './createUserDto';
|
|
2
9
|
export * from './loginDto';
|
|
3
10
|
export * from './refreshTokenDto';
|
|
@@ -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
|
+
export * from './createUserDto';
|
|
9
|
+
export * from './loginDto';
|
|
10
|
+
export * from './refreshTokenDto';
|
|
11
|
+
export * from './storageControllerGetPresignedUrlParams';
|
|
12
|
+
export * from './user';
|
|
13
|
+
export * from './userLogin';
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export type StorageControllerGetPresignedUrlParams = {
|
|
9
|
+
fileName: string;
|
|
10
|
+
fileType: string;
|
|
11
|
+
fileSize: number;
|
|
12
|
+
};
|
|
@@ -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
|
+
export interface User {
|
|
9
|
+
id: string;
|
|
10
|
+
_id: string;
|
|
11
|
+
email: string;
|
|
12
|
+
refreshToken: string;
|
|
13
|
+
}
|
|
@@ -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 { User } from './user';
|
|
9
|
+
export interface UserLogin {
|
|
10
|
+
token: string;
|
|
11
|
+
refreshToken: string;
|
|
12
|
+
user: User;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { useQuery } from '@tanstack/react-query';
|
|
9
|
+
import axios from 'axios';
|
|
10
|
+
export const storageControllerGetPresignedUrl = (params, options) => {
|
|
11
|
+
return axios.get(`/uploads/presigned-url`, {
|
|
12
|
+
...options,
|
|
13
|
+
params: { ...params, ...options?.params },
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export const getStorageControllerGetPresignedUrlQueryKey = (params) => {
|
|
17
|
+
return [`/uploads/presigned-url`, ...(params ? [params] : [])];
|
|
18
|
+
};
|
|
19
|
+
export const getStorageControllerGetPresignedUrlQueryOptions = (params, options) => {
|
|
20
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
21
|
+
const queryKey = queryOptions?.queryKey ?? getStorageControllerGetPresignedUrlQueryKey(params);
|
|
22
|
+
const queryFn = ({ signal }) => storageControllerGetPresignedUrl(params, { signal, ...axiosOptions });
|
|
23
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
24
|
+
};
|
|
25
|
+
export function useStorageControllerGetPresignedUrl(params, options) {
|
|
26
|
+
const queryOptions = getStorageControllerGetPresignedUrlQueryOptions(params, options);
|
|
27
|
+
const query = useQuery(queryOptions);
|
|
28
|
+
query.queryKey = queryOptions.queryKey;
|
|
29
|
+
return query;
|
|
30
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
3
|
import type { CreateUserDto, LoginDto, RefreshTokenDto, User, UserLogin } from '.././model';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new user and returns the created user. We don't have plans for now to implement this on frontend, but it's here for testing purposes
|
|
6
|
+
* @summary Sign up route where a user is created
|
|
7
|
+
*/
|
|
4
8
|
export declare const createUser: (createUserDto: CreateUserDto, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
5
9
|
export declare const getCreateUserMutationOptions: <TData = AxiosResponse<void, any>, TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
6
10
|
mutation?: UseMutationOptions<TData, TError, {
|
|
@@ -13,6 +17,9 @@ export declare const getCreateUserMutationOptions: <TData = AxiosResponse<void,
|
|
|
13
17
|
export type CreateUserMutationResult = NonNullable<Awaited<ReturnType<typeof createUser>>>;
|
|
14
18
|
export type CreateUserMutationBody = CreateUserDto;
|
|
15
19
|
export type CreateUserMutationError = AxiosError<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* @summary Sign up route where a user is created
|
|
22
|
+
*/
|
|
16
23
|
export declare const useCreateUser: <TData = AxiosResponse<void, any>, TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
17
24
|
mutation?: UseMutationOptions<TData, TError, {
|
|
18
25
|
data: CreateUserDto;
|
|
@@ -21,6 +28,10 @@ export declare const useCreateUser: <TData = AxiosResponse<void, any>, TError =
|
|
|
21
28
|
}) => UseMutationResult<TData, TError, {
|
|
22
29
|
data: CreateUserDto;
|
|
23
30
|
}, TContext>;
|
|
31
|
+
/**
|
|
32
|
+
* Receives user auth data, check the authentication and returns LoginData
|
|
33
|
+
* @summary Sign in route for authentication
|
|
34
|
+
*/
|
|
24
35
|
export declare const login: (loginDto: LoginDto, options?: AxiosRequestConfig) => Promise<AxiosResponse<UserLogin>>;
|
|
25
36
|
export declare const getLoginMutationOptions: <TData = AxiosResponse<UserLogin, any>, TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
26
37
|
mutation?: UseMutationOptions<TData, TError, {
|
|
@@ -33,6 +44,9 @@ export declare const getLoginMutationOptions: <TData = AxiosResponse<UserLogin,
|
|
|
33
44
|
export type LoginMutationResult = NonNullable<Awaited<ReturnType<typeof login>>>;
|
|
34
45
|
export type LoginMutationBody = LoginDto;
|
|
35
46
|
export type LoginMutationError = AxiosError<unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* @summary Sign in route for authentication
|
|
49
|
+
*/
|
|
36
50
|
export declare const useLogin: <TData = AxiosResponse<UserLogin, any>, TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
37
51
|
mutation?: UseMutationOptions<TData, TError, {
|
|
38
52
|
data: LoginDto;
|
|
@@ -41,6 +55,10 @@ export declare const useLogin: <TData = AxiosResponse<UserLogin, any>, TError =
|
|
|
41
55
|
}) => UseMutationResult<TData, TError, {
|
|
42
56
|
data: LoginDto;
|
|
43
57
|
}, TContext>;
|
|
58
|
+
/**
|
|
59
|
+
* Receives the user refresh token, validates it and return an updated token
|
|
60
|
+
* @summary Refreshes the user token
|
|
61
|
+
*/
|
|
44
62
|
export declare const refreshToken: (refreshTokenDto: RefreshTokenDto, options?: AxiosRequestConfig) => Promise<AxiosResponse<UserLogin>>;
|
|
45
63
|
export declare const getRefreshTokenMutationOptions: <TData = AxiosResponse<UserLogin, any>, TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
46
64
|
mutation?: UseMutationOptions<TData, TError, {
|
|
@@ -53,6 +71,9 @@ export declare const getRefreshTokenMutationOptions: <TData = AxiosResponse<User
|
|
|
53
71
|
export type RefreshTokenMutationResult = NonNullable<Awaited<ReturnType<typeof refreshToken>>>;
|
|
54
72
|
export type RefreshTokenMutationBody = RefreshTokenDto;
|
|
55
73
|
export type RefreshTokenMutationError = AxiosError<unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Refreshes the user token
|
|
76
|
+
*/
|
|
56
77
|
export declare const useRefreshToken: <TData = AxiosResponse<UserLogin, any>, TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
57
78
|
mutation?: UseMutationOptions<TData, TError, {
|
|
58
79
|
data: RefreshTokenDto;
|
|
@@ -61,6 +82,10 @@ export declare const useRefreshToken: <TData = AxiosResponse<UserLogin, any>, TE
|
|
|
61
82
|
}) => UseMutationResult<TData, TError, {
|
|
62
83
|
data: RefreshTokenDto;
|
|
63
84
|
}, TContext>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns the authenticated user data using the token as reference
|
|
87
|
+
* @summary Get the authenticated user data
|
|
88
|
+
*/
|
|
64
89
|
export declare const me: (options?: AxiosRequestConfig) => Promise<AxiosResponse<User>>;
|
|
65
90
|
export declare const getMeQueryKey: () => readonly ["/users/me"];
|
|
66
91
|
export declare const getMeQueryOptions: <TData = AxiosResponse<User, any>, TError = AxiosError<unknown, any>>(options?: {
|
|
@@ -71,12 +96,19 @@ export declare const getMeQueryOptions: <TData = AxiosResponse<User, any>, TErro
|
|
|
71
96
|
};
|
|
72
97
|
export type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>;
|
|
73
98
|
export type MeQueryError = AxiosError<unknown>;
|
|
99
|
+
/**
|
|
100
|
+
* @summary Get the authenticated user data
|
|
101
|
+
*/
|
|
74
102
|
export declare function useMe<TData = Awaited<ReturnType<typeof me>>, TError = AxiosError<unknown>>(options?: {
|
|
75
103
|
query?: UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>;
|
|
76
104
|
axios?: AxiosRequestConfig;
|
|
77
105
|
}): UseQueryResult<TData, TError> & {
|
|
78
106
|
queryKey: QueryKey;
|
|
79
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* Returns the authenticated user files URLs
|
|
110
|
+
* @summary Get the authenticated user files URLs
|
|
111
|
+
*/
|
|
80
112
|
export declare const myFiles: (options?: AxiosRequestConfig) => Promise<AxiosResponse<string[]>>;
|
|
81
113
|
export declare const getMyFilesQueryKey: () => readonly ["/users/me/files"];
|
|
82
114
|
export declare const getMyFilesQueryOptions: <TData = AxiosResponse<string[], any>, TError = AxiosError<unknown, any>>(options?: {
|
|
@@ -87,6 +119,9 @@ export declare const getMyFilesQueryOptions: <TData = AxiosResponse<string[], an
|
|
|
87
119
|
};
|
|
88
120
|
export type MyFilesQueryResult = NonNullable<Awaited<ReturnType<typeof myFiles>>>;
|
|
89
121
|
export type MyFilesQueryError = AxiosError<unknown>;
|
|
122
|
+
/**
|
|
123
|
+
* @summary Get the authenticated user files URLs
|
|
124
|
+
*/
|
|
90
125
|
export declare function useMyFiles<TData = Awaited<ReturnType<typeof myFiles>>, TError = AxiosError<unknown>>(options?: {
|
|
91
126
|
query?: UseQueryOptions<Awaited<ReturnType<typeof myFiles>>, TError, TData>;
|
|
92
127
|
axios?: AxiosRequestConfig;
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { useMutation, useQuery } from '@tanstack/react-query';
|
|
9
|
+
import axios from 'axios';
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new user and returns the created user. We don't have plans for now to implement this on frontend, but it's here for testing purposes
|
|
12
|
+
* @summary Sign up route where a user is created
|
|
13
|
+
*/
|
|
14
|
+
export const createUser = (createUserDto, options) => {
|
|
15
|
+
return axios.post(`/users`, createUserDto, options);
|
|
16
|
+
};
|
|
17
|
+
export const getCreateUserMutationOptions = (options) => {
|
|
18
|
+
const mutationKey = ['createUser'];
|
|
19
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ?
|
|
20
|
+
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
|
21
|
+
options
|
|
22
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
23
|
+
: { mutation: { mutationKey, }, axios: undefined };
|
|
24
|
+
const mutationFn = (props) => {
|
|
25
|
+
const { data } = props ?? {};
|
|
26
|
+
return createUser(data, axiosOptions);
|
|
27
|
+
};
|
|
28
|
+
return { mutationFn, ...mutationOptions };
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @summary Sign up route where a user is created
|
|
32
|
+
*/
|
|
33
|
+
export const useCreateUser = (options) => {
|
|
34
|
+
const mutationOptions = getCreateUserMutationOptions(options);
|
|
35
|
+
return useMutation(mutationOptions);
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Receives user auth data, check the authentication and returns LoginData
|
|
39
|
+
* @summary Sign in route for authentication
|
|
40
|
+
*/
|
|
41
|
+
export const login = (loginDto, options) => {
|
|
42
|
+
return axios.post(`/users/login`, loginDto, options);
|
|
43
|
+
};
|
|
44
|
+
export const getLoginMutationOptions = (options) => {
|
|
45
|
+
const mutationKey = ['login'];
|
|
46
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ?
|
|
47
|
+
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
|
48
|
+
options
|
|
49
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
50
|
+
: { mutation: { mutationKey, }, axios: undefined };
|
|
51
|
+
const mutationFn = (props) => {
|
|
52
|
+
const { data } = props ?? {};
|
|
53
|
+
return login(data, axiosOptions);
|
|
54
|
+
};
|
|
55
|
+
return { mutationFn, ...mutationOptions };
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* @summary Sign in route for authentication
|
|
59
|
+
*/
|
|
60
|
+
export const useLogin = (options) => {
|
|
61
|
+
const mutationOptions = getLoginMutationOptions(options);
|
|
62
|
+
return useMutation(mutationOptions);
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Receives the user refresh token, validates it and return an updated token
|
|
66
|
+
* @summary Refreshes the user token
|
|
67
|
+
*/
|
|
68
|
+
export const refreshToken = (refreshTokenDto, options) => {
|
|
69
|
+
return axios.post(`/users/refresh-token`, refreshTokenDto, options);
|
|
70
|
+
};
|
|
71
|
+
export const getRefreshTokenMutationOptions = (options) => {
|
|
72
|
+
const mutationKey = ['refreshToken'];
|
|
73
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ?
|
|
74
|
+
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
|
75
|
+
options
|
|
76
|
+
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
77
|
+
: { mutation: { mutationKey, }, axios: undefined };
|
|
78
|
+
const mutationFn = (props) => {
|
|
79
|
+
const { data } = props ?? {};
|
|
80
|
+
return refreshToken(data, axiosOptions);
|
|
81
|
+
};
|
|
82
|
+
return { mutationFn, ...mutationOptions };
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @summary Refreshes the user token
|
|
86
|
+
*/
|
|
87
|
+
export const useRefreshToken = (options) => {
|
|
88
|
+
const mutationOptions = getRefreshTokenMutationOptions(options);
|
|
89
|
+
return useMutation(mutationOptions);
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Returns the authenticated user data using the token as reference
|
|
93
|
+
* @summary Get the authenticated user data
|
|
94
|
+
*/
|
|
95
|
+
export const me = (options) => {
|
|
96
|
+
return axios.get(`/users/me`, options);
|
|
97
|
+
};
|
|
98
|
+
export const getMeQueryKey = () => {
|
|
99
|
+
return [`/users/me`];
|
|
100
|
+
};
|
|
101
|
+
export const getMeQueryOptions = (options) => {
|
|
102
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
103
|
+
const queryKey = queryOptions?.queryKey ?? getMeQueryKey();
|
|
104
|
+
const queryFn = ({ signal }) => me({ signal, ...axiosOptions });
|
|
105
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* @summary Get the authenticated user data
|
|
109
|
+
*/
|
|
110
|
+
export function useMe(options) {
|
|
111
|
+
const queryOptions = getMeQueryOptions(options);
|
|
112
|
+
const query = useQuery(queryOptions);
|
|
113
|
+
query.queryKey = queryOptions.queryKey;
|
|
114
|
+
return query;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns the authenticated user files URLs
|
|
118
|
+
* @summary Get the authenticated user files URLs
|
|
119
|
+
*/
|
|
120
|
+
export const myFiles = (options) => {
|
|
121
|
+
return axios.get(`/users/me/files`, options);
|
|
122
|
+
};
|
|
123
|
+
export const getMyFilesQueryKey = () => {
|
|
124
|
+
return [`/users/me/files`];
|
|
125
|
+
};
|
|
126
|
+
export const getMyFilesQueryOptions = (options) => {
|
|
127
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
128
|
+
const queryKey = queryOptions?.queryKey ?? getMyFilesQueryKey();
|
|
129
|
+
const queryFn = ({ signal }) => myFiles({ signal, ...axiosOptions });
|
|
130
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* @summary Get the authenticated user files URLs
|
|
134
|
+
*/
|
|
135
|
+
export function useMyFiles(options) {
|
|
136
|
+
const queryOptions = getMyFilesQueryOptions(options);
|
|
137
|
+
const query = useQuery(queryOptions);
|
|
138
|
+
query.queryKey = queryOptions.queryKey;
|
|
139
|
+
return query;
|
|
140
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './model';
|
|
2
|
-
export * from './storage/storage';
|
|
3
|
-
export * from './user/user';
|
|
1
|
+
export * from './generated/model';
|
|
2
|
+
export * from './generated/storage/storage';
|
|
3
|
+
export * from './generated/user/user';
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./model"), exports);
|
|
18
|
-
__exportStar(require("./storage/storage"), exports);
|
|
19
|
-
__exportStar(require("./user/user"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from './generated/model';
|
|
2
|
+
export * from './generated/storage/storage';
|
|
3
|
+
export * from './generated/user/user';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htkimura/files-storage-backend.rest-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "REST client of files-storage-backend",
|
|
5
5
|
"author": "Henry Kimura",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,9 +16,8 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"publish": "npm publish --access public"
|
|
19
|
+
"buildPackage": "tsc -p tsconfig.build.json",
|
|
20
|
+
"publish": "buildPackage && npm publish --access public"
|
|
22
21
|
},
|
|
23
22
|
"peerDependencies": {
|
|
24
23
|
"@tanstack/react-query": "^5.66.0",
|
|
@@ -29,7 +28,6 @@
|
|
|
29
28
|
"axios": "^1.7.9"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"@tanstack/react-query": "^5.66.0",
|
|
33
31
|
"@types/node": "^22.13.5",
|
|
34
32
|
"@types/react": "^19.0.10",
|
|
35
33
|
"@types/react-dom": "^19.0.4",
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/generated/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,oDAAkC;AAClC,8CAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createUserDto.js","sourceRoot":"","sources":["../../src/generated/model/createUserDto.ts"],"names":[],"mappings":""}
|
package/dist/model/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./createUserDto"), exports);
|
|
18
|
-
__exportStar(require("./loginDto"), exports);
|
|
19
|
-
__exportStar(require("./refreshTokenDto"), exports);
|
|
20
|
-
__exportStar(require("./storageControllerGetPresignedUrlParams"), exports);
|
|
21
|
-
__exportStar(require("./user"), exports);
|
|
22
|
-
__exportStar(require("./userLogin"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
package/dist/model/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,kDAAgC;AAChC,6CAA2B;AAC3B,oDAAkC;AAClC,2EAAyD;AACzD,yCAAuB;AACvB,8CAA4B"}
|
package/dist/model/loginDto.d.ts
DELETED
package/dist/model/loginDto.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loginDto.js","sourceRoot":"","sources":["../../src/generated/model/loginDto.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refreshTokenDto.js","sourceRoot":"","sources":["../../src/generated/model/refreshTokenDto.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storageControllerGetPresignedUrlParams.js","sourceRoot":"","sources":["../../src/generated/model/storageControllerGetPresignedUrlParams.ts"],"names":[],"mappings":""}
|
package/dist/model/user.d.ts
DELETED
package/dist/model/user.js
DELETED
package/dist/model/user.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/generated/model/user.ts"],"names":[],"mappings":""}
|
package/dist/model/userLogin.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userLogin.js","sourceRoot":"","sources":["../../src/generated/model/userLogin.ts"],"names":[],"mappings":""}
|
package/dist/storage/storage.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStorageControllerGetPresignedUrlQueryOptions = exports.getStorageControllerGetPresignedUrlQueryKey = exports.storageControllerGetPresignedUrl = void 0;
|
|
4
|
-
exports.useStorageControllerGetPresignedUrl = useStorageControllerGetPresignedUrl;
|
|
5
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
6
|
-
const axios_1 = require("axios");
|
|
7
|
-
const storageControllerGetPresignedUrl = (params, options) => {
|
|
8
|
-
return axios_1.default.get(`/uploads/presigned-url`, {
|
|
9
|
-
...options,
|
|
10
|
-
params: { ...params, ...options?.params },
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
exports.storageControllerGetPresignedUrl = storageControllerGetPresignedUrl;
|
|
14
|
-
const getStorageControllerGetPresignedUrlQueryKey = (params) => {
|
|
15
|
-
return [`/uploads/presigned-url`, ...(params ? [params] : [])];
|
|
16
|
-
};
|
|
17
|
-
exports.getStorageControllerGetPresignedUrlQueryKey = getStorageControllerGetPresignedUrlQueryKey;
|
|
18
|
-
const getStorageControllerGetPresignedUrlQueryOptions = (params, options) => {
|
|
19
|
-
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
20
|
-
const queryKey = queryOptions?.queryKey ?? (0, exports.getStorageControllerGetPresignedUrlQueryKey)(params);
|
|
21
|
-
const queryFn = ({ signal }) => (0, exports.storageControllerGetPresignedUrl)(params, { signal, ...axiosOptions });
|
|
22
|
-
return { queryKey, queryFn, ...queryOptions };
|
|
23
|
-
};
|
|
24
|
-
exports.getStorageControllerGetPresignedUrlQueryOptions = getStorageControllerGetPresignedUrlQueryOptions;
|
|
25
|
-
function useStorageControllerGetPresignedUrl(params, options) {
|
|
26
|
-
const queryOptions = (0, exports.getStorageControllerGetPresignedUrlQueryOptions)(params, options);
|
|
27
|
-
const query = (0, react_query_1.useQuery)(queryOptions);
|
|
28
|
-
query.queryKey = queryOptions.queryKey;
|
|
29
|
-
return query;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=storage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/generated/storage/storage.ts"],"names":[],"mappings":";;;AAqEA,kFAYC;AA1ED,uDAE8B;AAO9B,iCAAyB;AAYlB,MAAM,gCAAgC,GAAG,CAC5C,MAA8C,EAAE,OAA4B,EAC/C,EAAE;IAG/B,OAAO,eAAK,CAAC,GAAG,CACd,wBAAwB,EAAC;QAC3B,GAAG,OAAO;QACN,MAAM,EAAE,EAAC,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,MAAM,EAAC;KAAE,CAC5C,CAAC;AACJ,CAAC,CAAA;AAVU,QAAA,gCAAgC,oCAU1C;AAGI,MAAM,2CAA2C,GAAG,CAAC,MAA8C,EAAG,EAAE;IAC3G,OAAO,CAAC,wBAAwB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA,CAAC,CAAC,EAAE,CAAC,CAAU,CAAC;AACvE,CAAC,CAAA;AAFQ,QAAA,2CAA2C,+CAEnD;AAGE,MAAM,+CAA+C,GAAG,CAAqG,MAA8C,EAAE,OAA4I,EAC9V,EAAE;IAEJ,MAAM,EAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAC,GAAG,OAAO,IAAI,EAAE,CAAC;IAE/D,MAAM,QAAQ,GAAI,YAAY,EAAE,QAAQ,IAAI,IAAA,mDAA2C,EAAC,MAAM,CAAC,CAAC;IAI9F,MAAM,OAAO,GAAgF,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAA,wCAAgC,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,GAAG,YAAY,EAAE,CAAC,CAAC;IAMpL,OAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,YAAY,EAA0H,CAAA;AACzK,CAAC,CAAA;AAhBY,QAAA,+CAA+C,mDAgB3D;AAOD,SAAgB,mCAAmC,CAClD,MAA8C,EAAE,OAA4I;IAI3L,MAAM,YAAY,GAAG,IAAA,uDAA+C,EAAC,MAAM,EAAC,OAAO,CAAC,CAAA;IAEpF,MAAM,KAAK,GAAG,IAAA,sBAAQ,EAAC,YAAY,CAA4D,CAAC;IAEhG,KAAK,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAE;IAExC,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/user/user.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMyFilesQueryOptions = exports.getMyFilesQueryKey = exports.myFiles = exports.getMeQueryOptions = exports.getMeQueryKey = exports.me = exports.useRefreshToken = exports.getRefreshTokenMutationOptions = exports.refreshToken = exports.useLogin = exports.getLoginMutationOptions = exports.login = exports.useCreateUser = exports.getCreateUserMutationOptions = exports.createUser = void 0;
|
|
4
|
-
exports.useMe = useMe;
|
|
5
|
-
exports.useMyFiles = useMyFiles;
|
|
6
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
7
|
-
const axios_1 = require("axios");
|
|
8
|
-
const createUser = (createUserDto, options) => {
|
|
9
|
-
return axios_1.default.post(`/users`, createUserDto, options);
|
|
10
|
-
};
|
|
11
|
-
exports.createUser = createUser;
|
|
12
|
-
const getCreateUserMutationOptions = (options) => {
|
|
13
|
-
const mutationKey = ['createUser'];
|
|
14
|
-
const { mutation: mutationOptions, axios: axiosOptions } = options ?
|
|
15
|
-
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
|
16
|
-
options
|
|
17
|
-
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
18
|
-
: { mutation: { mutationKey, }, axios: undefined };
|
|
19
|
-
const mutationFn = (props) => {
|
|
20
|
-
const { data } = props ?? {};
|
|
21
|
-
return (0, exports.createUser)(data, axiosOptions);
|
|
22
|
-
};
|
|
23
|
-
return { mutationFn, ...mutationOptions };
|
|
24
|
-
};
|
|
25
|
-
exports.getCreateUserMutationOptions = getCreateUserMutationOptions;
|
|
26
|
-
const useCreateUser = (options) => {
|
|
27
|
-
const mutationOptions = (0, exports.getCreateUserMutationOptions)(options);
|
|
28
|
-
return (0, react_query_1.useMutation)(mutationOptions);
|
|
29
|
-
};
|
|
30
|
-
exports.useCreateUser = useCreateUser;
|
|
31
|
-
const login = (loginDto, options) => {
|
|
32
|
-
return axios_1.default.post(`/users/login`, loginDto, options);
|
|
33
|
-
};
|
|
34
|
-
exports.login = login;
|
|
35
|
-
const getLoginMutationOptions = (options) => {
|
|
36
|
-
const mutationKey = ['login'];
|
|
37
|
-
const { mutation: mutationOptions, axios: axiosOptions } = options ?
|
|
38
|
-
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
|
39
|
-
options
|
|
40
|
-
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
41
|
-
: { mutation: { mutationKey, }, axios: undefined };
|
|
42
|
-
const mutationFn = (props) => {
|
|
43
|
-
const { data } = props ?? {};
|
|
44
|
-
return (0, exports.login)(data, axiosOptions);
|
|
45
|
-
};
|
|
46
|
-
return { mutationFn, ...mutationOptions };
|
|
47
|
-
};
|
|
48
|
-
exports.getLoginMutationOptions = getLoginMutationOptions;
|
|
49
|
-
const useLogin = (options) => {
|
|
50
|
-
const mutationOptions = (0, exports.getLoginMutationOptions)(options);
|
|
51
|
-
return (0, react_query_1.useMutation)(mutationOptions);
|
|
52
|
-
};
|
|
53
|
-
exports.useLogin = useLogin;
|
|
54
|
-
const refreshToken = (refreshTokenDto, options) => {
|
|
55
|
-
return axios_1.default.post(`/users/refresh-token`, refreshTokenDto, options);
|
|
56
|
-
};
|
|
57
|
-
exports.refreshToken = refreshToken;
|
|
58
|
-
const getRefreshTokenMutationOptions = (options) => {
|
|
59
|
-
const mutationKey = ['refreshToken'];
|
|
60
|
-
const { mutation: mutationOptions, axios: axiosOptions } = options ?
|
|
61
|
-
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
|
62
|
-
options
|
|
63
|
-
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
|
64
|
-
: { mutation: { mutationKey, }, axios: undefined };
|
|
65
|
-
const mutationFn = (props) => {
|
|
66
|
-
const { data } = props ?? {};
|
|
67
|
-
return (0, exports.refreshToken)(data, axiosOptions);
|
|
68
|
-
};
|
|
69
|
-
return { mutationFn, ...mutationOptions };
|
|
70
|
-
};
|
|
71
|
-
exports.getRefreshTokenMutationOptions = getRefreshTokenMutationOptions;
|
|
72
|
-
const useRefreshToken = (options) => {
|
|
73
|
-
const mutationOptions = (0, exports.getRefreshTokenMutationOptions)(options);
|
|
74
|
-
return (0, react_query_1.useMutation)(mutationOptions);
|
|
75
|
-
};
|
|
76
|
-
exports.useRefreshToken = useRefreshToken;
|
|
77
|
-
const me = (options) => {
|
|
78
|
-
return axios_1.default.get(`/users/me`, options);
|
|
79
|
-
};
|
|
80
|
-
exports.me = me;
|
|
81
|
-
const getMeQueryKey = () => {
|
|
82
|
-
return [`/users/me`];
|
|
83
|
-
};
|
|
84
|
-
exports.getMeQueryKey = getMeQueryKey;
|
|
85
|
-
const getMeQueryOptions = (options) => {
|
|
86
|
-
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
87
|
-
const queryKey = queryOptions?.queryKey ?? (0, exports.getMeQueryKey)();
|
|
88
|
-
const queryFn = ({ signal }) => (0, exports.me)({ signal, ...axiosOptions });
|
|
89
|
-
return { queryKey, queryFn, ...queryOptions };
|
|
90
|
-
};
|
|
91
|
-
exports.getMeQueryOptions = getMeQueryOptions;
|
|
92
|
-
function useMe(options) {
|
|
93
|
-
const queryOptions = (0, exports.getMeQueryOptions)(options);
|
|
94
|
-
const query = (0, react_query_1.useQuery)(queryOptions);
|
|
95
|
-
query.queryKey = queryOptions.queryKey;
|
|
96
|
-
return query;
|
|
97
|
-
}
|
|
98
|
-
const myFiles = (options) => {
|
|
99
|
-
return axios_1.default.get(`/users/me/files`, options);
|
|
100
|
-
};
|
|
101
|
-
exports.myFiles = myFiles;
|
|
102
|
-
const getMyFilesQueryKey = () => {
|
|
103
|
-
return [`/users/me/files`];
|
|
104
|
-
};
|
|
105
|
-
exports.getMyFilesQueryKey = getMyFilesQueryKey;
|
|
106
|
-
const getMyFilesQueryOptions = (options) => {
|
|
107
|
-
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
108
|
-
const queryKey = queryOptions?.queryKey ?? (0, exports.getMyFilesQueryKey)();
|
|
109
|
-
const queryFn = ({ signal }) => (0, exports.myFiles)({ signal, ...axiosOptions });
|
|
110
|
-
return { queryKey, queryFn, ...queryOptions };
|
|
111
|
-
};
|
|
112
|
-
exports.getMyFilesQueryOptions = getMyFilesQueryOptions;
|
|
113
|
-
function useMyFiles(options) {
|
|
114
|
-
const queryOptions = (0, exports.getMyFilesQueryOptions)(options);
|
|
115
|
-
const query = (0, react_query_1.useQuery)(queryOptions);
|
|
116
|
-
query.queryKey = queryOptions.queryKey;
|
|
117
|
-
return query;
|
|
118
|
-
}
|
|
119
|
-
//# sourceMappingURL=user.js.map
|
package/dist/user/user.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/generated/user/user.ts"],"names":[],"mappings":";;;AAyQA,sBAYC;AAkDD,gCAYC;AA5UD,uDAG8B;AAU9B,iCAAyB;AAoBlB,MAAM,UAAU,GAAG,CACtB,aAA4B,EAAE,OAA4B,EAC7B,EAAE;IAG/B,OAAO,eAAK,CAAC,IAAI,CACf,QAAQ,EACR,aAAa,EAAC,OAAO,CACtB,CAAC;AACJ,CAAC,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